Version 1, Update 7
(Also included: update 6)
New:
- We updated the typings and replaced instances of
| symbol
withPluginAPI['mixed']
for all properties that can return the specialfigma.mixed
value. This new syntax also fixes the problem where TypeScript's control flow analysis was not able to understandif (node.prop !== figma.mixed)
and narrow down the type. - We added "Use Developer VM" option in the plugin developer menu that gives plugin code access to the browser's debugger during development. Read more.
- We fixed a bug where the
selectionchanged
event could sometimes fire multiple times when the selection changed.
Proposed API (how do they work?):
- We decided not to go forward with the optional
position
option infigma.showUI()
. Instead, plugins now always remember their last opened position by default. - Most prototyping properties are now available, read-only, under the proposed flag! Read more about these new properties. As always, let the Figma team know if these properties are working for you.