mirror of
https://github.com/konvajs/konva.git
synced 2025-10-14 03:24:54 +08:00
further decoupled scene, hit, and buffer graph drawing. To define a custom hit draw function, you now need to set the drawHitFunc attr.
This commit is contained in:
@@ -106,7 +106,6 @@ Test.Modules.CIRCLE = {
|
||||
offset: [-200, -70]
|
||||
});
|
||||
|
||||
//document.body.appendChild(layer.bufferCanvas.element)
|
||||
};
|
||||
imageObj.src = '../assets/darth-vader.jpg';
|
||||
|
||||
@@ -160,7 +159,7 @@ Test.Modules.CIRCLE = {
|
||||
|
||||
test(fill.colorStops.length === 6, 'fill colorStops length should be 6');
|
||||
|
||||
//document.body.appendChild(layer.bufferCanvas.element)
|
||||
|
||||
|
||||
},
|
||||
'add circle': function(containerId) {
|
||||
@@ -216,7 +215,7 @@ Test.Modules.CIRCLE = {
|
||||
|
||||
test(circle.getName() === 'myCircle', 'circle name should be myCircle');
|
||||
|
||||
document.body.appendChild(layer.bufferCanvas.element)
|
||||
|
||||
},
|
||||
'add circle with opacity': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
|
@@ -115,7 +115,7 @@ Test.Modules.Text = {
|
||||
//document.body.appendChild(layer.bufferCanvas.element)
|
||||
|
||||
//layer.setListening(false);
|
||||
layer.drawBuffer();
|
||||
layer.drawHit();
|
||||
|
||||
},
|
||||
'test size setters and getters': function(containerId) {
|
||||
|
Reference in New Issue
Block a user