From ec55bc58b2427b1bb4db199f7b29fd4dab28516f Mon Sep 17 00:00:00 2001
From: Joshua Sheridan
Date: Sun, 2 Apr 2023 10:25:34 -0400
Subject: Rename zoomselection to zoomdesign
---
electron/src/renderer/assets/js/simulator.js | 10 +++++-----
electron/src/renderer/components/Simulator.vue | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/electron/src/renderer/assets/js/simulator.js b/electron/src/renderer/assets/js/simulator.js
index fffb77d6..91d03a1b 100644
--- a/electron/src/renderer/assets/js/simulator.js
+++ b/electron/src/renderer/assets/js/simulator.js
@@ -522,11 +522,11 @@ export default {
.back()
this.page_specs["bbox"] = page.bbox()
},
- zoomSelection () {
+ zoomDesign () {
let [minx, miny, maxx, maxy] = this.stitchPlan.bounding_box
- let selectionWidth = maxx - minx
- let selectionHeight = maxy - miny
- this.svg.viewbox(0, 0, selectionWidth, selectionHeight);
+ let designWidth = maxx - minx
+ let designHeight = maxy - miny
+ this.svg.viewbox(0, 0, designWidth, designHeight);
this.resizeCursor()
},
zoomPage () {
@@ -619,7 +619,7 @@ export default {
Mousetrap.bind("space", this.toggleAnimation)
Mousetrap.bind("+", this.animationForwardOneStitch)
Mousetrap.bind("-", this.animationBackwardOneStitch)
- Mousetrap.bind("]", this.zoomSelection)
+ Mousetrap.bind("]", this.zoomDesign)
Mousetrap.bind("[", this.zoomPage)
this.svg.on('zoom', this.resizeCursor)
diff --git a/electron/src/renderer/components/Simulator.vue b/electron/src/renderer/components/Simulator.vue
index 495f1c4c..bbcb5138 100644
--- a/electron/src/renderer/components/Simulator.vue
+++ b/electron/src/renderer/components/Simulator.vue
@@ -156,7 +156,7 @@
- Zoom selection
+ Zoom design
] Right square bracket
@@ -220,7 +220,7 @@
-