Sidebar-Floorplan.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351
  1. (function()
  2. {
  3. // Adds Floorplan shapes
  4. Sidebar.prototype.addFloorplanPalette = function()
  5. {
  6. var w = 100;
  7. var h = 100;
  8. var s = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;html=1;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;align=center;' + mxConstants.STYLE_STROKEWIDTH + '=1;shape=mxgraph.floorplan.';
  9. var s2 = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=center;html=1;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;align=center;' + mxConstants.STYLE_STROKEWIDTH + '=1;shape=mxgraph.floorplan.';
  10. var gn = 'mxgraph.floorplan';
  11. var dt = 'floorplan ';
  12. var fns =
  13. [
  14. this.createVertexTemplateEntry(s + 'wall;fillColor=#000000;',
  15. w, 10, '', 'Wall (Horizontal)', null, null, this.getTagsForStencil(gn, 'wall', dt).join(' ')),
  16. this.createVertexTemplateEntry(s + 'wall;fillColor=#000000;direction=south;',
  17. 10, h, '', 'Wall (Vertical)', null, null, this.getTagsForStencil(gn, 'wall', dt).join(' ')),
  18. this.createVertexTemplateEntry(s + 'wallCorner;fillColor=#000000;',
  19. w, h, '', 'Wall (Corner NW)', null, null, this.getTagsForStencil(gn, 'wallCorner', dt).join(' ')),
  20. this.createVertexTemplateEntry(s + 'wallCorner;fillColor=#000000;direction=south;',
  21. w, h, '', 'Wall (Corner NE)', null, null, this.getTagsForStencil(gn, 'wallCorner', dt).join(' ')),
  22. this.createVertexTemplateEntry(s + 'wallCorner;fillColor=#000000;direction=west',
  23. w, h, '', 'Wall (Corner SE)', null, null, this.getTagsForStencil(gn, 'wallCorner', dt).join(' ')),
  24. this.createVertexTemplateEntry(s + 'wallCorner;fillColor=#000000;direction=north',
  25. w, h, '', 'Wall (Corner SW)', null, null, this.getTagsForStencil(gn, 'wallCorner', dt).join(' ')),
  26. this.createVertexTemplateEntry(s + 'wallU;fillColor=#000000;',
  27. w, h, '', 'Wall (U)', null, null, this.getTagsForStencil(gn, 'wallU', dt).join(' ')),
  28. this.createVertexTemplateEntry(s + 'room;fillColor=#000000;',
  29. w, h, '', 'Room', null, null, this.getTagsForStencil(gn, 'room', dt).join(' ')),
  30. this.createVertexTemplateEntry(s + 'window;fillColor=#ffffff;',
  31. w, 10, '', 'Window', null, null, this.getTagsForStencil(gn, 'window', dt).join(' ')),
  32. this.createVertexTemplateEntry(s2 + 'dimension;verticalAlign=top;',
  33. w * 2, 40, '100', 'Dimension', null, null, this.getTagsForStencil(gn, 'dimension', dt).join(' ')),
  34. this.createVertexTemplateEntry(s2 + 'dimensionBottom;verticalAlign=bottom;',
  35. w * 2, 40, '100', 'Dimension', null, null, this.getTagsForStencil(gn, 'dimensionBottom', dt).join(' ')),
  36. this.createVertexTemplateEntry(s + 'stairs;',
  37. 300, 100, '', 'Stairs', null, null, this.getTagsForStencil(gn, 'stairs', dt).join(' ')),
  38. this.createVertexTemplateEntry(s + 'stairs;direction=south;',
  39. 100, 300, '', 'Stairs', null, null, this.getTagsForStencil(gn, 'stairs', dt).join(' ')),
  40. this.createVertexTemplateEntry(s + 'stairsRest;',
  41. 300, 200, '', 'Stairs', null, null, this.getTagsForStencil(gn, 'stairsRest', dt).join(' ')),
  42. this.createVertexTemplateEntry(s + 'doorLeft;',
  43. 80, 85, '', 'Door', null, null, this.getTagsForStencil(gn, 'doorLeft', dt).join(' ')),
  44. this.createVertexTemplateEntry(s + 'doorRight;',
  45. 80, 85, '', 'Door', null, null, this.getTagsForStencil(gn, 'doorRight', dt).join(' ')),
  46. this.createVertexTemplateEntry(s + 'doorDouble;',
  47. 160, 85, '', 'Door, Double', null, null, this.getTagsForStencil(gn, 'doorDouble', dt).join(' ')),
  48. this.createVertexTemplateEntry(s + 'bathtub;',
  49. 180, 60, '', 'Bathtub', null, null, this.getTagsForStencil(gn, 'bathtub', dt).join(' ')),
  50. this.createVertexTemplateEntry(s + 'bed_double;',
  51. 200, 180, '', 'Bed, Double', null, null, this.getTagsForStencil(gn, 'bed_double', dt).join(' ')),
  52. this.createVertexTemplateEntry(s + 'bed_single;',
  53. 100, 180, '', 'Bed Single', null, null, this.getTagsForStencil(gn, 'bed_single', dt).join(' ')),
  54. this.createVertexTemplateEntry(s + 'bookcase;',
  55. 120, 30, '', 'Bookcase', null, null, this.getTagsForStencil(gn, 'bookcase', dt).join(' ')),
  56. this.createVertexTemplateEntry(s + 'chair;',
  57. 41, 52, '', 'Chair', null, null, this.getTagsForStencil(gn, 'chair', dt).join(' ')),
  58. this.createVertexTemplateEntry(s + 'copier;',
  59. 110, 60, '', 'Copier', null, null, this.getTagsForStencil(gn, 'copier', dt).join(' ')),
  60. this.createVertexTemplateEntry(s + 'couch;',
  61. 150, 80, '', 'Couch', null, null, this.getTagsForStencil(gn, 'couch', dt).join(' ')),
  62. this.createVertexTemplateEntry(s + 'crt_tv;',
  63. 60, 40, '', 'CRT TV', null, null, this.getTagsForStencil(gn, 'crt_tv', dt).join(' ')),
  64. this.createVertexTemplateEntry(s + 'desk_corner;',
  65. 150, 150, '', 'Desk Corner', null, null, this.getTagsForStencil(gn, 'desk_corner', dt).join(' ')),
  66. this.createVertexTemplateEntry(s + 'desk_corner_2;',
  67. 150, 120, '', 'Desk Corner 2', null, null, this.getTagsForStencil(gn, 'desk_corner_2', dt).join(' ')),
  68. this.createVertexTemplateEntry(s + 'dresser;',
  69. 100, 65, '', 'Dresser', null, null, this.getTagsForStencil(gn, 'dresser', dt).join(' ')),
  70. this.createVertexTemplateEntry(s + 'elevator;',
  71. 100, 100, '', 'Elevator', null, null, this.getTagsForStencil(gn, 'elevator', dt).join(' ')),
  72. this.createVertexTemplateEntry(s + 'fireplace;',
  73. 304, 200, '', 'Fireplace', null, null, this.getTagsForStencil(gn, 'fireplace', dt).join(' ')),
  74. this.createVertexTemplateEntry(s + 'flat_tv;',
  75. 70, 10, '', 'Flat TV', null, null, this.getTagsForStencil(gn, 'flat_tv', dt).join(' ')),
  76. this.createVertexTemplateEntry(s + 'floor_lamp;',
  77. 50, 50, '', 'Floor Lamp', null, null, this.getTagsForStencil(gn, 'floor_lamp', dt).join(' ')),
  78. this.createVertexTemplateEntry(s + 'laptop;',
  79. 40, 35, '', 'Laptop', null, null, this.getTagsForStencil(gn, 'laptop', dt).join(' ')),
  80. this.createVertexTemplateEntry(s + 'office_chair;',
  81. 40, 43, '', 'Office Chair', null, null, this.getTagsForStencil(gn, 'office_chair', dt).join(' ')),
  82. this.createVertexTemplateEntry(s + 'piano;',
  83. 135, 143, '', 'Piano', null, null, this.getTagsForStencil(gn, 'piano', dt).join(' ')),
  84. this.createVertexTemplateEntry(s + 'plant;',
  85. 47, 51, '', 'Plant', null, null, this.getTagsForStencil(gn, 'plant', dt).join(' ')),
  86. this.createVertexTemplateEntry(s + 'printer;',
  87. 40, 47, '', 'Printer', null, null, this.getTagsForStencil(gn, 'printer', dt).join(' ')),
  88. this.createVertexTemplateEntry(s + 'range_1;',
  89. 50, 62, '', 'Range 1', null, null, this.getTagsForStencil(gn, 'range_1', dt).join(' ')),
  90. this.createVertexTemplateEntry(s + 'range_2;',
  91. 75, 62, '', 'Range 2', null, null, this.getTagsForStencil(gn, 'range_2', dt).join(' ')),
  92. this.createVertexTemplateEntry(s + 'refrigerator;',
  93. 60, 62, '', 'Refrigerator', null, null, this.getTagsForStencil(gn, 'refrigerator', dt).join(' ')),
  94. this.createVertexTemplateEntry(s + 'shower;',
  95. 100, 100, '', 'Shower', null, null, this.getTagsForStencil(gn, 'shower', dt).join(' ')),
  96. this.createVertexTemplateEntry(s + 'sink_1;',
  97. 40, 35, '', 'Sink 1', null, null, this.getTagsForStencil(gn, 'sink_1', dt).join(' ')),
  98. this.createVertexTemplateEntry(s + 'sink_2;',
  99. 40, 35, '', 'Sink 2', null, null, this.getTagsForStencil(gn, 'sink_2', dt).join(' ')),
  100. this.createVertexTemplateEntry(s + 'sink_double;',
  101. 80, 35, '', 'Sink Double', null, null, this.getTagsForStencil(gn, 'sink_double', dt).join(' ')),
  102. this.createVertexTemplateEntry(s + 'sofa;',
  103. 90, 80, '', 'Sofa', null, null, this.getTagsForStencil(gn, 'sofa', dt).join(' ')),
  104. this.createVertexTemplateEntry(s + 'spiral_stairs;',
  105. 200, 200, '', 'Spiral Stairs', null, null, this.getTagsForStencil(gn, 'spiral_stairs', dt).join(' ')),
  106. this.createVertexTemplateEntry(s + 'table;',
  107. 90, 50, '', 'Table', null, null, this.getTagsForStencil(gn, 'table', dt).join(' ')),
  108. this.createVertexTemplateEntry(s + 'toilet;',
  109. 50, 67, '', 'Toilet', null, null, this.getTagsForStencil(gn, 'toilet', dt).join(' ')),
  110. this.createVertexTemplateEntry(s + 'water_cooler;',
  111. 40, 40, '', 'Water Cooler', null, null, this.getTagsForStencil(gn, 'water_cooler', dt).join(' ')),
  112. this.createVertexTemplateEntry(s + 'workstation;',
  113. 50, 40, '', 'Workstation', null, null, this.getTagsForStencil(gn, 'workstation', dt).join(' ')),
  114. this.addEntry(dt + 'kitchen table small', function()
  115. {
  116. var table = new mxCell('', new mxGeometry(0, 20, 80, 80), 'shape=rect;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  117. table.vertex = true;
  118. var chair1 = new mxCell('', new mxGeometry(20, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  119. chair1.vertex = true;
  120. var chair2 = new mxCell('', new mxGeometry(20, 68, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;rotation=180;');
  121. chair2.vertex = true;
  122. return sb.createVertexTemplateFromCells([chair1, chair2, table], 80, 120, 'Small kitchen table');
  123. }),
  124. this.addEntry(dt + 'kitchen table', function()
  125. {
  126. var table = new mxCell('', new mxGeometry(20, 20, 100, 100), 'shape=rect;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  127. table.vertex = true;
  128. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  129. chair1.vertex = true;
  130. var chair2 = new mxCell('', new mxGeometry(50, 88, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  131. chair2.vertex = true;
  132. var chair3 = new mxCell('', new mxGeometry(0, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  133. chair3.vertex = true;
  134. var chair4 = new mxCell('', new mxGeometry(88, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  135. chair4.vertex = true;
  136. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, table], 140, 140, 'Kitchen table');
  137. }),
  138. this.addEntry(dt + 'kitchen table', function()
  139. {
  140. var table = new mxCell('', new mxGeometry(20, 20, 100, 100), 'shape=ellipse;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  141. table.vertex = true;
  142. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  143. chair1.vertex = true;
  144. var chair2 = new mxCell('', new mxGeometry(50, 88, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  145. chair2.vertex = true;
  146. var chair3 = new mxCell('', new mxGeometry(0, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  147. chair3.vertex = true;
  148. var chair4 = new mxCell('', new mxGeometry(88, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  149. chair4.vertex = true;
  150. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, table], 140, 140, 'Round kitchen table');
  151. }),
  152. this.addEntry(dt + 'kitchen table large', function()
  153. {
  154. var table = new mxCell('', new mxGeometry(20, 20, 160, 100), 'shape=rect;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  155. table.vertex = true;
  156. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  157. chair1.vertex = true;
  158. var chair2 = new mxCell('', new mxGeometry(50, 88, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  159. chair2.vertex = true;
  160. var chair3 = new mxCell('', new mxGeometry(0, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  161. chair3.vertex = true;
  162. var chair4 = new mxCell('', new mxGeometry(148, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  163. chair4.vertex = true;
  164. var chair5 = new mxCell('', new mxGeometry(110, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  165. chair5.vertex = true;
  166. var chair6 = new mxCell('', new mxGeometry(110, 88, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  167. chair6.vertex = true;
  168. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, chair5, chair6, table], 200, 140, 'Large kitchen table');
  169. }),
  170. this.addEntry(dt + 'kitchen table large', function()
  171. {
  172. var table = new mxCell('', new mxGeometry(20, 20, 160, 100), 'shape=ellipse;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  173. table.vertex = true;
  174. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  175. chair1.vertex = true;
  176. var chair2 = new mxCell('', new mxGeometry(50, 88, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  177. chair2.vertex = true;
  178. var chair3 = new mxCell('', new mxGeometry(0, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  179. chair3.vertex = true;
  180. var chair4 = new mxCell('', new mxGeometry(148, 50, 52, 40), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  181. chair4.vertex = true;
  182. var chair5 = new mxCell('', new mxGeometry(110, 0, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  183. chair5.vertex = true;
  184. var chair6 = new mxCell('', new mxGeometry(110, 88, 40, 52), s + 'chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  185. chair6.vertex = true;
  186. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, chair5, chair6, table], 200, 140, 'Large kitchen table');
  187. }),
  188. this.addEntry(dt + 'office table', function()
  189. {
  190. var table = new mxCell('', new mxGeometry(0, 20, 80, 50), 'shape=rect;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  191. table.vertex = true;
  192. var chair1 = new mxCell('', new mxGeometry(20, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  193. chair1.vertex = true;
  194. var item1 = new mxCell('', new mxGeometry(15, 30, 50, 40), s + 'workstation;fillColor=#ffffff;strokeColor=#000000;shadow=0;flipV=1;');
  195. item1.vertex = true;
  196. return sb.createVertexTemplateFromCells([chair1, table, item1], 80, 70, 'Office table');
  197. }),
  198. this.addEntry(dt + 'office table', function()
  199. {
  200. var table = new mxCell('', new mxGeometry(20, 20, 100, 100), 'shape=rect;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  201. table.vertex = true;
  202. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  203. chair1.vertex = true;
  204. var chair2 = new mxCell('', new mxGeometry(50, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  205. chair2.vertex = true;
  206. var chair3 = new mxCell('', new mxGeometry(0, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  207. chair3.vertex = true;
  208. var chair4 = new mxCell('', new mxGeometry(97, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  209. chair4.vertex = true;
  210. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, table], 140, 140, 'Office table');
  211. }),
  212. this.addEntry(dt + 'office table large', function()
  213. {
  214. var table = new mxCell('', new mxGeometry(20, 20, 160, 100), 'shape=rect;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  215. table.vertex = true;
  216. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  217. chair1.vertex = true;
  218. var chair2 = new mxCell('', new mxGeometry(50, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  219. chair2.vertex = true;
  220. var chair3 = new mxCell('', new mxGeometry(0, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  221. chair3.vertex = true;
  222. var chair4 = new mxCell('', new mxGeometry(157, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  223. chair4.vertex = true;
  224. var chair5 = new mxCell('', new mxGeometry(110, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  225. chair5.vertex = true;
  226. var chair6 = new mxCell('', new mxGeometry(110, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  227. chair6.vertex = true;
  228. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, chair5, chair6, table], 200, 140, 'Large office table');
  229. }),
  230. this.addEntry(dt + 'office table large', function()
  231. {
  232. var table = new mxCell('', new mxGeometry(20, 20, 160, 100), 'shape=ellipse;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  233. table.vertex = true;
  234. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  235. chair1.vertex = true;
  236. var chair2 = new mxCell('', new mxGeometry(50, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  237. chair2.vertex = true;
  238. var chair3 = new mxCell('', new mxGeometry(0, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  239. chair3.vertex = true;
  240. var chair4 = new mxCell('', new mxGeometry(157, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  241. chair4.vertex = true;
  242. var chair5 = new mxCell('', new mxGeometry(110, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  243. chair5.vertex = true;
  244. var chair6 = new mxCell('', new mxGeometry(110, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  245. chair6.vertex = true;
  246. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, chair5, chair6, table], 200, 140, 'Large office table');
  247. }),
  248. this.addEntry(dt + 'office table large', function()
  249. {
  250. var table = new mxCell('', new mxGeometry(20, 20, 280, 100), 'shape=ellipse;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  251. table.vertex = true;
  252. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  253. chair1.vertex = true;
  254. var chair2 = new mxCell('', new mxGeometry(50, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  255. chair2.vertex = true;
  256. var chair3 = new mxCell('', new mxGeometry(0, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  257. chair3.vertex = true;
  258. var chair4 = new mxCell('', new mxGeometry(277, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  259. chair4.vertex = true;
  260. var chair5 = new mxCell('', new mxGeometry(110, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  261. chair5.vertex = true;
  262. var chair6 = new mxCell('', new mxGeometry(110, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  263. chair6.vertex = true;
  264. var chair7 = new mxCell('', new mxGeometry(170, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  265. chair7.vertex = true;
  266. var chair8 = new mxCell('', new mxGeometry(170, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  267. chair8.vertex = true;
  268. var chair9 = new mxCell('', new mxGeometry(230, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  269. chair9.vertex = true;
  270. var chair10 = new mxCell('', new mxGeometry(230, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  271. chair10.vertex = true;
  272. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, chair5, chair6, chair7, chair8, chair9, chair10, table], 320, 140, 'Large office table');
  273. }),
  274. this.addEntry(dt + 'office table conference large huge', function()
  275. {
  276. var table = new mxCell('', new mxGeometry(20, 20, 520, 100), 'shape=ellipse;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  277. table.vertex = true;
  278. var chair1 = new mxCell('', new mxGeometry(50, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  279. chair1.vertex = true;
  280. var chair2 = new mxCell('', new mxGeometry(50, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  281. chair2.vertex = true;
  282. var chair3 = new mxCell('', new mxGeometry(0, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=north;');
  283. chair3.vertex = true;
  284. var chair4 = new mxCell('', new mxGeometry(517, 50, 43, 40), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=south');
  285. chair4.vertex = true;
  286. var chair5 = new mxCell('', new mxGeometry(110, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  287. chair5.vertex = true;
  288. var chair6 = new mxCell('', new mxGeometry(110, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  289. chair6.vertex = true;
  290. var chair7 = new mxCell('', new mxGeometry(170, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  291. chair7.vertex = true;
  292. var chair8 = new mxCell('', new mxGeometry(170, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  293. chair8.vertex = true;
  294. var chair9 = new mxCell('', new mxGeometry(230, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  295. chair9.vertex = true;
  296. var chair10 = new mxCell('', new mxGeometry(230, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  297. chair10.vertex = true;
  298. var chair11 = new mxCell('', new mxGeometry(290, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  299. chair11.vertex = true;
  300. var chair12 = new mxCell('', new mxGeometry(290, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  301. chair12.vertex = true;
  302. var chair13 = new mxCell('', new mxGeometry(350, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  303. chair13.vertex = true;
  304. var chair14 = new mxCell('', new mxGeometry(350, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  305. chair14.vertex = true;
  306. var chair15 = new mxCell('', new mxGeometry(410, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  307. chair15.vertex = true;
  308. var chair16 = new mxCell('', new mxGeometry(410, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  309. chair16.vertex = true;
  310. var chair17 = new mxCell('', new mxGeometry(470, 0, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;');
  311. chair17.vertex = true;
  312. var chair18 = new mxCell('', new mxGeometry(470, 97, 40, 43), s + 'office_chair;fillColor=#ffffff;strokeColor=#000000;shadow=0;direction=west;');
  313. chair18.vertex = true;
  314. return sb.createVertexTemplateFromCells([chair1, chair2, chair3, chair4, chair5, chair6, chair7, chair8, chair9, chair10, chair11, chair12, chair13, chair14, chair15, chair16, chair17, chair18, table], 560, 140, 'Conference table');
  315. })
  316. ];
  317. this.addPalette('floorplan', mxResources.get('floorplans'), false, mxUtils.bind(this, function(content)
  318. {
  319. for (var i = 0; i < fns.length; i++)
  320. {
  321. content.appendChild(fns[i](content));
  322. }
  323. }));
  324. };
  325. })();