mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 20:19:30 -07:00
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:
@@ -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[] {
|
||||
|
||||
Reference in New Issue
Block a user