// The model-space box enclosing every element of the collection
eles.boundingBox(options?: { includeLabels?: boolean }): { x1: number; y1: number; x2: number; y2: number; w: number; h: number; }The model-space box enclosing every element of the collection.
Labels are included by default. Node label terms are exact (the laid text block at its anchor plus text-box padding); edge label terms are conservative (a rotation-safe radius about both endpoints), so a box may be slightly larger than the ink but never smaller. The box also covers ghost offsets, overlay/underlay padding and outlines.
| Name | Description |
|---|---|
options: { includeLabels?: boolean }? |
|
Fields of options
| Name | Description |
|---|---|
includeLabels: boolean? |
{ x1: number; y1: number; x2: number; y2: number; w: number; h: number; }{ x1, y1, x2, y2, w, h } in model coordinates
on an unknown option key — a typo must not silently change fit semantics
Collection#labelBoundingBox for the label box alone