Kind: global interface
- Layer
- .type :
String
- .shapeType :
String
- .name :
String
- .sourceId :
String
- .componentSourceId :
String
- .rect :
Object
- .layout :
Layout
- .constraints :
LayerConstraints
- .layoutAlignment :
Layout.ALIGNMENT
- .layoutGrow : [
Number
] - .fills :
Array<Fill>
- .borders :
Array<Border>
- .shadows :
Array<Shadow>
- .blur :
Blur
- .opacity :
Number
- .blendMode :
Fill.BLEND_MODES
- .borderRadius :
Number
- .rotation :
Number
- .exportable :
Boolean
- .assets :
Array<Object>
- .parent :
Layer
- .version :
Version
- .content :
String
- .textStyles :
Array<Object>
- .layers :
Array<Layer>
- .componentName :
String
- .inspectable :
Boolean
- .cornerRadius :
CornerRadius
- .styleName :
String
- .styleSourceId :
String
- .textStyleName :
String
- .textStyleSourceId :
String
- .maxHeight :
Number
- .maxWidth :
Number
- .minHeight :
Number
- .minWidth :
Number
- .maxLines :
Number
- .textTruncation :
String
- .type :
Type of the layer, text
, shape
or group
.
Kind: instance property of Layer
Shape type of the shape layer, rectangle
or ellipse
.
Kind: instance property of Layer
Name of the layer.
Kind: instance property of Layer
Id of the layer in the source design document.
Kind: instance property of Layer
Id of the related component in the source design document.
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 |
layer.layout : Layout
Layout properties of the layer.
Kind: instance property of Layer
layer.constraints : LayerConstraints
Layout constraints of the layer.
Kind: instance property of Layer
Alignment of the layer, defined in Layout.ALIGNMENT.
Kind: instance property of Layer
Grow rate of the layer. This property specifies how much of the remaining space in the parent layer should be assigned to the item. Can be zero or a positive number.
Kind: instance property of Layer
layer.fills : Array<Fill>
Fills applied to the layer.
Kind: instance property of Layer
layer.borders : Array<Border>
Borders of the layer.
Kind: instance property of Layer
layer.shadows : Array<Shadow>
Shadows applied to the layer.
Kind: instance property of Layer
layer.blur : Blur
Blur applied 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
Rotation of to the layer.
Kind: instance property of Layer
Indicates whether the layer has assets or not.
Kind: instance property of Layer
Assets of the layer.
Kind: instance property of Layer
Properties
Name | Type |
---|---|
density | string |
format | string |
layer.parent : Layer
Parent layer of the layer.
Kind: instance property of Layer
layer.version : Version
Version of the screen or component containing the layer.
Kind: instance property of Layer
Text of the text 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.start | Number |
range.end | Number |
textStyle | TextStyle |
layer.layers : Array<Layer>
Child layers of the group layer.
Kind: instance property of Layer
Name of the component the group layer is referencing.
Kind: instance property of Layer
Whether the layer is inspectable in Zeplin.
Kind: instance property of Layer
layer.cornerRadius : CornerRadius
Corner radius of the layer.
Kind: instance property of Layer
Shared style name of the layer.
Kind: instance property of Layer
Shared style source identifier of the layer.
Kind: instance property of Layer
Shared text style name of the layer.
Kind: instance property of Layer
Shared text style identifier of the layer.
Kind: instance property of Layer
Max height of the layer.
Kind: instance property of Layer
Max width of the layer.
Kind: instance property of Layer
Min height of the layer.
Kind: instance property of Layer
Min width of the layer.
Kind: instance property of Layer
Max lines of the text layer.
Kind: instance property of Layer
Determines how long text should be truncated for the text layers. Possible value is end
.
Kind: instance property of Layer