Skip to content

Instantly share code, notes, and snippets.

@steveck-chung
Last active September 19, 2019 01:43
Show Gist options
  • Save steveck-chung/8d47c0e299129a17a8e9ebc48a90de8a to your computer and use it in GitHub Desktop.
Save steveck-chung/8d47c0e299129a17a8e9ebc48a90de8a to your computer and use it in GitHub Desktop.
Phase shape data for v3 data model
{
"elements": {
"3:0": {
"currStateId": "fake-cuid",
"id": "3:0",
"isMask": false,
"locked": false,
"name": "Shape",
"parentId": "0:1",
"screenId": "0:1",
"stateIds": ["fake-cuid"],
"type": "SHAPE",
"visible": true
}
},
"states": {
"fake-cuid": {
"blendMode": "NORMAL",
"boundingBox": {
"x": 15,
"y": -171,
"width": 272.457763671875,
"height": 236.88331604003906
},
"geometry": [
{
"pathData": [
{ "type": "MOVE_TO", "params": {"x":25.6066,"y":25.6066} },
{ "type": "CURVE_TO", "params": {"x1":16.1572,"y1":16.1572,"x2":22.8496,"y2":0,"x":36.2132,"y":0} },
{ "type": "LINE_TO", "params": {"x":188.147,"y":0} },
{ "type": "CURVE_TO", "params": {"x1":202.225,"y1":0,"x2":208.548,"y2":17.643,"x":197.675,"y":26.5852} },
{ "type": "LINE_TO", "params": {"x":137.167,"y":76.3484} },
{ "type": "CURVE_TO", "params": {"x1":129.845,"y1":82.3706,"x2":129.876,"y2":93.5909,"x":137.232,"y":99.572} },
{ "type": "LINE_TO", "params": {"x":197.238,"y":148.362} },
{ "type": "CURVE_TO", "params": {"x1":208.193,"y1":157.269,"x2":201.895,"y2":175,"x":187.775,"y":175} },
{ "type": "LINE_TO", "params": {"x":36.5079,"y":175} },
{ "type": "CURVE_TO", "params": {"x1":23.1029,"y1":175,"x2":16.4293,"y2":158.757,"x":25.9621,"y":149.333} },
{ "type": "LINE_TO", "params": {"x":77.2718,"y":98.6063} },
{ "type": "CURVE_TO", "params": {"x1":83.1869,"y1":92.7584,"x2":83.2142,"y2":83.2142,"x":77.3326,"y":77.3326} },
{ "type": "LINE_TO", "params": {"x":25.6066,"y":25.6066} },
{ "type": "CLOSE_PATH" }
],
"windingRule": "NONZERO"
}
],
"borders": [
{
"align": "INSIDE",
"blendMode": "NORMAL",
"color": {"a": 1, "b": 0.1913541555404663, "g": 0.6958333253860474, "r": 0.6857437491416931},
"type": "SOLID",
"visible": true,
"weight": 10,
"offset": 0,
"order": "ABOVE",
"style": []
}
],
"effects": [],
"elemId": "3:0",
"fills": [
{
"blendMode": "NORMAL",
"gradient": {
"handlePositions": [
{"x": 0.5, "y": -3.0616171314629196e-17},
{"x": 0.5, "y": 0.9999999999999999},
{"x": 0, "y": 0}
],
"stops": [
{
"color": {"a": 1, "b": 0.9750000238418579, "g": 0.2145000398159027, "r": 0},
"position": 0
},
{
"color": {"a": 0.8899999856948853, "b": 0.10833333432674408, "g": 0.028058338910341263, "r": 0.005416668951511383},
"position": 1
}
],
},
"type": "GRADIENT_LINEAR",
"opacity": 1,
"visible": true
}
],
"height": 175,
"id": "fake-cuid",
"innerShadows": [],
"name": "Default state",
"opacity": 1,
"pivot": [0.5, 0.5, 0.5],
"shadows": [
{
"blendMode": "NORMAL",
"color": {"a": 0.25, "b": 0, "g": 0, "r": 0},
"offset": {"x": 10, "y": 10},
"blurRadius": 10,
"type": "DROP_SHADOW",
"size": 0,
"visible": true
}
],
"transform": [
[0.9522203207015991, 0.3054119944572449, 411],
[-0.3054119944572449, 0.9522203207015991, 164.24476623535156]
],
"type": "SHAPE_STATE",
"width": 230,
"x": 411,
"y": 94,
"z": 0
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment