Skip to content

Latest commit

 

History

History
67 lines (34 loc) · 1.35 KB

File metadata and controls

67 lines (34 loc) · 1.35 KB

StyleCreateChange

Interface: StyleCreateChange

Defined in: figmaPluginTypes.ts:3111

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

BaseStyleChange.id


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

BaseStyleChange.origin


style

style: null | BaseStyle

Defined in: figmaPluginTypes.ts:3106

The style that has been updated in the document. This is null for StyleDeleteChange.

Inherited from

BaseStyleChange.style


type

type: "STYLE_CREATE"

Defined in: figmaPluginTypes.ts:3115

The string literal "STYLE_CREATE" representing the type of document change this is. Always check the type before reading other properties.