@rendley/sdk 1.10.2 → 1.11.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.
Files changed (46) hide show
  1. package/LICENSE +48 -48
  2. package/README.md +31 -31
  3. package/dist/Engine.d.ts +54 -4
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.d.ts +2 -0
  6. package/dist/index.js +1 -1
  7. package/dist/modules/background-timer/background-timer.d.ts +2 -1
  8. package/dist/modules/clip/Clip.d.ts +40 -121
  9. package/dist/modules/clip/ClipStyle.d.ts +5 -0
  10. package/dist/modules/clip/clips/audio/AudioClip.d.ts +7 -18
  11. package/dist/modules/clip/clips/custom/CustomClip.d.ts +6 -17
  12. package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +7 -18
  13. package/dist/modules/clip/clips/lottie/LottieClip.d.ts +35 -41
  14. package/dist/modules/clip/clips/shape/ShapeClip.d.ts +6 -17
  15. package/dist/modules/clip/clips/text/TextClip.d.ts +7 -18
  16. package/dist/modules/clip/clips/video/VideoClip.d.ts +8 -18
  17. package/dist/modules/effect/BasicEffect.d.ts +6 -0
  18. package/dist/modules/effect/Effect.d.ts +47 -0
  19. package/dist/modules/effect/EffectBase.d.ts +9 -0
  20. package/dist/modules/effect/built-in-effects/BuiltInBlurEffect.d.ts +11 -0
  21. package/dist/modules/effect/built-in-effects/BuiltInFactory.d.ts +4 -0
  22. package/dist/modules/effect/index.d.ts +2 -0
  23. package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +40 -4
  24. package/dist/modules/ffmpeg/types/FFmpeg.types.d.ts +1 -0
  25. package/dist/modules/filter/Filter.d.ts +32 -27
  26. package/dist/modules/filter/MaskFilter.d.ts +1 -1
  27. package/dist/modules/filter/index.d.ts +1 -1
  28. package/dist/modules/layer/Layer.d.ts +20 -19
  29. package/dist/modules/library/BuiltInEffectDefines.d.ts +7 -0
  30. package/dist/modules/library/EffectData.d.ts +141 -0
  31. package/dist/modules/library/FilterData.d.ts +49 -0
  32. package/dist/modules/library/Library.d.ts +355 -0
  33. package/dist/modules/library/MediaData.d.ts +11 -1
  34. package/dist/modules/library/TransitionData.d.ts +141 -0
  35. package/dist/modules/library/index.d.ts +7 -1
  36. package/dist/modules/library/types/Property.types.d.ts +54 -0
  37. package/dist/modules/library/types/Texture.types.d.ts +40 -0
  38. package/dist/modules/subtitles/SubtitleManager.d.ts +1 -1
  39. package/dist/modules/timeline/Timeline.d.ts +27 -24
  40. package/dist/modules/transition/Transition.d.ts +27 -17
  41. package/dist/modules/undo/UndoManager.types.d.ts +6 -0
  42. package/dist/modules/upgrader/Upgrader.d.ts +5 -0
  43. package/package.json +83 -82
  44. package/dist/modules/filter/Effect.d.ts +0 -84
  45. package/dist/modules/filter/utils/removeShaderNameLine.d.ts +0 -1
  46. package/dist/modules/library/types/MediaData.types.d.ts +0 -8
@@ -1,6 +1,18 @@
1
1
  import { z } from "zod";
2
+ import { EffectData, EffectDataOptions } from "./EffectData";
3
+ import { FilterData, FilterDataOptions } from "./FilterData";
2
4
  import { MediaData } from "./MediaData";
3
5
  import { Subtitles } from "./Subtitles";
6
+ import { TransitionData, TransitionDataOptions } from "./TransitionData";
7
+ export interface AssetInfo {
8
+ id: string;
9
+ provider: string;
10
+ }
11
+ export interface LibrarySetupData {
12
+ missingEffects: AssetInfo[];
13
+ missingFilters: AssetInfo[];
14
+ missingTransitions: AssetInfo[];
15
+ }
4
16
  export declare const LibrarySchema: z.ZodObject<{
5
17
  media: z.ZodArray<z.ZodObject<{
6
18
  id: z.ZodString;
@@ -63,6 +75,186 @@ export declare const LibrarySchema: z.ZodObject<{
63
75
  duration: number;
64
76
  }[];
65
77
  }>, "many">;
78
+ effects: z.ZodArray<z.ZodObject<{
79
+ id: z.ZodString;
80
+ name: z.ZodString;
81
+ provider: z.ZodString;
82
+ fragmentSrc: z.ZodString;
83
+ properties: z.ZodArray<z.ZodObject<{
84
+ name: z.ZodString;
85
+ type: z.ZodNativeEnum<typeof import('../../index').PropertyDescriptionTypeEnum>;
86
+ label: z.ZodOptional<z.ZodString>;
87
+ description: z.ZodOptional<z.ZodString>;
88
+ defaultValue: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
89
+ }, "strip", z.ZodTypeAny, {
90
+ type: import('../../index').PropertyDescriptionTypeEnum;
91
+ name: string;
92
+ defaultValue: Required<any>;
93
+ label?: string | undefined;
94
+ description?: string | undefined;
95
+ }, {
96
+ type: import('../../index').PropertyDescriptionTypeEnum;
97
+ name: string;
98
+ defaultValue: Required<any>;
99
+ label?: string | undefined;
100
+ description?: string | undefined;
101
+ }>, "many">;
102
+ inputTextures: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ name: z.ZodString;
104
+ url: z.ZodString;
105
+ wrapMode: z.ZodOptional<z.ZodNativeEnum<typeof import('../../index').InputTextureWrapMode>>;
106
+ scaleMode: z.ZodOptional<z.ZodNativeEnum<typeof import('../../index').InputTextureScaleMode>>;
107
+ mipmap: z.ZodOptional<z.ZodNativeEnum<typeof import('../../index').InputTextureMipmapMode>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ name: string;
110
+ url: string;
111
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
112
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
113
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
114
+ }, {
115
+ name: string;
116
+ url: string;
117
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
118
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
119
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
120
+ }>, "many">>;
121
+ }, "strip", z.ZodTypeAny, {
122
+ name: string;
123
+ id: string;
124
+ provider: string;
125
+ fragmentSrc: string;
126
+ properties: {
127
+ type: import('../../index').PropertyDescriptionTypeEnum;
128
+ name: string;
129
+ defaultValue: Required<any>;
130
+ label?: string | undefined;
131
+ description?: string | undefined;
132
+ }[];
133
+ inputTextures?: {
134
+ name: string;
135
+ url: string;
136
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
137
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
138
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
139
+ }[] | undefined;
140
+ }, {
141
+ name: string;
142
+ id: string;
143
+ provider: string;
144
+ fragmentSrc: string;
145
+ properties: {
146
+ type: import('../../index').PropertyDescriptionTypeEnum;
147
+ name: string;
148
+ defaultValue: Required<any>;
149
+ label?: string | undefined;
150
+ description?: string | undefined;
151
+ }[];
152
+ inputTextures?: {
153
+ name: string;
154
+ url: string;
155
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
156
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
157
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
158
+ }[] | undefined;
159
+ }>, "many">;
160
+ filters: z.ZodArray<z.ZodObject<{
161
+ id: z.ZodString;
162
+ name: z.ZodString;
163
+ provider: z.ZodString;
164
+ lutUrl: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ name: string;
167
+ id: string;
168
+ provider: string;
169
+ lutUrl: string;
170
+ }, {
171
+ name: string;
172
+ id: string;
173
+ provider: string;
174
+ lutUrl: string;
175
+ }>, "many">;
176
+ transitions: z.ZodArray<z.ZodObject<{
177
+ id: z.ZodString;
178
+ name: z.ZodString;
179
+ provider: z.ZodString;
180
+ transitionSrc: z.ZodString;
181
+ properties: z.ZodArray<z.ZodObject<{
182
+ name: z.ZodString;
183
+ type: z.ZodNativeEnum<typeof import('../../index').PropertyDescriptionTypeEnum>;
184
+ label: z.ZodOptional<z.ZodString>;
185
+ description: z.ZodOptional<z.ZodString>;
186
+ defaultValue: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ type: import('../../index').PropertyDescriptionTypeEnum;
189
+ name: string;
190
+ defaultValue: Required<any>;
191
+ label?: string | undefined;
192
+ description?: string | undefined;
193
+ }, {
194
+ type: import('../../index').PropertyDescriptionTypeEnum;
195
+ name: string;
196
+ defaultValue: Required<any>;
197
+ label?: string | undefined;
198
+ description?: string | undefined;
199
+ }>, "many">;
200
+ inputTextures: z.ZodOptional<z.ZodArray<z.ZodObject<{
201
+ name: z.ZodString;
202
+ url: z.ZodString;
203
+ wrapMode: z.ZodOptional<z.ZodNativeEnum<typeof import('../../index').InputTextureWrapMode>>;
204
+ scaleMode: z.ZodOptional<z.ZodNativeEnum<typeof import('../../index').InputTextureScaleMode>>;
205
+ mipmap: z.ZodOptional<z.ZodNativeEnum<typeof import('../../index').InputTextureMipmapMode>>;
206
+ }, "strip", z.ZodTypeAny, {
207
+ name: string;
208
+ url: string;
209
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
210
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
211
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
212
+ }, {
213
+ name: string;
214
+ url: string;
215
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
216
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
217
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
218
+ }>, "many">>;
219
+ }, "strip", z.ZodTypeAny, {
220
+ name: string;
221
+ id: string;
222
+ provider: string;
223
+ properties: {
224
+ type: import('../../index').PropertyDescriptionTypeEnum;
225
+ name: string;
226
+ defaultValue: Required<any>;
227
+ label?: string | undefined;
228
+ description?: string | undefined;
229
+ }[];
230
+ transitionSrc: string;
231
+ inputTextures?: {
232
+ name: string;
233
+ url: string;
234
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
235
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
236
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
237
+ }[] | undefined;
238
+ }, {
239
+ name: string;
240
+ id: string;
241
+ provider: string;
242
+ properties: {
243
+ type: import('../../index').PropertyDescriptionTypeEnum;
244
+ name: string;
245
+ defaultValue: Required<any>;
246
+ label?: string | undefined;
247
+ description?: string | undefined;
248
+ }[];
249
+ transitionSrc: string;
250
+ inputTextures?: {
251
+ name: string;
252
+ url: string;
253
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
254
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
255
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
256
+ }[] | undefined;
257
+ }>, "many">;
66
258
  }, "strip", z.ZodTypeAny, {
67
259
  subtitles: {
68
260
  id: string;
@@ -74,6 +266,52 @@ export declare const LibrarySchema: z.ZodObject<{
74
266
  duration: number;
75
267
  }[];
76
268
  }[];
269
+ filters: {
270
+ name: string;
271
+ id: string;
272
+ provider: string;
273
+ lutUrl: string;
274
+ }[];
275
+ effects: {
276
+ name: string;
277
+ id: string;
278
+ provider: string;
279
+ fragmentSrc: string;
280
+ properties: {
281
+ type: import('../../index').PropertyDescriptionTypeEnum;
282
+ name: string;
283
+ defaultValue: Required<any>;
284
+ label?: string | undefined;
285
+ description?: string | undefined;
286
+ }[];
287
+ inputTextures?: {
288
+ name: string;
289
+ url: string;
290
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
291
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
292
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
293
+ }[] | undefined;
294
+ }[];
295
+ transitions: {
296
+ name: string;
297
+ id: string;
298
+ provider: string;
299
+ properties: {
300
+ type: import('../../index').PropertyDescriptionTypeEnum;
301
+ name: string;
302
+ defaultValue: Required<any>;
303
+ label?: string | undefined;
304
+ description?: string | undefined;
305
+ }[];
306
+ transitionSrc: string;
307
+ inputTextures?: {
308
+ name: string;
309
+ url: string;
310
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
311
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
312
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
313
+ }[] | undefined;
314
+ }[];
77
315
  media: {
78
316
  type: string;
79
317
  id: string;
@@ -94,6 +332,52 @@ export declare const LibrarySchema: z.ZodObject<{
94
332
  duration: number;
95
333
  }[];
96
334
  }[];
335
+ filters: {
336
+ name: string;
337
+ id: string;
338
+ provider: string;
339
+ lutUrl: string;
340
+ }[];
341
+ effects: {
342
+ name: string;
343
+ id: string;
344
+ provider: string;
345
+ fragmentSrc: string;
346
+ properties: {
347
+ type: import('../../index').PropertyDescriptionTypeEnum;
348
+ name: string;
349
+ defaultValue: Required<any>;
350
+ label?: string | undefined;
351
+ description?: string | undefined;
352
+ }[];
353
+ inputTextures?: {
354
+ name: string;
355
+ url: string;
356
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
357
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
358
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
359
+ }[] | undefined;
360
+ }[];
361
+ transitions: {
362
+ name: string;
363
+ id: string;
364
+ provider: string;
365
+ properties: {
366
+ type: import('../../index').PropertyDescriptionTypeEnum;
367
+ name: string;
368
+ defaultValue: Required<any>;
369
+ label?: string | undefined;
370
+ description?: string | undefined;
371
+ }[];
372
+ transitionSrc: string;
373
+ inputTextures?: {
374
+ name: string;
375
+ url: string;
376
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
377
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
378
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
379
+ }[] | undefined;
380
+ }[];
97
381
  media: {
98
382
  type: string;
99
383
  id: string;
@@ -107,9 +391,14 @@ export declare const LibrarySchema: z.ZodObject<{
107
391
  export declare class Library {
108
392
  media: Record<string, MediaData>;
109
393
  subtitles: Record<string, Subtitles>;
394
+ effects: Record<string, EffectData>;
395
+ filters: Record<string, FilterData>;
396
+ transitions: Record<string, TransitionData>;
397
+ builtInEffects: Record<string, EffectData>;
110
398
  constructor();
111
399
  init(): Promise<void>;
112
400
  destroy(): Promise<void>;
401
+ createBuiltInEffects(): Promise<void>;
113
402
  getMediaById(id: string): MediaData | undefined;
114
403
  addMedia(source: File | string | Uint8Array, mimeType?: string): Promise<string | null>;
115
404
  addSerializedMedia(data: any): Promise<string>;
@@ -117,10 +406,30 @@ export declare class Library {
117
406
  storeAllMedia(): Promise<void>;
118
407
  replaceMedia(id: string, file: File | string | Uint8Array, mimeType?: string): Promise<boolean>;
119
408
  replaceSerializedMedia(data: any): Promise<boolean>;
409
+ addEffect(options: EffectDataOptions): Promise<string>;
410
+ removeEffect(id: string): void;
411
+ getEffectById(id: string): EffectData | undefined;
412
+ getAllEffectIds(): string[];
413
+ getRegisteredEffectIds(): string[];
414
+ getBuiltInEffectIds(): string[];
415
+ addFilter(options: FilterDataOptions): Promise<string>;
416
+ removeFilter(id: string): void;
417
+ getFilterIds(): string[];
418
+ getFilterById(id: string): FilterData | undefined;
419
+ addTransition(options: TransitionDataOptions): Promise<string>;
420
+ removeTransition(id: string): void;
421
+ getTransitionIds(): string[];
422
+ getTransitionById(id: string): TransitionData | undefined;
120
423
  addSubtitles(subtitles: Subtitles): string;
121
424
  removeSubtitles(id: string): void;
122
425
  getSubtitlesById(id: string): Subtitles | undefined;
123
426
  getSubtitlesIds(): string[];
427
+ removeUnusedSubtitles(): void;
428
+ removeUnusedMedia(): Promise<void>;
429
+ removeUnusedEffects(): void;
430
+ removeUnusedFilters(): void;
431
+ removeUnusedTransitions(): void;
432
+ removeUnusedAssets(): Promise<void>;
124
433
  serialize(): {
125
434
  subtitles: {
126
435
  id: string;
@@ -132,6 +441,52 @@ export declare class Library {
132
441
  duration: number;
133
442
  }[];
134
443
  }[];
444
+ filters: {
445
+ name: string;
446
+ id: string;
447
+ provider: string;
448
+ lutUrl: string;
449
+ }[];
450
+ effects: {
451
+ name: string;
452
+ id: string;
453
+ provider: string;
454
+ fragmentSrc: string;
455
+ properties: {
456
+ type: import('../../index').PropertyDescriptionTypeEnum;
457
+ name: string;
458
+ defaultValue: Required<any>;
459
+ label?: string | undefined;
460
+ description?: string | undefined;
461
+ }[];
462
+ inputTextures?: {
463
+ name: string;
464
+ url: string;
465
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
466
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
467
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
468
+ }[] | undefined;
469
+ }[];
470
+ transitions: {
471
+ name: string;
472
+ id: string;
473
+ provider: string;
474
+ properties: {
475
+ type: import('../../index').PropertyDescriptionTypeEnum;
476
+ name: string;
477
+ defaultValue: Required<any>;
478
+ label?: string | undefined;
479
+ description?: string | undefined;
480
+ }[];
481
+ transitionSrc: string;
482
+ inputTextures?: {
483
+ name: string;
484
+ url: string;
485
+ wrapMode?: import('../../index').InputTextureWrapMode | undefined;
486
+ scaleMode?: import('../../index').InputTextureScaleMode | undefined;
487
+ mipmap?: import('../../index').InputTextureMipmapMode | undefined;
488
+ }[] | undefined;
489
+ }[];
135
490
  media: {
136
491
  type: string;
137
492
  id: string;
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
- import { MediaDataStatus } from "./types/MediaData.types";
3
2
  import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
4
3
  export declare const MediaDataSchema: z.ZodObject<{
5
4
  id: z.ZodString;
@@ -26,6 +25,14 @@ export declare const MediaDataSchema: z.ZodObject<{
26
25
  mimeType?: string | undefined;
27
26
  customData?: [string, unknown][] | undefined;
28
27
  }>;
28
+ export declare enum MediaDataStatus {
29
+ NONE = "none",
30
+ ERROR = "error",
31
+ LOADING = "loading",
32
+ TRANSCODING = "transcoding",
33
+ FILMSTRIP = "filmstrip",
34
+ READY = "ready"
35
+ }
29
36
  export declare class MediaData {
30
37
  private id;
31
38
  status?: MediaDataStatus;
@@ -46,6 +53,9 @@ export declare class MediaData {
46
53
  mimeType?: string;
47
54
  customData?: Map<string, unknown>;
48
55
  audioSplit?: string;
56
+ private static lockMediaInfo;
57
+ private waitForMediaInfoUnlock;
58
+ static unlockMediaInfo(): void;
49
59
  constructor(id?: string);
50
60
  init(): Promise<void>;
51
61
  destroy(): Promise<void>;
@@ -0,0 +1,141 @@
1
+ import * as PIXI from "pixi.js";
2
+ import { z } from "zod";
3
+ import { PropertyDescription } from "./types/Property.types";
4
+ import { InputTextureDescriptor } from "./types/Texture.types";
5
+ export interface TransitionDataOptions {
6
+ id?: string;
7
+ name?: string;
8
+ provider?: string;
9
+ transitionSrc: string;
10
+ properties?: PropertyDescription[];
11
+ inputTextures?: InputTextureDescriptor[];
12
+ serializable?: boolean;
13
+ }
14
+ export declare const TransitionDataSchema: z.ZodObject<{
15
+ id: z.ZodString;
16
+ name: z.ZodString;
17
+ provider: z.ZodString;
18
+ transitionSrc: z.ZodString;
19
+ properties: z.ZodArray<z.ZodObject<{
20
+ name: z.ZodString;
21
+ type: z.ZodNativeEnum<typeof import("./types/Property.types").PropertyDescriptionTypeEnum>;
22
+ label: z.ZodOptional<z.ZodString>;
23
+ description: z.ZodOptional<z.ZodString>;
24
+ defaultValue: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
25
+ }, "strip", z.ZodTypeAny, {
26
+ type: import("./types/Property.types").PropertyDescriptionTypeEnum;
27
+ name: string;
28
+ defaultValue: Required<any>;
29
+ label?: string | undefined;
30
+ description?: string | undefined;
31
+ }, {
32
+ type: import("./types/Property.types").PropertyDescriptionTypeEnum;
33
+ name: string;
34
+ defaultValue: Required<any>;
35
+ label?: string | undefined;
36
+ description?: string | undefined;
37
+ }>, "many">;
38
+ inputTextures: z.ZodOptional<z.ZodArray<z.ZodObject<{
39
+ name: z.ZodString;
40
+ url: z.ZodString;
41
+ wrapMode: z.ZodOptional<z.ZodNativeEnum<typeof import("./types/Texture.types").InputTextureWrapMode>>;
42
+ scaleMode: z.ZodOptional<z.ZodNativeEnum<typeof import("./types/Texture.types").InputTextureScaleMode>>;
43
+ mipmap: z.ZodOptional<z.ZodNativeEnum<typeof import("./types/Texture.types").InputTextureMipmapMode>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ name: string;
46
+ url: string;
47
+ wrapMode?: import("./types/Texture.types").InputTextureWrapMode | undefined;
48
+ scaleMode?: import("./types/Texture.types").InputTextureScaleMode | undefined;
49
+ mipmap?: import("./types/Texture.types").InputTextureMipmapMode | undefined;
50
+ }, {
51
+ name: string;
52
+ url: string;
53
+ wrapMode?: import("./types/Texture.types").InputTextureWrapMode | undefined;
54
+ scaleMode?: import("./types/Texture.types").InputTextureScaleMode | undefined;
55
+ mipmap?: import("./types/Texture.types").InputTextureMipmapMode | undefined;
56
+ }>, "many">>;
57
+ }, "strip", z.ZodTypeAny, {
58
+ name: string;
59
+ id: string;
60
+ provider: string;
61
+ properties: {
62
+ type: import("./types/Property.types").PropertyDescriptionTypeEnum;
63
+ name: string;
64
+ defaultValue: Required<any>;
65
+ label?: string | undefined;
66
+ description?: string | undefined;
67
+ }[];
68
+ transitionSrc: string;
69
+ inputTextures?: {
70
+ name: string;
71
+ url: string;
72
+ wrapMode?: import("./types/Texture.types").InputTextureWrapMode | undefined;
73
+ scaleMode?: import("./types/Texture.types").InputTextureScaleMode | undefined;
74
+ mipmap?: import("./types/Texture.types").InputTextureMipmapMode | undefined;
75
+ }[] | undefined;
76
+ }, {
77
+ name: string;
78
+ id: string;
79
+ provider: string;
80
+ properties: {
81
+ type: import("./types/Property.types").PropertyDescriptionTypeEnum;
82
+ name: string;
83
+ defaultValue: Required<any>;
84
+ label?: string | undefined;
85
+ description?: string | undefined;
86
+ }[];
87
+ transitionSrc: string;
88
+ inputTextures?: {
89
+ name: string;
90
+ url: string;
91
+ wrapMode?: import("./types/Texture.types").InputTextureWrapMode | undefined;
92
+ scaleMode?: import("./types/Texture.types").InputTextureScaleMode | undefined;
93
+ mipmap?: import("./types/Texture.types").InputTextureMipmapMode | undefined;
94
+ }[] | undefined;
95
+ }>;
96
+ export declare class TransitionData {
97
+ private readonly id;
98
+ private readonly transitionSrc;
99
+ private readonly name;
100
+ private readonly provider;
101
+ private readonly properties;
102
+ private readonly inputTextures?;
103
+ private readonly serializable;
104
+ private initialized;
105
+ private readonly defaultPropertyMap;
106
+ private readonly textures;
107
+ constructor(options: TransitionDataOptions);
108
+ init(): Promise<void>;
109
+ getInputTextures(): InputTextureDescriptor[] | undefined;
110
+ getTextureImage(name: string): ImageBitmap | undefined;
111
+ private fixTransitionSrc;
112
+ createPixiTexture(name: string): PIXI.Texture<PIXI.Resource> | null;
113
+ createPixiFilter(initPropertyMap: Map<string, any>, inputTextures: Record<string, PIXI.Texture>): PIXI.Filter;
114
+ getId(): string;
115
+ getName(): string;
116
+ getProvider(): string;
117
+ getProperties(): PropertyDescription[];
118
+ getDefaultPropertyMap(): ReadonlyMap<string, any>;
119
+ getIsSerializable(): boolean;
120
+ serialize(): {
121
+ name: string;
122
+ id: string;
123
+ provider: string;
124
+ properties: {
125
+ type: import("./types/Property.types").PropertyDescriptionTypeEnum;
126
+ name: string;
127
+ defaultValue: Required<any>;
128
+ label?: string | undefined;
129
+ description?: string | undefined;
130
+ }[];
131
+ transitionSrc: string;
132
+ inputTextures?: {
133
+ name: string;
134
+ url: string;
135
+ wrapMode?: import("./types/Texture.types").InputTextureWrapMode | undefined;
136
+ scaleMode?: import("./types/Texture.types").InputTextureScaleMode | undefined;
137
+ mipmap?: import("./types/Texture.types").InputTextureMipmapMode | undefined;
138
+ }[] | undefined;
139
+ };
140
+ static deserialize(data: object): TransitionData;
141
+ }
@@ -1,3 +1,9 @@
1
1
  export * from "./Library";
2
- export * from "./MediaData";
3
2
  export * from "./Subtitles";
3
+ export * from "./MediaData";
4
+ export * from "./FilterData";
5
+ export * from "./TransitionData";
6
+ export * from "./EffectData";
7
+ export * from "./BuiltInEffectDefines";
8
+ export * from "./types/Property.types";
9
+ export * from "./types/Texture.types";
@@ -0,0 +1,54 @@
1
+ import { z } from "zod";
2
+ export declare enum PropertyDescriptionTypeEnum {
3
+ NUMBER = "number",
4
+ NUMBER_ARRAY = "numberArray",
5
+ VECTOR2 = "vector2",
6
+ VECTOR2_ARRAY = "vector2Array",
7
+ VECTOR3 = "vector3",
8
+ VECTOR3_ARRAY = "vector3Array",
9
+ VECTOR4 = "vector4",
10
+ VECTOR4_ARRAY = "vector4Array",
11
+ RGB = "rgb",
12
+ RGB_ARRAY = "rgbArray",
13
+ RGBA = "rgba",
14
+ RGBA_ARRAY = "rgbaArray",
15
+ MATRIX2 = "matrix2",
16
+ MATRIX2_ARRAY = "matrix2Array",
17
+ MATRIX3 = "matrix3",
18
+ MATRIX3_ARRAY = "matrix3Array",
19
+ MATRIX4 = "matrix4",
20
+ MATRIX4_ARRAY = "matrix4Array",
21
+ STRING = "string",
22
+ STRING_ARRAY = "stringArray",
23
+ BOOLEAN = "boolean",
24
+ BOOLEAN_ARRAY = "booleanArray",
25
+ OTHER = "other",
26
+ OTHER_ARRAY = "otherArray"
27
+ }
28
+ export interface PropertyDescription {
29
+ name: string;
30
+ type: PropertyDescriptionTypeEnum;
31
+ label?: string;
32
+ description?: string;
33
+ defaultValue: any;
34
+ initOnly?: boolean;
35
+ }
36
+ export declare const PropertyDescriptionSchema: z.ZodObject<{
37
+ name: z.ZodString;
38
+ type: z.ZodNativeEnum<typeof PropertyDescriptionTypeEnum>;
39
+ label: z.ZodOptional<z.ZodString>;
40
+ description: z.ZodOptional<z.ZodString>;
41
+ defaultValue: z.ZodType<Required<any>, z.ZodTypeDef, Required<any>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: PropertyDescriptionTypeEnum;
44
+ name: string;
45
+ defaultValue: Required<any>;
46
+ label?: string | undefined;
47
+ description?: string | undefined;
48
+ }, {
49
+ type: PropertyDescriptionTypeEnum;
50
+ name: string;
51
+ defaultValue: Required<any>;
52
+ label?: string | undefined;
53
+ description?: string | undefined;
54
+ }>;
@@ -0,0 +1,40 @@
1
+ import { z } from "zod";
2
+ export declare enum InputTextureScaleMode {
3
+ NEAREST = 0,// 0,
4
+ LINEAR = 1
5
+ }
6
+ export declare enum InputTextureWrapMode {
7
+ CLAMP = 33071,// 33071,
8
+ REPEAT = 10497,// 10497,
9
+ MIRRORED_REPEAT = 33648
10
+ }
11
+ export declare enum InputTextureMipmapMode {
12
+ OFF = 0,// 0,
13
+ ON = 2
14
+ }
15
+ export interface InputTextureDescriptor {
16
+ name: string;
17
+ url: string;
18
+ wrapMode?: InputTextureWrapMode;
19
+ scaleMode?: InputTextureScaleMode;
20
+ mipmap?: InputTextureMipmapMode;
21
+ }
22
+ export declare const InputTextureDescriptorSchema: z.ZodObject<{
23
+ name: z.ZodString;
24
+ url: z.ZodString;
25
+ wrapMode: z.ZodOptional<z.ZodNativeEnum<typeof InputTextureWrapMode>>;
26
+ scaleMode: z.ZodOptional<z.ZodNativeEnum<typeof InputTextureScaleMode>>;
27
+ mipmap: z.ZodOptional<z.ZodNativeEnum<typeof InputTextureMipmapMode>>;
28
+ }, "strip", z.ZodTypeAny, {
29
+ name: string;
30
+ url: string;
31
+ wrapMode?: InputTextureWrapMode | undefined;
32
+ scaleMode?: InputTextureScaleMode | undefined;
33
+ mipmap?: InputTextureMipmapMode | undefined;
34
+ }, {
35
+ name: string;
36
+ url: string;
37
+ wrapMode?: InputTextureWrapMode | undefined;
38
+ scaleMode?: InputTextureScaleMode | undefined;
39
+ mipmap?: InputTextureMipmapMode | undefined;
40
+ }>;