Skip to content

Latest commit

 

History

History
138 lines (98 loc) · 3.98 KB

File metadata and controls

138 lines (98 loc) · 3.98 KB

Layer

Kind: global interface

layer.borders : Array.<Border>

Borders of the layer.

Kind: instance property of Layer

layer.fills : Array.<Fill>

Fills applied to the layer.

Kind: instance property of Layer

layer.shadows : Array.<Shadow>

Shadows applied to the layer.

Kind: instance property of Layer

layer.textStyles : Array.<Object>

Text styles of the text layer, with ranges.

Kind: instance property of Layer

Properties

Name Type
range Object
range.location Number
range.length Number
style TextStyle

layer.type : String

Type of the layer, text or shape.

Kind: instance property of Layer

layer.name : String

Name of the layer.

Kind: instance property of Layer

layer.exportable : Boolean

Indicates whether the layer has assets or not.

Kind: instance property of Layer

layer.rotation : Number

Rotation of to the layer.

Kind: instance property of Layer

layer.opacity : Number

Opacity of the layer, [0, 1].

Kind: instance property of Layer

layer.blendMode : Fill.BLEND_MODES

Blend mode of the layer, defined in Fill.BLEND_MODES.

Kind: instance property of Layer

layer.borderRadius : Number

Border radius of the layer.

Kind: instance property of Layer

layer.blur : Blur

Blur applied to the layer.

Kind: instance property of Layer

layer.rect : Object

Bounding rectangle of the layer.

Kind: instance property of Layer

Properties

Name Type
x Number
y Number
width Number
height Number

layer.content : String

Text of the text layer.

Kind: instance property of Layer

layer.assets : Array.<Object>

Assets of the layer.

Kind: instance property of Layer

Properties

Name Type
density string
format string