SVGLengthList

The SVGLengthList interface defines a list of SVGLength objects.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The length property of the SVGLengthList interface returns the number of items in the list.

Link copied to clipboard

The numberOfItems property of the SVGLengthList interface returns the number of items in the list.

Functions

Link copied to clipboard

The appendItem() method of the SVGLengthList interface inserts a new item at the end of the list.

Link copied to clipboard
fun clear()

The clear() method of the SVGLengthList interface clears all existing items from the list, with the result being an empty list.

Link copied to clipboard
open operator fun get(index: Int): SVGLength
open operator fun get(key: Symbol.iterator): () -> JsIterator<SVGLength>
Link copied to clipboard
fun getItem(index: Int): SVGLength

The getItem() method of the SVGLengthList interface returns the specified item from the list.

Link copied to clipboard

The initialize() method of the SVGLengthList interface clears all existing items from the list and re-initializes the list to hold the single item specified by the parameter.

Link copied to clipboard
fun insertItemBefore(newItem: SVGLength, index: Int): SVGLength

The insertItemBefore() method of the SVGLengthList interface inserts a new item into the list at the specified position.

Link copied to clipboard
open inline operator fun iterator(): Iterator<SVGLength>
Link copied to clipboard
fun removeItem(index: Int): SVGLength

The removeItem() method of the SVGLengthList interface removes an existing item at the given index from the list.

Link copied to clipboard
fun replaceItem(newItem: SVGLength, index: Int): SVGLength

The replaceItem() method of the SVGLengthList interface replaces an existing item in the list with a new item.