Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

findContainmentViolations

ソース

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

Find member nodes whose box is not fully inside their container's bounds (shrunk by `pad` on each side). Unknown member ids are ignored — membership resolution is the caller's concern.

findContainmentViolations(boxes: readonly BoxSpec[], containers: readonly ContainerSpec[], pad?: number): ContainmentViolation[]

パラメーター

名前 説明 既定値
boxes readonly BoxSpec[] 追加説明はありません。
containers readonly ContainerSpec[] 追加説明はありません。
pad number 追加説明はありません。 0

戻り値

ContainmentViolation[]

libs/@shumoku/core/src/layout/invariants.ts:110