Kind: global interface
- Layer
- .borders :
Array.<Border> - .fills :
Array.<Fill> - .shadows :
Array.<Shadow> - .textStyles :
Array.<Object> - .type :
String - .name :
String - .exportable :
Boolean - .rotation :
Number - .opacity :
Number - .blendMode :
Fill.BLEND_MODES - .borderRadius :
Number - .blur :
Blur - .rect :
Object - .content :
String - .assets :
Array.<Object>
- .borders :
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
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 |
Type of the layer, text or shape.
Kind: instance property of Layer
Name of the layer.
Kind: instance property of Layer
Indicates whether the layer has assets or not.
Kind: instance property of Layer
Rotation of to the layer.
Kind: instance property of Layer
Opacity of the layer, [0, 1].
Kind: instance property of Layer
Blend mode of the layer, defined in Fill.BLEND_MODES.
Kind: instance property of Layer
Border radius of the layer.
Kind: instance property of Layer
Blur applied to the layer.
Kind: instance property of Layer
Bounding rectangle of the layer.
Kind: instance property of Layer
Properties
| Name | Type |
|---|---|
| x | Number |
| y | Number |
| width | Number |
| height | Number |
Text of the text layer.
Kind: instance property of Layer
Assets of the layer.
Kind: instance property of Layer
Properties
| Name | Type |
|---|---|
| density | string |
| format | string |