-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
ZOOM!!! #1860
Comments
The main problem of flowcharts is hardnailing Internet full of broken recipes how to force mermaid to not forcing, but they are obsolete. |
The markup puts a width="100%" - that ensures that if you have a massive flowchart, it will <svg id="graph-div" width="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" height="2283.43505859375" style="max-width: 3595.38232421875px;" viewBox="0 0 3595.38232421875 2283.43505859375"> |
+1 on this. Have created some pretty massive diagrams only to be disappointed when it's so zoomed out nobody can really see it properly. I've played around with directives but haven't been able to find anything that affects the zoom level of a large diagram. |
Agreed. Please include zoomable results. |
+1 also. Nice tool but not suitable for any serious flowcharts as you can not properly see the results if you have more than a few steps in your chart. |
I've found the only real way around this is to make the chart vertical, and then within it have some sub graphs that you force left to right for things that must be shown horizontally. It results in some pretty gnarly diagrams code wise, but that's the only solution I've been able to employ. |
+1. Please considering it. |
If you're desperate you can use d3.js to do this quickly, but it's a huge graphing/data document lib on its own so I wouldn't recommend it for regular use. Mentioned in #535 (comment) See this fiddle for a working demo: https://jsfiddle.net/zu_min_com/2agy5ehm/26/ |
+1 |
I've made a little plugin using d3 to zoom in mermaid diagram rendered in Docsify. https://corentinleberre.github.io/docsify-mermaid-zoom/#/ Maybe you can reuse piece of code for your own need. |
Dude, that's awesome. Good work! |
GitHub provides the lovely zoom control (recently?)! sequenceDiagram
autonumber
Alice->>John: Hello John, how are you?
loop Healthcheck
John->>John: Fight against hypochondria
end
Note right of John: Rational thoughts!
John-->>Alice: Great!
John->>Bob: How about you?
Bob-->>John: Jolly good!
|
Really. Gitlab is lacking that feature, but having a copy button at least |
You can use
|
This directive worked for me: |
There's just no need for that 100%, just remove it.. |
Great idea. And now you can even import a Mermaid Flowchart into Obsidian Excalidraw, which gives even a better experience. Just make sure your mermaid code is 100% correct as I spent one day searching around why it would fraw the flowchart in Notion and Typora just fine but not in Obsidian or Excalidraw. (Spoiler, it was the last empty comment-sign I had, so really in the last line.) Nearly killed me... |
this is working as well:
|
Am I correct in my understanding that this is essentially the same as what @DmitryGalyuk suggested here: #1860 (comment) In other words, we can apparently use the |
https://github.com/sanchezzzhak/node-proxy-logger/wiki/Display-logs-mermaid.js use mermaid to visualize how method invocation behaves under different parameters. Yes, the diagrams are not perfect, but at least something. Not the point in this wiki, I described how to fix pan-zoom. |
look!
live-edito
look this live-edito
I want
When I made a more reproducible flowchart, I wanted a zoom function. Otherwise, I can only save it as a picture for zooming. .
The text was updated successfully, but these errors were encountered: