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

Function hasMaskFiles

src/utils/imageFileUtils.ts:58–65  ·  view source on GitHub ↗
(files: Map<string, File>)

Source from the content-addressed store, hash-verified

56 * Used to determine whether to show mask overlay controls.
57 */
58export function hasMaskFiles(files: Map<string, File>): boolean {
59 for (const path of files.keys()) {
60 if (isMaskImagePath(path)) {
61 return true;
62 }
63 }
64 return false;
65}
66
67/**
68 * Collect image files from a file map and create a lookup map.

Callers 1

processFileDropzoneFilesFunction · 0.90

Calls 1

isMaskImagePathFunction · 0.90

Tested by

no test coverage detected