Draw.io View
approvedby sdking
Render draw.io diagrams inline in your notes with zoom, pan, and multi-page support. - This plugin has not been manually reviewed by Obsidian staff.
π Zoom Β Β·Β π±οΈ Pan Β Β·Β π Multi-page Β Β·Β π Shape links Β Β·Β π¦ Third-party libs Β Β·Β π Dark mode
δΈζζζ‘£ Β· Usage Β· Shape Libraries Β· Controls Β· Settings Β· Installation
Follow on WeChat for more Obsidian plugins & tools
π§© Also check out Rich Table β interactive tables with merges, typed columns, styles, and wikilinks: GitHub Β· Install from Store
Render draw.io .drawio diagrams inline inside your Obsidian notes β with smooth zoom, pan, multi-page tabs, shape links, and full support for third-party shape libraries.
Usage
Place your .drawio file anywhere in the vault, then embed it with a fenced code block:
```drawio-view
my-diagram.drawio
```
You can optionally set the starting page, height, zoom, and pan offset:
```drawio-view
my-diagram.drawio|my_page|600px|80%|(190, 34)
```
| Parameter | Format | Example | Description |
|---|---|---|---|
| Page | page name or page-N | my_page Β· page-2 | Which page to display. Default: first page. |
| Height | Npx | 600px | Viewer height. Default: 400 px. |
| Zoom | N% | 80% | Initial zoom level. Default: auto-fit. |
| Offset | (X, Y) | (190, 34) | Initial pan position. Default: centred. |
All parameters are optional and can appear in any order.
Shape Libraries
If your diagram uses extended shape libraries (AWS, Azure, GCP, Cisco, Electrical, IBM, and many more), the plugin will detect this automatically and show a download banner the first time you open it.
Click Download β the missing libraries are fetched from draw.io's official repository, saved locally, and reused for all future diagrams. The banner also has a Settings shortcut if you prefer to manage libraries manually.
Go to Settings β Draw.io View β Shape Libraries to:
- Browse and download official libraries by category
- Use Auto-detect from vault to find all libraries needed by your existing diagrams
- Set a custom folder for your own shape files
Controls
| Action | Result |
|---|---|
| Scroll wheel | Zoom in / out |
| Drag | Pan the diagram |
| Two-finger pinch | Pinch-zoom (touch / mobile) |
| Double-click | Reset to initial view |
| Drag bottom edge | Resize viewer height |
| β | Open file in system default editor |
| β | Save current view back into the code block |
| Page tabs | Switch pages (multi-page diagrams) |
Tip: pan and zoom to the view you want, then click β. The code block updates in-place and that view is restored every time you open the note.
Shape links
Hover any shape to see a β button. Click it to attach a link to a vault note or external URL. To follow the link, click the shape (exact key depends on the Click behavior setting).
Dark mode
The viewer automatically adapts to Obsidian's dark theme β no configuration needed.
Settings
| Setting | Description |
|---|---|
| Zoom modifier key | Plain scroll or Ctrl+scroll to zoom. |
| Click behavior | Whether a plain click or Ctrl+click follows a shape link. |
| Custom library folder | A vault folder for your own shape files. |
| Shape Libraries | Download official libraries; auto-detect from vault. |
Installation
Community plugin marketplace (recommended)
- Settings β Community plugins β Browse
- Search draw.io view β Install β Enable
Manual
Download main.js, manifest.json, and styles.css from the latest release and copy them to <vault>/.obsidian/plugins/drawio-view/.
Known limitations
- Some shapes from draw.io's table or extended shape sets may not render perfectly.
![[file.drawio]]wiki-embed syntax is not supported β use the code block instead.- In Live Preview, exiting the code block editor can cause a small scroll shift (under investigation).
Star History
License
MIT Β© 2026 sdking.xing
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.