CreateChange
Defined in: figmaPluginTypes.ts:3071
https://www.figma.com/plugin-docs/api/DocumentChange
id:
string
Defined in: figmaPluginTypes.ts:3036
The id of the node / style that is subject to the document change. The same that is on node.id or style.id
node:
SceneNode|RemovedNode
Defined in: figmaPluginTypes.ts:3049
The node that changed in the document. If the node has been removed since the event happened this will be a RemovedNode
origin:
"LOCAL"|"REMOTE"
Defined in: figmaPluginTypes.ts:3040
Where the change originates from. If the change is 'LOCAL' it is from the user running the plugin and if it is 'REMOTE' it is from a different user in the file.
type:
"CREATE"
Defined in: figmaPluginTypes.ts:3075
The string literal "CREATE" representing the type of document change this is. Always check the type before reading other properties.