Selector: f-magnetic-rects
Class: FMagneticRects
FMagneticRects shows spacing and alignment helper rectangles while dragging nodes.
Use f-magnetic-rects when users need consistent visual rhythm (equal gaps) in addition to plain line alignment.
Typical use cases:
During drag, helper calculations detect candidate spacing/alignment relationships and render temporary rectangle overlays to show potential placement matches.
alignThreshold: number; Default: 100. Distance in pixels to show alignment guides for node edges/centers.spacingThreshold: number; Default: 100. Distance in pixels to show equal spacing guides between nodes..f-component Base class for flow primitives..f-magnetic-rects Host class..f-rect Rendered helper rectangle class.fDraggable; no drag means no helper rendering.[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