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."