refactor(resources.ts): update ImageJSON interface to include separate properties for low resolution and high resolution image URLs, heights, and widths for better organization and clarity

refactor(imageJSON.html): modify image resizing logic to generate separate low resolution and high resolution image URLs, heights, and widths to improve performance and optimize image loading
This commit is contained in:
Sped0n
2023-10-30 17:44:59 +08:00
parent 6be9717f2f
commit 3cbbc5b6da
2 changed files with 15 additions and 9 deletions

View File

@@ -1,11 +1,12 @@
// data structure for images info
export interface ImageJSON {
index: number
url: string
imgH: number
imgW: number
pColor: string
sColor: string
loUrl: string
loImgH: number
loImgW: number
hiUrl: string
hiImgH: number
hiImgW: number
}
export function initResources(): ImageJSON[] {