style

style.setNodeSizes

setNodeSizes(updates: object[]): Promise<void>

Set the display size of multiple nodes in a single undoable step.

All SetNodeSize commands are wrapped in a single labeled transaction — one undo step. Does not emit "style:changed".

updatesobject[]Array of { id, size } pairs.

Returns: Promise<void>

Example

await api.style.setNodeSizes([{ id: "s1", size: 15 }, { id: "s2", size: 25 }]);