Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions plugin-api-standalone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6249,6 +6249,13 @@ interface BaseNodeMixin extends PluginDataMixin, DevResourcesMixin {
* Note: This property uses a set of heuristics to determine if a node is an asset. At a high level an icon is a small vector graphic and an image is a node with an image fill.
*/
readonly isAsset: boolean
/**
* Resolves to a JSON object of CSS properties of the node. This is the same CSS that Figma shows in the inspect panel and is helpful if you are building a [plugin for code generation](https://developers.figma.com/docs/plugins/codegen-plugins).
*
*/
getCSSAsync(): Promise<{
[key: string]: string
}>
/**
* Returns the top-most frame that contains this node. If the node is not inside a frame, this will return undefined.
*
Expand Down
7 changes: 7 additions & 0 deletions plugin-api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6249,6 +6249,13 @@ interface BaseNodeMixin extends PluginDataMixin, DevResourcesMixin {
* Note: This property uses a set of heuristics to determine if a node is an asset. At a high level an icon is a small vector graphic and an image is a node with an image fill.
*/
readonly isAsset: boolean
/**
* Resolves to a JSON object of CSS properties of the node. This is the same CSS that Figma shows in the inspect panel and is helpful if you are building a [plugin for code generation](https://developers.figma.com/docs/plugins/codegen-plugins).
*
*/
getCSSAsync(): Promise<{
[key: string]: string
}>
/**
* Returns the top-most frame that contains this node. If the node is not inside a frame, this will return undefined.
*
Expand Down
Loading