Molkit 0.2.1
Released April 4, 2026
New Features
- Bracket cap length slider in shape properties panel (adjustable serif/handle length with auto default)
- Electron transfer traveling dot color transition (source to target element color during arc)
- Electron transfer dark mode support via dual light/dark dot groups with CSS media query toggle
Improvements
- Scoped SVG CSS: every exported SVG gets a unique root ID and all CSS rules are namespaced under it, preventing cross-SVG cascade pollution when multiple SVGs are inlined on the same page
- Animated SVG export smoothness: 16 arc samples (up from 8) with linear spline interpolation
- Electron transfer source/target dot positions now read from rendered DOM (includes perpendicular offsets)
- Export filename from animation dialog now carries through to OS save dialog
- SVG player controls in toggle mode span the full container width using CSS container query units
Bug Fixes
- Sub-pixel jitter eliminated: text-rendering="geometricPrecision" on SVG root, translate coordinates rounded to 3dp, atom-group transforms rounded
- Comprehensive coordinate rounding pass on SMIL export eliminates 128+ unrounded floats that caused pair-boundary jitter
- Element label colors (O red, N blue, etc.) now render correctly in animated SVG exports and inside Reveal.js presentations
- Animated SVGs now display immediately in Reveal.js slides (first layer opacity starts at 1 instead of 0)
- Dark mode bonds now correctly themed in animated SVG exports (inline stroke stripped, element class added)
- Dark mode charge labels now correctly themed (inline fill stripped, element class added)
- Traveling electron dot size uses radical settings instead of hardcoded 1.8 radius
- Traveling electron dot carries source element color and CSS class for theme support
- Radical dots at radial offset positions (radialRadialOffsets) now rotate at correct radius in both preview and SMIL export
- radicalInterp no longer blocked when radicalDots exists on the same atom (both systems coexist via skip-set)
- Empty radicalDots array no longer blocks radicalInterp for uninvolved atoms (init moved inside _assignDot)
- Radical interp greedy matching uses closest-pair-first algorithm (prevents stationary dots from being mis-paired)
- End-state LP dots no longer fade in at target position while start-state LPs are still rotating
- Electron transfer target atom decorations use instant swap (no breathing/flickering on dots that dont move)
- Electron transfer target radical interp skipped (prevents existing dots from sliding during transfer)
- mpath href attribute added to serialized SVG for inline SVG animateMotion compatibility
- Match tool navigation past pair 3+4 now works (contentEqual function restored after revert)
- Animated SVG export element colors now use !important (matches static export fix for Reveal.js compatibility)
- Bond element class assignment uses only elements present in the molecule (fixes F/Cl/Mg green color collision)
- LP crossfade excluded from both start and end state when LP interpolation is active (prevents LP doubling during rotation)
- Text annotation alignment change no longer converts to textbox (preserves position and size)
- ForeignObject overflow set to visible on textbox annotations (prevents right-edge character clipping)
- Animated SVG export now uses document font setting instead of hardcoded Arial for atom and charge labels