@shotstack/shotstack-studio 1.5.0 → 1.6.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/index.d.ts +20 -10
- package/dist/shotstack-studio.es.js +7926 -3902
- package/dist/shotstack-studio.umd.js +122 -8
- package/package.json +2 -4
- package/readme.md +10 -19
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ export declare class Canvas {
|
|
|
50
50
|
private minZoom;
|
|
51
51
|
private maxZoom;
|
|
52
52
|
private currentZoom;
|
|
53
|
+
private onTickBound;
|
|
53
54
|
constructor(size: Size, edit: Edit);
|
|
54
55
|
load(): Promise<void>;
|
|
55
56
|
private setupTouchHandling;
|
|
@@ -63,6 +64,8 @@ export declare class Canvas {
|
|
|
63
64
|
private configureStage;
|
|
64
65
|
private onClick;
|
|
65
66
|
private onBackgroundClick;
|
|
67
|
+
pauseTicker(): void;
|
|
68
|
+
resumeTicker(): void;
|
|
66
69
|
dispose(): void;
|
|
67
70
|
}
|
|
68
71
|
|
|
@@ -1361,6 +1364,8 @@ export declare class Edit extends Entity {
|
|
|
1361
1364
|
getClipAt(trackIndex: number, clipIndex: number): Player | null;
|
|
1362
1365
|
selectPlayer(player: Player): void;
|
|
1363
1366
|
isPlayerSelected(player: Player): boolean;
|
|
1367
|
+
setExportMode(exporting: boolean): void;
|
|
1368
|
+
isInExportMode(): boolean;
|
|
1364
1369
|
private setupIntentListeners;
|
|
1365
1370
|
}
|
|
1366
1371
|
|
|
@@ -3655,6 +3660,7 @@ declare abstract class Player extends Entity {
|
|
|
3655
3660
|
getPivot(): Vector;
|
|
3656
3661
|
protected getFitScale(): number;
|
|
3657
3662
|
getScale(): number;
|
|
3663
|
+
protected getContainerScale(): Vector;
|
|
3658
3664
|
getRotation(): number;
|
|
3659
3665
|
isActive(): boolean;
|
|
3660
3666
|
shouldDiscardFrame(): boolean;
|
|
@@ -5417,19 +5423,23 @@ declare type Vector = {
|
|
|
5417
5423
|
};
|
|
5418
5424
|
|
|
5419
5425
|
export declare class VideoExporter {
|
|
5420
|
-
private readonly ffmpeg;
|
|
5421
|
-
private isReady;
|
|
5422
5426
|
private readonly edit;
|
|
5423
|
-
private readonly
|
|
5427
|
+
private readonly canvas;
|
|
5428
|
+
private readonly app;
|
|
5429
|
+
private isExporting;
|
|
5430
|
+
private videoProcessor;
|
|
5431
|
+
private audioProcessor;
|
|
5432
|
+
private progressUI;
|
|
5433
|
+
private exportCommand;
|
|
5424
5434
|
constructor(edit: Edit, canvas: Canvas);
|
|
5425
|
-
private init;
|
|
5426
5435
|
export(filename?: string, fps?: number): Promise<void>;
|
|
5427
|
-
private
|
|
5428
|
-
private
|
|
5429
|
-
|
|
5430
|
-
private
|
|
5431
|
-
private
|
|
5432
|
-
private
|
|
5436
|
+
private processFrames;
|
|
5437
|
+
private handleKeyDown;
|
|
5438
|
+
dispose(): void;
|
|
5439
|
+
private prepareConfig;
|
|
5440
|
+
private saveEditState;
|
|
5441
|
+
private restoreEditState;
|
|
5442
|
+
private isVideoPlayer;
|
|
5433
5443
|
}
|
|
5434
5444
|
|
|
5435
5445
|
declare class VisualClip extends Entity {
|