@rendley/sdk 1.12.9 → 1.12.10
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.
|
@@ -3,11 +3,19 @@ import zod from "zod";
|
|
|
3
3
|
import { WrapModeEnum } from '../../../../types';
|
|
4
4
|
import { Clip, ClipOptions } from "../../Clip";
|
|
5
5
|
import { ClipStyle } from "../../ClipStyle";
|
|
6
|
+
export interface IGradientFillColor {
|
|
7
|
+
colorStops: number[];
|
|
8
|
+
colorValues: number[][];
|
|
9
|
+
alphaStops: number[];
|
|
10
|
+
alphaValues: number[];
|
|
11
|
+
}
|
|
6
12
|
export declare enum LottiePropertyTypeEnum {
|
|
7
13
|
TEXT = "text",
|
|
8
14
|
FILL_COLOR = "fill-color",
|
|
9
15
|
STROKE_COLOR = "stroke-color",
|
|
10
|
-
STROKE_WIDTH = "stroke-width"
|
|
16
|
+
STROKE_WIDTH = "stroke-width",
|
|
17
|
+
GRADIENT_FILL_COLOR = "gradient-fill-color",
|
|
18
|
+
IMAGE = "image"
|
|
11
19
|
}
|
|
12
20
|
export declare const PropertySchema: zod.ZodObject<{
|
|
13
21
|
id: zod.ZodString;
|
|
@@ -112,12 +120,14 @@ export interface LottieClipOptions extends ClipOptions<ClipStyle> {
|
|
|
112
120
|
propertiesUrl?: string;
|
|
113
121
|
groups?: zod.infer<typeof GroupSchema>[];
|
|
114
122
|
properties?: zod.infer<typeof PropertySchema>[];
|
|
123
|
+
playbackSpeed?: number;
|
|
115
124
|
}
|
|
116
125
|
export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
|
|
117
126
|
private dataUrl;
|
|
118
127
|
private assetsUrl;
|
|
119
128
|
private animation?;
|
|
120
129
|
private propertiesUrl?;
|
|
130
|
+
private playbackSpeed;
|
|
121
131
|
protected properties: Property[];
|
|
122
132
|
protected groups: Group[];
|
|
123
133
|
private propertyMap;
|
|
@@ -157,11 +167,15 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
157
167
|
replaceText(path: string | number, text: string): void;
|
|
158
168
|
private updateShapesFillCachedData;
|
|
159
169
|
private updateShapesStrokeColorCachedData;
|
|
170
|
+
private updateShapesGradientFillColorData;
|
|
160
171
|
private updateShapesStrokeWidthCachedData;
|
|
161
172
|
replaceFillColor(path: string | number, color: Array<number>): void;
|
|
162
173
|
replaceStrokeColor(path: string | number, color: Array<number>): void;
|
|
163
174
|
replaceStrokeWidth(path: string | number, width: number): void;
|
|
164
175
|
replaceImage(layerId: string | number, url: string): void;
|
|
176
|
+
replaceGradientFillColor(path: string | number, colorData: IGradientFillColor): void;
|
|
177
|
+
setPlaybackSpeed(speed: number, perserveLeftBound?: boolean, perserveTrimmedDuration?: boolean): void;
|
|
178
|
+
getPlaybackSpeed(): number;
|
|
165
179
|
serialize(): {
|
|
166
180
|
type: string;
|
|
167
181
|
id: string;
|
|
@@ -179,6 +193,7 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
179
193
|
}[];
|
|
180
194
|
effects: any[];
|
|
181
195
|
isVisible: boolean;
|
|
196
|
+
playbackSpeed: number;
|
|
182
197
|
dataUrl: string;
|
|
183
198
|
text?: string | undefined;
|
|
184
199
|
name?: string | undefined;
|
|
@@ -4,6 +4,7 @@ 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
|
+
import { MediaInfo } from "../ffmpeg/types/FFmpeg.types";
|
|
7
8
|
export interface MissingAssetInfo {
|
|
8
9
|
id: string;
|
|
9
10
|
provider: string;
|
|
@@ -447,6 +448,7 @@ export declare class Library {
|
|
|
447
448
|
syncAllMedia(): Promise<void>;
|
|
448
449
|
replaceMedia(id: string, file: File | string | Uint8Array, mimeType?: string): Promise<boolean>;
|
|
449
450
|
replaceSerializedMedia(data: any): Promise<boolean>;
|
|
451
|
+
probeMediaData(file: File | string | Uint8Array): Promise<MediaInfo | null>;
|
|
450
452
|
extractAudioFromMedia(mediaId: string, audioTrackIndex?: number): Promise<string | null>;
|
|
451
453
|
private onFilmstripFrame;
|
|
452
454
|
private processNextFilmstrip;
|