SVGPointList
The SVGPointList interface represents a list of DOMPoint objects.
Indexable
[index: number]: DOMPoint
Methods
[iterator]()
iterator: ArrayIterator<DOMPoint>;
Returns
appendItem()
appendItem(newItem): DOMPoint;
The appendItem() method of the SVGPointList interface adds a DOMPoint to the end of the list.
Parameters
| Parameter | Type |
|---|---|
newItem | DOMPoint |
Returns
clear()
clear(): void;
The clear() method of the SVGPointList interface removes all items from the list.
Returns
void
getItem()
getItem(index): DOMPoint;
The getItem() method of the SVGPointList interface gets one item from the list at the specified index.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
initialize()
initialize(newItem): DOMPoint;
The initialize() method of the SVGPointList interface clears the list then adds a single new DOMPoint object to the list.
Parameters
| Parameter | Type |
|---|---|
newItem | DOMPoint |
Returns
insertItemBefore()
insertItemBefore(newItem, index): DOMPoint;
The insertItemBefore() method of the SVGPointList interface inserts a DOMPoint before another item in the list.
Parameters
| Parameter | Type |
|---|---|
newItem | DOMPoint |
index | number |
Returns
removeItem()
removeItem(index): DOMPoint;
The removeItem() method of the SVGPointList interface removes a DOMPoint from the list.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
replaceItem()
replaceItem(newItem, index): DOMPoint;
The replaceItem() method of the SVGPointList interface replaces a DOMPoint in the list.
Parameters
| Parameter | Type |
|---|---|
newItem | DOMPoint |
index | number |
Returns
Properties
length
readonly length: number;
The length read-only property of the SVGPointList interface returns the number of items in the list.
numberOfItems
readonly numberOfItems: number;
The numberOfItems read-only property of the SVGPointList interface returns the number of items in the list.