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