diff options
author | Notkea | 2020-02-02 20:39:36 +0100 |
---|---|---|
committer | GitHub | 2020-02-02 20:39:36 +0100 |
commit | bd7b62e97ac3fc89be4df9f3bb15af6b3e6c2724 (patch) | |
tree | eb664b38fefc4a8088ae5c10366f52542e021ff5 /viewer/src/@types | |
parent | ce2f0262768bc3d56dd9a776a075c6ccf10a7ae3 (diff) | |
parent | 73e2dc5b39a5cd12c52b99ee076c1a1ad86a2ace (diff) | |
download | ldgallery-bd7b62e97ac3fc89be4df9f3bb15af6b3e6c2724.tar.gz |
Merge pull request #74 from pacien/feature-thumbnail-resolution-index
Add thumbnail size to index
Diffstat (limited to 'viewer/src/@types')
-rw-r--r-- | viewer/src/@types/gallery.d.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/viewer/src/@types/gallery.d.ts b/viewer/src/@types/gallery.d.ts index b112b6d..1987416 100644 --- a/viewer/src/@types/gallery.d.ts +++ b/viewer/src/@types/gallery.d.ts | |||
@@ -33,7 +33,7 @@ declare namespace Gallery { | |||
33 | description: string, | 33 | description: string, |
34 | tags: RawTag[], | 34 | tags: RawTag[], |
35 | path: string, | 35 | path: string, |
36 | thumbnail?: string, | 36 | thumbnail?: Thumbnail |
37 | properties: OtherProperties | PictureProperties | DirectoryProperties, | 37 | properties: OtherProperties | PictureProperties | DirectoryProperties, |
38 | } | 38 | } |
39 | interface OtherProperties { | 39 | interface OtherProperties { |
@@ -47,6 +47,13 @@ declare namespace Gallery { | |||
47 | type: "directory", | 47 | type: "directory", |
48 | items: Item[] | 48 | items: Item[] |
49 | } | 49 | } |
50 | interface Thumbnail { | ||
51 | resource: string, | ||
52 | resolution: { | ||
53 | width: number, | ||
54 | height: number, | ||
55 | } | ||
56 | } | ||
50 | type RawTag = string; | 57 | type RawTag = string; |
51 | type ItemType = "other" | "picture" | "directory"; | 58 | type ItemType = "other" | "picture" | "directory"; |
52 | } \ No newline at end of file | 59 | } \ No newline at end of file |