Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
136 additions
and 5 deletions.
- +7 −5 framer/Importer.coffee
- BIN test/static/ExternalDocument/Screens.sketch
- +20 −0 test/static/ExternalDocument/Screens@1x.out.json
- BIN .../static/ExternalDocument/Screens@1x/images/Layer-screenA-C03716FB-BF3B-4059-8178-197728793CDA.png
- BIN .../static/ExternalDocument/Screens@1x/images/Layer-screenB-216BB552-1D6F-46DC-9454-8290DCC7E144.png
- +52 −0 test/static/ExternalDocument/Screens@1x/layers.json
- +54 −0 test/static/ExternalDocument/Screens@1x/layers.json.js
- +3 −0 test/tests/ImporterTest.coffee
Binary file not shown.
@@ -0,0 +1,20 @@ | ||
{ | ||
"screenB": { | ||
"frame": { | ||
"x": 0, | ||
"y": 0, | ||
"width": 375, | ||
"height": 667 | ||
}, | ||
"subLayerNames": [] | ||
}, | ||
"screenA": { | ||
"frame": { | ||
"x": 475, | ||
"y": -200, | ||
"width": 375, | ||
"height": 667 | ||
}, | ||
"subLayerNames": [] | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,52 @@ | ||
[ | ||
{ | ||
"children": [], | ||
"id": "216BB552-1D6F-46DC-9454-8290DCC7E144", | ||
"image": { | ||
"frame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 443, | ||
"y": 600 | ||
}, | ||
"path": "images/Layer-screenB-216BB552-1D6F-46DC-9454-8290DCC7E144.png" | ||
}, | ||
"imageType": "png", | ||
"kind": "artboard", | ||
"layerFrame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 443, | ||
"y": 600 | ||
}, | ||
"maskFrame": null, | ||
"metadata": {}, | ||
"name": "screenB", | ||
"visible": true | ||
}, | ||
{ | ||
"children": [], | ||
"id": "C03716FB-BF3B-4059-8178-197728793CDA", | ||
"image": { | ||
"frame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 918, | ||
"y": 400 | ||
}, | ||
"path": "images/Layer-screenA-C03716FB-BF3B-4059-8178-197728793CDA.png" | ||
}, | ||
"imageType": "png", | ||
"kind": "artboard", | ||
"layerFrame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 918, | ||
"y": 400 | ||
}, | ||
"maskFrame": null, | ||
"metadata": {}, | ||
"name": "screenA", | ||
"visible": false | ||
} | ||
] |
@@ -0,0 +1,54 @@ | ||
|
||
window.__imported__ = window.__imported__ || {}; | ||
window.__imported__["Screens/layers.json.js"] = [ | ||
{ | ||
"children": [], | ||
"id": "216BB552-1D6F-46DC-9454-8290DCC7E144", | ||
"image": { | ||
"frame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 443, | ||
"y": 600 | ||
}, | ||
"path": "images/Layer-screenB-216BB552-1D6F-46DC-9454-8290DCC7E144.png" | ||
}, | ||
"imageType": "png", | ||
"kind": "artboard", | ||
"layerFrame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 443, | ||
"y": 600 | ||
}, | ||
"maskFrame": null, | ||
"metadata": {}, | ||
"name": "screenB", | ||
"visible": true | ||
}, | ||
{ | ||
"children": [], | ||
"id": "C03716FB-BF3B-4059-8178-197728793CDA", | ||
"image": { | ||
"frame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 918, | ||
"y": 400 | ||
}, | ||
"path": "images/Layer-screenA-C03716FB-BF3B-4059-8178-197728793CDA.png" | ||
}, | ||
"imageType": "png", | ||
"kind": "artboard", | ||
"layerFrame": { | ||
"height": 667, | ||
"width": 375, | ||
"x": 918, | ||
"y": 400 | ||
}, | ||
"maskFrame": null, | ||
"metadata": {}, | ||
"name": "screenA", | ||
"visible": false | ||
} | ||
] |