Posted By

bcmoney on 02/19/14


Tagged

tool authoring e-restaurant


Versions (?)

mxGraph - Typical Restaurant Layout


 / Published in: XML
 

URL: http://jgraph.github.io/mxgraph/javascript/examples/editors/diagrameditor.html

The XML snippet for a typical Japanese Teppanyaki Restaurant... this shows how mxGraph could easily be used for quickly creating table layouts and templates for an E-Restaurant Ordering System (only problem of course being the $5000 license to do so legally.)

Thought about making my own more basic featured drawing lib like mxGraph, see related SO question: http://stackoverflow.com/questions/16575137/canvas-or-svg-for-basic-interactive-editor

The cost of mxGraph keeps going up... now over $5000/license which is prohibitively expensive without major funding: http://www.jgraph.com/purchase.html

  1. <mxGraphModel>
  2. <root>
  3. <Diagram label="My Diagram" href="http://www.jgraph.com/" id="0">
  4. <mxCell/>
  5. </Diagram>
  6. <Layer label="Default Layer" id="1">
  7. <mxCell parent="0"/>
  8. </Layer>
  9. <Rect label="Table 1" href="" id="2">
  10. <mxCell vertex="1" parent="1">
  11. <mxGeometry x="40" y="50" width="80" height="40" as="geometry"/>
  12. </mxCell>
  13. </Rect>
  14. <Rect label="Table 2" href="" id="3">
  15. <mxCell vertex="1" parent="1">
  16. <mxGeometry x="40" y="140" width="80" height="40" as="geometry"/>
  17. </mxCell>
  18. </Rect>
  19. <Rect label="Table 3" href="" id="4">
  20. <mxCell vertex="1" parent="1">
  21. <mxGeometry x="40" y="230" width="80" height="40" as="geometry"/>
  22. </mxCell>
  23. </Rect>
  24. <Shape label="Table 7" href="" id="5">
  25. <mxCell style="doubleEllipse" vertex="1" parent="1">
  26. <mxGeometry x="190" y="220" width="60" height="60" as="geometry"/>
  27. </mxCell>
  28. </Shape>
  29. <Shape label="Teppanyaki" href="" id="6">
  30. <mxCell style="hexagon" vertex="1" parent="1">
  31. <mxGeometry x="180" y="130" width="80" height="60" as="geometry"/>
  32. </mxCell>
  33. </Shape>
  34. <Shape label="Cash" href="" id="11">
  35. <mxCell style="actor" vertex="1" parent="1">
  36. <mxGeometry x="20" y="390" width="40" height="60" as="geometry"/>
  37. </mxCell>
  38. </Shape>
  39. <Roundrect label="Bar" href="" id="16">
  40. <mxCell style="rounded;rotation=90" vertex="1" parent="1">
  41. <mxGeometry x="330" y="140" width="160" height="40" as="geometry"/>
  42. </mxCell>
  43. </Roundrect>
  44. <Shape label="Table 5" href="" id="17">
  45. <mxCell style="doubleEllipse" vertex="1" parent="1">
  46. <mxGeometry x="280" y="80" width="60" height="60" as="geometry"/>
  47. </mxCell>
  48. </Shape>
  49. <Shape label="Table 6" href="" id="18">
  50. <mxCell style="doubleEllipse" vertex="1" parent="1">
  51. <mxGeometry x="280" y="170" width="60" height="60" as="geometry"/>
  52. </mxCell>
  53. </Shape>
  54. <Shape label="Table 4" href="" id="19">
  55. <mxCell style="doubleEllipse" vertex="1" parent="1">
  56. <mxGeometry x="190" y="30" width="60" height="60" as="geometry"/>
  57. </mxCell>
  58. </Shape>
  59. <Shape label="Kitchen" href="" id="20">
  60. <mxCell style="cloud;rotation=90" vertex="1" parent="1">
  61. <mxGeometry x="470" y="85" width="130" height="150" as="geometry"/>
  62. </mxCell>
  63. </Shape>
  64. </root>
  65. </mxGraphModel>

Report this snippet  

You need to login to post a comment.