fix cells draw

This commit is contained in:
Pete Matsyburka
2024-04-21 00:31:52 +03:00
parent e78dd301ef
commit 668f6ca975
+1 -1
View File
@@ -219,7 +219,7 @@ export default {
this.newArea.y = e.offsetY / this.$refs.mask.clientHeight
}
if (this.drawField?.type === 'cells') {
if ((this.drawField?.type || this.drawFieldType) === 'cells') {
this.newArea.cell_w = this.newArea.h * (this.$refs.mask.clientHeight / this.$refs.mask.clientWidth)
}