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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
fix(webv2): restore the 25px workflow grid
Josh Corbett05df4ee9561b
diff --git a/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx b/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsxindex 2ad4d82675..2d8ab007f1 100644--- a/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx+++ b/invokeai/frontend/webv2/src/features/workflow/ui/editor/WorkflowEditorView.tsx@@ -107,8 +107,9 @@ const edgeTypes: EdgeTypes = {* document change (undo, import, field edits), while transient view state* (selection, in-flight drags, the active tool) lives in local component state.*/-/** Snap spacing matches the background dot grid. */-const SNAP_GRID: [number, number] = [24, 24];+// 25px matches v6 so workflows aligned there stay on the grid here.+const GRID_SIZE = 25;+const SNAP_GRID: [number, number] = [GRID_SIZE, GRID_SIZE];const DELETE_KEY_CODES = ['Backspace', 'Delete'];@@ -1081,7 +1082,7 @@ const WorkflowFlow = ({ runtime }: { runtime: WorkflowRuntimeApi }) => {<BackgroundbgColor="var(--xy-background-color)"color="var(--wb-flow-grid)"- gap={24}+ gap={GRID_SIZE}id={`workflow-grid-${backgroundId}`}size={1.5}variant={BackgroundVariant.Dots}