You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am the creator of an the ecosystem project Mermaid Flow.
Currently I am using the api getDiagramFromText to get information about the diagram, such as the current nodes and links ect. I wish to edit things about the nodes programatically, to do that I am using complex regexp matchers to find the node in the current text and modify it.
My question is, is there any internal api to, say from an node id, find the index of the diagram text where the node is written? Alternatively is there a way to programatically modify the diagram text such as changing node labels that will be reflected in the final diagram text?
Cheers.
Steps to reproduce
Call getDiagramFromText
Notice we can't manipulate the text the user has entered.
Screenshots
No response
Code Sample
No response
Setup
Mermaid version:
Browser and Version: [Chrome, Edge, Firefox]
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Currently, we don't have that support :(
Something like this could possibly be added once we have Langium parsers for all the diagrams. But it's gonna be a while to get the bigger diagrams converted.
Description
Hi, I am the creator of an the ecosystem project Mermaid Flow.
Currently I am using the api getDiagramFromText to get information about the diagram, such as the current nodes and links ect. I wish to edit things about the nodes programatically, to do that I am using complex regexp matchers to find the node in the current text and modify it.
My question is, is there any internal api to, say from an node id, find the index of the diagram text where the node is written? Alternatively is there a way to programatically modify the diagram text such as changing node labels that will be reflected in the final diagram text?
Cheers.
Steps to reproduce
Screenshots
No response
Code Sample
No response
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: