We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5c8448 commit d7a5a31Copy full SHA for d7a5a31
src/Components/Drawing.vue
@@ -69,6 +69,7 @@ export default {
69
dx: 0,
70
dy: 0,
71
dw: 0,
72
+ dh: 0,
73
direction: '',
74
// ratio: this.originWidth / this.originHeight,
75
}
@@ -117,6 +118,7 @@ export default {
117
118
let d = -Infinity
119
d = Math.max(_dx, _dy * this.ratio)
120
this.dw = d
121
+ this.dh = d / this.ratio
122
123
124
},
@@ -143,11 +145,13 @@ export default {
143
145
x: this.x + this.dx,
144
146
y: this.y + this.dy,
147
width: this.width + this.dw,
148
+ height: this.height + this.dh,
149
scale: (this.width + this.dw) / this.originWidth,
150
})
151
this.dx = 0
152
this.dy = 0
153
this.dw = 0
154
+ this.dh = 0
155
this.direction = ''
156
157
this.operation = ''
0 commit comments