mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +08:00
added drawScene() method which only redraws the scene and not the buffer
This commit is contained in:
@@ -4738,8 +4738,7 @@ Test.prototype.tests = {
|
||||
y: 10
|
||||
});
|
||||
var mapLayer = new Kinetic.Layer();
|
||||
var mapCanvas = mapLayer.getCanvas();
|
||||
|
||||
|
||||
for(var key in worldMap.shapes) {
|
||||
var c = worldMap.shapes[key];
|
||||
|
||||
@@ -4755,12 +4754,12 @@ Test.prototype.tests = {
|
||||
|
||||
path.on('mouseover', function() {
|
||||
this.setFill('red');
|
||||
mapLayer.draw(mapCanvas);
|
||||
mapLayer.drawScene();
|
||||
});
|
||||
|
||||
path.on('mouseout', function() {
|
||||
this.setFill('#ccc');
|
||||
mapLayer.draw(mapCanvas);
|
||||
mapLayer.drawScene();
|
||||
});
|
||||
|
||||
mapLayer.add(path);
|
||||
|
Reference in New Issue
Block a user