@rendley/sdk 1.9.3 → 1.9.6
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 +9 -4
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +62 -62
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +5 -5
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +4 -4
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +5 -5
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +5 -5
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +5 -5
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +8 -8
- package/dist/modules/clip/clips/text/TextClip.d.ts +5 -5
- package/dist/modules/clip/clips/text/TextStyle.d.ts +8 -8
- package/dist/modules/clip/clips/video/VideoClip.d.ts +5 -5
- package/dist/modules/display/Display.d.ts +3 -3
- package/dist/modules/ffmpeg/FFmpeg.d.ts +4 -0
- package/dist/modules/layer/Layer.d.ts +5 -5
- package/dist/modules/library/Library.d.ts +5 -5
- package/dist/modules/library/MediaData.d.ts +7 -4
- package/dist/modules/library/types/MediaData.types.d.ts +1 -0
- package/dist/modules/renderer/Renderer.d.ts +1 -0
- package/dist/modules/settings/Settings.d.ts +7 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +1 -1
- package/dist/modules/timeline/Timeline.d.ts +7 -7
- package/dist/modules/transcode/ITranscodeProvider.d.ts +36 -0
- package/dist/modules/transcode/index.d.ts +1 -1
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/dist/utils/animation/animation.d.ts +12 -12
- package/dist/utils/timer/performanceTimer.d.ts +17 -0
- package/package.json +2 -1
- package/dist/modules/transcode/TranscodeProviderBase.d.ts +0 -33
|
@@ -26,8 +26,8 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
26
26
|
type: z.ZodLiteral<"transition">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
name: string;
|
|
29
|
-
type: "transition";
|
|
30
29
|
id: string;
|
|
30
|
+
type: "transition";
|
|
31
31
|
startClipId: string;
|
|
32
32
|
endClipId: string;
|
|
33
33
|
inDuration: number;
|
|
@@ -35,8 +35,8 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
35
35
|
transitionSrc: string;
|
|
36
36
|
}, {
|
|
37
37
|
name: string;
|
|
38
|
-
type: "transition";
|
|
39
38
|
id: string;
|
|
39
|
+
type: "transition";
|
|
40
40
|
startClipId: string;
|
|
41
41
|
endClipId: string;
|
|
42
42
|
inDuration: number;
|
|
@@ -47,8 +47,8 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
47
47
|
id: string;
|
|
48
48
|
transitions: {
|
|
49
49
|
name: string;
|
|
50
|
-
type: "transition";
|
|
51
50
|
id: string;
|
|
51
|
+
type: "transition";
|
|
52
52
|
startClipId: string;
|
|
53
53
|
endClipId: string;
|
|
54
54
|
inDuration: number;
|
|
@@ -63,8 +63,8 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
63
63
|
id: string;
|
|
64
64
|
transitions: {
|
|
65
65
|
name: string;
|
|
66
|
-
type: "transition";
|
|
67
66
|
id: string;
|
|
67
|
+
type: "transition";
|
|
68
68
|
startClipId: string;
|
|
69
69
|
endClipId: string;
|
|
70
70
|
inDuration: number;
|
|
@@ -84,8 +84,8 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
84
84
|
id: string;
|
|
85
85
|
transitions: {
|
|
86
86
|
name: string;
|
|
87
|
-
type: "transition";
|
|
88
87
|
id: string;
|
|
88
|
+
type: "transition";
|
|
89
89
|
startClipId: string;
|
|
90
90
|
endClipId: string;
|
|
91
91
|
inDuration: number;
|
|
@@ -105,8 +105,8 @@ export declare const TimelineSchema: z.ZodObject<{
|
|
|
105
105
|
id: string;
|
|
106
106
|
transitions: {
|
|
107
107
|
name: string;
|
|
108
|
-
type: "transition";
|
|
109
108
|
id: string;
|
|
109
|
+
type: "transition";
|
|
110
110
|
startClipId: string;
|
|
111
111
|
endClipId: string;
|
|
112
112
|
inDuration: number;
|
|
@@ -168,8 +168,8 @@ export declare class Timeline {
|
|
|
168
168
|
id: string;
|
|
169
169
|
transitions: {
|
|
170
170
|
name: string;
|
|
171
|
-
type: "transition";
|
|
172
171
|
id: string;
|
|
172
|
+
type: "transition";
|
|
173
173
|
startClipId: string;
|
|
174
174
|
endClipId: string;
|
|
175
175
|
inDuration: number;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
|
|
2
|
+
export interface TranscodeMediaDetails {
|
|
3
|
+
mediaInfo?: MediaInfo;
|
|
4
|
+
mimeType?: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
fileName?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TranscodeResult {
|
|
9
|
+
source: Uint8Array | URL;
|
|
10
|
+
mimeType?: string;
|
|
11
|
+
extension?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface TranscodeSupportType {
|
|
14
|
+
mimeType: string;
|
|
15
|
+
hasAlpha: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface TranscodeProgressInfo {
|
|
18
|
+
state: string;
|
|
19
|
+
progress: number;
|
|
20
|
+
}
|
|
21
|
+
export declare enum TranscodeControlStateEnum {
|
|
22
|
+
RUN = "RUN",
|
|
23
|
+
CANCEL = "CANCEL"
|
|
24
|
+
}
|
|
25
|
+
export interface TranscodeControl {
|
|
26
|
+
state: TranscodeControlStateEnum;
|
|
27
|
+
isRead: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface ITranscodeProvider {
|
|
30
|
+
init(): Promise<void>;
|
|
31
|
+
destroy(): Promise<void>;
|
|
32
|
+
supportsInput(mediaMetadata: TranscodeMediaDetails): Promise<boolean>;
|
|
33
|
+
supportsOutput(outputType: TranscodeSupportType): Promise<boolean>;
|
|
34
|
+
supportsInputURL(): Promise<boolean>;
|
|
35
|
+
transcode(source: Uint8Array | URL, mediaMetadata: TranscodeMediaDetails, outputType: TranscodeSupportType, control: TranscodeControl, progressCallback?: (progressInfo: TranscodeProgressInfo) => void): Promise<TranscodeResult | null>;
|
|
36
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./ITranscodeProvider";
|
|
@@ -12,8 +12,8 @@ export declare const TransitionSchema: z.ZodObject<{
|
|
|
12
12
|
type: z.ZodLiteral<"transition">;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
14
|
name: string;
|
|
15
|
-
type: "transition";
|
|
16
15
|
id: string;
|
|
16
|
+
type: "transition";
|
|
17
17
|
startClipId: string;
|
|
18
18
|
endClipId: string;
|
|
19
19
|
inDuration: number;
|
|
@@ -21,8 +21,8 @@ export declare const TransitionSchema: z.ZodObject<{
|
|
|
21
21
|
transitionSrc: string;
|
|
22
22
|
}, {
|
|
23
23
|
name: string;
|
|
24
|
-
type: "transition";
|
|
25
24
|
id: string;
|
|
25
|
+
type: "transition";
|
|
26
26
|
startClipId: string;
|
|
27
27
|
endClipId: string;
|
|
28
28
|
inDuration: number;
|
|
@@ -78,8 +78,8 @@ export declare class Transition {
|
|
|
78
78
|
update(transitionProgress: number): void;
|
|
79
79
|
serialize(): {
|
|
80
80
|
name: string;
|
|
81
|
-
type: "transition";
|
|
82
81
|
id: string;
|
|
82
|
+
type: "transition";
|
|
83
83
|
startClipId: string;
|
|
84
84
|
endClipId: string;
|
|
85
85
|
inDuration: number;
|
|
@@ -74,14 +74,14 @@ export declare const KeyframeSchema: z.ZodObject<{
|
|
|
74
74
|
space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
|
|
75
75
|
relativeProperty: z.ZodOptional<z.ZodString>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
time: number;
|
|
78
77
|
value: string | number;
|
|
78
|
+
time: number;
|
|
79
79
|
easing: EasingEnum;
|
|
80
80
|
space: AnimationSpaceEnum;
|
|
81
81
|
relativeProperty?: string | undefined;
|
|
82
82
|
}, {
|
|
83
|
-
time: number;
|
|
84
83
|
value: string | number;
|
|
84
|
+
time: number;
|
|
85
85
|
easing?: EasingEnum | undefined;
|
|
86
86
|
space?: AnimationSpaceEnum | undefined;
|
|
87
87
|
relativeProperty?: string | undefined;
|
|
@@ -97,14 +97,14 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
97
97
|
space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
|
|
98
98
|
relativeProperty: z.ZodOptional<z.ZodString>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
time: number;
|
|
101
100
|
value: string | number;
|
|
101
|
+
time: number;
|
|
102
102
|
easing: EasingEnum;
|
|
103
103
|
space: AnimationSpaceEnum;
|
|
104
104
|
relativeProperty?: string | undefined;
|
|
105
105
|
}, {
|
|
106
|
-
time: number;
|
|
107
106
|
value: string | number;
|
|
107
|
+
time: number;
|
|
108
108
|
easing?: EasingEnum | undefined;
|
|
109
109
|
space?: AnimationSpaceEnum | undefined;
|
|
110
110
|
relativeProperty?: string | undefined;
|
|
@@ -114,8 +114,8 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
114
114
|
outOutOfRange: OutOfRangeEnum;
|
|
115
115
|
property: string;
|
|
116
116
|
keyframes: {
|
|
117
|
-
time: number;
|
|
118
117
|
value: string | number;
|
|
118
|
+
time: number;
|
|
119
119
|
easing: EasingEnum;
|
|
120
120
|
space: AnimationSpaceEnum;
|
|
121
121
|
relativeProperty?: string | undefined;
|
|
@@ -123,8 +123,8 @@ export declare const PropertyAnimationSchema: z.ZodObject<{
|
|
|
123
123
|
}, {
|
|
124
124
|
property: string;
|
|
125
125
|
keyframes: {
|
|
126
|
-
time: number;
|
|
127
126
|
value: string | number;
|
|
127
|
+
time: number;
|
|
128
128
|
easing?: EasingEnum | undefined;
|
|
129
129
|
space?: AnimationSpaceEnum | undefined;
|
|
130
130
|
relativeProperty?: string | undefined;
|
|
@@ -150,14 +150,14 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
150
150
|
space: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof AnimationSpaceEnum>>>;
|
|
151
151
|
relativeProperty: z.ZodOptional<z.ZodString>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
time: number;
|
|
154
153
|
value: string | number;
|
|
154
|
+
time: number;
|
|
155
155
|
easing: EasingEnum;
|
|
156
156
|
space: AnimationSpaceEnum;
|
|
157
157
|
relativeProperty?: string | undefined;
|
|
158
158
|
}, {
|
|
159
|
-
time: number;
|
|
160
159
|
value: string | number;
|
|
160
|
+
time: number;
|
|
161
161
|
easing?: EasingEnum | undefined;
|
|
162
162
|
space?: AnimationSpaceEnum | undefined;
|
|
163
163
|
relativeProperty?: string | undefined;
|
|
@@ -167,8 +167,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
167
167
|
outOutOfRange: OutOfRangeEnum;
|
|
168
168
|
property: string;
|
|
169
169
|
keyframes: {
|
|
170
|
-
time: number;
|
|
171
170
|
value: string | number;
|
|
171
|
+
time: number;
|
|
172
172
|
easing: EasingEnum;
|
|
173
173
|
space: AnimationSpaceEnum;
|
|
174
174
|
relativeProperty?: string | undefined;
|
|
@@ -176,8 +176,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
176
176
|
}, {
|
|
177
177
|
property: string;
|
|
178
178
|
keyframes: {
|
|
179
|
-
time: number;
|
|
180
179
|
value: string | number;
|
|
180
|
+
time: number;
|
|
181
181
|
easing?: EasingEnum | undefined;
|
|
182
182
|
space?: AnimationSpaceEnum | undefined;
|
|
183
183
|
relativeProperty?: string | undefined;
|
|
@@ -194,8 +194,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
194
194
|
outOutOfRange: OutOfRangeEnum;
|
|
195
195
|
property: string;
|
|
196
196
|
keyframes: {
|
|
197
|
-
time: number;
|
|
198
197
|
value: string | number;
|
|
198
|
+
time: number;
|
|
199
199
|
easing: EasingEnum;
|
|
200
200
|
space: AnimationSpaceEnum;
|
|
201
201
|
relativeProperty?: string | undefined;
|
|
@@ -209,8 +209,8 @@ export declare const AnimationDataSchema: z.ZodObject<{
|
|
|
209
209
|
propertyAnimations: {
|
|
210
210
|
property: string;
|
|
211
211
|
keyframes: {
|
|
212
|
-
time: number;
|
|
213
212
|
value: string | number;
|
|
213
|
+
time: number;
|
|
214
214
|
easing?: EasingEnum | undefined;
|
|
215
215
|
space?: AnimationSpaceEnum | undefined;
|
|
216
216
|
relativeProperty?: string | undefined;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class PerformanceTimer {
|
|
2
|
+
private start;
|
|
3
|
+
private readonly checkpoints;
|
|
4
|
+
constructor();
|
|
5
|
+
getDuration(): number;
|
|
6
|
+
getDurationSeconds(): number;
|
|
7
|
+
reset(): number;
|
|
8
|
+
resetSeconds(): number;
|
|
9
|
+
checkpoint(name: string): number;
|
|
10
|
+
checkpointSeconds(name: string): number;
|
|
11
|
+
getCheckpoint(name: string): number | undefined;
|
|
12
|
+
getCheckpoints(): Map<string, number>;
|
|
13
|
+
getTimeFromCheckpoint(name: string): number | undefined;
|
|
14
|
+
getTimeFromCheckpointSeconds(name: string): number | undefined;
|
|
15
|
+
getCheckpointDifference(checkpointFrom: string, checkpointTo: string): number | undefined;
|
|
16
|
+
getCheckpointDifferenceSeconds(checkpointFrom: string, checkpointTo: string): number | undefined;
|
|
17
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rendley/sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"license": "LICENSE",
|
|
5
5
|
"author": "Onix Technologies",
|
|
6
6
|
"homepage": "https://rendley.com",
|
|
@@ -75,6 +75,7 @@
|
|
|
75
75
|
"gradient-parser": "1.0.2",
|
|
76
76
|
"lottie-web": "5.12.2",
|
|
77
77
|
"pixi.js": "7.4.0",
|
|
78
|
+
"unplugin-preprocessor-directives": "^1.0.3",
|
|
78
79
|
"uuid": "9.0.1",
|
|
79
80
|
"zod": "3.22.4"
|
|
80
81
|
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
|
|
2
|
-
export interface MediaMetadata {
|
|
3
|
-
mediaInfo?: MediaInfo;
|
|
4
|
-
mimeType?: string;
|
|
5
|
-
url?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface TranscodeResult {
|
|
8
|
-
source: Uint8Array | URL;
|
|
9
|
-
mimeType?: string;
|
|
10
|
-
extension?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SupportType {
|
|
13
|
-
mimeType: string;
|
|
14
|
-
hasAlpha: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface ProgressInfo {
|
|
17
|
-
state: string;
|
|
18
|
-
progress: number;
|
|
19
|
-
}
|
|
20
|
-
export declare enum ControlState {
|
|
21
|
-
RUN = "RUN",
|
|
22
|
-
CANCEL = "CANCEL"
|
|
23
|
-
}
|
|
24
|
-
export interface Control {
|
|
25
|
-
state: ControlState;
|
|
26
|
-
isRead: boolean;
|
|
27
|
-
}
|
|
28
|
-
export declare abstract class TranscodeProviderBase {
|
|
29
|
-
abstract supportsInput(mediaMetadata: MediaMetadata): Promise<boolean>;
|
|
30
|
-
abstract supportsOutput(outputType: SupportType): Promise<boolean>;
|
|
31
|
-
abstract supportsURLs(): Promise<boolean>;
|
|
32
|
-
abstract transcode(source: Uint8Array | URL, mediaMetadata: MediaMetadata, outputType: SupportType, control: Control, progressCallback?: (progressInfo: ProgressInfo) => void): Promise<TranscodeResult>;
|
|
33
|
-
}
|