@rendley/sdk 1.12.15 → 1.12.17

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.
@@ -34,14 +34,14 @@ declare const HtmlTextStyleSchema: zod.ZodObject<{
34
34
  fontStyle: "normal" | "italic" | "oblique";
35
35
  strokeThickness: number;
36
36
  wordWrapWidth: number;
37
- align: "center" | "left" | "right" | "justify";
38
- breakWords: boolean;
39
37
  dropShadow: boolean;
40
38
  dropShadowAlpha: number;
41
39
  dropShadowAngle: number;
42
40
  dropShadowBlur: number;
43
41
  dropShadowColor: string;
44
42
  dropShadowDistance: number;
43
+ align: "center" | "left" | "right" | "justify";
44
+ breakWords: boolean;
45
45
  fontVariant: "normal" | "small-caps";
46
46
  letterSpacing: number;
47
47
  lineHeight: number;
@@ -97,14 +97,14 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
97
97
  fontStyle: "normal" | "italic" | "oblique";
98
98
  strokeThickness: number;
99
99
  wordWrapWidth: number;
100
- align: "center" | "left" | "right" | "justify";
101
- breakWords: boolean;
102
100
  dropShadow: boolean;
103
101
  dropShadowAlpha: number;
104
102
  dropShadowAngle: number;
105
103
  dropShadowBlur: number;
106
104
  dropShadowColor: string;
107
105
  dropShadowDistance: number;
106
+ align: "center" | "left" | "right" | "justify";
107
+ breakWords: boolean;
108
108
  fontVariant: "normal" | "small-caps";
109
109
  letterSpacing: number;
110
110
  lineHeight: number;
@@ -144,14 +144,14 @@ export declare class HtmlTextClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprit
144
144
  fontStyle: "normal" | "italic" | "oblique";
145
145
  strokeThickness: number;
146
146
  wordWrapWidth: number;
147
- align: "center" | "left" | "right" | "justify";
148
- breakWords: boolean;
149
147
  dropShadow: boolean;
150
148
  dropShadowAlpha: number;
151
149
  dropShadowAngle: number;
152
150
  dropShadowBlur: number;
153
151
  dropShadowColor: string;
154
152
  dropShadowDistance: number;
153
+ align: "center" | "left" | "right" | "justify";
154
+ breakWords: boolean;
155
155
  fontVariant: "normal" | "small-caps";
156
156
  letterSpacing: number;
157
157
  lineHeight: number;
@@ -3,7 +3,7 @@ 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 {
6
+ export interface IGradientColor {
7
7
  colorStops: number[];
8
8
  colorValues: number[][];
9
9
  alphaStops: number[];
@@ -15,6 +15,7 @@ export declare enum LottiePropertyTypeEnum {
15
15
  STROKE_COLOR = "stroke-color",
16
16
  STROKE_WIDTH = "stroke-width",
17
17
  GRADIENT_FILL_COLOR = "gradient-fill-color",
18
+ GRADIENT_STROKE_COLOR = "gradient-stroke-color",
18
19
  IMAGE = "image"
19
20
  }
20
21
  export declare const PropertySchema: zod.ZodObject<{
@@ -132,8 +133,13 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
132
133
  protected groups: Group[];
133
134
  private propertyMap;
134
135
  private autoFit;
136
+ private canvas;
137
+ private context;
135
138
  constructor(options: LottieClipOptions);
136
139
  init(layerId: string): Promise<void>;
140
+ private applyProperties;
141
+ getAnimationData(): any | undefined;
142
+ replaceAnimationData(data: any): Promise<void>;
137
143
  private initProperties;
138
144
  setProperty(propertyId: string, value: unknown): void;
139
145
  getGroups(): {
@@ -168,12 +174,14 @@ export declare class LottieClip extends Clip<PIXI.Sprite, ClipStyle<PIXI.Sprite>
168
174
  private updateShapesFillCachedData;
169
175
  private updateShapesStrokeColorCachedData;
170
176
  private updateShapesGradientFillColorData;
177
+ private updateShapesGradientStrokeColorData;
171
178
  private updateShapesStrokeWidthCachedData;
172
179
  replaceFillColor(path: string | number, color: Array<number>): void;
173
180
  replaceStrokeColor(path: string | number, color: Array<number>): void;
174
181
  replaceStrokeWidth(path: string | number, width: number): void;
175
182
  replaceImage(layerId: string | number, url: string): void;
176
- replaceGradientFillColor(path: string | number, colorData: IGradientFillColor): void;
183
+ replaceGradientFillColor(path: string | number, colorData: IGradientColor): void;
184
+ replaceGradientStrokeColor(path: string | number, colorData: IGradientColor): void;
177
185
  setPlaybackSpeed(speed: number, perserveLeftBound?: boolean, perserveTrimmedDuration?: boolean): void;
178
186
  getPlaybackSpeed(): number;
179
187
  serialize(): {
@@ -14,6 +14,12 @@ interface TextClipStyleOptions extends ClipStyleOptions {
14
14
  strokeColor?: string;
15
15
  strokeThickness?: number;
16
16
  padding?: number[];
17
+ dropShadow?: boolean;
18
+ dropShadowAlpha?: number;
19
+ dropShadowAngle?: number;
20
+ dropShadowBlur?: number;
21
+ dropShadowColor?: string;
22
+ dropShadowDistance?: number;
17
23
  }
18
24
  export declare const TextStyleSchema: z.ZodObject<{
19
25
  scale: z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>;
@@ -39,6 +45,12 @@ export declare const TextStyleSchema: z.ZodObject<{
39
45
  strokeThickness: z.ZodDefault<z.ZodNumber>;
40
46
  wordWrapWidth: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
41
47
  padding: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
48
+ dropShadow: z.ZodDefault<z.ZodBoolean>;
49
+ dropShadowAlpha: z.ZodDefault<z.ZodNumber>;
50
+ dropShadowAngle: z.ZodDefault<z.ZodNumber>;
51
+ dropShadowBlur: z.ZodDefault<z.ZodNumber>;
52
+ dropShadowColor: z.ZodDefault<z.ZodString>;
53
+ dropShadowDistance: z.ZodDefault<z.ZodNumber>;
42
54
  }, "strip", z.ZodTypeAny, {
43
55
  scale: [number, number];
44
56
  color: string;
@@ -59,6 +71,12 @@ export declare const TextStyleSchema: z.ZodObject<{
59
71
  strokeColor: string;
60
72
  strokeThickness: number;
61
73
  wordWrapWidth: number | null;
74
+ dropShadow: boolean;
75
+ dropShadowAlpha: number;
76
+ dropShadowAngle: number;
77
+ dropShadowBlur: number;
78
+ dropShadowColor: string;
79
+ dropShadowDistance: number;
62
80
  width?: number | undefined;
63
81
  height?: number | undefined;
64
82
  mediaDataId?: string | undefined;
@@ -87,6 +105,12 @@ export declare const TextStyleSchema: z.ZodObject<{
87
105
  strokeThickness?: number | undefined;
88
106
  wordWrapWidth?: number | null | undefined;
89
107
  padding?: number[] | undefined;
108
+ dropShadow?: boolean | undefined;
109
+ dropShadowAlpha?: number | undefined;
110
+ dropShadowAngle?: number | undefined;
111
+ dropShadowBlur?: number | undefined;
112
+ dropShadowColor?: string | undefined;
113
+ dropShadowDistance?: number | undefined;
90
114
  }>;
91
115
  export declare class TextStyle extends ClipStyle<TextSprite> {
92
116
  fontSize: number;
@@ -100,10 +124,28 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
100
124
  strokeColor: string;
101
125
  strokeThickness: number;
102
126
  padding: number[];
127
+ dropShadow: boolean;
128
+ dropShadowAlpha: number;
129
+ dropShadowAngle: number;
130
+ dropShadowBlur: number;
131
+ dropShadowColor: string;
132
+ dropShadowDistance: number;
103
133
  private isDirty;
104
134
  protected animationColor: string;
105
135
  constructor(options: TextClipStyleOptions);
106
136
  setDirty(): void;
137
+ setDropShadow(dropShadow: boolean): void;
138
+ getDropShadow(): boolean;
139
+ setDropShadowAlpha(dropShadowAlpha: number): void;
140
+ getDropShadowAlpha(): number;
141
+ setDropShadowAngle(dropShadowAngle: number): void;
142
+ getDropShadowAngle(): number;
143
+ setDropShadowBlur(dropShadowBlur: number): void;
144
+ getDropShadowBlur(): number;
145
+ setDropShadowColor(dropShadowColor: string): void;
146
+ getDropShadowColor(): string;
147
+ setDropShadowDistance(dropShadowDistance: number): void;
148
+ getDropShadowDistance(): number;
107
149
  setStrokeColor(strokeColor: string): void;
108
150
  getStrokeColor(): string;
109
151
  setStrokeThickness(strokeThickness: number): void;
@@ -149,6 +191,12 @@ export declare class TextStyle extends ClipStyle<TextSprite> {
149
191
  strokeColor: string;
150
192
  strokeThickness: number;
151
193
  wordWrapWidth: number | null;
194
+ dropShadow: boolean;
195
+ dropShadowAlpha: number;
196
+ dropShadowAngle: number;
197
+ dropShadowBlur: number;
198
+ dropShadowColor: string;
199
+ dropShadowDistance: number;
152
200
  width?: number | undefined;
153
201
  height?: number | undefined;
154
202
  mediaDataId?: string | undefined;
@@ -27,11 +27,12 @@ export declare class Effect {
27
27
  private effect;
28
28
  private readonly inputTextures;
29
29
  private propertyMap;
30
+ private initialized;
30
31
  private readonly tempProperties?;
31
32
  constructor(effectId: string, properties?: Record<string, any>);
32
33
  init(): void;
33
34
  update(clipTime: number): void;
34
- getPixiFilter(): PIXI.Filter;
35
+ getPixiFilter(): PIXI.Filter | null;
35
36
  setProperty(propertyName: string, value: any): void;
36
37
  getProperty(propertyName: string): any;
37
38
  getId(): string;
@@ -32,6 +32,7 @@ export declare class Filter {
32
32
  private intensity;
33
33
  private lutTexture;
34
34
  private pixiFilter;
35
+ private initialized;
35
36
  constructor(options: FilterOptions);
36
37
  init(): void;
37
38
  getId(): string;
@@ -41,7 +42,7 @@ export declare class Filter {
41
42
  setIntensity(intensity: number): void;
42
43
  getIntensity(): number;
43
44
  getFilterId(): string;
44
- getPixiFilter(): PIXI.Filter;
45
+ getPixiFilter(): PIXI.Filter | null;
45
46
  serialize(): {
46
47
  intensity: number;
47
48
  id: string;
@@ -46,6 +46,8 @@ export declare const SettingsSchema: z.ZodObject<{
46
46
  clipVideoFilmstripMaxWidth: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
47
47
  clipVideoFilmstripMaxWorkers: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
48
48
  clipVideoFilmstripKeyframesOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49
+ clipAudioSeekThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
50
+ clipVideoSeekThreshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
49
51
  renderShowPreview: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
50
52
  renderMaxQueueSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
51
53
  renderThrottleFactor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -85,6 +87,8 @@ export declare const SettingsSchema: z.ZodObject<{
85
87
  clipVideoFilmstripMaxWidth: number;
86
88
  clipVideoFilmstripMaxWorkers: number;
87
89
  clipVideoFilmstripKeyframesOnly: boolean;
90
+ clipAudioSeekThreshold: number;
91
+ clipVideoSeekThreshold: number;
88
92
  renderShowPreview: boolean;
89
93
  renderMaxQueueSize: number;
90
94
  renderThrottleFactor: number;
@@ -124,6 +128,8 @@ export declare const SettingsSchema: z.ZodObject<{
124
128
  clipVideoFilmstripMaxWidth?: number | undefined;
125
129
  clipVideoFilmstripMaxWorkers?: number | undefined;
126
130
  clipVideoFilmstripKeyframesOnly?: boolean | undefined;
131
+ clipAudioSeekThreshold?: number | undefined;
132
+ clipVideoSeekThreshold?: number | undefined;
127
133
  renderShowPreview?: boolean | undefined;
128
134
  renderMaxQueueSize?: number | undefined;
129
135
  renderThrottleFactor?: number | undefined;
@@ -164,6 +170,8 @@ export declare class Settings {
164
170
  private clipVideoFilmstripMaxWidth;
165
171
  private clipVideoFilmstripMaxWorkers;
166
172
  private clipVideoFilmstripKeyframesOnly;
173
+ private clipAudioSeekThreshold;
174
+ private clipVideoSeekThreshold;
167
175
  private decoderUseWebCodecs;
168
176
  private decoderPreferredAcceleration;
169
177
  private decoderUseSeparateWorker;
@@ -205,6 +213,8 @@ export declare class Settings {
205
213
  clipVideoFilmstripMaxWidth: number;
206
214
  clipVideoFilmstripMaxWorkers: number;
207
215
  clipVideoFilmstripKeyframesOnly: boolean;
216
+ clipAudioSeekThreshold: number;
217
+ clipVideoSeekThreshold: number;
208
218
  renderShowPreview: boolean;
209
219
  renderMaxQueueSize: number;
210
220
  renderThrottleFactor: number;
@@ -256,6 +266,10 @@ export declare class Settings {
256
266
  getClipVideoFilmstripMaxWorkers(): number;
257
267
  setClipVideoFilmstripKeyframesOnly(keyframesOnly: boolean): void;
258
268
  getClipVideoFilmstripKeyframesOnly(): boolean;
269
+ setClipAudioSeekThreshold(threshold: number): void;
270
+ getClipAudioSeekThreshold(): number;
271
+ setClipVideoSeekThreshold(threshold: number): void;
272
+ getClipVideoSeekThreshold(): number;
259
273
  setEncoderCrf(crf: number): void;
260
274
  getEncoderCrf(): number;
261
275
  setEncoderDeadline(deadline: number): void;
@@ -333,6 +347,8 @@ export declare class Settings {
333
347
  clipVideoFilmstripMaxWidth: number;
334
348
  clipVideoFilmstripMaxWorkers: number;
335
349
  clipVideoFilmstripKeyframesOnly: boolean;
350
+ clipAudioSeekThreshold: number;
351
+ clipVideoSeekThreshold: number;
336
352
  renderShowPreview: boolean;
337
353
  renderMaxQueueSize: number;
338
354
  renderThrottleFactor: number;
@@ -48,6 +48,12 @@ export declare enum UndoActionEnum {
48
48
  CLIP_TEXT_STROKE_COLOR = "clip-text-stroke-color",
49
49
  CLIP_TEXT_STROKE_THICKNESS = "clip-text-stroke-thickness",
50
50
  CLIP_TEXT_PADDING = "clip-text-padding",
51
+ CLIP_TEXT_DROP_SHADOW = "clip-text-drop-shadow",
52
+ CLIP_TEXT_DROP_SHADOW_COLOR = "clip-text-drop-shadow-color",
53
+ CLIP_TEXT_DROP_SHADOW_BLUR = "clip-text-drop-shadow-blur",
54
+ CLIP_TEXT_DROP_SHADOW_ALPHA = "clip-text-drop-shadow-alpha",
55
+ CLIP_TEXT_DROP_SHADOW_DISTANCE = "clip-text-drop-shadow-distance",
56
+ CLIP_TEXT_DROP_SHADOW_ANGLE = "clip-text-drop-shadow-angle",
51
57
  CLIP_HTML_TEXT = "clip-html-text",
52
58
  CLIP_HTML_STYLE = "clip-html-style",
53
59
  CLIP_LOTTIE_PROPERTY = "clip-lottie-property",
@@ -266,6 +272,36 @@ export type UndoActionMappings = {
266
272
  prevPadding: number | number[];
267
273
  padding: number | number[];
268
274
  };
275
+ [UndoActionEnum.CLIP_TEXT_DROP_SHADOW]: {
276
+ clipId: string;
277
+ prevDropShadow: boolean;
278
+ dropShadow: boolean;
279
+ };
280
+ [UndoActionEnum.CLIP_TEXT_DROP_SHADOW_ALPHA]: {
281
+ clipId: string;
282
+ prevDropShadowAlpha: number;
283
+ dropShadowAlpha: number;
284
+ };
285
+ [UndoActionEnum.CLIP_TEXT_DROP_SHADOW_ANGLE]: {
286
+ clipId: string;
287
+ prevDropShadowAngle: number;
288
+ dropShadowAngle: number;
289
+ };
290
+ [UndoActionEnum.CLIP_TEXT_DROP_SHADOW_BLUR]: {
291
+ clipId: string;
292
+ prevDropShadowBlur: number;
293
+ dropShadowBlur: number;
294
+ };
295
+ [UndoActionEnum.CLIP_TEXT_DROP_SHADOW_COLOR]: {
296
+ clipId: string;
297
+ prevDropShadowColor: string;
298
+ dropShadowColor: string;
299
+ };
300
+ [UndoActionEnum.CLIP_TEXT_DROP_SHADOW_DISTANCE]: {
301
+ clipId: string;
302
+ prevDropShadowDistance: number;
303
+ dropShadowDistance: number;
304
+ };
269
305
  [UndoActionEnum.CLIP_HTML_TEXT]: {
270
306
  clipId: string;
271
307
  prevText: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendley/sdk",
3
- "version": "1.12.15",
3
+ "version": "1.12.17",
4
4
  "license": "LICENSE",
5
5
  "author": "Onix Technologies",
6
6
  "homepage": "https://rendleysdk.com",