Socket
Socket
Sign inDemoInstall

figma-js

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figma-js - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

63

build/main/figmaTypes.d.ts

@@ -7,3 +7,3 @@ export interface Global {

/** whether or not the node is visible on the canvas */
readonly visible: boolean;
readonly visible?: boolean;
/** the type of the node, refer to table below for details */

@@ -60,4 +60,6 @@ readonly type: NodeType;

readonly backgroundColor: Color;
/** Node ID that corresponds to the start frame for prototypes */
readonly prototypeStartNodeID: string | null;
/** An array of export settings representing images to export from the canvas */
readonly exportSettings: ReadonlyArray<ExportSetting>;
readonly exportSettings?: ReadonlyArray<ExportSetting>;
}

@@ -69,2 +71,4 @@ export interface FrameBase extends Global {

readonly background: ReadonlyArray<Paint>;
/** Background color of the node. This is deprecated, as frames now support more than a solid color as a background. Please use the background field instead. */
readonly backgroundColor: Color;
/**

@@ -74,3 +78,3 @@ * An array of export settings representing images to export from node

*/
readonly exportSettings: ReadonlyArray<ExportSetting>;
readonly exportSettings?: ReadonlyArray<ExportSetting>;
/**

@@ -85,3 +89,3 @@ * How this node blends with nodes behind it in the scene

*/
readonly preserveRatio: boolean;
readonly preserveRatio?: boolean;
/** Horizontal and vertical layout constraints for node */

@@ -93,3 +97,3 @@ readonly constraints: LayoutConstraint;

*/
readonly transitionNodeID: string | null;
readonly transitionNodeID?: string | null;
/**

@@ -99,3 +103,3 @@ * The duration of the prototyping transition on this node (in milliseconds)

*/
readonly transitionDuration: number | null;
readonly transitionDuration?: number | null;
/**

@@ -105,3 +109,3 @@ * The easing curve used in the prototyping transition on this node

*/
readonly transitionEasing: EasingType | null;
readonly transitionEasing?: EasingType | null;
/**

@@ -111,3 +115,3 @@ * Opacity of the node

*/
readonly opacity: number;
readonly opacity?: number;
/** Bounding box of the node in absolute space coordinates */

@@ -136,3 +140,3 @@ readonly absoluteBoundingBox: Rect;

*/
readonly layoutGrids: ReadonlyArray<LayoutGrid>;
readonly layoutGrids?: ReadonlyArray<LayoutGrid>;
/**

@@ -148,7 +152,7 @@ * An array of effects attached to this node

*/
readonly isMask: boolean;
readonly isMask?: boolean;
/**
* Styles this node uses from the global `styles`
*/
readonly styles: StylesObject;
readonly styles?: StylesObject;
}

@@ -168,3 +172,3 @@ /** A node of fixed size containing other nodes */

*/
readonly exportSettings: ReadonlyArray<ExportSetting>;
readonly exportSettings?: ReadonlyArray<ExportSetting>;
/**

@@ -179,3 +183,3 @@ * How this node blends with nodes behind it in the scene

*/
readonly preserveRatio: boolean;
readonly preserveRatio?: boolean;
/**

@@ -189,3 +193,3 @@ * Horizontal and vertical layout constraints for node

*/
readonly transitionNodeID: string | null;
readonly transitionNodeID?: string | null;
/**

@@ -195,3 +199,3 @@ * The duration of the prototyping transition on this node (in milliseconds)

*/
readonly transitionDuration: number | null;
readonly transitionDuration?: number | null;
/**

@@ -201,3 +205,3 @@ * The easing curve used in the prototyping transition on this node

*/
readonly transitionEasing: EasingType | null;
readonly transitionEasing?: EasingType | null;
/**

@@ -207,3 +211,3 @@ * Opacity of the node

*/
readonly opacity: number;
readonly opacity?: number;
/** Bounding box of the node in absolute space coordinates */

@@ -235,3 +239,3 @@ readonly absoluteBoundingBox: Rect;

*/
readonly isMask: boolean;
readonly isMask?: boolean;
/**

@@ -269,3 +273,3 @@ * An array of fill paints applied to the node

*/
readonly styles: StylesObject;
readonly styles?: StylesObject;
}

@@ -306,4 +310,6 @@ /** A vector network, consisting of vertices and edges */

readonly type: 'RECTANGLE';
/** Radius of each corner of the rectangle */
readonly cornerRadius: number;
/** Radius of each corner of the rectangle if a single radius is set for all corners */
readonly cornerRadius?: number;
/** Array of length 4 of the radius of each corner of the rectangle, starting in the top left and proceeding clockwise */
readonly rectangleCornerRadii?: [number, number, number, number];
}

@@ -482,3 +488,3 @@ /** A text box */

*/
readonly visible: boolean;
readonly visible?: boolean;
/**

@@ -489,3 +495,3 @@ * Overall opacity of paint (colors within the paint can also have opacity

*/
readonly opacity: number;
readonly opacity?: number;
/** Solid color of the paint */

@@ -583,2 +589,8 @@ readonly color?: Color;

readonly lineHeightUnit: 'PIXELS' | 'FONT_SIZE_%' | 'INTRINSIC_%';
/** Text casing applied to the node, default is the original casing */
readonly textCase?: 'UPPER' | 'LOWER' | 'TITLE';
/** Text decoration applied to the node, default is none */
readonly textDecoration?: 'STRIKETHROUGH' | 'UNDERLINE';
/** Line height as a percentage of the font size. Only returned when lineHeightPercent is not 100. */
readonly lineHeightPercentFontSize?: number;
}

@@ -589,3 +601,3 @@ /**

*/
export interface Component {
export interface ComponentMetadata {
/** The componens key */

@@ -648,3 +660,3 @@ readonly key: string;

readonly components: {
readonly [key: string]: Component;
readonly [key: string]: ComponentMetadata;
};

@@ -659,2 +671,3 @@ readonly styles: {

readonly thumbnailUrl: string;
readonly version: string;
}

@@ -661,0 +674,0 @@ export interface FileImageResponse {

@@ -7,3 +7,3 @@ export interface Global {

/** whether or not the node is visible on the canvas */
readonly visible: boolean;
readonly visible?: boolean;
/** the type of the node, refer to table below for details */

@@ -60,4 +60,6 @@ readonly type: NodeType;

readonly backgroundColor: Color;
/** Node ID that corresponds to the start frame for prototypes */
readonly prototypeStartNodeID: string | null;
/** An array of export settings representing images to export from the canvas */
readonly exportSettings: ReadonlyArray<ExportSetting>;
readonly exportSettings?: ReadonlyArray<ExportSetting>;
}

@@ -69,2 +71,4 @@ export interface FrameBase extends Global {

readonly background: ReadonlyArray<Paint>;
/** Background color of the node. This is deprecated, as frames now support more than a solid color as a background. Please use the background field instead. */
readonly backgroundColor: Color;
/**

@@ -74,3 +78,3 @@ * An array of export settings representing images to export from node

*/
readonly exportSettings: ReadonlyArray<ExportSetting>;
readonly exportSettings?: ReadonlyArray<ExportSetting>;
/**

@@ -85,3 +89,3 @@ * How this node blends with nodes behind it in the scene

*/
readonly preserveRatio: boolean;
readonly preserveRatio?: boolean;
/** Horizontal and vertical layout constraints for node */

@@ -93,3 +97,3 @@ readonly constraints: LayoutConstraint;

*/
readonly transitionNodeID: string | null;
readonly transitionNodeID?: string | null;
/**

@@ -99,3 +103,3 @@ * The duration of the prototyping transition on this node (in milliseconds)

*/
readonly transitionDuration: number | null;
readonly transitionDuration?: number | null;
/**

@@ -105,3 +109,3 @@ * The easing curve used in the prototyping transition on this node

*/
readonly transitionEasing: EasingType | null;
readonly transitionEasing?: EasingType | null;
/**

@@ -111,3 +115,3 @@ * Opacity of the node

*/
readonly opacity: number;
readonly opacity?: number;
/** Bounding box of the node in absolute space coordinates */

@@ -136,3 +140,3 @@ readonly absoluteBoundingBox: Rect;

*/
readonly layoutGrids: ReadonlyArray<LayoutGrid>;
readonly layoutGrids?: ReadonlyArray<LayoutGrid>;
/**

@@ -148,7 +152,7 @@ * An array of effects attached to this node

*/
readonly isMask: boolean;
readonly isMask?: boolean;
/**
* Styles this node uses from the global `styles`
*/
readonly styles: StylesObject;
readonly styles?: StylesObject;
}

@@ -168,3 +172,3 @@ /** A node of fixed size containing other nodes */

*/
readonly exportSettings: ReadonlyArray<ExportSetting>;
readonly exportSettings?: ReadonlyArray<ExportSetting>;
/**

@@ -179,3 +183,3 @@ * How this node blends with nodes behind it in the scene

*/
readonly preserveRatio: boolean;
readonly preserveRatio?: boolean;
/**

@@ -189,3 +193,3 @@ * Horizontal and vertical layout constraints for node

*/
readonly transitionNodeID: string | null;
readonly transitionNodeID?: string | null;
/**

@@ -195,3 +199,3 @@ * The duration of the prototyping transition on this node (in milliseconds)

*/
readonly transitionDuration: number | null;
readonly transitionDuration?: number | null;
/**

@@ -201,3 +205,3 @@ * The easing curve used in the prototyping transition on this node

*/
readonly transitionEasing: EasingType | null;
readonly transitionEasing?: EasingType | null;
/**

@@ -207,3 +211,3 @@ * Opacity of the node

*/
readonly opacity: number;
readonly opacity?: number;
/** Bounding box of the node in absolute space coordinates */

@@ -235,3 +239,3 @@ readonly absoluteBoundingBox: Rect;

*/
readonly isMask: boolean;
readonly isMask?: boolean;
/**

@@ -269,3 +273,3 @@ * An array of fill paints applied to the node

*/
readonly styles: StylesObject;
readonly styles?: StylesObject;
}

@@ -306,4 +310,6 @@ /** A vector network, consisting of vertices and edges */

readonly type: 'RECTANGLE';
/** Radius of each corner of the rectangle */
readonly cornerRadius: number;
/** Radius of each corner of the rectangle if a single radius is set for all corners */
readonly cornerRadius?: number;
/** Array of length 4 of the radius of each corner of the rectangle, starting in the top left and proceeding clockwise */
readonly rectangleCornerRadii?: [number, number, number, number];
}

@@ -482,3 +488,3 @@ /** A text box */

*/
readonly visible: boolean;
readonly visible?: boolean;
/**

@@ -489,3 +495,3 @@ * Overall opacity of paint (colors within the paint can also have opacity

*/
readonly opacity: number;
readonly opacity?: number;
/** Solid color of the paint */

@@ -583,2 +589,8 @@ readonly color?: Color;

readonly lineHeightUnit: 'PIXELS' | 'FONT_SIZE_%' | 'INTRINSIC_%';
/** Text casing applied to the node, default is the original casing */
readonly textCase?: 'UPPER' | 'LOWER' | 'TITLE';
/** Text decoration applied to the node, default is none */
readonly textDecoration?: 'STRIKETHROUGH' | 'UNDERLINE';
/** Line height as a percentage of the font size. Only returned when lineHeightPercent is not 100. */
readonly lineHeightPercentFontSize?: number;
}

@@ -589,3 +601,3 @@ /**

*/
export interface Component {
export interface ComponentMetadata {
/** The componens key */

@@ -648,3 +660,3 @@ readonly key: string;

readonly components: {
readonly [key: string]: Component;
readonly [key: string]: ComponentMetadata;
};

@@ -659,2 +671,3 @@ readonly styles: {

readonly thumbnailUrl: string;
readonly version: string;
}

@@ -661,0 +674,0 @@ export interface FileImageResponse {

{
"name": "figma-js",
"version": "1.8.0",
"version": "1.8.1",
"description": "A simple wrapper for the Figma API",

@@ -5,0 +5,0 @@ "main": "build/main/index.js",

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