Type: object
Attribute | Type | Description |
---|---|---|
id | string | The unique id of the version |
creator | User (Optional) | - |
image_url | string (Optional) | URL of the image for the version |
thumbnails | Thumbnails (Optional) | - |
source | Source | Source application of the version |
width | integer | Width of the version |
height | integer | Height of the version |
background_color | Color Data (Optional) | - |
density_scale | number | Pixel density |
links | Link[] | - |
grid | Grid (Optional) | - |
layers | Layer[] | Layers of the component version |
assets | Asset[] | Assets of the component version |
created | integer | The unix timestamp when the component version was created |
Example
{
"id": "5dbad85a76ea51c1f35b6f69",
"created": 1517184000,
"creator": {
"id": "5d9caaecb4a3fa9bc9718686",
"email": "[email protected]",
"username": "zozo",
"emotar": "🍎",
"avatar": "http://placekitten.com/200/300",
"last_seen": 1616739240
},
"image_url": "http://placekitten.com/2560/1920",
"thumbnails": {
"small": "http://placekitten.com/256/256",
"medium": "http://placekitten.com/512/512",
"large": "http://placekitten.com/1024/1024"
},
"width": 2560,
"height": 1920,
"density_scale": 2,
"source": "sketch",
"background_color": {
"source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
"r": 143,
"g": 152,
"b": 5,
"a": 1
},
"links": [
{
"rect": {
"x": 0,
"y": 0,
"width": 40,
"height": 40
},
"destination": {
"name": "Artboard",
"type": "screen"
}
}
],
"layers": [
{
"id": "5db81e73e1e36ee19f138c1a",
"source_id": "2FF14739-F1CD-4221-A9C1-0EA296C67AD1",
"type": "shape",
"name": "First rectangle in group",
"rect": {
"x": 0,
"y": 0,
"width": 40,
"height": 40,
"absolute": {
"x": 0,
"y": 0
}
},
"fills": [
{
"type": "color",
"color": {
"source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
"r": 143,
"g": 152,
"b": 5,
"a": 1
}
}
],
"borders": [
{
"thickness": 1,
"position": "inside",
"fill": {
"type": "color",
"color": {
"source_id": "0BEBFEB3-A107-4D1D-A3B0-77D1FBD35F01",
"r": 143,
"g": 152,
"b": 5,
"a": 1
}
}
}
],
"opacity": 1,
"blend_mode": "normal",
"border_radius": 0,
"rotation": 0,
"exportable": false
}
],
"assets": [
{
"layer_source_id": "55CC0025-C3C1-429E-92B2-610D56368473",
"display_name": "rectangle",
"layer_name": "Rectangle",
"contents": [
{
"url": "http://placekitten.com/100/200",
"format": "png",
"density": 1
}
]
}
]
}