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

Function buildFile

src/test/builders/colmapBuilders.ts:48–50  ·  view source on GitHub ↗
(name = 'image.jpg', contents = 'test', type = 'image/jpeg')

Source from the content-addressed store, hash-verified

46}
47
48export function buildFile(name = 'image.jpg', contents = 'test', type = 'image/jpeg'): File {
49 return new File([contents], name, { type });
50}
51
52export function buildCamera(overrides: Partial<Camera> = {}): Camera {
53 const width = overrides.width ?? 640;

Calls

no outgoing calls

Tested by 6

createImageSourceFunction · 0.72
createFacadeFunction · 0.72
createOptionsFunction · 0.72
createDatasetFunction · 0.72
createHarnessFunction · 0.72
makeFilesFunction · 0.72