Skip to content

Latest commit

 

History

History
67 lines (34 loc) · 1.39 KB

File metadata and controls

67 lines (34 loc) · 1.39 KB

CreateChange

Interface: CreateChange

Defined in: figmaPluginTypes.ts:3071

See

https://www.figma.com/plugin-docs/api/DocumentChange

Extends

Properties

id

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

Inherited from

BaseNodeChange.id


node

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

Inherited from

BaseNodeChange.node


origin

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.

Inherited from

BaseNodeChange.origin


type

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.