style

style.setNodeCollect

setNodeCollect(nodeId: string, on: boolean): void

Set or clear the collect flag on a node. Undoable via SetNodeCollectCommand.

nodeIdstringTarget node identifier.
onbooleantrue to mark as collected, false to clear.

Returns: void