SVGNumberList
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The SVGNumberList
interface defines a list of numbers.
An SVGNumberList
object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.
An SVGNumberList
object is indexable and can be accessed like an array.
Instance properties
length
-
The number of items in the list.
numberOfItems
-
The number of items in the list.
Instance methods
appendItem()
-
Inserts a new item at the end of the list.
clear()
-
Clears all existing items from the list, with the result being an empty list.
initialize()
-
Clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.
getItem()
-
Returns the specified item from the list.
insertItemBefore()
-
Inserts a new item into the list at the specified position.
removeItem()
-
Removes an existing item from the list.
replaceItem()
-
Replaces an existing item in the list with a new item.
Specifications
Specification |
---|
Scalable Vector Graphics (SVG) 2 # InterfaceSVGNumberList |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
SVGNumberList | ||||||||||||
appendItem | ||||||||||||
clear | ||||||||||||
getItem | ||||||||||||
initialize | ||||||||||||
insertItemBefore | ||||||||||||
length | ||||||||||||
numberOfItems | ||||||||||||
removeItem | ||||||||||||
replaceItem |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support