@shotstack/shotstack-studio 1.1.2 → 1.2.1

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/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "cpuccino",
6
6
  "dazzatron"
7
7
  ],
8
- "version": "1.1.2",
8
+ "version": "1.2.1",
9
9
  "description": "A video editing library for creating and editing videos with Shotstack",
10
10
  "type": "module",
11
11
  "main": "dist/shotstack-studio.umd.js",
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