Wrong shapes and colors on self-hosted

284 views
Skip to first unread message

Dennis Germundal

unread,
Jun 21, 2018, 11:20:20 AM6/21/18
to draw.io
Hello!

I cloned the project from https://github.com/jgraph/drawio and uploaded to a testpage.
It works but some of the shapes are incorrect. See picture:


These shapes are correct when I save and view the diagram.

Some objects have rendering issues too, for example Table and Section:

Any help appreciated!

Thanks,
Dennis

David Benson

unread,
Jun 22, 2018, 5:24:54 AM6/22/18
to draw.io
There's style information missing, in the browser network tab, do you have any 404s?

Dennis Germundal

unread,
Jun 22, 2018, 5:29:47 AM6/22/18
to draw.io
No 404s or other messages in network or console.

If I inspect the shapes for Square and Diamond, the html is identical for them.

David Benson

unread,
Jun 22, 2018, 5:42:24 AM6/22/18
to draw.io
https://jgraph.github.io/drawio/src/main/webapp/index.html is the Github pages version hosted directly from the repo. Are you delivering the repo as a static site via a web server?

Dennis Germundal

unread,
Jul 23, 2018, 10:21:44 AM7/23/18
to draw.io
I will try to explain what I did.

1. I cloned the repo from https://github.com/jgraph/drawio
2. Copied /etc/mxgraph/mxClient.js to /src/main/webapp/js/mxClient.js
3. Uploaded the contents of src/main/webapp to the root of my dev server
4. I need to make some small changes to the interface and therefore use non-minified files. So I made a few changes.
5. When I visit my dev I get it like in the screenshots above, no 404 or other messages in the console.

These are my only changes, without them it works. But then it uses minified code of course.
https://github.com/S8nsick66/drawio/commit/6654158d0ca43c251bba3bbda4cd3a9312e1277d
https://github.com/S8nsick66/drawio/commit/ffb6283bb6f544739c0e1b3c615a075dde3953ca

I looked at https://stackoverflow.com/questions/45205746/draw-io-is-there-non-minified-source but didn't understand much of it.

Really appreciate any help!

Thanks,
Dennis

Dennis Germundal

unread,
Aug 22, 2018, 11:23:02 AM8/22/18
to draw.io
Well, silly me.

I just added "&dev=1" to the iframe src and it works.

/js/draw/?embed=1&dev=1
Reply all
Reply to author
Forward
0 new messages