Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
173 lines (173 sloc) 5.86 KB
{
"type":"object",
"required":true,
"properties":{
"previewInstructions": {
"type":"object",
"required":false,
"properties":{
"ratio":{
"title":"Ratio of source image dimensions to frontend container",
"description":"Ratio = sourceImage / frontendCanvas",
"type":"number",
"required":false
}
}
},
"dimensions": {
"type":"object",
"required":true,
"properties":{
"height": {
"type":"number",
"required":true
},
"width": {
"type":"number",
"required":true
}
}
},
"finalDimensions": {
"type":"object",
"required":true,
"properties":{
"height": {
"type":"number",
"required":true
},
"width": {
"type":"number",
"required":true
}
}
},
"instructions": {
"type":"object",
"required":true,
"properties":{
"crop": {
"type":"object",
"required":false,
"properties":{
"from": {
"type":"object",
"required":true,
"properties":{
"x": {
"type":"number",
"required":true
},
"y": {
"type":"number",
"required":true
}
}
},
"size": {
"type":"object",
"required":true,
"properties":{
"height": {
"type":"number",
"required":true
},
"width": {
"type":"number",
"required":true
}
}
}
}
},
"draw": {
"type":"array",
"required":true,
"items":
{
"type": [
{
"type": "object",
"required":false,
"properties":{
"circle": {
"type":"object",
"required":true,
"properties":{
"color": {
"type":"string",
"required":true
},
"from": {
"type":"object",
"required":true,
"properties":{
"x": {
"type":"number",
"required":true
},
"y": {
"type":"number",
"required":true
}
}
},
"radius": {
"type":"number",
"required":true
}
}
}
}
},
{
"type": "object",
"required":false,
"properties":{
"rectangle": {
"type":"object",
"required":true,
"properties":{
"color": {
"type":"string",
"required":true
},
"from": {
"type":"object",
"required":true,
"properties":{
"x": {
"type":"number",
"required":true
},
"y": {
"type":"number",
"required":true
}
}
},
"size": {
"type":"object",
"required":true,
"properties":{
"width": {
"type":"number",
"required":true
},
"height":{
"type":"number",
"required":true
}
}
}
}
}
}
}
]
}
}
}
}
}
}
You can’t perform that action at this time.