Skip to content

@jsvision/ui / Placement

Interface: Placement

Defined in: ui/src/view/dsl.ts:199

Where a stack layer sits within the shared overlay box.

Each axis is either 'fill' (span the whole extent) or 'start'/'center'/'end' (align a fixed size given by width/height). An omitted axis defaults to 'fill'. Build one with place or the centered/topRight/bottomRight/topLeft conveniences.

Properties

h?

optional h?: PlaceAxis

Defined in: ui/src/view/dsl.ts:201

Horizontal mode (default 'fill').


height?

optional height?: number

Defined in: ui/src/view/dsl.ts:207

Fixed height in cells for a non-fill vertical axis.


v?

optional v?: PlaceAxis

Defined in: ui/src/view/dsl.ts:203

Vertical mode (default 'fill').


width?

optional width?: number

Defined in: ui/src/view/dsl.ts:205

Fixed width in cells for a non-fill horizontal axis.