update move. scale mapping

This commit is contained in:
Đăng Nguyễn
2025-10-02 09:49:16 +07:00
parent 2640fb92c1
commit 93097412b0
10 changed files with 560 additions and 93 deletions

View File

@@ -0,0 +1,11 @@
window.getElementSize = (element) => {
return {
width: element.clientWidth,
height: element.clientHeight,
};
}
window.setCanvasSize = (canvas, width, height) => {
canvas.width = width;
canvas.height = height;
}