mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 02:37:59 +08:00
new hit detection algo works with images that contain transparent pixels. Devs will need to use the createImageBuffer() method to create a higher precision buffer image
This commit is contained in:
@@ -350,7 +350,6 @@ Test.prototype.tests = {
|
||||
fill: 'green',
|
||||
stroke: 'blue',
|
||||
strokeWidth: 20,
|
||||
detectionType: 'pixel',
|
||||
draggable: true
|
||||
});
|
||||
|
||||
@@ -362,13 +361,8 @@ Test.prototype.tests = {
|
||||
log('mouseout');
|
||||
});
|
||||
|
||||
star.on('dragend', function() {
|
||||
this.saveImageData();
|
||||
});
|
||||
|
||||
layer.add(star);
|
||||
stage.add(layer);
|
||||
star.saveImageData();
|
||||
},
|
||||
'EVENTS - drag events click': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
@@ -799,7 +793,6 @@ Test.prototype.tests = {
|
||||
fill: 'red',
|
||||
stroke: 'black',
|
||||
strokeWidth: 4,
|
||||
//detectionType: 'pixel'
|
||||
});
|
||||
|
||||
Ellipse.setDraggable(true);
|
||||
@@ -812,7 +805,6 @@ Test.prototype.tests = {
|
||||
stroke: 'black',
|
||||
strokeWidth: 4,
|
||||
draggable: true
|
||||
//detectionType: 'pixel'
|
||||
});
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user