SVGGeometryElement.getPointAtLength()

翻译不完整。 请帮助我们翻译这篇文章!

SVGGeometryElement.getPointAtLength() 方法沿路径返回给定距离的点。

Note: This method was originally part of the SVGPathElement interface. SVG 2 introduced the SVGGeometryElement interface and moved the property to it.

Syntax

DOMPoint someElement.getPointAtLength(float distance);

Parameters

distance
A float referring to the distance along the path.

Return value

A DOMPoint indicating the point at a given distance along the path.

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
SVGGeometryElement.getTotalLength()
Candidate Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
getPointAtLengthChrome Full support YesEdge Full support ≤79Firefox Full support 53
Notes
Full support 53
Notes
Notes Before version 53, this method was defined on the SVGPathElement interface, which inherits from this interface.
IE No support NoOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 53
Notes
Full support 53
Notes
Notes Before version 53, this method was defined on the SVGPathElement interface, which inherits from this interface.
Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
See implementation notes.
See implementation notes.