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
flowchart rendering issues #45
Labels
bug
Something isn't working
Comments
@ad1992 another rendering issue. Issues:
example mermaid flowchart %%{init: {'theme':'forest'}}%%
flowchart LR
style Entity1 fill: gold, stroke:#333, stroke-width:4px
subgraph Legend
direction LR
start1[ ] -.->|Lookup Relationship| stop1[ ]
style start1 height:0px;
style stop1 height:0px;
start2[ ] ==>|Master-Detail Relationship| stop2[ ]
style start2 height:0px;
style stop2 height:0px;
A -.->|A is parent of B| B
style A height:0px;
style B height:0px;
end
Entity1[Entity 1]
Entity2[Entity 2]
Entity3[Entity 3]
Entity2 ===>|fa:fa-link Relation1| Entity1
Entity3 -..->|Relation2| Entity1
Entity4[Entity 4]
Entity3[Entity 3]
Entity5[Entity 5 fa:fa-suitcase]
Entity6[Entity 6 fa:fa-suitcase<br><sub>Entity6</sub>]
Entity3 ===>|fa:fa-link Relation3| Entity4
Entity5 -..->|Relation4| Entity4
Entity6 -..->|Relation5| Entity4
Entity4 -..->|Relation6| Entity4
|
igorwessel
added a commit
to igorwessel/mermaid-to-excalidraw
that referenced
this issue
May 6, 2024
ad1992
added a commit
that referenced
this issue
May 16, 2024
* feat(utils): enhance computeEdgePositions to maintain direction points This commit modifies the computeEdgePositions function in utils.ts to keep points that are on a straight line in the same direction. The filter condition is updated to only remove points that have both the same x and y coordinates as the previous point. This ensures that points on a straight line in the same direction are maintained. * fix(flowchart): handle cases when not all edges are retrieved in flowchart.ts * chore: add #45 issue testcase * add function closure for processed edges instead of passing as param * working in solution * possible limit * test: add testcases for remove second last point * fix: add a map to count repeated edges * tweaks and improvements * fix tests --------- Co-authored-by: Aakansha Doshi <aakansha1216@gmail.com>
Thank you for fixing this. Will there be a plan to fix the rendering of HTML? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for the below flowchart example:
Two primary issues have been identified in the Excalidraw output of the Mermaid flowchart:
Steps to Reproduce:
Expected Result:
Actual Result:
Severity: Medium
The issue with rendering multiple relationships can lead to a loss of crucial information and misinterpretation of the diagram.
The HTML formatting issue affects the readability and professional presentation of the diagram but does not impede the understanding of the relationships.
example
The text was updated successfully, but these errors were encountered: