@figma/plugin-typings
Advanced tools
Comparing version 1.37.0 to 1.38.0
@@ -1,2 +0,2 @@ | ||
// Figma Plugin API version 1, update 37 | ||
// Figma Plugin API version 1, update 38 | ||
@@ -72,2 +72,3 @@ declare global { | ||
createShapeWithText(): ShapeWithTextNode | ||
createCodeBlock(): CodeBlockNode | ||
/** | ||
@@ -262,3 +263,3 @@ * [DEPRECATED]: This API often fails to create a valid boolean operation. Use figma.union, figma.subtract, figma.intersect and figma.exclude instead. | ||
interface ShadowEffect { | ||
interface DropShadowEffect { | ||
readonly type: "DROP_SHADOW" | "INNER_SHADOW" | ||
@@ -271,4 +272,15 @@ readonly color: RGBA | ||
readonly blendMode: BlendMode | ||
readonly showShadowBehindNode?: boolean | ||
} | ||
interface InnerShadowEffect { | ||
readonly type: "DROP_SHADOW" | "INNER_SHADOW" | ||
readonly color: RGBA | ||
readonly offset: Vector | ||
readonly radius: number | ||
readonly spread?: number | ||
readonly visible: boolean | ||
readonly blendMode: BlendMode | ||
} | ||
interface BlurEffect { | ||
@@ -280,3 +292,3 @@ readonly type: "LAYER_BLUR" | "BACKGROUND_BLUR" | ||
type Effect = ShadowEffect | BlurEffect | ||
type Effect = DropShadowEffect | InnerShadowEffect | BlurEffect | ||
@@ -643,2 +655,3 @@ type ConstraintType = "MIN" | "CENTER" | "MAX" | "STRETCH" | "SCALE" | ||
readonly height: number | ||
readonly absoluteRenderBounds: Rect | null | ||
constrainProportions: boolean | ||
@@ -679,2 +692,3 @@ | ||
dashPattern: ReadonlyArray<number> | ||
strokeGeometry: VectorPaths | ||
} | ||
@@ -685,2 +699,3 @@ | ||
fillStyleId: string | PluginAPI['mixed'] | ||
fillGeometry: VectorPaths | ||
} | ||
@@ -1004,2 +1019,8 @@ interface GeometryMixin extends MinimalStrokesMixin, MinimalFillsMixin { | ||
interface CodeBlockNode extends OpaqueNodeMixin, SceneNodeMixin, MinimalBlendMixin, ExportMixin { | ||
readonly type: "CODE_BLOCK" | ||
code: string | ||
codeLanguage: 'TYPESCRIPT' | 'CPP' | 'RUBY' | 'CSS' | 'JAVASCRIPT' | 'HTML' | 'JSON' | 'GRAPHQL' | 'PYTHON' | 'GO' | 'SQL' | 'SWIFT' | 'KOTLIN' | 'RUST' | ||
} | ||
interface LayerSublayerNode { | ||
@@ -1049,2 +1070,3 @@ fills: Paint[] | PluginAPI['mixed'] | ||
ShapeWithTextNode | | ||
CodeBlockNode | | ||
StampNode | | ||
@@ -1051,0 +1073,0 @@ WidgetNode |
{ | ||
"name": "@figma/plugin-typings", | ||
"version": "1.37.0", | ||
"version": "1.38.0", | ||
"description": "Typings for the Figma Plugin API", | ||
@@ -5,0 +5,0 @@ "main": "", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38890
941
1