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.[example.html] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/magnetic-rects/example.html [example.ts] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/magnetic-rects/example.ts [example.scss] <<< https://raw.githubusercontent.com/Foblex/f-flow/main/libs/f-examples/extensions/magnetic-rects/example.scss