Molkit 0.3.1
Released April 8, 2026
Bug Fixes
- Animation double bonds now render on the correct side of ring structures (fixed doubleBondSide=3 bypassing ring detection, stateA/stateB atom ID mismatch in ring lookup, and coordinate-space mismatch for non-style-changed matched bonds)
- Aromatic circle display no longer downgrades kekule double bonds in animation when other rings on the canvas use circle mode (per-bond check replaces global canvas setting)
- Radical dots in SMIL export animate smoothly instead of jumping or disappearing (fixed interpolation gate requiring both states to have radicals, choreography/interpolation double-wrapping, and nested opacity cascade in non-decoOnly crossfade)
- Choreography-consumed radical dots excluded from interpolation pairing, preventing missing dots after bond formation transitions
- Wedge bond gradient colors now visible in ChemAcademy (removed !important CSS override on .mk-wedge fill/stroke in mk-theme.css)
- Selection SVG export no longer dumps entire canvas (previously included all layer groups, gradient defs, shapes, and text from every non-selected structure, hidden behind a cropped viewBox)
- Bond gradients now render correctly when multiple exported SVGs are inlined on the same HTML page (all internal IDs uniquified per export, preventing cross-SVG gradient ID collisions in Reveal.js and other inline-SVG contexts)
- Centered double bonds (e.g. C=O) no longer render as side-offset during animation (non-ring bonds incorrectly received cached direction vector, forcing insideDir to non-zero)
- Animation renderer now respects doubleBondSide === 3 (user-forced centered) instead of falling through to ring auto-detect
New Features
- Dev menu settings persist per tab (flags and sub-settings captured in tab snapshots and restored on tab switch)
Improvements
- Animation double bond ring-side uses 2D direction vector projection for correct rendering at any bond axis orientation during transitions
- Non-style-changed matched bonds use stateB bond object for ring detection reference (stateB atom IDs resolve correctly in patched Store context)
- Radical dot fadeOut timing synchronized with forming-bond distance delay (uses crossfadeStartPct instead of raw radEnd)
- Per-child recursive crossfade in SMIL non-decoOnly path walks atom-element descendants, skipping radical dots and their wrappers to prevent multiplicative opacity cascade
- SVG export prunes orphaned defs (gradients, filters, markers not referenced by remaining content), reducing selection export file size by up to 66%
- Empty layer wrapper groups and UI layers (grid, selection, preview, badges) fully removed from exports instead of left as empty shells
- Double bond side indicator uses JS property instead of DOM data attribute to avoid leaking data-dbl-side into exported SVGs