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

Function getManifestLoadSourceInfo

src/hooks/urlLoaderPolicy.ts:482–505  ·  view source on GitHub ↗
(
  manifest: ColmapManifest,
  source: ManifestLoadSource
)

Source from the content-addressed store, hash-verified

480}
481
482export function getManifestLoadSourceInfo(
483 manifest: ColmapManifest,
484 source: ManifestLoadSource
485): ManifestLoadSourceInfo {
486 const bases = getManifestLazySourceBases(manifest);
487
488 if (source.type === 'manifest') {
489 return {
490 ...bases,
491 sourceType: 'manifest',
492 sourceUrl: null,
493 sourceManifest: manifest,
494 successLabel: 'manifest',
495 };
496 }
497
498 return {
499 ...bases,
500 sourceType: 'url',
501 sourceUrl: source.sourceUrl ?? manifest.baseUrl,
502 sourceManifest: null,
503 successLabel: 'URL',
504 };
505}
506
507export function normalizeLoadUrl(url: string): UrlNormalizationResult {
508 const steps: UrlNormalizationStep[] = [];

Callers 2

loadManifestSourceFunction · 0.90

Calls 1

Tested by

no test coverage detected