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

Function joinManifestUrlPath

src/hooks/urlLoaderPolicy.ts:84–89  ·  view source on GitHub ↗
(baseUrl: string, relativePath: string)

Source from the content-addressed store, hash-verified

82}
83
84export function joinManifestUrlPath(baseUrl: string, relativePath: string): string {
85 const encodedPath = encodeUrlPath(relativePath);
86 return baseUrl.endsWith('/')
87 ? `${baseUrl}${encodedPath}`
88 : `${baseUrl}/${encodedPath}`;
89}
90
91export function createDefaultManifest(baseUrl: string): ColmapManifest {
92 const cleanBaseUrl = baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl;

Callers 5

fetchTextFunction · 0.90
fetchManifestFileFunction · 0.90

Calls 1

encodeUrlPathFunction · 0.90

Tested by

no test coverage detected