mirror of
https://github.com/konvajs/konva.git
synced 2025-07-15 18:26:51 +08:00
Merge pull request #659 from rndD/fix-anim-docs
Fixed animation doc string
This commit is contained in:
commit
848cb46bd0
@ -14,7 +14,7 @@ var now = (function() {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animation constructor. A stage is used to contain multiple layers and handle
|
* Animation constructor.
|
||||||
* @constructor
|
* @constructor
|
||||||
* @memberof Konva
|
* @memberof Konva
|
||||||
* @param {Function} func function executed on each animation frame. The function is passed a frame object, which contains
|
* @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 anim = new Konva.Animation(function(frame) {
|
||||||
* var dist = velocity * (frame.timeDiff / 1000);
|
* var dist = velocity * (frame.timeDiff / 1000);
|
||||||
* node.move(dist, 0);
|
* node.move({x: dist, y: 0});
|
||||||
* }, layer);
|
* }, layer);
|
||||||
*
|
*
|
||||||
* anim.start();
|
* anim.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user