Molkit 0.8.0
Released May 8, 2026
New Features
- Clear Canvas now opens a custom confirmation dialog instead of the browser's default prompt (red Clear button, Cancel as safe default, Escape to cancel, focus trap)
- Distribution gap-spacing indicator now displays a numeric pixel-width label at each gap (PowerPoint convention)
- Distribution guides now fire during resize, not just drag: resizing a textbox to match the spacing pattern of flanking siblings snaps and shows the indicator
- Alignment guides now have small tick marks at each aligned object's centerline along the guide, making it obvious which objects are participating
- Alignment guides now clip to the viewport with a small bleed-out tick when alignment continues to an off-screen target, instead of drawing screen-spanning lines pointing at nothing
Improvements
- Distribution gap-spacing indicator now sits below (H chains) or right-of (V chains) the involved boxes with dashed connector drop-lines, instead of through the boxes' center where it could overlap with the alignment line
- Alignment guides now cap by relative strength: only guides whose distance is competitive with the strongest match are shown, preventing clutter on dense scenes
- Distribution chain visualization caps at the 5 nearest gaps when many objects are evenly spaced; snap math still uses the full chain so all items align correctly, only the visualization shrinks
- Smart-guide engine now skips far-away static objects via a proximity prefilter, eliminating wasted per-frame work on dense canvases
- Animation-frame drag and resize now respect the same viewport clipping for alignment guides as canvas-level drag and resize
- Smart-guide hysteresis flags reset when Ctrl or Meta is held during resize so the next ungated frame starts cleanly without sticky-snap behavior
Bug Fixes
- Curved arrows anchored to a bond no longer cause that bond to display two close-together connectors during distribution snap; anchored annotations (with startAttachment or endAttachment) are excluded from distribution chains because they are owned by their anchor target
- Snap labels and the new gap-distance label now read the correct CSS variable for their background color (was always falling back to white, breaking dark mode readability)