PageRenderTime 59ms CodeModel.GetById 29ms RepoModel.GetById 0ms app.codeStats 1ms

/etc/html/test/diagram.svg

https://bitbucket.org/lgleim/mxgraph2
SVG | 85 lines | 74 code | 11 blank | 0 comment | 16 complexity | 958222e09344bb532c8b143b7af10630 MD5 | raw file
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
  3. <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="162px" height="102px" version="1.1" content="&lt;mxGraphModel dx=&quot;891&quot; dy=&quot;1282&quot; grid=&quot;1&quot; gridSize=&quot;10&quot; guides=&quot;1&quot; tooltips=&quot;1&quot; connect=&quot;1&quot; fold=&quot;1&quot; page=&quot;1&quot; pageScale=&quot;1&quot; pageWidth=&quot;826&quot; pageHeight=&quot;1169&quot; background=&quot;#ffffff&quot; style=&quot;default-style2&quot; math=&quot;0&quot;&gt;&lt;root&gt;&lt;mxCell id=&quot;0&quot;/&gt;&lt;mxCell id=&quot;1&quot; style=&quot;&quot; parent=&quot;0&quot;/&gt;&lt;mxCell id=&quot;145&quot; value=&quot;&quot; style=&quot;whiteSpace=wrap;html=1;fillColor=#ffffff;strokeColor=none;&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&lt;mxGeometry x=&quot;330&quot; y=&quot;270&quot; width=&quot;160&quot; height=&quot;100&quot; as=&quot;geometry&quot;/&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;51&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeWidth=1;shape=link;endArrow=none;endFill=0;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;/&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;52&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;mxPoint x=&quot;820&quot; y=&quot;500&quot; as=&quot;targetPoint&quot;/&gt;&lt;Array as=&quot;points&quot;&gt;&lt;mxPoint x=&quot;800&quot; y=&quot;364&quot;/&gt;&lt;mxPoint x=&quot;800&quot; y=&quot;644&quot;/&gt;&lt;/Array&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;53&quot; style=&quot;html=1;curved=1;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;Array as=&quot;points&quot;&gt;&lt;mxPoint x=&quot;520&quot; y=&quot;317&quot;/&gt;&lt;mxPoint x=&quot;510&quot; y=&quot;250&quot;/&gt;&lt;/Array&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;62&quot; value=&quot;&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeWidth=2;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;Array as=&quot;points&quot;&gt;&lt;mxPoint x=&quot;550&quot; y=&quot;920&quot;/&gt;&lt;/Array&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;65&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeWidth=2;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;Array as=&quot;points&quot;&gt;&lt;mxPoint x=&quot;763&quot; y=&quot;364&quot;/&gt;&lt;mxPoint x=&quot;763&quot; y=&quot;635&quot;/&gt;&lt;/Array&gt;&lt;mxPoint x=&quot;716.9952615528866&quot; y=&quot;635&quot; as=&quot;targetPoint&quot;/&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;66&quot; value=&quot;Exit&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=1;html=1;strokeWidth=2;labelBorderColor=#000000;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry x=&quot;-0.823&quot; relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;mxPoint as=&quot;offset&quot;/&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;71&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;mxPoint x=&quot;414&quot; y=&quot;331&quot; as=&quot;sourcePoint&quot;/&gt;&lt;Array as=&quot;points&quot;&gt;&lt;mxPoint x=&quot;408&quot; y=&quot;283&quot;/&gt;&lt;mxPoint x=&quot;439&quot; y=&quot;283&quot;/&gt;&lt;/Array&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;80&quot; value=&quot;dispatch&quot; style=&quot;html=1;verticalAlign=bottom;endArrow=block;entryX=0;entryY=0;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;mxPoint x=&quot;129&quot; y=&quot;701&quot; as=&quot;sourcePoint&quot;/&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;81&quot; value=&quot;return&quot; style=&quot;html=1;verticalAlign=bottom;endArrow=open;dashed=1;endSize=8;exitX=0;exitY=0.95;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;&gt;&lt;mxPoint x=&quot;129&quot; y=&quot;777&quot; as=&quot;targetPoint&quot;/&gt;&lt;/mxGeometry&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;107&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;strokeWidth=5;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;/&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;108&quot; style=&quot;edgeStyle=orthogonalEdgeStyle;rounded=0;html=1;&quot; parent=&quot;1&quot; edge=&quot;1&quot;&gt;&lt;mxGeometry relative=&quot;1&quot; as=&quot;geometry&quot;/&gt;&lt;/mxCell&gt;&lt;mxCell id=&quot;144&quot; value=&quot;Click here!&quot; style=&quot;rounded=1;whiteSpace=wrap;html=1;fontSize=15;fontStyle=1;arcSize=39;blue&quot; parent=&quot;1&quot; vertex=&quot;1&quot;&gt;&lt;mxGeometry x=&quot;350&quot; y=&quot;290&quot; width=&quot;120&quot; height=&quot;60&quot; as=&quot;geometry&quot;/&gt;&lt;/mxCell&gt;&lt;/root&gt;&lt;/mxGraphModel&gt;">
  4. <script type="text/javascript"><![CDATA[
  5. function edit(image)
  6. {
  7. var wnd = null;
  8. var save = function()
  9. {
  10. var req = new XMLHttpRequest();
  11. req.withCredentials = true;
  12. req.onreadystatechange = function()
  13. {
  14. if (req.readyState == 4)
  15. {
  16. if (req.status >= 200 || req.status <= 209)
  17. {
  18. wnd.close();
  19. }
  20. else
  21. {
  22. alert('Error ' + req.status);
  23. }
  24. }
  25. };
  26. req.open('PUT', location.href, true);
  27. req.send('<?xml version="1.0" encoding="UTF-8"?>\n' +
  28. '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n' +
  29. document.documentElement.outerHTML);
  30. };
  31. var receive = function(evt)
  32. {
  33. if (evt.data.length > 0)
  34. {
  35. var msg = JSON.parse(evt.data);
  36. if (msg.event == 'init')
  37. {
  38. wnd.postMessage(JSON.stringify({action: 'load', xml: image.ownerSVGElement.outerHTML}), '*');
  39. }
  40. else if (msg.event == 'export')
  41. {
  42. var temp = new Image();
  43. temp.onload = function()
  44. {
  45. image.setAttribute('xlink:href', msg.data);
  46. image.setAttribute('width', temp.width + 'px');
  47. image.setAttribute('height', temp.height + 'px');
  48. image.ownerSVGElement.setAttribute('width', temp.width + 'px');
  49. image.ownerSVGElement.setAttribute('height', temp.height + 'px');
  50. save();
  51. };
  52. temp.onerror = function(err)
  53. {
  54. alert('Error ' + err);
  55. }
  56. temp.src = msg.data;
  57. }
  58. else if (msg.event == 'save')
  59. {
  60. wnd.postMessage(JSON.stringify({action: 'export', format: 'png', spinKey: 'saving'}), '*');
  61. image.ownerSVGElement.setAttribute('content', msg.xml);
  62. }
  63. else if (msg.event == 'exit')
  64. {
  65. wnd.close();
  66. }
  67. }
  68. };
  69. window.addEventListener('message', receive);
  70. wnd = window.open('https://www.draw.io/?embed=1&ui=atlas&spin=1&proto=json');
  71. }
  72. ]]></script>
  73. <image style="cursor:pointer;" onclick="edit(this);" x="0" y="0" width="162px" height="102px" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAABmCAYAAABIi0q5AAAACXBIWXMAAAsTAAALEwEAmpwYAAAQGElEQVR4nO2de3gV5Z3HPzNz7uckJCEJCQkgEBCwXATLiqzWKpWurti6WuxWqu7j09paq3i/tA/2sdg+KGqL4tbVrsLaPqLWrq67omVr8RKlyMOiBURuYsj9enJybjPzzv4xJzkBpIl45mSSvp/nmSc5c97bmfnO7/feR7Esy0IiGWLUoS6ARAJSiBKXIIUocQVSiBJXIIUocQVSiBJXIIUocQVSiBJXIIUocQVSiBJXIIUocQVSiBJXIIUocQVSiBJXIIUocQVSiBJXIIUocQVSiBJXIIUocQWeoS7Ap2EBqbSJsCyEyByZpTVCyCU2A6Gqiv1XUVBVBU1VUBSFgE8b4pIdH8Uti6ds8RmkdIGum3g8Gh6PioJ9MRXFvrAoylAX1f1Y9oNrWfaDa2FhGALdMPF5NfxelYDPXTbIFUKMJXSSKQNNU/F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