feat(canvas): add mixer drag-resize and mixer->render bake
This commit is contained in:
@@ -17,6 +17,13 @@ const sourceLoaderMocks = vi.hoisted(() => ({
|
||||
|
||||
vi.mock("@/lib/image-pipeline/source-loader", () => ({
|
||||
loadSourceBitmap: sourceLoaderMocks.loadSourceBitmap,
|
||||
loadRenderSourceBitmap: ({ sourceUrl }: { sourceUrl?: string }) => {
|
||||
if (!sourceUrl) {
|
||||
throw new Error("Render source is required.");
|
||||
}
|
||||
|
||||
return sourceLoaderMocks.loadSourceBitmap(sourceUrl);
|
||||
},
|
||||
}));
|
||||
|
||||
function createPreviewPixels(): Uint8ClampedArray {
|
||||
|
||||
Reference in New Issue
Block a user