-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVG output of Drawio has black forms in Sozi #4894
Comments
What does the SVG show in a browser? |
Interesting: seen in Firefox, the SVG shows black, whereas it looks normal (white) in Chromium ( As a side note, my desktop is in dark mode (and so my browsers). As another side note, inkscape sees the SVG as white. And, apparently, Sozi comes with a fairly old (2021?) version of a chrome-sandbox (Electron 20 according to https://github.com/sozi-projects/Sozi/releases/tag/v23.07). So, apparently, something in Drawio 26 broke the rendering in Firefox and older versions of Chromium/Chrome (or made apparent some breakage in Firefox' engine). Can you nevertheless identify and fix the issue? |
OK, gvimdiff is my friend and I see the differences. Here the simplest expression I could find (but the before: after: Here the full diff (manipulated to make more readable:
To be honest, I don't want my graph's color to be different depending on the light/dark choice of my browser (and I always set drawio to light mode actually, not automatic or dark!), that would look a bit weird to me. |
And in 26.0.14? |
26.0.9 is the latest tag I can see: https://hub.docker.com/r/jgraph/drawio/tags?name=26 |
OK, I used https://app.diagrams.net/ to test (26.0.15 at time of writing):
I can accept that Sozi is too old and has a broken engine, but I still have an issue with having my graphic look different depending how or where it is rendered. Colors have a meaning and I want to know that my graph keeps them accurately (I don't create art, but still). |
please attach the exported svg |
Sure, here it is, together with the Sozi export: |
This file was exported with Use |
Aaah, I wasn't exporting, I was saving, and there I can't set the appearance, can I? In all cases, fair enough, I can export and embed instead of saving. |
Not currently, no. |
Preflight Checklist
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
If you are technical, you should report bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.
Describe the bug
I have a regression between drawio 24.7.17 and 26.0.9 (the issue happened already with latest but its version is unclear, 26.0.8?): the forms in the SVG output appear black in Sozi, even though they're white in Drawio. This didn't happen in older versions of Drawio.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The figures have the same color as in Drawio, as it used to be with Drawio 24.
I went a few times between Drawio 24 and Drawio 26, and could repeat the issue and make it disappear accordingly.
Interestingly enough, I need to restart Firefox to have a clean switch (but I guess that's some caching effect).
Screenshots
draw.io version (In the Help->About menu of the draw.io editor):
Desktop (please complete the following information):
Smartphone (please complete the following information):
n/a
I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:
Additional context
I'm using the Docker image with podman
podman run --rm --name="drawio" --detach -p 8080:8080 -p 8443:8443 docker.io/jgraph/drawio:26.0.9
(resp.latest
or24.7.17
).The text was updated successfully, but these errors were encountered: