firstDaisy Diff compare report.
Click on the changed parts for a detailed description. Use the left and right arrow keys to walk through the modifications.
last 

8.5.7 Interface SVGPathSegCurvetoCubicAbs

The SVGPathSegCurvetoCubicAbs interface corresponds to an "absolute cubic Bézier curveto" (C) path data command. IDL Definition
interface SVGPathSegCurvetoCubicAbs : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x2
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y2
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The absolute X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The absolute Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x1 (float
x1
)
The absolute X coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y1 (float
y1
)
The absolute Y coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x2 (float
x2
)
The absolute X coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y2 (float
y2
)
The absolute Y coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.8 Interface SVGPathSegCurvetoCubicRel

The SVGPathSegCurvetoCubicRel interface corresponds to a "relative cubic Bézier curveto" (c) path data command. IDL Definition
interface SVGPathSegCurvetoCubicRel : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x2
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y2
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The relative X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The relative Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x1 (float
x1
)
The relative X coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y1 (float
y1
)
The relative Y coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x2 (float
x2
)
The relative X coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y2 (float
y2
)
The relative Y coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.9 Interface SVGPathSegCurvetoQuadraticAbs

The SVGPathSegCurvetoQuadraticAbs interface corresponds to an "absolute quadratic Bézier curveto" (Q) path data command. IDL Definition
interface SVGPathSegCurvetoQuadraticAbs : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y1
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The absolute X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The absolute Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x1 (float
x1
)
The absolute X coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y1 (float
y1
)
The absolute Y coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.10 Interface SVGPathSegCurvetoQuadraticRel

The SVGPathSegCurvetoQuadraticRel interface corresponds to a "relative quadratic Bézier curveto" (q) path data command. IDL Definition
interface SVGPathSegCurvetoQuadraticRel : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y1
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The relative X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The relative Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x1 (float
x1
)
The relative X coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y1 (float
y1
)
The relative Y coordinate for the first control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.11 Interface SVGPathSegArcAbs

The SVGPathSegArcAbs interface corresponds to an "absolute arcto" (A) path data command. IDL Definition
interface SVGPathSegArcAbs : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
r1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
r2
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
angle
; // raises DOMException on setting
 setraises(DOMException);
  attribute boolean largeArcFlag
; // raises DOMException on setting
 setraises(DOMException);
  attribute boolean sweepFlag
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The absolute X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The absolute Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
r1 (float
r1
)
The x-axis radius for the ellipse (i.e., r1).
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
r2 (float
r2
)
The y-axis radius for the ellipse (i.e., r2).
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
angle (float
angle
)
The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
largeArcFlag (boolean
largeArcFlag
)
The value of the large-arc-flag parameter.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
sweepFlag (boolean
sweepFlag
)
The value of the sweep-flag parameter.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.12 Interface SVGPathSegArcRel

The SVGPathSegArcRel interface corresponds to a "relative arcto" (a) path data command. IDL Definition
interface SVGPathSegArcRel : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
r1
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
r2
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
angle
; // raises DOMException on setting
 setraises(DOMException);
  attribute boolean largeArcFlag
; // raises DOMException on setting
 setraises(DOMException);
  attribute boolean sweepFlag
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The relative X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The relative Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
r1 (float
r1
)
The x-axis radius for the ellipse (i.e., r1).
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
r2 (float
r2
)
The y-axis radius for the ellipse (i.e., r2).
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
angle (float
angle
)
The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
largeArcFlag (boolean
largeArcFlag
)
The value of the large-arc-flag parameter.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
sweepFlag (boolean
sweepFlag
)
The value of the
sweep
large-arc-flag parameter.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.13 Interface SVGPathSegLinetoHorizontalAbs

The SVGPathSegLinetoHorizontalAbs interface corresponds to an "absolute horizontal lineto" (H) path data command. IDL Definition
interface SVGPathSegLinetoHorizontalAbs : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The absolute X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.14 Interface SVGPathSegLinetoHorizontalRel

The SVGPathSegLinetoHorizontalRel interface corresponds to a "relative horizontal lineto" (h) path data command. IDL Definition
interface SVGPathSegLinetoHorizontalRel : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The relative X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.15 Interface SVGPathSegLinetoVerticalAbs

The SVGPathSegLinetoVerticalAbs interface corresponds to an "absolute vertical lineto" (V) path data command. IDL Definition
interface SVGPathSegLinetoVerticalAbs : SVGPathSeg {
  
attribute float 
y
; // raises DOMException on setting };
Attributes
float y
 setraises(DOMException);
};
Attributes:
y (float)
The absolute Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.16 Interface SVGPathSegLinetoVerticalRel

The SVGPathSegLinetoVerticalRel interface corresponds to a "relative vertical lineto" (v) path data command. IDL Definition
interface SVGPathSegLinetoVerticalRel : SVGPathSeg {
  
attribute float 
y
; // raises DOMException on setting };
Attributes
float y
 setraises(DOMException);
};
Attributes:
y (float)
The relative Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.17 Interface SVGPathSegCurvetoCubicSmoothAbs

The SVGPathSegCurvetoCubicSmoothAbs interface corresponds to an "absolute smooth cubic curveto" (S) path data command. IDL Definition
interface SVGPathSegCurvetoCubicSmoothAbs : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x2
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y2
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The absolute X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The absolute Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x2 (float
x2
)
The absolute X coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y2 (float
y2
)
The absolute Y coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.18 Interface SVGPathSegCurvetoCubicSmoothRel

The SVGPathSegCurvetoCubicSmoothRel interface corresponds to a "relative smooth cubic curveto" (s) path data command. IDL Definition
interface SVGPathSegCurvetoCubicSmoothRel : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
x2
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y2
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The relative X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The relative Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
x2 (float
x2
)
The relative X coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y2 (float
y2
)
The relative Y coordinate for the second control point.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.19 Interface SVGPathSegCurvetoQuadraticSmoothAbs

The SVGPathSegCurvetoQuadraticSmoothAbs interface corresponds to an "absolute smooth quadratic cubic curveto" (T) path data command. IDL Definition
interface SVGPathSegCurvetoQuadraticSmoothAbs : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The absolute X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The absolute Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.20 Interface SVGPathSegCurvetoQuadraticSmoothRel

The SVGPathSegCurvetoQuadraticSmoothRel interface corresponds to a "relative smooth quadratic cubic curveto" (t) path data command. IDL Definition
interface SVGPathSegCurvetoQuadraticSmoothRel : SVGPathSeg {
  
attribute float 
x
; // raises DOMException on setting
 setraises(DOMException);
  attribute float 
y
; // raises DOMException on setting };
Attributes
float x
 setraises(DOMException);
};
Attributes:
x (float)
The relative X coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.
y (float
y
)
The relative Y coordinate for the end point of this path segment.
Exceptions on setting
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised on an attempt to change the value of a readonly attribute.

8.5.21 Interface SVGPathSegList

This interface defines a list of SVGPathSeg objects.

SVGPathSegList has the same attributes and methods as other SVGxxxList interfaces. Implementers may consider using a single base class to implement the various SVGxxxList interfaces.

IDL Definition
interface SVGPathSegList {

  readonly attribute unsigned long numberOfItems;

  void 
clear
(
) 
raises(
DOMException
);
  SVGPathSeg initialize
(
in SVGPathSeg newItem
) 
raises(
DOMException, SVGException
);
  SVGPathSeg getItem
(
in unsigned long index
) 
raises(
DOMException
);
  SVGPathSeg insertItemBefore
(
in SVGPathSeg newItem, in unsigned long index
) 
raises(
DOMException, SVGException
);
  SVGPathSeg replaceItem
(
in SVGPathSeg newItem, in unsigned long index
) 
raises(
DOMException, SVGException
);
  SVGPathSeg removeItem
(
in unsigned long index
) 
raises(
DOMException
);
  SVGPathSeg appendItem
(
in SVGPathSeg newItem
) 
raises(
DOMException, SVGException
);
};
Attributes:
numberOfItems (readonly unsigned long
numberOfItems
)
The number of items in the list.
Methods
Operations:
void clear()
Clears all existing current items from the list, with the result being an empty list.
No Parameters
No Return Value
Exceptions
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised when the list cannot be modified.
SVGPathSeg initialize(in SVGPathSeg newItem)
Clears all existing current items from the list and re-initializes the list to hold the single item specified by the parameter.
Parameters
in
  1. SVGPathSeg newItem
    The item which should become the only member of the list.
Return value
SVGPathSeg
Returns
The item being inserted into the list.
Exceptions
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised when the list cannot be modified.
SVGException, code SVG_WRONG_TYPE_ERR
:
Raised if parameter newItem is the wrong type of object for the given list.
SVGPathSeg getItem(in unsigned long index)
Returns the specified item from the list.
Parameters
in SVGPathSeg
  1. unsigned long index
    The index of the item from the list which is to be returned. The first item is number 0.
Return value
Returns
The selected item.
Exceptions
DOMException, code INDEX_SIZE_ERR
:
Raised if the index number is negative or greater than or equal to numberOfItems.
SVGPathSeg insertItemBefore(in SVGPathSeg newItem, in unsigned long index)
Inserts a new item into the list at the specified position. The first item is number 0. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
Parameters
in
  1. SVGPathSeg newItem
    The item which is to be inserted into the list.
in SVGPathSeg
  1. unsigned long index
    The index of the item before which the new item is to be inserted. The first item is number 0. If the index is equal to 0, then the new item is inserted at the front of the list. If the index is greater than or equal to numberOfItems, then the new item is appended to the end of the list.
Return value
Returns
The inserted item.
Exceptions
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised when the list cannot be modified.
SVGException, code SVG_WRONG_TYPE_ERR
:
Raised if parameter newItem is the wrong type of object for the given list.
SVGPathSeg replaceItem(in SVGPathSeg newItem, in unsigned long index)
Replaces an existing item in the list with a new item. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
Parameters
in
  1. SVGPathSeg newItem
    The item which is to be inserted into the list.
in SVGPathSeg
  1. unsigned long index
    The index of the item which is to be replaced. The first item is number 0.
Return value
Returns
The inserted item.
Exceptions
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised when the list cannot be modified.
DOMException, code INDEX_SIZE_ERR
:
Raised if the index number is negative or greater than or equal to numberOfItems.
SVGException, code SVG_WRONG_TYPE_ERR
:
Raised if parameter newItem is the wrong type of object for the given list.
SVGPathSeg removeItem(in unsigned long index)
Removes an existing item from the list.
Parameters
in SVGPathSeg
  1. unsigned long index
    The index of the item which is to be removed. The first item is number 0.
Return value
Returns
The removed item.
Exceptions
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised when the list cannot be modified.
DOMException, code INDEX_SIZE_ERR
:
Raised if the index number is negative or greater than or equal to numberOfItems.
SVGPathSeg appendItem(in SVGPathSeg newItem)
Inserts a new item at the end of the list. If newItem is already in a list, it is removed from its previous list before it is inserted into this list.
Parameters
in
  1. SVGPathSeg newItem
    The item which is to be inserted
into the listSVGPathSeg
  1. . The first item is number 0.
Return value
Returns
The inserted item.
Exceptions
DOMException, code NO_MODIFICATION_ALLOWED_ERR
:
Raised when the list cannot be modified.
SVGException, code SVG_WRONG_TYPE_ERR
:
Raised if parameter newItem is the wrong type of object for the given list.

8.5.22 Interface SVGAnimatedPathData

The SVGAnimatedPathData interface supports elements which have a 'd' attribute which holds SVG path data, and supports the ability to animate that attribute.

The SVGAnimatedPathData interface provides two lists to access and modify the base (i.e., static) contents of the 'd' attribute:

and two lists to access the current animated values of the 'd' attribute:

Each of the two lists are always kept synchronized. Modifications to one list will immediately cause the corresponding list to be modified. Modifications to normalizedPathSegList might cause entries in pathSegList to be broken into a set of normalized path segments.

Additionally, the 'd' attribute on the 'path' element accessed via the XML DOM (e.g., using the getAttribute() method call) will reflect any changes made to pathSegList or normalizedPathSegList.

IDL Definition
interface SVGAnimatedPathData {
  
readonly attribute SVGPathSegList 
pathSegList;
  readonly attribute SVGPathSegList 
normalizedPathSegList;
  readonly attribute SVGPathSegList 
animatedPathSegList;
  readonly attribute SVGPathSegList 
animatedNormalizedPathSegList;
};
Attributes:
pathSegList (readonly SVGPathSegList
pathSegList
)
Provides access to the base (i.e., static) contents of the 'd' attribute 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 SVG_PATHSEG_MOVETO_ABS and a SVG_PATHSEG_ARC_ABS.
normalizedPathSegList (readonly SVGPathSegList
normalizedPathSegList
)

Provides access to the base (i.e., static) contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of SVGPathSeg types: SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z). Thus, if the 'd' attribute has an "absolute moveto (M)" and an "absolute arcto (A)" command, then pathSegList will have one SVG_PATHSEG_MOVETO_ABS entry followed by a series of SVG_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 SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_PATHSEG_CLOSEPATH (z).

animatedPathSegList (readonly SVGPathSegList
animatedPathSegList
)
Provides access to the current animated contents of the 'd' attribute 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 readonly. If the given attribute or property is not currently being animated, contains the same value as
'
pathSegList
'
.
animatedNormalizedPathSegList (readonly SVGPathSegList
animatedNormalizedPathSegList
)
Provides access to the current animated contents of the 'd' attribute in a form where all path data commands are expressed in terms of the following subset of SVGPathSeg types: SVG_PATHSEG_MOVETO_ABS (M), SVG_PATHSEG_LINETO_ABS (L), SVG_PATHSEG_CURVETO_CUBIC_ABS (C) and SVG_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 readonly. If the given attribute or property is not currently being animated, contains the same value as
'
normalizedPathSegList
'
.

8.5.23 Interface SVGPathElement

The SVGPathElement interface corresponds to the 'path' element. IDL Definition
interface SVGPathElement : SVGElement,
                
SVGElement,
           SVGTests,
     
SVGTests,
                      SVGLangSpace,
                           SVGExternalResourcesRequired,
                           SVGStylable,
                           SVGTransformable,
                
events::EventTarget,
           EventTarget,
     
SVGAnimatedPathData
 
{
    
readonly
 
attribute
 
SVGAnimatedNumber
 
pathLength;
   
float
         
getTotalLength
 
(
 
)
SVGAnimatedPathData {

  readonly attribute SVGAnimatedNumber pathLength;

 
SVGPoint
 float getTotalLength();
  SVGPoint getPointAtLength
(
in float distance
);
  unsigned long getPathSegAtLength
(
in float distance
);
  SVGPathSegClosePath 
createSVGPathSegClosePath
(
);
  SVGPathSegMovetoAbs 
createSVGPathSegMovetoAbs
(
in float x, in float y
);
  SVGPathSegMovetoRel 
createSVGPathSegMovetoRel
(
in float x, in float y
);
  SVGPathSegLinetoAbs 
createSVGPathSegLinetoAbs
(
in float x, in float y
);
  SVGPathSegLinetoRel 
createSVGPathSegLinetoRel
(
in float x, in float y
);
  SVGPathSegCurvetoCubicAbs 
createSVGPathSegCurvetoCubicAbs
(
in float x, in float y, in float x1, in float y1, in float x2, in float y2
);
  SVGPathSegCurvetoCubicRel 
createSVGPathSegCurvetoCubicRel
(
in float x, in float y, in float x1, in float y1, in float x2, in float y2
);
  SVGPathSegCurvetoQuadraticAbs 
createSVGPathSegCurvetoQuadraticAbs
(
in float x, in float y, in float x1, in float y1
);
  SVGPathSegCurvetoQuadraticRel 
createSVGPathSegCurvetoQuadraticRel
(
in float x, in float y, in float x1, in float y1
);
  SVGPathSegArcAbs 
createSVGPathSegArcAbs
(
in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag
);
  SVGPathSegArcRel 
createSVGPathSegArcRel
(
in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag
);
  SVGPathSegLinetoHorizontalAbs 
createSVGPathSegLinetoHorizontalAbs
(
in float x
);
  SVGPathSegLinetoHorizontalRel 
createSVGPathSegLinetoHorizontalRel
(
in float x
);
  SVGPathSegLinetoVerticalAbs 
createSVGPathSegLinetoVerticalAbs
(
in float y
);
  SVGPathSegLinetoVerticalRel 
createSVGPathSegLinetoVerticalRel
(
in float y
);
  SVGPathSegCurvetoCubicSmoothAbs 
createSVGPathSegCurvetoCubicSmoothAbs
(
in float x, in float y, in float x2, in float y2
);
  SVGPathSegCurvetoCubicSmoothRel 
createSVGPathSegCurvetoCubicSmoothRel
(
in float x, in float y, in float x2, in float y2
);
  SVGPathSegCurvetoQuadraticSmoothAbs 
createSVGPathSegCurvetoQuadraticSmoothAbs
(
in float x, in float y
);
  SVGPathSegCurvetoQuadraticSmoothRel 
createSVGPathSegCurvetoQuadraticSmoothRel
(
in float x, in float y
);
};
Attributes:
pathLength (readonly SVGAnimatedNumber
pathLength
)
Corresponds to attribute pathLength on the given 'path' element.
Methods
Return value
float
Operations:
float getTotalLength()
Returns the user agent's computed value for the total length of the path using the user agent's distance-along-a-path algorithm, as a distance in the current user coordinate system.
No Parameters
getPointAtLength
Returns
The total length of the path.
No Exceptions
SVGPoint getPointAtLength(in float distance)
Returns the (x,y) coordinate in user space which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.
Parameters
in
  1. float distance
    The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.
Return value
SVGPoint
getPathSegAtLength
Returns
The returned point in user space.
No Exceptions
unsigned long getPathSegAtLength(in float distance)
Returns the index into pathSegList which is distance units along the path, utilizing the user agent's distance-along-a-path algorithm.
Parameters
in unsigned long
  1. float distance
    The distance along the path, relative to the start of the path, as a distance in the current user coordinate system.
Return value
Returns
The index of the path segment, where the first path segment is number 0.
No Exceptions
Return value
SVGPathSegClosePath
SVGPathSegClosePath createSVGPathSegClosePath()
Returns a stand-alone, parentless SVGPathSegClosePath object.
No Parameters
createSVGPathSegMovetoAbs
Returns
A stand-alone, parentless SVGPathSegClosePath object.
No Exceptions
SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(in float x, in float y)
Returns a stand-alone, parentless SVGPathSegMovetoAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in SVGPathSegMovetoAbs
  1. float y
    The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegMovetoRel
Returns
A stand-alone, parentless SVGPathSegMovetoAbs object.
No Exceptions
SVGPathSegMovetoRel createSVGPathSegMovetoRel(in float x, in float y)
Returns a stand-alone, parentless SVGPathSegMovetoRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in SVGPathSegMovetoRel
  1. float y
    The relative Y coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoAbs
Returns
A stand-alone, parentless SVGPathSegMovetoRel object.
No Exceptions
SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(in float x, in float y)
Returns a stand-alone, parentless SVGPathSegLinetoAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in SVGPathSegLinetoAbs
  1. float y
    The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoRel
Returns
A stand-alone, parentless SVGPathSegLinetoAbs object.
No Exceptions
SVGPathSegLinetoRel createSVGPathSegLinetoRel(in float x, in float y)
Returns a stand-alone, parentless SVGPathSegLinetoRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in SVGPathSegLinetoRel
  1. float y
    The relative Y coordinate for the end point of this path segment.
Return value
createSVGPathSegCurvetoCubicAbs
Returns
A stand-alone, parentless SVGPathSegLinetoRel object.
No Exceptions
SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(in float x, in float y, in float x1, in float y1, in float x2, in float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in
  1. float y
    The absolute Y coordinate for the end point of this path segment.
in
  1. float x1
    The absolute X coordinate for the first control point.
in
  1. float y1
    The absolute Y coordinate for the first control point.
in
  1. float x2
    The absolute X coordinate for the second control point.
in SVGPathSegCurvetoCubicAbs
  1. float y2
    The absolute Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoCubicRel
Returns
A stand-alone, parentless SVGPathSegCurvetoCubicAbs object.
No Exceptions
SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(in float x, in float y, in float x1, in float y1, in float x2, in float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in
  1. float y
    The relative Y coordinate for the end point of this path segment.
in
  1. float x1
    The relative X coordinate for the first control point.
in
  1. float y1
    The relative Y coordinate for the first control point.
in
  1. float x2
    The relative X coordinate for the second control point.
in SVGPathSegCurvetoCubicRel
  1. float y2
    The relative Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoQuadraticAbs
Returns
A stand-alone, parentless SVGPathSegCurvetoCubicRel object.
No Exceptions
SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(in float x, in float y, in float x1, in float y1)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in
  1. float y
    The absolute Y coordinate for the end point of this path segment.
in
  1. float x1
    The absolute X coordinate for the first control point.
in SVGPathSegCurvetoQuadraticAbs
  1. float y1
    The absolute Y coordinate for the first control point.
Return value
createSVGPathSegCurvetoQuadraticRel
Returns
A stand-alone, parentless SVGPathSegCurvetoQuadraticAbs object.
No Exceptions
SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(in float x, in float y, in float x1, in float y1)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in
  1. float y
    The relative Y coordinate for the end point of this path segment.
in
  1. float x1
    The relative X coordinate for the first control point.
in SVGPathSegCurvetoQuadraticRel
  1. float y1
    The relative Y coordinate for the first control point.
Return value
createSVGPathSegArcAbs
Returns
A stand-alone, parentless SVGPathSegCurvetoQuadraticRel object.
No Exceptions
SVGPathSegArcAbs createSVGPathSegArcAbs(in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag)
Returns a stand-alone, parentless SVGPathSegArcAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in
  1. float y
    The absolute Y coordinate for the end point of this path segment.
in
  1. float r1
    The x-axis radius for the ellipse (i.e., r1).
in
  1. float r2
    The y-axis radius for the ellipse (i.e., r2).
in
  1. float angle
    The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
in
  1. boolean largeArcFlag
    The value
for
  1. of the large-arc-flag parameter.
in
  1. boolean sweepFlag
    The value
for
  1. of the
sweepSVGPathSegArcAbs
  1. large-arc-flag parameter.
Return value
createSVGPathSegArcRel
Returns
A stand-alone, parentless SVGPathSegArcAbs object.
No Exceptions
SVGPathSegArcRel createSVGPathSegArcRel(in float x, in float y, in float r1, in float r2, in float angle, in boolean largeArcFlag, in boolean sweepFlag)
Returns a stand-alone, parentless SVGPathSegArcRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in
  1. float y
    The relative Y coordinate for the end point of this path segment.
in
  1. float r1
    The x-axis radius for the ellipse (i.e., r1).
in
  1. float r2
    The y-axis radius for the ellipse (i.e., r2).
in
  1. float angle
    The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
in
  1. boolean largeArcFlag
    The value
for
  1. of the large-arc-flag parameter.
in
  1. boolean sweepFlag
    The value
for
  1. of the
sweepSVGPathSegArcRel
  1. large-arc-flag parameter.
Return value
createSVGPathSegLinetoHorizontalAbs
Returns
A stand-alone, parentless SVGPathSegArcRel object.
No Exceptions
SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(in float x)
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.
Parameters
in SVGPathSegLinetoHorizontalAbs
  1. float x
    The absolute X coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoHorizontalRel
Returns
A stand-alone, parentless SVGPathSegLinetoHorizontalAbs object.
No Exceptions
SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(in float x)
Returns a stand-alone, parentless SVGPathSegLinetoHorizontalRel object.
Parameters
in SVGPathSegLinetoHorizontalRel
  1. float x
    The relative X coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoVerticalAbs
Returns
A stand-alone, parentless SVGPathSegLinetoHorizontalRel object.
No Exceptions
SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(in float y)
Returns a stand-alone, parentless SVGPathSegLinetoVerticalAbs object.
Parameters
in SVGPathSegLinetoVerticalAbs
  1. float y
    The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoVerticalRel
Returns
A stand-alone, parentless SVGPathSegLinetoVerticalAbs object.
No Exceptions
SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(in float y)
Returns a stand-alone, parentless SVGPathSegLinetoVerticalRel object.
Parameters
in SVGPathSegLinetoVerticalRel
  1. float y
    The relative Y coordinate for the end point of this path segment.
Return value
createSVGPathSegCurvetoCubicSmoothAbs
Returns
A stand-alone, parentless SVGPathSegLinetoVerticalRel object.
No Exceptions
SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(in float x, in float y, in float x2, in float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in
  1. float y
    The absolute Y coordinate for the end point of this path segment.
in
  1. float x2
    The absolute X coordinate for the second control point.
in SVGPathSegCurvetoCubicSmoothAbs
  1. float y2
    The absolute Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoCubicSmoothRel
Returns
A stand-alone, parentless SVGPathSegCurvetoCubicSmoothAbs object.
No Exceptions
SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(in float x, in float y, in float x2, in float y2)
Returns a stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in
  1. float y
    The relative Y coordinate for the end point of this path segment.
in
  1. float x2
    The relative X coordinate for the second control point.
in SVGPathSegCurvetoCubicSmoothRel
  1. float y2
    The relative Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoQuadraticSmoothAbs
Returns
A stand-alone, parentless SVGPathSegCurvetoCubicSmoothRel object.
No Exceptions
SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(in float x, in float y)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.
Parameters
in
  1. float x
    The absolute X coordinate for the end point of this path segment.
in SVGPathSegCurvetoQuadraticSmoothAbs
  1. float y
    The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegCurvetoQuadraticSmoothRel
Returns
A stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothAbs object.
No Exceptions
SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(in float x, in float y)
Returns a stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.
Parameters
in
  1. float x
    The relative X coordinate for the end point of this path segment.
in SVGPathSegCurvetoQuadraticSmoothRel
  1. float y
    The relative Y coordinate for the end point of this path segment.
Return value
Returns
A stand-alone, parentless SVGPathSegCurvetoQuadraticSmoothRel object.
No Exceptions
SVG 1.1 (Second Edition) – 16 May 2009