Skip to content

AnchorAxis

Defined in: ui/layout/anchor.ts:25

Per-axis anchor mode (a preset is one of these per axis).

Center: 1

Defined in: ui/layout/anchor.ts:29

Centre via auto margins on both edges.


End: 2

Defined in: ui/layout/anchor.ts:31

Pin the far edge (right / bottom).


Start: 0

Defined in: ui/layout/anchor.ts:27

Pin the near edge (left / top).


Stretch: 3

Defined in: ui/layout/anchor.ts:33

Pin both edges; the size becomes auto so the insets drive it.