undo autoformat nonsense

This commit is contained in:
Ruben van de Ven 2023-02-23 19:11:18 +01:00
parent ec110deae7
commit e9d2809a4e
1 changed files with 4 additions and 4 deletions

View File

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