Magnetic Rects add equal spacing snapping to Foblex Flow for Angular.
When you drag a node near a row or column of already aligned nodes, the plugin:
This is especially useful for building clean diagrams, UI flows, and node editors where consistent spacing matters.
<f-magnetic-rects> inside <f-flow>.alignThreshold — how close nodes must be to be considered aligned on the helper linespacingThreshold — how close the dragged node must be to the “ideal spacing” position to snapTip: Start with
alignThreshold="30–50"andspacingThreshold="30–50"for a “Figma-like” feel.
Defines the maximum distance (in px) for nodes to be treated as aligned on the same guide line.
Controls how close the dragged node must be to the “equal spacing” position before snapping is suggested.
[component.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/magnetic-rects/magnetic-rects.html [component.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/magnetic-rects/magnetic-rects.ts [component.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/extensions/magnetic-rects/magnetic-rects.scss [common.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/projects/f-examples/_flow-common.scss