MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getPrefetchProgress

Function getPrefetchProgress

src/hooks/asyncImageCachePolicy.ts:26–31  ·  view source on GitHub ↗
(completed: number, total: number)

Source from the content-addressed store, hash-verified

24}
25
26export function getPrefetchProgress(completed: number, total: number): number {
27 if (total <= 0) {
28 return 1;
29 }
30 return completed / total;
31}
32
33export function shouldReportPrefetchProgress(
34 completed: number,

Callers 3

reportProgressFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected