mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
shadow logic is now applied to buffer context, not a newly created one each time drawScene is created
This commit is contained in:
@@ -300,10 +300,10 @@
|
||||
this.content.style.width = width + PX;
|
||||
this.content.style.height = height + PX;
|
||||
|
||||
this.bufferCanvas.setSize(width, height, 1);
|
||||
this.hitCanvas.setSize(width, height);
|
||||
this.bufferCanvas.setSize(width, height);
|
||||
this.bufferHitCanvas.setSize(width, height);
|
||||
|
||||
// set pointer defined layer dimensions
|
||||
// set layer dimensions
|
||||
for(n = 0; n < len; n++) {
|
||||
layer = layers[n];
|
||||
layer.getCanvas().setSize(width, height);
|
||||
@@ -646,7 +646,7 @@
|
||||
container.appendChild(this.content);
|
||||
|
||||
this.bufferCanvas = new Kinetic.SceneCanvas();
|
||||
this.hitCanvas = new Kinetic.HitCanvas();
|
||||
this.bufferHitCanvas = new Kinetic.HitCanvas();
|
||||
|
||||
this._resizeDOM();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user