Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.35 KB

File metadata and controls

56 lines (38 loc) · 1.35 KB

Draw.io Desktop Mermaid Plugin

This draw.io plugins integrates the mermaid diagram generator.

Mermaid supports:

  • Pie charts
  • Sequence diagrams
  • Gantt diagrams
  • State diagrams
  • Flow charts
  • Class diagrams

via a simple markup language.

Overview

  • Example diagrams

Online Demo

Online Demo

Usage

  • double click on a shape and edit the mermaid script, the shape will be redrawn after leaving the editor

Properties

  • All mermaid configuration options are reflected as draw.io shape properties.

How to build

  1. git clone --recursive https://github.com/nopeslide/drawio_mermaid_plugin.git ~/drawio_mermaid_plugin
  2. cd ~/drawio_mermaid_plugin/drawio_desktop
  3. npm install
  4. npm run build

How to install

  1. open draw.io desktop
  2. select on the top menu bar Extras/Plugins...
  3. click Add
  4. click Select File... for External Plugins:
  5. select ~/drawio_mermaid_plugin/drawio_desktop/dist/mermaid-plugin.webpack.js
  6. click OK
  7. click Apply
  8. confirm Dialog

Draw.io copies the plugin into an internal directory, making updates impossible!

To link the plugin with the repository:

  1. run ln -sfr ~/drawio_mermaid_plugin/drawio_desktop/dist/mermaid-plugin.webpack.js ~/.config/draw.io/plugins/