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

Function isSplatUrl

src/hooks/urlLoaderSplatSource.ts:36–42  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

34}
35
36export function isSplatUrl(url: string): boolean {
37 try {
38 return isSplatFilePath(new URL(url).pathname);
39 } catch {
40 return isSplatFilePath(url.split(/[?#]/, 1)[0]);
41 }
42}
43
44export async function fetchSplatUrlFile(
45 url: string,

Callers 2

useUrlLoaderFunction · 0.90

Calls 1

isSplatFilePathFunction · 0.90

Tested by

no test coverage detected