@rendley/sdk 1.11.18 → 1.12.0
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 +15 -12
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/modules/clip/Clip.d.ts +15 -9
- package/dist/modules/clip/ClipStyle.d.ts +26 -0
- package/dist/modules/clip/clips/adjustment/AdjustmentClip.d.ts +27 -0
- package/dist/modules/clip/clips/audio/AudioClip.d.ts +62 -22
- package/dist/modules/clip/clips/custom/CustomClip.d.ts +2 -2
- package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +3 -3
- package/dist/modules/clip/clips/lottie/LottieClip.d.ts +20 -20
- package/dist/modules/clip/clips/shape/ShapeClip.d.ts +2 -2
- package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +9 -5
- package/dist/modules/clip/clips/text/TextClip.d.ts +3 -3
- package/dist/modules/clip/clips/text/TextStyle.d.ts +11 -7
- package/dist/modules/clip/clips/video/VideoClip.d.ts +45 -4
- package/dist/modules/effect/Effect.d.ts +3 -3
- package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +28 -0
- package/dist/modules/filter/Filter.d.ts +3 -3
- package/dist/modules/filter/MaskFilter.d.ts +1 -1
- package/dist/modules/layer/Layer.d.ts +2 -0
- package/dist/modules/library/Library.d.ts +32 -32
- package/dist/modules/library/Subtitles.d.ts +3 -0
- package/dist/modules/library/TransitionData.d.ts +3 -3
- package/dist/modules/renderer/Renderer.d.ts +1 -0
- package/dist/modules/subtitles/SubtitleManager.d.ts +21 -21
- package/dist/modules/timeline/Timeline.d.ts +2 -0
- package/dist/modules/transition/Transition.d.ts +1 -0
- package/dist/modules/undo/UndoManager.types.d.ts +49 -1
- package/dist/types/clip.types.d.ts +26 -0
- package/dist/utils/animation/animation.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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
|
-
provider: string;
|
|
474
473
|
filterId: string;
|
|
474
|
+
provider: string;
|
|
475
475
|
intensity: number;
|
|
476
476
|
clipId?: string | undefined;
|
|
477
477
|
}, {
|
|
478
478
|
id: string;
|
|
479
|
-
provider: string;
|
|
480
479
|
filterId: string;
|
|
480
|
+
provider: 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;
|
|
909
908
|
id: string;
|
|
910
909
|
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
|
-
provider: string;
|
|
927
926
|
filterId: string;
|
|
927
|
+
provider: 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;
|
|
1009
1008
|
id: string;
|
|
1010
1009
|
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
|
-
provider: string;
|
|
1023
1022
|
filterId: string;
|
|
1023
|
+
provider: string;
|
|
1024
1024
|
intensity: number;
|
|
1025
1025
|
clipId?: string | undefined;
|
|
1026
1026
|
}[];
|
|
@@ -1199,7 +1199,13 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1199
1199
|
setSubtitlesId(subtitlesId: string): void;
|
|
1200
1200
|
getSubtitlesOffset(): number;
|
|
1201
1201
|
setSubtitlesOffset(offset: number): void;
|
|
1202
|
-
render(currentTime: number):
|
|
1202
|
+
render(currentTime: number): void;
|
|
1203
|
+
/**
|
|
1204
|
+
*
|
|
1205
|
+
* @description This is called after all the clips have been rendered in the preview, useful if you want to change some other clip states after rendering
|
|
1206
|
+
* @param currentTime - The current time of the timeline
|
|
1207
|
+
*/
|
|
1208
|
+
postRender(currentTime: number): void;
|
|
1203
1209
|
updateMediaData(newMediaId?: string): Promise<boolean>;
|
|
1204
1210
|
private addMaskTarget;
|
|
1205
1211
|
private removeMaskTarget;
|
|
@@ -1230,8 +1236,8 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1230
1236
|
rightTrim: number;
|
|
1231
1237
|
filters: {
|
|
1232
1238
|
id: string;
|
|
1233
|
-
provider: string;
|
|
1234
1239
|
filterId: string;
|
|
1240
|
+
provider: string;
|
|
1235
1241
|
intensity: number;
|
|
1236
1242
|
clipId?: string | undefined;
|
|
1237
1243
|
}[];
|
|
@@ -1312,9 +1318,9 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
|
|
|
1312
1318
|
} | undefined;
|
|
1313
1319
|
customData?: [string, unknown][] | undefined;
|
|
1314
1320
|
clipMasks?: {
|
|
1315
|
-
wrapMode: MaskWrapModeEnum;
|
|
1316
1321
|
id: string;
|
|
1317
1322
|
clipId: string;
|
|
1323
|
+
wrapMode: MaskWrapModeEnum;
|
|
1318
1324
|
}[] | undefined;
|
|
1319
1325
|
};
|
|
1320
1326
|
protected postDeserialize(validatedData: z.infer<typeof ClipSchema>): void;
|
|
@@ -7,6 +7,7 @@ export interface ClipStyleOptions {
|
|
|
7
7
|
rotation?: number;
|
|
8
8
|
position?: [number, number];
|
|
9
9
|
scale?: [number, number];
|
|
10
|
+
crop?: [number, number, number, number];
|
|
10
11
|
zIndex?: number;
|
|
11
12
|
width?: number;
|
|
12
13
|
height?: number;
|
|
@@ -20,6 +21,7 @@ export declare const ClipStyleSchema: z.ZodObject<{
|
|
|
20
21
|
rotation: z.ZodNumber;
|
|
21
22
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
22
23
|
scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
24
|
+
crop: z.ZodDefault<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
|
|
23
25
|
zIndex: z.ZodNumber;
|
|
24
26
|
width: z.ZodOptional<z.ZodNumber>;
|
|
25
27
|
height: z.ZodOptional<z.ZodNumber>;
|
|
@@ -31,6 +33,7 @@ export declare const ClipStyleSchema: z.ZodObject<{
|
|
|
31
33
|
rotation: number;
|
|
32
34
|
position: [number, number];
|
|
33
35
|
scale: [number, number];
|
|
36
|
+
crop: [number, number, number, number];
|
|
34
37
|
zIndex: number;
|
|
35
38
|
relativeCornerRadius: boolean;
|
|
36
39
|
mediaDataId?: string | undefined;
|
|
@@ -45,6 +48,7 @@ export declare const ClipStyleSchema: z.ZodObject<{
|
|
|
45
48
|
scale: [number, number];
|
|
46
49
|
zIndex: number;
|
|
47
50
|
mediaDataId?: string | undefined;
|
|
51
|
+
crop?: [number, number, number, number] | undefined;
|
|
48
52
|
width?: number | undefined;
|
|
49
53
|
height?: number | undefined;
|
|
50
54
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
@@ -58,6 +62,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
58
62
|
protected width: number;
|
|
59
63
|
protected height: number;
|
|
60
64
|
protected scale: [number, number];
|
|
65
|
+
protected crop: [number, number, number, number];
|
|
61
66
|
protected cornerRadius: number[];
|
|
62
67
|
protected relativeCornerRadius: boolean;
|
|
63
68
|
protected sprite: T | null;
|
|
@@ -72,6 +77,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
72
77
|
private lastCornerSize;
|
|
73
78
|
private lastCornerScale;
|
|
74
79
|
private lastRelativeCornerRadius;
|
|
80
|
+
private lastCrop;
|
|
75
81
|
constructor(options: ClipStyleOptions);
|
|
76
82
|
positionToCenter(): void;
|
|
77
83
|
scaleDownToFit(): void;
|
|
@@ -106,6 +112,25 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
106
112
|
getAnimationPositionOffset(): [number, number];
|
|
107
113
|
setZIndex(zIndex: number): void;
|
|
108
114
|
getZIndex(): number;
|
|
115
|
+
private getSafeCropValues;
|
|
116
|
+
/**
|
|
117
|
+
* Sets the crop values for the clip's sprite. This will clip the original texture to the given coordinates.
|
|
118
|
+
* If the sprite is not a video, gif or image, it will not be updated.
|
|
119
|
+
* If the sprite has no texture, or the texture is not valid, it will not be updated.
|
|
120
|
+
* If `updatePosition` is true, it will also update the position of the sprite, so that the cropped area will maintain it's visual position.
|
|
121
|
+
* @param left The left coordinate of the crop area
|
|
122
|
+
* @param top The top coordinate of the crop area
|
|
123
|
+
* @param right The right coordinate of the crop area
|
|
124
|
+
* @param bottom The bottom coordinate of the crop area
|
|
125
|
+
* @param updatePosition If true, it will also update the position of the sprite, so that the middle of the cropped area is at the same position as the middle of the original texture. Default is true.
|
|
126
|
+
*/
|
|
127
|
+
setCrop(left: number, top: number, right: number, bottom: number, updatePosition?: boolean): void;
|
|
128
|
+
/**
|
|
129
|
+
* Returns the current crop values of the clip.
|
|
130
|
+
* The returned array contains four numbers: [left, top, right, bottom]
|
|
131
|
+
* @returns {number[]} The current crop values of the clip.
|
|
132
|
+
*/
|
|
133
|
+
getCrop(): number[];
|
|
109
134
|
load(sprite: T): void;
|
|
110
135
|
update(sprite: T): void;
|
|
111
136
|
protected setCornerRadiusOnSprite(sprite: T): void;
|
|
@@ -118,6 +143,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
|
|
|
118
143
|
rotation: number;
|
|
119
144
|
position: [number, number];
|
|
120
145
|
scale: [number, number];
|
|
146
|
+
crop: [number, number, number, number];
|
|
121
147
|
zIndex: number;
|
|
122
148
|
relativeCornerRadius: boolean;
|
|
123
149
|
mediaDataId?: string | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as PIXI from "pixi.js";
|
|
2
|
+
import { Clip, ClipOptions } from "../../Clip";
|
|
3
|
+
import { ClipStyle } from "../../ClipStyle";
|
|
4
|
+
export interface AdjustmentClipOptions extends ClipOptions<ClipStyle> {
|
|
5
|
+
}
|
|
6
|
+
export declare class AdjustmentClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
|
|
7
|
+
private renderTexture;
|
|
8
|
+
private processingClips;
|
|
9
|
+
private checkProcessingTimeoutId;
|
|
10
|
+
private isDestroyed;
|
|
11
|
+
private clipVisibilityRestore;
|
|
12
|
+
private transitionVisibilityRestore;
|
|
13
|
+
private clearContainer;
|
|
14
|
+
constructor(options: AdjustmentClipOptions);
|
|
15
|
+
init(layerId: string): Promise<void>;
|
|
16
|
+
onResize(width: number, height: number): Promise<void>;
|
|
17
|
+
updateVisibility(currentTime: number): void;
|
|
18
|
+
getLeftRenderBound(): number;
|
|
19
|
+
getRightRenderBound(): number;
|
|
20
|
+
render(currentTime: number): void;
|
|
21
|
+
postRender(currentTime: number): void;
|
|
22
|
+
getIsProcessing(): boolean;
|
|
23
|
+
discardProcessing(): void;
|
|
24
|
+
private checkProcessingClips;
|
|
25
|
+
clone(): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
|
|
26
|
+
destroy(): void;
|
|
27
|
+
}
|
|
@@ -1,20 +1,34 @@
|
|
|
1
|
+
import { FadeCurveEnum } from '../../../../types';
|
|
1
2
|
import { Clip, ClipOptions } from "../../Clip";
|
|
2
3
|
export interface AudioClipOptions extends ClipOptions {
|
|
3
4
|
mediaDataId: string;
|
|
4
5
|
volume?: number;
|
|
5
6
|
muted?: boolean;
|
|
7
|
+
playbackSpeed?: number;
|
|
8
|
+
perservePitch?: boolean;
|
|
9
|
+
volumeFadeInDuration?: number;
|
|
10
|
+
volumeFadeInCurve?: FadeCurveEnum;
|
|
11
|
+
volumeFadeOutDuration?: number;
|
|
12
|
+
volumeFadeOutCurve?: FadeCurveEnum;
|
|
6
13
|
}
|
|
7
14
|
export declare class AudioClip extends Clip {
|
|
8
15
|
private audioElement;
|
|
9
16
|
private isPlaying;
|
|
10
17
|
private volume;
|
|
11
18
|
private muted;
|
|
19
|
+
private playbackSpeed;
|
|
20
|
+
private perservePitch;
|
|
21
|
+
private volumeFadeInDuration;
|
|
22
|
+
private volumeFadeInCurve;
|
|
23
|
+
private volumeFadeOutDuration;
|
|
24
|
+
private volumeFadeOutCurve;
|
|
12
25
|
private actions;
|
|
13
26
|
private isProcessing;
|
|
14
27
|
private lastUpdateTime;
|
|
15
28
|
private lastStartTime;
|
|
16
29
|
private lastLeftTrim;
|
|
17
30
|
private lastRightTrim;
|
|
31
|
+
private mediaDataDuration;
|
|
18
32
|
constructor(options: AudioClipOptions);
|
|
19
33
|
init(layerId: string): Promise<void>;
|
|
20
34
|
private getGlobalTimeToClipTime;
|
|
@@ -31,8 +45,24 @@ export declare class AudioClip extends Clip {
|
|
|
31
45
|
private errorCallback;
|
|
32
46
|
private audioLoadedCallback;
|
|
33
47
|
isReady(): boolean;
|
|
48
|
+
private applyFadeFunction;
|
|
49
|
+
private getVolumeFadeRelativeBounds;
|
|
50
|
+
private getFadeVolume;
|
|
51
|
+
private applyVolume;
|
|
34
52
|
setVolume(volume: number): void;
|
|
35
53
|
getVolume(): number;
|
|
54
|
+
setVolumeFadeInDuration(duration: number): void;
|
|
55
|
+
getVolumeFadeInDuration(): number;
|
|
56
|
+
setVolumeFadeInCurve(curve: FadeCurveEnum): void;
|
|
57
|
+
getVolumeFadeInCurve(): FadeCurveEnum;
|
|
58
|
+
setVolumeFadeOutDuration(duration: number): void;
|
|
59
|
+
getVolumeFadeOutDuration(): number;
|
|
60
|
+
setVolumeFadeOutCurve(curve: FadeCurveEnum): void;
|
|
61
|
+
getVolumeFadeOutCurve(): FadeCurveEnum;
|
|
62
|
+
setPlaybackSpeed(speed: number, perserveLeftBound?: boolean, perserveTrimmedDuration?: boolean): void;
|
|
63
|
+
getPlaybackSpeed(): number;
|
|
64
|
+
setPerservePitch(perservePitch: boolean): void;
|
|
65
|
+
getPerservePitch(): boolean;
|
|
36
66
|
private play;
|
|
37
67
|
private pause;
|
|
38
68
|
private willSeekAtTime;
|
|
@@ -50,6 +80,10 @@ export declare class AudioClip extends Clip {
|
|
|
50
80
|
* @returns An array of Float32Array representing the audio samples, or null if the media data is unavailable.
|
|
51
81
|
*/
|
|
52
82
|
getAudioSamples(startTime: number, duration?: number): Float32Array[] | null;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @deprecated Use getAudioSamples instead, don't forget to enable them in the settings
|
|
86
|
+
*/
|
|
53
87
|
extractMonoAudioData(startTime: number, endTime: number): Promise<Float32Array | null>;
|
|
54
88
|
destroy(): void;
|
|
55
89
|
clone(): AudioClip;
|
|
@@ -64,18 +98,24 @@ export declare class AudioClip extends Clip {
|
|
|
64
98
|
rightTrim: number;
|
|
65
99
|
filters: {
|
|
66
100
|
id: string;
|
|
67
|
-
provider: string;
|
|
68
101
|
filterId: string;
|
|
102
|
+
provider: string;
|
|
69
103
|
intensity: number;
|
|
70
104
|
clipId?: string | undefined;
|
|
71
105
|
}[];
|
|
72
106
|
effects: any[];
|
|
73
107
|
isVisible: boolean;
|
|
108
|
+
playbackSpeed: number;
|
|
109
|
+
perservePitch: boolean;
|
|
110
|
+
volumeFadeInDuration: number;
|
|
111
|
+
volumeFadeInCurve: FadeCurveEnum;
|
|
112
|
+
volumeFadeOutDuration: number;
|
|
113
|
+
volumeFadeOutCurve: FadeCurveEnum;
|
|
74
114
|
text?: string | undefined;
|
|
75
115
|
name?: string | undefined;
|
|
76
|
-
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
77
116
|
subtitlesId?: string | undefined;
|
|
78
|
-
|
|
117
|
+
wrapMode?: import('../../../../index').WrapModeEnum | undefined;
|
|
118
|
+
blendMode?: import('../../../../index').BlendModeEnum | undefined;
|
|
79
119
|
style?: unknown;
|
|
80
120
|
animationController?: {
|
|
81
121
|
animationInDuration: number;
|
|
@@ -84,17 +124,17 @@ export declare class AudioClip extends Clip {
|
|
|
84
124
|
loopSmoothing: number;
|
|
85
125
|
animationDataIn?: {
|
|
86
126
|
name: string;
|
|
87
|
-
inOutOfRange: import(
|
|
88
|
-
outOutOfRange: import(
|
|
127
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
128
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
89
129
|
propertyAnimations: {
|
|
90
|
-
inOutOfRange: import(
|
|
91
|
-
outOutOfRange: import(
|
|
130
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
131
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
92
132
|
property: string;
|
|
93
133
|
keyframes: {
|
|
94
134
|
value: string | number;
|
|
95
135
|
time: number;
|
|
96
|
-
easing: import(
|
|
97
|
-
space: import(
|
|
136
|
+
easing: import('../../../../index').EasingEnum;
|
|
137
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
98
138
|
relativeProperty?: string | undefined;
|
|
99
139
|
}[];
|
|
100
140
|
}[];
|
|
@@ -104,17 +144,17 @@ export declare class AudioClip extends Clip {
|
|
|
104
144
|
} | undefined;
|
|
105
145
|
animationDataOut?: {
|
|
106
146
|
name: string;
|
|
107
|
-
inOutOfRange: import(
|
|
108
|
-
outOutOfRange: import(
|
|
147
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
148
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
109
149
|
propertyAnimations: {
|
|
110
|
-
inOutOfRange: import(
|
|
111
|
-
outOutOfRange: import(
|
|
150
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
151
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
112
152
|
property: string;
|
|
113
153
|
keyframes: {
|
|
114
154
|
value: string | number;
|
|
115
155
|
time: number;
|
|
116
|
-
easing: import(
|
|
117
|
-
space: import(
|
|
156
|
+
easing: import('../../../../index').EasingEnum;
|
|
157
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
118
158
|
relativeProperty?: string | undefined;
|
|
119
159
|
}[];
|
|
120
160
|
}[];
|
|
@@ -124,17 +164,17 @@ export declare class AudioClip extends Clip {
|
|
|
124
164
|
} | undefined;
|
|
125
165
|
animationDataLoop?: {
|
|
126
166
|
name: string;
|
|
127
|
-
inOutOfRange: import(
|
|
128
|
-
outOutOfRange: import(
|
|
167
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
168
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
129
169
|
propertyAnimations: {
|
|
130
|
-
inOutOfRange: import(
|
|
131
|
-
outOutOfRange: import(
|
|
170
|
+
inOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
171
|
+
outOutOfRange: import('../../../../index').OutOfRangeEnum;
|
|
132
172
|
property: string;
|
|
133
173
|
keyframes: {
|
|
134
174
|
value: string | number;
|
|
135
175
|
time: number;
|
|
136
|
-
easing: import(
|
|
137
|
-
space: import(
|
|
176
|
+
easing: import('../../../../index').EasingEnum;
|
|
177
|
+
space: import('../../../../index').AnimationSpaceEnum;
|
|
138
178
|
relativeProperty?: string | undefined;
|
|
139
179
|
}[];
|
|
140
180
|
}[];
|
|
@@ -145,9 +185,9 @@ export declare class AudioClip extends Clip {
|
|
|
145
185
|
} | undefined;
|
|
146
186
|
customData?: [string, unknown][] | undefined;
|
|
147
187
|
clipMasks?: {
|
|
148
|
-
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
149
188
|
id: string;
|
|
150
189
|
clipId: string;
|
|
190
|
+
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
151
191
|
}[] | undefined;
|
|
152
192
|
volume?: number | undefined;
|
|
153
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
|
-
provider: string;
|
|
22
21
|
filterId: string;
|
|
22
|
+
provider: 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;
|
|
104
103
|
id: string;
|
|
105
104
|
clipId: string;
|
|
105
|
+
wrapMode: import('../../../../index').MaskWrapModeEnum;
|
|
106
106
|
}[] | undefined;
|
|
107
107
|
};
|
|
108
108
|
static deserialize(payload: object): CustomClip;
|
|
@@ -126,8 +126,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
126
126
|
rightTrim: number;
|
|
127
127
|
filters: {
|
|
128
128
|
id: string;
|
|
129
|
-
provider: string;
|
|
130
129
|
filterId: string;
|
|
130
|
+
provider: string;
|
|
131
131
|
intensity: number;
|
|
132
132
|
clipId?: string | undefined;
|
|
133
133
|
}[];
|
|
@@ -160,9 +160,9 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
160
160
|
};
|
|
161
161
|
text?: string | undefined;
|
|
162
162
|
name?: string | undefined;
|
|
163
|
-
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
164
163
|
mediaDataId?: string | undefined;
|
|
165
164
|
subtitlesId?: string | undefined;
|
|
165
|
+
wrapMode?: import('../../../../types').WrapModeEnum | undefined;
|
|
166
166
|
blendMode?: import('../../../../types').BlendModeEnum | undefined;
|
|
167
167
|
style?: unknown;
|
|
168
168
|
animationController?: {
|
|
@@ -233,9 +233,9 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
|
|
|
233
233
|
} | undefined;
|
|
234
234
|
customData?: [string, unknown][] | undefined;
|
|
235
235
|
clipMasks?: {
|
|
236
|
-
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
237
236
|
id: string;
|
|
238
237
|
clipId: string;
|
|
238
|
+
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
239
239
|
}[] | undefined;
|
|
240
240
|
fonts?: string[] | undefined;
|
|
241
241
|
};
|
|
@@ -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;
|
|
21
22
|
path: string;
|
|
22
23
|
label: string;
|
|
23
|
-
id: string;
|
|
24
24
|
group?: string | undefined;
|
|
25
25
|
value?: unknown;
|
|
26
26
|
}, {
|
|
27
|
+
id: string;
|
|
27
28
|
path: string;
|
|
28
29
|
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
|
-
label: string;
|
|
39
38
|
id: string;
|
|
40
|
-
}, {
|
|
41
39
|
label: string;
|
|
40
|
+
}, {
|
|
42
41
|
id: string;
|
|
42
|
+
label: 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
|
-
label: string;
|
|
51
50
|
id: string;
|
|
52
|
-
}, {
|
|
53
51
|
label: string;
|
|
52
|
+
}, {
|
|
54
53
|
id: string;
|
|
54
|
+
label: 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;
|
|
65
66
|
path: string;
|
|
66
67
|
label: string;
|
|
67
|
-
id: string;
|
|
68
68
|
group?: string | undefined;
|
|
69
69
|
value?: unknown;
|
|
70
70
|
}, {
|
|
71
|
+
id: string;
|
|
71
72
|
path: string;
|
|
72
73
|
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;
|
|
81
82
|
path: string;
|
|
82
83
|
label: string;
|
|
83
|
-
id: string;
|
|
84
84
|
group?: string | undefined;
|
|
85
85
|
value?: unknown;
|
|
86
86
|
}[];
|
|
87
87
|
version: number;
|
|
88
88
|
groups?: {
|
|
89
|
-
label: string;
|
|
90
89
|
id: string;
|
|
90
|
+
label: string;
|
|
91
91
|
}[] | undefined;
|
|
92
92
|
}, {
|
|
93
93
|
properties: {
|
|
94
|
+
id: string;
|
|
94
95
|
path: string;
|
|
95
96
|
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
|
-
label: string;
|
|
104
103
|
id: string;
|
|
104
|
+
label: 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
|
-
label: string;
|
|
131
130
|
id: string;
|
|
131
|
+
label: string;
|
|
132
132
|
}[];
|
|
133
133
|
getProperties(): Map<string, {
|
|
134
134
|
type: LottiePropertyTypeEnum;
|
|
135
|
+
id: string;
|
|
135
136
|
path: string;
|
|
136
137
|
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;
|
|
143
144
|
path: string;
|
|
144
145
|
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
|
-
provider: string;
|
|
176
175
|
filterId: string;
|
|
176
|
+
provider: string;
|
|
177
177
|
intensity: number;
|
|
178
178
|
clipId?: string | undefined;
|
|
179
179
|
}[];
|
|
@@ -182,9 +182,9 @@ 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
185
|
mediaDataId?: string | undefined;
|
|
187
186
|
subtitlesId?: string | undefined;
|
|
187
|
+
wrapMode?: WrapModeEnum | undefined;
|
|
188
188
|
blendMode?: import('../../../../types').BlendModeEnum | undefined;
|
|
189
189
|
style?: unknown;
|
|
190
190
|
animationController?: {
|
|
@@ -255,21 +255,21 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
|
|
|
255
255
|
} | undefined;
|
|
256
256
|
customData?: [string, unknown][] | undefined;
|
|
257
257
|
clipMasks?: {
|
|
258
|
-
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
259
258
|
id: string;
|
|
260
259
|
clipId: string;
|
|
260
|
+
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
261
261
|
}[] | undefined;
|
|
262
262
|
assetsUrl?: string | undefined;
|
|
263
263
|
propertiesUrl?: string | undefined;
|
|
264
264
|
groups?: {
|
|
265
|
-
label: string;
|
|
266
265
|
id: string;
|
|
266
|
+
label: string;
|
|
267
267
|
}[] | undefined;
|
|
268
268
|
properties?: {
|
|
269
269
|
type: LottiePropertyTypeEnum;
|
|
270
|
+
id: string;
|
|
270
271
|
path: string;
|
|
271
272
|
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
|
-
provider: string;
|
|
25
24
|
filterId: string;
|
|
25
|
+
provider: 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;
|
|
107
106
|
id: string;
|
|
108
107
|
clipId: string;
|
|
108
|
+
wrapMode: import("../../../filter").MaskWrapModeEnum;
|
|
109
109
|
}[] | undefined;
|
|
110
110
|
};
|
|
111
111
|
static deserialize(payload: object): ShapeClip;
|
|
@@ -18,13 +18,14 @@ interface ShapeClipStyleOptions extends ClipStyleOptions {
|
|
|
18
18
|
export declare const ShapeStyleSchema: z.ZodObject<{
|
|
19
19
|
width: z.ZodOptional<z.ZodNumber>;
|
|
20
20
|
alpha: z.ZodNumber;
|
|
21
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
22
|
-
clipId: z.ZodString;
|
|
23
21
|
mediaDataId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
clipId: z.ZodString;
|
|
24
23
|
rotation: z.ZodNumber;
|
|
25
24
|
position: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
26
25
|
scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
|
|
26
|
+
crop: z.ZodDefault<z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>>;
|
|
27
27
|
zIndex: z.ZodNumber;
|
|
28
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
28
29
|
cornerRadius: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
29
30
|
relativeCornerRadius: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
31
|
shape: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof ShapeTypeEnum>>>;
|
|
@@ -45,12 +46,13 @@ export declare const ShapeStyleSchema: z.ZodObject<{
|
|
|
45
46
|
rotation: number;
|
|
46
47
|
position: [number, number];
|
|
47
48
|
scale: [number, number];
|
|
49
|
+
crop: [number, number, number, number];
|
|
48
50
|
zIndex: number;
|
|
49
51
|
relativeCornerRadius: boolean;
|
|
50
52
|
hasFill: boolean;
|
|
51
53
|
width?: number | undefined;
|
|
52
|
-
height?: number | undefined;
|
|
53
54
|
mediaDataId?: string | undefined;
|
|
55
|
+
height?: number | undefined;
|
|
54
56
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
55
57
|
fillColor?: string | undefined;
|
|
56
58
|
strokeColor?: string | undefined;
|
|
@@ -69,8 +71,9 @@ export declare const ShapeStyleSchema: z.ZodObject<{
|
|
|
69
71
|
scale: [number, number];
|
|
70
72
|
zIndex: number;
|
|
71
73
|
width?: number | undefined;
|
|
72
|
-
height?: number | undefined;
|
|
73
74
|
mediaDataId?: string | undefined;
|
|
75
|
+
crop?: [number, number, number, number] | undefined;
|
|
76
|
+
height?: number | undefined;
|
|
74
77
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
75
78
|
relativeCornerRadius?: boolean | undefined;
|
|
76
79
|
shape?: ShapeTypeEnum | undefined;
|
|
@@ -128,12 +131,13 @@ export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
|
|
|
128
131
|
rotation: number;
|
|
129
132
|
position: [number, number];
|
|
130
133
|
scale: [number, number];
|
|
134
|
+
crop: [number, number, number, number];
|
|
131
135
|
zIndex: number;
|
|
132
136
|
relativeCornerRadius: boolean;
|
|
133
137
|
hasFill: boolean;
|
|
134
138
|
width?: number | undefined;
|
|
135
|
-
height?: number | undefined;
|
|
136
139
|
mediaDataId?: string | undefined;
|
|
140
|
+
height?: number | undefined;
|
|
137
141
|
cornerRadius?: [number, number, number, number] | undefined;
|
|
138
142
|
fillColor?: string | undefined;
|
|
139
143
|
strokeColor?: string | undefined;
|