Giter Site home page Giter Site logo

redmine_drawio's Introduction

Redmine draw.io plugin

draw.io is free online diagramming tool.

This plugin will allow embedding draw.io diagrams into Redmine wiki pages and issues.

Requirements

  • Requires Redmine v2.6+. Tested with Redmine v3.1.4, v3.2.3 and v3.3.0.

Installation

  • install redmine_drawio plugin:

    cd $REDMINE_HOME/plugins
    git clone https://github.com/mikitex70/redmine_drawio.git
    
  • restart Redmine to load the new plugin

Usage

  • save your draw.io diagram locally and upload it as attachment to wiki or issue page.

  • in Wiki pages use the drawio macro to load the widget, specifying the name of the attachment. For example:

    {{drawio(activity.xml)}}
    
  • the following macro options are available (default values are shown):

    • lightbox=false : enable lightbox usage
    • resize=false : enable zoom control box
    • zoom=100 : initial zoom of diagram (percentage of original diagram)
    • fit=true : fit page width (only if resize=false)
    • hilight=#0000ff : color to hilight hyperlinks

Known issues

  • Diagrams are rendered on the browser so they aren't visible inside a PDF export. As workaround you can print the web page as PDF document (easy with Linux, a bit more problematic in Windows), or export the diagram in PNG format and include it as image.

TODO

  • Allow specify diagrams from other other sources:

    • use a file managed by the DMSF plugin
    • embed diagram as macro body
    • use GoogleDrive, Dropbox and OneDrive as possible diagram sources.
    • implement tests

redmine_drawio's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.