@figma/plugin-typings
Advanced tools
Comparing version 1.62.0 to 1.63.0
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.62.0", | ||
"version": "1.63.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -146,5 +146,5 @@ /* plugin-typings are auto-generated. Do not update them directly. See plugin-docs/ for instructions. */ | ||
base64Decode(data: string): Uint8Array | ||
getFileThumbnailNode(): FrameNode | ComponentNode | ComponentSetNode | null | ||
getFileThumbnailNode(): FrameNode | ComponentNode | ComponentSetNode | SectionNode | null | ||
setFileThumbnailNodeAsync( | ||
node: FrameNode | ComponentNode | ComponentSetNode | null, | ||
node: FrameNode | ComponentNode | ComponentSetNode | SectionNode | null, | ||
): Promise<void> | ||
@@ -360,4 +360,8 @@ } | ||
| 'lineHeight' | ||
| 'leadingTrim' | ||
| 'paragraphIndent' | ||
| 'paragraphSpacing' | ||
| 'listSpacing' | ||
| 'hangingPunctuation' | ||
| 'hangingList' | ||
| 'letterSpacing' | ||
@@ -459,4 +463,8 @@ | 'textAlignHorizontal' | ||
| 'lineHeight' | ||
| 'leadingTrim' | ||
| 'paragraphIndent' | ||
| 'paragraphSpacing' | ||
| 'listSpacing' | ||
| 'hangingPunctuation' | ||
| 'hangingList' | ||
| 'textCase' | ||
@@ -688,2 +696,3 @@ | 'paint' | ||
} | ||
declare type LeadingTrim = 'CAP_HEIGHT' | 'NONE' | ||
declare type HyperlinkTarget = { | ||
@@ -829,3 +838,9 @@ type: 'URL' | 'NODE' | ||
| 'CUSTOM_CUBIC_BEZIER' | ||
| 'GENTLE' | ||
| 'QUICK' | ||
| 'BOUNCY' | ||
| 'SLOW' | ||
| 'CUSTOM_SPRING' | ||
readonly easingFunctionCubicBezier?: EasingFunctionBezier | ||
readonly easingFunctionSpring?: EasingFunctionSpring | ||
} | ||
@@ -838,2 +853,8 @@ interface EasingFunctionBezier { | ||
} | ||
interface EasingFunctionSpring { | ||
mass: number | ||
stiffness: number | ||
damping: number | ||
initialVelocity: number | ||
} | ||
declare type OverflowDirection = 'NONE' | 'HORIZONTAL' | 'VERTICAL' | 'BOTH' | ||
@@ -1118,2 +1139,5 @@ declare type OverlayPositionType = | ||
paragraphSpacing: number | ||
listSpacing: number | ||
hangingPunctuation: boolean | ||
hangingList: boolean | ||
fontSize: number | PluginAPI['mixed'] | ||
@@ -1126,2 +1150,3 @@ fontName: FontName | PluginAPI['mixed'] | ||
lineHeight: LineHeight | PluginAPI['mixed'] | ||
leadingTrim: LeadingTrim | PluginAPI['mixed'] | ||
hyperlink: HyperlinkTarget | null | PluginAPI['mixed'] | ||
@@ -1578,4 +1603,8 @@ characters: string | ||
lineHeight: LineHeight | ||
leadingTrim: LeadingTrim | ||
paragraphIndent: number | ||
paragraphSpacing: number | ||
listSpacing: number | ||
hangingPunctuation: boolean | ||
hangingList: boolean | ||
textCase: TextCase | ||
@@ -1582,0 +1611,0 @@ } |
54318
1696