@shotstack/shotstack-studio 1.1.2 → 1.2.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/core/schemas/asset.d.ts +6 -10
- package/dist/core/schemas/audio-asset.d.ts +6 -10
- package/dist/core/schemas/clip.d.ts +21 -35
- package/dist/core/schemas/edit.d.ts +42 -70
- package/dist/core/schemas/track.d.ts +21 -35
- package/dist/core/schemas/video-asset.d.ts +6 -10
- package/dist/core/shotstack-canvas.d.ts +1 -0
- package/dist/shotstack-studio.es.js +381 -340
- package/dist/shotstack-studio.umd.js +6 -6
- package/package.json +1 -1
- package/readme.md +2 -0
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -152,6 +152,7 @@ await canvas.load();
|
|
|
152
152
|
canvas.centerEdit();
|
|
153
153
|
canvas.zoomToFit();
|
|
154
154
|
canvas.setZoom(1.5); // 1.0 is 100%, 0.5 is 50%, etc.
|
|
155
|
+
canvas.dispose(); // Clean up resources when done
|
|
155
156
|
```
|
|
156
157
|
|
|
157
158
|
### Controls
|
|
@@ -304,6 +305,7 @@ Creates a new canvas with specified dimensions for rendering the edit.
|
|
|
304
305
|
- `centerEdit()` - Center the edit in the canvas
|
|
305
306
|
- `zoomToFit()` - Zoom to fit the entire edit
|
|
306
307
|
- `setZoom(zoom: number)` - Set zoom level
|
|
308
|
+
- `dispose()` - Clean up resources and remove the canvas from the DOM
|
|
307
309
|
|
|
308
310
|
### Controls
|
|
309
311
|
|