pawelrojek / nextcloud-drawio

Draw.io intergration app
https://apps.nextcloud.com/apps/drawio
GNU Affero General Public License v3.0
227 stars 60 forks source link

Use mxgraph to avoid external dependency of draw.io #2

Open juliushaertl opened 7 years ago

juliushaertl commented 7 years ago

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:

juliushaertl commented 7 years ago

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

pawelrojek commented 7 years ago

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

fti7 commented 7 years ago

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

poVoq commented 7 years ago

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.

davidjgraph commented 6 years ago

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

oparoz commented 6 years ago

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