etro 0.12.0 → 0.12.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/.vscode/settings.json +3 -0
- package/CHANGELOG.md +7 -0
- package/dist/etro-cjs.js +1 -1
- package/dist/etro-iife.js +1 -1
- package/dist/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/effect/transform.ts +1 -1
- package/src/util.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [0.12.1] - 2024-02-19
|
|
9
|
+
### Fixed
|
|
10
|
+
- Importing etro in the client-side code of a NextJS project causing a "module not found" error ([#243](https://github.com/etro-js/etro/issues/243)).
|
|
11
|
+
- Keyframes with values that are not numbers no longer result in type mismatches.
|
|
12
|
+
- `TypeError: this.data is undefined` when applying a `Transform` effect with a dynamic matrix.
|
|
13
|
+
|
|
8
14
|
## [0.12.0] - 2024-01-15
|
|
9
15
|
### Added
|
|
10
16
|
- `stroke` option for `Text` layer ([#239](https://github.com/etro-js/etro/pull/239)).
|
|
@@ -302,6 +308,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
302
308
|
- Gaussian blur
|
|
303
309
|
- Transform
|
|
304
310
|
|
|
311
|
+
[0.12.1]: https://github.com/etro-js/etro/compare/v0.12.0...v0.12.1
|
|
305
312
|
[0.12.0]: https://github.com/etro-js/etro/compare/v0.11.0...v0.12.0
|
|
306
313
|
[0.11.0]: https://github.com/etro-js/etro/compare/v0.10.1...v0.11.0
|
|
307
314
|
[0.10.1]: https://github.com/etro-js/etro/compare/v0.10.0...v0.10.1
|
package/dist/etro-cjs.js
CHANGED
|
@@ -2597,7 +2597,7 @@ var Transform = /** @class */ (function (_super) {
|
|
|
2597
2597
|
this._tmpCanvas.height = target.canvas.height;
|
|
2598
2598
|
}
|
|
2599
2599
|
// Use data, since that's the underlying storage
|
|
2600
|
-
this._tmpMatrix.data = val(this, 'matrix
|
|
2600
|
+
this._tmpMatrix.data = val(this, 'matrix', reltime).data;
|
|
2601
2601
|
this._tmpCtx.setTransform(this._tmpMatrix.a, this._tmpMatrix.b, this._tmpMatrix.c, this._tmpMatrix.d, this._tmpMatrix.e, this._tmpMatrix.f);
|
|
2602
2602
|
this._tmpCtx.drawImage(target.canvas, 0, 0);
|
|
2603
2603
|
// Assume it was identity for now
|
package/dist/etro-iife.js
CHANGED
|
@@ -2598,7 +2598,7 @@ var etro = (function () {
|
|
|
2598
2598
|
this._tmpCanvas.height = target.canvas.height;
|
|
2599
2599
|
}
|
|
2600
2600
|
// Use data, since that's the underlying storage
|
|
2601
|
-
this._tmpMatrix.data = val(this, 'matrix
|
|
2601
|
+
this._tmpMatrix.data = val(this, 'matrix', reltime).data;
|
|
2602
2602
|
this._tmpCtx.setTransform(this._tmpMatrix.a, this._tmpMatrix.b, this._tmpMatrix.c, this._tmpMatrix.d, this._tmpMatrix.e, this._tmpMatrix.f);
|
|
2603
2603
|
this._tmpCtx.drawImage(target.canvas, 0, 0);
|
|
2604
2604
|
// Assume it was identity for now
|
package/dist/util.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class KeyFrame<T> {
|
|
|
28
28
|
value: unknown[][];
|
|
29
29
|
/** Keys to interpolate, or all keys if undefined */
|
|
30
30
|
interpolationKeys: string[];
|
|
31
|
-
constructor(...value: T[][]);
|
|
31
|
+
constructor(...value: (number | T)[][]);
|
|
32
32
|
withKeys(keys: string[]): KeyFrame<T>;
|
|
33
33
|
evaluate(time: number): T;
|
|
34
34
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "etro",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "An extendable video-editing framework for the browser",
|
|
5
|
-
"
|
|
5
|
+
"main": "dist/etro-cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"directories": {
|
|
8
8
|
"doc": "docs",
|
package/src/effect/transform.ts
CHANGED
|
@@ -45,7 +45,7 @@ class Transform extends Visual {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// Use data, since that's the underlying storage
|
|
48
|
-
this._tmpMatrix.data = val(this, 'matrix
|
|
48
|
+
this._tmpMatrix.data = val(this, 'matrix', reltime).data
|
|
49
49
|
|
|
50
50
|
this._tmpCtx.setTransform(
|
|
51
51
|
this._tmpMatrix.a, this._tmpMatrix.b, this._tmpMatrix.c,
|
package/src/util.ts
CHANGED
|
@@ -105,7 +105,7 @@ export class KeyFrame<T> {
|
|
|
105
105
|
/** Keys to interpolate, or all keys if undefined */
|
|
106
106
|
interpolationKeys: string[]
|
|
107
107
|
|
|
108
|
-
constructor (...value: T[][]) {
|
|
108
|
+
constructor (...value: (number|T)[][]) {
|
|
109
109
|
this.value = value
|
|
110
110
|
this.interpolationKeys = []
|
|
111
111
|
}
|