diff options
| author | Joshua Sheridan <josh@joshuasheridan.com> | 2023-04-02 10:25:34 -0400 |
|---|---|---|
| committer | Joshua Sheridan <josh@joshuasheridan.com> | 2023-04-02 10:25:34 -0400 |
| commit | ec55bc58b2427b1bb4db199f7b29fd4dab28516f (patch) | |
| tree | 9df60a5e8cfa8e56a731a6ad9573b1b72ce44f42 | |
| parent | 3b69c82f70fef245ee9613c28fb98256a6230913 (diff) | |
Rename zoomselection to zoomdesign
| -rw-r--r-- | electron/src/renderer/assets/js/simulator.js | 10 | ||||
| -rw-r--r-- | 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 @@ <font-awesome-icon icon="search-plus" class="fa-button"/> </p> <p> - <translate>Zoom selection</translate> + <translate>Zoom design</translate> </p> <p> <translate>] Right square bracket</translate> @@ -220,7 +220,7 @@ <button v-on:click="zoomPage" :title="$gettext('Zoom page ([)')"> <font-awesome-icon icon="search-minus" size="2x" class="fa-button"/> </button> - <button v-on:click="zoomSelection" :title="$gettext('Zoom selection (])')"> + <button v-on:click="zoomDesign" :title="$gettext('Zoom design (])')"> <font-awesome-icon icon="search-plus" size="2x" class="fa-button"/> </button> </fieldset> |
