Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@figma/widget-typings

Package Overview
Dependencies
Maintainers
26
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma/widget-typings - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

21

index.d.ts

@@ -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'

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc