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:
Eric Rowell
2012-08-11 16:22:01 -07:00
parent 0f1a424840
commit 468f8ef2d3
8 changed files with 93 additions and 125 deletions

View File

@@ -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) {