How download in png a svg made with Mxgraph

41 Views Asked by At

I'm using Mxgraph to do a diagram tool, in this tool I have some images that I need to make my diagrams. I use insertVertx to add images like this:

const IMAGE = 'routeimage.png';

    const vertex = graph.insertVertex(
    parent,
    null,
    '',
    x,
    y,
    width,
    height,
    'shape=image;image=' + IMAGE
    );

When I try to download the svg like .png the image that I add using insertVertex doesnt show

0

There are 0 best solutions below