fix method

This commit is contained in:
Anton Lavrenov 2018-02-10 09:25:22 +07:00
parent 0423830e55
commit 7aca4ef58f
3 changed files with 5 additions and 5 deletions

View File

@ -18422,7 +18422,7 @@
anchor.on('mousenter', function() { anchor.on('mousenter', function() {
var layer = this.getLayer(); var layer = this.getLayer();
anchor.getStage().getContainer().style.cursor = 'pointer'; anchor.getStage().getContainer().style.cursor = 'pointer';
this.strokeSize(this.strokeSize() * 4); this.strokeWidth(this.strokeWidth() * 4);
layer.draw(); layer.draw();
}); });
anchor.on('mouseout', function() { anchor.on('mouseout', function() {
@ -18431,7 +18431,7 @@
return; return;
} }
anchor.getStage().getContainer().style.cursor = ''; anchor.getStage().getContainer().style.cursor = '';
this.strokeSize(this.strokeSize() / 4); this.strokeWidth(this.strokeWidth() / 4);
layer.draw(); layer.draw();
}); });
this.add(anchor); this.add(anchor);

2
konva.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -148,7 +148,7 @@
anchor.on('mousenter', function() { anchor.on('mousenter', function() {
var layer = this.getLayer(); var layer = this.getLayer();
anchor.getStage().getContainer().style.cursor = 'pointer'; anchor.getStage().getContainer().style.cursor = 'pointer';
this.strokeSize(this.strokeSize() * 4); this.strokeWidth(this.strokeWidth() * 4);
layer.draw(); layer.draw();
}); });
anchor.on('mouseout', function() { anchor.on('mouseout', function() {
@ -157,7 +157,7 @@
return; return;
} }
anchor.getStage().getContainer().style.cursor = ''; anchor.getStage().getContainer().style.cursor = '';
this.strokeSize(this.strokeSize() / 4); this.strokeWidth(this.strokeWidth() / 4);
layer.draw(); layer.draw();
}); });
this.add(anchor); this.add(anchor);