Various fixes, smaller refactoring

This commit is contained in:
barsdeveloper
2023-02-04 00:15:58 +01:00
parent 8de12775a7
commit c501e2be3a
19 changed files with 175 additions and 181 deletions

View File

@@ -49,10 +49,9 @@ export default class IDraggableElement extends IElement {
}
computeSizes() {
const scaleCorrection = 1 / this.blueprint.getScale()
const bounding = this.getBoundingClientRect()
this.sizeX = bounding.width * scaleCorrection
this.sizeY = bounding.height * scaleCorrection
this.sizeX = this.blueprint.scaleCorrect(bounding.width)
this.sizeY = this.blueprint.scaleCorrect(bounding.height)
}
/** @param {PropertyValues} changedProperties */