-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add click interactions to MindMap #4099
Comments
Can I be assigned this issue? |
@jgreywolf Can you please assign this to me? |
A month later - sorry for the delay. Are you still interested in working on this? |
hi, I am really looking forward to this any update on this. Thanks for the great work! |
Also hoping for this! |
Please make this happen! 👍 |
This would be great. |
I was looking for the same thing, and this answer from stackoverflow did the trick. |
Any chance you can provide how this answer achieved this for you for mindmaps? I've tried adding |
So I had to put something together that would get this off the ground for a small personal project. I made a small react app that takes in a mermaid mindmap doc with comments for each node's link and adds click listeners. It's by no means a particularly masterful solution since I am not a masterful JS dev 😅 A note for devs: this is just manipulating the DOM after render as best as the Mermaid package will allow me. This could be done smoother/better directly in the mermaid package/code I'm sure. But hopefully this is a stepping stone for someone else who comes to this thread later. Here is the example site deployed to Netlify And here is the mermaid doc used to generate this mindmap
|
Same here. Did you find a solution? Maybe this is just not working for the Mindmap in general? |
Best I can tell clickable links are not natively supported for Mindmaps. In this previous reply of mine I've got some code out there to show how to kind of shoehorn it in there for now until mermaid(hopefully) gets some support out there for this. |
Really hope for support. Links are quite often used in mind maps. |
update on my answer: it worked just for flow diagrams but after trying to do that with mermaid js for mindmaps it didn't work ping @threedaysmore |
Not working in v10.9.1. We really need this. How can I help? |
I've come up with the perfect solution. You need to add this JS code after loading Mermaid:
Use this structure:
If you want a click icon instead of an arrow, then add this CSS code:
|
Proposal
There are features for interactions in some other types of diagrams, e.g. Flowchart, Class Diagram. This helps a lot for linking pages together as a intuitive and organized way.
However, MindMap does not have that yet. This type of diagram is particularly suitable for doc and wiki websites, where it really need to add url links to nodes.
I am using wiki.js to build a wiki website, and really want this kind of diagrams to be shown at the front page.
Right now, the link syntax similar to other types are ignored:
Example
Syntaxes like this are needed:
Screenshots
No response
The text was updated successfully, but these errors were encountered: