Shumoku Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.4.0 · function

portLabelBox

Source

Axis-aligned box of the port's label, or undefined when the port has no label. Mirrors the renderer: - vertical (composite top/bottom): the label runs along the wire, away from the node face, in a 12px-wide strip. - horizontal: classic placement per side (above / below / beside).

portLabelBox(port: ResolvedPort): Bounds | undefined

Parameters

Parameter Type Description Default
port ResolvedPort No additional description.

Returns

Bounds | undefined

libs/@shumoku/core/src/layout/port-geometry.ts:87