UNPKG

@create-figma-plugin/utilities

Version:

An extensive library of utility functions for common Figma/FigJam plugin/widget operations

11 lines 360 B
export function getSceneNodeById(id) { const node = figma.getNodeById(id); if (node === null) { throw new Error(`No node found with \`id\`: ${id}`); } if (node.type === 'DOCUMENT' || node.type === 'PAGE') { throw new Error('`node` is not a `SceneNode`'); } return node; } //# sourceMappingURL=get-scene-node-by-id.js.map