@figma/plugin-typings
Advanced tools
Comparing version 1.11.0 to 1.12.0
@@ -1,2 +0,2 @@ | ||
// Figma Plugin API version 1, update 11 | ||
// Figma Plugin API version 1, update 12 | ||
@@ -474,3 +474,3 @@ declare global { | ||
* If you only need to search immediate children, it is much faster | ||
* to call node.children.filter(callback) | ||
* to call node.children.filter(callback) or node.findChildren(callback) | ||
*/ | ||
@@ -481,3 +481,3 @@ findAll(callback?: (node: SceneNode) => boolean): SceneNode[] | ||
* If you only need to search immediate children, it is much faster | ||
* to call node.children.find(callback) | ||
* to call node.children.find(callback) or node.findChild(callback) | ||
*/ | ||
@@ -502,3 +502,3 @@ findOne(callback: (node: SceneNode) => boolean): SceneNode | null | ||
layoutAlign: "MIN" | "CENTER" | "MAX" // applicable only inside auto-layout frames | ||
layoutAlign: "MIN" | "CENTER" | "MAX" | "STRETCH" // applicable only inside auto-layout frames | ||
@@ -520,6 +520,2 @@ resize(width: number, height: number): void | ||
backgrounds: ReadonlyArray<Paint> // DEPRECATED: use 'fills' instead | ||
layoutGrids: ReadonlyArray<LayoutGrid> | ||
clipsContent: boolean | ||
guides: ReadonlyArray<Guide> | ||
gridStyleId: string | ||
backgroundStyleId: string // DEPRECATED: use 'fillStyleId' instead | ||
@@ -564,4 +560,2 @@ } | ||
interface RelaunchableMixin { | ||
/** PROPOSED API ONLY */ | ||
setRelaunchData(relaunchData: { [command: string]: /* description */ string }): void | ||
@@ -593,2 +587,7 @@ } | ||
layoutGrids: ReadonlyArray<LayoutGrid> | ||
gridStyleId: string | ||
clipsContent: boolean | ||
guides: ReadonlyArray<Guide> | ||
overflowDirection: OverflowDirection | ||
@@ -617,3 +616,3 @@ numberOfFixedChildren: number | ||
* If you only need to search immediate children, it is much faster | ||
* to call node.children.filter(callback) | ||
* to call node.children.filter(callback) or node.findChildren(callback) | ||
*/ | ||
@@ -624,3 +623,3 @@ findAll(callback?: (node: PageNode | SceneNode) => boolean): Array<PageNode | SceneNode> | ||
* If you only need to search immediate children, it is much faster | ||
* to call node.children.find(callback) | ||
* to call node.children.find(callback) or node.findChild(callback) | ||
*/ | ||
@@ -637,2 +636,3 @@ findOne(callback: (node: PageNode | SceneNode) => boolean): PageNode | SceneNode | null | ||
selection: ReadonlyArray<SceneNode> | ||
selectedTextRange: { node: TextNode, start: number, end: number } | null | ||
@@ -706,3 +706,2 @@ backgrounds: ReadonlyArray<Paint> | ||
clone(): TextNode | ||
characters: string | ||
readonly hasMissingFont: boolean | ||
@@ -724,2 +723,6 @@ textAlignHorizontal: "LEFT" | "CENTER" | "RIGHT" | "JUSTIFIED" | ||
characters: string | ||
insertCharacters(start: number, characters: string, useStyle?: "BEFORE" | "AFTER"): void | ||
deleteCharacters(start: number, end: number): void | ||
getRangeFontSize(start: number, end: number): number | PluginAPI['mixed'] | ||
@@ -726,0 +729,0 @@ setRangeFontSize(start: number, end: number, value: number): void |
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.11.0", | ||
"version": "1.12.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
26261
686