@rendley/sdk 1.12.3 → 1.12.5
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/README.md +2 -2
- package/dist/Engine.d.ts +18 -17
- package/dist/config/config.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/libs/ffmpeg/classes.d.ts +13 -0
- package/dist/libs/ffmpeg/const.d.ts +14 -1
- package/dist/libs/ffmpeg/types.d.ts +48 -2
- package/dist/modules/clip/Clip.d.ts +8 -8
- package/dist/modules/clip/ClipStyle.d.ts +6 -6
- package/dist/modules/clip/clips/adjustment/AdjustmentClip.d.ts +2 -2
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +6 -6
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +13 -12
- package/dist/modules/clip/clips/index.d.ts +2 -0
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +22 -22
- 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/svg/SvgClip.d.ts +119 -0
- package/dist/modules/clip/clips/text/TextClip.d.ts +7 -6
- package/dist/modules/clip/clips/text/TextStyle.d.ts +19 -19
- package/dist/modules/clip/clips/video/VideoClip.d.ts +9 -7
- 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 +8 -6
- package/dist/modules/library/EffectData.d.ts +6 -6
- package/dist/modules/library/Library.d.ts +61 -56
- package/dist/modules/library/MediaData.d.ts +1 -0
- 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 +21 -21
- package/dist/modules/timeline/Timeline.d.ts +14 -7
- package/dist/modules/transition/Transition.d.ts +3 -3
- package/dist/modules/zip-archive/ZipArchive.d.ts +20 -0
- package/dist/modules/zip-archive/index.d.ts +1 -0
- package/dist/types/clip.types.d.ts +1 -0
- package/dist/utils/browser/isFirefox.d.ts +1 -0
- package/package.json +2 -2
|
@@ -107,6 +107,8 @@ export declare class FFmpeg {
|
|
|
107
107
|
writeFile: (path: string, data: FileData, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
108
108
|
mount: (fsType: FFFSType, options: FFFSMountOptions, mountPoint: FFFSPath) => Promise<OK>;
|
|
109
109
|
unmount: (mountPoint: FFFSPath) => Promise<OK>;
|
|
110
|
+
fileExists: (path: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
111
|
+
dirExists: (path: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
110
112
|
/**
|
|
111
113
|
* Read data from ffmpeg.wasm.
|
|
112
114
|
*
|
|
@@ -220,5 +222,16 @@ export declare class FFmpeg {
|
|
|
220
222
|
getMediaSubtitles: (path: string, { signal }?: FFMessageOptions) => Promise<string>;
|
|
221
223
|
private tmpADownloadTag;
|
|
222
224
|
downloadFile: (path: string, downloadFileName: string | undefined) => Promise<OK>;
|
|
225
|
+
createArchive: (path: string, { signal }?: FFMessageOptions) => Promise<number>;
|
|
226
|
+
openArchive: (path: string, { signal }?: FFMessageOptions) => Promise<number>;
|
|
227
|
+
closeArchive: (id: number, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
228
|
+
addFileToArchive: (id: number, path: string, targetDirectory: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
229
|
+
addFilesToArchive: (id: number, paths: string[], targetDirectory: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
230
|
+
saveArchive: (id: number, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
231
|
+
listFilesFromArchive: (id: number, { signal }?: FFMessageOptions) => Promise<string[]>;
|
|
232
|
+
extractFileFromArchive: (id: number, fromPath: string, toPath: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
233
|
+
extractAllFromArchive: (id: number, path: string, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
234
|
+
addDataToArchive: (id: number, path: string, data: Uint8Array, { signal }?: FFMessageOptions) => Promise<OK>;
|
|
235
|
+
readFileFromArchive: (id: number, path: string, { signal }?: FFMessageOptions) => Promise<Uint8Array | null>;
|
|
223
236
|
}
|
|
224
237
|
export {};
|
|
@@ -7,10 +7,12 @@ export declare enum FFMessageType {
|
|
|
7
7
|
WRITE_FILE = "WRITE_FILE",
|
|
8
8
|
READ_FILE = "READ_FILE",
|
|
9
9
|
DELETE_FILE = "DELETE_FILE",
|
|
10
|
+
EXIST_FILE = "EXIST_FILE",
|
|
10
11
|
RENAME = "RENAME",
|
|
11
12
|
CREATE_DIR = "CREATE_DIR",
|
|
12
13
|
LIST_DIR = "LIST_DIR",
|
|
13
14
|
DELETE_DIR = "DELETE_DIR",
|
|
15
|
+
EXIST_DIR = "EXIST_DIR",
|
|
14
16
|
ERROR = "ERROR",
|
|
15
17
|
DOWNLOAD = "DOWNLOAD",
|
|
16
18
|
PROGRESS = "PROGRESS",
|
|
@@ -38,5 +40,16 @@ export declare enum FFMessageType {
|
|
|
38
40
|
AUTH_IS_AUTHENTICATED = "AUTH_IS_AUTHENTICATED",
|
|
39
41
|
AUTH_GET_LICENSE_TYPE = "AUTH_GET_LICENSE_TYPE",
|
|
40
42
|
FETCH_TS_CHUNKS = "FETCH_TS_CHUNKS",
|
|
41
|
-
GET_BUILD_INFO = "GET_BUILD_INFO"
|
|
43
|
+
GET_BUILD_INFO = "GET_BUILD_INFO",
|
|
44
|
+
ARCHIVE_CREATE = "ARCHIVE_CREATE",
|
|
45
|
+
ARCHIVE_OPEN = "ARCHIVE_OPEN",
|
|
46
|
+
ARCHIVE_CLOSE = "ARCHIVE_CLOSE",
|
|
47
|
+
ARCHIVE_SAVE = "ARCHIVE_SAVE",
|
|
48
|
+
ARCHIVE_ADD_FILES = "ARCHIVE_ADD_FILES",
|
|
49
|
+
ARCHIVE_ADD_FILE = "ARCHIVE_ADD_FILE",
|
|
50
|
+
ARCHIVE_LIST_FILES = "ARCHIVE_LIST_FILES",
|
|
51
|
+
ARCHIVE_ADD_DATA = "ARCHIVE_ADD_DATA",
|
|
52
|
+
ARCHIVE_READ_FILE = "ARCHIVE_READ_FILE",
|
|
53
|
+
ARCHIVE_EXTRACT_FILE = "ARCHIVE_EXTRACT_FILE",
|
|
54
|
+
ARCHIVE_EXTRACT_ALL = "ARCHIVE_EXTRACT_ALL"
|
|
42
55
|
}
|
|
@@ -82,6 +82,9 @@ export interface FFMessageExecData {
|
|
|
82
82
|
args: string[];
|
|
83
83
|
timeout?: number;
|
|
84
84
|
}
|
|
85
|
+
export interface FFMessagePathExistsData {
|
|
86
|
+
path: FFFSPath;
|
|
87
|
+
}
|
|
85
88
|
export interface FFMessageWriteFileData {
|
|
86
89
|
path: FFFSPath;
|
|
87
90
|
data: FileData;
|
|
@@ -116,6 +119,49 @@ export interface FFMessageAuthentificateData {
|
|
|
116
119
|
export interface FFMessageFetchTSChunksData {
|
|
117
120
|
urls: string[];
|
|
118
121
|
}
|
|
122
|
+
export interface FFMessageCreateArchiveData {
|
|
123
|
+
path: FFFSPath;
|
|
124
|
+
}
|
|
125
|
+
export interface FFMessageOpenArchiveData {
|
|
126
|
+
path: FFFSPath;
|
|
127
|
+
}
|
|
128
|
+
export interface FFMessageSaveArchiveData {
|
|
129
|
+
id: number;
|
|
130
|
+
}
|
|
131
|
+
export interface FFMessageCloseArchiveData {
|
|
132
|
+
id: number;
|
|
133
|
+
}
|
|
134
|
+
export interface FFMessageAddDataToArchiveData {
|
|
135
|
+
id: number;
|
|
136
|
+
path: FFFSPath;
|
|
137
|
+
data: Uint8Array;
|
|
138
|
+
}
|
|
139
|
+
export interface FFMessageReadFileFromArchiveData {
|
|
140
|
+
id: number;
|
|
141
|
+
path: FFFSPath;
|
|
142
|
+
}
|
|
143
|
+
export interface FFMessageExtractAllFromArchiveData {
|
|
144
|
+
id: number;
|
|
145
|
+
path: FFFSPath;
|
|
146
|
+
}
|
|
147
|
+
export interface FFMessageAddFileToArchiveData {
|
|
148
|
+
id: number;
|
|
149
|
+
path: FFFSPath;
|
|
150
|
+
targetDirectory: FFFSPath;
|
|
151
|
+
}
|
|
152
|
+
export interface FFMessageAddFilesToArchiveData {
|
|
153
|
+
id: number;
|
|
154
|
+
paths: FFFSPath[];
|
|
155
|
+
targetDirectory: FFFSPath;
|
|
156
|
+
}
|
|
157
|
+
export interface FFMessageListFilesFromArchiveData {
|
|
158
|
+
id: number;
|
|
159
|
+
}
|
|
160
|
+
export interface FFMessageExtractFileFromArchiveData {
|
|
161
|
+
id: number;
|
|
162
|
+
fromPath: FFFSPath;
|
|
163
|
+
toPath: FFFSPath;
|
|
164
|
+
}
|
|
119
165
|
/**
|
|
120
166
|
* @remarks
|
|
121
167
|
* Only deletes empty directory.
|
|
@@ -149,7 +195,7 @@ export interface FFMessageMountData {
|
|
|
149
195
|
export interface FFMessageUnmountData {
|
|
150
196
|
mountPoint: FFFSPath;
|
|
151
197
|
}
|
|
152
|
-
export type FFMessageData = FFMessageLoadConfig | FFMessageExecData | FFMessageWriteFileData | FFMessageReadFileData | FFMessageDeleteFileData | FFMessageRenameData | FFMessageCreateDirData | FFMessageListDirData | FFMessageDeleteDirData | FFMessageMountData | FFMessageUnmountData | FFMessageGetInfoData | FFMessageGetSubtitlesData | FFMessageFrameData | FFMessageFrame | FFMessageRenderSettings | FFMessageInitDemuxerData | FFMessageSeekDemuxerData | FFMessageIdDemuxerData | FFMessageMuxerData | FFMessageAuthentificateData | FFMessageFetchTSChunksData | FFMessageTranscodeData;
|
|
198
|
+
export type FFMessageData = FFMessageLoadConfig | FFMessageExecData | FFMessageWriteFileData | FFMessageReadFileData | FFMessageDeleteFileData | FFMessageRenameData | FFMessageCreateDirData | FFMessageListDirData | FFMessageDeleteDirData | FFMessageMountData | FFMessageUnmountData | FFMessageGetInfoData | FFMessageGetSubtitlesData | FFMessageFrameData | FFMessageFrame | FFMessageRenderSettings | FFMessageInitDemuxerData | FFMessageSeekDemuxerData | FFMessageIdDemuxerData | FFMessageMuxerData | FFMessageAuthentificateData | FFMessageFetchTSChunksData | FFMessageTranscodeData | FFMessageCreateArchiveData | FFMessageOpenArchiveData | FFMessageSaveArchiveData | FFMessageCloseArchiveData | FFMessageAddDataToArchiveData | FFMessageReadFileFromArchiveData | FFMessageExtractAllFromArchiveData | FFMessageAddFileToArchiveData | FFMessageAddFilesToArchiveData | FFMessageListFilesFromArchiveData | FFMessageExtractFileFromArchiveData | FFMessagePathExistsData;
|
|
153
199
|
export interface Message {
|
|
154
200
|
type: string;
|
|
155
201
|
data?: FFMessageData;
|
|
@@ -183,7 +229,7 @@ export interface FSNode {
|
|
|
183
229
|
name: string;
|
|
184
230
|
isDir: boolean;
|
|
185
231
|
}
|
|
186
|
-
export type CallbackData = FileData | ExitCode | ErrorMessage | LogEvent | ProgressEvent | IsFirst | OK | Error | FSNode[] | undefined | object;
|
|
232
|
+
export type CallbackData = FileData | ExitCode | ErrorMessage | LogEvent | ProgressEvent | IsFirst | OK | Error | FSNode[] | undefined | object | null;
|
|
187
233
|
export interface Callbacks {
|
|
188
234
|
[id: number | string]: (data: CallbackData) => void;
|
|
189
235
|
}
|
|
@@ -470,14 +470,14 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
470
470
|
intensity: z.ZodNumber;
|
|
471
471
|
}, "strip", z.ZodTypeAny, {
|
|
472
472
|
id: string;
|
|
473
|
-
filterId: string;
|
|
474
473
|
provider: string;
|
|
474
|
+
filterId: string;
|
|
475
475
|
intensity: number;
|
|
476
476
|
clipId?: string | undefined;
|
|
477
477
|
}, {
|
|
478
478
|
id: string;
|
|
479
|
-
filterId: string;
|
|
480
479
|
provider: string;
|
|
480
|
+
filterId: string;
|
|
481
481
|
intensity: number;
|
|
482
482
|
clipId?: string | undefined;
|
|
483
483
|
}>, "many">;
|
|
@@ -905,9 +905,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
905
905
|
clipId: z.ZodString;
|
|
906
906
|
wrapMode: z.ZodDefault<z.ZodNativeEnum<typeof MaskWrapModeEnum>>;
|
|
907
907
|
}, "strict", z.ZodTypeAny, {
|
|
908
|
+
wrapMode: MaskWrapModeEnum;
|
|
908
909
|
id: string;
|
|
909
910
|
clipId: string;
|
|
910
|
-
wrapMode: MaskWrapModeEnum;
|
|
911
911
|
}, {
|
|
912
912
|
id: string;
|
|
913
913
|
clipId: string;
|
|
@@ -923,8 +923,8 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
923
923
|
rightTrim: number;
|
|
924
924
|
filters: {
|
|
925
925
|
id: string;
|
|
926
|
-
filterId: string;
|
|
927
926
|
provider: string;
|
|
927
|
+
filterId: string;
|
|
928
928
|
intensity: number;
|
|
929
929
|
clipId?: string | undefined;
|
|
930
930
|
}[];
|
|
@@ -1005,9 +1005,9 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1005
1005
|
} | undefined;
|
|
1006
1006
|
customData?: [string, unknown][] | undefined;
|
|
1007
1007
|
clipMasks?: {
|
|
1008
|
+
wrapMode: MaskWrapModeEnum;
|
|
1008
1009
|
id: string;
|
|
1009
1010
|
clipId: string;
|
|
1010
|
-
wrapMode: MaskWrapModeEnum;
|
|
1011
1011
|
}[] | undefined;
|
|
1012
1012
|
}, {
|
|
1013
1013
|
type: string;
|
|
@@ -1019,8 +1019,8 @@ export declare const ClipSchema: z.ZodObject<{
|
|
|
1019
1019
|
rightTrim: number;
|
|
1020
1020
|
filters: {
|
|
1021
1021
|
id: string;
|
|
1022
|
-
filterId: string;
|
|
1023
1022
|
provider: string;
|
|
1023
|
+
filterId: string;
|
|
1024
1024
|
intensity: number;
|
|
1025
1025
|
clipId?: string | undefined;
|
|
1026
1026
|
}[];
|
|
@@ -1236,8 +1236,8 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1236
1236
|
rightTrim: number;
|
|
1237
1237
|
filters: {
|
|
1238
1238
|
id: string;
|
|
1239
|
-
filterId: string;
|
|
1240
1239
|
provider: string;
|
|
1240
|
+
filterId: string;
|
|
1241
1241
|
intensity: number;
|
|
1242
1242
|
clipId?: string | undefined;
|
|
1243
1243
|
}[];
|
|
@@ -1318,9 +1318,9 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1318
1318
|
} | undefined;
|
|
1319
1319
|
customData?: [string, unknown][] | undefined;
|
|
1320
1320
|
clipMasks?: {
|
|
1321
|
+
wrapMode: MaskWrapModeEnum;
|
|
1321
1322
|
id: string;
|
|
1322
1323
|
clipId: string;
|
|
1323
|
-
wrapMode: MaskWrapModeEnum;
|
|
1324
1324
|
}[] | undefined;
|
|
1325
1325
|
};
|
|
1326
1326
|
protected postDeserialize(validatedData: z.infer<typeof ClipSchema>): void;
|
|
@@ -29,10 +29,10 @@ export declare const ClipStyleSchema: z.ZodObject<{
|
|
|
29
29
|
relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
alpha: number;
|
|
32
|
-
clipId: string;
|
|
33
32
|
rotation: number;
|
|
34
|
-
position: [number, number];
|
|
35
33
|
scale: [number, number];
|
|
34
|
+
clipId: string;
|
|
35
|
+
position: [number, number];
|
|
36
36
|
crop: [number, number, number, number];
|
|
37
37
|
zIndex: number;
|
|
38
38
|
relativeCornerRadius: boolean;
|
|
@@ -42,10 +42,10 @@ export declare const ClipStyleSchema: z.ZodObject<{
|
|
|
42
42
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
alpha: number;
|
|
45
|
-
clipId: string;
|
|
46
45
|
rotation: number;
|
|
47
|
-
position: [number, number];
|
|
48
46
|
scale: [number, number];
|
|
47
|
+
clipId: string;
|
|
48
|
+
position: [number, number];
|
|
49
49
|
zIndex: number;
|
|
50
50
|
mediaDataId?: string | undefined;
|
|
51
51
|
crop?: [number, number, number, number] | undefined;
|
|
@@ -140,10 +140,10 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
140
140
|
destroy(): void;
|
|
141
141
|
serialize(): {
|
|
142
142
|
alpha: number;
|
|
143
|
-
clipId: string;
|
|
144
143
|
rotation: number;
|
|
145
|
-
position: [number, number];
|
|
146
144
|
scale: [number, number];
|
|
145
|
+
clipId: string;
|
|
146
|
+
position: [number, number];
|
|
147
147
|
crop: [number, number, number, number];
|
|
148
148
|
zIndex: number;
|
|
149
149
|
relativeCornerRadius: boolean;
|
|
@@ -8,8 +8,8 @@ export declare class AdjustmentClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Spr
|
|
|
8
8
|
private processingClips;
|
|
9
9
|
private checkProcessingTimeoutId;
|
|
10
10
|
private isDestroyed;
|
|
11
|
-
private clipVisibilityRestore;
|
|
12
|
-
private transitionVisibilityRestore;
|
|
11
|
+
private readonly clipVisibilityRestore;
|
|
12
|
+
private readonly transitionVisibilityRestore;
|
|
13
13
|
private clearContainer;
|
|
14
14
|
constructor(options: AdjustmentClipOptions);
|
|
15
15
|
init(layerId: string): Promise<void>;
|
|
@@ -48,7 +48,7 @@ export declare class AudioClip extends Clip {
|
|
|
48
48
|
private applyFadeFunction;
|
|
49
49
|
private getVolumeFadeRelativeBounds;
|
|
50
50
|
private getFadeVolume;
|
|
51
|
-
|
|
51
|
+
applyVolume(): void;
|
|
52
52
|
setVolume(volume: number): void;
|
|
53
53
|
getVolume(): number;
|
|
54
54
|
setVolumeFadeInDuration(duration: number): void;
|
|
@@ -98,8 +98,8 @@ export declare class AudioClip extends Clip {
|
|
|
98
98
|
rightTrim: number;
|
|
99
99
|
filters: {
|
|
100
100
|
id: string;
|
|
101
|
-
filterId: string;
|
|
102
101
|
provider: string;
|
|
102
|
+
filterId: string;
|
|
103
103
|
intensity: number;
|
|
104
104
|
clipId?: string | undefined;
|
|
105
105
|
}[];
|
|
@@ -113,10 +113,11 @@ export declare class AudioClip extends Clip {
|
|
|
113
113
|
volumeFadeOutCurve: FadeCurveEnum;
|
|
114
114
|
text?: string | undefined;
|
|
115
115
|
name?: string | undefined;
|
|
116
|
-
subtitlesId?: string | undefined;
|
|
117
116
|
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
118
|
-
|
|
117
|
+
customData?: [string, unknown][] | undefined;
|
|
119
118
|
style?: unknown;
|
|
119
|
+
subtitlesId?: string | undefined;
|
|
120
|
+
blendMode?: import('../../../../types').BlendModeEnum | undefined;
|
|
120
121
|
animationController?: {
|
|
121
122
|
animationInDuration: number;
|
|
122
123
|
animationOutDuration: number;
|
|
@@ -183,11 +184,10 @@ export declare class AudioClip extends Clip {
|
|
|
183
184
|
amplification?: number | undefined;
|
|
184
185
|
} | undefined;
|
|
185
186
|
} | undefined;
|
|
186
|
-
customData?: [string, unknown][] | undefined;
|
|
187
187
|
clipMasks?: {
|
|
188
|
+
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
188
189
|
id: string;
|
|
189
190
|
clipId: string;
|
|
190
|
-
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
191
191
|
}[] | undefined;
|
|
192
192
|
volume?: number | undefined;
|
|
193
193
|
muted?: boolean | undefined;
|
|
@@ -18,8 +18,8 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
18
18
|
rightTrim: number;
|
|
19
19
|
filters: {
|
|
20
20
|
id: string;
|
|
21
|
-
filterId: string;
|
|
22
21
|
provider: string;
|
|
22
|
+
filterId: string;
|
|
23
23
|
intensity: number;
|
|
24
24
|
clipId?: string | undefined;
|
|
25
25
|
}[];
|
|
@@ -100,9 +100,9 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
|
|
|
100
100
|
} | undefined;
|
|
101
101
|
customData?: [string, unknown][] | undefined;
|
|
102
102
|
clipMasks?: {
|
|
103
|
+
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
103
104
|
id: string;
|
|
104
105
|
clipId: string;
|
|
105
|
-
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
106
106
|
}[] | undefined;
|
|
107
107
|
};
|
|
108
108
|
static deserialize(payload: object): CustomClip;
|
|
@@ -27,14 +27,14 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
|
|
|
27
27
|
wordWrapWidth: zod.ZodDefault<zod.ZodOptional<zod.ZodNumber>>;
|
|
28
28
|
}, "strip", zod.ZodTypeAny, {
|
|
29
29
|
color: string;
|
|
30
|
-
|
|
30
|
+
padding: number;
|
|
31
31
|
fontSize: number;
|
|
32
32
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
33
33
|
fontFamily: string;
|
|
34
34
|
fontStyle: "normal" | "italic" | "oblique";
|
|
35
35
|
strokeThickness: number;
|
|
36
36
|
wordWrapWidth: number;
|
|
37
|
-
|
|
37
|
+
align: "center" | "left" | "right" | "justify";
|
|
38
38
|
breakWords: boolean;
|
|
39
39
|
dropShadow: boolean;
|
|
40
40
|
dropShadowAlpha: number;
|
|
@@ -49,7 +49,7 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
|
|
|
49
49
|
whiteSpace: "normal" | "pre" | "pre-line";
|
|
50
50
|
wordWrap: boolean;
|
|
51
51
|
}, {
|
|
52
|
-
align?: "
|
|
52
|
+
align?: "center" | "left" | "right" | "justify" | undefined;
|
|
53
53
|
breakWords?: boolean | undefined;
|
|
54
54
|
dropShadow?: boolean | undefined;
|
|
55
55
|
dropShadowAlpha?: number | undefined;
|
|
@@ -90,14 +90,14 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
90
90
|
setHtmlStyle(style: HtmlTextStyle, reset?: boolean): void;
|
|
91
91
|
getHtmlStyle(): {
|
|
92
92
|
color: string;
|
|
93
|
-
|
|
93
|
+
padding: number;
|
|
94
94
|
fontSize: number;
|
|
95
95
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
96
96
|
fontFamily: string;
|
|
97
97
|
fontStyle: "normal" | "italic" | "oblique";
|
|
98
98
|
strokeThickness: number;
|
|
99
99
|
wordWrapWidth: number;
|
|
100
|
-
|
|
100
|
+
align: "center" | "left" | "right" | "justify";
|
|
101
101
|
breakWords: boolean;
|
|
102
102
|
dropShadow: boolean;
|
|
103
103
|
dropShadowAlpha: number;
|
|
@@ -113,6 +113,7 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
113
113
|
wordWrap: boolean;
|
|
114
114
|
};
|
|
115
115
|
loadFonts(fonts: string[]): Promise<void>;
|
|
116
|
+
getFonts(): string[] | undefined;
|
|
116
117
|
updateVisibility(currentTime: number): void;
|
|
117
118
|
update(currentTime: number): void;
|
|
118
119
|
clone(): HtmlTextClip;
|
|
@@ -126,8 +127,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
126
127
|
rightTrim: number;
|
|
127
128
|
filters: {
|
|
128
129
|
id: string;
|
|
129
|
-
filterId: string;
|
|
130
130
|
provider: string;
|
|
131
|
+
filterId: string;
|
|
131
132
|
intensity: number;
|
|
132
133
|
clipId?: string | undefined;
|
|
133
134
|
}[];
|
|
@@ -136,14 +137,14 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
136
137
|
htmlText: string;
|
|
137
138
|
htmlStyle: {
|
|
138
139
|
color: string;
|
|
139
|
-
|
|
140
|
+
padding: number;
|
|
140
141
|
fontSize: number;
|
|
141
142
|
fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
142
143
|
fontFamily: string;
|
|
143
144
|
fontStyle: "normal" | "italic" | "oblique";
|
|
144
145
|
strokeThickness: number;
|
|
145
146
|
wordWrapWidth: number;
|
|
146
|
-
|
|
147
|
+
align: "center" | "left" | "right" | "justify";
|
|
147
148
|
breakWords: boolean;
|
|
148
149
|
dropShadow: boolean;
|
|
149
150
|
dropShadowAlpha: number;
|
|
@@ -160,11 +161,12 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
160
161
|
};
|
|
161
162
|
text?: string | undefined;
|
|
162
163
|
name?: string | undefined;
|
|
164
|
+
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
165
|
+
customData?: [string, unknown][] | undefined;
|
|
163
166
|
mediaDataId?: string | undefined;
|
|
167
|
+
style?: unknown;
|
|
164
168
|
subtitlesId?: string | undefined;
|
|
165
|
-
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
166
169
|
blendMode?: import('../../../../types').BlendModeEnum | undefined;
|
|
167
|
-
style?: unknown;
|
|
168
170
|
animationController?: {
|
|
169
171
|
animationInDuration: number;
|
|
170
172
|
animationOutDuration: number;
|
|
@@ -231,11 +233,10 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
231
233
|
amplification?: number | undefined;
|
|
232
234
|
} | undefined;
|
|
233
235
|
} | undefined;
|
|
234
|
-
customData?: [string, unknown][] | undefined;
|
|
235
236
|
clipMasks?: {
|
|
237
|
+
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
236
238
|
id: string;
|
|
237
239
|
clipId: string;
|
|
238
|
-
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
239
240
|
}[] | undefined;
|
|
240
241
|
fonts?: string[] | undefined;
|
|
241
242
|
};
|
|
@@ -18,15 +18,15 @@ export declare const PropertySchema: zod.ZodObject<{
|
|
|
18
18
|
value: zod.ZodOptional<zod.ZodUnknown>;
|
|
19
19
|
}, "strip", zod.ZodTypeAny, {
|
|
20
20
|
type: LottiePropertyTypeEnum;
|
|
21
|
-
id: string;
|
|
22
21
|
path: string;
|
|
23
22
|
label: string;
|
|
23
|
+
id: string;
|
|
24
24
|
group?: string | undefined;
|
|
25
25
|
value?: unknown;
|
|
26
26
|
}, {
|
|
27
|
-
id: string;
|
|
28
27
|
path: string;
|
|
29
28
|
label: string;
|
|
29
|
+
id: string;
|
|
30
30
|
type?: LottiePropertyTypeEnum | undefined;
|
|
31
31
|
group?: string | undefined;
|
|
32
32
|
value?: unknown;
|
|
@@ -35,11 +35,11 @@ export declare const GroupSchema: zod.ZodObject<{
|
|
|
35
35
|
id: zod.ZodString;
|
|
36
36
|
label: zod.ZodString;
|
|
37
37
|
}, "strip", zod.ZodTypeAny, {
|
|
38
|
-
id: string;
|
|
39
38
|
label: string;
|
|
40
|
-
}, {
|
|
41
39
|
id: string;
|
|
40
|
+
}, {
|
|
42
41
|
label: string;
|
|
42
|
+
id: string;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const PropertiesSchema: zod.ZodObject<{
|
|
45
45
|
version: zod.ZodNumber;
|
|
@@ -47,11 +47,11 @@ export declare const PropertiesSchema: zod.ZodObject<{
|
|
|
47
47
|
id: zod.ZodString;
|
|
48
48
|
label: zod.ZodString;
|
|
49
49
|
}, "strip", zod.ZodTypeAny, {
|
|
50
|
-
id: string;
|
|
51
50
|
label: string;
|
|
52
|
-
}, {
|
|
53
51
|
id: string;
|
|
52
|
+
}, {
|
|
54
53
|
label: string;
|
|
54
|
+
id: string;
|
|
55
55
|
}>, "many">>;
|
|
56
56
|
properties: zod.ZodArray<zod.ZodObject<{
|
|
57
57
|
id: zod.ZodString;
|
|
@@ -62,15 +62,15 @@ export declare const PropertiesSchema: zod.ZodObject<{
|
|
|
62
62
|
value: zod.ZodOptional<zod.ZodUnknown>;
|
|
63
63
|
}, "strip", zod.ZodTypeAny, {
|
|
64
64
|
type: LottiePropertyTypeEnum;
|
|
65
|
-
id: string;
|
|
66
65
|
path: string;
|
|
67
66
|
label: string;
|
|
67
|
+
id: string;
|
|
68
68
|
group?: string | undefined;
|
|
69
69
|
value?: unknown;
|
|
70
70
|
}, {
|
|
71
|
-
id: string;
|
|
72
71
|
path: string;
|
|
73
72
|
label: string;
|
|
73
|
+
id: string;
|
|
74
74
|
type?: LottiePropertyTypeEnum | undefined;
|
|
75
75
|
group?: string | undefined;
|
|
76
76
|
value?: unknown;
|
|
@@ -78,30 +78,30 @@ export declare const PropertiesSchema: zod.ZodObject<{
|
|
|
78
78
|
}, "strip", zod.ZodTypeAny, {
|
|
79
79
|
properties: {
|
|
80
80
|
type: LottiePropertyTypeEnum;
|
|
81
|
-
id: string;
|
|
82
81
|
path: string;
|
|
83
82
|
label: string;
|
|
83
|
+
id: string;
|
|
84
84
|
group?: string | undefined;
|
|
85
85
|
value?: unknown;
|
|
86
86
|
}[];
|
|
87
87
|
version: number;
|
|
88
88
|
groups?: {
|
|
89
|
-
id: string;
|
|
90
89
|
label: string;
|
|
90
|
+
id: string;
|
|
91
91
|
}[] | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
properties: {
|
|
94
|
-
id: string;
|
|
95
94
|
path: string;
|
|
96
95
|
label: string;
|
|
96
|
+
id: string;
|
|
97
97
|
type?: LottiePropertyTypeEnum | undefined;
|
|
98
98
|
group?: string | undefined;
|
|
99
99
|
value?: unknown;
|
|
100
100
|
}[];
|
|
101
101
|
version: number;
|
|
102
102
|
groups?: {
|
|
103
|
-
id: string;
|
|
104
103
|
label: string;
|
|
104
|
+
id: string;
|
|
105
105
|
}[] | undefined;
|
|
106
106
|
}>;
|
|
107
107
|
export type Group = zod.infer<typeof GroupSchema>;
|
|
@@ -127,22 +127,22 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
127
127
|
private initProperties;
|
|
128
128
|
setProperty(propertyId: string, value: unknown): void;
|
|
129
129
|
getGroups(): {
|
|
130
|
-
id: string;
|
|
131
130
|
label: string;
|
|
131
|
+
id: string;
|
|
132
132
|
}[];
|
|
133
133
|
getProperties(): Map<string, {
|
|
134
134
|
type: LottiePropertyTypeEnum;
|
|
135
|
-
id: string;
|
|
136
135
|
path: string;
|
|
137
136
|
label: string;
|
|
137
|
+
id: string;
|
|
138
138
|
group?: string | undefined;
|
|
139
139
|
value?: unknown;
|
|
140
140
|
}>;
|
|
141
141
|
getProperty(propertyId: string): {
|
|
142
142
|
type: LottiePropertyTypeEnum;
|
|
143
|
-
id: string;
|
|
144
143
|
path: string;
|
|
145
144
|
label: string;
|
|
145
|
+
id: string;
|
|
146
146
|
group?: string | undefined;
|
|
147
147
|
value?: unknown;
|
|
148
148
|
} | undefined;
|
|
@@ -172,8 +172,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
172
172
|
rightTrim: number;
|
|
173
173
|
filters: {
|
|
174
174
|
id: string;
|
|
175
|
-
filterId: string;
|
|
176
175
|
provider: string;
|
|
176
|
+
filterId: string;
|
|
177
177
|
intensity: number;
|
|
178
178
|
clipId?: string | undefined;
|
|
179
179
|
}[];
|
|
@@ -182,11 +182,12 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
182
182
|
dataUrl: string;
|
|
183
183
|
text?: string | undefined;
|
|
184
184
|
name?: string | undefined;
|
|
185
|
+
wrapMode?: WrapModeEnum | undefined;
|
|
186
|
+
customData?: [string, unknown][] | undefined;
|
|
185
187
|
mediaDataId?: string | undefined;
|
|
188
|
+
style?: unknown;
|
|
186
189
|
subtitlesId?: string | undefined;
|
|
187
|
-
wrapMode?: WrapModeEnum | undefined;
|
|
188
190
|
blendMode?: import('../../../../types').BlendModeEnum | undefined;
|
|
189
|
-
style?: unknown;
|
|
190
191
|
animationController?: {
|
|
191
192
|
animationInDuration: number;
|
|
192
193
|
animationOutDuration: number;
|
|
@@ -253,23 +254,22 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
253
254
|
amplification?: number | undefined;
|
|
254
255
|
} | undefined;
|
|
255
256
|
} | undefined;
|
|
256
|
-
customData?: [string, unknown][] | undefined;
|
|
257
257
|
clipMasks?: {
|
|
258
|
+
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
258
259
|
id: string;
|
|
259
260
|
clipId: string;
|
|
260
|
-
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
261
261
|
}[] | undefined;
|
|
262
262
|
assetsUrl?: string | undefined;
|
|
263
263
|
propertiesUrl?: string | undefined;
|
|
264
264
|
groups?: {
|
|
265
|
-
id: string;
|
|
266
265
|
label: string;
|
|
266
|
+
id: string;
|
|
267
267
|
}[] | undefined;
|
|
268
268
|
properties?: {
|
|
269
269
|
type: LottiePropertyTypeEnum;
|
|
270
|
-
id: string;
|
|
271
270
|
path: string;
|
|
272
271
|
label: string;
|
|
272
|
+
id: string;
|
|
273
273
|
group?: string | undefined;
|
|
274
274
|
value?: unknown;
|
|
275
275
|
}[] | undefined;
|
|
@@ -21,8 +21,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
21
21
|
rightTrim: number;
|
|
22
22
|
filters: {
|
|
23
23
|
id: string;
|
|
24
|
-
filterId: string;
|
|
25
24
|
provider: string;
|
|
25
|
+
filterId: string;
|
|
26
26
|
intensity: number;
|
|
27
27
|
clipId?: string | undefined;
|
|
28
28
|
}[];
|
|
@@ -103,9 +103,9 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
|
|
|
103
103
|
} | undefined;
|
|
104
104
|
customData?: [string, unknown][] | undefined;
|
|
105
105
|
clipMasks?: {
|
|
106
|
+
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
106
107
|
id: string;
|
|
107
108
|
clipId: string;
|
|
108
|
-
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
109
109
|
}[] | undefined;
|
|
110
110
|
};
|
|
111
111
|
static deserialize(payload: object): ShapeClip;
|