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.
2 parents 0c4cb08 + d7a5a31 commit 1adaca1Copy full SHA for 1adaca1
src/Components/Drawing.vue
@@ -71,6 +71,7 @@ export default {
71
dx: 0,
72
dy: 0,
73
dw: 0,
74
+ dh: 0,
75
direction: '',
76
// ratio: this.originWidth / this.originHeight,
77
}
@@ -119,6 +120,7 @@ export default {
119
120
let d = -Infinity
121
d = Math.max(_dx, _dy * this.ratio)
122
this.dw = d
123
+ this.dh = d / this.ratio
124
125
126
},
@@ -145,11 +147,13 @@ export default {
145
147
x: coordinate.detail.x,
146
148
y: coordinate.detail.y,
149
width: this.width + this.dw,
150
+ height: this.height + this.dh,
151
scale: (this.width + this.dw) / this.originWidth,
152
})
153
this.dx = 0
154
this.dy = 0
155
this.dw = 0
156
+ this.dh = 0
157
this.direction = ''
158
159
this.operation = ''
0 commit comments