mirror of
https://github.com/konvajs/konva.git
synced 2025-12-17 18:01:15 +08:00
fixed up Canvas type bug. The Canvas constructor can now also take an optional isBuffer param. If not defined, default value is scene
This commit is contained in:
@@ -732,7 +732,7 @@ Kinetic.Node.prototype = {
|
||||
canvas = new Kinetic.Canvas(config.width, config.height);
|
||||
}
|
||||
else {
|
||||
canvas = this.getStage().bufferCanvas;
|
||||
canvas = this.getStage().canvas;
|
||||
canvas.clear();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user