@idle-screens/schema 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FORMAT.md +135 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/saver-spec.schema.json +55 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idle-screens/schema",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "Declarative, agent-authorable saver format for idle-screens: validate a data spec, then compile it into a runnable, seeded, flash-safe SaverPlugin.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Shawn Partridge",
|
package/saver-spec.schema.json
CHANGED
|
@@ -49,6 +49,57 @@
|
|
|
49
49
|
"maxItems": 2,
|
|
50
50
|
"description": "[min, max] px/sec, capped at 4000 so nothing teleports."
|
|
51
51
|
},
|
|
52
|
+
"textReveal": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"properties": {
|
|
56
|
+
"progress": {
|
|
57
|
+
"type": "number",
|
|
58
|
+
"minimum": 0,
|
|
59
|
+
"maximum": 1
|
|
60
|
+
},
|
|
61
|
+
"mode": {
|
|
62
|
+
"enum": [
|
|
63
|
+
"typewriter",
|
|
64
|
+
"word",
|
|
65
|
+
"line",
|
|
66
|
+
"glyphFade"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"speed": {
|
|
70
|
+
"type": "number",
|
|
71
|
+
"minimum": 0,
|
|
72
|
+
"maximum": 120
|
|
73
|
+
},
|
|
74
|
+
"caret": {
|
|
75
|
+
"oneOf": [
|
|
76
|
+
{
|
|
77
|
+
"type": "boolean"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "object",
|
|
81
|
+
"additionalProperties": false,
|
|
82
|
+
"properties": {
|
|
83
|
+
"blink": {
|
|
84
|
+
"type": "number",
|
|
85
|
+
"exclusiveMinimum": 0,
|
|
86
|
+
"maximum": 3
|
|
87
|
+
},
|
|
88
|
+
"color": {
|
|
89
|
+
"$ref": "#/definitions/hexColor"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"fade": {
|
|
96
|
+
"type": "number",
|
|
97
|
+
"exclusiveMinimum": 0,
|
|
98
|
+
"maximum": 1
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"description": "Animated reveal controls for a text block."
|
|
102
|
+
},
|
|
52
103
|
"background": {
|
|
53
104
|
"oneOf": [
|
|
54
105
|
{
|
|
@@ -898,6 +949,9 @@
|
|
|
898
949
|
},
|
|
899
950
|
"color": {
|
|
900
951
|
"$ref": "#/definitions/hexColor"
|
|
952
|
+
},
|
|
953
|
+
"reveal": {
|
|
954
|
+
"$ref": "#/definitions/textReveal"
|
|
901
955
|
}
|
|
902
956
|
},
|
|
903
957
|
"description": "Multi-line text block with deterministic line-breaking. All dimensions are viewport fractions. Use with count: 1, static motion, and position."
|
|
@@ -1047,7 +1101,7 @@
|
|
|
1047
1101
|
"type": "array",
|
|
1048
1102
|
"items": {
|
|
1049
1103
|
"type": "number",
|
|
1050
|
-
"minimum":
|
|
1104
|
+
"minimum": -180,
|
|
1051
1105
|
"maximum": 180
|
|
1052
1106
|
},
|
|
1053
1107
|
"minItems": 2,
|