Interface SVGAnimatedPathData

All Known Subinterfaces:
SVGPathElement
All Known Implementing Classes:
SVGOMAnimatedPathData, SVGOMPathElement

public interface SVGAnimatedPathData
Implemented by elements which have a d attribute which holds SVG path data.
  • Method Details Link icon

    • getPathSegList Link icon

      SVGPathSegList getPathSegList()
      Gets the base contents of the d attribute.

      The base (i.e., static) contents of the d attribute are provided in a form which matches one-for-one with SVG's syntax. Thus, if the d attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then pathSegList will have two entries: a PATHSEG_MOVETO_ABS and a PATHSEG_ARC_ABS.

      Returns:
      the base contents of the d attribute.
    • getNormalizedPathSegList Link icon

      SVGPathSegList getNormalizedPathSegList()
      Gets the normalized contents of the d attribute.

      The base (i.e., static) contents of the d attribute are provided in a form where all path data commands are expressed in terms of the following subset of SVGPathSeg types: PATHSEG_MOVETO_ABS (M), PATHSEG_LINETO_ABS (L), PATHSEG_CURVETO_CUBIC_ABS (C) and PATHSEG_CLOSEPATH (z).

      Thus, if the d attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then normalizedpathSegList will have one PATHSEG_MOVETO_ABS entry followed by a series of PATHSEG_LINETO_ABS entries 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 SVGPathSeg types are PATHSEG_MOVETO_ABS (M), PATHSEG_LINETO_ABS (L), PATHSEG_CURVETO_CUBIC_ABS (C) and PATHSEG_CLOSEPATH (z).

      Returns:
      the normalized contents of the d attribute.
    • getAnimatedPathSegList Link icon

      SVGPathSegList getAnimatedPathSegList()
      Gets the current animated contents of the d attribute.

      The current animated contents of the d attribute 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 as getPathSegList().

      Returns:
      the current animated contents of the d attribute.
    • getAnimatedNormalizedPathSegList Link icon

      SVGPathSegList getAnimatedNormalizedPathSegList()
      Gets the normalized current animated contents of the d attribute.

      The current animated contents of the d attribute are provided in a form where all path data commands are expressed in terms of the following subset of SVGPathSeg types: PATHSEG_MOVETO_ABS (M), PATHSEG_LINETO_ABS (L), PATHSEG_CURVETO_CUBIC_ABS (C) and PATHSEG_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 d attribute.