@shotstack/schemas 1.9.8 → 1.9.10
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/dist/api.bundled.json +15 -14
- package/dist/json-schema/asset.json +23 -14
- package/dist/json-schema/caption-asset.json +1 -1
- package/dist/json-schema/clip.json +23 -14
- package/dist/json-schema/edit.json +23 -14
- package/dist/json-schema/rich-caption-active-font.json +25 -1
- package/dist/json-schema/rich-caption-active.json +26 -16
- package/dist/json-schema/rich-caption-asset.json +23 -14
- package/dist/json-schema/schemas.json +30 -20
- package/dist/json-schema/svg-asset.json +2 -2
- package/dist/json-schema/timeline.json +23 -14
- package/dist/json-schema/track.json +23 -14
- package/dist/schema.d.ts +17 -19
- package/dist/zod/zod.gen.cjs +4 -16
- package/dist/zod/zod.gen.d.ts +147 -79
- package/dist/zod/zod.gen.js +4 -16
- package/dist/zod/zod.gen.ts +4 -10
- package/package.json +1 -1
package/dist/api.bundled.json
CHANGED
|
@@ -1752,7 +1752,7 @@
|
|
|
1752
1752
|
]
|
|
1753
1753
|
},
|
|
1754
1754
|
"CaptionAsset": {
|
|
1755
|
-
"description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset
|
|
1755
|
+
"description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n",
|
|
1756
1756
|
"type": "object",
|
|
1757
1757
|
"properties": {
|
|
1758
1758
|
"type": {
|
|
@@ -1896,7 +1896,7 @@
|
|
|
1896
1896
|
"example": "uppercase"
|
|
1897
1897
|
},
|
|
1898
1898
|
"size": {
|
|
1899
|
-
"description": "The font size
|
|
1899
|
+
"description": "The font size in pixels. Can be used as an alternative to font.size.",
|
|
1900
1900
|
"type": "number",
|
|
1901
1901
|
"minimum": 1,
|
|
1902
1902
|
"maximum": 500,
|
|
@@ -1974,6 +1974,15 @@
|
|
|
1974
1974
|
"description": "Font properties for the active/highlighted word.",
|
|
1975
1975
|
"type": "object",
|
|
1976
1976
|
"properties": {
|
|
1977
|
+
"family": {
|
|
1978
|
+
"description": "The font family for the active word. Inherits from the base font.family when not set.",
|
|
1979
|
+
"type": "string",
|
|
1980
|
+
"example": "Roboto"
|
|
1981
|
+
},
|
|
1982
|
+
"weight": {
|
|
1983
|
+
"description": "The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from the base font.weight when not set.\n",
|
|
1984
|
+
"default": "400"
|
|
1985
|
+
},
|
|
1977
1986
|
"color": {
|
|
1978
1987
|
"description": "The active word color using hexadecimal color notation.",
|
|
1979
1988
|
"type": "string",
|
|
@@ -1995,7 +2004,7 @@
|
|
|
1995
2004
|
"example": 1
|
|
1996
2005
|
},
|
|
1997
2006
|
"size": {
|
|
1998
|
-
"description": "The font size of the active word in pixels.
|
|
2007
|
+
"description": "The font size of the active word in pixels.",
|
|
1999
2008
|
"type": "number",
|
|
2000
2009
|
"minimum": 1,
|
|
2001
2010
|
"maximum": 500,
|
|
@@ -2050,14 +2059,6 @@
|
|
|
2050
2059
|
]
|
|
2051
2060
|
}
|
|
2052
2061
|
]
|
|
2053
|
-
},
|
|
2054
|
-
"scale": {
|
|
2055
|
-
"description": "Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.",
|
|
2056
|
-
"type": "number",
|
|
2057
|
-
"minimum": 0.5,
|
|
2058
|
-
"maximum": 2,
|
|
2059
|
-
"default": 1,
|
|
2060
|
-
"example": 1.2
|
|
2061
2062
|
}
|
|
2062
2063
|
},
|
|
2063
2064
|
"additionalProperties": false
|
|
@@ -2416,7 +2417,7 @@
|
|
|
2416
2417
|
]
|
|
2417
2418
|
},
|
|
2418
2419
|
"SvgAsset": {
|
|
2419
|
-
"description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n
|
|
2420
|
+
"description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
|
|
2420
2421
|
"type": "object",
|
|
2421
2422
|
"properties": {
|
|
2422
2423
|
"type": {
|
|
@@ -2429,7 +2430,7 @@
|
|
|
2429
2430
|
"example": "svg"
|
|
2430
2431
|
},
|
|
2431
2432
|
"src": {
|
|
2432
|
-
"description": "Raw SVG markup string. The shape,
|
|
2433
|
+
"description": "Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.\n",
|
|
2433
2434
|
"type": "string",
|
|
2434
2435
|
"minLength": 1,
|
|
2435
2436
|
"maxLength": 500000,
|
|
@@ -2443,7 +2444,7 @@
|
|
|
2443
2444
|
],
|
|
2444
2445
|
"example": {
|
|
2445
2446
|
"type": "svg",
|
|
2446
|
-
"src": "<svg width=\"
|
|
2447
|
+
"src": "<svg width=\"100\" height=\"100\"><circle cx=\"50\" cy=\"50\" r=\"40\" fill=\"#3498db\"/></svg>"
|
|
2447
2448
|
}
|
|
2448
2449
|
},
|
|
2449
2450
|
"Transition": {
|
|
@@ -1828,31 +1828,38 @@
|
|
|
1828
1828
|
"type": "null"
|
|
1829
1829
|
}
|
|
1830
1830
|
]
|
|
1831
|
-
},
|
|
1832
|
-
"scale": {
|
|
1833
|
-
"anyOf": [
|
|
1834
|
-
{
|
|
1835
|
-
"type": "number",
|
|
1836
|
-
"minimum": 0.5,
|
|
1837
|
-
"maximum": 2
|
|
1838
|
-
},
|
|
1839
|
-
{
|
|
1840
|
-
"type": "null"
|
|
1841
|
-
}
|
|
1842
|
-
]
|
|
1843
1831
|
}
|
|
1844
1832
|
},
|
|
1845
1833
|
"additionalProperties": false,
|
|
1846
1834
|
"required": [
|
|
1847
1835
|
"font",
|
|
1848
1836
|
"stroke",
|
|
1849
|
-
"shadow"
|
|
1850
|
-
"scale"
|
|
1837
|
+
"shadow"
|
|
1851
1838
|
]
|
|
1852
1839
|
},
|
|
1853
1840
|
"RichCaptionActiveFont": {
|
|
1854
1841
|
"type": "object",
|
|
1855
1842
|
"properties": {
|
|
1843
|
+
"family": {
|
|
1844
|
+
"anyOf": [
|
|
1845
|
+
{
|
|
1846
|
+
"type": "string"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"type": "null"
|
|
1850
|
+
}
|
|
1851
|
+
]
|
|
1852
|
+
},
|
|
1853
|
+
"weight": {
|
|
1854
|
+
"anyOf": [
|
|
1855
|
+
{
|
|
1856
|
+
"type": "string"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"type": "null"
|
|
1860
|
+
}
|
|
1861
|
+
]
|
|
1862
|
+
},
|
|
1856
1863
|
"color": {
|
|
1857
1864
|
"anyOf": [
|
|
1858
1865
|
{
|
|
@@ -1915,6 +1922,8 @@
|
|
|
1915
1922
|
},
|
|
1916
1923
|
"additionalProperties": false,
|
|
1917
1924
|
"required": [
|
|
1925
|
+
"family",
|
|
1926
|
+
"weight",
|
|
1918
1927
|
"color",
|
|
1919
1928
|
"background",
|
|
1920
1929
|
"opacity",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "CaptionAsset",
|
|
3
3
|
"strict": true,
|
|
4
4
|
"schema": {
|
|
5
|
-
"description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset
|
|
5
|
+
"description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"type": {
|
|
@@ -2060,31 +2060,38 @@
|
|
|
2060
2060
|
"type": "null"
|
|
2061
2061
|
}
|
|
2062
2062
|
]
|
|
2063
|
-
},
|
|
2064
|
-
"scale": {
|
|
2065
|
-
"anyOf": [
|
|
2066
|
-
{
|
|
2067
|
-
"type": "number",
|
|
2068
|
-
"minimum": 0.5,
|
|
2069
|
-
"maximum": 2
|
|
2070
|
-
},
|
|
2071
|
-
{
|
|
2072
|
-
"type": "null"
|
|
2073
|
-
}
|
|
2074
|
-
]
|
|
2075
2063
|
}
|
|
2076
2064
|
},
|
|
2077
2065
|
"additionalProperties": false,
|
|
2078
2066
|
"required": [
|
|
2079
2067
|
"font",
|
|
2080
2068
|
"stroke",
|
|
2081
|
-
"shadow"
|
|
2082
|
-
"scale"
|
|
2069
|
+
"shadow"
|
|
2083
2070
|
]
|
|
2084
2071
|
},
|
|
2085
2072
|
"RichCaptionActiveFont": {
|
|
2086
2073
|
"type": "object",
|
|
2087
2074
|
"properties": {
|
|
2075
|
+
"family": {
|
|
2076
|
+
"anyOf": [
|
|
2077
|
+
{
|
|
2078
|
+
"type": "string"
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
"type": "null"
|
|
2082
|
+
}
|
|
2083
|
+
]
|
|
2084
|
+
},
|
|
2085
|
+
"weight": {
|
|
2086
|
+
"anyOf": [
|
|
2087
|
+
{
|
|
2088
|
+
"type": "string"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"type": "null"
|
|
2092
|
+
}
|
|
2093
|
+
]
|
|
2094
|
+
},
|
|
2088
2095
|
"color": {
|
|
2089
2096
|
"anyOf": [
|
|
2090
2097
|
{
|
|
@@ -2147,6 +2154,8 @@
|
|
|
2147
2154
|
},
|
|
2148
2155
|
"additionalProperties": false,
|
|
2149
2156
|
"required": [
|
|
2157
|
+
"family",
|
|
2158
|
+
"weight",
|
|
2150
2159
|
"color",
|
|
2151
2160
|
"background",
|
|
2152
2161
|
"opacity",
|
|
@@ -2244,31 +2244,38 @@
|
|
|
2244
2244
|
"type": "null"
|
|
2245
2245
|
}
|
|
2246
2246
|
]
|
|
2247
|
-
},
|
|
2248
|
-
"scale": {
|
|
2249
|
-
"anyOf": [
|
|
2250
|
-
{
|
|
2251
|
-
"type": "number",
|
|
2252
|
-
"minimum": 0.5,
|
|
2253
|
-
"maximum": 2
|
|
2254
|
-
},
|
|
2255
|
-
{
|
|
2256
|
-
"type": "null"
|
|
2257
|
-
}
|
|
2258
|
-
]
|
|
2259
2247
|
}
|
|
2260
2248
|
},
|
|
2261
2249
|
"additionalProperties": false,
|
|
2262
2250
|
"required": [
|
|
2263
2251
|
"font",
|
|
2264
2252
|
"stroke",
|
|
2265
|
-
"shadow"
|
|
2266
|
-
"scale"
|
|
2253
|
+
"shadow"
|
|
2267
2254
|
]
|
|
2268
2255
|
},
|
|
2269
2256
|
"RichCaptionActiveFont": {
|
|
2270
2257
|
"type": "object",
|
|
2271
2258
|
"properties": {
|
|
2259
|
+
"family": {
|
|
2260
|
+
"anyOf": [
|
|
2261
|
+
{
|
|
2262
|
+
"type": "string"
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
"type": "null"
|
|
2266
|
+
}
|
|
2267
|
+
]
|
|
2268
|
+
},
|
|
2269
|
+
"weight": {
|
|
2270
|
+
"anyOf": [
|
|
2271
|
+
{
|
|
2272
|
+
"type": "string"
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
"type": "null"
|
|
2276
|
+
}
|
|
2277
|
+
]
|
|
2278
|
+
},
|
|
2272
2279
|
"color": {
|
|
2273
2280
|
"anyOf": [
|
|
2274
2281
|
{
|
|
@@ -2331,6 +2338,8 @@
|
|
|
2331
2338
|
},
|
|
2332
2339
|
"additionalProperties": false,
|
|
2333
2340
|
"required": [
|
|
2341
|
+
"family",
|
|
2342
|
+
"weight",
|
|
2334
2343
|
"color",
|
|
2335
2344
|
"background",
|
|
2336
2345
|
"opacity",
|
|
@@ -5,6 +5,28 @@
|
|
|
5
5
|
"description": "Font properties for the active/highlighted word.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
|
+
"family": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The font family for the active word. Inherits from the base font.family when not set."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "null"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"weight": {
|
|
20
|
+
"anyOf": [
|
|
21
|
+
{
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from the base font.weight when not set.\n"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"type": "null"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
8
30
|
"color": {
|
|
9
31
|
"anyOf": [
|
|
10
32
|
{
|
|
@@ -44,7 +66,7 @@
|
|
|
44
66
|
"anyOf": [
|
|
45
67
|
{
|
|
46
68
|
"type": "number",
|
|
47
|
-
"description": "The font size of the active word in pixels.
|
|
69
|
+
"description": "The font size of the active word in pixels.",
|
|
48
70
|
"minimum": 1,
|
|
49
71
|
"maximum": 500
|
|
50
72
|
},
|
|
@@ -72,6 +94,8 @@
|
|
|
72
94
|
},
|
|
73
95
|
"additionalProperties": false,
|
|
74
96
|
"required": [
|
|
97
|
+
"family",
|
|
98
|
+
"weight",
|
|
75
99
|
"color",
|
|
76
100
|
"background",
|
|
77
101
|
"opacity",
|
|
@@ -49,33 +49,41 @@
|
|
|
49
49
|
"type": "null"
|
|
50
50
|
}
|
|
51
51
|
]
|
|
52
|
-
},
|
|
53
|
-
"scale": {
|
|
54
|
-
"anyOf": [
|
|
55
|
-
{
|
|
56
|
-
"type": "number",
|
|
57
|
-
"description": "Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.",
|
|
58
|
-
"minimum": 0.5,
|
|
59
|
-
"maximum": 2
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"type": "null"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
52
|
}
|
|
66
53
|
},
|
|
67
54
|
"additionalProperties": false,
|
|
68
55
|
"required": [
|
|
69
56
|
"font",
|
|
70
57
|
"stroke",
|
|
71
|
-
"shadow"
|
|
72
|
-
"scale"
|
|
58
|
+
"shadow"
|
|
73
59
|
],
|
|
74
60
|
"$defs": {
|
|
75
61
|
"RichCaptionActiveFont": {
|
|
76
62
|
"description": "Font properties for the active/highlighted word.",
|
|
77
63
|
"type": "object",
|
|
78
64
|
"properties": {
|
|
65
|
+
"family": {
|
|
66
|
+
"anyOf": [
|
|
67
|
+
{
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "The font family for the active word. Inherits from the base font.family when not set."
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"type": "null"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"weight": {
|
|
77
|
+
"anyOf": [
|
|
78
|
+
{
|
|
79
|
+
"type": "string",
|
|
80
|
+
"description": "The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from the base font.weight when not set.\n"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "null"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
79
87
|
"color": {
|
|
80
88
|
"anyOf": [
|
|
81
89
|
{
|
|
@@ -115,7 +123,7 @@
|
|
|
115
123
|
"anyOf": [
|
|
116
124
|
{
|
|
117
125
|
"type": "number",
|
|
118
|
-
"description": "The font size of the active word in pixels.
|
|
126
|
+
"description": "The font size of the active word in pixels.",
|
|
119
127
|
"minimum": 1,
|
|
120
128
|
"maximum": 500
|
|
121
129
|
},
|
|
@@ -143,6 +151,8 @@
|
|
|
143
151
|
},
|
|
144
152
|
"additionalProperties": false,
|
|
145
153
|
"required": [
|
|
154
|
+
"family",
|
|
155
|
+
"weight",
|
|
146
156
|
"color",
|
|
147
157
|
"background",
|
|
148
158
|
"opacity",
|
|
@@ -1076,31 +1076,38 @@
|
|
|
1076
1076
|
"type": "null"
|
|
1077
1077
|
}
|
|
1078
1078
|
]
|
|
1079
|
-
},
|
|
1080
|
-
"scale": {
|
|
1081
|
-
"anyOf": [
|
|
1082
|
-
{
|
|
1083
|
-
"type": "number",
|
|
1084
|
-
"minimum": 0.5,
|
|
1085
|
-
"maximum": 2
|
|
1086
|
-
},
|
|
1087
|
-
{
|
|
1088
|
-
"type": "null"
|
|
1089
|
-
}
|
|
1090
|
-
]
|
|
1091
1079
|
}
|
|
1092
1080
|
},
|
|
1093
1081
|
"additionalProperties": false,
|
|
1094
1082
|
"required": [
|
|
1095
1083
|
"font",
|
|
1096
1084
|
"stroke",
|
|
1097
|
-
"shadow"
|
|
1098
|
-
"scale"
|
|
1085
|
+
"shadow"
|
|
1099
1086
|
]
|
|
1100
1087
|
},
|
|
1101
1088
|
"RichCaptionActiveFont": {
|
|
1102
1089
|
"type": "object",
|
|
1103
1090
|
"properties": {
|
|
1091
|
+
"family": {
|
|
1092
|
+
"anyOf": [
|
|
1093
|
+
{
|
|
1094
|
+
"type": "string"
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
"type": "null"
|
|
1098
|
+
}
|
|
1099
|
+
]
|
|
1100
|
+
},
|
|
1101
|
+
"weight": {
|
|
1102
|
+
"anyOf": [
|
|
1103
|
+
{
|
|
1104
|
+
"type": "string"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"type": "null"
|
|
1108
|
+
}
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
1104
1111
|
"color": {
|
|
1105
1112
|
"anyOf": [
|
|
1106
1113
|
{
|
|
@@ -1163,6 +1170,8 @@
|
|
|
1163
1170
|
},
|
|
1164
1171
|
"additionalProperties": false,
|
|
1165
1172
|
"required": [
|
|
1173
|
+
"family",
|
|
1174
|
+
"weight",
|
|
1166
1175
|
"color",
|
|
1167
1176
|
"background",
|
|
1168
1177
|
"opacity",
|
|
@@ -1734,7 +1734,7 @@
|
|
|
1734
1734
|
]
|
|
1735
1735
|
},
|
|
1736
1736
|
"CaptionAsset": {
|
|
1737
|
-
"description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset
|
|
1737
|
+
"description": "The CaptionAsset is used to add captions (subtitles) to a video. It uses a supplied SRT or VTT file which will\nbe read and burnt to the video.\n\nCaptions can be applied independently from a video or audio file for greater\nflexibility with styling and layout. For example you can scale, position or crop a video without modifying the\ncaptions.\n\nTo sync captions with a video or audio file use a [Video](#tocs_videoasset) or [Audio](#tocs_audioasset) with\nmatching start and end time.\n",
|
|
1738
1738
|
"type": "object",
|
|
1739
1739
|
"properties": {
|
|
1740
1740
|
"type": {
|
|
@@ -2176,7 +2176,7 @@
|
|
|
2176
2176
|
"anyOf": [
|
|
2177
2177
|
{
|
|
2178
2178
|
"type": "number",
|
|
2179
|
-
"description": "The font size
|
|
2179
|
+
"description": "The font size in pixels. Can be used as an alternative to font.size.",
|
|
2180
2180
|
"minimum": 1,
|
|
2181
2181
|
"maximum": 500
|
|
2182
2182
|
},
|
|
@@ -2386,33 +2386,41 @@
|
|
|
2386
2386
|
"type": "null"
|
|
2387
2387
|
}
|
|
2388
2388
|
]
|
|
2389
|
-
},
|
|
2390
|
-
"scale": {
|
|
2391
|
-
"anyOf": [
|
|
2392
|
-
{
|
|
2393
|
-
"type": "number",
|
|
2394
|
-
"description": "Scale multiplier for the active word. 1.0 is normal size, 1.2 is 20% larger.",
|
|
2395
|
-
"minimum": 0.5,
|
|
2396
|
-
"maximum": 2
|
|
2397
|
-
},
|
|
2398
|
-
{
|
|
2399
|
-
"type": "null"
|
|
2400
|
-
}
|
|
2401
|
-
]
|
|
2402
2389
|
}
|
|
2403
2390
|
},
|
|
2404
2391
|
"additionalProperties": false,
|
|
2405
2392
|
"required": [
|
|
2406
2393
|
"font",
|
|
2407
2394
|
"stroke",
|
|
2408
|
-
"shadow"
|
|
2409
|
-
"scale"
|
|
2395
|
+
"shadow"
|
|
2410
2396
|
]
|
|
2411
2397
|
},
|
|
2412
2398
|
"RichCaptionActiveFont": {
|
|
2413
2399
|
"description": "Font properties for the active/highlighted word.",
|
|
2414
2400
|
"type": "object",
|
|
2415
2401
|
"properties": {
|
|
2402
|
+
"family": {
|
|
2403
|
+
"anyOf": [
|
|
2404
|
+
{
|
|
2405
|
+
"type": "string",
|
|
2406
|
+
"description": "The font family for the active word. Inherits from the base font.family when not set."
|
|
2407
|
+
},
|
|
2408
|
+
{
|
|
2409
|
+
"type": "null"
|
|
2410
|
+
}
|
|
2411
|
+
]
|
|
2412
|
+
},
|
|
2413
|
+
"weight": {
|
|
2414
|
+
"anyOf": [
|
|
2415
|
+
{
|
|
2416
|
+
"type": "string",
|
|
2417
|
+
"description": "The weight of the font for the active word. Can be a number (100-900) or a string. Inherits from the base font.weight when not set.\n"
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
"type": "null"
|
|
2421
|
+
}
|
|
2422
|
+
]
|
|
2423
|
+
},
|
|
2416
2424
|
"color": {
|
|
2417
2425
|
"anyOf": [
|
|
2418
2426
|
{
|
|
@@ -2452,7 +2460,7 @@
|
|
|
2452
2460
|
"anyOf": [
|
|
2453
2461
|
{
|
|
2454
2462
|
"type": "number",
|
|
2455
|
-
"description": "The font size of the active word in pixels.
|
|
2463
|
+
"description": "The font size of the active word in pixels.",
|
|
2456
2464
|
"minimum": 1,
|
|
2457
2465
|
"maximum": 500
|
|
2458
2466
|
},
|
|
@@ -2480,6 +2488,8 @@
|
|
|
2480
2488
|
},
|
|
2481
2489
|
"additionalProperties": false,
|
|
2482
2490
|
"required": [
|
|
2491
|
+
"family",
|
|
2492
|
+
"weight",
|
|
2483
2493
|
"color",
|
|
2484
2494
|
"background",
|
|
2485
2495
|
"opacity",
|
|
@@ -2751,7 +2761,7 @@
|
|
|
2751
2761
|
]
|
|
2752
2762
|
},
|
|
2753
2763
|
"SvgAsset": {
|
|
2754
|
-
"description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n
|
|
2764
|
+
"description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
|
|
2755
2765
|
"type": "object",
|
|
2756
2766
|
"properties": {
|
|
2757
2767
|
"type": {
|
|
@@ -2762,7 +2772,7 @@
|
|
|
2762
2772
|
]
|
|
2763
2773
|
},
|
|
2764
2774
|
"src": {
|
|
2765
|
-
"description": "Raw SVG markup string. The shape,
|
|
2775
|
+
"description": "Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.\n",
|
|
2766
2776
|
"type": "string"
|
|
2767
2777
|
}
|
|
2768
2778
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "SvgAsset",
|
|
3
3
|
"strict": true,
|
|
4
4
|
"schema": {
|
|
5
|
-
"description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n
|
|
5
|
+
"description": "The SvgAsset is used to add scalable vector graphics (SVG) to a video using raw SVG markup.\n\n**Supported elements:** `<path>`, `<rect>`, `<circle>`, `<ellipse>`,\n`<line>`, `<polygon>`, `<polyline>`\n\n**Automatically extracted from SVG markup:**\n- Path data (converted to a single combined path)\n- Fill color (from `fill` attribute or `style`)\n- Stroke color and width (from attributes or `style`)\n- Dimensions (from `width`/`height` or `viewBox`)\n- Opacity (from `opacity` attribute)\n\nSee [W3C SVG 2 Specification](https://www.w3.org/TR/SVG2/) for path data syntax.\n",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
8
8
|
"type": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
15
|
"src": {
|
|
16
|
-
"description": "Raw SVG markup string. The shape,
|
|
16
|
+
"description": "Raw SVG markup string. The SVG must contain valid SVG elements. The shape,\nfill, stroke, dimensions and opacity are automatically extracted from the\nSVG content.\n",
|
|
17
17
|
"type": "string"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
@@ -2188,31 +2188,38 @@
|
|
|
2188
2188
|
"type": "null"
|
|
2189
2189
|
}
|
|
2190
2190
|
]
|
|
2191
|
-
},
|
|
2192
|
-
"scale": {
|
|
2193
|
-
"anyOf": [
|
|
2194
|
-
{
|
|
2195
|
-
"type": "number",
|
|
2196
|
-
"minimum": 0.5,
|
|
2197
|
-
"maximum": 2
|
|
2198
|
-
},
|
|
2199
|
-
{
|
|
2200
|
-
"type": "null"
|
|
2201
|
-
}
|
|
2202
|
-
]
|
|
2203
2191
|
}
|
|
2204
2192
|
},
|
|
2205
2193
|
"additionalProperties": false,
|
|
2206
2194
|
"required": [
|
|
2207
2195
|
"font",
|
|
2208
2196
|
"stroke",
|
|
2209
|
-
"shadow"
|
|
2210
|
-
"scale"
|
|
2197
|
+
"shadow"
|
|
2211
2198
|
]
|
|
2212
2199
|
},
|
|
2213
2200
|
"RichCaptionActiveFont": {
|
|
2214
2201
|
"type": "object",
|
|
2215
2202
|
"properties": {
|
|
2203
|
+
"family": {
|
|
2204
|
+
"anyOf": [
|
|
2205
|
+
{
|
|
2206
|
+
"type": "string"
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"type": "null"
|
|
2210
|
+
}
|
|
2211
|
+
]
|
|
2212
|
+
},
|
|
2213
|
+
"weight": {
|
|
2214
|
+
"anyOf": [
|
|
2215
|
+
{
|
|
2216
|
+
"type": "string"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"type": "null"
|
|
2220
|
+
}
|
|
2221
|
+
]
|
|
2222
|
+
},
|
|
2216
2223
|
"color": {
|
|
2217
2224
|
"anyOf": [
|
|
2218
2225
|
{
|
|
@@ -2275,6 +2282,8 @@
|
|
|
2275
2282
|
},
|
|
2276
2283
|
"additionalProperties": false,
|
|
2277
2284
|
"required": [
|
|
2285
|
+
"family",
|
|
2286
|
+
"weight",
|
|
2278
2287
|
"color",
|
|
2279
2288
|
"background",
|
|
2280
2289
|
"opacity",
|