- All Superinterfaces:
- Element,- Node,- SVGElement,- SVGGraphicsElement,- SVGLocatable,- SVGStylable,- SVGTests,- SVGTransformable
- All Known Subinterfaces:
- SVGPathElement
- All Known Implementing Classes:
- SVGOMPathElement
Represents SVG elements whose rendering is defined by geometry with an
 equivalent path, and which can be filled and stroked.
- 
Field SummaryFields inherited from interface org.w3c.dom.NodeATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
- 
Method SummaryModifier and TypeMethodDescriptionGets the read-onlypathLengthattribute, which is the author's computation of the total length of the path, in user units.getPointAtLength(float distance) Gets the point at a given distance along the path.floatGet the length of the path.Methods inherited from interface org.w3c.dom.ElementgetAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getSchemaTypeInfo, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setIdAttribute, setIdAttributeNode, setIdAttributeNSMethods inherited from interface org.w3c.dom.NodeappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataMethods inherited from interface org.w3c.dom.svg.SVGElementgetId, getOwnerSVGElement, getViewportElement, getXMLbase, setId, setXMLbaseMethods inherited from interface org.w3c.dom.svg.SVGLocatablegetBBox, getCTM, getFarthestViewportElement, getNearestViewportElement, getScreenCTM, getTransformToElementMethods inherited from interface org.w3c.dom.svg.SVGStylablegetClassName, getPresentationAttribute, getPresentationAttributeValue, getStyleMethods inherited from interface org.w3c.dom.svg.SVGTestsgetRequiredExtensions, getRequiredFeatures, getSystemLanguage, hasExtensionMethods inherited from interface org.w3c.dom.svg.SVGTransformablegetTransform
- 
Method Details- 
getPathLengthSVGAnimatedNumber getPathLength()Gets the read-onlypathLengthattribute, which is the author's computation of the total length of the path, in user units.The pathLengthattribute has no effect on percentage distance-along-a-path calculations.- Returns:
- the total length of the path, in user units.
 
- 
getTotalLengthfloat getTotalLength()Get the length of the path.- Returns:
- the length of the path, in user units.
 
- 
getPointAtLengthGets the point at a given distance along the path.When getPointAtLength(distance) is called, the following steps are run: - If current element is a non-rendered element, and the UA is not able to compute the total length of the path, then throw an InvalidStateError.
- Let length be the user agent's computed value for the total length of the
 path, in user units.
 As with getTotalLength, this does not take into account the pathLengthattribute.
- Clamp distance to [0, length].
- Let (x, y) be the point on the path at distance distance.
- Return a newly created, detached DOMPoint object representing the point (x, y).
 - Parameters:
- distance- the distance.
- Returns:
- the point at a given distance along the path.
 
 
-