Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Mermaid Zoom

xiaozhuang0433xiaozhuang04331k downloads

Add zoom functionality to Mermaid diagrams. Use mouse wheel or touch gestures to zoom in and out.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

English | 简体中文

An Obsidian plugin that adds zoom and pan functionality to Mermaid diagrams.

Features

  • Mouse Wheel Zoom - Scroll over any Mermaid diagram to zoom in and out
  • Drag to Pan - Click and drag to move around your diagrams
  • Touch Gestures - Pinch to zoom and drag to pan on mobile devices
  • Control Buttons - Quick access to zoom in, zoom out, and reset buttons
  • Scale Indicator - Real-time display of current zoom level
  • Fullscreen Mode - Open diagrams in a modal for better viewing

Installation

Obsidian Plugin Market (Coming Soon)

Once approved, install directly from Obsidian's community plugins browser.

Manual Installation

  1. Download the latest release from GitHub Releases
  2. Extract to your vault's plugins directory:
    <your-vault>/.obsidian/plugins/mermaid-zoom
    
  3. Enable the plugin in Obsidian:
    • Settings → Community Plugins
    • Find "Mermaid Zoom" and enable it

Usage

Mouse Controls

Action Description
Zoom Hover over a Mermaid diagram and scroll the mouse wheel
Pan Click and drag to move the diagram
Fullscreen Click the fullscreen button to open in modal view

Touch Controls (Mobile)

Action Description
Zoom Pinch with two fingers
Pan Drag with one finger

Control Buttons

Located in the bottom-right corner of each diagram:

  • + - Zoom in
  • - - Zoom out
  • ⟲ - Reset to fit
  • ⛶ - Toggle fullscreen

Development

# Install dependencies
npm install

# Development mode (watch for changes)
npm run dev

# Production build
npm run build

How It Works

The plugin automatically detects all Mermaid diagrams rendered in Obsidian and wraps each one in a zoomable container. Zoom range is configurable from 10% to 500%.

Original SVG dimensions are cached to ensure consistent scaling behavior when resetting or resizing.

License

MIT © Wang Xiao Zhuang

Support

  • Issues: GitHub Issues
  • Discussions: GitHub Discussions
76%
HealthGood
ReviewCaution
About
Zoom and pan Mermaid diagrams inside Obsidian with mouse wheel, drag, or touch gestures. Open diagrams in a fullscreen modal, reset to fit, use on-screen zoom controls, and view a real-time scale indicator while navigating complex charts.
ChartsVisualizationInterface
Details
Current version
1.0.0
Last updated
5 months ago
Created
5 months ago
Updates
1 release
Downloads
1k
Compatible with
Obsidian 0.15.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
xiaozhuang0433xiaozhuang0433
github.com/xiaozhuang0433
GitHubxiaozhuang0433
  1. Community
  2. Plugins
  3. Charts
  4. Mermaid Zoom

Related plugins

Life Tracker

Capture and visualize the data that matters in your life.

Charts

Easily create interactive charts in your notes.

Graph Banner

Display a local graph view to the note header

Charts View

Visualize data from your notes with plots and graphs.

Lineage

A writing interface that combines structure and content. Inspired by Gingko Writer.

Bases Charts

Bases views for scatter, line, and bar charts.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.