pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

Align snapTo based on Grid dots if grid and snapTo is the same size

Open mmailaender opened this issue 2 years ago • 3 comments
trafficstars

The (default) gridWith is 22px big. If the snapTo is also set to 22px the alignment of the nodes should be based on the Grid dots.

Current behavior: image

Expected behavior (Screenshot from React Flow): image

mmailaender avatar Nov 16 '23 16:11 mmailaender

Hi! I've tried to force this behavior on v8 with a custom background component (with background-image: radial-gradient(), position & size), but didn't succeed for now. Just don't have time to finish it properly. Maybe I'll return to this later.
And, yeah, that is expected behavior out-of-box if we take React Flow as a prototype.

kkarpeev avatar Dec 01 '23 15:12 kkarpeev

Maybe an easy solution could be to align the background grid with x: 0 and y: 0?

Currently x: 0 and y: 0 is in the center of 4 dots. image

And instead making one dot as the anchor for x: 0 and y: 0 like this: image

mmailaender avatar Dec 01 '23 17:12 mmailaender

Maybe an easy solution could be to align the background grid with x: 0 and y: 0?

Have you tried zoom?

kkarpeev avatar Jun 18 '24 22:06 kkarpeev