diff --git a/src/App.ts b/src/App.ts index 6f1c5bb..19b34a5 100644 --- a/src/App.ts +++ b/src/App.ts @@ -61,6 +61,11 @@ class Artwork img.src = this.imgFull; return this; } + + get isLoaded() + { + return this.width != undefined && this.height != undefined; + } } @Component({components: {PhotoSwipper}})