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}`); } }