Mermaid Flow Zoom

approved

by change wang

Zoom, pan, resize, and fullscreen rendered Mermaid diagrams. - This plugin has not been manually reviewed by Obsidian staff.

21 downloadsUpdated 1d agoMIT

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:

  1. Open Obsidian Settings.
  2. Go to Community plugins.
  3. Search for Mermaid Flow Zoom.
  4. Install and enable the plugin.

Manual installation

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Create this folder inside your vault:
<vault>/.obsidian/plugins/mermaid-flow-zoom/
  1. Put the downloaded files in that folder.
  2. Reload Obsidian.
  3. Enable Mermaid Flow Zoom in 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.js
  • manifest.json
  • styles.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.