refactor: hotkeys

This commit is contained in:
Azgaar 2022-07-09 16:01:00 +03:00
parent a15f60150f
commit 0dd7468184
9 changed files with 220 additions and 165 deletions

View file

@ -65,5 +65,9 @@ window.Zoom = (function () {
zoom.scaleTo(element, scale);
}
return {setZoomBehavior, invoke, force, to, reset, scaleExtent, translateExtent, scaleTo};
function translateBy(element, x, y) {
zoom.translateBy(element, x, y);
}
return {setZoomBehavior, invoke, force, to, reset, scaleExtent, translateExtent, scaleTo, translateBy};
})();