add region
canvas_add_regionDraw a labelled translucent area behind existing nodes to show they belong together, without reparenting them. Use this when the grouping is a reading aid rather than real containment, when areas would need to overlap, or when a node belongs to two ideas at once — canvas_group_nodes cannot express any of those because it moves nodes into the zone. Call canvas_measure_canvas first and size the region to enclose the nodes with roughly 24px of margin.
Operates on one Datadef diagram, named by diagram_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regions | Yes | ||
| diagram_id | Yes | Canvas id, from list_diagrams, create_diagram, or create_blank_diagram. |