@rendley/sdk 1.12.3 → 1.12.4
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/Engine.d.ts +18 -17
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +8 -8
- package/dist/modules/clip/ClipStyle.d.ts +6 -6
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +5 -5
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +18 -17
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +21 -21
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +13 -13
- package/dist/modules/clip/clips/text/TextClip.d.ts +4 -4
- package/dist/modules/clip/clips/text/TextStyle.d.ts +19 -19
- package/dist/modules/clip/clips/video/VideoClip.d.ts +5 -5
- package/dist/modules/effect/Effect.d.ts +3 -3
- package/dist/modules/ffmpeg/types/FFmpeg.types.d.ts +2 -0
- package/dist/modules/filter/Filter.d.ts +3 -3
- package/dist/modules/filter/MaskFilter.d.ts +1 -1
- package/dist/modules/font-registry/FontRegistry.d.ts +9 -5
- package/dist/modules/layer/Layer.d.ts +5 -5
- package/dist/modules/library/EffectData.d.ts +6 -6
- package/dist/modules/library/Library.d.ts +61 -56
- package/dist/modules/library/Subtitles.d.ts +7 -7
- package/dist/modules/library/TransitionData.d.ts +6 -6
- package/dist/modules/subtitles/SubtitleManager.d.ts +26 -26
- package/dist/modules/timeline/Timeline.d.ts +14 -7
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/package.json +1 -1
|
@@ -18,14 +18,14 @@ interface TextClipStyleOptions extends ClipStyleOptions {
|
|
|
18
18
|
export declare const TextStyleSchema: z.ZodObject<{
|
|
19
19
|
width: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
alpha: z.ZodNumber;
|
|
21
|
-
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
22
|
-
clipId: z.ZodString;
|
|
23
21
|
rotation: z.ZodNumber;
|
|
24
|
-
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
25
22
|
scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
23
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
clipId: z.ZodString;
|
|
25
|
+
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
26
27
|
crop: z.ZodDefault<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
|
|
27
28
|
zIndex: z.ZodNumber;
|
|
28
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
30
30
|
relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
31
|
fontSize: z.ZodNumber;
|
|
@@ -42,45 +42,45 @@ export declare const TextStyleSchema: z.ZodObject<{
|
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
color: string;
|
|
44
44
|
alpha: number;
|
|
45
|
-
clipId: string;
|
|
46
45
|
rotation: number;
|
|
47
|
-
position: [number, number];
|
|
48
46
|
scale: [number, number];
|
|
47
|
+
padding: number[];
|
|
48
|
+
clipId: string;
|
|
49
|
+
position: [number, number];
|
|
49
50
|
crop: [number, number, number, number];
|
|
50
51
|
zIndex: number;
|
|
51
52
|
relativeCornerRadius: boolean;
|
|
52
53
|
fontSize: number;
|
|
53
54
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
54
55
|
fontFamily: string;
|
|
55
|
-
textAlign: "
|
|
56
|
+
textAlign: "center" | "left" | "right" | "justify";
|
|
56
57
|
fontStyle: "normal" | "italic" | "oblique";
|
|
57
58
|
backgroundColor: string | null;
|
|
58
59
|
strokeColor: string;
|
|
59
60
|
strokeThickness: number;
|
|
60
61
|
wordWrapWidth: number | null;
|
|
61
|
-
padding: number[];
|
|
62
62
|
width?: number | undefined;
|
|
63
|
-
mediaDataId?: string | undefined;
|
|
64
63
|
height?: number | undefined;
|
|
64
|
+
mediaDataId?: string | undefined;
|
|
65
65
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
66
66
|
}, {
|
|
67
67
|
color: string;
|
|
68
68
|
alpha: number;
|
|
69
|
-
clipId: string;
|
|
70
69
|
rotation: number;
|
|
71
|
-
position: [number, number];
|
|
72
70
|
scale: [number, number];
|
|
71
|
+
clipId: string;
|
|
72
|
+
position: [number, number];
|
|
73
73
|
zIndex: number;
|
|
74
74
|
fontSize: number;
|
|
75
75
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
76
76
|
fontFamily: string;
|
|
77
|
-
textAlign: "
|
|
77
|
+
textAlign: "center" | "left" | "right" | "justify";
|
|
78
78
|
fontStyle: "normal" | "italic" | "oblique";
|
|
79
79
|
backgroundColor: string | null;
|
|
80
80
|
width?: number | undefined;
|
|
81
|
+
height?: number | undefined;
|
|
81
82
|
mediaDataId?: string | undefined;
|
|
82
83
|
crop?: [number, number, number, number] | undefined;
|
|
83
|
-
height?: number | undefined;
|
|
84
84
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
85
85
|
relativeCornerRadius?: boolean | undefined;
|
|
86
86
|
strokeColor?: string | undefined;
|
|
@@ -121,7 +121,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
121
121
|
setFontFamily(fontFamily: string): void;
|
|
122
122
|
getFontFamily(): string;
|
|
123
123
|
setTextAlign(textAlign: TextStyleAlign): void;
|
|
124
|
-
getTextAlign(): "
|
|
124
|
+
getTextAlign(): "center" | "left" | "right" | "justify";
|
|
125
125
|
setFontStyle(fontStyle: TextStyleFontStyle): void;
|
|
126
126
|
getFontStyle(): "normal" | "italic" | "oblique";
|
|
127
127
|
setBackgroundColor(backgroundColor: string | null): void;
|
|
@@ -132,26 +132,26 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
|
|
|
132
132
|
serialize(): {
|
|
133
133
|
color: string;
|
|
134
134
|
alpha: number;
|
|
135
|
-
clipId: string;
|
|
136
135
|
rotation: number;
|
|
137
|
-
position: [number, number];
|
|
138
136
|
scale: [number, number];
|
|
137
|
+
padding: number[];
|
|
138
|
+
clipId: string;
|
|
139
|
+
position: [number, number];
|
|
139
140
|
crop: [number, number, number, number];
|
|
140
141
|
zIndex: number;
|
|
141
142
|
relativeCornerRadius: boolean;
|
|
142
143
|
fontSize: number;
|
|
143
144
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
144
145
|
fontFamily: string;
|
|
145
|
-
textAlign: "
|
|
146
|
+
textAlign: "center" | "left" | "right" | "justify";
|
|
146
147
|
fontStyle: "normal" | "italic" | "oblique";
|
|
147
148
|
backgroundColor: string | null;
|
|
148
149
|
strokeColor: string;
|
|
149
150
|
strokeThickness: number;
|
|
150
151
|
wordWrapWidth: number | null;
|
|
151
|
-
padding: number[];
|
|
152
152
|
width?: number | undefined;
|
|
153
|
-
mediaDataId?: string | undefined;
|
|
154
153
|
height?: number | undefined;
|
|
154
|
+
mediaDataId?: string | undefined;
|
|
155
155
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
156
156
|
};
|
|
157
157
|
static deserialize(payload: object): TextStyle;
|
|
@@ -68,7 +68,7 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
68
68
|
private applyFadeFunction;
|
|
69
69
|
private getVolumeFadeRelativeBounds;
|
|
70
70
|
private getFadeVolume;
|
|
71
|
-
|
|
71
|
+
applyVolume(): void;
|
|
72
72
|
setVolume(volume: number): void;
|
|
73
73
|
getVolume(): number;
|
|
74
74
|
setVolumeFadeInDuration(duration: number): void;
|
|
@@ -157,8 +157,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
157
157
|
rightTrim: number;
|
|
158
158
|
filters: {
|
|
159
159
|
id: string;
|
|
160
|
-
filterId: string;
|
|
161
160
|
provider: string;
|
|
161
|
+
filterId: string;
|
|
162
162
|
intensity: number;
|
|
163
163
|
clipId?: string | undefined;
|
|
164
164
|
}[];
|
|
@@ -172,8 +172,9 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
172
172
|
volumeFadeOutCurve: FadeCurveEnum;
|
|
173
173
|
text?: string | undefined;
|
|
174
174
|
name?: string | undefined;
|
|
175
|
-
subtitlesId?: string | undefined;
|
|
176
175
|
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
176
|
+
customData?: [string, unknown][] | undefined;
|
|
177
|
+
subtitlesId?: string | undefined;
|
|
177
178
|
blendMode?: import('../../../../types').BlendModeEnum | undefined;
|
|
178
179
|
style?: unknown;
|
|
179
180
|
animationController?: {
|
|
@@ -242,11 +243,10 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
|
|
|
242
243
|
amplification?: number | undefined;
|
|
243
244
|
} | undefined;
|
|
244
245
|
} | undefined;
|
|
245
|
-
customData?: [string, unknown][] | undefined;
|
|
246
246
|
clipMasks?: {
|
|
247
|
+
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
247
248
|
id: string;
|
|
248
249
|
clipId: string;
|
|
249
|
-
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
250
250
|
}[] | undefined;
|
|
251
251
|
volume?: number | undefined;
|
|
252
252
|
muted?: boolean | undefined;
|
|
@@ -6,15 +6,15 @@ export declare const EffectSchema: z.ZodObject<{
|
|
|
6
6
|
provider: z.ZodString;
|
|
7
7
|
properties: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodAny], null>, "many">;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
properties: [string, any][];
|
|
9
10
|
id: string;
|
|
10
11
|
provider: string;
|
|
11
12
|
effectId: string;
|
|
12
|
-
properties: [string, any][];
|
|
13
13
|
}, {
|
|
14
|
+
properties: [string, any][];
|
|
14
15
|
id: string;
|
|
15
16
|
provider: string;
|
|
16
17
|
effectId: string;
|
|
17
|
-
properties: [string, any][];
|
|
18
18
|
}>;
|
|
19
19
|
export declare class Effect {
|
|
20
20
|
private id;
|
|
@@ -38,10 +38,10 @@ export declare class Effect {
|
|
|
38
38
|
getProperties(): Map<string, any>;
|
|
39
39
|
destroy(): void;
|
|
40
40
|
serialize(): {
|
|
41
|
+
properties: [string, any][];
|
|
41
42
|
id: string;
|
|
42
43
|
provider: string;
|
|
43
44
|
effectId: string;
|
|
44
|
-
properties: [string, any][];
|
|
45
45
|
};
|
|
46
46
|
static deserialize(data: object): Effect;
|
|
47
47
|
}
|
|
@@ -6,6 +6,7 @@ export interface MediaInfo {
|
|
|
6
6
|
duration: number;
|
|
7
7
|
streamCount: number;
|
|
8
8
|
streams: MediaInfoStream[];
|
|
9
|
+
metadata: Record<string, string>;
|
|
9
10
|
averageFps: number;
|
|
10
11
|
thumbnail: Uint8Array;
|
|
11
12
|
wasConverted?: boolean;
|
|
@@ -16,6 +17,7 @@ export interface MediaInfoStream {
|
|
|
16
17
|
codec: string;
|
|
17
18
|
codecRFC6381: string;
|
|
18
19
|
extradata?: Uint8Array;
|
|
20
|
+
metadata: Record<string, string>;
|
|
19
21
|
bitrate: number;
|
|
20
22
|
format: number;
|
|
21
23
|
duration: number;
|
|
@@ -8,14 +8,14 @@ export declare const FilterSchema: z.ZodObject<{
|
|
|
8
8
|
intensity: z.ZodNumber;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
id: string;
|
|
11
|
-
filterId: string;
|
|
12
11
|
provider: string;
|
|
12
|
+
filterId: string;
|
|
13
13
|
intensity: number;
|
|
14
14
|
clipId?: string | undefined;
|
|
15
15
|
}, {
|
|
16
16
|
id: string;
|
|
17
|
-
filterId: string;
|
|
18
17
|
provider: string;
|
|
18
|
+
filterId: string;
|
|
19
19
|
intensity: number;
|
|
20
20
|
clipId?: string | undefined;
|
|
21
21
|
}>;
|
|
@@ -44,8 +44,8 @@ export declare class Filter {
|
|
|
44
44
|
getPixiFilter(): PIXI.Filter;
|
|
45
45
|
serialize(): {
|
|
46
46
|
id: string;
|
|
47
|
-
filterId: string;
|
|
48
47
|
provider: string;
|
|
48
|
+
filterId: string;
|
|
49
49
|
intensity: number;
|
|
50
50
|
clipId?: string | undefined;
|
|
51
51
|
};
|
|
@@ -11,9 +11,9 @@ export declare const MaskFilterSchema: z.ZodObject<{
|
|
|
11
11
|
clipId: z.ZodString;
|
|
12
12
|
wrapMode: z.ZodDefault<z.ZodNativeEnum<typeof MaskWrapModeEnum>>;
|
|
13
13
|
}, "strict", z.ZodTypeAny, {
|
|
14
|
+
wrapMode: MaskWrapModeEnum;
|
|
14
15
|
id: string;
|
|
15
16
|
clipId: string;
|
|
16
|
-
wrapMode: MaskWrapModeEnum;
|
|
17
17
|
}, {
|
|
18
18
|
id: string;
|
|
19
19
|
clipId: string;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
interface IFontFaceDescriptor {
|
|
2
|
+
font: FontFace;
|
|
3
|
+
src: string;
|
|
4
|
+
customData?: Map<string, unknown>;
|
|
5
|
+
}
|
|
1
6
|
export declare class FontRegistry {
|
|
2
|
-
fonts:
|
|
3
|
-
font: FontFace;
|
|
4
|
-
src: string;
|
|
5
|
-
}[];
|
|
7
|
+
fonts: IFontFaceDescriptor[];
|
|
6
8
|
constructor();
|
|
7
|
-
loadFromUrl(name: string, url: string, descriptors?: FontFaceDescriptors): Promise<void>;
|
|
9
|
+
loadFromUrl(name: string, url: string, descriptors?: FontFaceDescriptors, customData?: Map<string, unknown>): Promise<void>;
|
|
8
10
|
loadFromCssUrl(name: string, cssUrl: string): Promise<void>;
|
|
9
11
|
preloadHtmlTextFonts(): Promise<void>;
|
|
10
12
|
private load;
|
|
@@ -18,7 +20,9 @@ export declare class FontRegistry {
|
|
|
18
20
|
weight?: string | undefined;
|
|
19
21
|
style?: string | undefined;
|
|
20
22
|
} | undefined;
|
|
23
|
+
customData?: [string, unknown][] | undefined;
|
|
21
24
|
}[];
|
|
22
25
|
};
|
|
23
26
|
static deserialize(data: unknown): Promise<FontRegistry>;
|
|
24
27
|
}
|
|
28
|
+
export {};
|
|
@@ -25,18 +25,18 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
25
25
|
provider: z.ZodString;
|
|
26
26
|
properties: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodAny], null>, "many">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
properties: [string, any][];
|
|
28
29
|
id: string;
|
|
29
30
|
provider: string;
|
|
30
|
-
properties: [string, any][];
|
|
31
31
|
startClipId: string;
|
|
32
32
|
endClipId: string;
|
|
33
33
|
inDuration: number;
|
|
34
34
|
outDuration: number;
|
|
35
35
|
transitionId: string;
|
|
36
36
|
}, {
|
|
37
|
+
properties: [string, any][];
|
|
37
38
|
id: string;
|
|
38
39
|
provider: string;
|
|
39
|
-
properties: [string, any][];
|
|
40
40
|
startClipId: string;
|
|
41
41
|
endClipId: string;
|
|
42
42
|
inDuration: number;
|
|
@@ -46,9 +46,9 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
id: string;
|
|
48
48
|
transitions: {
|
|
49
|
+
properties: [string, any][];
|
|
49
50
|
id: string;
|
|
50
51
|
provider: string;
|
|
51
|
-
properties: [string, any][];
|
|
52
52
|
startClipId: string;
|
|
53
53
|
endClipId: string;
|
|
54
54
|
inDuration: number;
|
|
@@ -62,9 +62,9 @@ export declare const LayerSchema: z.ZodObject<{
|
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
64
|
transitions: {
|
|
65
|
+
properties: [string, any][];
|
|
65
66
|
id: string;
|
|
66
67
|
provider: string;
|
|
67
|
-
properties: [string, any][];
|
|
68
68
|
startClipId: string;
|
|
69
69
|
endClipId: string;
|
|
70
70
|
inDuration: number;
|
|
@@ -123,9 +123,9 @@ export declare class Layer {
|
|
|
123
123
|
serialize(): {
|
|
124
124
|
id: string;
|
|
125
125
|
transitions: {
|
|
126
|
+
properties: [string, any][];
|
|
126
127
|
id: string;
|
|
127
128
|
provider: string;
|
|
128
|
-
properties: [string, any][];
|
|
129
129
|
startClipId: string;
|
|
130
130
|
endClipId: string;
|
|
131
131
|
inDuration: number;
|
|
@@ -56,8 +56,6 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
56
56
|
}>, "many">>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
name: string;
|
|
59
|
-
id: string;
|
|
60
|
-
provider: string;
|
|
61
59
|
properties: {
|
|
62
60
|
type: import(".").PropertyDescriptionTypeEnum;
|
|
63
61
|
name: string;
|
|
@@ -65,6 +63,8 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
65
63
|
label?: string | undefined;
|
|
66
64
|
description?: string | undefined;
|
|
67
65
|
}[];
|
|
66
|
+
id: string;
|
|
67
|
+
provider: string;
|
|
68
68
|
fragmentSrc: string;
|
|
69
69
|
inputTextures?: {
|
|
70
70
|
name: string;
|
|
@@ -75,8 +75,6 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
75
75
|
}[] | undefined;
|
|
76
76
|
}, {
|
|
77
77
|
name: string;
|
|
78
|
-
id: string;
|
|
79
|
-
provider: string;
|
|
80
78
|
properties: {
|
|
81
79
|
type: import(".").PropertyDescriptionTypeEnum;
|
|
82
80
|
name: string;
|
|
@@ -84,6 +82,8 @@ export declare const EffectDataSchema: z.ZodObject<{
|
|
|
84
82
|
label?: string | undefined;
|
|
85
83
|
description?: string | undefined;
|
|
86
84
|
}[];
|
|
85
|
+
id: string;
|
|
86
|
+
provider: string;
|
|
87
87
|
fragmentSrc: string;
|
|
88
88
|
inputTextures?: {
|
|
89
89
|
name: string;
|
|
@@ -119,8 +119,6 @@ export declare class EffectData {
|
|
|
119
119
|
createEffectInstance(initPropertyMap: Map<string, any>, inputTextures: Record<string, PIXI.Texture>): import("../effect/EffectBase").EffectBase | null;
|
|
120
120
|
serialize(): {
|
|
121
121
|
name: string;
|
|
122
|
-
id: string;
|
|
123
|
-
provider: string;
|
|
124
122
|
properties: {
|
|
125
123
|
type: import(".").PropertyDescriptionTypeEnum;
|
|
126
124
|
name: string;
|
|
@@ -128,6 +126,8 @@ export declare class EffectData {
|
|
|
128
126
|
label?: string | undefined;
|
|
129
127
|
description?: string | undefined;
|
|
130
128
|
}[];
|
|
129
|
+
id: string;
|
|
130
|
+
provider: string;
|
|
131
131
|
fragmentSrc: string;
|
|
132
132
|
inputTextures?: {
|
|
133
133
|
name: string;
|
|
@@ -4,14 +4,19 @@ import { FilterData, FilterDataOptions } from "./FilterData";
|
|
|
4
4
|
import { MediaData } from "./MediaData";
|
|
5
5
|
import { Subtitles } from "./Subtitles";
|
|
6
6
|
import { TransitionData, TransitionDataOptions } from "./TransitionData";
|
|
7
|
-
export interface
|
|
7
|
+
export interface MissingAssetInfo {
|
|
8
8
|
id: string;
|
|
9
9
|
provider: string;
|
|
10
10
|
}
|
|
11
|
+
export interface MissingFontInfo {
|
|
12
|
+
family: string;
|
|
13
|
+
weight?: string;
|
|
14
|
+
}
|
|
11
15
|
export interface LibrarySetupData {
|
|
12
|
-
missingEffects:
|
|
13
|
-
missingFilters:
|
|
14
|
-
missingTransitions:
|
|
16
|
+
missingEffects: MissingAssetInfo[];
|
|
17
|
+
missingFilters: MissingAssetInfo[];
|
|
18
|
+
missingTransitions: MissingAssetInfo[];
|
|
19
|
+
missingFonts: MissingFontInfo[];
|
|
15
20
|
}
|
|
16
21
|
export declare const LibrarySchema: z.ZodObject<{
|
|
17
22
|
media: z.ZodArray<z.ZodObject<{
|
|
@@ -55,12 +60,12 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
55
60
|
duration: z.ZodNumber;
|
|
56
61
|
}, "strip", z.ZodTypeAny, {
|
|
57
62
|
text: string;
|
|
58
|
-
duration: number;
|
|
59
63
|
time: number;
|
|
64
|
+
duration: number;
|
|
60
65
|
}, {
|
|
61
66
|
text: string;
|
|
62
|
-
duration: number;
|
|
63
67
|
time: number;
|
|
68
|
+
duration: number;
|
|
64
69
|
}>, "many">;
|
|
65
70
|
}, "strip", z.ZodTypeAny, {
|
|
66
71
|
id: string;
|
|
@@ -68,8 +73,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
68
73
|
language: string;
|
|
69
74
|
textBlocks: {
|
|
70
75
|
text: string;
|
|
71
|
-
duration: number;
|
|
72
76
|
time: number;
|
|
77
|
+
duration: number;
|
|
73
78
|
}[];
|
|
74
79
|
}, {
|
|
75
80
|
id: string;
|
|
@@ -77,8 +82,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
77
82
|
language: string;
|
|
78
83
|
textBlocks: {
|
|
79
84
|
text: string;
|
|
80
|
-
duration: number;
|
|
81
85
|
time: number;
|
|
86
|
+
duration: number;
|
|
82
87
|
}[];
|
|
83
88
|
}>, "many">;
|
|
84
89
|
effects: z.ZodArray<z.ZodObject<{
|
|
@@ -126,8 +131,6 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
126
131
|
}>, "many">>;
|
|
127
132
|
}, "strip", z.ZodTypeAny, {
|
|
128
133
|
name: string;
|
|
129
|
-
id: string;
|
|
130
|
-
provider: string;
|
|
131
134
|
properties: {
|
|
132
135
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
133
136
|
name: string;
|
|
@@ -135,6 +138,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
135
138
|
label?: string | undefined;
|
|
136
139
|
description?: string | undefined;
|
|
137
140
|
}[];
|
|
141
|
+
id: string;
|
|
142
|
+
provider: string;
|
|
138
143
|
fragmentSrc: string;
|
|
139
144
|
inputTextures?: {
|
|
140
145
|
name: string;
|
|
@@ -145,8 +150,6 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
145
150
|
}[] | undefined;
|
|
146
151
|
}, {
|
|
147
152
|
name: string;
|
|
148
|
-
id: string;
|
|
149
|
-
provider: string;
|
|
150
153
|
properties: {
|
|
151
154
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
152
155
|
name: string;
|
|
@@ -154,6 +157,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
154
157
|
label?: string | undefined;
|
|
155
158
|
description?: string | undefined;
|
|
156
159
|
}[];
|
|
160
|
+
id: string;
|
|
161
|
+
provider: string;
|
|
157
162
|
fragmentSrc: string;
|
|
158
163
|
inputTextures?: {
|
|
159
164
|
name: string;
|
|
@@ -224,8 +229,6 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
224
229
|
}>, "many">>;
|
|
225
230
|
}, "strip", z.ZodTypeAny, {
|
|
226
231
|
name: string;
|
|
227
|
-
id: string;
|
|
228
|
-
provider: string;
|
|
229
232
|
properties: {
|
|
230
233
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
231
234
|
name: string;
|
|
@@ -233,6 +236,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
233
236
|
label?: string | undefined;
|
|
234
237
|
description?: string | undefined;
|
|
235
238
|
}[];
|
|
239
|
+
id: string;
|
|
240
|
+
provider: string;
|
|
236
241
|
transitionSrc: string;
|
|
237
242
|
inputTextures?: {
|
|
238
243
|
name: string;
|
|
@@ -243,8 +248,6 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
243
248
|
}[] | undefined;
|
|
244
249
|
}, {
|
|
245
250
|
name: string;
|
|
246
|
-
id: string;
|
|
247
|
-
provider: string;
|
|
248
251
|
properties: {
|
|
249
252
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
250
253
|
name: string;
|
|
@@ -252,6 +255,8 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
252
255
|
label?: string | undefined;
|
|
253
256
|
description?: string | undefined;
|
|
254
257
|
}[];
|
|
258
|
+
id: string;
|
|
259
|
+
provider: string;
|
|
255
260
|
transitionSrc: string;
|
|
256
261
|
inputTextures?: {
|
|
257
262
|
name: string;
|
|
@@ -268,20 +273,12 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
268
273
|
language: string;
|
|
269
274
|
textBlocks: {
|
|
270
275
|
text: string;
|
|
271
|
-
duration: number;
|
|
272
276
|
time: number;
|
|
277
|
+
duration: number;
|
|
273
278
|
}[];
|
|
274
279
|
}[];
|
|
275
|
-
|
|
276
|
-
name: string;
|
|
277
|
-
id: string;
|
|
278
|
-
provider: string;
|
|
279
|
-
lutUrl: string;
|
|
280
|
-
}[];
|
|
281
|
-
effects: {
|
|
280
|
+
transitions: {
|
|
282
281
|
name: string;
|
|
283
|
-
id: string;
|
|
284
|
-
provider: string;
|
|
285
282
|
properties: {
|
|
286
283
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
287
284
|
name: string;
|
|
@@ -289,7 +286,9 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
289
286
|
label?: string | undefined;
|
|
290
287
|
description?: string | undefined;
|
|
291
288
|
}[];
|
|
292
|
-
|
|
289
|
+
id: string;
|
|
290
|
+
provider: string;
|
|
291
|
+
transitionSrc: string;
|
|
293
292
|
inputTextures?: {
|
|
294
293
|
name: string;
|
|
295
294
|
url: string;
|
|
@@ -298,10 +297,14 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
298
297
|
mipmap?: import('../../index').InputTextureMipmapMode | undefined;
|
|
299
298
|
}[] | undefined;
|
|
300
299
|
}[];
|
|
301
|
-
|
|
300
|
+
filters: {
|
|
302
301
|
name: string;
|
|
303
302
|
id: string;
|
|
304
303
|
provider: string;
|
|
304
|
+
lutUrl: string;
|
|
305
|
+
}[];
|
|
306
|
+
effects: {
|
|
307
|
+
name: string;
|
|
305
308
|
properties: {
|
|
306
309
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
307
310
|
name: string;
|
|
@@ -309,7 +312,9 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
309
312
|
label?: string | undefined;
|
|
310
313
|
description?: string | undefined;
|
|
311
314
|
}[];
|
|
312
|
-
|
|
315
|
+
id: string;
|
|
316
|
+
provider: string;
|
|
317
|
+
fragmentSrc: string;
|
|
313
318
|
inputTextures?: {
|
|
314
319
|
name: string;
|
|
315
320
|
url: string;
|
|
@@ -336,20 +341,12 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
336
341
|
language: string;
|
|
337
342
|
textBlocks: {
|
|
338
343
|
text: string;
|
|
339
|
-
duration: number;
|
|
340
344
|
time: number;
|
|
345
|
+
duration: number;
|
|
341
346
|
}[];
|
|
342
347
|
}[];
|
|
343
|
-
|
|
344
|
-
name: string;
|
|
345
|
-
id: string;
|
|
346
|
-
provider: string;
|
|
347
|
-
lutUrl: string;
|
|
348
|
-
}[];
|
|
349
|
-
effects: {
|
|
348
|
+
transitions: {
|
|
350
349
|
name: string;
|
|
351
|
-
id: string;
|
|
352
|
-
provider: string;
|
|
353
350
|
properties: {
|
|
354
351
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
355
352
|
name: string;
|
|
@@ -357,7 +354,9 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
357
354
|
label?: string | undefined;
|
|
358
355
|
description?: string | undefined;
|
|
359
356
|
}[];
|
|
360
|
-
|
|
357
|
+
id: string;
|
|
358
|
+
provider: string;
|
|
359
|
+
transitionSrc: string;
|
|
361
360
|
inputTextures?: {
|
|
362
361
|
name: string;
|
|
363
362
|
url: string;
|
|
@@ -366,10 +365,14 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
366
365
|
mipmap?: import('../../index').InputTextureMipmapMode | undefined;
|
|
367
366
|
}[] | undefined;
|
|
368
367
|
}[];
|
|
369
|
-
|
|
368
|
+
filters: {
|
|
370
369
|
name: string;
|
|
371
370
|
id: string;
|
|
372
371
|
provider: string;
|
|
372
|
+
lutUrl: string;
|
|
373
|
+
}[];
|
|
374
|
+
effects: {
|
|
375
|
+
name: string;
|
|
373
376
|
properties: {
|
|
374
377
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
375
378
|
name: string;
|
|
@@ -377,7 +380,9 @@ export declare const LibrarySchema: z.ZodObject<{
|
|
|
377
380
|
label?: string | undefined;
|
|
378
381
|
description?: string | undefined;
|
|
379
382
|
}[];
|
|
380
|
-
|
|
383
|
+
id: string;
|
|
384
|
+
provider: string;
|
|
385
|
+
fragmentSrc: string;
|
|
381
386
|
inputTextures?: {
|
|
382
387
|
name: string;
|
|
383
388
|
url: string;
|
|
@@ -435,7 +440,7 @@ export declare class Library {
|
|
|
435
440
|
syncAllMedia(): Promise<void>;
|
|
436
441
|
replaceMedia(id: string, file: File | string | Uint8Array, mimeType?: string): Promise<boolean>;
|
|
437
442
|
replaceSerializedMedia(data: any): Promise<boolean>;
|
|
438
|
-
extractAudioFromMedia(mediaId: string): Promise<string | null>;
|
|
443
|
+
extractAudioFromMedia(mediaId: string, audioTrackIndex?: number): Promise<string | null>;
|
|
439
444
|
private onFilmstripFrame;
|
|
440
445
|
private processNextFilmstrip;
|
|
441
446
|
createFilmstripWorker(mediaId: string): Promise<void>;
|
|
@@ -471,20 +476,12 @@ export declare class Library {
|
|
|
471
476
|
language: string;
|
|
472
477
|
textBlocks: {
|
|
473
478
|
text: string;
|
|
474
|
-
duration: number;
|
|
475
479
|
time: number;
|
|
480
|
+
duration: number;
|
|
476
481
|
}[];
|
|
477
482
|
}[];
|
|
478
|
-
|
|
479
|
-
name: string;
|
|
480
|
-
id: string;
|
|
481
|
-
provider: string;
|
|
482
|
-
lutUrl: string;
|
|
483
|
-
}[];
|
|
484
|
-
effects: {
|
|
483
|
+
transitions: {
|
|
485
484
|
name: string;
|
|
486
|
-
id: string;
|
|
487
|
-
provider: string;
|
|
488
485
|
properties: {
|
|
489
486
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
490
487
|
name: string;
|
|
@@ -492,7 +489,9 @@ export declare class Library {
|
|
|
492
489
|
label?: string | undefined;
|
|
493
490
|
description?: string | undefined;
|
|
494
491
|
}[];
|
|
495
|
-
|
|
492
|
+
id: string;
|
|
493
|
+
provider: string;
|
|
494
|
+
transitionSrc: string;
|
|
496
495
|
inputTextures?: {
|
|
497
496
|
name: string;
|
|
498
497
|
url: string;
|
|
@@ -501,10 +500,14 @@ export declare class Library {
|
|
|
501
500
|
mipmap?: import('../../index').InputTextureMipmapMode | undefined;
|
|
502
501
|
}[] | undefined;
|
|
503
502
|
}[];
|
|
504
|
-
|
|
503
|
+
filters: {
|
|
505
504
|
name: string;
|
|
506
505
|
id: string;
|
|
507
506
|
provider: string;
|
|
507
|
+
lutUrl: string;
|
|
508
|
+
}[];
|
|
509
|
+
effects: {
|
|
510
|
+
name: string;
|
|
508
511
|
properties: {
|
|
509
512
|
type: import('../../index').PropertyDescriptionTypeEnum;
|
|
510
513
|
name: string;
|
|
@@ -512,7 +515,9 @@ export declare class Library {
|
|
|
512
515
|
label?: string | undefined;
|
|
513
516
|
description?: string | undefined;
|
|
514
517
|
}[];
|
|
515
|
-
|
|
518
|
+
id: string;
|
|
519
|
+
provider: string;
|
|
520
|
+
fragmentSrc: string;
|
|
516
521
|
inputTextures?: {
|
|
517
522
|
name: string;
|
|
518
523
|
url: string;
|