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. |
||
|---|---|---|
| .. | ||
| library-capabilities.test.ts | ||
| properties.test.ts | ||
| sync-layout-scope.test.ts | ||
| variants.test.ts | ||