page_fit
Resize the SVG page to fit the drawing or specified IDs plus a margin. Moves all content together, preserving top-left origin and resizing backgrounds and connectors.
Instructions
Resize the page to fit the drawing (or only ids) plus margin (one number, [vertical, horizontal]
or [top, right, bottom, left], user units). All content moves together so the page keeps its 0,0
top-left; full-page background rects are resized, connectors follow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | No | ||
| doc_id | No | ||
| margin | No | ||
| preview | No |