Skip to content

Commit 05acba7

Browse files
committed
updated props and added default values
1 parent 32c44ec commit 05acba7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+388
-203
lines changed

docs/json/animation.json

+11
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
"description": "Composition Width",
2323
"type": "number"
2424
},
25+
"ddd": {
26+
"title": "3-D",
27+
"description": "Composition has 3-D layers",
28+
"enum": [0, 1],
29+
"type": "number"
30+
},
2531
"h": {
2632
"title": "Height",
2733
"description": "Composition Height",
@@ -32,6 +38,11 @@
3238
"description": "Bodymovin Version",
3339
"type": "string"
3440
},
41+
"nm": {
42+
"title": "Name",
43+
"description": "Composition name",
44+
"type": "string"
45+
},
3546
"layers": {
3647
"title": "Layers",
3748
"description": "List of Composition Layers",

docs/json/effects/angle.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:0.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 1
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/checkBox.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:7.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 7
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/color.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:2.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 2
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/dropDown.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:7.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 7
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/fill.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:21.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 21
2425
},
2526
"ef": {
2627
"title": "Effects",

docs/json/effects/group.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:5.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 5
2425
},
2526
"ef": {
2627
"title": "Effects",

docs/json/effects/index.json

+15-30
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,49 @@
33
"type": "object",
44
"oneOf": [
55
{
6-
"$ref": "#/effects/slider",
7-
"value": 0
6+
"$ref": "#/effects/slider"
87
},
98
{
10-
"$ref": "#/effects/angle",
11-
"value": 1
9+
"$ref": "#/effects/angle"
1210
},
1311
{
14-
"$ref": "#/effects/color",
15-
"value": 2
12+
"$ref": "#/effects/color"
1613
},
1714
{
18-
"$ref": "#/effects/point",
19-
"value": 3
15+
"$ref": "#/effects/point"
2016
},
2117
{
22-
"$ref": "#/effects/checkbox",
23-
"value": 4
18+
"$ref": "#/effects/checkbox"
2419
},
2520
{
26-
"$ref": "#/effects/group",
27-
"value": 5
21+
"$ref": "#/effects/group"
2822
},
2923
{
30-
"$ref": "#/effects/noValue",
31-
"value": 6
24+
"$ref": "#/effects/noValue"
3225
},
3326
{
34-
"$ref": "#/effects/dropDown",
35-
"value": 7
27+
"$ref": "#/effects/dropDown"
3628
},
3729
{
38-
"$ref": "#/effects/customValue",
39-
"value": 9
30+
"$ref": "#/effects/customValue"
4031
},
4132
{
42-
"$ref": "#/effects/layerIndex",
43-
"value": 10
33+
"$ref": "#/effects/layerIndex"
4434
},
4535
{
46-
"$ref": "#/effects/tint",
47-
"value": 20
36+
"$ref": "#/effects/tint"
4837
},
4938
{
50-
"$ref": "#/effects/fill",
51-
"value": 21
39+
"$ref": "#/effects/fill"
5240
},
5341
{
54-
"$ref": "#/effects/stroke",
55-
"value": 22
42+
"$ref": "#/effects/stroke"
5643
},
5744
{
58-
"$ref": "#/effects/tritone",
59-
"value": 23
45+
"$ref": "#/effects/tritone"
6046
},
6147
{
62-
"$ref": "#/effects/proLevels",
63-
"value": 24
48+
"$ref": "#/effects/proLevels"
6449
}
6550
]
6651
}

docs/json/effects/layer.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:0.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 0
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/point.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:2.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 2
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/proLevels.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:23.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 23
2425
},
2526
"ef": {
2627
"title": "Effects",

docs/json/effects/slider.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:0.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 0
2425
},
2526
"v": {
2627
"title": "Value",

docs/json/effects/stroke.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:22.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 22
2425
},
2526
"ef": {
2627
"title": "Effects",

docs/json/effects/tint.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:20.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 20
2425
},
2526
"ef": {
2627
"title": "Effects",

docs/json/effects/tritone.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
},
2020
"ty": {
2121
"title": "Type",
22-
"description": "Effect type. Value:23.",
23-
"type": "number"
22+
"description": "Effect type.",
23+
"type": "number",
24+
"const": 23
2425
},
2526
"ef": {
2627
"title": "Effects",

docs/json/helpers/blendMode.json

+19-18
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,71 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"type": "object",
3+
"type": "number",
44
"oneOf": [
55
{
66
"standsFor": "normal",
7-
"value": 0
7+
"const": 0
88
},
99
{
1010
"standsFor": "multiply",
11-
"value": 1
11+
"const": 1
1212
},
1313
{
1414
"standsFor": "screen",
15-
"value": 2
15+
"const": 2
1616
},
1717
{
1818
"standsFor": "overlay",
19-
"value": 3
19+
"const": 3
2020
},
2121
{
2222
"standsFor": "darken",
23-
"value": 4
23+
"const": 4
2424
},
2525
{
2626
"standsFor": "lighten",
27-
"value": 5
27+
"const": 5
2828
},
2929
{
3030
"standsFor": "colorDodge",
31-
"value": 6
31+
"const": 6
3232
},
3333
{
3434
"standsFor": "colorBurn",
35-
"value": 7
35+
"const": 7
3636
},
3737
{
3838
"standsFor": "hardLight",
39-
"value": 8
39+
"const": 8
4040
},
4141
{
4242
"standsFor": "softLight",
43-
"value": 9
43+
"const": 9
4444
},
4545
{
4646
"standsFor": "difference",
47-
"value": 10
47+
"const": 10
4848
},
4949
{
5050
"standsFor": "exclusion",
51-
"value": 11
51+
"const": 11
5252
},
5353
{
5454
"standsFor": "hue",
55-
"value": 12
55+
"const": 12
5656
},
5757
{
5858
"standsFor": "saturation",
59-
"value": 13
59+
"const": 13
6060
},
6161
{
6262
"standsFor": "color",
63-
"value": 14
63+
"const": 14
6464
},
6565
{
6666
"standsFor": "luminosity",
67-
"value": 15
67+
"const": 15
6868
}
69-
]
69+
],
70+
"default": 0
7071
}

docs/json/helpers/boolean.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"type": "object",
3+
"type": "number",
44
"oneOf": [
55
{
66
"standsFor": false,
7-
"value": 0
7+
"const": 0
88
},
99
{
1010
"standsFor": true,
11-
"value": 1
11+
"const": 1
1212
}
1313
]
1414
}

docs/json/helpers/composite.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"type": "number",
4+
"oneOf": [
5+
{
6+
"standsFor": "Above",
7+
"const": 1
8+
},
9+
{
10+
"standsFor": "Below",
11+
"const": 2
12+
}
13+
],
14+
"default": 1
15+
}

0 commit comments

Comments
 (0)