blockMaxWidth()
Resolve the effective maximum width for a block.
Import
Section titled “Import”import { blockMaxWidth } from "@graphrefly/ts/solutions/reactive-layout";Signature
Section titled “Signature”function blockMaxWidth( blockMaxWidth: number | undefined, maxWidth: number,): numberParameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
blockMaxWidth | number | undefined | Block-specific maximum width. |
maxWidth | number | Layout-wide maximum width. |
Returns
Section titled “Returns”The tighter width constraint.
Example
Section titled “Example”blockMaxWidth(120, 80);Source
Section titled “Source”packages/ts/src/solutions/reactive-layout/utils.ts