-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
123 lines (123 loc) · 3.51 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
{
"definitions" : {
"dimensions" : {
"oneOf": [
{
"type": "string",
"pattern": "auto\\b"
},
{"type": "number"}
]
},
"resizing_algorithm": {
"type": "string",
"pattern": "(RESIZE_NEAREST_NEIGHBOR\\b|RESIZE_BILINEAR\\b|RESIZE_BICUBIC\\b|RESIZE_HERMITE\\b|RESIZE_BEZIER\\b)"
},
"horizontal_alignment": {
"type": "string",
"pattern": "(HORIZONTAL_ALIGN_LEFT\\b|HORIZONTAL_ALIGN_CENTER\\b|HORIZONTAL_ALIGN_RIGHT\\b)"
},
"vertical_alignment": {
"type": "string",
"pattern": "(VERTICAL_ALIGN_TOP\\b|VERTICAL_ALIGN_MIDDLE\\b|VERTICAL_ALIGN_BOTTOM\\b)"
}
},
"properties": {
"resize" : {
"type": "object",
"properties": {
"width": {
"$ref": "#/definitions/dimensions"
},
"height": {
"$ref": "#/definitions/dimensions"
},
"mode": {
"$ref": "#/definitions/resizing_algorithm"
}
},
"required" : ["width", "height"]
},
"contain": {
"type": "object",
"properties" : {
"width": {
"$ref": "#/definitions/dimensions"
},
"height": {
"$ref": "#/definitions/dimensions"
},
"valign": {
"$ref": "#/definitions/vertical_alignment"
},
"halign": {
"$ref": "#/definitions/horizontal_alignment"
},
"mode": {
"$ref": "#/definitions/resizing_algorithm"
}
}
},
"cover": {
"type": "object",
"properties" : {
"width": {
"$ref": "#/definitions/dimensions"
},
"height": {
"$ref": "#/definitions/dimensions"
},
"valign": {
"$ref": "#/definitions/vertical_alignment"
},
"halign": {
"$ref": "#/definitions/horizontal_alignment"
},
"mode": {
"$ref": "#/definitions/resizing_algorithm"
}
}
},
"crop": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
}
}
},
"opacity": {
"type": "object",
"properties": {
"opacity": {
"type": "number",
"minumum": 0,
"maximum": 1
}
}
},
"fade": {
"type": "object",
"properties": {
"opacity": {
"type": "number",
"minumum": 0,
"maximum": 1
}
}
},
"sepia" : {
"type": "boolean"
}
},
"additionalProperties": false
}