Skip to content

Instantly share code, notes, and snippets.

@m3talsmith
Forked from phated/gist:2831051
Created May 29, 2012 22:14
Show Gist options
  • Save m3talsmith/2831127 to your computer and use it in GitHub Desktop.
Save m3talsmith/2831127 to your computer and use it in GitHub Desktop.
JSON Serialized dojox/gfx object
{
"shapes": [
"shape": {
"type": "image",
"x": -78.81720430107526,
"y": 30,
"width": 777.6344086021505,
"height": 560,
"src": "https://super_cool_url.com/images/4fc523c4fa0b3510de00000f/lightning-original.jpg?1338319812",
"transform": {
"xx": 0.48631204015056645,
"xy": -0.408386920513429,
"yx": 0.408386920513429,
"yy": 0.48631204015056645,
"dx": 350.8432129124874,
"dy": 272.64332219416144
},
"children": [
"shape": {
"type": "rect",
"x": 0,
"y": 66.52173913043478,
"width": 78.69565217391303,
"height": 486.9565217391305,
"r": 0,
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
"shape": {
"type": "text",
"x": 551.304347826087,
"y": 310,
"text": "10\"",
"align": "start",
"decoration": "none",
"rotated": false,
"kerning": true,
"fill": {
"r": 0,
"g": 0,
"b": 0,
"a": 1
}
},
"shape": {
"type": "rect",
"x": 115.21739130434781,
"y": 66.52173913043478,
"width": 389.5652173913044,
"height": 486.9565217391305,
"r": 0,
"stroke": {
"type": "stroke",
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 1,
"style": "solid",
"width": 2,
"cap": "butt",
"join": 4
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment