zooming in mermaid

Viewed 25

My mermaid diagram is a real eye test. It would be great to be able to zoom on it and pan around rather than expand the window.

2 Answers

That's cool -- thank you!

I don't use mermaid much, is that something it can normally do? Like in a web browser?

It doesn't by default, but I found some libraries I can add that will enable it. I've added a "pan and zoom diagrams" option to Marked 3, which (with a little more tweaking) will make all diagrams zoomable.

Unsure, I'll see if I can find some examples.

Pan & Zoom works to my expectations in the new build. Thanks, that's a great addition. I'm building mermaid charts a lot now to describe schemas, flows. This product makes an amazing documentation companion for claude code.