undo autoformat nonsense

This commit is contained in:
Ruben van de Ven 2023-02-23 19:11:18 +01:00
parent ec110deae7
commit e9d2809a4e

View file

@ -1059,7 +1059,7 @@ class Annotator extends EventTarget {
// } // }
// for (let index = 0; index < inPath_i; index++) { // for (let index = 0; index < inPath_i; index++) {
// const pathEl = this.svgEl.querySelector(`.path${ index } `); // const pathEl = this.svgEl.querySelector(`.path${ index }`);
// if (pathEl) { // if (pathEl) {
// pathEl.classList.add('before_in'); // pathEl.classList.add('before_in');
// } // }
@ -1071,7 +1071,7 @@ class Annotator extends EventTarget {
// const path = this.strokes[path_i]; // const path = this.strokes[path_i];
// // console.log(path); // // console.log(path);
// let pathEl = this.svgEl.querySelector(`.path${ path_i } `); // let pathEl = this.svgEl.querySelector(`.path${ path_i }`);
// if (!pathEl) { // if (!pathEl) {
// pathEl = document.createElementNS('http://www.w3.org/2000/svg', 'path'); // pathEl = document.createElementNS('http://www.w3.org/2000/svg', 'path');
// pathEl.style.stroke = path.color; // pathEl.style.stroke = path.color;
@ -1099,7 +1099,7 @@ class Annotator extends EventTarget {
updateViewbox() { updateViewbox() {
if (this.config.crop_to_fit) { 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 { } else {
let x, y, w, h; let x, y, w, h;
if (this.currentViewboxI !== null) { if (this.currentViewboxI !== null) {
@ -1113,7 +1113,7 @@ class Annotator extends EventTarget {
w = this.dimensions[0], w = this.dimensions[0],
h = this.dimensions[1]; h = this.dimensions[1];
} }
this.svgEl.setAttribute('viewBox', `${x} ${y} ${w} ${h} `); this.svgEl.setAttribute('viewBox', `${x} ${y} ${w} ${h}`);
} }
} }