Skip to content

Commit 3e5aedd

Browse files
committed
refactor(animation): Remove extending from Transform
BREAKING CHANGE: Animation is not a Transform stream anymore
1 parent 26e243e commit 3e5aedd

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/Basic.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Transform } from 'stream';
2-
31
/**
42
* Base class for creating other animations.
53
* Each custom animation must extends from this class.
@@ -16,17 +14,15 @@ import { Transform } from 'stream';
1614
* }
1715
* };
1816
*/
19-
export default class Basic extends Transform {
20-
_options = {};
21-
17+
export default class Basic {
2218
/**
2319
* Initializes animation.
2420
* Make sure that animation is disabled when instantiating.
2521
*
2622
* @constructor
2723
*/
28-
constructor() {
29-
super();
24+
constructor(options) {
25+
this._options = options;
3026

3127
this.disable();
3228
}

0 commit comments

Comments
 (0)