mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +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;
|
||||
|
||||
Reference in New Issue
Block a user