For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface SVGTransformList

The SVGTransformList interface defines a list of SVGTransform objects.

MDN Reference

interface SVGTransformList {
    length: number;
    numberOfItems: number;
    "[iterator]"(): ArrayIterator<SVGTransform>;
    appendItem(newItem: SVGTransform): SVGTransform;
    clear(): void;
    consolidate(): SVGTransform | null;
    createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
    getItem(index: number): SVGTransform;
    initialize(newItem: SVGTransform): SVGTransform;
    insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
    removeItem(index: number): SVGTransform;
    replaceItem(newItem: SVGTransform, index: number): SVGTransform;
    [index: number]: SVGTransform;
}

Indexable

Index
length: number

The length read-only property of the SVGTransformList interface represents the number of items in the list.

MDN Reference

numberOfItems: number

The numberOfItems read-only property of the SVGTransformList interface represents the number of items in the list.

MDN Reference

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

    MDN Reference

    Returns void

  • The consolidate() method of the SVGTransformList interface consolidates the list of separate SVGTransform objects by multiplying the equivalent transformation matrices together to result in a list consisting of a single SVGTransform object of type SVG_TRANSFORM_MATRIX.

    MDN Reference

    Returns SVGTransform | null

  • The createSVGTransformFromMatrix() method of the SVGTransformList interface creates an SVGTransform object which is initialized to a transform of type SVG_TRANSFORM_MATRIX and whose values are the given matrix.

    MDN Reference

    Parameters

    Returns SVGTransform

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

    MDN Reference

    Parameters

    • index: number

    Returns SVGTransform

  • The removeItem() method of the SVGTransformList interface removes an existing item from the list.

    MDN Reference

    Parameters

    • index: number

    Returns SVGTransform

Was this helpful?