Skip to content

Instantly share code, notes, and snippets.

@shawnbot
Created January 13, 2017 23:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnbot/984b46991fbd32a132cb0518d890fc73 to your computer and use it in GitHub Desktop.
Save shawnbot/984b46991fbd32a132cb0518d890fc73 to your computer and use it in GitHub Desktop.
sketch-node-parser example output
{
"currentPageIndex": null,
"assets": {
"gradients": [],
"colors": [],
"imageCollection": {
"images": {}
},
"images": []
},
"layerStyles": {
"objects": []
},
"pages": [
{
"do_objectID": "28071DE2-ADF3-4CB2-9461-CC476A19D450",
"hasClickThrough": true,
"isFlippedHorizontal": false,
"isFlippedVertical": false,
"isLocked": false,
"isVisible": true,
"nameIsFixed": false,
"rotation": null,
"shouldBreakMaskChain": false,
"zoomValue": 1,
"originalObjectID": null,
"style": {
"endDecorationType": null,
"miterLimit": {},
"startDecorationType": null,
"sharedObjectID": null,
"textStyle": null
},
"frame": {
"x": 0,
"y": 0,
"width": 300,
"height": 300,
"constrainProportions": false
},
"horizontalRulerData": {
"base": null,
"guides": []
},
"exportOptions": {
"shouldTrim": false,
"sizes": [],
"includedLayerIds": [],
"layerOptions": null
},
"layerListExpandedType": null,
"verticalRulerData": {
"base": null,
"guides": []
},
"name": "Page 1",
"layers": [
{
"clippingMaskMode": 0,
"do_objectID": 91,
"hasClickThrough": false,
"hasClippingMask": false,
"isFlippedHorizontal": false,
"isFlippedVertical": false,
"isLocked": false,
"isVisible": true,
"layerListExpandedType": 1,
"name": 51,
"nameIsFixed": false,
"originalObjectID": 0,
"rotation": 0,
"shouldBreakMaskChain": false,
"windingRule": 1,
"frame": {
"x": 56,
"y": 43,
"width": 173,
"height": 152,
"constrainProportions": false
},
"exportOptions": {
"shouldTrim": false,
"sizes": [],
"includedLayerIds": [],
"layerOptions": null
},
"layers": [
{
"booleanOperation": -1,
"do_objectID": 89,
"edited": false,
"fixedRadius": 0,
"hasConvertedToNewRoundCorners": true,
"isFlippedHorizontal": false,
"isFlippedVertical": false,
"isLocked": false,
"isVisible": true,
"layerListExpandedType": 0,
"name": 75,
"nameIsFixed": false,
"rotation": 0,
"shouldBreakMaskChain": false,
"exportOptions": {
"shouldTrim": false,
"sizes": [],
"includedLayerIds": [],
"layerOptions": null
},
"frame": {
"x": 0,
"y": 0,
"width": 173,
"height": 152,
"constrainProportions": false
},
"path": {
"isClosed": true,
"points": [
{
"cornerRadius": 0,
"curveMode": 1,
"hasCurveTo": false,
"curveFrom": "{0, 0}",
"curveTo": "{0, 0}",
"point": "{0, 0}"
},
{
"cornerRadius": 0,
"curveMode": 1,
"hasCurveTo": false,
"curveFrom": "{1, 0}",
"curveTo": "{1, 0}",
"point": "{1, 0}"
},
{
"cornerRadius": 0,
"curveMode": 1,
"hasCurveTo": false,
"curveFrom": "{1, 1}",
"curveTo": "{1, 1}",
"point": "{1, 1}"
},
{
"cornerRadius": 0,
"curveMode": 1,
"hasCurveTo": false,
"curveFrom": "{0, 1}",
"curveTo": "{0, 1}",
"point": "{0, 1}"
}
]
},
"userInfo": null
}
],
"sharedObjectID": null,
"style": {
"endDecorationType": null,
"miterLimit": {},
"startDecorationType": null,
"borders": [
{
"fillType": 0,
"isEnabled": true,
"position": 1,
"thickness": 1,
"color": {
"red": 0.592,
"green": 0.592,
"blue": 0.592,
"alpha": 1
}
}
],
"sharedObjectID": null,
"fills": {
"array": [
{
"isEnabled": true,
"noiseIntensity": 0,
"patternTileScale": 1,
"color": {
"red": 0.847,
"green": 0.847,
"blue": 0.847,
"alpha": 1
},
"image": null,
"fillType": null,
"patternFillType": null
}
]
},
"textStyle": null
},
"userInfo": null
}
],
"userInfo": null,
"grid": null,
"scrollOrigin": "{0, 0}",
"layout": null,
"sharedObjectID": null
}
],
"enableSliceInteraction": true,
"layerTextStyles": {
"objects": []
},
"enableLayerInteraction": true,
"layerSymbols": {
"objects": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment