Node relation text not rendering
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:
Here's how it looks in the exported SVG:
Same for note links:
rendered in SVG as:
To Reproduce Steps to reproduce the behavior:
- Run
pnpm devto show the demo document. - Export the diagram to SVG via
mind.exportSvg(). - 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.
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.
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.
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.