@figma/plugin-typings
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -1,2 +0,2 @@ | ||
// Figma Plugin API version 1, update 8 | ||
// Figma Plugin API version 1, update 9 | ||
@@ -422,2 +422,10 @@ declare global { | ||
type OverlayPositionType = "CENTER" | "TOP_LEFT" | "TOP_CENTER" | "TOP_RIGHT" | "BOTTOM_LEFT" | "BOTTOM_CENTER" | "BOTTOM_RIGHT" | "MANUAL" | ||
type OverlayBackground = | ||
{ readonly type: "NONE" } | | ||
{ readonly type: "SOLID_COLOR", readonly color: RGBA } | ||
type OverlayBackgroundInteraction = "NONE" | "CLOSE_ON_CLICK_OUTSIDE" | ||
//////////////////////////////////////////////////////////////////////////////// | ||
@@ -472,2 +480,4 @@ // Mixins | ||
layoutAlign: "MIN" | "CENTER" | "MAX" // applicable only inside auto-layout frames | ||
resize(width: number, height: number): void | ||
@@ -542,4 +552,14 @@ resizeWithoutConstraints(width: number, height: number): void | ||
layoutMode: "NONE" | "HORIZONTAL" | "VERTICAL" | ||
counterAxisSizingMode: "FIXED" | "AUTO" // applicable only if layoutMode != "NONE" | ||
horizontalPadding: number // applicable only if layoutMode != "NONE" | ||
verticalPadding: number // applicable only if layoutMode != "NONE" | ||
itemSpacing: number // applicable only if layoutMode != "NONE" | ||
overflowDirection: OverflowDirection // PROPOSED API ONLY | ||
numberOfFixedChildren: number // PROPOSED API ONLY | ||
readonly overlayPositionType: OverlayPositionType // PROPOSED API ONLY | ||
readonly overlayBackground: OverlayBackground // PROPOSED API ONLY | ||
readonly overlayBackgroundInteraction: OverlayBackgroundInteraction // PROPOSED API ONLY | ||
} | ||
@@ -546,0 +566,0 @@ |
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
24699
640