|
@@ -80,8 +80,11 @@ export class ImageEditor {
|
|
|
this.eventBus._on('imagePropertyChanged', this.onHandlePropertyPanelChanged)
|
|
|
this.eventBus._on('showContentEditorType', this.onShowContentEditorType)
|
|
|
|
|
|
- if (this.isUpdate) await this.updateCanvas()
|
|
|
- else await this.getRect()
|
|
|
+ if (this.isUpdate) {
|
|
|
+ await this.updateCanvas()
|
|
|
+ } else {
|
|
|
+ await this.getRect()
|
|
|
+ }
|
|
|
|
|
|
this.opacity = await this.messageHandler.sendWithPromise('GetImageTransparency', this.editAreaPtr)
|
|
|
|