Skip to content

This repository contains a plugin for Obsidian for inserting and editing diagrams.net (previously draw.io) diagrams.

License

Notifications You must be signed in to change notification settings

likemuuxi/obsidian-diagrams-net

 
 

Repository files navigation

Obsidian Diagrams.Net

A plugin for Obsidian for inserting and editing diagrams.net (previously draw.io) diagrams. It differs from the drawio-obsidian plugin in that it embeds the diagrams.net online editor, which requires an active internet connection, but enables the full feature set and all the shape libraries.

1726331570398-20240915_003106

1726331811989-20240915_003406

⚠️ Caveats

As Obsidian itself has an API that is under development, so is this plugin. There are some things you should be aware of if you are using it:

  • Diagrams are saved as a separate file – MyDiagram.svg.xml, alongside their image representation – MyDiagram.svg. (The .xml-file can be opened directly in any diagrams.net-editor.)
  • Moving and renaming a diagram inside Obsidian will do so for both the diagram file and the image file. However, since there is no "copy" event to listen to in the Obsidian API, copying a diagram means the new diagram will not have a diagram file associated with it, and as such, cannot be opened in the editor.
  • The workaround, if you need to copy a diagram, is to manually duplicate and rename both the image and diagram file.

About

This repository contains a plugin for Obsidian for inserting and editing diagrams.net (previously draw.io) diagrams.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 74.1%
  • JavaScript 24.6%
  • CSS 1.3%