mind-elixir-core icon indicating copy to clipboard operation
mind-elixir-core copied to clipboard

Node relation text not rendering

Open eliandoran opened this issue 1 month ago • 3 comments

Describe the bug

Some text related to node relations (e.g. summary section or links) is not rendered in SVG.

Here's how it looks in the app:

Image

Here's how it looks in the exported SVG:

Image

Same for note links:

Image

rendered in SVG as:

Image

To Reproduce Steps to reproduce the behavior:

  1. Run pnpm dev to show the demo document.
  2. Export the diagram to SVG via mind.exportSvg().
  3. View the rendered SVG.

Expected behavior

The text should render in the SVG in the same fashion as it is displayed on screen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox 145.0.1, Chromium/Electron

Additional context

See https://github.com/SSShooter/mind-elixir-core/pull/360 for a way to export SVG from pnpm dev without having to modify the source code.

eliandoran avatar Nov 24 '25 09:11 eliandoran

mind.exportSvg() is now largely deprecated. We recommend using modern-screenshot or snapdom instead. You can refer to the article here: https://ssshooter.com/en/how-to-use-mind-elixir/#exporting-images for more details.

SSShooter avatar Nov 25 '25 13:11 SSShooter

Thanks, I'll look into them. Perhaps the exportSvg method can be marked as deprecated? I don't think I saw a depreciation warning when using the method.

eliandoran avatar Nov 25 '25 14:11 eliandoran

Thanks, I'll look into them. Perhaps the exportSvg method can be marked as deprecated? I don't think I saw a depreciation warning when using the method.

Yes, sorry— I missed updating the docs. I’ll fix that and add comments in the next few days.

SSShooter avatar Nov 26 '25 01:11 SSShooter