SVGPointList

The SVGPointList interface represents a list of SVGPoint objects.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The length read-only property of the SVGPointList interface returns the number of items in the list.

Link copied to clipboard

The numberOfItems read-only property of the SVGPointList interface returns the number of items in the list.

Functions

Link copied to clipboard

The appendItem() method of the SVGPointList interface adds a SVGPoint to the end of the list.

Link copied to clipboard
fun clear()

The clear() method of the SVGPointList interface removes all items from the list.

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

The getItem() method of the SVGPointList interface gets one item from the list at the specified index.

Link copied to clipboard

The initialize() method of the SVGPointList interface clears the list then adds a single new SVGPoint object to the list.

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

The insertItemBefore() method of the SVGPointList interface inserts a SVGPoint before another item in the list.

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

The removeItem() method of the SVGPointList interface removes a SVGPoint from the list.

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

The replaceItem() method of the SVGPointList interface replaces a SVGPoint in the list.