From e9d2809a4e37a3e9f6abca22965e2ce504a68565 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Thu, 23 Feb 2023 19:11:18 +0100 Subject: [PATCH] undo autoformat nonsense --- app/www/annotate.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/www/annotate.js b/app/www/annotate.js index d20da63..47f9b4b 100644 --- a/app/www/annotate.js +++ b/app/www/annotate.js @@ -1059,7 +1059,7 @@ class Annotator extends EventTarget { // } // for (let index = 0; index < inPath_i; index++) { - // const pathEl = this.svgEl.querySelector(`.path${ index } `); + // const pathEl = this.svgEl.querySelector(`.path${ index }`); // if (pathEl) { // pathEl.classList.add('before_in'); // } @@ -1071,7 +1071,7 @@ class Annotator extends EventTarget { // const path = this.strokes[path_i]; // // console.log(path); - // let pathEl = this.svgEl.querySelector(`.path${ path_i } `); + // let pathEl = this.svgEl.querySelector(`.path${ path_i }`); // if (!pathEl) { // pathEl = document.createElementNS('http://www.w3.org/2000/svg', 'path'); // pathEl.style.stroke = path.color; @@ -1099,7 +1099,7 @@ class Annotator extends EventTarget { updateViewbox() { if (this.config.crop_to_fit) { - this.svgEl.setAttribute('viewBox', `${this.bounding_box.x} ${this.bounding_box.y} ${this.bounding_box.width} ${this.bounding_box.height} `); + this.svgEl.setAttribute('viewBox', `${this.bounding_box.x} ${this.bounding_box.y} ${this.bounding_box.width} ${this.bounding_box.height}`); } else { let x, y, w, h; if (this.currentViewboxI !== null) { @@ -1113,7 +1113,7 @@ class Annotator extends EventTarget { w = this.dimensions[0], h = this.dimensions[1]; } - this.svgEl.setAttribute('viewBox', `${x} ${y} ${w} ${h} `); + this.svgEl.setAttribute('viewBox', `${x} ${y} ${w} ${h}`); } }