Skip to content

Instantly share code, notes, and snippets.

@mwoodworth
Created October 21, 2011 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mwoodworth/1304481 to your computer and use it in GitHub Desktop.
Save mwoodworth/1304481 to your computer and use it in GitHub Desktop.
Upverter Open JSON Shapes
"shapes": [
{
"start_angle": 0.5,
"end_angle": 1.5,
"type": "arc",
"radius": 10,
"x": 10,
"y": -10
}
]
"shapes": [
{
"control1": {
"x": 9,
"y": -10
},
"control2": {
"x": 11,
"y": -10
},
"p1": {
"x": 3,
"y": -12
},
"p2": {
"x": 17,
"y": -12
},
"type": "bezier"
}
]
"shapes": [
{
"radius": 3,
"type": "circle",
"x": 10,
"y": -27
}
]
"shapes": [
{
"align": "left",
"rotation": 0.0,
"text": "1",
"x": 9,
"y": -14,
"type": "label"
}
]
"shapes": [
{
"p1": {
"x": 13,
"y": -5
},
"p2": {
"x": 18,
"y": -15
},
"type": "line"
}
]
"shapes": [
{
"points": [
{
"x": 13,
"y": -5
},
{
"x": 45,
"y": -10
},
{
"x": 45,
"y": -30
},
{
"x": 13,
"y": -15
}
],
"type": "polygon"
}
]
"shapes": [
{
"height": 100,
"type": "rectangle",
"width": 110,
"x": 5,
"y": -5
}
]
"shapes": [
{
"height": 100,
"radius": 3,
"type": "rounded_rectangle",
"width": 110,
"x": 5,
"y": -5,
}
]
@machinaut
Copy link

Label shape example is missing a type.

@mwoodworth
Copy link
Author

Thanks, Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment