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.9.0 to 1.10.0

91

build/main/figmaTypes.d.ts

@@ -68,7 +68,36 @@ export interface Global {

readonly children: ReadonlyArray<Node>;
/** Backgrounds on the node */
/** Background of the node. This is deprecated, as backgrounds for frames are now in the fills field. */
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. */
/** Background color of the node. This is deprecated, as frames now support more than a solid color as a fills. Please use the fills field instead. */
readonly backgroundColor: Color;
/**
* An array of fill paints applied to the node
* @default []
*/
readonly fills: ReadonlyArray<Paint>;
/**
* An array of stroke paints applied to the node
* @default []
*/
readonly strokes: ReadonlyArray<Paint>;
/** The weight of strokes on the node */
readonly strokeWeight: number;
/**
* Position of stroke relative to vector outline, as a string enum
* "INSIDE": stroke drawn inside the shape boundary
* "OUTSIDE": stroke drawn outside the shape boundary
* "CENTER": stroke drawn centered along the shape boundary
*/
readonly strokeAlign: 'INSIDE' | 'OUTSIDE' | 'CENTER';
/**
* Radius of each corner of the frame if a single radius is set for all
* corners
*/
readonly cornerRadius?: number;
/**
* Array of length 4 of the radius of each corner of the frame, starting
* in the top left and proceeding clockwise
*/
readonly rectangleCornerRadii?: [number, number, number, number];
/**
* An array of export settings representing images to export from node

@@ -91,2 +120,14 @@ * @default []

/**
* How the layer is aligned inside an auto-layout frame. This property
* is only provided for direct children of auto-layout frames.
* MIN
* CENTER
* MAX
* STRETCH
* In horizontal auto-layout frames, "MIN" and "MAX" correspond to
* "TOP" and "BOTTOM". * In vertical auto-layout frames, "MIN" and
* "MAX" correspond to "LEFT" and "RIGHT".
*/
readonly layoutAlign?: String;
/**
* Node ID of node to transition to in prototyping

@@ -130,2 +171,32 @@ * @default null

/**
* Whether this layer uses auto-layout to position its children.
* @default NONE
*/
readonly layoutMode?: 'NONE' | 'HORIZONTAL' | 'VERTICAL';
/**
* Whether the counter axis has a fixed length (determined by the user)
* or an automatic length (determined by the layout engine).
* This property is only applicable for auto-layout frames
* @default AUTO
*/
readonly counterAxisSizingMode?: 'FIXED' | 'AUTO';
/**
* The horizontal padding between the borders of the frame and its
* children. This property is only applicable for auto-layout frames.
* @default 0
*/
readonly horizontalPadding?: number;
/**
* The vertical padding between the borders of the frame and its
* children. This property is only applicable for auto-layout frames.
* @default 0
*/
readonly verticalPadding?: number;
/**
* The distance between children of the frame. This property is only
* applicable for auto-layout frames.
* @default 0
*/
readonly itemSpacing?: number;
/**
* An array of layout grids attached to this node (see layout grids section

@@ -137,2 +208,14 @@ * for more details). GROUP nodes do not have this attribute

/**
* Defines the scrolling behavior of the frame, if there exist contents
* outside of the frame boundaries. The frame can either scroll
* vertically, horizontally, or in both directions to the extents of the
* content contained within it. This behavior can be observed in a
* prototype.
* HORIZONTAL_SCROLLING
* VERTICAL_SCROLLING
* HORIZONTAL_AND_VERTICAL_SCROLLING
* @default NONE
*/
readonly overflowDirection?: string;
/**
* An array of effects attached to this node

@@ -148,6 +231,2 @@ * (see effects sectionfor more details)

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

@@ -154,0 +233,0 @@ /** A node of fixed size containing other nodes */

@@ -68,7 +68,36 @@ export interface Global {

readonly children: ReadonlyArray<Node>;
/** Backgrounds on the node */
/** Background of the node. This is deprecated, as backgrounds for frames are now in the fills field. */
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. */
/** Background color of the node. This is deprecated, as frames now support more than a solid color as a fills. Please use the fills field instead. */
readonly backgroundColor: Color;
/**
* An array of fill paints applied to the node
* @default []
*/
readonly fills: ReadonlyArray<Paint>;
/**
* An array of stroke paints applied to the node
* @default []
*/
readonly strokes: ReadonlyArray<Paint>;
/** The weight of strokes on the node */
readonly strokeWeight: number;
/**
* Position of stroke relative to vector outline, as a string enum
* "INSIDE": stroke drawn inside the shape boundary
* "OUTSIDE": stroke drawn outside the shape boundary
* "CENTER": stroke drawn centered along the shape boundary
*/
readonly strokeAlign: 'INSIDE' | 'OUTSIDE' | 'CENTER';
/**
* Radius of each corner of the frame if a single radius is set for all
* corners
*/
readonly cornerRadius?: number;
/**
* Array of length 4 of the radius of each corner of the frame, starting
* in the top left and proceeding clockwise
*/
readonly rectangleCornerRadii?: [number, number, number, number];
/**
* An array of export settings representing images to export from node

@@ -91,2 +120,14 @@ * @default []

/**
* How the layer is aligned inside an auto-layout frame. This property
* is only provided for direct children of auto-layout frames.
* MIN
* CENTER
* MAX
* STRETCH
* In horizontal auto-layout frames, "MIN" and "MAX" correspond to
* "TOP" and "BOTTOM". * In vertical auto-layout frames, "MIN" and
* "MAX" correspond to "LEFT" and "RIGHT".
*/
readonly layoutAlign?: String;
/**
* Node ID of node to transition to in prototyping

@@ -130,2 +171,32 @@ * @default null

/**
* Whether this layer uses auto-layout to position its children.
* @default NONE
*/
readonly layoutMode?: 'NONE' | 'HORIZONTAL' | 'VERTICAL';
/**
* Whether the counter axis has a fixed length (determined by the user)
* or an automatic length (determined by the layout engine).
* This property is only applicable for auto-layout frames
* @default AUTO
*/
readonly counterAxisSizingMode?: 'FIXED' | 'AUTO';
/**
* The horizontal padding between the borders of the frame and its
* children. This property is only applicable for auto-layout frames.
* @default 0
*/
readonly horizontalPadding?: number;
/**
* The vertical padding between the borders of the frame and its
* children. This property is only applicable for auto-layout frames.
* @default 0
*/
readonly verticalPadding?: number;
/**
* The distance between children of the frame. This property is only
* applicable for auto-layout frames.
* @default 0
*/
readonly itemSpacing?: number;
/**
* An array of layout grids attached to this node (see layout grids section

@@ -137,2 +208,14 @@ * for more details). GROUP nodes do not have this attribute

/**
* Defines the scrolling behavior of the frame, if there exist contents
* outside of the frame boundaries. The frame can either scroll
* vertically, horizontally, or in both directions to the extents of the
* content contained within it. This behavior can be observed in a
* prototype.
* HORIZONTAL_SCROLLING
* VERTICAL_SCROLLING
* HORIZONTAL_AND_VERTICAL_SCROLLING
* @default NONE
*/
readonly overflowDirection?: string;
/**
* An array of effects attached to this node

@@ -148,6 +231,2 @@ * (see effects sectionfor more details)

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

@@ -154,0 +233,0 @@ /** A node of fixed size containing other nodes */

2

package.json
{
"name": "figma-js",
"version": "1.9.0",
"version": "1.10.0",
"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