MotionScript

@motion-script/core


@motion-script/core / AnchorKey

Type Alias: AnchorKey

AnchorKey = "center" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "topCenter" | "bottomCenter" | "centerLeft" | "centerRight"

Defined in: attributes/layout/anchor.ts:8

Named positions inside a box: the nine anchor keys (center, topLeft, …). Each maps to a per-axis point in [-1, 1]: x is -1 (left) … +1 (right), y is -1 (bottom) … +1 (top) — the y-up convention used throughout layout.