refactor(es modules): restore old functions with TS

This commit is contained in:
Azgaar 2022-06-27 02:21:15 +03:00
parent aa214a7826
commit dea496018c
7 changed files with 55 additions and 47 deletions

View file

@ -7,6 +7,7 @@ window.viewY = 0;
window.Zoom = (function () {
function onZoom() {
if (!d3.event?.transform) return;
const {k, x, y} = d3.event.transform;
const isScaleChanged = Boolean(scale - k);