MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / initializeArchive

Function initializeArchive

src/utils/zipLoader.ts:111–119  ·  view source on GitHub ↗

* Initialize libarchive.js with the correct worker URL.

()

Source from the content-addressed store, hash-verified

109 * Initialize libarchive.js with the correct worker URL.
110 */
111async function initializeArchive(): Promise<void> {
112 if (archiveInitialized) return;
113
114 Archive.init({
115 workerUrl: publicAsset('workers/worker-bundle.js'),
116 });
117
118 archiveInitialized = true;
119}
120
121/**
122 * Process a ZIP archive: extract COLMAP files immediately, build index for images.

Callers 2

loadZipFromUrlFunction · 0.85
loadZipFromFileFunction · 0.85

Calls 1

publicAssetFunction · 0.90

Tested by

no test coverage detected