Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

Merge branch 'main' into fix/canvas-layer-guarding

Josh Corbettfeadb23a033f
diff --cc invokeai/frontend/webv2/src/workbench/canvas-engine/document/bitmapStore.test.ts
index 0016e5daeb,d5bcc2b225..e0609578d7
--- a/invokeai/frontend/webv2/src/workbench/canvas-engine/document/bitmapStore.test.ts
+++ b/invokeai/frontend/webv2/src/workbench/canvas-engine/document/bitmapStore.test.ts
@@@ -64,13 -59,10 +64,12 @@@ const createHarness = (options: Harness
);
const uploadImage =
options.uploadImage ??
- vi.fn(
- (_blob: Blob): Promise<CanvasImageUploadResult> =>
- Promise.resolve({ height: 10, imageName: `img-${uploadSeq++}`, width: 10 })
+ vi.fn((_blob: Blob): Promise<CanvasImageUploadResult> =>
+ Promise.resolve({ height: 10, imageName: `img-${uploadSeq++}`, width: 10 })
);
const dispatch = vi.fn((_action: CanvasProjectMutation) => true);
+ const clearBitmap = options.clearBitmap ? vi.fn(options.clearBitmap) : undefined;
+ const trimLayerPixels = options.trimLayerPixels ? vi.fn(options.trimLayerPixels) : undefined;
const store = createBitmapStore({
debounceMs: 1500,