- All Known Subinterfaces:
SVGPathElement
- All Known Implementing Classes:
SVGOMAnimatedPathData,SVGOMPathElement
d attribute which holds SVG path
data.-
Method Summary
Modifier and TypeMethodDescriptionGets the normalized current animated contents of thedattribute.Gets the current animated contents of thedattribute.Gets the normalized contents of thedattribute.Gets the base contents of thedattribute.
-
Method Details
-
getPathSegList
SVGPathSegList getPathSegList()Gets the base contents of thedattribute.The base (i.e., static) contents of the
dattribute are provided in a form which matches one-for-one with SVG's syntax. Thus, if thedattribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, thenpathSegListwill have two entries: aPATHSEG_MOVETO_ABSand aPATHSEG_ARC_ABS.- Returns:
- the base contents of the
dattribute.
-
getNormalizedPathSegList
SVGPathSegList getNormalizedPathSegList()Gets the normalized contents of thedattribute.The base (i.e., static) contents of the
dattribute are provided in a form where all path data commands are expressed in terms of the following subset ofSVGPathSegtypes:PATHSEG_MOVETO_ABS(M),PATHSEG_LINETO_ABS(L),PATHSEG_CURVETO_CUBIC_ABS(C) andPATHSEG_CLOSEPATH(z).Thus, if the
dattribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, thennormalizedpathSegListwill have onePATHSEG_MOVETO_ABSentry followed by a series ofPATHSEG_LINETO_ABSentries which approximate the arc. This alternate representation is available to provide a simpler interface to developers who would benefit from a more limited set of commands.The only valid
SVGPathSegtypes arePATHSEG_MOVETO_ABS(M),PATHSEG_LINETO_ABS(L),PATHSEG_CURVETO_CUBIC_ABS(C) andPATHSEG_CLOSEPATH(z).- Returns:
- the normalized contents of the
dattribute.
-
getAnimatedPathSegList
SVGPathSegList getAnimatedPathSegList()Gets the current animated contents of thedattribute.The current animated contents of the
dattribute are provided in a form which matches one-for-one with SVG's syntax. If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, gives the same value asgetPathSegList().- Returns:
- the current animated contents of the
dattribute.
-
getAnimatedNormalizedPathSegList
SVGPathSegList getAnimatedNormalizedPathSegList()Gets the normalized current animated contents of thedattribute.The current animated contents of the
dattribute are provided in a form where all path data commands are expressed in terms of the following subset ofSVGPathSegtypes:PATHSEG_MOVETO_ABS(M),PATHSEG_LINETO_ABS(L),PATHSEG_CURVETO_CUBIC_ABS(C) andPATHSEG_CLOSEPATH(z).If the given attribute or property is being animated, contains the current animated value of the attribute or property, and both the object itself and its contents are read only. If the given attribute or property is not currently being animated, contains the same value as
getNormalizedPathSegList().- Returns:
- the normalized current animated contents of the
dattribute.
-