Draw.io View

approved

by 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.

β˜… 7 stars↓ 767 downloadsUpdated 1mo agoMIT
Draw.io View demo

πŸ” Zoom Β Β·Β  πŸ–±οΈ Pan Β Β·Β  πŸ“„ Multi-page Β Β·Β  πŸ”— Shape links Β Β·Β  πŸ”Ž Magnifier Β Β·Β  πŸ“¦ Third-party libs Β Β·Β  πŸŒ™ Dark mode

Latest release Total downloads License Obsidian community plugin

δΈ­ζ–‡ζ–‡ζ‘£ Β· Usage Β· Shape Libraries Β· Controls Β· Settings Β· Installation

WeChat public account
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)
```
ParameterFormatExampleDescription
Pagepage name or page-Nmy_page Β· page-2Which page to display. Default: first page.
HeightNpx600pxViewer height. Default: 400 px.
ZoomN%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

ActionResult
Scroll wheelZoom in / out
DragPan the diagram
Two-finger pinchPinch-zoom (touch / mobile)
Double-clickReset to initial view
Drag bottom edgeResize viewer height
β†—Open file in system default editor
β›ΆAuto-fit to the viewer's current size
πŸ”Toggle the magnifier
βŠ™Save current view back into the code block
Page tabsSwitch 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. Once a specific zoom/offset is saved this way, double-click restores that saved view rather than auto-fitting β€” click β›Ά to get back to a fresh auto-fit (e.g. after resizing the viewer), then βŠ™ again to save it.

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).

Magnifier

Click πŸ” to inspect fine detail without changing your zoom/pan. A circular loupe follows the cursor at a fixed magnification; + / - change its size. Scroll wheel still zooms the main view as usual. Press Esc or click anywhere else to exit.


Dark mode

The viewer automatically adapts to Obsidian's dark theme β€” no configuration needed.


Settings

SettingDescription
Zoom modifier keyPlain scroll or Ctrl+scroll to zoom.
Click behaviorWhether a plain click or Ctrl+click follows a shape link.
Custom library folderA vault folder for your own shape files.
Shape LibrariesDownload official libraries; auto-detect from vault.

Installation

Community plugin marketplace (recommended)

  1. Settings β†’ Community plugins β†’ Browse
  2. 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

Star History Chart


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.