Closed ane-gabriela closed 4 years ago
For this we would need to extend the diagram-graph-xml-filter
module from Diagram.DiagramSheet
to add support for filtering the backgroundImage
attribute of mxGraphModel
. This issue is more how to do it without duplicating code.
<mxGraphModel dx="714" dy="497" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" background="none" backgroundImage="{"src":"https://eztrackit.com/wp-content/uploads/2013/07/Tree.png","width":"256","height":"256"}" math="0" shadow="0">
The value of backgroundImage
seems to be JSON.
I'm removing the critical label because setting a background image on a diagram is not a common use case IMO.
Steps to reproduce:
Expected results: The diagram appears with the selected background image and shapes.
Actual results: The background image is missing.
Environment: Windows 10, XWiki 11.3.6 Standard and Chrome 78, Diagram Application (Pro) 1.11