refactor: submap - recalculateMapSize

This commit is contained in:
Azgaar 2024-10-22 02:21:48 +02:00
parent 499762f1bb
commit 1305246d7b
5 changed files with 46 additions and 25 deletions

View file

@ -495,14 +495,6 @@ function resetZoom(d = 1000) {
svg.transition().duration(d).call(zoom.transform, d3.zoomIdentity);
}
// calculate x y extreme points of viewBox
function getViewBoxExtent() {
return [
[Math.abs(viewX / scale), Math.abs(viewY / scale)],
[Math.abs(viewX / scale) + graphWidth / scale, Math.abs(viewY / scale) + graphHeight / scale]
];
}
// active zooming feature
function invokeActiveZooming() {
const isOptimized = shapeRendering.value === "optimizeSpeed";