/
articulation.stage.schema.json
78 lines (78 loc) · 3.24 KB
/
articulation.stage.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
{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Articulation Stage",
"type": "object",
"description": "One stage of a model articulation definition.",
"allOf": [ { "$ref": "glTFProperty.schema.json" } ],
"properties": {
"name": {
"type": "string",
"pattern": "^[^\\s]+$",
"description": "The name of this articulation stage. The articulation stage name must be unique only within the containing articulation. Articulation Stage names may not contain spaces.",
"minLength": 1
},
"type": {
"description": "The type of motion applied by this articulation stage.",
"anyOf": [
{
"enum": [ "xTranslate" ],
"description": "The stage value is a translation along the node's X axis."
},
{
"enum": [ "yTranslate" ],
"description": "The stage value is a translation along the node's Y axis."
},
{
"enum": [ "zTranslate" ],
"description": "The stage value is a translation along the node's Z axis."
},
{
"enum": [ "xRotate" ],
"description": "The stage value is a counter-clockwise rotation in degrees about the node's +X axis."
},
{
"enum": [ "yRotate" ],
"description": "The stage value is a counter-clockwise rotation in degrees about the node's +Y axis."
},
{
"enum": [ "zRotate" ],
"description": "The stage value is a counter-clockwise rotation in degrees about the node's +Z axis."
},
{
"enum": [ "xScale" ],
"description": "The stage value is a scaling factor to multiply along the node's X axis."
},
{
"enum": [ "yScale" ],
"description": "The stage value is a scaling factor to multiply along the node's Y axis."
},
{
"enum": [ "zScale" ],
"description": "The stage value is a scaling factor to multiply along the node's Z axis."
},
{
"enum": [ "uniformScale" ],
"description": "The stage value is uniform scaling factor to apply to the node."
},
{
"type": "string"
}
]
},
"minimumValue": {
"type": "number",
"description": "The minimum value for the range of motion of this articulation stage."
},
"maximumValue": {
"type": "number",
"description": "The maximum value for the range of motion of this articulation stage."
},
"initialValue": {
"type": "number",
"description": "The initial value for this articulation stage."
},
"extensions": { },
"extras": { }
},
"required": [ "name", "type", "minimumValue", "maximumValue", "initialValue" ]
}