mirror of
https://github.com/konvajs/konva.git
synced 2025-09-19 10:47:59 +08:00
checking in first phase of new hit detection algo, which enables high performance event detections even if there are hundreds of thousands of shapes. This is a giant improvement over the previous algo, and is a fairly big architectural change. Since the Animation architecture and API is also changing, I feel that these changes are big enough to warrant a new major version, v4.0.0
This commit is contained in:
@@ -102,15 +102,15 @@ Test.prototype.tests = {
|
||||
// update tooltip
|
||||
console.log('mouseover')
|
||||
var mousePos = stage.getMousePosition();
|
||||
//tooltip.setPosition(mousePos.x + 5, mousePos.y + 5);
|
||||
//tooltip.setText("node: " + i + ", color: " + color);
|
||||
//tooltip.show();
|
||||
//tooltipLayer.draw();
|
||||
tooltip.setPosition(mousePos.x + 5, mousePos.y + 5);
|
||||
tooltip.setText("node: " + i + ", color: " + color);
|
||||
tooltip.show();
|
||||
tooltipLayer.draw();
|
||||
});
|
||||
|
||||
circle.on("mouseout", function() {
|
||||
//tooltip.hide();
|
||||
//tooltipLayer.draw();
|
||||
tooltip.hide();
|
||||
tooltipLayer.draw();
|
||||
});
|
||||
|
||||
circlesLayer.add(circle);
|
||||
@@ -132,9 +132,9 @@ Test.prototype.tests = {
|
||||
|
||||
|
||||
stage.add(circlesLayer);
|
||||
//stage.add(tooltipLayer);
|
||||
stage.add(tooltipLayer);
|
||||
|
||||
document.body.appendChild(stage.pathCanvas.element)
|
||||
document.body.appendChild(circlesLayer.bufferCanvas.element)
|
||||
|
||||
},
|
||||
'DRAWING - draw rect vs image from image data': function(containerId) {
|
||||
|
Reference in New Issue
Block a user