mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
refactor(es modules): restore old functions with TS
This commit is contained in:
parent
aa214a7826
commit
dea496018c
7 changed files with 55 additions and 47 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue