mirror of
https://github.com/konvajs/konva.git
synced 2025-12-05 03:24:23 +08:00
added stage.reset() method so that you can reset the stage to its original state. hooked this in with stage.load() so that the stage starts when a clean slate when loading json
This commit is contained in:
@@ -42,6 +42,9 @@ Kinetic.Layer.prototype = {
|
||||
if(timeDiff >= throttle) {
|
||||
this._draw();
|
||||
this.lastDrawTime = time;
|
||||
if(this.drawTimeout !== undefined) {
|
||||
clearTimeout(this.drawTimeout);
|
||||
}
|
||||
}
|
||||
/*
|
||||
* if we cannot draw the layer due to throttling,
|
||||
|
||||
Reference in New Issue
Block a user