Skip to content
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

Diagram background is not shown/imported #242

Open
ane-gabriela opened this issue Jul 24, 2023 · 4 comments
Open

Diagram background is not shown/imported #242

ane-gabriela opened this issue Jul 24, 2023 · 4 comments

Comments

@ane-gabriela
Copy link

Preconditions: Have a diagram with some shapes and a background Image exported as XML.

Steps to reproduce:

  1. Create a new blank diagram
  2. Click on File > Import from > Device...
  3. Select a diagram with background already exported as XML

Expected results: The diagram is imported as created and exported.

Actual results: The background image isn't shown after import.

NOTE: Same steps were done on draw.io and the background image is showing successfully after the import.

Results

Environment: Windows 11, XWiki 14.10.10, Chrome 114, Diagram Application (Pro) 1.19

@ane-gabriela ane-gabriela added this to the 1.19.1 milestone Jul 24, 2023
@oanalavinia oanalavinia modified the milestones: 1.19.1, 1.19.2 Oct 5, 2023
@oanalavinia oanalavinia modified the milestones: 1.19.2, 1.19.3, 1.19.4 Nov 13, 2023
@oanalavinia oanalavinia modified the milestones: 1.19.4, 1.19.5 Nov 21, 2023
@petrenkonikita112263
Copy link

petrenkonikita112263 commented Nov 22, 2023

The issue is still reproducible no matter how the diagram will be imported as local file (XML in description) or as .drawio or externally using URL. The background won't be displayed.

I've additionally tested with latest version of app (1.19.4) on 13.10 XWiki. For example, I used this infographic diagram with dark background (see this link)

image

However, after saving imported diagram, user can see a grey background instead of original black one
image

Workaround to manually add image as background, see FAQ entry of drawio
msedge_ZdT3L11AMW

@petrenkonikita112263
Copy link

OMV, the issue isn't related to Diagram (Pro). It's mostly an issue of draw.io dependency, which currently in app is 20.5.0, while on repository is 22.1.3 but still issue can be reproduced on https://app.diagrams.net/. If we want to see fixed version, then issue shall be reported on https://github.com/jgraph/drawio/issues repository

@ane-gabriela
Copy link
Author

@snazare Tested on XWiki 15.10.10 with version 1.21-rc-1, extension id com.xwiki.diagram:application-diagram (drawio24.5.5) - got the same result as above, the diagram imported doesn't contain the background image

Diagram exported as XML:

DiagramExportedAsXML

Diagram resulted after the import:

ResultAfterImport

@ane-gabriela
Copy link
Author

Issue reproducing on XWiki 14.10.18 with Diagram version 1.21.1-rc-1, Chrome 131, Windows 11 Pro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

4 participants