update move. scale mapping
This commit is contained in:
11
RobotApp.Client/wwwroot/js/canvas.js
Normal file
11
RobotApp.Client/wwwroot/js/canvas.js
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user