16 lines
428 B
Markdown
Raw Permalink Normal View History

# `dapi selection focus`
Pans and zooms the canvas to fit the currently selected nodes in view, framing them with padding; the same focus [`node capture`](../node/capture.md) uses before it captures. No-op if nothing is selected (the canvas is left unchanged).
## Input
None.
## Output
JSON Lines, one per selected node (no output if nothing is selected):
```ts
NodeRef // { id: number; name: string; type: string }
```