mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-02 21:47:24 +02:00
feat: Update SceneModule to manage camera state and viewport, refactor WebGL layer to utilize Scene methods
This commit is contained in:
parent
42557881bb
commit
52708e50c5
10 changed files with 128 additions and 26 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue