@phil65/demoreel 0.0.0-stage → 0.3.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/LICENSE +21 -0
- package/README.md +207 -2
- package/THIRD_PARTY_NOTICES.md +31 -0
- package/dist/args.d.ts +41 -0
- package/dist/args.js +252 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +468 -0
- package/dist/compose.d.ts +73 -0
- package/dist/compose.js +144 -0
- package/dist/env.d.ts +38 -0
- package/dist/env.js +182 -0
- package/dist/idle.d.ts +48 -0
- package/dist/idle.js +99 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +13 -0
- package/dist/init.d.ts +19 -0
- package/dist/init.js +92 -0
- package/dist/layout.d.ts +52 -0
- package/dist/layout.js +55 -0
- package/dist/load.d.ts +2 -0
- package/dist/load.js +76 -0
- package/dist/marks.d.ts +69 -0
- package/dist/marks.js +153 -0
- package/dist/motion.d.ts +15 -0
- package/dist/motion.js +49 -0
- package/dist/openscreen/project.js +793 -0
- package/dist/openscreen.d.ts +14 -0
- package/dist/openscreen.js +41 -0
- package/dist/project.d.ts +143 -0
- package/dist/project.js +144 -0
- package/dist/record.d.ts +90 -0
- package/dist/record.js +189 -0
- package/dist/recorder.d.ts +41 -0
- package/dist/recorder.js +149 -0
- package/dist/render.d.ts +58 -0
- package/dist/render.js +139 -0
- package/dist/renderer/assets/CanvasPool-CHSHS1-v.js +23 -0
- package/dist/renderer/assets/Cursor_App-Starting-zEGhqPJj.svg +8 -0
- package/dist/renderer/assets/Cursor_Cross-BuZZnB_U.svg +5 -0
- package/dist/renderer/assets/Cursor_Default-DkmrqhKh.svg +5 -0
- package/dist/renderer/assets/Cursor_Hand-(Grabbing)-B-Qy-RsV.svg +5 -0
- package/dist/renderer/assets/Cursor_Hand-(Open)-DGrW1tFF.svg +5 -0
- package/dist/renderer/assets/Cursor_Hand-(Pointing)-Byy2KbtA.svg +5 -0
- package/dist/renderer/assets/Cursor_Help-D5NcyFpT.svg +8 -0
- package/dist/renderer/assets/Cursor_Move-CerM5f-0.svg +5 -0
- package/dist/renderer/assets/Cursor_Not-Allowed-3rttFVa5.svg +7 -0
- package/dist/renderer/assets/Cursor_Resize-North-East-South-West-CBd4tbCA.svg +5 -0
- package/dist/renderer/assets/Cursor_Resize-North-South-DOxgUIwF.svg +5 -0
- package/dist/renderer/assets/Cursor_Resize-North-West-South-East-hzXJFJ2_.svg +5 -0
- package/dist/renderer/assets/Cursor_Resize-West-East-rDJgc6AZ.svg +5 -0
- package/dist/renderer/assets/Cursor_Text-Cursor-Cn9rFLjY.svg +5 -0
- package/dist/renderer/assets/Cursor_Up-Arrow-CYyEN-dA.svg +4 -0
- package/dist/renderer/assets/Cursor_Wait-CK8tq-9y.svg +6 -0
- package/dist/renderer/assets/RenderTargetSystem-EAUH9iQk.js +404 -0
- package/dist/renderer/assets/browserAll-aHn2isHo.js +14 -0
- package/dist/renderer/assets/canvasUtils-n5g2f3_X.js +1 -0
- package/dist/renderer/assets/getTexelRangeRects-yD6MQ0xy.js +195 -0
- package/dist/renderer/assets/getTextureBatchBindGroup-Bwvgbco6.js +1 -0
- package/dist/renderer/assets/gif.worker-CjkyQP34.js +3 -0
- package/dist/renderer/assets/index-BwP6rH7I.js +556 -0
- package/dist/renderer/assets/init-C2Za5NQh.js +83 -0
- package/dist/renderer/assets/webworkerAll-JSSmbaR2.js +1 -0
- package/dist/renderer/index.html +13 -0
- package/dist/renderer/wallpapers/wallpaper1.jpg +0 -0
- package/dist/renderer/wallpapers/wallpaper12.jpg +0 -0
- package/dist/renderer/wallpapers/wallpaper5.jpg +0 -0
- package/dist/renderer/wasm/web-demuxer.wasm +0 -0
- package/dist/scene.d.ts +203 -0
- package/dist/scene.js +634 -0
- package/dist/server.d.ts +12 -0
- package/dist/server.js +116 -0
- package/dist/sheet.d.ts +37 -0
- package/dist/sheet.js +98 -0
- package/dist/types.d.ts +103 -0
- package/dist/types.js +2 -0
- package/dist/zoom.d.ts +57 -0
- package/dist/zoom.js +178 -0
- package/examples/demo-app/index.html +99 -0
- package/examples/local-demo.ts +21 -0
- package/licenses/colord.txt +21 -0
- package/licenses/earcut.txt +15 -0
- package/licenses/eventemitter3.txt +21 -0
- package/licenses/gif.js.txt +1 -0
- package/licenses/ismobilejs.txt +21 -0
- package/licenses/mediabunny.txt +373 -0
- package/licenses/motion-dom.txt +21 -0
- package/licenses/motion-utils.txt +21 -0
- package/licenses/openscreen.txt +21 -0
- package/licenses/parse-svg-path.txt +23 -0
- package/licenses/pixi-filters.txt +21 -0
- package/licenses/pixi.js.txt +21 -0
- package/licenses/web-demuxer.txt +21 -0
- package/package.json +74 -4
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
// vendor/openscreen/src/lib/annotationTextAnimation.ts
|
|
2
|
+
var TEXT_ANIMATION_OPTIONS = [
|
|
3
|
+
{
|
|
4
|
+
value: "none",
|
|
5
|
+
translationKey: "textAnimation.none"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
value: "fade",
|
|
9
|
+
translationKey: "textAnimation.fade"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
value: "rise",
|
|
13
|
+
translationKey: "textAnimation.rise"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
value: "pop",
|
|
17
|
+
translationKey: "textAnimation.pop"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
value: "slide-left",
|
|
21
|
+
translationKey: "textAnimation.slideLeft"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
value: "typewriter",
|
|
25
|
+
translationKey: "textAnimation.typewriter"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "pulse",
|
|
29
|
+
translationKey: "textAnimation.pulse"
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
function normalizeTextAnimation(value) {
|
|
33
|
+
return TEXT_ANIMATION_OPTIONS.some((option) => option.value === value) ? value : "none";
|
|
34
|
+
}
|
|
35
|
+
// vendor/openscreen/src/components/video-editor/types.ts
|
|
36
|
+
var DEFAULT_WEBCAM_LAYOUT_PRESET = "picture-in-picture";
|
|
37
|
+
var DEFAULT_WEBCAM_MASK_SHAPE = "rectangle";
|
|
38
|
+
var DEFAULT_ZOOM_MOTION_BLUR = .35;
|
|
39
|
+
var DEFAULT_ANNOTATION_POSITION = {
|
|
40
|
+
x: 50,
|
|
41
|
+
y: 50
|
|
42
|
+
};
|
|
43
|
+
var DEFAULT_ANNOTATION_SIZE = {
|
|
44
|
+
width: 30,
|
|
45
|
+
height: 20
|
|
46
|
+
};
|
|
47
|
+
var DEFAULT_ANNOTATION_STYLE = {
|
|
48
|
+
color: "#ffffff",
|
|
49
|
+
backgroundColor: "transparent",
|
|
50
|
+
fontSize: 32,
|
|
51
|
+
fontFamily: "Inter",
|
|
52
|
+
fontWeight: "bold",
|
|
53
|
+
fontStyle: "normal",
|
|
54
|
+
textDecoration: "none",
|
|
55
|
+
textAlign: "center",
|
|
56
|
+
textAnimation: "none"
|
|
57
|
+
};
|
|
58
|
+
var DEFAULT_FIGURE_DATA = {
|
|
59
|
+
arrowDirection: "right",
|
|
60
|
+
color: "#34B27B",
|
|
61
|
+
strokeWidth: 4
|
|
62
|
+
};
|
|
63
|
+
var DEFAULT_BLUR_FREEHAND_POINTS = [
|
|
64
|
+
{
|
|
65
|
+
x: 10,
|
|
66
|
+
y: 30
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
x: 25,
|
|
70
|
+
y: 10
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
x: 55,
|
|
74
|
+
y: 8
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
x: 82,
|
|
78
|
+
y: 20
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
x: 90,
|
|
82
|
+
y: 45
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
x: 78,
|
|
86
|
+
y: 72
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
x: 52,
|
|
90
|
+
y: 90
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
x: 22,
|
|
94
|
+
y: 84
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
x: 8,
|
|
98
|
+
y: 58
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
var DEFAULT_BLUR_DATA = {
|
|
102
|
+
type: "mosaic",
|
|
103
|
+
shape: "rectangle",
|
|
104
|
+
color: "white",
|
|
105
|
+
intensity: 12,
|
|
106
|
+
blockSize: 12,
|
|
107
|
+
freehandPoints: DEFAULT_BLUR_FREEHAND_POINTS
|
|
108
|
+
};
|
|
109
|
+
var DEFAULT_CROP_REGION = {
|
|
110
|
+
x: 0,
|
|
111
|
+
y: 0,
|
|
112
|
+
width: 1,
|
|
113
|
+
height: 1
|
|
114
|
+
};
|
|
115
|
+
var MIN_PLAYBACK_SPEED = .1;
|
|
116
|
+
function clampPlaybackSpeed(speed) {
|
|
117
|
+
return Math.round(Math.min(16, Math.max(MIN_PLAYBACK_SPEED, speed)) * 100) / 100;
|
|
118
|
+
}
|
|
119
|
+
var DEFAULT_PLAYBACK_SPEED = 1.5;
|
|
120
|
+
var ZOOM_DEPTH_SCALES = {
|
|
121
|
+
1: 1.25,
|
|
122
|
+
2: 1.5,
|
|
123
|
+
3: 1.8,
|
|
124
|
+
4: 2.2,
|
|
125
|
+
5: 3.5,
|
|
126
|
+
6: 5
|
|
127
|
+
};
|
|
128
|
+
// vendor/openscreen/src/lib/blurEffects.ts
|
|
129
|
+
function normalizeBlurType(value) {
|
|
130
|
+
return "mosaic";
|
|
131
|
+
}
|
|
132
|
+
function normalizeBlurColor(value) {
|
|
133
|
+
return value === "black" ? "black" : "white";
|
|
134
|
+
}
|
|
135
|
+
// vendor/openscreen/src/lib/cursor/cursorThemes.ts
|
|
136
|
+
/** Sentinel id for the built-in cursor art (no theme override). */
|
|
137
|
+
var DEFAULT_CURSOR_THEME_ID = "default";
|
|
138
|
+
/** All selectable theme ids, including the built-in default. */
|
|
139
|
+
var CURSOR_THEME_IDS = /* @__PURE__ */ new Set([DEFAULT_CURSOR_THEME_ID, ...[
|
|
140
|
+
{
|
|
141
|
+
id: "hello-kitty-watermelon",
|
|
142
|
+
name: "Hello Kitty & Watermelon",
|
|
143
|
+
source: "sweezy-cursors.com",
|
|
144
|
+
assets: {
|
|
145
|
+
arrow: {
|
|
146
|
+
assetPath: "cursors/hello-kitty-watermelon/arrow.png",
|
|
147
|
+
width: 32,
|
|
148
|
+
height: 32,
|
|
149
|
+
hotspotX: 1.5,
|
|
150
|
+
hotspotY: .5
|
|
151
|
+
},
|
|
152
|
+
pointer: {
|
|
153
|
+
assetPath: "cursors/hello-kitty-watermelon/pointer.png",
|
|
154
|
+
width: 32,
|
|
155
|
+
height: 32,
|
|
156
|
+
hotspotX: 4,
|
|
157
|
+
hotspotY: 2
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "among-us-sus-knife-and-red-animated",
|
|
163
|
+
name: "Among Us Sus Knife & Red Animated",
|
|
164
|
+
source: "sweezy-cursors.com",
|
|
165
|
+
assets: {
|
|
166
|
+
arrow: {
|
|
167
|
+
assetPath: "cursors/among-us-sus-knife-and-red-animated/arrow.png",
|
|
168
|
+
width: 32,
|
|
169
|
+
height: 32,
|
|
170
|
+
hotspotX: 1.6,
|
|
171
|
+
hotspotY: .96
|
|
172
|
+
},
|
|
173
|
+
pointer: {
|
|
174
|
+
assetPath: "cursors/among-us-sus-knife-and-red-animated/pointer.png",
|
|
175
|
+
width: 32,
|
|
176
|
+
height: 32,
|
|
177
|
+
hotspotX: 12,
|
|
178
|
+
hotspotY: 2
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "black-and-rainbow-stroke-gradient-animated",
|
|
184
|
+
name: "Black & Rainbow Stroke Gradient Animated",
|
|
185
|
+
source: "sweezy-cursors.com",
|
|
186
|
+
assets: {
|
|
187
|
+
arrow: {
|
|
188
|
+
assetPath: "cursors/black-and-rainbow-stroke-gradient-animated/arrow.png",
|
|
189
|
+
width: 32,
|
|
190
|
+
height: 32,
|
|
191
|
+
hotspotX: 1.6,
|
|
192
|
+
hotspotY: .96
|
|
193
|
+
},
|
|
194
|
+
pointer: {
|
|
195
|
+
assetPath: "cursors/black-and-rainbow-stroke-gradient-animated/pointer.png",
|
|
196
|
+
width: 32,
|
|
197
|
+
height: 32,
|
|
198
|
+
hotspotX: 8,
|
|
199
|
+
hotspotY: 1.5
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: "black-pixel",
|
|
205
|
+
name: "Black Pixel",
|
|
206
|
+
source: "sweezy-cursors.com",
|
|
207
|
+
assets: {
|
|
208
|
+
arrow: {
|
|
209
|
+
assetPath: "cursors/black-pixel/arrow.png",
|
|
210
|
+
width: 32,
|
|
211
|
+
height: 32,
|
|
212
|
+
hotspotX: 2,
|
|
213
|
+
hotspotY: 3.5
|
|
214
|
+
},
|
|
215
|
+
pointer: {
|
|
216
|
+
assetPath: "cursors/black-pixel/pointer.png",
|
|
217
|
+
width: 32,
|
|
218
|
+
height: 32,
|
|
219
|
+
hotspotX: 8,
|
|
220
|
+
hotspotY: 1.5
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
id: "christmas-miles-morales",
|
|
226
|
+
name: "Christmas Miles Morales",
|
|
227
|
+
source: "sweezy-cursors.com",
|
|
228
|
+
assets: {
|
|
229
|
+
arrow: {
|
|
230
|
+
assetPath: "cursors/christmas-miles-morales/arrow.png",
|
|
231
|
+
width: 32,
|
|
232
|
+
height: 32,
|
|
233
|
+
hotspotX: 1,
|
|
234
|
+
hotspotY: .5
|
|
235
|
+
},
|
|
236
|
+
pointer: {
|
|
237
|
+
assetPath: "cursors/christmas-miles-morales/pointer.png",
|
|
238
|
+
width: 32,
|
|
239
|
+
height: 32,
|
|
240
|
+
hotspotX: 5.5,
|
|
241
|
+
hotspotY: 3
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
id: "hollow-knight-and-game-arrow",
|
|
247
|
+
name: "Hollow Knight & Game Arrow",
|
|
248
|
+
source: "sweezy-cursors.com",
|
|
249
|
+
assets: {
|
|
250
|
+
arrow: {
|
|
251
|
+
assetPath: "cursors/hollow-knight-and-game-arrow/arrow.png",
|
|
252
|
+
width: 32,
|
|
253
|
+
height: 32,
|
|
254
|
+
hotspotX: .5,
|
|
255
|
+
hotspotY: .5
|
|
256
|
+
},
|
|
257
|
+
pointer: {
|
|
258
|
+
assetPath: "cursors/hollow-knight-and-game-arrow/pointer.png",
|
|
259
|
+
width: 32,
|
|
260
|
+
height: 32,
|
|
261
|
+
hotspotX: 5,
|
|
262
|
+
hotspotY: .5
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
id: "hollow-knight-nail-sword-and-mask",
|
|
268
|
+
name: "Hollow Knight Nail Sword & Mask",
|
|
269
|
+
source: "sweezy-cursors.com",
|
|
270
|
+
assets: {
|
|
271
|
+
arrow: {
|
|
272
|
+
assetPath: "cursors/hollow-knight-nail-sword-and-mask/arrow.png",
|
|
273
|
+
width: 32,
|
|
274
|
+
height: 32,
|
|
275
|
+
hotspotX: .5,
|
|
276
|
+
hotspotY: .5
|
|
277
|
+
},
|
|
278
|
+
pointer: {
|
|
279
|
+
assetPath: "cursors/hollow-knight-nail-sword-and-mask/pointer.png",
|
|
280
|
+
width: 32,
|
|
281
|
+
height: 32,
|
|
282
|
+
hotspotX: 3.5,
|
|
283
|
+
hotspotY: 2
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
id: "naruto-akatsuki-cloud-arrow",
|
|
289
|
+
name: "Naruto Akatsuki Cloud Arrow",
|
|
290
|
+
source: "sweezy-cursors.com",
|
|
291
|
+
assets: {
|
|
292
|
+
arrow: {
|
|
293
|
+
assetPath: "cursors/naruto-akatsuki-cloud-arrow/arrow.png",
|
|
294
|
+
width: 32,
|
|
295
|
+
height: 32,
|
|
296
|
+
hotspotX: .5,
|
|
297
|
+
hotspotY: .5
|
|
298
|
+
},
|
|
299
|
+
pointer: {
|
|
300
|
+
assetPath: "cursors/naruto-akatsuki-cloud-arrow/pointer.png",
|
|
301
|
+
width: 32,
|
|
302
|
+
height: 32,
|
|
303
|
+
hotspotX: 1,
|
|
304
|
+
hotspotY: 1
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
id: "old-roblox",
|
|
310
|
+
name: "Old Roblox",
|
|
311
|
+
source: "sweezy-cursors.com",
|
|
312
|
+
assets: {
|
|
313
|
+
arrow: {
|
|
314
|
+
assetPath: "cursors/old-roblox/arrow.png",
|
|
315
|
+
width: 32,
|
|
316
|
+
height: 32,
|
|
317
|
+
hotspotX: 2.5,
|
|
318
|
+
hotspotY: 1.5
|
|
319
|
+
},
|
|
320
|
+
pointer: {
|
|
321
|
+
assetPath: "cursors/old-roblox/pointer.png",
|
|
322
|
+
width: 32,
|
|
323
|
+
height: 32,
|
|
324
|
+
hotspotX: 3.5,
|
|
325
|
+
hotspotY: 1.5
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
id: "pink-glossy-arrow-and-hand-3d",
|
|
331
|
+
name: "Pink Glossy Arrow & Hand 3D",
|
|
332
|
+
source: "sweezy-cursors.com",
|
|
333
|
+
assets: {
|
|
334
|
+
arrow: {
|
|
335
|
+
assetPath: "cursors/pink-glossy-arrow-and-hand-3d/arrow.png",
|
|
336
|
+
width: 32,
|
|
337
|
+
height: 32,
|
|
338
|
+
hotspotX: 1.5,
|
|
339
|
+
hotspotY: 1.5
|
|
340
|
+
},
|
|
341
|
+
pointer: {
|
|
342
|
+
assetPath: "cursors/pink-glossy-arrow-and-hand-3d/pointer.png",
|
|
343
|
+
width: 32,
|
|
344
|
+
height: 32,
|
|
345
|
+
hotspotX: 3,
|
|
346
|
+
hotspotY: 1
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
id: "pinky-pixel",
|
|
352
|
+
name: "Pinky Pixel",
|
|
353
|
+
source: "sweezy-cursors.com",
|
|
354
|
+
assets: {
|
|
355
|
+
arrow: {
|
|
356
|
+
assetPath: "cursors/pinky-pixel/arrow.png",
|
|
357
|
+
width: 32,
|
|
358
|
+
height: 32,
|
|
359
|
+
hotspotX: .5,
|
|
360
|
+
hotspotY: .5
|
|
361
|
+
},
|
|
362
|
+
pointer: {
|
|
363
|
+
assetPath: "cursors/pinky-pixel/pointer.png",
|
|
364
|
+
width: 32,
|
|
365
|
+
height: 32,
|
|
366
|
+
hotspotX: 7,
|
|
367
|
+
hotspotY: 1
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
id: "pokemon-neon-gengar",
|
|
373
|
+
name: "Pokemon Neon Gengar",
|
|
374
|
+
source: "sweezy-cursors.com",
|
|
375
|
+
assets: {
|
|
376
|
+
arrow: {
|
|
377
|
+
assetPath: "cursors/pokemon-neon-gengar/arrow.png",
|
|
378
|
+
width: 32,
|
|
379
|
+
height: 32,
|
|
380
|
+
hotspotX: 1,
|
|
381
|
+
hotspotY: .5
|
|
382
|
+
},
|
|
383
|
+
pointer: {
|
|
384
|
+
assetPath: "cursors/pokemon-neon-gengar/pointer.png",
|
|
385
|
+
width: 32,
|
|
386
|
+
height: 32,
|
|
387
|
+
hotspotX: 2,
|
|
388
|
+
hotspotY: 2.5
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
id: "sanrio-gudetama-and-arrow-kawaii",
|
|
394
|
+
name: "Sanrio Gudetama & Arrow Kawaii",
|
|
395
|
+
source: "sweezy-cursors.com",
|
|
396
|
+
assets: {
|
|
397
|
+
arrow: {
|
|
398
|
+
assetPath: "cursors/sanrio-gudetama-and-arrow-kawaii/arrow.png",
|
|
399
|
+
width: 32,
|
|
400
|
+
height: 32,
|
|
401
|
+
hotspotX: .5,
|
|
402
|
+
hotspotY: .5
|
|
403
|
+
},
|
|
404
|
+
pointer: {
|
|
405
|
+
assetPath: "cursors/sanrio-gudetama-and-arrow-kawaii/pointer.png",
|
|
406
|
+
width: 32,
|
|
407
|
+
height: 32,
|
|
408
|
+
hotspotX: 8,
|
|
409
|
+
hotspotY: 4
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
id: "spring-gradient",
|
|
415
|
+
name: "Spring Gradient",
|
|
416
|
+
source: "sweezy-cursors.com",
|
|
417
|
+
assets: {
|
|
418
|
+
arrow: {
|
|
419
|
+
assetPath: "cursors/spring-gradient/arrow.png",
|
|
420
|
+
width: 32,
|
|
421
|
+
height: 32,
|
|
422
|
+
hotspotX: 1.5,
|
|
423
|
+
hotspotY: .5
|
|
424
|
+
},
|
|
425
|
+
pointer: {
|
|
426
|
+
assetPath: "cursors/spring-gradient/pointer.png",
|
|
427
|
+
width: 32,
|
|
428
|
+
height: 32,
|
|
429
|
+
hotspotX: 8,
|
|
430
|
+
hotspotY: .5
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
id: "mickey-mouse-black-hand-inflated-glove",
|
|
436
|
+
name: "Mickey Mouse Black Hand Inflated Glove",
|
|
437
|
+
source: "sweezy-cursors.com",
|
|
438
|
+
assets: {
|
|
439
|
+
arrow: {
|
|
440
|
+
assetPath: "cursors/mickey-mouse-black-hand-inflated-glove/arrow.png",
|
|
441
|
+
width: 32,
|
|
442
|
+
height: 32,
|
|
443
|
+
hotspotX: 2.5,
|
|
444
|
+
hotspotY: .5
|
|
445
|
+
},
|
|
446
|
+
pointer: {
|
|
447
|
+
assetPath: "cursors/mickey-mouse-black-hand-inflated-glove/pointer.png",
|
|
448
|
+
width: 32,
|
|
449
|
+
height: 32,
|
|
450
|
+
hotspotX: 10,
|
|
451
|
+
hotspotY: .5
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
id: "sanrio-kuromi-skull-arrow",
|
|
457
|
+
name: "Sanrio Kuromi Skull Arrow",
|
|
458
|
+
source: "sweezy-cursors.com",
|
|
459
|
+
assets: {
|
|
460
|
+
arrow: {
|
|
461
|
+
assetPath: "cursors/sanrio-kuromi-skull-arrow/arrow.png",
|
|
462
|
+
width: 32,
|
|
463
|
+
height: 32,
|
|
464
|
+
hotspotX: 1.5,
|
|
465
|
+
hotspotY: .5
|
|
466
|
+
},
|
|
467
|
+
pointer: {
|
|
468
|
+
assetPath: "cursors/sanrio-kuromi-skull-arrow/pointer.png",
|
|
469
|
+
width: 32,
|
|
470
|
+
height: 32,
|
|
471
|
+
hotspotX: 9.5,
|
|
472
|
+
hotspotY: 1
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
id: "solo-leveling-sung-jinwoo-dark-flames",
|
|
478
|
+
name: "Solo Leveling Sung Jinwoo Dark Flames",
|
|
479
|
+
source: "sweezy-cursors.com",
|
|
480
|
+
assets: {
|
|
481
|
+
arrow: {
|
|
482
|
+
assetPath: "cursors/solo-leveling-sung-jinwoo-dark-flames/arrow.png",
|
|
483
|
+
width: 32,
|
|
484
|
+
height: 32,
|
|
485
|
+
hotspotX: 2,
|
|
486
|
+
hotspotY: 1
|
|
487
|
+
},
|
|
488
|
+
pointer: {
|
|
489
|
+
assetPath: "cursors/solo-leveling-sung-jinwoo-dark-flames/pointer.png",
|
|
490
|
+
width: 32,
|
|
491
|
+
height: 32,
|
|
492
|
+
hotspotX: 7,
|
|
493
|
+
hotspotY: 4.5
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
].map((theme) => theme.id)]);
|
|
498
|
+
/**
|
|
499
|
+
* Normalizes a persisted/incoming theme id to a known value, falling back to the
|
|
500
|
+
* default for anything unrecognized.
|
|
501
|
+
*/
|
|
502
|
+
function normalizeCursorThemeId(id) {
|
|
503
|
+
return typeof id === "string" && CURSOR_THEME_IDS.has(id) ? id : DEFAULT_CURSOR_THEME_ID;
|
|
504
|
+
}
|
|
505
|
+
// vendor/openscreen/src/lib/recordingSession.ts
|
|
506
|
+
function normalizeCursorCaptureMode(value) {
|
|
507
|
+
return value === "editable-overlay" || value === "system" ? value : void 0;
|
|
508
|
+
}
|
|
509
|
+
function normalizePath(value) {
|
|
510
|
+
if (typeof value !== "string") return;
|
|
511
|
+
const trimmed = value.trim();
|
|
512
|
+
return trimmed ? trimmed : void 0;
|
|
513
|
+
}
|
|
514
|
+
function normalizeProjectMedia(candidate) {
|
|
515
|
+
if (!candidate || typeof candidate !== "object") return null;
|
|
516
|
+
const raw = candidate;
|
|
517
|
+
const screenVideoPath = normalizePath(raw.screenVideoPath);
|
|
518
|
+
if (!screenVideoPath) return null;
|
|
519
|
+
const webcamVideoPath = normalizePath(raw.webcamVideoPath);
|
|
520
|
+
const cursorCaptureMode = normalizeCursorCaptureMode(raw.cursorCaptureMode);
|
|
521
|
+
return {
|
|
522
|
+
screenVideoPath,
|
|
523
|
+
...webcamVideoPath ? { webcamVideoPath } : {},
|
|
524
|
+
...cursorCaptureMode ? { cursorCaptureMode } : {}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
var WALLPAPER_PATHS = Array.from({ length: 18 }, (_, i) => `/wallpapers/wallpaper${i + 1}.jpg`);
|
|
528
|
+
var DEFAULT_WALLPAPER = WALLPAPER_PATHS[0];
|
|
529
|
+
// vendor/openscreen/src/utils/aspectRatioUtils.ts
|
|
530
|
+
var ASPECT_RATIOS = [
|
|
531
|
+
"16:9",
|
|
532
|
+
"9:16",
|
|
533
|
+
"1:1",
|
|
534
|
+
"4:3",
|
|
535
|
+
"4:5",
|
|
536
|
+
"16:10",
|
|
537
|
+
"10:16",
|
|
538
|
+
"native"
|
|
539
|
+
];
|
|
540
|
+
var NATIVE_ASPECT_RATIO_FALLBACK = 16 / 9;
|
|
541
|
+
/**
|
|
542
|
+
* Numeric value of an aspect ratio. "native" returns the 16/9 fallback;
|
|
543
|
+
* callers with source/crop context should use getNativeAspectRatioValue().
|
|
544
|
+
*/
|
|
545
|
+
function getAspectRatioValue(aspectRatio) {
|
|
546
|
+
switch (aspectRatio) {
|
|
547
|
+
case "16:9": return 16 / 9;
|
|
548
|
+
case "9:16": return 9 / 16;
|
|
549
|
+
case "1:1": return 1;
|
|
550
|
+
case "4:3": return 4 / 3;
|
|
551
|
+
case "4:5": return 4 / 5;
|
|
552
|
+
case "16:10": return 16 / 10;
|
|
553
|
+
case "10:16": return 10 / 16;
|
|
554
|
+
case "native": return NATIVE_ASPECT_RATIO_FALLBACK;
|
|
555
|
+
default: return aspectRatio;
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
function isPortraitAspectRatio(aspectRatio) {
|
|
559
|
+
return getAspectRatioValue(aspectRatio) < 1;
|
|
560
|
+
}
|
|
561
|
+
// vendor/openscreen/src/components/video-editor/editorDefaults.ts
|
|
562
|
+
var DEFAULT_GIF_OUTPUT_DIMENSIONS = {
|
|
563
|
+
width: 1280,
|
|
564
|
+
height: 720
|
|
565
|
+
};
|
|
566
|
+
var DEFAULT_EDITOR_APPEARANCE_SETTINGS = {
|
|
567
|
+
shadowIntensity: 0,
|
|
568
|
+
showBlur: false,
|
|
569
|
+
motionBlurAmount: 0,
|
|
570
|
+
borderRadius: 0,
|
|
571
|
+
showTrimWaveform: true
|
|
572
|
+
};
|
|
573
|
+
var DEFAULT_EDITOR_LAYOUT_SETTINGS = {
|
|
574
|
+
padding: 50,
|
|
575
|
+
aspectRatio: "16:9",
|
|
576
|
+
cropRegion: DEFAULT_CROP_REGION,
|
|
577
|
+
wallpaper: DEFAULT_WALLPAPER
|
|
578
|
+
};
|
|
579
|
+
var DEFAULT_WEBCAM_SETTINGS = {
|
|
580
|
+
layoutPreset: DEFAULT_WEBCAM_LAYOUT_PRESET,
|
|
581
|
+
maskShape: DEFAULT_WEBCAM_MASK_SHAPE,
|
|
582
|
+
sizePreset: 25,
|
|
583
|
+
position: null
|
|
584
|
+
};
|
|
585
|
+
var DEFAULT_EXPORT_SETTINGS = {
|
|
586
|
+
quality: "good",
|
|
587
|
+
format: "mp4"
|
|
588
|
+
};
|
|
589
|
+
var DEFAULT_GIF_SETTINGS = {
|
|
590
|
+
frameRate: 15,
|
|
591
|
+
loop: true,
|
|
592
|
+
sizePreset: "medium",
|
|
593
|
+
outputDimensions: DEFAULT_GIF_OUTPUT_DIMENSIONS
|
|
594
|
+
};
|
|
595
|
+
// vendor/openscreen/src/components/video-editor/projectPersistence.ts
|
|
596
|
+
var VALID_BLUR_SHAPES = /* @__PURE__ */ new Set([
|
|
597
|
+
"rectangle",
|
|
598
|
+
"oval",
|
|
599
|
+
"freehand"
|
|
600
|
+
]);
|
|
601
|
+
var LEGACY_FILE_WALLPAPER_RE = /^file:\/\/.*?\/(?:resources\/(?:assets\/)?|public\/)wallpapers\/(wallpaper\d+\.jpg)$/i;
|
|
602
|
+
var CANONICAL_WALLPAPERS = new Set(WALLPAPER_PATHS);
|
|
603
|
+
function normalizeWallpaperValue(value) {
|
|
604
|
+
const match = LEGACY_FILE_WALLPAPER_RE.exec(value);
|
|
605
|
+
if (!match) return value;
|
|
606
|
+
const canonical = `/wallpapers/${match[1]}`;
|
|
607
|
+
return CANONICAL_WALLPAPERS.has(canonical) ? canonical : DEFAULT_WALLPAPER;
|
|
608
|
+
}
|
|
609
|
+
var PROJECT_VERSION = 2;
|
|
610
|
+
function isFiniteNumber(value) {
|
|
611
|
+
return typeof value === "number" && Number.isFinite(value);
|
|
612
|
+
}
|
|
613
|
+
function computeNormalizedWebcamLayoutPreset(webcamLayoutPreset, normalizedAspectRatio) {
|
|
614
|
+
switch (webcamLayoutPreset) {
|
|
615
|
+
case "picture-in-picture":
|
|
616
|
+
case "no-webcam": return webcamLayoutPreset;
|
|
617
|
+
case "vertical-stack": return isPortraitAspectRatio(normalizedAspectRatio) ? webcamLayoutPreset : DEFAULT_WEBCAM_SETTINGS.layoutPreset;
|
|
618
|
+
case "dual-frame": return isPortraitAspectRatio(normalizedAspectRatio) ? DEFAULT_WEBCAM_SETTINGS.layoutPreset : webcamLayoutPreset;
|
|
619
|
+
default: return DEFAULT_WEBCAM_SETTINGS.layoutPreset;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
function clamp(value, min, max) {
|
|
623
|
+
return Math.min(max, Math.max(min, value));
|
|
624
|
+
}
|
|
625
|
+
function validateProjectData(candidate) {
|
|
626
|
+
if (!candidate || typeof candidate !== "object") return false;
|
|
627
|
+
const project = candidate;
|
|
628
|
+
if (typeof project.version !== "number") return false;
|
|
629
|
+
if (!resolveProjectMedia(project)) return false;
|
|
630
|
+
if (!project.editor || typeof project.editor !== "object") return false;
|
|
631
|
+
return true;
|
|
632
|
+
}
|
|
633
|
+
function resolveProjectMedia(candidate) {
|
|
634
|
+
const media = normalizeProjectMedia(candidate.media);
|
|
635
|
+
if (media) return media;
|
|
636
|
+
if (typeof candidate.videoPath === "string" && candidate.videoPath.trim()) return { screenVideoPath: candidate.videoPath };
|
|
637
|
+
return null;
|
|
638
|
+
}
|
|
639
|
+
function normalizeProjectEditor(editor) {
|
|
640
|
+
const normalizedAspectRatio = new Set(ASPECT_RATIOS).has(editor.aspectRatio) ? editor.aspectRatio : DEFAULT_EDITOR_LAYOUT_SETTINGS.aspectRatio;
|
|
641
|
+
const normalizedWebcamLayoutPreset = computeNormalizedWebcamLayoutPreset(editor.webcamLayoutPreset, normalizedAspectRatio);
|
|
642
|
+
const normalizedWebcamPosition = normalizedWebcamLayoutPreset === "picture-in-picture" && editor.webcamPosition && typeof editor.webcamPosition === "object" && isFiniteNumber(editor.webcamPosition.cx) && isFiniteNumber(editor.webcamPosition.cy) ? {
|
|
643
|
+
cx: clamp(editor.webcamPosition.cx, 0, 1),
|
|
644
|
+
cy: clamp(editor.webcamPosition.cy, 0, 1)
|
|
645
|
+
} : DEFAULT_WEBCAM_SETTINGS.position;
|
|
646
|
+
const normalizedZoomRegions = Array.isArray(editor.zoomRegions) ? editor.zoomRegions.filter((region) => Boolean(region && typeof region.id === "string")).map((region) => {
|
|
647
|
+
const rawStart = isFiniteNumber(region.startMs) ? Math.round(region.startMs) : 0;
|
|
648
|
+
const rawEnd = isFiniteNumber(region.endMs) ? Math.round(region.endMs) : rawStart + 1e3;
|
|
649
|
+
const startMs = Math.max(0, Math.min(rawStart, rawEnd));
|
|
650
|
+
const endMs = Math.max(startMs + 1, rawEnd);
|
|
651
|
+
const validPreset = region.rotationPreset === "iso" || region.rotationPreset === "left" || region.rotationPreset === "right" ? region.rotationPreset : void 0;
|
|
652
|
+
return {
|
|
653
|
+
id: region.id,
|
|
654
|
+
startMs,
|
|
655
|
+
endMs,
|
|
656
|
+
depth: [
|
|
657
|
+
1,
|
|
658
|
+
2,
|
|
659
|
+
3,
|
|
660
|
+
4,
|
|
661
|
+
5,
|
|
662
|
+
6
|
|
663
|
+
].includes(region.depth) ? region.depth : 3,
|
|
664
|
+
focus: {
|
|
665
|
+
cx: clamp(isFiniteNumber(region.focus?.cx) ? region.focus.cx : .5, 0, 1),
|
|
666
|
+
cy: clamp(isFiniteNumber(region.focus?.cy) ? region.focus.cy : .5, 0, 1)
|
|
667
|
+
},
|
|
668
|
+
focusMode: region.focusMode === "auto" ? "auto" : "manual",
|
|
669
|
+
source: region.source === "auto" ? "auto" : "manual",
|
|
670
|
+
...validPreset ? { rotationPreset: validPreset } : {}
|
|
671
|
+
};
|
|
672
|
+
}) : [];
|
|
673
|
+
const normalizedTrimRegions = Array.isArray(editor.trimRegions) ? editor.trimRegions.filter((region) => Boolean(region && typeof region.id === "string")).map((region) => {
|
|
674
|
+
const rawStart = isFiniteNumber(region.startMs) ? Math.round(region.startMs) : 0;
|
|
675
|
+
const rawEnd = isFiniteNumber(region.endMs) ? Math.round(region.endMs) : rawStart + 1e3;
|
|
676
|
+
const startMs = Math.max(0, Math.min(rawStart, rawEnd));
|
|
677
|
+
const endMs = Math.max(startMs + 1, rawEnd);
|
|
678
|
+
return {
|
|
679
|
+
id: region.id,
|
|
680
|
+
startMs,
|
|
681
|
+
endMs
|
|
682
|
+
};
|
|
683
|
+
}) : [];
|
|
684
|
+
const normalizedSpeedRegions = Array.isArray(editor.speedRegions) ? editor.speedRegions.filter((region) => Boolean(region && typeof region.id === "string")).map((region) => {
|
|
685
|
+
const rawStart = isFiniteNumber(region.startMs) ? Math.round(region.startMs) : 0;
|
|
686
|
+
const rawEnd = isFiniteNumber(region.endMs) ? Math.round(region.endMs) : rawStart + 1e3;
|
|
687
|
+
const startMs = Math.max(0, Math.min(rawStart, rawEnd));
|
|
688
|
+
const endMs = Math.max(startMs + 1, rawEnd);
|
|
689
|
+
const speed = isFiniteNumber(region.speed) && region.speed >= .1 && region.speed <= 16 ? clampPlaybackSpeed(region.speed) : DEFAULT_PLAYBACK_SPEED;
|
|
690
|
+
return {
|
|
691
|
+
id: region.id,
|
|
692
|
+
startMs,
|
|
693
|
+
endMs,
|
|
694
|
+
speed
|
|
695
|
+
};
|
|
696
|
+
}) : [];
|
|
697
|
+
const normalizedAnnotationRegions = Array.isArray(editor.annotationRegions) ? editor.annotationRegions.filter((region) => Boolean(region && typeof region.id === "string")).map((region, index) => {
|
|
698
|
+
const rawStart = isFiniteNumber(region.startMs) ? Math.round(region.startMs) : 0;
|
|
699
|
+
const rawEnd = isFiniteNumber(region.endMs) ? Math.round(region.endMs) : rawStart + 1e3;
|
|
700
|
+
const startMs = Math.max(0, Math.min(rawStart, rawEnd));
|
|
701
|
+
const endMs = Math.max(startMs + 1, rawEnd);
|
|
702
|
+
const blurShape = typeof region.blurData?.shape === "string" && VALID_BLUR_SHAPES.has(region.blurData.shape) ? region.blurData.shape : DEFAULT_BLUR_DATA.shape;
|
|
703
|
+
const blurType = normalizeBlurType(region.blurData?.type);
|
|
704
|
+
const blurColor = normalizeBlurColor(region.blurData?.color);
|
|
705
|
+
return {
|
|
706
|
+
id: region.id,
|
|
707
|
+
startMs,
|
|
708
|
+
endMs,
|
|
709
|
+
type: region.type === "image" || region.type === "figure" || region.type === "blur" ? region.type : "text",
|
|
710
|
+
content: typeof region.content === "string" ? region.content : "",
|
|
711
|
+
textContent: typeof region.textContent === "string" ? region.textContent : void 0,
|
|
712
|
+
imageContent: typeof region.imageContent === "string" ? region.imageContent : void 0,
|
|
713
|
+
annotationSource: region.annotationSource === "auto-caption" ? "auto-caption" : void 0,
|
|
714
|
+
position: {
|
|
715
|
+
x: clamp(isFiniteNumber(region.position?.x) ? region.position.x : DEFAULT_ANNOTATION_POSITION.x, 0, 100),
|
|
716
|
+
y: clamp(isFiniteNumber(region.position?.y) ? region.position.y : DEFAULT_ANNOTATION_POSITION.y, 0, 100)
|
|
717
|
+
},
|
|
718
|
+
size: {
|
|
719
|
+
width: clamp(isFiniteNumber(region.size?.width) ? region.size.width : DEFAULT_ANNOTATION_SIZE.width, 1, 200),
|
|
720
|
+
height: clamp(isFiniteNumber(region.size?.height) ? region.size.height : DEFAULT_ANNOTATION_SIZE.height, 1, 200)
|
|
721
|
+
},
|
|
722
|
+
style: {
|
|
723
|
+
...DEFAULT_ANNOTATION_STYLE,
|
|
724
|
+
...region.style && typeof region.style === "object" ? region.style : {},
|
|
725
|
+
textAnimation: normalizeTextAnimation(region.style?.textAnimation)
|
|
726
|
+
},
|
|
727
|
+
zIndex: isFiniteNumber(region.zIndex) ? region.zIndex : index + 1,
|
|
728
|
+
figureData: region.figureData ? {
|
|
729
|
+
...DEFAULT_FIGURE_DATA,
|
|
730
|
+
...region.figureData
|
|
731
|
+
} : void 0,
|
|
732
|
+
blurData: region.blurData && typeof region.blurData === "object" ? {
|
|
733
|
+
...DEFAULT_BLUR_DATA,
|
|
734
|
+
...region.blurData,
|
|
735
|
+
type: blurType,
|
|
736
|
+
shape: blurShape,
|
|
737
|
+
color: blurColor,
|
|
738
|
+
intensity: isFiniteNumber(region.blurData.intensity) ? clamp(region.blurData.intensity, 2, 40) : 12,
|
|
739
|
+
blockSize: isFiniteNumber(region.blurData.blockSize) ? clamp(region.blurData.blockSize, 4, 48) : 12,
|
|
740
|
+
freehandPoints: Array.isArray(region.blurData.freehandPoints) ? region.blurData.freehandPoints.filter((point) => Boolean(point && isFiniteNumber(point.x) && isFiniteNumber(point.y))).map((point) => ({
|
|
741
|
+
x: clamp(point.x, 0, 100),
|
|
742
|
+
y: clamp(point.y, 0, 100)
|
|
743
|
+
})) : DEFAULT_BLUR_FREEHAND_POINTS
|
|
744
|
+
} : void 0
|
|
745
|
+
};
|
|
746
|
+
}) : [];
|
|
747
|
+
const rawCropX = isFiniteNumber(editor.cropRegion?.x) ? editor.cropRegion.x : DEFAULT_EDITOR_LAYOUT_SETTINGS.cropRegion.x;
|
|
748
|
+
const rawCropY = isFiniteNumber(editor.cropRegion?.y) ? editor.cropRegion.y : DEFAULT_EDITOR_LAYOUT_SETTINGS.cropRegion.y;
|
|
749
|
+
const rawCropWidth = isFiniteNumber(editor.cropRegion?.width) ? editor.cropRegion.width : DEFAULT_EDITOR_LAYOUT_SETTINGS.cropRegion.width;
|
|
750
|
+
const rawCropHeight = isFiniteNumber(editor.cropRegion?.height) ? editor.cropRegion.height : DEFAULT_EDITOR_LAYOUT_SETTINGS.cropRegion.height;
|
|
751
|
+
const cropX = clamp(rawCropX, 0, 1);
|
|
752
|
+
const cropY = clamp(rawCropY, 0, 1);
|
|
753
|
+
const cropWidth = clamp(rawCropWidth, .01, 1 - cropX);
|
|
754
|
+
const cropHeight = clamp(rawCropHeight, .01, 1 - cropY);
|
|
755
|
+
return {
|
|
756
|
+
cursorTheme: normalizeCursorThemeId(editor.cursorTheme),
|
|
757
|
+
wallpaper: typeof editor.wallpaper === "string" ? normalizeWallpaperValue(editor.wallpaper) : DEFAULT_EDITOR_LAYOUT_SETTINGS.wallpaper,
|
|
758
|
+
shadowIntensity: typeof editor.shadowIntensity === "number" ? editor.shadowIntensity : DEFAULT_EDITOR_APPEARANCE_SETTINGS.shadowIntensity,
|
|
759
|
+
showBlur: typeof editor.showBlur === "boolean" ? editor.showBlur : DEFAULT_EDITOR_APPEARANCE_SETTINGS.showBlur,
|
|
760
|
+
showTrimWaveform: typeof editor.showTrimWaveform === "boolean" ? editor.showTrimWaveform : DEFAULT_EDITOR_APPEARANCE_SETTINGS.showTrimWaveform,
|
|
761
|
+
motionBlurAmount: isFiniteNumber(editor.motionBlurAmount) ? clamp(editor.motionBlurAmount, 0, 1) : typeof editor.motionBlurEnabled === "boolean" ? editor.motionBlurEnabled ? DEFAULT_ZOOM_MOTION_BLUR : DEFAULT_EDITOR_APPEARANCE_SETTINGS.motionBlurAmount : DEFAULT_EDITOR_APPEARANCE_SETTINGS.motionBlurAmount,
|
|
762
|
+
borderRadius: typeof editor.borderRadius === "number" ? editor.borderRadius : DEFAULT_EDITOR_APPEARANCE_SETTINGS.borderRadius,
|
|
763
|
+
padding: isFiniteNumber(editor.padding) ? clamp(editor.padding, 0, 100) : DEFAULT_EDITOR_LAYOUT_SETTINGS.padding,
|
|
764
|
+
cropRegion: {
|
|
765
|
+
x: cropX,
|
|
766
|
+
y: cropY,
|
|
767
|
+
width: cropWidth,
|
|
768
|
+
height: cropHeight
|
|
769
|
+
},
|
|
770
|
+
zoomRegions: normalizedZoomRegions,
|
|
771
|
+
autoZoomEnabled: typeof editor.autoZoomEnabled === "boolean" ? editor.autoZoomEnabled : true,
|
|
772
|
+
autoFocusAll: typeof editor.autoFocusAll === "boolean" ? editor.autoFocusAll : false,
|
|
773
|
+
trimRegions: normalizedTrimRegions,
|
|
774
|
+
speedRegions: normalizedSpeedRegions,
|
|
775
|
+
annotationRegions: normalizedAnnotationRegions,
|
|
776
|
+
aspectRatio: normalizedAspectRatio,
|
|
777
|
+
webcamLayoutPreset: normalizedWebcamLayoutPreset,
|
|
778
|
+
webcamMaskShape: editor.webcamMaskShape === "rectangle" || editor.webcamMaskShape === "circle" || editor.webcamMaskShape === "square" || editor.webcamMaskShape === "rounded" ? editor.webcamMaskShape : DEFAULT_WEBCAM_SETTINGS.maskShape,
|
|
779
|
+
webcamMirrored: typeof editor.webcamMirrored === "boolean" ? editor.webcamMirrored : false,
|
|
780
|
+
webcamReactiveZoom: typeof editor.webcamReactiveZoom === "boolean" ? editor.webcamReactiveZoom : true,
|
|
781
|
+
webcamSizePreset: typeof editor.webcamSizePreset === "number" && isFiniteNumber(editor.webcamSizePreset) ? Math.max(10, Math.min(50, editor.webcamSizePreset)) : DEFAULT_WEBCAM_SETTINGS.sizePreset,
|
|
782
|
+
webcamPosition: normalizedWebcamPosition,
|
|
783
|
+
exportQuality: editor.exportQuality === "medium" || editor.exportQuality === "source" ? editor.exportQuality : DEFAULT_EXPORT_SETTINGS.quality,
|
|
784
|
+
exportFormat: editor.exportFormat === "gif" ? "gif" : DEFAULT_EXPORT_SETTINGS.format,
|
|
785
|
+
gifFrameRate: editor.gifFrameRate === 15 || editor.gifFrameRate === 20 || editor.gifFrameRate === 25 || editor.gifFrameRate === 30 ? editor.gifFrameRate : DEFAULT_GIF_SETTINGS.frameRate,
|
|
786
|
+
gifLoop: typeof editor.gifLoop === "boolean" ? editor.gifLoop : DEFAULT_GIF_SETTINGS.loop,
|
|
787
|
+
gifSizePreset: editor.gifSizePreset === "medium" || editor.gifSizePreset === "large" || editor.gifSizePreset === "original" ? editor.gifSizePreset : DEFAULT_GIF_SETTINGS.sizePreset
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
// vendor/openscreen/src/components/video-editor/videoPlayback/constants.ts
|
|
791
|
+
var TRANSITION_WINDOW_MS = 1015.05;
|
|
792
|
+
var ZOOM_IN_TRANSITION_WINDOW_MS = TRANSITION_WINDOW_MS * 1.5;
|
|
793
|
+
export { PROJECT_VERSION, TRANSITION_WINDOW_MS, ZOOM_DEPTH_SCALES, ZOOM_IN_TRANSITION_WINDOW_MS, normalizeProjectEditor, resolveProjectMedia, validateProjectData };
|