MotionScript

@motion-script/core


@motion-script/core / FlexMeasureEntry

Interface: FlexMeasureEntry<C>

Defined in: layout/flex.ts:37

Type Parameters

C

C extends FlexChild = FlexChild

Properties

child

child: C

Defined in: layout/flex.ts:38


flex?

optional flex?: number

Defined in: layout/flex.ts:47

Sanitized main-axis flex weight; 0 for non-flexible-main entries. Set by measureFlex; layoutFlex never reads it, so callers that construct entries directly for layout may omit it.


gapScale?

optional gapScale?: number

Defined in: layout/flex.ts:54

Sanitized per-child gap weight in [0, 1] (see FlexChild.gapScale). Set by measureFlex so layoutFlex — which receives entries, not children — can weight the gaps around this child without re-reading the child. Undefined → treated as 1 by both passes.


height

height: number

Defined in: layout/flex.ts:40


isFlexibleMain

isFlexibleMain: boolean

Defined in: layout/flex.ts:41


width

width: number

Defined in: layout/flex.ts:39