From 579df471dee7b6fe0be8a9ad8e2fa2362c9bf6cd Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 28 Apr 2020 00:14:31 +0200 Subject: compiler: add picture size to index This is needed for the picture viewer fancy loading phase. --- viewer/src/@types/gallery.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'viewer') diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index de1c0dd..956ab6b 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts @@ -49,12 +49,17 @@ declare namespace Gallery { thumbnail?: Thumbnail properties: OtherProperties | PictureProperties | DirectoryProperties, } + interface Resolution { + width: number, + height: number, + } interface OtherProperties { type: "other", } interface PictureProperties { type: "picture", resource: string, + resolution: Resolution } interface DirectoryProperties { type: "directory", @@ -62,10 +67,7 @@ declare namespace Gallery { } interface Thumbnail { resource: string, - resolution: { - width: number, - height: number, - } + resolution: Resolution } type RawTag = string; type ItemType = "other" | "picture" | "directory"; -- cgit v1.2.3