jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.35k stars 7.67k forks source link

Shadows not Appearing during Export as PDF #4613

Closed kylekozielski closed 2 months ago

kylekozielski commented 2 months ago

Exactly what the title states. I am using this on google chrome and other colleagues of mine also have the same issue.

The shadows appear in the diagram, but the moment I export as a PDF, they disappear. They do not disappear when exporting as other file types.

davidjgraph commented 2 months ago

This is expected. We cannot convert the shadow to vector so exclude it.

kylekozielski commented 2 months ago

This is expected. We cannot convert the shadow to vector so exclude it.

But, this exact function used to work about a month ago?

davidjgraph commented 2 months ago

Yes. we switched it off for performance problems.

jesseishi commented 2 months ago

Are there plans to be able to export shadows to vector for a future release?

davidjgraph commented 2 months ago

that would be dependent on chrome supporting that, which it doesn't.

jesseishi commented 2 months ago

Thank you for your answer. Could it maybe be included in the desktop version?

davidjgraph commented 2 months ago

it can't because that's chrome.

jesseishi commented 2 months ago

Clear. Thank you!

jesseishi commented 2 months ago

I've contacted the Chrome development team through their issue tracker. They would need more information from someone from the draw.io development team to understand what they would need to change to support this. The issue that I reported can be found here (https://issues.chromium.org/issues/365033303) and it would be super nice if someone from the draw.io team could maybe comment there or make a new issue so the Chrome team can work to resolve this. Thanks!

alderg commented 2 months ago

It's this CSS (ie. drop-shadow CSS filters):

filter: drop-shadow(rgb(77, 77, 77) 2px 3px 2px);

HTH