-
-
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
[Bug] Can not use render
method with mindmap and timeline
#4089
Comments
Thanks for pointing this out. We will add that to the release notes. Mind maps has been included in the package so that users don't have to anything to have it available. This did not work properly. We have added another diagram, timeline, that likely will suffer from the same problem. We hoped to avoid breaking changes but missed this. We were/are planning an api update to make all rendering async, that will be v10. I guess this accelerates that plan. |
Then maybe jsdocs is wrong? This is not marked as deprecated: mermaid/packages/mermaid/src/mermaidAPI.ts Lines 351 to 377 in fec193e
However this is: mermaid/packages/mermaid/src/mermaidAPI.ts Lines 580 to 584 in fec193e
|
Fixed in v10. |
Description
Error diagram will be shown if rendering mindmap and timeline diagrams with
mermaid.render()
as they seems to be async. (Also they are also not working as expected withrenderAsync
)Also, since mermaid:
The 3rd and 4th errors are triggered.
Step to reproduce:
use
mermaid.render
to render any content with timeline or mindmapRelated code:
Here diagrams are added during render:
mermaid/packages/mermaid/src/mermaidAPI.ts
Line 383 in b5a4cc0
However they are async:
mermaid/packages/mermaid/src/diagram-api/diagram-orchestration.ts
Line 111 in 25da0c6
Breaking changes unlisted
mermaid 9.3 use
@mermaid-js/mermaid-mindmap
for mindmap, however it's removed in repo and seems to be deprecated, this is NOT listed in changelog!The text was updated successfully, but these errors were encountered: