mirror of
https://github.com/konvajs/konva.git
synced 2026-01-24 05:45:14 +08:00
update docs. close #702
This commit is contained in:
@@ -20,10 +20,9 @@ var now = (function(): () => number {
|
||||
* @memberof Konva
|
||||
* @param {AnimationFn} func function executed on each animation frame. The function is passed a frame object, which contains
|
||||
* timeDiff, lastTime, time, and frameRate properties. The timeDiff property is the number of milliseconds that have passed
|
||||
* since the last animation frame. The lastTime property is time in milliseconds that elapsed from the moment the animation started
|
||||
* to the last animation frame. The time property is the time in milliseconds that elapsed from the moment the animation started
|
||||
* to the current animation frame. The frameRate property is the current frame rate in frames / second. Return false from function,
|
||||
* if you don't need to redraw layer/layers on some frames.
|
||||
* since the last animation frame. The time property is the time in milliseconds that elapsed from the moment the animation started
|
||||
* to the current animation frame. The lastTime property is a `time` value from the previous frame. The frameRate property is the current frame rate in frames / second.
|
||||
* Return false from function, if you don't need to redraw layer/layers on some frames.
|
||||
* @param {Konva.Layer|Array} [layers] layer(s) to be redrawn on each animation frame. Can be a layer, an array of layers, or null.
|
||||
* Not specifying a node will result in no redraw.
|
||||
* @example
|
||||
|
||||
Reference in New Issue
Block a user