Mermaid Flow Zoom
approvedby change wang
Zoom, pan, resize, and fullscreen rendered Mermaid diagrams. - This plugin has not been manually reviewed by Obsidian staff.
Mermaid Flow Zoom
Mermaid Flow Zoom improves rendered Mermaid diagrams in Obsidian with zooming, panning, resizing, and fullscreen viewing.
Features
- Mouse wheel zooms around the pointer.
- Drag to pan the diagram.
- Trackpad horizontal scrolling,
Shift+ wheel, or wheel near the left/right edge pans horizontally. - Toolbar controls for zoom in, zoom out, reset, and fullscreen.
- Reset and first render fit the complete Mermaid SVG proportionally and center it in the container.
- Desktop container resizing from the lower-right corner.
- Mobile one-finger pan and two-finger pinch zoom.
- Works with dynamically rendered Mermaid diagrams in Reading view and Live Preview where Obsidian exposes rendered SVGs.
Installation
Community plugin directory
After the plugin is accepted into the Obsidian community plugin directory:
- Open Obsidian Settings.
- Go to Community plugins.
- Search for
Mermaid Flow Zoom. - Install and enable the plugin.
Manual installation
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Create this folder inside your vault:
<vault>/.obsidian/plugins/mermaid-flow-zoom/
- Put the downloaded files in that folder.
- Reload Obsidian.
- Enable
Mermaid Flow Zoomin Community plugins.
Usage
Open a note containing a Mermaid diagram, for example:
```mermaid
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Do work]
B -->|No| D[Stop]
```
After Obsidian renders the diagram, use the mouse, touchpad, toolbar, or touch gestures to inspect the flowchart.
Release Checklist
For each GitHub release, attach these files as release assets:
main.jsmanifest.jsonstyles.css
The release tag must exactly match the version in manifest.json, for example 1.0.0.
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.