-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariable-unit-rectangular.schema.json
58 lines (58 loc) · 2.25 KB
/
variable-unit-rectangular.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
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm/assets/variable-unit-rectangular",
"title": "Rectangular Object (measured in variable unit)",
"type": "object",
"meta:extensible": true,
"description":
"This is an abstract schema for objects of rectangular dimensions and position, with a user-specified unit of measurement. Examples include `Artboard` and `Layer`.",
"definitions": {
"rectangular": {
"properties": {
"xdm:originX": {
"type": "integer",
"title": "Origin X",
"meta:usereditable": false,
"description":
"Origin X position - Base system is cartesian, relative to master page and origin in top, left (X increasing to right, Y increasing downwards)"
},
"xdm:originY": {
"type": "integer",
"title": "Origin Y",
"meta:usereditable": false,
"description":
"Origin Y position - Base system is cartesian, relative to master page and origin in top, left (X increasing to right, Y increasing downwards)"
},
"xdm:width": {
"title": "Width",
"meta:usereditable": false,
"type": "integer",
"exclusiveMinimum": 0,
"description": "Width of the artboard"
},
"xdm:height": {
"title": "Height",
"meta:usereditable": false,
"type": "integer",
"exclusiveMinimum": 0,
"description": "Height of the artboard"
},
"xdm:unit": {
"title": "Unit",
"meta:usereditable": false,
"type": "string",
"default": "pixel",
"description":
"Unit used for artboard coordinates (`originX`, `originY`, `width` and `height`). For example: `inch`, `mm`, `pixel`, `pica`, `point` (default is `pixel`)"
}
}
}
},
"meta:status": "experimental"
}