SVGPointList

The SVGPointList interface represents a list of DOMPoint objects.

MDN Reference

Properties

Link copied to clipboard
open external 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
external val numberOfItems: Int

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

Functions

Link copied to clipboard
external fun appendItem(newItem: SVGPoint): SVGPoint

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

Link copied to clipboard
external fun clear()

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

Link copied to clipboard
open operator external fun get(index: Int): SVGPoint
Link copied to clipboard
external fun getItem(index: Int): SVGPoint

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

Link copied to clipboard
external fun initialize(newItem: SVGPoint): SVGPoint

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

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

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

Link copied to clipboard
external fun removeItem(index: Int): SVGPoint

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

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

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