MxGraph: Is it possible to render a graph in HTML without SVG? -


i'm looking way render graph in html, solely using mxgraph javascript, without use of svg canvas. user manual says:

mxgraph includes feature render entirely using html, limits range of functionality available, suitable more simple diagrams."

however, i've tried following without success:

var editor = new mxeditor(); var graph = new mxgraph(graphcontelem, new mxgraphmodel(), 'fastest'); // fastest maps stricthtml graph.sethtmllabels(true); graph.dialect = mxconstants.dialect_stricthtml; editor.graph = graph; editor.creategraph(); 

adding cell:

var prototype = new mxcell('<input type="text" value="test" />', new mxgeometry(0, 0, w, h), style); prototype.setvertex(true); ... import cells ... 

leads this:

<svg style="width: 100%; height: 100%; display: block; min-width: 1px; min-height: 1px;"> ...     <g transform="translate(104,61)">         <foreignobject style="overflow:visible;" pointer-events="all" width="173" height="19">             <div style="display:inline-block;font-size:11px;font-family:arial,helvetica;color:#774400;line-height:1.2;vertical-align:top;white-space:nowrap;text-align:center;">                 <div xmlns="http://www.w3.org/1999/xhtml" style="display:inline-block;text-align:inherit;text-decoration:inherit;">                     <input type="text" value="test">                 </div>             </div>         </foreignobject>     </g>     ... </svg> 

my goal development of form editor; therefore cells of graph html widgets or web components, as, example, input fields.

is possible mxgraph? in advance!

the documentation needs updating, mxgraph hasn't supported mode long time.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -