Molkit 0.2.2
Released April 5, 2026
New Features
- "Convert labels to paths" checkbox in static SVG and animated SVG export dialogs
- Atom labels converted to outlined paths for jitter-free animation (eliminates text hinting jitter during SMIL translate)
- Multi-character labels (CH3, OH, NH2, Cl, Br) converted with correct tspan layout positioning
- Charge labels (+, -, 2+, 3-) converted to paths with correct text-anchor:start alignment
- Bond lines converted to `<path>` elements in both static and animated exports (publication-quality SVG)
- Glyph outlines derived from Liberation Sans (SIL Open Font License 1.1), metric-compatible with Arial
Improvements
- Lone pair circle dots use GPU-composited transform animation (eliminates sub-pixel jitter during SMIL arc rotation)
- AnimateTransform translate values retain 3dp precision (no longer rounded to 1dp, prevents quantization jitter on small LP arcs)
- Animated SVG path rounding uses conservative 4+ decimal threshold (matches static export, preserves curved arrow control points)
- Bond gradient strokes in path export are theme-aware (dark mode stop-color CSS overrides generated automatically)
- Bond element stroke CSS uses path.mk-* selectors after path conversion (prevents element-colored bond labels from getting unwanted stroke)
- Bold glyph font (Liberation Sans Bold) embedded for path exports, giving exact bold weight for charge labels and bold element labels
Bug Fixes
- Degenerate LP animation timing guard prevents orphaned dots at origin when arc duration collapses to zero
- Animated SVG path conversion now correctly passes through export options (scope fix for cross-file access)
- SVG `<use>` href serialization uses plain href attribute (fixes XMLSerializer xlink namespace mangling)
- Subscript font-size detection reads both attribute and style property (fixes oversized subscripts in animated export)
- LP dot pair spacing during rotation no longer squeezed at arc midpoints (sample count increased from 4/8/16 to 8/16/24)
- Arrow wipe clip-path bounds now include spline Bezier control points (prevents curved arrow tip clipping)
- Bond gradient URLs promoted to inline style to override .mk-bond CSS (fixes missing gradients in path export)
- Bond element colors in path export use theme-correct CSS instead of baked render-time colors
- Compound label tspans (CH3, OH) get per-tspan mk-* classes for correct dark mode coloring
- Tspan inline fills stripped so mk-* CSS controls theme-aware element colors (fixes black CH3 in dark mode)
- Arrow animation endpoint pipeline fully synchronized with static renderer (8 divergences fixed): spline handle attachment tracking, LP position resolution, annotation edge resolution, conditional radial pullback, tangent pullback for all arrow types, fallback gap values, LP/radical tangent guard, and curved arrow bond reference points
- Double bond rendering in animation preview now uses side-offset for ring bonds and explicit doubleBondSide (was always centered)
- Path export bold charge labels (+, -, 2+) use actual Liberation Sans Bold glyph outlines instead of regular weight