Open synclpz opened 4 years ago
Mermaid does not have builtin zoom functionality. It might have changed, but last time I've checked most diagrams render to fill the view. Not a bit problem in the browser as you can zoom to a certain degree, but vscode does not allow that.
The plugin attempts to solve this using the d3.zoom functionality as the mermaid renders the diagrams with d3 anyway. The results are not perfect but I do not see a better solution at this time. I'm open to suggestions on this topic!
Hello,
The zoom functionality as it was in VS Code is now not any more available or broken. It was possible a few months ago, not perfectly but good enough. At least in July 2022. Currently, I'm unable to zoom. That is a pity because with that, I don't have a practicable solution to check it. And convert it after a change to an HTML page and open it in a browser is not optimal.
Mermaid.live has zoom functionality now.
I would appreciate if a volunteer can investigate if that solution can be integrated in the react app that runs in the webview.
Expected behaviour
Loading a decent diagram requires zooming/scrolling, which is definitely broken at least in my fresh install of VSCode and this extension.
Expected to use zoom with scrolling mouse/touchpad and to use scroll with dragging diagram using left mouse/tohchpad button.
Actual behaviour
Zoom works while scrolling up/down while mouse pointer placed on a diagram, scroll works while mouse pointer placed not on a diagram. Dragging the diagram is actually impossible due to diagram begins shaking and moving out of view.