Figma Plugins

Figma Plugins

  • Introduction
  • API Reference
  • Updates

›Recent Posts

Recent Posts

  • Version 1, Update 49
  • Version 1, Update 48
  • Version 1, Update 47
  • Version 1, Update 46
  • Version 1, Update 45

Version 1, Update 39

November 11, 2021

NOTE: These APIs is only available in FigJam

New:

  • Added getPluginData, setPluginData and other pluginData related methods on WidgetNode
  • Added exportSettings and exportAsync on WidgetNode
  • Added CodeBlockNode type. Create a code block with figma.createCodeBlock

Version 1, Update 38

November 3, 2021

New:

  • Added absoluteRenderBounds property for nodes to calculate the actual bounds of a node accounting for drop shadows, thick strokes, and anything else that may fall outside the node's regular bounding box defined in x, y, width, and height.
  • Added fillGeometry and strokeGeometry properties for nodes with shapes (VectorNode, PolygonNode, etc...) to expose paths for object fills and strokes.

Bug Fixes:

  • Fix bug in figma.showUI that allowed plugins to open very small modals hiding the plugin icon and close button. The new minimum dimensions for the plugin UI is 70x0.

Version 1, Update 37

October 11, 2021

new:

  • Added figma.currentUser and figma.activeUsers, which can be viewed in figma api
  • Added WidgetNode, which represents a widget in FigJam
  • Added position option to showUI

Version 1, Update 36

October 8, 2021

New:

  • Added saveVersionHistoryAsync(), which allows your plugin to manually add a checkpoint to the version history

Version 1, Update 35

September 22, 2021

More features added to plugin parameters (which itself is still in beta)!

  • It is now allowed to make all parameters optional
  • The setSuggestions function now supports icons. Check out the updated Svg Inserter for an example
  • You can set a custom error message using setError. This can also be used for validating user typed values and enforcing pre-conditions like selection or document contents. Resizer contains an example for how to do this
  • You can also set custom loading messages setLoadingMessage when accessing network requests
  • Lots of rendering improvements to the parameter UI

Version 1, Update 34

September 8, 2021

New:

  • Support for Multiple Flows! Added flowStartingPoints property for PageNode.

Version 1, Update 33

September 1, 2021

New:

  • Added variantProperties property for ComponentNode and InstanceNode to get variant properties and values for a node.
  • Added variantGroupProperties property for ComponentSetNode to get all variant properties and possible values that exist on a component set.
  • Added setProperties function for InstanceNode to set the variant properties and values for an instance of a variant node.

Version 1, Update 32

August 26, 2021

  • Bugfix: callbacks take an event param again

Version 1, Update 31

August 24, 2021

Introducing FigJam Plugins for public beta! We're introducing a number of APIs and events to enable plugin development in FigJam.

New:

  • editorType is now required in manifests. Specifying an editorType will control the APIs your plugin has access to in each editor, and whether your plugin shows up in Figma Design or FigJam (or both).
  • figma.editorType: returns either figma or figjam and enables you to have conditional logic in your plugin depending on the editor it’s run in.

FigJam Plugins only:

  • Timer support with figma.timer object
  • StickyNode type. Create a StickyNode with createSticky
  • ConnectorNode type. Create a ConnectorNode with createConnector
  • ShapeWithTextNode type. Create a ShapeWithTextNode with createShapeWithText
  • StampNode type.
  • UI addition: In FigJam relaunch buttons are shown in the in-line property menu of a node.
  • UI addition: We added all of the same plugin menus that you have in Figma (e.g. right-click menu, top-left menu, quick actions)

Version 1, Update 30

August 17, 2021

Small tweak to the typings as part of plugin parameters. Made type for values of ParameterValues any.

← PrevNext →
Learn more about Figma