From ab1cdc0eca8888b1f9af976580594bd7ddad3f84 Mon Sep 17 00:00:00 2001 From: bindeali <56399637+bindeali@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:49:05 +0200 Subject: [PATCH] Moving or zooming a diagram affects also other open diagrams #536 --- src/function/FunctionDiagram.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/function/FunctionDiagram.ts b/src/function/FunctionDiagram.ts index fb332848..8c4a8821 100644 --- a/src/function/FunctionDiagram.ts +++ b/src/function/FunctionDiagram.ts @@ -52,6 +52,7 @@ export function changeDiagrams(diagram?: string) { StoreSettings.update((s) => { s.selectedDiagram = diagram!; }); + paper.translate(Diagrams[diagram].origin.x, Diagrams[diagram].origin.y) } else { console.warn( "Attempted change to a diagram ID " + diagram + " that doesn't exist."