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

Function createBitmap

src/hooks/selectedImageTextureCache.test.ts:79–86  ·  view source on GitHub ↗
(overrides: Partial<ImageBitmap> = {})

Source from the content-addressed store, hash-verified

77});
78
79function createBitmap(overrides: Partial<ImageBitmap> = {}): ImageBitmap {
80 return buildImageBitmap({
81 width: 64,
82 height: 32,
83 close: vi.fn(),
84 ...overrides,
85 });
86}
87
88function createTexture(): THREE.Texture {
89 return new THREE.Texture(createBitmap());

Callers 2

createTextureFunction · 0.70

Calls 1

buildImageBitmapFunction · 0.90

Tested by

no test coverage detected