Skip to main content
Version: Next

getSimpleShapeAnchorPointIndex

Callable

  • getSimpleShapeAnchorPointIndex(anchor: string): number

  • Looks up the edit point index for a simple-shape anchor.


    Parameters

    • anchor: string

      Anchor name such as top, bottom-right, or rotator.

    Returns number

    Edit point index, or -1 when the anchor is not recognized.