mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 17:34:57 -05:00
Fix nodes ui: Make nodes dot background to be the same as the snap to grid size and position Update to Flow.tsx Changes the size and offset of the dots background to be the same size as the snap to grid, and also fix the background dot pattern alignment. Currently, the snapGrid is 25x25, and the default background dot gap is 20x20, these do not align. This is fixed by making the gap property of the background the same as the snapGrid. Additionally, there is a bug in the rectFlow background code that incorrectly sets the offset to be the centre of the dot pattern with the default offset of 0. To work around this issue, setting the background offset property to the snapGrid size will realign the dot pattern correctly. I have logged a bug for the rectFlow background issue in its repo. https://github.com/xyflow/xyflow/issues/5405