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

Function buildEmbedUrl

src/utils/shareUrl.ts:46–50  ·  view source on GitHub ↗
(shareableUrl: string)

Source from the content-addressed store, hash-verified

44}
45
46export function buildEmbedUrl(shareableUrl: string): string {
47 const url = new URL(shareableUrl);
48 url.searchParams.set('embed', '1');
49 return url.toString();
50}
51
52export function generateIframeHtml(embedUrl: string): string {
53 return `<iframe src="${embedUrl}" width="100%" height="600" frameborder="0" allowfullscreen></iframe>`;

Callers 2

shareUrl.test.tsFile · 0.90
generateEmbedUrlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected