Millwork
    Preparing search index...

    Class ShapeArray<T>

    A read-only list of shapes. Change it with add, remove and move, so each change goes through the owner and is tracked.

    Type Parameters

    • T

    Hierarchy

    • Array<T>
      • ShapeArray

    Implements

    Indexable

    • [n: number]: T
    Index
    • get "[species]"(): ArrayConstructor

      Makes array methods such as map give a plain Array, not a ShapeArray.

      Returns ArrayConstructor

    • Adds a member (a shape, or its field values) at an index, or at the end.

      Parameters

      • member: object | T
      • Optionalat: number

      Returns void

    • Removes a member: the shape itself, its key, or its index when there is no key.

      Parameters

      • member: string | number | T

      Returns void