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

Function createBitmapStub

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

Source from the content-addressed store, hash-verified

213}
214
215function createBitmapStub(overrides: Partial<ImageBitmap> = {}): ImageBitmap {
216 return buildImageBitmap({
217 width: 64,
218 height: 32,
219 close: vi.fn(),
220 ...overrides,
221 });
222}
223
224function createBitmapDeferred(): {
225 promise: Promise<ImageBitmap>;

Callers 1

Calls 1

buildImageBitmapFunction · 0.90

Tested by

no test coverage detected