Skip to content

quilt-core / Function: joinRectangle() ​

joinRectangle(root, receiverId, otherId, rectangles): { area: RegionRect; root: Node; selected: Group[]; } | undefined

Defined in: packages/core/src/join-rectangle.ts:7

Plan a rectangular join from measured layout geometry, without mutating the tree. Only complete groups are selected. A plan exists only when the remaining tiles can still be represented by binary splits without moving their boundaries.

Parameters ​

root ​

Node

receiverId ​

string

otherId ​

string

rectangles ​

Record<string, RegionRect>

Returns ​

{ area: RegionRect; root: Node; selected: Group[]; } | undefined

Documentation for released Quilt 0.11.0.