@figma/widget-typings
Advanced tools
Comparing version 1.2.3 to 1.3.0
@@ -307,4 +307,4 @@ // Figma Widget API version 1, update 1 | ||
export interface ShadowEffect { | ||
type: 'inner-shadow' | 'drop-shadow' | ||
export interface DropShadowEffect { | ||
type: 'drop-shadow' | ||
color: HexCode | Color | ||
@@ -316,4 +316,17 @@ offset: Vector | ||
visible?: boolean | ||
showShadowBehindNode?: boolean | ||
} | ||
export interface InnerShadowEffect { | ||
type: 'inner-shadow' | ||
color: HexCode | Color | ||
offset: Vector | ||
blur: number | ||
blendMode?: BlendMode | ||
spread?: number | ||
visible?: boolean | ||
} | ||
export type ShadowEffect = DropShadowEffect | InnerShadowEffect | ||
export interface BlurEffect { | ||
@@ -330,2 +343,3 @@ type: 'layer-blur' | 'background-blur' | ||
export type StrokeAlign = 'inside' | 'outside' | 'center' | ||
export type StrokeCap = 'none' | 'round' | 'square' | 'arrow-lines' | 'arrow-equilateral' | ||
export type ScaleMode = 'fill' | 'fit' | 'tile' | 'crop' | ||
@@ -461,2 +475,3 @@ export type Overflow = 'visible' | 'hidden' | 'scroll' | ||
strokeAlign?: StrokeAlign | ||
strokeDashPattern?: number[] | ||
} | ||
@@ -549,2 +564,4 @@ | ||
strokeWidth?: number | ||
strokeDashPattern?: number[] | ||
strokeCap?: StrokeCap | ||
length: number | 'fill-parent' | ||
@@ -551,0 +568,0 @@ direction?: 'horizontal' | 'vertical' |
{ | ||
"name": "@figma/widget-typings", | ||
"version": "1.2.3", | ||
"version": "1.3.0", | ||
"description": "Typings for the Figma Widget API", | ||
@@ -5,0 +5,0 @@ "main": "", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23106
509