Skip to main content

Interface: UiStretchAxis

Defined in: ui/types/ui-axis.ts:43

A stretch-anchored axis: anchorMin/anchorMax mark a span of the parent's rect on this axis, so the element resizes with the parent, with margin added to (or, if negative, subtracted from) that span.

Properties​

anchorMax​

anchorMax: number

Defined in: ui/types/ui-axis.ts:50

Normalized upper anchor bound within the parent's rect on this axis.


anchorMin​

anchorMin: number

Defined in: ui/types/ui-axis.ts:47

Normalized lower anchor bound within the parent's rect on this axis.


kind​

kind: "stretch"

Defined in: ui/types/ui-axis.ts:44


margin​

margin: number

Defined in: ui/types/ui-axis.ts:56

Margin added to the anchor span's size on this axis, in marginUnit.


marginUnit?​

optional marginUnit?: UiAxisSizeUnit

Defined in: ui/types/ui-axis.ts:59

The unit margin is expressed in. See UiAxisSizeUnit.


pivot​

pivot: number

Defined in: ui/types/ui-axis.ts:53

Normalized origin within the element's own rect on this axis.