summaryrefslogtreecommitdiff
path: root/electron/src/renderer/assets/js/simulator.js
diff options
context:
space:
mode:
authorJoshua Sheridan <josh@joshuasheridan.com>2023-04-02 10:25:34 -0400
committerJoshua Sheridan <josh@joshuasheridan.com>2023-04-02 10:25:34 -0400
commitec55bc58b2427b1bb4db199f7b29fd4dab28516f (patch)
tree9df60a5e8cfa8e56a731a6ad9573b1b72ce44f42 /electron/src/renderer/assets/js/simulator.js
parent3b69c82f70fef245ee9613c28fb98256a6230913 (diff)
Rename zoomselection to zoomdesign
Diffstat (limited to 'electron/src/renderer/assets/js/simulator.js')
-rw-r--r--electron/src/renderer/assets/js/simulator.js10
1 files changed, 5 insertions, 5 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)