Skip to main content

Version 1, Update 3

This update only contains bug fixes.

  • Pressing ESC no longer closes the plugin automatically when a UI is shown. The plugin is now responsible for handling the ESC event now. This allows plugins to use ESC for editing operations inside the plugin UI.
  • Fix a bug where invalid styles or components could be sometimes be created accidentally by plugins.

Version 1, Update 2

This update only contains bug fixes.

  • Previously, assigning a textStyleId to a text node required you to load the existing font on the text node, even though it is being replaced. This is now no longer necessary.
  • text.setRangeFontName now requires you to load all existing fonts used in the text nodes, as they might still be present after the text node gets modified.
  • Fix a bug where text.setRangeXYZ functions would clear the textStyleId of characters outside the range that was being modified.

Version 1, Update 1

This is the first update to the plugins API since launch! This update does not contain breaking changes, so all plugins receive these updates automatically. Please refer to Stability and Updates for more on our update and versioning policies.

  • Added figma.union, figma.subtract, figma.intersect, figma.exclude to replace figma.createBooleanOperation().
  • Added figma.notify as an easy way to show messages to the user
  • Added figma.getLocalPaintStyles, figma.getLocalGridStyles, figma.getLocalTextStyles, figma.getLocalEffectStyles to enumerate local styles.
  • Fix a bug where the "MAX" layout grid type was not accepted when setting the value.