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

Function setActiveZipArchive

src/utils/zipArchiveState.ts:20–32  ·  view source on GitHub ↗
(
  archive: ArchiveReader,
  imageIndex: Map<string, ArchiveEntry>,
  fileSize = 0,
  imageCount = 0
)

Source from the content-addressed store, hash-verified

18 * Set the active ZIP archive for lazy image extraction.
19 */
20export function setActiveZipArchive(
21 archive: ArchiveReader,
22 imageIndex: Map<string, ArchiveEntry>,
23 fileSize = 0,
24 imageCount = 0
25): void {
26 clearActiveZipArchive();
27
28 activeArchive = archive;
29 activeImageIndex = imageIndex;
30 activeZipFileSize = fileSize;
31 activeZipImageCount = imageCount;
32}
33
34/**
35 * Get the active ZIP image index.

Callers 1

Calls 1

clearActiveZipArchiveFunction · 0.85

Tested by

no test coverage detected