Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

getLinkWidthForMode

ソース

APIの説明は英語のcanonical sourceを表示しています。

Visual line width for a link under a width mode. Same precedence as `getLinkWidth` (explicit style > bandwidth > type > default). Because a core `Link` is one physical link, this IS the per-strand width — a LAG renders as N parallel links each at its own width, never as one merged stroke (v3 "railway discipline": no two services share a drawn line).

getLinkWidthForMode(link: Link, mode?: LinkWidthMode): number

パラメーター

名前 説明 既定値
link Link 追加説明はありません。
mode LinkWidthMode 追加説明はありません。 'log'

戻り値

number

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