v6.0.2
- outliner: Pressing
Enteron the root topic no longer modifies the root topic or adds an undo step. - outliner: Splitting a topic with
Enternow correctly preserves the split prefix before the cursor instead of reverting to the old text during sync. - Plaintext export now escapes leading
>and}in node topics to prevent them from being imported as arrows or summaries, and non-arrow lines starting with>are preserved as topics.
v6.0.1
- Markdown and KaTeX now render in arrow and summary labels, including when an arrow label is edited.
- Moving a node into itself or one of its own children is now rejected instead of corrupting the map.
- Initializing a map twice in quick succession no longer duplicates its behaviour.
- Unfinished typing in the outliner is no longer lost when the map updates elsewhere or when you undo.
- Choosing "link" repeatedly no longer creates duplicate arrows, and clicking away cancels an unfinished link.
- Removing an arrow or summary no longer leaves it selected, so delete and rename target the right element.
- Box selection stays aligned when the map auto-scrolls to its edge.
- Some operation methods now return
undefinedwhen a call is cancelled, with no change to runtime behaviour.
v6.0.0
See skills/migrate-to-v6/SKILL.md for the full migration guide.
- Pass
rtl: truetoOptionsto switch node topics, the editor, labels and context menu to right-to-left text direction (Arabic, Hebrew, Persian, Urdu); branch layout axis is unaffected. - Add
ar(Arabic) locale to thei18nexport. - Pass a
markdownrenderer toOptions(andnew Outliner(…)) to render topics as Markdown / KaTeX in both the map and the outliner. - Arrow-key navigation crosses into neighbouring branches at boundaries:
ArrowDownfrom the last child andArrowUpfrom the first child of a branch step into the nearest sibling branch, landing at its first/last child or the branch node itself when collapsed. mei.diffRefresh(data)applies only the difference between the current document anddata, keeping unchanged nodes' elements, listeners and focus state; falls back torefreshwhen the change cannot be expressed incrementally.- Collapse / expand is now undoable:
Ctrl+Zrestores the previous fold state, and folds from the outliner and the map share one undo timeline. expandNodeandexpandNodeAllaccept{ silent: true }to skip the history entry, so an auto-expand before adding a child costs no extra undo step.- The outliner ships as its own entry point:
import { Outliner } from 'mind-elixir/outliner'andimport 'mind-elixir/outliner/style.css'; the main entry still re-exports it unchanged.
- Input box now preserves line breaks (
white-space: pre-wrap) so Shift+Enter newlines survive editing in WebKit. init()no longer throws aTypeErrorwhen the instance is destroyed duringdocument.fonts.ready(React StrictMode fast mount/unmount).destroy()now properly releases internal references (focus backup tree, undo stack, pan/arrow helpers, dragged-node list) to prevent memory leaks.- Ensure focus backup tree and undo baseline are properly reset/re-anchored when using
refresh(data)or undoing inside focus mode. - Folding a childless node or re-applying the existing fold state no longer touches the DOM or the history stack.
reshapeNodeno longer passes anoriginthat already equals the new state to theoperationevent.- Removing a node whose parent pointer and sibling array had drifted apart no longer deletes the last sibling (
splice(-1, 1)). removeListenernow drops every registration of a handler, not just the first.createSummarywith an unusable selection (nothing selected, the root, or nodes from different main topics) is now a no-op instead of throwing.
- Undoing a no-op operation renders nothing; the incremental path only redraws when it patched something.
focusNodeandcancelFocusclear the undo/redo stack, making the focus boundary a history boundary in both directions.refresh(data)now leaves focus mode and fires arefreshevent once the data is in place.- Plaintext export now escapes
\and line breaks (\\/\n) so topics with Shift+Enter newlines round-trip correctly.
- Undo/redo patches the map with
diffRefreshinstead of rebuilding it; at 5 461 nodes undoing a one-node change drops from ~73 ms to ~14 ms. - The structural diff reconciles
childrenorder per parent rather than per rendered container, fixing SIDE-layout convergence. - Outliner rendering is a keyed reconciliation: unchanged nodes keep their DOM element, listeners and focus state; re-rendering at 5 461 nodes drops from 94 ms to ~1 ms.
- Outliner event listeners are delegated to the container (8 per-node listeners → 0), and opening the
…menu no longer re-runs markdown/KaTeX over every topic. - The outliner is now a pure view of a
MindElixirinstance: standalone mode,refresh(),updateItem(),OutlineItem/OutlineData/OutlinerMeitypes, and the internal tree DSL (cloneTree,locate,walk, six mutating operations) are all removed. - Link rendering batches all geometry reads before any DOM writes, cutting forced reflows from one per node to one total;
linkDivat 5 461 nodes drops from 124 ms to 9.6 ms. - Moving several nodes no longer re-walks the whole tree once per node.
v5.15.0
refresh(data)no longer appliesdata.theme. Theme handling is fully decoupled fromrefresh; callchangeTheme(theme)explicitly when you need to switch themes (e.g.mind.changeTheme(data.theme)before/aftermind.refresh(data)).moveUpNodeandmoveDownNodeno longer emitmoveUpNodeandmoveDownNodeoperation events. They now reuse the existingmoveNodeflow and firemoveNodeBefore,moveNodeAfter, ormoveNodeIninstead. Update any listeners accordingly.
- Add down layout support via
direction: 3 - Add
genMembersbuild script for generating class member declarations from TypeScript compiler output
- Prevent undo/redo when the map is not editable
- Fix ctrl+k chord accidentally triggering refresh
- Return move success status to control wheel event propagation
- Clamp node movement within container center boundaries
- Preserve line breaks when removing div on blur
- Ensure correct sorting of range indices in summaries
- Avoid mutating summaries during render
- Set direction for new parent node in
insertParent - Remove residual DOM after
moveNodeIn - Handle root topic positioning without
me-mainancestor in arrow rendering - Correct alignment centering for downward layout
- Align padding and adjust subline drawing for first-level nodes
- Fix DOWN direction
addChildon root - Suppress context menu after right button panning
- Prevent errors when node has no children in keypress handler
- Make arrow control point drag work with operation history
- Fire events before selecting nodes to support undo operations
- Include
reshapeArrowin arrow operation types for undo/redo - Sync selection state on
unselectNodesto avoid stale history
- Refactor MindElixir to use class-based implementation
- Replace codegen with direct TypeScript compiler API usage for generating type declarations
- Optimize
unionTopicsfiltering logic - Unify
moveUpNodeandmoveDownNodelogic withgetMoveTargethelper - Improve calculation of anchor point on node border
- Remove stroke-linecap style support from arrow component
- Replace ESLint and Prettier with Biome for linting and formatting
- Replace less with lightningcss and update config
- Bump TypeScript to 7.x
Full Changelog: https://github.com/SSShooter/mind-elixir-core/compare/v5.14.0...v5.15.0
v5.14.0
- Implement
reshapeArrowutility to support programmatically updating connection arrow properties (e.g., style, label, and deltas) and emitreshapeArrowoperation event.
- mobile: Fallback to map panning when node dragging is aborted in
DragWaitstate.
Full Changelog: https://github.com/SSShooter/mind-elixir-core/compare/v5.13.0...v5.14.0
v5.13.0
- Extend theme definitions with required cssVar property
- Constrain text width on p elements instead of topic container to allow LaTeX to render at full width
- Prevent keyboard event processing during IME composition in DOM and SVG handlers
Full Changelog: https://github.com/SSShooter/mind-elixir-core/compare/v5.12.2...v5.13.0