mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +08:00
internal type fixes
This commit is contained in:
parent
a8ec4334df
commit
c5eee9de48
@ -196,7 +196,7 @@ export class Tween {
|
|||||||
|
|
||||||
constructor(config: TweenConfig) {
|
constructor(config: TweenConfig) {
|
||||||
var that = this,
|
var that = this,
|
||||||
node = config.node,
|
node = config.node as any,
|
||||||
nodeId = node._id,
|
nodeId = node._id,
|
||||||
duration,
|
duration,
|
||||||
easing = config.easing || Easings.Linear,
|
easing = config.easing || Easings.Linear,
|
||||||
@ -563,7 +563,7 @@ Node.prototype.to = function (params) {
|
|||||||
onFinish();
|
onFinish();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var tween = new Tween(params);
|
var tween = new Tween(params as any);
|
||||||
tween.play();
|
tween.play();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user