@@ -95,22 +95,22 @@ export class CanvasObjectImage extends CanvasModuleBase {
95
95
}
96
96
97
97
updateImageSource = async ( imageName : string ) => {
98
- this . log . trace ( { imageName } , 'Updating image source' ) ;
98
+ this . log . trace ( { imageName } , 'Updating image source' ) ;
99
99
100
- this . isLoading = true ;
101
- this . konva . group . visible ( true ) ;
100
+ this . isLoading = true ;
101
+ this . konva . group . visible ( true ) ;
102
102
103
- if ( ! this . konva . image ) {
104
- this . konva . placeholder . group . visible ( false ) ;
105
- this . konva . placeholder . text . text ( t ( 'common.loadingImage' , 'Loading Image' ) ) ;
106
- }
103
+ if ( ! this . konva . image ) {
104
+ this . konva . placeholder . group . visible ( false ) ;
105
+ this . konva . placeholder . text . text ( t ( 'common.loadingImage' , 'Loading Image' ) ) ;
106
+ }
107
107
108
- const imageDTO = await getImageDTOSafe ( imageName ) ;
109
- if ( imageDTO === null ) {
108
+ const imageDTO = await getImageDTOSafe ( imageName ) ;
109
+ if ( imageDTO === null ) {
110
110
// ImageDTO not found (or network error)
111
111
this . onFailedToLoadImage ( t ( 'controlLayers.unableToFindImage' , 'Unable to find image' ) ) ;
112
- return ;
113
- }
112
+ return ;
113
+ }
114
114
115
115
const imageElementResult = await withResultAsync ( ( ) => loadImage ( imageDTO . image_url ) ) ;
116
116
if ( imageElementResult . isErr ( ) ) {
@@ -146,6 +146,7 @@ export class CanvasObjectImage extends CanvasModuleBase {
146
146
image : this . imageElement ,
147
147
width,
148
148
height,
149
+ visible : true ,
149
150
} ) ;
150
151
} else {
151
152
this . log . trace ( 'Creating new Konva image' ) ;
0 commit comments