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 returnTextNode[]
instead of the more genericSceneNode[]
fromfindAll
. - Added ability to enumerate plugin-data stored on a node:
node.getPluginDataKeys()
Allows enumeration of plugin-data stored on a nodenode.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
APIdeleteAsync
allows deleting stored datakeysAsync
allows enumerating all stored data
node.getRelaunchData
allows reading what relaunch data was stored usingnode.setRelaunchData