Skip to content

Instantly share code, notes, and snippets.

@phated
Created May 29, 2012 21:58
Show Gist options
  • Save phated/2831051 to your computer and use it in GitHub Desktop.
Save phated/2831051 to your computer and use it in GitHub Desktop.
JSON Serialized dojox/gfx object
[
{
"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": "rect",
"x": 541.304347826087,
"y": 66.52173913043478,
"width": 78.69565217391303,
"height": 486.9565217391305,
"r": 0
},
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
{
"shape": {
"type": "rect",
"x": 0,
"y": 0,
"width": 115.21739130434781,
"height": 66.52173913043478,
"r": 0
},
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
{
"shape": {
"type": "rect",
"x": 504.7826086956522,
"y": 0,
"width": 115.21739130434781,
"height": 66.52173913043478,
"r": 0
},
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
{
"shape": {
"type": "rect",
"x": 0,
"y": 553.4782608695652,
"width": 115.21739130434781,
"height": 66.52173913043478,
"r": 0
},
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
{
"shape": {
"type": "rect",
"x": 504.7826086956522,
"y": 553.4782608695652,
"width": 115.21739130434781,
"height": 66.52173913043478,
"r": 0
},
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
{
"shape": {
"type": "rect",
"x": 115.21739130434781,
"y": 0,
"width": 389.5652173913044,
"height": 30,
"r": 0
},
"fill": {
"r": 220,
"g": 220,
"b": 220,
"a": 0.8
}
},
{
"shape": {
"type": "rect",
"x": 115.21739130434781,
"y": 590,
"width": 389.5652173913044,
"height": 30,
"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": "text",
"x": 310,
"y": 605,
"text": "8\"",
"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
}
},
{
"shape": {
"type": "rect",
"x": 78.69565217391303,
"y": 66.52173913043478,
"width": 36.52173913043478,
"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
}
},
{
"shape": {
"type": "rect",
"x": 504.7826086956522,
"y": 66.52173913043478,
"width": 36.52173913043478,
"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
}
},
{
"shape": {
"type": "rect",
"x": 115.21739130434781,
"y": 30,
"width": 389.5652173913044,
"height": 36.52173913043478,
"r": 0
},
"stroke": {
"type": "stroke",
"color": {
"r": 0,
"g": 0,
"b": 0,
"a": 1
},
"style": "solid",
"width": 2,
"cap": "butt",
"join": 4
}
},
{
"shape": {
"type": "rect",
"x": 115.21739130434781,
"y": 553.4782608695652,
"width": 389.5652173913044,
"height": 36.52173913043478,
"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