feat: Update SceneModule to manage camera state and viewport, refactor WebGL layer to utilize Scene methods

This commit is contained in:
Azgaar 2026-03-13 02:39:40 +01:00
parent 42557881bb
commit 52708e50c5
10 changed files with 128 additions and 26 deletions

View file

@ -450,7 +450,7 @@ function findBurgForMFCG(params) {
}
function handleZoom(isScaleChanged, isPositionChanged) {
viewbox.attr("transform", `translate(${viewX} ${viewY}) scale(${scale})`);
Scene.applyViewboxTransform();
if (isPositionChanged) {
if (layerIsOn("toggleCoordinates")) drawCoordinates();