SVG path segment list interface
This interface defines a list of SVGPathSeg
objects.
Interface overview
Also implement | None |
---|---|
Methods |
|
Properties |
|
Normative document | SVG 1.1 (2nd Edition) |
Properties
Name | Type | Description |
---|---|---|
numberOfItems Read only |
unsigned long |
The number of items in the list. |
Methods
clear() |
|
void |
Clears all existing current items from the list, with the result being an empty list. Exceptions:
|
initialize(in |
|
SVGPathSeg |
Clears all existing current items from the list and re-initializes the list to hold the single item specified by Exceptions:
|
getItem(in unsigned long index) |
|
SVGPathSeg |
Returns the specified item from the list. The returned item is the item itself and not a copy. Any changes made to the item are immediately reflected in the list. The first item is number Exceptions:
|
insertItemBefore(in |
|
SVGPathSeg |
Inserts a new item into the list at the specified position. The first item is number If If the Exceptions:
|
replaceItem(in |
|
SVGPathSeg |
Replaces an existing item in the list with a new item. If Exceptions:
|
removeItem(in unsigned long index) |
|
SVGPathSeg |
Removes an existing item from the list. Exceptions:
|
appendItem(in SVGPathSeg newItem) |
|
SVGPathSeg |
Inserts a new item at the end of the list. If Exceptions:
|
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
SVGPathSegList |
Chrome ? | Edge ? | Firefox ? | IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android ? | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown