@rendley/sdk 1.12.25 → 1.12.26

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.
@@ -7,6 +7,7 @@ import { Effect, EffectSchema } from "../effect";
7
7
  import { Filter, FilterSchema } from "../filter";
8
8
  import { MaskFilter, MaskFilterSchema, MaskWrapModeEnum } from "../filter/MaskFilter";
9
9
  import { BlendModeEnum, FitStyleEnum, WrapModeEnum } from '../../types/clip.types';
10
+ import { AnimationData } from '../../utils/animation/animation';
10
11
  export declare enum ClipState {
11
12
  Idle = 0,
12
13
  Preloading = 1,
@@ -1108,6 +1109,99 @@ export declare const ClipSchema: z.ZodObject<{
1108
1109
  wrapMode?: MaskWrapModeEnum | undefined;
1109
1110
  }[] | undefined;
1110
1111
  }>;
1112
+ export declare class AnimationClass {
1113
+ private readonly refClip;
1114
+ private animationControllerIn?;
1115
+ private animationControllerLoop?;
1116
+ private animationControllerOut?;
1117
+ private lastAnimationUpdateTime?;
1118
+ private animationInDuration;
1119
+ private animationOutDuration;
1120
+ private animationLoopCount;
1121
+ private loopSmoothing;
1122
+ constructor(refClip: Clip);
1123
+ private refresh;
1124
+ private recordCurrentAnimationStateUndo;
1125
+ setAnimation(type: AnimationTypeEnum, animationData: AnimationData, duration?: number): void;
1126
+ loadAnimation(type: AnimationTypeEnum, url: string, duration?: number): Promise<void>;
1127
+ removeAnimation(type: AnimationTypeEnum): void;
1128
+ getAnimationData(type: AnimationTypeEnum): AnimationData | undefined;
1129
+ getAnimationDuration(type: AnimationTypeEnum): number;
1130
+ setAnimationDuration(type: AnimationTypeEnum, duration: number): void;
1131
+ setLoopCount(count: number): void;
1132
+ getLoopCount(): number;
1133
+ setLoopSmoothing(smoothing: number): void;
1134
+ getLoopSmoothing(): number;
1135
+ getAnimatedProperties(): Set<string>;
1136
+ update(currentTime: number, forceUpdate?: boolean): void;
1137
+ serialize(): {
1138
+ animationInDuration: number;
1139
+ animationOutDuration: number;
1140
+ animationLoopCount: number;
1141
+ loopSmoothing: number;
1142
+ animationDataIn?: {
1143
+ name: string;
1144
+ inOutOfRange: import('../../index').OutOfRangeEnum;
1145
+ outOutOfRange: import('../../index').OutOfRangeEnum;
1146
+ propertyAnimations: {
1147
+ inOutOfRange: import('../../index').OutOfRangeEnum;
1148
+ outOutOfRange: import('../../index').OutOfRangeEnum;
1149
+ property: string;
1150
+ keyframes: {
1151
+ value: string | number;
1152
+ time: number;
1153
+ easing: import('../../index').EasingEnum;
1154
+ space: import('../../index').AnimationSpaceEnum;
1155
+ relativeProperty?: string | undefined;
1156
+ }[];
1157
+ }[];
1158
+ speed?: number | undefined;
1159
+ offset?: number | undefined;
1160
+ amplification?: number | undefined;
1161
+ } | undefined;
1162
+ animationDataOut?: {
1163
+ name: string;
1164
+ inOutOfRange: import('../../index').OutOfRangeEnum;
1165
+ outOutOfRange: import('../../index').OutOfRangeEnum;
1166
+ propertyAnimations: {
1167
+ inOutOfRange: import('../../index').OutOfRangeEnum;
1168
+ outOutOfRange: import('../../index').OutOfRangeEnum;
1169
+ property: string;
1170
+ keyframes: {
1171
+ value: string | number;
1172
+ time: number;
1173
+ easing: import('../../index').EasingEnum;
1174
+ space: import('../../index').AnimationSpaceEnum;
1175
+ relativeProperty?: string | undefined;
1176
+ }[];
1177
+ }[];
1178
+ speed?: number | undefined;
1179
+ offset?: number | undefined;
1180
+ amplification?: number | undefined;
1181
+ } | undefined;
1182
+ animationDataLoop?: {
1183
+ name: string;
1184
+ inOutOfRange: import('../../index').OutOfRangeEnum;
1185
+ outOutOfRange: import('../../index').OutOfRangeEnum;
1186
+ propertyAnimations: {
1187
+ inOutOfRange: import('../../index').OutOfRangeEnum;
1188
+ outOutOfRange: import('../../index').OutOfRangeEnum;
1189
+ property: string;
1190
+ keyframes: {
1191
+ value: string | number;
1192
+ time: number;
1193
+ easing: import('../../index').EasingEnum;
1194
+ space: import('../../index').AnimationSpaceEnum;
1195
+ relativeProperty?: string | undefined;
1196
+ }[];
1197
+ }[];
1198
+ speed?: number | undefined;
1199
+ offset?: number | undefined;
1200
+ amplification?: number | undefined;
1201
+ } | undefined;
1202
+ };
1203
+ deserialize(payload: object): void;
1204
+ }
1111
1205
  export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipStyle = ClipStyle> {
1112
1206
  id: string;
1113
1207
  protected name: string;
@@ -1136,14 +1230,13 @@ export declare class Clip<T extends PIXI.Sprite = PIXI.Sprite, K extends ClipSty
1136
1230
  protected transitionOutId: string | null;
1137
1231
  protected layerId: string;
1138
1232
  protected clipMasksLazyDeserialize: z.infer<typeof MaskFilterSchema>[];
1139
- private readonly AnimationClass;
1140
- readonly animationController: InstanceType<typeof this.AnimationClass>;
1233
+ animationController: AnimationClass;
1141
1234
  constructor(options: ClipOptions);
1142
1235
  init(layerId: string): Promise<void>;
1143
1236
  resetAllAnimationProperties(): void;
1144
- protected setAnimationPropertyValue(property: string, value: any): void;
1145
- protected getAnimationPropertyValue(property: string): number | string;
1146
- protected resetAnimationPropertyValue(property: string): void;
1237
+ setAnimationPropertyValue(property: string, value: any): void;
1238
+ getAnimationPropertyValue(property: string): number | string;
1239
+ resetAnimationPropertyValue(property: string): void;
1147
1240
  setCustomData(key: string, value: unknown, overwrite?: boolean): boolean;
1148
1241
  getCustomData(key: string): unknown;
1149
1242
  hasCustomData(key: string): boolean;
@@ -1,5 +1,10 @@
1
1
  import * as PIXI from "pixi.js";
2
2
  import { z } from "zod";
3
+ export declare enum FitToScreenEnum {
4
+ INSIDE = "inside",
5
+ OUTSIDE = "outside",
6
+ STRETCH = "stretch"
7
+ }
3
8
  export interface ClipStyleOptions {
4
9
  clipId: string;
5
10
  mediaDataId?: string;
@@ -92,6 +97,7 @@ export declare class ClipStyle<T extends PIXI.Sprite = PIXI.Sprite> {
92
97
  private lastCropOffset;
93
98
  private lastZoom;
94
99
  constructor(options: ClipStyleOptions);
100
+ fitToScreen(fitStyle: FitToScreenEnum, center?: boolean, margin?: number): void;
95
101
  positionToCenter(): void;
96
102
  scaleDownToFit(): void;
97
103
  replaceMediaDataId(mediaDataId: string): void;
@@ -42,14 +42,14 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
42
42
  dropShadowBlur: number;
43
43
  dropShadowColor: string;
44
44
  dropShadowDistance: number;
45
- align: "center" | "left" | "right" | "justify";
45
+ align: "left" | "center" | "right" | "justify";
46
46
  breakWords: boolean;
47
47
  fontVariant: "normal" | "small-caps";
48
48
  stroke: string;
49
49
  whiteSpace: "normal" | "pre" | "pre-line";
50
50
  wordWrap: boolean;
51
51
  }, {
52
- align?: "center" | "left" | "right" | "justify" | undefined;
52
+ align?: "left" | "center" | "right" | "justify" | undefined;
53
53
  breakWords?: boolean | undefined;
54
54
  dropShadow?: boolean | undefined;
55
55
  dropShadowAlpha?: number | undefined;
@@ -105,7 +105,7 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
105
105
  dropShadowBlur: number;
106
106
  dropShadowColor: string;
107
107
  dropShadowDistance: number;
108
- align: "center" | "left" | "right" | "justify";
108
+ align: "left" | "center" | "right" | "justify";
109
109
  breakWords: boolean;
110
110
  fontVariant: "normal" | "small-caps";
111
111
  stroke: string;
@@ -152,7 +152,7 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
152
152
  dropShadowBlur: number;
153
153
  dropShadowColor: string;
154
154
  dropShadowDistance: number;
155
- align: "center" | "left" | "right" | "justify";
155
+ align: "left" | "center" | "right" | "justify";
156
156
  breakWords: boolean;
157
157
  fontVariant: "normal" | "small-caps";
158
158
  stroke: string;
@@ -2,7 +2,16 @@ import { z } from "zod";
2
2
  import { ShapeTypeEnum } from '../../../../index';
3
3
  import { ShapeSprite } from "./ShapeSprite";
4
4
  import { ClipStyle, ClipStyleOptions } from "../../ClipStyle";
5
- interface ShapeClipStyleOptions extends ClipStyleOptions {
5
+ export interface ShapePoint {
6
+ x: number;
7
+ y: number;
8
+ }
9
+ export interface ShapeBezierNode {
10
+ controlPoint1: ShapePoint;
11
+ controlPoint2: ShapePoint;
12
+ point: ShapePoint;
13
+ }
14
+ export interface ShapeClipStyleOptions extends ClipStyleOptions {
6
15
  shape: ShapeTypeEnum;
7
16
  fillColor?: string;
8
17
  strokeColor?: string;
@@ -14,7 +23,77 @@ interface ShapeClipStyleOptions extends ClipStyleOptions {
14
23
  nrPoints?: number;
15
24
  innerRadius?: number;
16
25
  outerRadius?: number;
26
+ points?: (ShapePoint | null)[];
27
+ bezierNodes?: (ShapeBezierNode | null)[];
17
28
  }
29
+ export declare const ShapePointSchema: z.ZodObject<{
30
+ x: z.ZodNumber;
31
+ y: z.ZodNumber;
32
+ }, "strip", z.ZodTypeAny, {
33
+ x: number;
34
+ y: number;
35
+ }, {
36
+ x: number;
37
+ y: number;
38
+ }>;
39
+ export declare const ShapeBezierNodeSchema: z.ZodObject<{
40
+ controlPoint1: z.ZodObject<{
41
+ x: z.ZodNumber;
42
+ y: z.ZodNumber;
43
+ }, "strip", z.ZodTypeAny, {
44
+ x: number;
45
+ y: number;
46
+ }, {
47
+ x: number;
48
+ y: number;
49
+ }>;
50
+ controlPoint2: z.ZodObject<{
51
+ x: z.ZodNumber;
52
+ y: z.ZodNumber;
53
+ }, "strip", z.ZodTypeAny, {
54
+ x: number;
55
+ y: number;
56
+ }, {
57
+ x: number;
58
+ y: number;
59
+ }>;
60
+ point: z.ZodObject<{
61
+ x: z.ZodNumber;
62
+ y: z.ZodNumber;
63
+ }, "strip", z.ZodTypeAny, {
64
+ x: number;
65
+ y: number;
66
+ }, {
67
+ x: number;
68
+ y: number;
69
+ }>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ controlPoint1: {
72
+ x: number;
73
+ y: number;
74
+ };
75
+ controlPoint2: {
76
+ x: number;
77
+ y: number;
78
+ };
79
+ point: {
80
+ x: number;
81
+ y: number;
82
+ };
83
+ }, {
84
+ controlPoint1: {
85
+ x: number;
86
+ y: number;
87
+ };
88
+ controlPoint2: {
89
+ x: number;
90
+ y: number;
91
+ };
92
+ point: {
93
+ x: number;
94
+ y: number;
95
+ };
96
+ }>;
18
97
  export declare const ShapeStyleSchema: z.ZodObject<{
19
98
  scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
20
99
  width: z.ZodOptional<z.ZodNumber>;
@@ -41,6 +120,74 @@ export declare const ShapeStyleSchema: z.ZodObject<{
41
120
  nrPoints: z.ZodOptional<z.ZodNumber>;
42
121
  innerRadius: z.ZodOptional<z.ZodNumber>;
43
122
  outerRadius: z.ZodOptional<z.ZodNumber>;
123
+ points: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
124
+ x: z.ZodNumber;
125
+ y: z.ZodNumber;
126
+ }, "strip", z.ZodTypeAny, {
127
+ x: number;
128
+ y: number;
129
+ }, {
130
+ x: number;
131
+ y: number;
132
+ }>, z.ZodNull]>, "many">>;
133
+ bezierNodes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
134
+ controlPoint1: z.ZodObject<{
135
+ x: z.ZodNumber;
136
+ y: z.ZodNumber;
137
+ }, "strip", z.ZodTypeAny, {
138
+ x: number;
139
+ y: number;
140
+ }, {
141
+ x: number;
142
+ y: number;
143
+ }>;
144
+ controlPoint2: z.ZodObject<{
145
+ x: z.ZodNumber;
146
+ y: z.ZodNumber;
147
+ }, "strip", z.ZodTypeAny, {
148
+ x: number;
149
+ y: number;
150
+ }, {
151
+ x: number;
152
+ y: number;
153
+ }>;
154
+ point: z.ZodObject<{
155
+ x: z.ZodNumber;
156
+ y: z.ZodNumber;
157
+ }, "strip", z.ZodTypeAny, {
158
+ x: number;
159
+ y: number;
160
+ }, {
161
+ x: number;
162
+ y: number;
163
+ }>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ controlPoint1: {
166
+ x: number;
167
+ y: number;
168
+ };
169
+ controlPoint2: {
170
+ x: number;
171
+ y: number;
172
+ };
173
+ point: {
174
+ x: number;
175
+ y: number;
176
+ };
177
+ }, {
178
+ controlPoint1: {
179
+ x: number;
180
+ y: number;
181
+ };
182
+ controlPoint2: {
183
+ x: number;
184
+ y: number;
185
+ };
186
+ point: {
187
+ x: number;
188
+ y: number;
189
+ };
190
+ }>, z.ZodNull]>, "many">>;
44
191
  }, "strip", z.ZodTypeAny, {
45
192
  shape: ShapeTypeEnum;
46
193
  scale: [number, number];
@@ -67,6 +214,24 @@ export declare const ShapeStyleSchema: z.ZodObject<{
67
214
  nrPoints?: number | undefined;
68
215
  innerRadius?: number | undefined;
69
216
  outerRadius?: number | undefined;
217
+ points?: ({
218
+ x: number;
219
+ y: number;
220
+ } | null)[] | undefined;
221
+ bezierNodes?: ({
222
+ controlPoint1: {
223
+ x: number;
224
+ y: number;
225
+ };
226
+ controlPoint2: {
227
+ x: number;
228
+ y: number;
229
+ };
230
+ point: {
231
+ x: number;
232
+ y: number;
233
+ };
234
+ } | null)[] | undefined;
70
235
  }, {
71
236
  scale: [number, number];
72
237
  alpha: number;
@@ -93,6 +258,24 @@ export declare const ShapeStyleSchema: z.ZodObject<{
93
258
  nrPoints?: number | undefined;
94
259
  innerRadius?: number | undefined;
95
260
  outerRadius?: number | undefined;
261
+ points?: ({
262
+ x: number;
263
+ y: number;
264
+ } | null)[] | undefined;
265
+ bezierNodes?: ({
266
+ controlPoint1: {
267
+ x: number;
268
+ y: number;
269
+ };
270
+ controlPoint2: {
271
+ x: number;
272
+ y: number;
273
+ };
274
+ point: {
275
+ x: number;
276
+ y: number;
277
+ };
278
+ } | null)[] | undefined;
96
279
  }>;
97
280
  export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
98
281
  protected shape: ShapeTypeEnum;
@@ -106,6 +289,8 @@ export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
106
289
  protected nrPoints: number;
107
290
  protected innerRadius: number;
108
291
  protected outerRadius: number;
292
+ protected points: (ShapePoint | null)[];
293
+ protected bezierNodes: (ShapeBezierNode | null)[];
109
294
  constructor(options: ShapeClipStyleOptions);
110
295
  setShape(shape: ShapeTypeEnum): void;
111
296
  getShape(): ShapeTypeEnum;
@@ -128,6 +313,10 @@ export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
128
313
  getInnerRadius(): number;
129
314
  setOuterRadius(outerRadius: number): void;
130
315
  getOuterRadius(): number;
316
+ setPoints(points: (ShapePoint | null)[]): void;
317
+ getPoints(): (ShapePoint | null)[];
318
+ setBezierNodes(bezierNodes: (ShapeBezierNode | null)[]): void;
319
+ getBezierNodes(): (ShapeBezierNode | null)[];
131
320
  setScale(scaleX: number, scaleY: number): void;
132
321
  update(container: ShapeSprite, redraw?: boolean): void;
133
322
  serialize(): {
@@ -156,7 +345,24 @@ export declare class ShapeStyle extends ClipStyle<ShapeSprite> {
156
345
  nrPoints?: number | undefined;
157
346
  innerRadius?: number | undefined;
158
347
  outerRadius?: number | undefined;
348
+ points?: ({
349
+ x: number;
350
+ y: number;
351
+ } | null)[] | undefined;
352
+ bezierNodes?: ({
353
+ controlPoint1: {
354
+ x: number;
355
+ y: number;
356
+ };
357
+ controlPoint2: {
358
+ x: number;
359
+ y: number;
360
+ };
361
+ point: {
362
+ x: number;
363
+ y: number;
364
+ };
365
+ } | null)[] | undefined;
159
366
  };
160
367
  static deserialize(payload: object): ShapeStyle;
161
368
  }
162
- export {};
@@ -3,5 +3,7 @@ export declare enum ShapeTypeEnum {
3
3
  ELLIPSE = "ellipse",
4
4
  TRIANGLE = "triangle",
5
5
  CIRCLE = "circle",
6
- STAR = "star"
6
+ STAR = "star",
7
+ POLYGON = "polygon",
8
+ BEZIER = "bezier"
7
9
  }
@@ -14,9 +14,9 @@ export declare class TextClip extends Clip<TextSprite, TextStyle> {
14
14
  seek(currentTime: number): void;
15
15
  preload(currentTime: number): void;
16
16
  update(currentTime: number): void;
17
- protected setAnimationPropertyValue(property: string, value: any): void;
18
- protected getAnimationPropertyValue(property: string): number | string;
19
- protected resetAnimationPropertyValue(property: string): void;
17
+ setAnimationPropertyValue(property: string, value: any): void;
18
+ getAnimationPropertyValue(property: string): number | string;
19
+ resetAnimationPropertyValue(property: string): void;
20
20
  clone(): TextClip;
21
21
  destroy(): void;
22
22
  serialize(): {
@@ -73,7 +73,7 @@ export declare const TextStyleSchema: z.ZodObject<{
73
73
  fontSize: number;
74
74
  fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
75
75
  fontFamily: string;
76
- textAlign: "center" | "left" | "right" | "justify";
76
+ textAlign: "left" | "center" | "right" | "justify";
77
77
  fontStyle: "normal" | "italic" | "oblique";
78
78
  backgroundColor: string | null;
79
79
  strokeColor: string;
@@ -102,7 +102,7 @@ export declare const TextStyleSchema: z.ZodObject<{
102
102
  fontSize: number;
103
103
  fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
104
104
  fontFamily: string;
105
- textAlign: "center" | "left" | "right" | "justify";
105
+ textAlign: "left" | "center" | "right" | "justify";
106
106
  fontStyle: "normal" | "italic" | "oblique";
107
107
  backgroundColor: string | null;
108
108
  width?: number | undefined;
@@ -179,7 +179,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
179
179
  setFontFamily(fontFamily: string): void;
180
180
  getFontFamily(): string;
181
181
  setTextAlign(textAlign: TextStyleAlign): void;
182
- getTextAlign(): "center" | "left" | "right" | "justify";
182
+ getTextAlign(): "left" | "center" | "right" | "justify";
183
183
  setFontStyle(fontStyle: TextStyleFontStyle): void;
184
184
  getFontStyle(): "normal" | "italic" | "oblique";
185
185
  setBackgroundColor(backgroundColor: string | null): void;
@@ -207,7 +207,7 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
207
207
  fontSize: number;
208
208
  fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
209
209
  fontFamily: string;
210
- textAlign: "center" | "left" | "right" | "justify";
210
+ textAlign: "left" | "center" | "right" | "justify";
211
211
  fontStyle: "normal" | "italic" | "oblique";
212
212
  backgroundColor: string | null;
213
213
  strokeColor: string;
@@ -290,6 +290,7 @@ export declare const LibrarySchema: z.ZodObject<{
290
290
  mipmap?: import('../../index').InputTextureMipmapMode | undefined;
291
291
  }[] | undefined;
292
292
  }>, "many">;
293
+ customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
293
294
  }, "strip", z.ZodTypeAny, {
294
295
  subtitles: {
295
296
  id: string;
@@ -363,6 +364,7 @@ export declare const LibrarySchema: z.ZodObject<{
363
364
  customData?: [string, unknown][] | undefined;
364
365
  placeholderClipIds?: string[] | undefined;
365
366
  }[];
367
+ customData?: [string, unknown][] | undefined;
366
368
  }, {
367
369
  subtitles: {
368
370
  id: string;
@@ -436,6 +438,7 @@ export declare const LibrarySchema: z.ZodObject<{
436
438
  customData?: [string, unknown][] | undefined;
437
439
  placeholderClipIds?: string[] | undefined;
438
440
  }[];
441
+ customData?: [string, unknown][] | undefined;
439
442
  }>;
440
443
  export declare class Library {
441
444
  media: Record<string, MediaData>;
@@ -443,6 +446,7 @@ export declare class Library {
443
446
  effects: Record<string, EffectData>;
444
447
  filters: Record<string, FilterData>;
445
448
  transitions: Record<string, TransitionData>;
449
+ protected customData?: Map<string, unknown>;
446
450
  builtInEffects: Record<string, EffectData>;
447
451
  private filmstripWorkers;
448
452
  private filmstripQueue;
@@ -503,6 +507,12 @@ export declare class Library {
503
507
  removeUnusedFilters(): void;
504
508
  removeUnusedTransitions(): void;
505
509
  removeUnusedAssets(): Promise<void>;
510
+ setCustomData(key: string, value: unknown, overwrite?: boolean): boolean;
511
+ getCustomData(key: string): unknown;
512
+ hasCustomData(key: string): boolean;
513
+ clearAllCustomData(): void;
514
+ setAllCustomData(data: Map<string, unknown>): void;
515
+ getAllCustomData(): Map<string, unknown> | undefined;
506
516
  isProcessing(): boolean;
507
517
  serialize(): {
508
518
  subtitles: {
@@ -577,6 +587,7 @@ export declare class Library {
577
587
  customData?: [string, unknown][] | undefined;
578
588
  placeholderClipIds?: string[] | undefined;
579
589
  }[];
590
+ customData?: [string, unknown][] | undefined;
580
591
  };
581
592
  static deserialize(data: object): Library;
582
593
  }
@@ -87,6 +87,7 @@ export declare const TimelineSchema: z.ZodObject<{
87
87
  }>, "many">;
88
88
  fitDuration: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
89
89
  volume: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
90
+ customData: z.ZodOptional<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodUnknown], null>, "many">>;
90
91
  }, "strip", z.ZodTypeAny, {
91
92
  startTime: number;
92
93
  volume: number;
@@ -111,6 +112,7 @@ export declare const TimelineSchema: z.ZodObject<{
111
112
  customData?: [string, unknown][] | undefined;
112
113
  }[];
113
114
  fitDuration: number;
115
+ customData?: [string, unknown][] | undefined;
114
116
  }, {
115
117
  startTime: number;
116
118
  fps: number;
@@ -135,6 +137,7 @@ export declare const TimelineSchema: z.ZodObject<{
135
137
  }[];
136
138
  fitDuration?: number | undefined;
137
139
  volume?: number | undefined;
140
+ customData?: [string, unknown][] | undefined;
138
141
  }>;
139
142
  export declare class Timeline {
140
143
  private startTime;
@@ -142,6 +145,7 @@ export declare class Timeline {
142
145
  layersOrder: string[];
143
146
  fps: number;
144
147
  volume: number;
148
+ protected customData?: Map<string, unknown>;
145
149
  currentTime: number;
146
150
  isPlaying: boolean;
147
151
  private justStartedPlaying;
@@ -185,6 +189,12 @@ export declare class Timeline {
185
189
  getFps(): number;
186
190
  setFps(fps: number): void;
187
191
  getFitDuration(): number;
192
+ setCustomData(key: string, value: unknown, overwrite?: boolean): boolean;
193
+ getCustomData(key: string): unknown;
194
+ hasCustomData(key: string): boolean;
195
+ clearAllCustomData(): void;
196
+ setAllCustomData(data: Map<string, unknown>): void;
197
+ getAllCustomData(): Map<string, unknown> | undefined;
188
198
  render(options?: TimelineRenderOptions): Promise<void>;
189
199
  postRender(): void;
190
200
  loadSerializedData(data: object): Promise<void>;
@@ -212,6 +222,7 @@ export declare class Timeline {
212
222
  customData?: [string, unknown][] | undefined;
213
223
  }[];
214
224
  fitDuration: number;
225
+ customData?: [string, unknown][] | undefined;
215
226
  };
216
227
  static deserialize(data: object): Timeline;
217
228
  }
@@ -1,5 +1,5 @@
1
1
  import { BlendModeEnum, FadeCurveEnum, WrapModeEnum } from '../../types';
2
- import { AnimationTypeEnum } from "../clip";
2
+ import { AnimationTypeEnum, ShapeBezierNode, ShapePoint } from "../clip";
3
3
  import { ShapeTypeEnum } from "../clip/clips/shape/types/Shape.types";
4
4
  import { TextBlock } from "../library";
5
5
  import { HighlightAnimationEnum } from "../subtitles";
@@ -69,6 +69,8 @@ export declare enum UndoActionEnum {
69
69
  CLIP_SHAPE_NR_POINTS = "clip-shape-nr-points",
70
70
  CLIP_SHAPE_INNER_RADIUS = "clip-shape-inner-radius",
71
71
  CLIP_SHAPE_OUTER_RADIUS = "clip-shape-outer-radius",
72
+ CLIP_SHAPE_POINTS = "clip-shape-points",
73
+ CLIP_SHAPE_CONTROL_POINTS = "clip-shape-control-points",
72
74
  TRANSITION_ADD = "transition-add",
73
75
  TRANSITION_REMOVE = "transition-remove",
74
76
  TRANSITION_DURATION_IN = "transition-duration-in",
@@ -370,6 +372,14 @@ export type UndoActionMappings = {
370
372
  clipId: string;
371
373
  value: number;
372
374
  };
375
+ [UndoActionEnum.CLIP_SHAPE_POINTS]: {
376
+ clipId: string;
377
+ value: (ShapePoint | null)[];
378
+ };
379
+ [UndoActionEnum.CLIP_SHAPE_CONTROL_POINTS]: {
380
+ clipId: string;
381
+ value: (ShapeBezierNode | null)[];
382
+ };
373
383
  [UndoActionEnum.CLIP_ANIMATION_SET]: {
374
384
  clipId: string;
375
385
  animationData: AnimationData | undefined;
@@ -1 +1,3 @@
1
1
  export * from "./clip.types";
2
+ export * from "./hash.types";
3
+ export * from "./text.types";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendley/sdk",
3
- "version": "1.12.25",
3
+ "version": "1.12.26",
4
4
  "license": "LICENSE",
5
5
  "author": "Onix Technologies",
6
6
  "homepage": "https://rendleysdk.com",