How to add a mxCell

48 views
Skip to first unread message

Frank Mehlhop

unread,
Jun 12, 2018, 6:29:17 AM6/12/18
to draw.io
Hi,
I use Draw.io and set 
layout: string = `
<mxGraphModel dx="2066" dy="1139" grid="0" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0"/> ...

drawIoUi.editor.setGraphXml(mxUtils.parseXml(this.layout).documentElement);

Now I want to add a svg-image to it.
(I use Angular 6 and I take the svg from the app assets.)
How the code for adding a mxCell should look like?

Thanks for help!
Frank


Ashish Lathigara

unread,
Jun 4, 2024, 12:51:35 AMJun 4
to draw.io Q&A
Hey,

I embedded draw.io URL in an iframe in my angular 17 application. Now I need to add a feature that if the User uploads an XML file, then it must load to draw.io which is in iFrame.

Thanks in advance,
Ashish
Reply all
Reply to author
Forward
0 new messages