@lunit/insight-viewer
Version:
Based on the cornerstone library, it provides several components for handling Dicom images
13 lines (12 loc) • 570 B
TypeScript
/**
* Calculate progress status value for single/multiple image(s) fetching.
* @param loadedCount The count of loaded images.
* @param totalCount The length of images to load.
* @param progress The progress status of image to be loading. Repeat 0 to 100 for each new image fetching.
* @returns Total progress. When all images are loaded, return 100. Otherwise, return rounded down value.
*/
export declare function getProgress({ loadedCount, totalCount, progress, }: {
loadedCount: number;
totalCount: number;
progress: number;
}): number;