Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

getLinkWidth

Source

Compute the visual line width for a link. Single source of truth — used by layout, routing, and rendering.

getLinkWidth(link: Link): number

Parameters

Parameter Type Description Default
link Link No additional description.

Returns

number

libs/@shumoku/core/src/layout/link-utils.ts:190