Skip to content

Commit 0164109

Browse files
committed
refactor(element-selection): improve code style
1 parent 8b327f5 commit 0164109

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

packages/element-selection/src/index.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,6 @@ export default class CropperSelection extends CropperElement {
328328
}
329329
}
330330

331-
protected $handleActionEnd(): void {
332-
this.$actionStartTarget = null;
333-
}
334-
335331
protected $handleAction(event: Event): void {
336332
if (this.multiple && !this.active) {
337333
return;
@@ -422,6 +418,10 @@ export default class CropperSelection extends CropperElement {
422418
}
423419
}
424420

421+
protected $handleActionEnd(): void {
422+
this.$actionStartTarget = null;
423+
}
424+
425425
protected $handleKeyDown(event: Event): void {
426426
if (
427427
this.hidden
@@ -549,7 +549,10 @@ export default class CropperSelection extends CropperElement {
549549
const hasValidAspectRatio = isPositiveNumber(aspectRatio);
550550
const { $canvas } = this;
551551
let {
552-
x, y, width, height,
552+
x,
553+
y,
554+
width,
555+
height,
553556
} = this;
554557

555558
switch (action) {

0 commit comments

Comments
 (0)