- # SelectionService
- 用于控制选择的节点
- [> API Detail](https://flowgram.ai/auto-docs/core/classes/SelectionService.html)
- ## Usage
- ```tsx pure
- // Listen Selection Change
- ctx.selection.onSelectionChanged((nodes) => {
- })
- // Select All Nodes
- ctx.selection.selection = ctx.document.getAllNodes()
- ```
|