Skip to main content

Version 1, Update 41

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:
  • Style objects now support all plugin-data functionality
  • New functionality for the clientStorage API
  • node.getRelaunchData allows reading what relaunch data was stored using node.setRelaunchData