nextcloud-drawio icon indicating copy to clipboard operation
nextcloud-drawio copied to clipboard

Use mxgraph to avoid external dependency of draw.io

Open juliusknorr opened this issue 8 years ago • 6 comments

mxgraph is the library behind draw.io. It should be possible to use the app inside nextcloud without having draw.io as an external dependency. That way the data would stay private and will not be sent to an external service.

There is also some example code available at:

  • https://github.com/jgraph/mxgraph/tree/master/javascript/examples/grapheditor
  • https://jgraph.github.io/mxgraph/javascript/examples/grapheditor/www/index.html

juliusknorr avatar May 02 '17 13:05 juliusknorr

Btw. @pawelrojek Great app, works really nice so far :+1:

juliusknorr avatar May 02 '17 13:05 juliusknorr

At the moment this can be achieved by deploying your own Draw.io instance and then changing the "Draw.io URL" in the App settings (the default value is "https://www.draw.io" but it can be changed to anything you want).

You can get Draw.io from here: https://github.com/jgraph/draw.io

BTW it works with Apache, nginx and doesn't require Tomcat or Java at all (in the past draw.io/mxgraph were partially written in Java hence the ".war" files).

The "export" feature still requires external connection to "https://exp.draw.io/". See: https://github.com/jgraph/draw.io/issues/26

pawelrojek avatar May 02 '17 16:05 pawelrojek

Would be very nice to have the DrawIO App fully included in the Nextcloud App. Also a Checkbox for "Dont use external Draw.io Services" to disable the PDF Export would be nice for Security Sensitive Environments :-)

fti7 avatar May 08 '17 14:05 fti7

I just noticed that a lot of the templates also seem to reference back to draw.io So to get it fully offline you would probably also have to adapt all those .xml files as well.

poVoq avatar Jun 29 '17 12:06 poVoq

The image export server is available at https://github.com/jgraph/draw-image-export2

davidjgraph avatar Apr 27 '18 14:04 davidjgraph

Why isn't it considered to supply the draw.io code as a dependency within this app?

oparoz avatar Aug 03 '18 17:08 oparoz