@rendley/sdk 1.4.1 → 1.4.3
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 +7 -6
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/types.d.ts +1 -0
- package/dist/modules/clip/Clip.d.ts +1 -0
- package/dist/modules/font-registry/FontRegistry.d.ts +1 -0
- package/dist/modules/layer/Layer.d.ts +1 -1
- package/dist/modules/settings/Settings.d.ts +7 -0
- package/dist/modules/subtitleManager/SubtitleManager.d.ts +4 -0
- package/dist/modules/timeline/Timeline.d.ts +1 -1
- package/dist/utils/browser/isIosSafari.d.ts +1 -0
- package/dist/utils/cachedAccess/cachedAccess.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1240,5 +1240,6 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1240
1240
|
} | undefined;
|
|
1241
1241
|
customData?: [string, unknown][] | undefined;
|
|
1242
1242
|
};
|
|
1243
|
+
protected postDeserialize(validatedData: z.infer<typeof ClipSchema>): void;
|
|
1243
1244
|
static deserialize(data: object): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
1244
1245
|
}
|
|
@@ -83,7 +83,7 @@ export declare class Layer {
|
|
|
83
83
|
transitions: Transition[];
|
|
84
84
|
container: PIXI.Container;
|
|
85
85
|
constructor();
|
|
86
|
-
init(): void
|
|
86
|
+
init(): Promise<void>;
|
|
87
87
|
destroy(): void;
|
|
88
88
|
addClip(options: Clip): Promise<Clip | null>;
|
|
89
89
|
addClip(options: ClipOptions): Promise<Clip | null>;
|
|
@@ -6,24 +6,31 @@ export declare enum PreferredAcceleration {
|
|
|
6
6
|
export declare const SettingsSchema: z.ZodObject<{
|
|
7
7
|
preferredDecodingAcceleration: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PreferredAcceleration>>>;
|
|
8
8
|
preferredEncodingAcceleration: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PreferredAcceleration>>>;
|
|
9
|
+
m3u8MaxResolution: z.ZodDefault<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>>;
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
preferredDecodingAcceleration: PreferredAcceleration;
|
|
11
12
|
preferredEncodingAcceleration: PreferredAcceleration;
|
|
13
|
+
m3u8MaxResolution: [number, number];
|
|
12
14
|
}, {
|
|
13
15
|
preferredDecodingAcceleration?: PreferredAcceleration | undefined;
|
|
14
16
|
preferredEncodingAcceleration?: PreferredAcceleration | undefined;
|
|
17
|
+
m3u8MaxResolution?: [number, number] | undefined;
|
|
15
18
|
}>;
|
|
16
19
|
export declare class Settings {
|
|
17
20
|
private preferredDecodingAcceleration;
|
|
18
21
|
private preferredEncodingAcceleration;
|
|
22
|
+
private m3u8MaxResolution;
|
|
19
23
|
constructor();
|
|
20
24
|
setPreferredDecodingAcceleration(acceleration: PreferredAcceleration): void;
|
|
21
25
|
getPreferredDecodingAcceleration(): PreferredAcceleration;
|
|
22
26
|
setPreferredEncodingAcceleration(acceleration: PreferredAcceleration): void;
|
|
23
27
|
getPreferredEncodingAcceleration(): PreferredAcceleration;
|
|
28
|
+
setM3u8MaxResolution(width: number, height: number): void;
|
|
29
|
+
getM3u8MaxResolution(): number[];
|
|
24
30
|
serialize(): {
|
|
25
31
|
preferredDecodingAcceleration: PreferredAcceleration;
|
|
26
32
|
preferredEncodingAcceleration: PreferredAcceleration;
|
|
33
|
+
m3u8MaxResolution: [number, number];
|
|
27
34
|
};
|
|
28
35
|
static deserialize(data: object): Settings;
|
|
29
36
|
}
|
|
@@ -198,6 +198,8 @@ export declare class SubtitlesManager {
|
|
|
198
198
|
private backgroundColor;
|
|
199
199
|
private backgroundPadding;
|
|
200
200
|
private wordWrapWidth;
|
|
201
|
+
private mainTextStyle;
|
|
202
|
+
private highlightTextStyle;
|
|
201
203
|
private getInitialTweenValue;
|
|
202
204
|
constructor();
|
|
203
205
|
init(): void;
|
|
@@ -205,7 +207,9 @@ export declare class SubtitlesManager {
|
|
|
205
207
|
updateSubtitlesClips(subtitleId: string): void;
|
|
206
208
|
setTextMode(mode: TextModeType): void;
|
|
207
209
|
setMainTextStyle(style: MainTextStyle): void;
|
|
210
|
+
private updateMainTextStyle;
|
|
208
211
|
setHighlightedTextStyle(style: HighlightTextStyle): void;
|
|
212
|
+
private updateHighlightedTextStyle;
|
|
209
213
|
private extractWordInfo;
|
|
210
214
|
private getSubtitleText;
|
|
211
215
|
private getHighlightedWordInfo;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Clip } from '../../modules/clip';
|
|
2
2
|
export declare class CachedAccess {
|
|
3
|
-
private static instance
|
|
3
|
+
private static instance?;
|
|
4
4
|
static getInstance(): CachedAccess;
|
|
5
5
|
private constructor();
|
|
6
6
|
private readonly clipIdToLayerId;
|
|
@@ -15,4 +15,5 @@ export declare class CachedAccess {
|
|
|
15
15
|
clipFromClipId(clipId: string): Clip | undefined;
|
|
16
16
|
clipsFromMediaId(mediaId: string): Clip[];
|
|
17
17
|
clipsFromSubtitlesId(subtitlesId: string): Clip[];
|
|
18
|
+
destroy(): void;
|
|
18
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rendley/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"license": "LICENSE",
|
|
5
5
|
"author": "Onix Technologies",
|
|
6
6
|
"homepage": "https://rendley.com",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"ts-jest": "29.1.1",
|
|
62
62
|
"typedoc": "0.25.12",
|
|
63
63
|
"typescript": "5.3.3",
|
|
64
|
-
"vite": "5.
|
|
64
|
+
"vite": "^5.4.9",
|
|
65
65
|
"vite-plugin-dts": "3.7.2"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|