From 8ec7ac1a2b86e81b1e66ac8515d8c13ff40104bb Mon Sep 17 00:00:00 2001 From: Alexey Kalmakov Date: Fri, 31 May 2019 11:23:12 +0300 Subject: [PATCH] Fixed animation doc string There was an old api usage and some copy-paste from stage`s doc --- src/Animation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Animation.ts b/src/Animation.ts index 4f2f593e..d7e6bfcb 100644 --- a/src/Animation.ts +++ b/src/Animation.ts @@ -14,7 +14,7 @@ var now = (function() { })(); /** - * Animation constructor. A stage is used to contain multiple layers and handle + * Animation constructor. * @constructor * @memberof Konva * @param {Function} func function executed on each animation frame. The function is passed a frame object, which contains @@ -31,7 +31,7 @@ var now = (function() { * * var anim = new Konva.Animation(function(frame) { * var dist = velocity * (frame.timeDiff / 1000); - * node.move(dist, 0); + * node.move({x: dist, y: 0}); * }, layer); * * anim.start();