instance.swapComponent(component) points an instance at another component, as in Figma, through the graph's shared swap that the editor's variant picker uses. It asserts editability, so an instance inside a read-only library definition cannot be swapped, and joins the instance surface check against @figma/plugin-typings. |
||
|---|---|---|
| .. | ||
| app/shell/support | ||
| e2e | ||
| engine | ||
| figma | ||
| fixtures | ||
| helpers | ||
| AGENTS.md | ||