rasterization
This commit is contained in:
parent
9ea84e650c
commit
a69aee2d19
5 changed files with 115 additions and 45 deletions
|
@ -20,10 +20,12 @@ let vel = [0, 0];
|
|||
let center = [0, 0];
|
||||
let lastPos = [0, 0];
|
||||
let isMouse = false;
|
||||
let zoom = 0.8;
|
||||
let zoom = 1;
|
||||
|
||||
let id = '';
|
||||
|
||||
ctx.imageSmoothingEnabled = false;
|
||||
|
||||
function fixEvent(e) {
|
||||
let r = map.getBoundingClientRect();
|
||||
e = { clientX: e.clientX, clientY: e.clientY };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue