Skip to content

@jsvision/ui / ButtonGroupMetrics

Interface: ButtonGroupMetrics

Defined in: ui/src/controls/button-group.ts:35

Intrinsic terminal-cell geometry for one logical Button group.

The metrics describe the smallest unclipped rectangle for the selected wrapping policy. A host may allocate more room, but should not allocate less unless it intentionally provides a hard clipping bound.

Properties

buttonWidth

readonly buttonWidth: number

Defined in: ui/src/controls/button-group.ts:37

Equal width assigned to every Button face.


columnCount

readonly columnCount: number

Defined in: ui/src/controls/button-group.ts:39

Number of Button columns in the widest composed row.


height

readonly height: number

Defined in: ui/src/controls/button-group.ts:45

Minimum height of the complete group, including wrapped-row gaps.


rowCount

readonly rowCount: number

Defined in: ui/src/controls/button-group.ts:41

Number of composed rows.


width

readonly width: number

Defined in: ui/src/controls/button-group.ts:43

Minimum width of the complete group, including horizontal gaps.