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 41

January 12, 2022

New:

  • Added figma.skipInvisibleInstanceChildren to make all node properties and methods skip over invisible nodes (and their descendants) inside instances. This can make operations like document traversal much faster.
  • Added node.findAllWithCriteria for much faster document traversal when searching by node types. The return value is narrowly typed to match the provided types, which makes it much easier to use node-type-specific properties. For example, node.findAllWithCriteria({ types: ['TEXT'] }) will return TextNode[] instead of the more generic SceneNode[] from findAll.
  • Added ability to enumerate plugin-data stored on a node:
    • node.getPluginDataKeys() Allows enumeration of plugin-data stored on a node
    • node.getSharedPluginDataKeys(namespace) Allows enumeration of shared plugin-data stored on a node in a given namespace
  • Style objects now support all plugin-data functionality
  • New functionality for the clientStorage API
    • deleteAsync allows deleting stored data
    • keysAsync allows enumerating all stored data
  • node.getRelaunchData allows reading what relaunch data was stored using node.setRelaunchData
Recent Posts
Learn more about Figma