SVGPathElement.getPointAtLength()
method returns the point at a given distance along the path.
注意:
In SVG 2 this property was moved to the
SVGGeometryElement
interface, from which the
SVGPathElement
inherits it.
SVGPoint someElement.getPointAtLength(float distance);
A float referring to the distance along the path.
SVGPoint
indicating the point at a given distance along the path.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGPathElement.getTotalLength()' in that specification. |
推荐 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
getPointAtLength
弃用
|
Chrome Yes | Edge 12 |
Firefox
Yes
|
IE Yes | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes |
Firefox Android
Yes
|
Opera Android ? | Safari iOS ? | Samsung Internet Android Yes |
完整支持
兼容性未知
弃用。不要用于新网站。
见实现注意事项。