@shotstack/schemas 1.8.6 → 1.9.0

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.
@@ -27,6 +27,17 @@
27
27
  }
28
28
  ]
29
29
  },
30
+ "shadow": {
31
+ "anyOf": [
32
+ {
33
+ "description": "Shadow properties for the active word. Overrides the base shadow when a word is active.",
34
+ "$ref": "#/$defs/RichTextShadow"
35
+ },
36
+ {
37
+ "type": "null"
38
+ }
39
+ ]
40
+ },
30
41
  "scale": {
31
42
  "anyOf": [
32
43
  {
@@ -45,6 +56,7 @@
45
56
  "required": [
46
57
  "font",
47
58
  "stroke",
59
+ "shadow",
48
60
  "scale"
49
61
  ],
50
62
  "$defs": {
@@ -89,13 +101,30 @@
89
101
  "type": "null"
90
102
  }
91
103
  ]
104
+ },
105
+ "textDecoration": {
106
+ "anyOf": [
107
+ {
108
+ "type": "string",
109
+ "description": "Text decoration to apply to the active word.",
110
+ "enum": [
111
+ "none",
112
+ "underline",
113
+ "line-through"
114
+ ]
115
+ },
116
+ {
117
+ "type": "null"
118
+ }
119
+ ]
92
120
  }
93
121
  },
94
122
  "additionalProperties": false,
95
123
  "required": [
96
124
  "color",
97
125
  "background",
98
- "opacity"
126
+ "opacity",
127
+ "textDecoration"
99
128
  ]
100
129
  },
101
130
  "RichTextStroke": {
@@ -148,6 +177,81 @@
148
177
  "color",
149
178
  "opacity"
150
179
  ]
180
+ },
181
+ "RichTextShadow": {
182
+ "description": "Text shadow properties.",
183
+ "properties": {
184
+ "offsetX": {
185
+ "anyOf": [
186
+ {
187
+ "type": "number",
188
+ "description": "Horizontal offset of the shadow in pixels. Positive values move right, negative left."
189
+ },
190
+ {
191
+ "type": "null"
192
+ }
193
+ ]
194
+ },
195
+ "offsetY": {
196
+ "anyOf": [
197
+ {
198
+ "type": "number",
199
+ "description": "Vertical offset of the shadow in pixels. Positive values move down, negative up."
200
+ },
201
+ {
202
+ "type": "null"
203
+ }
204
+ ]
205
+ },
206
+ "blur": {
207
+ "anyOf": [
208
+ {
209
+ "type": "number",
210
+ "description": "The blur radius of the shadow in pixels. Must be 0 or greater.",
211
+ "minimum": 0
212
+ },
213
+ {
214
+ "type": "null"
215
+ }
216
+ ]
217
+ },
218
+ "color": {
219
+ "anyOf": [
220
+ {
221
+ "type": "string",
222
+ "description": "The shadow color using hexadecimal color notation.",
223
+ "enum": [
224
+ "#000000"
225
+ ]
226
+ },
227
+ {
228
+ "type": "null"
229
+ }
230
+ ]
231
+ },
232
+ "opacity": {
233
+ "anyOf": [
234
+ {
235
+ "type": "number",
236
+ "description": "The opacity of the shadow where 1 is opaque and 0 is transparent.",
237
+ "minimum": 0,
238
+ "maximum": 1
239
+ },
240
+ {
241
+ "type": "null"
242
+ }
243
+ ]
244
+ }
245
+ },
246
+ "additionalProperties": false,
247
+ "type": "object",
248
+ "required": [
249
+ "offsetX",
250
+ "offsetY",
251
+ "blur",
252
+ "color",
253
+ "opacity"
254
+ ]
151
255
  }
152
256
  }
153
257
  }