Skip to main content

Interface: ImageViewerProgress

Overall loading progress reported by ImageViewer's onProgress and <image-viewer>'s progress event.

Extends​

Properties​

loaded​

loaded: number

Bytes received so far.

Inherited from​

DownloadProgress.loaded


progress​

progress: number | null

Fraction from 0 to 1, or null while the file size is unknown.

Inherited from​

DownloadProgress.progress


stage​

stage: "download" | "decode" | "render"

The current step: download, then decode, then render (reported once, with totalProgress 1).


total​

total: number | null

File size in bytes, or null when the server does not provide a usable Content-Length.

Inherited from​

DownloadProgress.total


totalProgress​

totalProgress: number

Fraction from 0 to 1 across downloading, decoding and drawing. Never moves backwards within a load.