Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Slice

A rectangular region of the canvas that can be exported

Hierarchy

Index

Properties

Readonly absoluteBoundingBox

absoluteBoundingBox: Rect

Bounding box of the node in absolute space coordinates

Readonly exportSettings

exportSettings: ReadonlyArray<ExportSetting>

An array of export settings representing images to export from this node

Readonly id

id: string

a string uniquely identifying this node within the document

Readonly name

name: string

the name given to the node by the user in the tool.

Optional Readonly pluginData

pluginData: any

data written by plugins that is visible only to the plugin that wrote it. Requires the pluginData to include the ID of the plugin.

Optional Readonly relativeTransform

relativeTransform: Transform

The top two rows of a matrix that represents the 2D transform of this node relative to its parent. The bottom row of the matrix is implicitly always (0, 0, 1). Use to transform coordinates in geometry. Only present if geometry=paths is passed

Optional Readonly sharedPluginData

sharedPluginData: any

data written by plugins that is visible to all plugins. Requires the pluginData parameter to include the string "shared".

Optional Readonly size

size: Vector2

Width and height of element. This is different from the width and height of the bounding box in that the absolute bounding box represents the element after scaling and rotation. Only present if geometry=paths is passed

Readonly type

type: "SLICE"

Optional Readonly visible

visible: undefined | false | true

whether or not the node is visible on the canvas

Generated using TypeDoc