Version 1, Update 41
New:
- Added
figma.skipInvisibleInstanceChildrento 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.findAllWithCriteriafor 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
clientStorageAPIdeleteAsyncallows deleting stored datakeysAsyncallows enumerating all stored data
node.getRelaunchDataallows reading what relaunch data was stored usingnode.setRelaunchData