@motion-script/core / Anchor
Type Alias: Anchor
Defined in: attributes/layout/anchor.ts:31
A normalised point inside a box — the single value type behind every "which
point of this thing" prop: Node.pivot (what it rotates about), a container's
align (where children sit), a gradient's center (where it emits from) and
an image fill's anchor (which point of the source meets the box).
Those props keep distinct names because they anchor different things; what
they share is this type, this [-1, 1] y-up space, and this vocabulary — so a
value read off one can be handed to another and mean the same place.
Accepts a named position ('center') or an explicit Vector2.