mirror of
https://github.com/konvajs/konva.git
synced 2026-01-22 21:02:26 +08:00
perf optimizations
This commit is contained in:
@@ -92,6 +92,7 @@
|
||||
transformsEnabled: 'position',
|
||||
x: 10,
|
||||
y: 10,
|
||||
perfectDrawEnabled: false,
|
||||
});
|
||||
|
||||
bunny.speedX = Math.random() * 10;
|
||||
@@ -122,6 +123,7 @@
|
||||
transformsEnabled: 'position',
|
||||
x: 0,
|
||||
y: 0,
|
||||
perfectDrawEnabled: false,
|
||||
});
|
||||
bunny.speedX = Math.random() * 10;
|
||||
bunny.speedY = Math.random() * 10 - 5;
|
||||
|
||||
@@ -3861,9 +3861,9 @@ suite('Transformer', function () {
|
||||
// proxy drag to other nodes
|
||||
assert.equal(rect2.x(), 105);
|
||||
assert.equal(rect2.y(), 105);
|
||||
assert.equal(dragstart, 2);
|
||||
assert.equal(dragmove, 2);
|
||||
assert.equal(dragend, 2);
|
||||
assert.equal(dragstart, 1);
|
||||
assert.equal(dragmove, 1);
|
||||
assert.equal(dragend, 1);
|
||||
});
|
||||
|
||||
test('reattach from several and drag one', function () {
|
||||
|
||||
Reference in New Issue
Block a user