Version 1, Update 111
Bug fixes:
- The type definition for CodegenPreferences.unit now uses uppercase string values instead of lowercase string values
Bug fixes:
We're adding the following new node types and properties in beta:
The node types and properties in beta can be used with Figma Design and Figma Draw.
Some exciting news for codegen plugins! Thanks to your feedback, we've extended the figma.codegen.on callback timeout from 3s to 15s.
For more details, see:
New:
We've updated our Plugin API to support Annotation Categories, enabling developers to create organized and structured annotations with their plugins. Plugin API users can now:
This update builds upon our previous annotations support, giving you more control over how annotations are categorized and displayed in your plugins.
For more information, see:
We're making some changes to plugin data storage.
New:
setSharedPluginData and setSharedPluginData have new per-entry 100 kB limitsBug fixes:
We've added a timeout to the figma.codegen.on callback. Now, if code generation takes longer than 3 seconds, it will automatically stop and an error message will be displayed in the codegen panel.
For more information, see:
To help developers enhance decks and presentations, Figma Slides now supports plugins! You can use the new API features to effectively enable users to create beautiful, functional slide decks.
New:
figma.editorType can now return slides when a plugin is running in Figma Slides.figma.viewport.slidesMode can be used to toggle between grid view or single-slide view.figma.currentPage.focusedSlide identifies the slide currently focused on in the interface.figma.getSlideGrid() returns the slide grid, a 2D representation of slides within a deck.figma.setSlideGrid() is used to reorder slides in the grid.getSlideTransition() gets the current transition for a given SLIDE node.setSlideTransition() is used to set the transition for a given SLIDE node.For more information, see the Working in Slides guide.
Figma now supports proportional resizing via the Lock aspect ratio option. This replaces the legacy constrainProportions option. constrainProportions maintains backwards compatibility by setting the new targetAspectRatio field, but we encourage you to use the new property.
Previously, createPage could incorrectly create more pages than supported by Figma's Starter plan. This issue has been fixed.
New:
Figma now supports customizing underlines. The following changes were made to support getting and setting new underline features: