refactor(es modules): modulize utils

This commit is contained in:
Azgaar 2022-06-26 22:07:32 +03:00
parent b8ae515425
commit 4814bce58d
14 changed files with 99 additions and 83 deletions

View file

@ -1,9 +1,9 @@
"use strict";
import {debounce} from "@/utils/functionUtils";
// temporary expose to global
let scale = 1;
let viewX = 0;
let viewY = 0;
window.scale = 1;
window.viewX = 0;
window.viewY = 0;
window.Zoom = (function () {
function onZoom() {