MxGraph icon indicating copy to clipboard operation
MxGraph copied to clipboard

Cliparts are not visible in the frontend

Open jonnitto opened this issue 5 years ago • 1 comments

If cliparts are used in a diagramm, there are visible in the backend, but not in the frontend.

image

If I create an image with the src of the svg, the cliparts will not show up, but if I include directly the SVG, everything looks fine: image

jonnitto avatar Oct 07 '20 15:10 jonnitto

Currently, I solved this with this Javascript:

[...document.querySelectorAll('.sandstorm-mxgraph-diagram img')].forEach(
    (image) => {
        fetch(image.src)
            .then((response) => response.text())
            .then((svg) => {
                image.parentNode.innerHTML = svg;
            })
            .catch(console.error.bind(console));
    }
);

jonnitto avatar Oct 07 '20 18:10 jonnitto