SVGPathElement.getTotalLength()
SVGPathElement.getTotalLength()
该方法返回用户代理对路径总长度(以用户单位为单位)的计算值。
注意:在SVG 2中,该方法被移动到 SVGGeometryElement
接口,由 SVGPathElement
继承。
语法
float someElement.getTotalLength();
返回值
指示路径总长度(以用户单位为单位)的浮点数。
规格
规格 | 状态 | 注解 |
---|---|---|
Scalable Vector Graphics (SVG) 1.1 (Second Edition) SVGPathElement.getTotalLength() |
Recommendation | 最初的定义 |
浏览器兼容性
No compatibility data found for api.SVGPathElement.getTotalLength
.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.