first | Daisy 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
-
-
-
-
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 |
-
-
-
-
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
-
-
-
-
The item which is to be inserted into the list.
in SVGPathSeg |
-
-
-
-
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
-
-
-
-
The item which is to be inserted into the list.
in SVGPathSeg |
-
-
-
-
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 |
-
-
-
-
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
-
-
-
-
The item which is to be inserted
into the listSVGPathSeg |
-
-
-
-
. 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:
- DOM attribute pathSegList provides access to the static/base contents of the 'd' attribute in a form which matches one-for-one with SVG's syntax.
- DOM attribute normalizedPathSegList provides normalized access to the static/base contents of the 'd' attribute 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).
and two lists to access the current animated values of the 'd' attribute:
- DOM attribute animatedPathSegList provides access to the current animated contents of the 'd' attribute in a form which matches one-for-one with SVG's syntax.
- DOM attribute animatedNormalizedPathSegList provides normalized access to the current animated contents of the 'd' attribute 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).
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
'
-
-
'
-
-
.
-
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
'
-
-
'
-
-
.
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
-
-
)
-
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
-
-
-
-
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 |
-
-
-
-
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()
-
-
No Parameters
createSVGPathSegMovetoAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegMovetoAbs createSVGPathSegMovetoAbs(in float x, in float y)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in SVGPathSegMovetoAbs |
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegMovetoRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegMovetoRel createSVGPathSegMovetoRel(in float x, in float y)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in SVGPathSegMovetoRel |
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegLinetoAbs createSVGPathSegLinetoAbs(in float x, in float y)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in SVGPathSegLinetoAbs |
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegLinetoRel createSVGPathSegLinetoRel(in float x, in float y)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in SVGPathSegLinetoRel |
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
Return value
createSVGPathSegCurvetoCubicAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoCubicAbs createSVGPathSegCurvetoCubicAbs(in float x, in float y, in float x1, in float y1, in float x2, in float y2)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
in
-
-
-
-
float x1
The absolute X coordinate for the first control point.
in
-
-
-
-
float y1
The absolute Y coordinate for the first control point.
in
-
-
-
-
float x2
The absolute X coordinate for the second control point.
in SVGPathSegCurvetoCubicAbs |
-
-
-
-
float y2
The absolute Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoCubicRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoCubicRel createSVGPathSegCurvetoCubicRel(in float x, in float y, in float x1, in float y1, in float x2, in float y2)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
in
-
-
-
-
float x1
The relative X coordinate for the first control point.
in
-
-
-
-
float y1
The relative Y coordinate for the first control point.
in
-
-
-
-
float x2
The relative X coordinate for the second control point.
in SVGPathSegCurvetoCubicRel |
-
-
-
-
float y2
The relative Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoQuadraticAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoQuadraticAbs createSVGPathSegCurvetoQuadraticAbs(in float x, in float y, in float x1, in float y1)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
in
-
-
-
-
float x1
The absolute X coordinate for the first control point.
in SVGPathSegCurvetoQuadraticAbs |
-
-
-
-
float y1
The absolute Y coordinate for the first control point.
Return value
createSVGPathSegCurvetoQuadraticRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoQuadraticRel createSVGPathSegCurvetoQuadraticRel(in float x, in float y, in float x1, in float y1)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
in
-
-
-
-
float x1
The relative X coordinate for the first control point.
in SVGPathSegCurvetoQuadraticRel |
-
-
-
-
float y1
The relative Y coordinate for the first control point.
Return value
createSVGPathSegArcAbs
-
-
-
Returns
-
-
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)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
in
-
-
-
-
float r1
The x-axis radius for the ellipse (i.e., r1).
in
-
-
-
-
float r2
The y-axis radius for the ellipse (i.e., r2).
in
-
-
-
-
float angle
The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
in
-
-
-
-
boolean largeArcFlag
The value
for
-
-
-
-
of the large-arc-flag parameter.
in
-
-
-
-
boolean sweepFlag
The value
for
-
-
-
-
of the
sweepSVGPathSegArcAbs |
-
-
-
-
large-arc-flag parameter.
Return value
createSVGPathSegArcRel
-
-
-
Returns
-
-
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)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
in
-
-
-
-
float r1
The x-axis radius for the ellipse (i.e., r1).
in
-
-
-
-
float r2
The y-axis radius for the ellipse (i.e., r2).
in
-
-
-
-
float angle
The rotation angle in degrees for the ellipse's x-axis relative to the x-axis of the user coordinate system.
in
-
-
-
-
boolean largeArcFlag
The value
for
-
-
-
-
of the large-arc-flag parameter.
in
-
-
-
-
boolean sweepFlag
The value
for
-
-
-
-
of the
sweepSVGPathSegArcRel |
-
-
-
-
large-arc-flag parameter.
Return value
createSVGPathSegLinetoHorizontalAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegLinetoHorizontalAbs createSVGPathSegLinetoHorizontalAbs(in float x)
-
-
Parameters
in SVGPathSegLinetoHorizontalAbs |
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoHorizontalRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegLinetoHorizontalRel createSVGPathSegLinetoHorizontalRel(in float x)
-
-
Parameters
in SVGPathSegLinetoHorizontalRel |
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoVerticalAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegLinetoVerticalAbs createSVGPathSegLinetoVerticalAbs(in float y)
-
-
Parameters
in SVGPathSegLinetoVerticalAbs |
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegLinetoVerticalRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegLinetoVerticalRel createSVGPathSegLinetoVerticalRel(in float y)
-
-
Parameters
in SVGPathSegLinetoVerticalRel |
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
Return value
createSVGPathSegCurvetoCubicSmoothAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoCubicSmoothAbs createSVGPathSegCurvetoCubicSmoothAbs(in float x, in float y, in float x2, in float y2)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
in
-
-
-
-
float x2
The absolute X coordinate for the second control point.
in SVGPathSegCurvetoCubicSmoothAbs |
-
-
-
-
float y2
The absolute Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoCubicSmoothRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoCubicSmoothRel createSVGPathSegCurvetoCubicSmoothRel(in float x, in float y, in float x2, in float y2)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
in
-
-
-
-
float x2
The relative X coordinate for the second control point.
in SVGPathSegCurvetoCubicSmoothRel |
-
-
-
-
float y2
The relative Y coordinate for the second control point.
Return value
createSVGPathSegCurvetoQuadraticSmoothAbs
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoQuadraticSmoothAbs createSVGPathSegCurvetoQuadraticSmoothAbs(in float x, in float y)
-
-
Parameters
in
-
-
-
-
float x
The absolute X coordinate for the end point of this path segment.
in SVGPathSegCurvetoQuadraticSmoothAbs |
-
-
-
-
float y
The absolute Y coordinate for the end point of this path segment.
Return value
createSVGPathSegCurvetoQuadraticSmoothRel
-
-
-
Returns
-
-
No Exceptions
-
-
SVGPathSegCurvetoQuadraticSmoothRel createSVGPathSegCurvetoQuadraticSmoothRel(in float x, in float y)
-
-
Parameters
in
-
-
-
-
float x
The relative X coordinate for the end point of this path segment.
in SVGPathSegCurvetoQuadraticSmoothRel |
-
-
-
-
float y
The relative Y coordinate for the end point of this path segment.
Return value
-
-
-
Returns
-
-
No Exceptions