@rendley/sdk 1.9.8 → 1.10.1

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.
@@ -0,0 +1,5 @@
1
+ /// <reference no-default-lib="true"/>
2
+ /// <reference lib="esnext" />
3
+ /// <reference lib="webworker" />
4
+ /// <reference lib="dom" />
5
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare class BackgroundTimer {
2
+ private readonly worker;
3
+ private lastId;
4
+ private readonly callbacks;
5
+ constructor();
6
+ destroy(): void;
7
+ setTimeout(fn: () => void, time: number): number;
8
+ clearTimeout(id: number): void;
9
+ }
@@ -0,0 +1,15 @@
1
+ export interface IBackgroundTimerSetTimeoutMsg {
2
+ id: number;
3
+ duration: number;
4
+ }
5
+ export interface IBackgroundTimerStopTimeoutMsg {
6
+ id: number;
7
+ }
8
+ export declare enum BackgroundTimerMsgTypeEnum {
9
+ SET_TIMEOUT = "set-timeout",
10
+ CLEAR_TIMEOUT = "clear-timeout"
11
+ }
12
+ export interface IBackgroundTimerMsg {
13
+ type: BackgroundTimerMsgTypeEnum;
14
+ payload: IBackgroundTimerSetTimeoutMsg | IBackgroundTimerStopTimeoutMsg;
15
+ }
@@ -34,6 +34,7 @@ export interface ClipOptions<K extends ClipStyle = ClipStyle> {
34
34
  effects?: z.infer<typeof EffectSchema>[];
35
35
  style?: Partial<ReturnType<K["serialize"]>>;
36
36
  isVisible?: boolean;
37
+ wrapMode?: WrapModeEnum;
37
38
  }
38
39
  export declare const AnimationClassSchema: z.ZodObject<{
39
40
  animationDataIn: z.ZodOptional<z.ZodObject<{
@@ -959,8 +960,8 @@ export declare const ClipSchema: z.ZodObject<{
959
960
  wrapMode?: MaskWrapModeEnum | undefined;
960
961
  }>, "many">>;
961
962
  }, "strip", z.ZodTypeAny, {
962
- id: string;
963
963
  type: string;
964
+ id: string;
964
965
  subtitlesOffset: number;
965
966
  startTime: number;
966
967
  duration: number;
@@ -1064,8 +1065,8 @@ export declare const ClipSchema: z.ZodObject<{
1064
1065
  clipId: string;
1065
1066
  }[] | undefined;
1066
1067
  }, {
1067
- id: string;
1068
1068
  type: string;
1069
+ id: string;
1069
1070
  subtitlesOffset: number;
1070
1071
  startTime: number;
1071
1072
  duration: number;
@@ -1264,6 +1265,8 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
1264
1265
  removeClipMask(clip: Clip): void;
1265
1266
  setVisible(visible: boolean): void;
1266
1267
  getVisible(): boolean;
1268
+ setWrapMode(wrapMode: WrapModeEnum): void;
1269
+ getWrapMode(): WrapModeEnum;
1267
1270
  private updatePIXIFilters;
1268
1271
  hasSprite(): boolean;
1269
1272
  update(currentTime: number): void;
@@ -1272,8 +1275,8 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
1272
1275
  clone(): Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>;
1273
1276
  protected postRendererInit(): void;
1274
1277
  serialize(): {
1275
- id: string;
1276
1278
  type: string;
1279
+ id: string;
1277
1280
  subtitlesOffset: number;
1278
1281
  startTime: number;
1279
1282
  duration: number;
@@ -44,8 +44,8 @@ export declare class AudioClip extends Clip {
44
44
  offload(): void;
45
45
  clone(): AudioClip;
46
46
  serialize(): {
47
- id: string;
48
47
  type: string;
48
+ id: string;
49
49
  mediaDataId: string;
50
50
  subtitlesOffset: number;
51
51
  startTime: number;
@@ -9,8 +9,8 @@ export declare class CustomClip extends Clip<PIXI.Sprite, ClipStyle> {
9
9
  clone(): any;
10
10
  destroy(): void;
11
11
  serialize(): {
12
- id: string;
13
12
  type: string;
13
+ id: string;
14
14
  subtitlesOffset: number;
15
15
  startTime: number;
16
16
  duration: number;
@@ -117,8 +117,8 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
117
117
  update(currentTime: number): void;
118
118
  clone(): HtmlTextClip;
119
119
  serialize(): {
120
- id: string;
121
120
  type: string;
121
+ id: string;
122
122
  subtitlesOffset: number;
123
123
  startTime: number;
124
124
  duration: number;
@@ -1,72 +1,145 @@
1
1
  import * as PIXI from "pixi.js";
2
2
  import zod from "zod";
3
+ import { WrapModeEnum } from '../../../../types';
3
4
  import { Clip, ClipOptions } from "../../Clip";
4
5
  import { ClipStyle } from "../../ClipStyle";
5
- export declare enum PropertyTypeEnum {
6
- TEXT = "text"
6
+ export declare enum LottiePropertyTypeEnum {
7
+ TEXT = "text",
8
+ FILL_COLOR = "fill-color"
7
9
  }
8
10
  export declare const PropertySchema: zod.ZodObject<{
9
- type: zod.ZodDefault<zod.ZodNativeEnum<typeof PropertyTypeEnum>>;
11
+ id: zod.ZodString;
12
+ type: zod.ZodDefault<zod.ZodNativeEnum<typeof LottiePropertyTypeEnum>>;
10
13
  label: zod.ZodString;
11
- name: zod.ZodString;
14
+ path: zod.ZodString;
15
+ group: zod.ZodOptional<zod.ZodString>;
12
16
  value: zod.ZodOptional<zod.ZodUnknown>;
13
17
  }, "strip", zod.ZodTypeAny, {
14
- name: string;
15
- type: PropertyTypeEnum;
18
+ type: LottiePropertyTypeEnum;
19
+ id: string;
20
+ path: string;
16
21
  label: string;
22
+ group?: string | undefined;
17
23
  value?: unknown;
18
24
  }, {
19
- name: string;
25
+ id: string;
26
+ path: string;
20
27
  label: string;
21
- type?: PropertyTypeEnum.TEXT | undefined;
28
+ type?: LottiePropertyTypeEnum | undefined;
29
+ group?: string | undefined;
22
30
  value?: unknown;
23
31
  }>;
24
- export declare const PropertiesSchema: zod.ZodArray<zod.ZodObject<{
25
- type: zod.ZodDefault<zod.ZodNativeEnum<typeof PropertyTypeEnum>>;
32
+ export declare const GroupSchema: zod.ZodObject<{
33
+ id: zod.ZodString;
26
34
  label: zod.ZodString;
27
- name: zod.ZodString;
28
- value: zod.ZodOptional<zod.ZodUnknown>;
29
35
  }, "strip", zod.ZodTypeAny, {
30
- name: string;
31
- type: PropertyTypeEnum;
36
+ id: string;
32
37
  label: string;
33
- value?: unknown;
34
38
  }, {
35
- name: string;
39
+ id: string;
36
40
  label: string;
37
- type?: PropertyTypeEnum.TEXT | undefined;
38
- value?: unknown;
39
- }>, "many">;
41
+ }>;
42
+ export declare const PropertiesSchema: zod.ZodObject<{
43
+ version: zod.ZodNumber;
44
+ groups: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
45
+ id: zod.ZodString;
46
+ label: zod.ZodString;
47
+ }, "strip", zod.ZodTypeAny, {
48
+ id: string;
49
+ label: string;
50
+ }, {
51
+ id: string;
52
+ label: string;
53
+ }>, "many">>;
54
+ properties: zod.ZodArray<zod.ZodObject<{
55
+ id: zod.ZodString;
56
+ type: zod.ZodDefault<zod.ZodNativeEnum<typeof LottiePropertyTypeEnum>>;
57
+ label: zod.ZodString;
58
+ path: zod.ZodString;
59
+ group: zod.ZodOptional<zod.ZodString>;
60
+ value: zod.ZodOptional<zod.ZodUnknown>;
61
+ }, "strip", zod.ZodTypeAny, {
62
+ type: LottiePropertyTypeEnum;
63
+ id: string;
64
+ path: string;
65
+ label: string;
66
+ group?: string | undefined;
67
+ value?: unknown;
68
+ }, {
69
+ id: string;
70
+ path: string;
71
+ label: string;
72
+ type?: LottiePropertyTypeEnum | undefined;
73
+ group?: string | undefined;
74
+ value?: unknown;
75
+ }>, "many">;
76
+ }, "strip", zod.ZodTypeAny, {
77
+ version: number;
78
+ properties: {
79
+ type: LottiePropertyTypeEnum;
80
+ id: string;
81
+ path: string;
82
+ label: string;
83
+ group?: string | undefined;
84
+ value?: unknown;
85
+ }[];
86
+ groups?: {
87
+ id: string;
88
+ label: string;
89
+ }[] | undefined;
90
+ }, {
91
+ version: number;
92
+ properties: {
93
+ id: string;
94
+ path: string;
95
+ label: string;
96
+ type?: LottiePropertyTypeEnum | undefined;
97
+ group?: string | undefined;
98
+ value?: unknown;
99
+ }[];
100
+ groups?: {
101
+ id: string;
102
+ label: string;
103
+ }[] | undefined;
104
+ }>;
105
+ export type Group = zod.infer<typeof GroupSchema>;
40
106
  export type Property = zod.infer<typeof PropertySchema>;
41
107
  export interface LottieClipOptions extends ClipOptions<ClipStyle> {
42
108
  dataUrl: string;
43
109
  assetsUrl?: string;
44
110
  propertiesUrl?: string;
45
- properties?: Record<string, zod.infer<typeof PropertySchema>>;
111
+ groups?: zod.infer<typeof GroupSchema>[];
112
+ properties?: zod.infer<typeof PropertySchema>[];
46
113
  }
47
114
  export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>> {
48
115
  private dataUrl;
49
116
  private assetsUrl;
50
117
  private animation?;
51
118
  private propertiesUrl?;
52
- protected properties: Record<string, Property>;
119
+ protected properties: Property[];
120
+ protected groups: Group[];
121
+ private propertyMap;
53
122
  constructor(options: LottieClipOptions);
54
123
  init(layerId: string): Promise<void>;
55
124
  private initProperties;
56
- setProperty(property: string, value: unknown): void;
57
- getProperties(): Record<string, {
58
- name: string;
59
- type: PropertyTypeEnum;
125
+ setProperty(propertyId: string, value: unknown): void;
126
+ getProperties(): Map<string, {
127
+ type: LottiePropertyTypeEnum;
128
+ id: string;
129
+ path: string;
60
130
  label: string;
131
+ group?: string | undefined;
61
132
  value?: unknown;
62
133
  }>;
63
- getProperty(property: string): {
64
- name: string;
65
- type: PropertyTypeEnum;
134
+ getProperty(propertyId: string): {
135
+ type: LottiePropertyTypeEnum;
136
+ id: string;
137
+ path: string;
66
138
  label: string;
139
+ group?: string | undefined;
67
140
  value?: unknown;
68
- };
69
- getPropertyValue(property: string): any;
141
+ } | undefined;
142
+ getPropertyValue(propertyId: string): any;
70
143
  preload(currentTime: number): void;
71
144
  updateVisibility(currentTime: number): void;
72
145
  private getGlobalTimeToClipTime;
@@ -80,8 +153,8 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
80
153
  replaceFillColor(layerId: string | number, color: Array<number>): void;
81
154
  replaceImage(layerId: string | number, url: string): void;
82
155
  serialize(): {
83
- id: string;
84
156
  type: string;
157
+ id: string;
85
158
  subtitlesOffset: number;
86
159
  startTime: number;
87
160
  duration: number;
@@ -113,7 +186,7 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
113
186
  style?: unknown;
114
187
  mediaDataId?: string | undefined;
115
188
  subtitlesId?: string | undefined;
116
- wrapMode?: import('../../../../types').WrapModeEnum | undefined;
189
+ wrapMode?: WrapModeEnum | undefined;
117
190
  animationController?: {
118
191
  animationDataIn?: {
119
192
  name: string;
@@ -187,12 +260,19 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
187
260
  }[] | undefined;
188
261
  assetsUrl?: string | undefined;
189
262
  propertiesUrl?: string | undefined;
190
- properties?: Record<string, {
191
- name: string;
192
- type: PropertyTypeEnum;
263
+ groups?: {
264
+ id: string;
193
265
  label: string;
266
+ }[] | undefined;
267
+ properties?: {
268
+ type: LottiePropertyTypeEnum;
269
+ id: string;
270
+ path: string;
271
+ label: string;
272
+ group?: string | undefined;
194
273
  value?: unknown;
195
- }> | undefined;
274
+ }[] | undefined;
196
275
  };
276
+ private static tryMigrateToV3;
197
277
  static deserialize(payload: object): LottieClip;
198
278
  }
@@ -12,8 +12,8 @@ export declare class ShapeClip extends Clip<ShapeSprite, ShapeStyle> {
12
12
  clone(): ShapeClip;
13
13
  destroy(): void;
14
14
  serialize(): {
15
- id: string;
16
15
  type: string;
16
+ id: string;
17
17
  subtitlesOffset: number;
18
18
  startTime: number;
19
19
  duration: number;
@@ -20,9 +20,9 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
20
20
  clone(): TextClip;
21
21
  destroy(): void;
22
22
  serialize(): {
23
+ type: string;
23
24
  text: string;
24
25
  id: string;
25
- type: string;
26
26
  subtitlesOffset: number;
27
27
  startTime: number;
28
28
  duration: number;
@@ -66,8 +66,8 @@ export declare class VideoClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>>
66
66
  destroy(): void;
67
67
  clone(): VideoClip;
68
68
  serialize(): {
69
- id: string;
70
69
  type: string;
70
+ id: string;
71
71
  mediaDataId: string;
72
72
  subtitlesOffset: number;
73
73
  startTime: number;
@@ -2,7 +2,7 @@ import { FFmpeg as RootFFmpeg } from '../../libs/ffmpeg';
2
2
  import { FFMessageLoadConfig } from '../../libs/ffmpeg/types';
3
3
  declare class FFmpeg {
4
4
  private static instance;
5
- private ffmpeg;
5
+ private readonly ffmpeg;
6
6
  private coreURL;
7
7
  private wasmURL;
8
8
  private constructor();
@@ -25,18 +25,18 @@ export declare const LayerSchema: z.ZodObject<{
25
25
  transitionSrc: z.ZodString;
26
26
  type: z.ZodLiteral<"transition">;
27
27
  }, "strip", z.ZodTypeAny, {
28
+ type: "transition";
28
29
  name: string;
29
30
  id: string;
30
- type: "transition";
31
31
  startClipId: string;
32
32
  endClipId: string;
33
33
  inDuration: number;
34
34
  outDuration: number;
35
35
  transitionSrc: string;
36
36
  }, {
37
+ type: "transition";
37
38
  name: string;
38
39
  id: string;
39
- type: "transition";
40
40
  startClipId: string;
41
41
  endClipId: string;
42
42
  inDuration: number;
@@ -46,9 +46,9 @@ export declare const LayerSchema: z.ZodObject<{
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  id: string;
48
48
  transitions: {
49
+ type: "transition";
49
50
  name: string;
50
51
  id: string;
51
- type: "transition";
52
52
  startClipId: string;
53
53
  endClipId: string;
54
54
  inDuration: number;
@@ -62,9 +62,9 @@ export declare const LayerSchema: z.ZodObject<{
62
62
  }, {
63
63
  id: string;
64
64
  transitions: {
65
+ type: "transition";
65
66
  name: string;
66
67
  id: string;
67
- type: "transition";
68
68
  startClipId: string;
69
69
  endClipId: string;
70
70
  inDuration: number;
@@ -118,9 +118,9 @@ export declare class Layer {
118
118
  serialize(): {
119
119
  id: string;
120
120
  transitions: {
121
+ type: "transition";
121
122
  name: string;
122
123
  id: string;
123
- type: "transition";
124
124
  startClipId: string;
125
125
  endClipId: string;
126
126
  inDuration: number;
@@ -11,16 +11,16 @@ export declare const LibrarySchema: z.ZodObject<{
11
11
  mimeType: z.ZodOptional<z.ZodString>;
12
12
  customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
13
13
  }, "strip", z.ZodTypeAny, {
14
- id: string;
15
14
  type: string;
15
+ id: string;
16
16
  filename: string;
17
17
  permanentUrl?: string | undefined;
18
18
  hash?: string | undefined;
19
19
  mimeType?: string | undefined;
20
20
  customData?: [string, unknown][] | undefined;
21
21
  }, {
22
- id: string;
23
22
  type: string;
23
+ id: string;
24
24
  filename: string;
25
25
  permanentUrl?: string | undefined;
26
26
  hash?: string | undefined;
@@ -75,8 +75,8 @@ export declare const LibrarySchema: z.ZodObject<{
75
75
  }[];
76
76
  }[];
77
77
  media: {
78
- id: string;
79
78
  type: string;
79
+ id: string;
80
80
  filename: string;
81
81
  permanentUrl?: string | undefined;
82
82
  hash?: string | undefined;
@@ -95,8 +95,8 @@ export declare const LibrarySchema: z.ZodObject<{
95
95
  }[];
96
96
  }[];
97
97
  media: {
98
- id: string;
99
98
  type: string;
99
+ id: string;
100
100
  filename: string;
101
101
  permanentUrl?: string | undefined;
102
102
  hash?: string | undefined;
@@ -133,8 +133,8 @@ export declare class Library {
133
133
  }[];
134
134
  }[];
135
135
  media: {
136
- id: string;
137
136
  type: string;
137
+ id: string;
138
138
  filename: string;
139
139
  permanentUrl?: string | undefined;
140
140
  hash?: string | undefined;
@@ -10,16 +10,16 @@ export declare const MediaDataSchema: z.ZodObject<{
10
10
  mimeType: z.ZodOptional<z.ZodString>;
11
11
  customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
12
12
  }, "strip", z.ZodTypeAny, {
13
- id: string;
14
13
  type: string;
14
+ id: string;
15
15
  filename: string;
16
16
  permanentUrl?: string | undefined;
17
17
  hash?: string | undefined;
18
18
  mimeType?: string | undefined;
19
19
  customData?: [string, unknown][] | undefined;
20
20
  }, {
21
- id: string;
22
21
  type: string;
22
+ id: string;
23
23
  filename: string;
24
24
  permanentUrl?: string | undefined;
25
25
  hash?: string | undefined;
@@ -102,8 +102,8 @@ export declare class MediaData {
102
102
  getHash(): string | undefined;
103
103
  waitForStatus(status: MediaDataStatus, checkIntervalMS?: number, timeoutMS?: number): Promise<boolean>;
104
104
  serialize(): {
105
- id: string;
106
105
  type: string;
106
+ id: string;
107
107
  filename: string;
108
108
  permanentUrl?: string | undefined;
109
109
  hash?: string | undefined;
@@ -1,8 +1,12 @@
1
1
  import { ExportOptions, ExportResult } from ".";
2
2
  export declare class Renderer {
3
3
  private rendering;
4
+ private isBackgrounded;
4
5
  private watermarkSprite;
5
6
  constructor();
7
+ destroy(): void;
8
+ private visibilityChangeHandler;
9
+ private residentTimeout;
6
10
  isRendering(): boolean;
7
11
  private generateAudioMixWorker;
8
12
  private generateAudioMix;
@@ -223,7 +223,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
223
223
  scale: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
224
224
  }, "strip", z.ZodTypeAny, {
225
225
  scale: number;
226
- textMode: "partial" | "full";
226
+ textMode: "full" | "partial";
227
227
  highlightAnimation: HighlightAnimationEnum;
228
228
  highlightAnimationSpeed: number;
229
229
  mainTextStyle: {
@@ -257,7 +257,7 @@ export declare const SubtitlesManagerSchema: z.ZodObject<{
257
257
  };
258
258
  position?: [number, number] | undefined;
259
259
  }, {
260
- textMode: "partial" | "full";
260
+ textMode: "full" | "partial";
261
261
  highlightAnimation: HighlightAnimationEnum;
262
262
  highlightAnimationSpeed: number;
263
263
  mainTextStyle: {
@@ -327,7 +327,7 @@ export declare class SubtitlesManager {
327
327
  getScale(): number;
328
328
  setTextMode(mode: TextModeType): void;
329
329
  setMainTextStyle(style: Partial<MainTextStyle>, reset?: boolean): void;
330
- getTextMode(): "partial" | "full";
330
+ getTextMode(): "full" | "partial";
331
331
  getMainTextStyle(): {
332
332
  color: string;
333
333
  strokeColor: string;
@@ -376,7 +376,7 @@ export declare class SubtitlesManager {
376
376
  destroy(): void;
377
377
  serialize(): {
378
378
  scale: number;
379
- textMode: "partial" | "full";
379
+ textMode: "full" | "partial";
380
380
  highlightAnimation: HighlightAnimationEnum;
381
381
  highlightAnimationSpeed: number;
382
382
  mainTextStyle: {
@@ -25,18 +25,18 @@ export declare const TimelineSchema: z.ZodObject<{
25
25
  transitionSrc: z.ZodString;
26
26
  type: z.ZodLiteral<"transition">;
27
27
  }, "strip", z.ZodTypeAny, {
28
+ type: "transition";
28
29
  name: string;
29
30
  id: string;
30
- type: "transition";
31
31
  startClipId: string;
32
32
  endClipId: string;
33
33
  inDuration: number;
34
34
  outDuration: number;
35
35
  transitionSrc: string;
36
36
  }, {
37
+ type: "transition";
37
38
  name: string;
38
39
  id: string;
39
- type: "transition";
40
40
  startClipId: string;
41
41
  endClipId: string;
42
42
  inDuration: number;
@@ -46,9 +46,9 @@ export declare const TimelineSchema: z.ZodObject<{
46
46
  }, "strip", z.ZodTypeAny, {
47
47
  id: string;
48
48
  transitions: {
49
+ type: "transition";
49
50
  name: string;
50
51
  id: string;
51
- type: "transition";
52
52
  startClipId: string;
53
53
  endClipId: string;
54
54
  inDuration: number;
@@ -62,9 +62,9 @@ export declare const TimelineSchema: z.ZodObject<{
62
62
  }, {
63
63
  id: string;
64
64
  transitions: {
65
+ type: "transition";
65
66
  name: string;
66
67
  id: string;
67
- type: "transition";
68
68
  startClipId: string;
69
69
  endClipId: string;
70
70
  inDuration: number;
@@ -83,9 +83,9 @@ export declare const TimelineSchema: z.ZodObject<{
83
83
  layers: {
84
84
  id: string;
85
85
  transitions: {
86
+ type: "transition";
86
87
  name: string;
87
88
  id: string;
88
- type: "transition";
89
89
  startClipId: string;
90
90
  endClipId: string;
91
91
  inDuration: number;
@@ -104,9 +104,9 @@ export declare const TimelineSchema: z.ZodObject<{
104
104
  layers: {
105
105
  id: string;
106
106
  transitions: {
107
+ type: "transition";
107
108
  name: string;
108
109
  id: string;
109
- type: "transition";
110
110
  startClipId: string;
111
111
  endClipId: string;
112
112
  inDuration: number;
@@ -167,9 +167,9 @@ export declare class Timeline {
167
167
  layers: {
168
168
  id: string;
169
169
  transitions: {
170
+ type: "transition";
170
171
  name: string;
171
172
  id: string;
172
- type: "transition";
173
173
  startClipId: string;
174
174
  endClipId: string;
175
175
  inDuration: number;
@@ -11,18 +11,18 @@ export declare const TransitionSchema: z.ZodObject<{
11
11
  transitionSrc: z.ZodString;
12
12
  type: z.ZodLiteral<"transition">;
13
13
  }, "strip", z.ZodTypeAny, {
14
+ type: "transition";
14
15
  name: string;
15
16
  id: string;
16
- type: "transition";
17
17
  startClipId: string;
18
18
  endClipId: string;
19
19
  inDuration: number;
20
20
  outDuration: number;
21
21
  transitionSrc: string;
22
22
  }, {
23
+ type: "transition";
23
24
  name: string;
24
25
  id: string;
25
- type: "transition";
26
26
  startClipId: string;
27
27
  endClipId: string;
28
28
  inDuration: number;
@@ -77,9 +77,9 @@ export declare class Transition {
77
77
  destroy(): void;
78
78
  update(transitionProgress: number): void;
79
79
  serialize(): {
80
+ type: "transition";
80
81
  name: string;
81
82
  id: string;
82
- type: "transition";
83
83
  startClipId: string;
84
84
  endClipId: string;
85
85
  inDuration: number;
@@ -9,14 +9,11 @@ export declare enum ClipTypeEnum {
9
9
  SHAPE = "shape",
10
10
  LOTTIE = "lottie",
11
11
  SUBTITLES = "subtitles",
12
- CUSTOM = "custom",
13
- AV = "av",
14
- COLOR = "color",
15
- GRADIENT = "gradient"
12
+ CUSTOM = "custom"
16
13
  }
17
14
  export declare enum WrapModeEnum {
18
15
  CLAMP = "clamp",
19
16
  REPEAT = "repeat",
20
- PING_PONG = "ping_ping",
17
+ PING_PONG = "ping_pong",
21
18
  EMPTY = "empty"
22
19
  }