@rendley/sdk 1.5.3 → 1.7.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.
Files changed (32) hide show
  1. package/dist/Engine.d.ts +20 -13
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.d.ts +2 -1
  4. package/dist/index.js +1 -1
  5. package/dist/modules/clip/Clip.d.ts +187 -55
  6. package/dist/modules/clip/ClipStyle.d.ts +7 -5
  7. package/dist/modules/clip/clips/audio/AudioClip.d.ts +31 -13
  8. package/dist/modules/clip/clips/custom/CustomClip.d.ts +27 -10
  9. package/dist/modules/clip/clips/htmlText/HtmlTextClip.d.ts +71 -37
  10. package/dist/modules/clip/clips/lottie/LottieClip.d.ts +44 -12
  11. package/dist/modules/clip/clips/shape/ShapeClip.d.ts +29 -12
  12. package/dist/modules/clip/clips/shape/ShapeStyle.d.ts +55 -2
  13. package/dist/modules/clip/clips/text/TextClip.d.ts +29 -12
  14. package/dist/modules/clip/clips/text/TextStyle.d.ts +95 -6
  15. package/dist/modules/clip/clips/video/VideoClip.d.ts +40 -18
  16. package/dist/modules/display/Display.d.ts +3 -3
  17. package/dist/modules/event-emitter/types/EventEmitter.types.d.ts +20 -1
  18. package/dist/modules/filter/Effect.d.ts +50 -1
  19. package/dist/modules/filter/Filter.d.ts +3 -3
  20. package/dist/modules/filter/MaskFilter.d.ts +46 -0
  21. package/dist/modules/layer/Layer.d.ts +7 -5
  22. package/dist/modules/library/Library.d.ts +3 -1
  23. package/dist/modules/library/Subtitles.d.ts +2 -2
  24. package/dist/modules/{subtitleManager → subtitles}/SubtitleManager.d.ts +86 -86
  25. package/dist/modules/timeline/Timeline.d.ts +8 -1
  26. package/dist/modules/undo/UndoManager.d.ts +35 -0
  27. package/dist/modules/undo/UndoManager.types.d.ts +292 -0
  28. package/dist/modules/undo/index.d.ts +2 -0
  29. package/dist/types/clip.types.d.ts +1 -1
  30. package/dist/utils/animation/animation.d.ts +3 -3
  31. package/package.json +1 -1
  32. /package/dist/modules/{subtitleManager → subtitles}/index.d.ts +0 -0
package/dist/Engine.d.ts CHANGED
@@ -7,8 +7,9 @@ import { Library } from "./modules/library";
7
7
  import { Settings } from "./modules/settings";
8
8
  import { StorageProviderBase } from "./modules/storage";
9
9
  import { StorageController } from "./modules/storage/StorageController";
10
- import { SubtitlesManager } from "./modules/subtitleManager";
10
+ import { SubtitlesManager } from "./modules/subtitles";
11
11
  import { Timeline } from "./modules/timeline/Timeline";
12
+ import { UndoManager } from "./modules/undo/UndoManager";
12
13
  export declare enum ExportVideoType {
13
14
  VIDEO_ONLY = "video_only",
14
15
  AUDIO_ONLY = "audio_only",
@@ -27,10 +28,14 @@ export interface ExportOptions {
27
28
  from?: number;
28
29
  to?: number;
29
30
  }
31
+ interface FFmpegOptions {
32
+ path?: string;
33
+ }
30
34
  export interface EngineOptions {
31
35
  display?: DisplayOptions;
32
36
  license?: EngineLicense;
33
37
  storages?: StorageProviderBase[];
38
+ ffmpeg?: FFmpegOptions;
34
39
  }
35
40
  type CustomClipConstructor<T extends CustomClip = CustomClip> = {
36
41
  new (...args: any[]): T;
@@ -42,6 +47,7 @@ export declare class Engine {
42
47
  private library;
43
48
  private fontRegistry;
44
49
  private subtitlesManager;
50
+ private undoManager;
45
51
  private storageController;
46
52
  private settings;
47
53
  readonly events: EventEmitter;
@@ -62,6 +68,7 @@ export declare class Engine {
62
68
  getLibrary(): Library;
63
69
  getSettings(): Settings;
64
70
  getFontRegistry(): FontRegistry;
71
+ getUndoManager(): UndoManager;
65
72
  getSubtitlesManager(): SubtitlesManager;
66
73
  getStorageController(): StorageController;
67
74
  isInitialized(): boolean;
@@ -86,8 +93,8 @@ export declare class Engine {
86
93
  hasCustomClipType(typeEnum: string): boolean;
87
94
  serialize(): {
88
95
  display: {
89
- width: number;
90
96
  height: number;
97
+ width: number;
91
98
  backgroundColor: string;
92
99
  };
93
100
  timeline: {
@@ -137,36 +144,36 @@ export declare class Engine {
137
144
  projectId?: string | undefined;
138
145
  subtitlesManager?: {
139
146
  textMode: "full" | "partial";
140
- highlightAnimation: import("./modules/subtitleManager").HighlightAnimationEnum;
147
+ highlightAnimation: import("./modules/subtitles").HighlightAnimationEnum;
141
148
  highlightAnimationSpeed: number;
142
149
  mainTextStyle: {
143
150
  color: string;
144
- strokeColor: string;
145
151
  fontSize: number;
146
- fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
152
+ fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
147
153
  fontFamily: string;
148
154
  fontStyle: "normal" | "italic" | "oblique";
149
155
  backgroundColor: string;
150
- wordWrapWidth: number;
151
- padding: number;
152
- strokeThickness: number;
153
- wordWrap: boolean;
154
156
  backgroundPadding: number;
155
157
  backgroundCornerRadius: number;
158
+ strokeThickness: number;
159
+ strokeColor: string;
160
+ padding: number;
161
+ wordWrapWidth: number;
162
+ wordWrap: boolean;
156
163
  leading: number;
157
164
  };
158
165
  highlightTextStyle: {
159
166
  color: string;
160
- strokeColor: string;
161
167
  fontSize: number;
162
- fontWeight: "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
168
+ fontWeight: "bold" | "normal" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
163
169
  fontFamily: string;
164
170
  fontStyle: "normal" | "italic" | "oblique";
165
171
  backgroundColor: string;
166
- padding: number;
167
- strokeThickness: number;
168
172
  backgroundPadding: number;
169
173
  backgroundCornerRadius: number;
174
+ strokeThickness: number;
175
+ strokeColor: string;
176
+ padding: number;
170
177
  };
171
178
  } | undefined;
172
179
  settings?: {