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

Function loadShareDataCompression

src/utils/shareDataCodec.ts:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23type ShareDataLengthBytes = 2 | 4;
24
25export async function loadShareDataCompression(): Promise<void> {
26 if (fflateLoaded) return;
27 const fflate = await import('fflate');
28 deflateSync = fflate.deflateSync;
29 inflateSync = fflate.inflateSync;
30 fflateLoaded = true;
31}
32
33/**
34 * Shareable UI configuration that gets embedded in the URL.

Callers 2

decodeShareDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected