Sidebar-IBM.js 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666
  1. (function()
  2. {
  3. Sidebar.prototype.addIBMPalette = function()
  4. {
  5. var d = 60;
  6. var dt = 'ibm ';
  7. var sb = this;
  8. var s = 'image;aspect=fixed;perimeter=ellipsePerimeter;html=1;align=center;shadow=0;dashed=0;fontColor=#4277BB;labelBackgroundColor=default;fontSize=12;spacingTop=3;image=img/lib/ibm/';
  9. // Adds IBM shapes
  10. this.setCurrentSearchEntryLibrary('ibm', 'ibmAnalytics');
  11. this.addIBMAnalyticsPalette(d, dt, sb, s);
  12. this.setCurrentSearchEntryLibrary('ibm', 'ibmApplications');
  13. this.addIBMApplicationsPalette(d, dt, sb, s);
  14. this.setCurrentSearchEntryLibrary('ibm', 'ibmBlockchain');
  15. this.addIBMBlockchainPalette(d, dt, sb, s);
  16. this.setCurrentSearchEntryLibrary('ibm', 'ibmData');
  17. this.addIBMDataPalette(d, dt, sb, s);
  18. this.setCurrentSearchEntryLibrary('ibm', 'ibmDevOps');
  19. this.addIBMDevOpsPalette(d, dt, sb, s);
  20. this.setCurrentSearchEntryLibrary('ibm', 'ibmInfrastructure');
  21. this.addIBMInfrastructurePalette(d, dt, sb, s);
  22. this.setCurrentSearchEntryLibrary('ibm', 'ibmManagement');
  23. this.addIBMManagementPalette(d, dt, sb, s);
  24. this.setCurrentSearchEntryLibrary('ibm', 'ibmMiscellaneous');
  25. this.addIBMMiscPalette(d, dt, sb, s);
  26. this.setCurrentSearchEntryLibrary('ibm', 'ibmSecurity');
  27. this.addIBMSecurityPalette(d, dt, sb, s);
  28. this.setCurrentSearchEntryLibrary('ibm', 'ibmSocial');
  29. this.addIBMSocialPalette(d, dt, sb, s);
  30. this.setCurrentSearchEntryLibrary('ibm', 'ibmUsers');
  31. this.addIBMUsersPalette(d, dt, sb, s);
  32. this.setCurrentSearchEntryLibrary('ibm', 'ibmVPC');
  33. this.addIBMVPCPalette(d, dt, sb, s);
  34. this.setCurrentSearchEntryLibrary('ibm', 'ibmBoxes');
  35. this.addIBMBoxesPalette(d, dt, sb, s);
  36. this.setCurrentSearchEntryLibrary('ibm', 'ibmConnectors');
  37. this.addIBMConnectorsPalette(d, dt, sb, s);
  38. this.setCurrentSearchEntryLibrary();
  39. };
  40. Sidebar.prototype.addIBMAnalyticsPalette = function(d, dt, sb, s)
  41. {
  42. s += 'analytics/';
  43. var gn = 'analytics ';
  44. var fns = [
  45. this.createVertexTemplateEntry(s + 'analytics.svg;',
  46. d, d, '', 'Analytics', false, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  47. this.createVertexTemplateEntry(s + 'data_integration.svg;',
  48. d, d, '', 'Data Integration', false, null, this.getTagsForStencil(gn, 'data integration', dt).join(' ')),
  49. this.createVertexTemplateEntry(s + 'data_repositories.svg;',
  50. d, d, '', 'Data Repositories', false, null, this.getTagsForStencil(gn, 'data repositories', dt).join(' ')),
  51. this.createVertexTemplateEntry(s + 'device_analytics.svg;',
  52. d, d, '', 'Device Analytics', false, null, this.getTagsForStencil(gn, 'device analytics', dt).join(' ')),
  53. this.createVertexTemplateEntry(s + 'streaming_computing.svg;',
  54. d, d, '', 'Streaming Computing', false, null, this.getTagsForStencil(gn, 'streaming computing', dt).join(' '))
  55. ];
  56. this.addPalette('ibmAnalytics', 'IBM / Analytics', false, mxUtils.bind(this, function(content)
  57. {
  58. for (var i = 0; i < fns.length; i++)
  59. {
  60. content.appendChild(fns[i](content));
  61. }
  62. }));
  63. };
  64. Sidebar.prototype.addIBMApplicationsPalette = function(d, dt, sb, s)
  65. {
  66. s += 'applications/';
  67. var gn = 'applications ';
  68. var fns = [
  69. this.createVertexTemplateEntry(s + 'actionable_insight.svg;',
  70. d, d, '', 'Actionable Insight', false, null, this.getTagsForStencil(gn, 'actionable insight', dt).join(' ')),
  71. this.createVertexTemplateEntry(s + 'annotate.svg;',
  72. d, d, '', 'Annotate', false, null, this.getTagsForStencil(gn, 'annotate', dt).join(' ')),
  73. this.createVertexTemplateEntry(s + 'api_developer_portal.svg;',
  74. d, d, '', 'API Developer Portal', false, null, this.getTagsForStencil(gn, 'api developer portal', dt).join(' ')),
  75. this.createVertexTemplateEntry(s + 'api_polyglot_runtimes.svg;',
  76. d, d, '', 'API Polyglot Runtimes', false, null, this.getTagsForStencil(gn, 'api polyglot runtimes', dt).join(' ')),
  77. this.createVertexTemplateEntry(s + 'app_server.svg;',
  78. d, d, '', 'App Server', false, null, this.getTagsForStencil(gn, 'app server', dt).join(' ')),
  79. this.createVertexTemplateEntry(s + 'application_logic.svg;',
  80. d, d, '', 'Application Logic', false, null, this.getTagsForStencil(gn, 'application logic', dt).join(' ')),
  81. this.createVertexTemplateEntry(s + 'automation_tools.svg;',
  82. d, d, '', 'Automation Tools', false, null, this.getTagsForStencil(gn, 'automation tools', dt).join(' ')),
  83. this.createVertexTemplateEntry(s + 'enterprise_applications.svg;',
  84. d, d, '', 'Enterprise Applications', false, null, this.getTagsForStencil(gn, 'enterprise applications', dt).join(' ')),
  85. this.createVertexTemplateEntry(s + 'index.svg;',
  86. d, d, '', 'Index', false, null, this.getTagsForStencil(gn, 'index', dt).join(' ')),
  87. this.createVertexTemplateEntry(s + 'iot_application.svg;',
  88. d, d, '', 'IoT Application', false, null, this.getTagsForStencil(gn, 'iot application', dt).join(' ')),
  89. this.createVertexTemplateEntry(s + 'microservice.svg;',
  90. d * 1.37, d, '', 'Microservice', false, null, this.getTagsForStencil(gn, 'microservice', dt).join(' ')),
  91. this.createVertexTemplateEntry(s + 'mobile_app.svg;',
  92. d, d, '', 'Mobile App', false, null, this.getTagsForStencil(gn, 'mobile app', dt).join(' ')),
  93. this.createVertexTemplateEntry(s + 'ontology.svg;',
  94. d, d, '', 'Ontology', false, null, this.getTagsForStencil(gn, 'ontology', dt).join(' ')),
  95. this.createVertexTemplateEntry(s + 'open_source_tools.svg;',
  96. d, d, '', 'Open Source Tools', false, null, this.getTagsForStencil(gn, 'open source tools', dt).join(' ')),
  97. this.createVertexTemplateEntry(s + 'runtime_services.svg;',
  98. d, d, '', 'Runtime Services', false, null, this.getTagsForStencil(gn, 'runtime services', dt).join(' ')),
  99. this.createVertexTemplateEntry(s + 'saas_applications.svg;',
  100. d, d, '', 'SaaS Applications', false, null, this.getTagsForStencil(gn, 'saas applications', dt).join(' ')),
  101. this.createVertexTemplateEntry(s + 'service_broker.svg;',
  102. d, d, '', 'Service Broker', false, null, this.getTagsForStencil(gn, 'service broker', dt).join(' ')),
  103. this.createVertexTemplateEntry(s + 'speech_to_text.svg;',
  104. d, d, '', 'Speech to Text', false, null, this.getTagsForStencil(gn, 'speech to text', dt).join(' ')),
  105. this.createVertexTemplateEntry(s + 'visual_recognition.svg;',
  106. d, d, '', 'Visual Recognition', false, null, this.getTagsForStencil(gn, 'visual recognition', dt).join(' ')),
  107. this.createVertexTemplateEntry(s + 'visualization.svg;',
  108. d, d, '', 'Visualization', false, null, this.getTagsForStencil(gn, 'visualization', dt).join(' '))
  109. ];
  110. this.addPalette('ibmApplications', 'IBM / Applications', false, mxUtils.bind(this, function(content)
  111. {
  112. for (var i = 0; i < fns.length; i++)
  113. {
  114. content.appendChild(fns[i](content));
  115. }
  116. }));
  117. };
  118. Sidebar.prototype.addIBMBlockchainPalette = function(d, dt, sb, s)
  119. {
  120. s += 'blockchain/';
  121. var gn = 'blockchain';
  122. var fns = [
  123. this.createVertexTemplateEntry(s + 'blockchain.svg;',
  124. d, d, '', 'Blockchain', false, null, this.getTagsForStencil(gn, '', dt).join(' ')),
  125. this.createVertexTemplateEntry(s + 'blockchain_developer.svg;',
  126. d, d, '', 'Blockchain Developer', false, null, this.getTagsForStencil(gn, 'developer', dt).join(' ')),
  127. this.createVertexTemplateEntry(s + 'certificate_authority.svg;',
  128. d, d, '', 'Certificate Authority', false, null, this.getTagsForStencil(gn, 'certificate authority', dt).join(' ')),
  129. this.createVertexTemplateEntry(s + 'client_application.svg;',
  130. d, d, '', 'Client Application', false, null, this.getTagsForStencil(gn, 'client application', dt).join(' ')),
  131. this.createVertexTemplateEntry(s + 'communication.svg;',
  132. d, d, '', 'Communication', false, null, this.getTagsForStencil(gn, 'communication', dt).join(' ')),
  133. this.createVertexTemplateEntry(s + 'consensus.svg;',
  134. d, d, '', 'Consensus', false, null, this.getTagsForStencil(gn, 'communication', dt).join(' ')),
  135. this.createVertexTemplateEntry(s + 'e_cert.svg;',
  136. d, d, '', 'E-Cert', false, null, this.getTagsForStencil(gn, 'ecert e-cert', dt).join(' ')),
  137. this.createVertexTemplateEntry(s + 'event.svg;',
  138. d, d, '', 'Event', false, null, this.getTagsForStencil(gn, 'event', dt).join(' ')),
  139. this.createVertexTemplateEntry(s + 'event_listener.svg;',
  140. d, d, '', 'Event Listener', false, null, this.getTagsForStencil(gn, 'event listener', dt).join(' ')),
  141. this.createVertexTemplateEntry(s + 'existing_enterprise_systems.svg;',
  142. d, d, '', 'Existing Enterprise Systems', false, null, this.getTagsForStencil(gn, 'existing enterprise systems', dt).join(' ')),
  143. this.createVertexTemplateEntry(s + 'hyperledger_fabric.svg;',
  144. d, d, '', 'Hyperledger Fabric', false, null, this.getTagsForStencil(gn, 'hyperledger fabric', dt).join(' ')),
  145. this.createVertexTemplateEntry(s + 'identity_access_manager.svg;',
  146. d, d, '', 'Identity & Access Manager', false, null, this.getTagsForStencil(gn, 'identity access manager', dt).join(' ')),
  147. this.createVertexTemplateEntry(s + 'key_management.svg;',
  148. d, d, '', 'Key Management', false, null, this.getTagsForStencil(gn, 'key management', dt).join(' ')),
  149. this.createVertexTemplateEntry(s + 'ledger.svg;',
  150. d, d, '', 'Ledger', false, null, this.getTagsForStencil(gn, 'ledger', dt).join(' ')),
  151. this.createVertexTemplateEntry(s + 'membership.svg;',
  152. d, d, '', 'Membership', false, null, this.getTagsForStencil(gn, 'membership', dt).join(' ')),
  153. this.createVertexTemplateEntry(s + 'membership_services_provider_api.svg;',
  154. d, d, '', 'Membership Services Provider API', false, null, this.getTagsForStencil(gn, 'membership services provider api', dt).join(' ')),
  155. this.createVertexTemplateEntry(s + 'message_bus.svg;',
  156. d, d, '', 'Message Bus', false, null, this.getTagsForStencil(gn, 'message bus', dt).join(' ')),
  157. this.createVertexTemplateEntry(s + 'node.svg;',
  158. d, d, '', 'Node', false, null, this.getTagsForStencil(gn, 'node', dt).join(' ')),
  159. this.createVertexTemplateEntry(s + 'services.svg;',
  160. d, d, '', 'Services', false, null, this.getTagsForStencil(gn, 'services', dt).join(' ')),
  161. this.createVertexTemplateEntry(s + 'smart_contract.svg;',
  162. d, d, '', 'Smart Contract', false, null, this.getTagsForStencil(gn, 'smart contract', dt).join(' ')),
  163. this.createVertexTemplateEntry(s + 'transaction_manager.svg;',
  164. d, d, '', 'Transaction Manager', false, null, this.getTagsForStencil(gn, 'transaction manager', dt).join(' ')),
  165. this.createVertexTemplateEntry(s + 'wallet.svg;',
  166. d, d, '', 'Wallet', false, null, this.getTagsForStencil(gn, 'wallet', dt).join(' '))
  167. ];
  168. this.addPalette('ibmBlockchain', 'IBM / Blockchain', false, mxUtils.bind(this, function(content)
  169. {
  170. for (var i = 0; i < fns.length; i++)
  171. {
  172. content.appendChild(fns[i](content));
  173. }
  174. }));
  175. };
  176. Sidebar.prototype.addIBMDataPalette = function(d, dt, sb, s)
  177. {
  178. s += 'data/';
  179. var gn = 'data ';
  180. var fns = [
  181. this.createVertexTemplateEntry(s + 'caches.svg;',
  182. d, d, '', 'Caches', false, null, this.getTagsForStencil(gn, 'caches', dt).join(' ')),
  183. this.createVertexTemplateEntry(s + 'conversation_trained_deployed.svg;',
  184. d, d, '', 'Conversation (Trained \& Deployed)', false, null, this.getTagsForStencil(gn, 'conversation trained deployed', dt).join(' ')),
  185. this.createVertexTemplateEntry(s + 'cloud.svg;',
  186. d, d, '', 'Cloud', false, null, this.getTagsForStencil(gn, 'cloud', dt).join(' ')),
  187. this.createVertexTemplateEntry(s + 'data_services.svg;',
  188. d, d, '', 'Data Services', false, null, this.getTagsForStencil(gn, 'data services', dt).join(' ')),
  189. this.createVertexTemplateEntry(s + 'data_sources.svg;',
  190. d, d, '', 'Data Sources', false, null, this.getTagsForStencil(gn, 'data sources', dt).join(' ')),
  191. this.createVertexTemplateEntry(s + 'device_identity_service.svg;',
  192. d, d, '', 'Device Identity Service', false, null, this.getTagsForStencil(gn, 'device identity service', dt).join(' ')),
  193. this.createVertexTemplateEntry(s + 'device_registry.svg;',
  194. d, d, '', 'Device Registry', false, null, this.getTagsForStencil(gn, 'device registry', dt).join(' ')),
  195. this.createVertexTemplateEntry(s + 'enterprise_data.svg;',
  196. d, d, '', 'Enterprise Data', false, null, this.getTagsForStencil(gn, 'enterprise data', dt).join(' ')),
  197. this.createVertexTemplateEntry(s + 'enterprise_user_directory.svg;',
  198. d, d, '', 'Enterprise User Directory', false, null, this.getTagsForStencil(gn, 'enterprise user directory', dt).join(' ')),
  199. this.createVertexTemplateEntry(s + 'file_repository.svg;',
  200. d, d, '', 'File Repository', false, null, this.getTagsForStencil(gn, 'file repository', dt).join(' ')),
  201. this.createVertexTemplateEntry(s + 'ground_truth.svg;',
  202. d, d, '', 'Ground Truth', false, null, this.getTagsForStencil(gn, 'ground truth', dt).join(' ')),
  203. this.createVertexTemplateEntry(s + 'model.svg;',
  204. d, d, '', 'Model', false, null, this.getTagsForStencil(gn, 'model', dt).join(' ')),
  205. this.createVertexTemplateEntry(s + 'tms_data_interface.svg;',
  206. d, d, '', 'TMS Data Interface', false, null, this.getTagsForStencil(gn, 'tms data interface', dt).join(' '))
  207. ];
  208. this.addPalette('ibmData', 'IBM / Data', false, mxUtils.bind(this, function(content)
  209. {
  210. for (var i = 0; i < fns.length; i++)
  211. {
  212. content.appendChild(fns[i](content));
  213. }
  214. }));
  215. };
  216. Sidebar.prototype.addIBMDevOpsPalette = function(d, dt, sb, s)
  217. {
  218. s += 'devops/';
  219. var gn = 'devops ';
  220. var fns = [
  221. this.createVertexTemplateEntry(s + 'artifact_management.svg;',
  222. d, d, '', 'Artifact Management', false, null, this.getTagsForStencil(gn, 'artifact management', dt).join(' ')),
  223. this.createVertexTemplateEntry(s + 'build_test.svg;',
  224. d, d, '', 'Build \& Test', false, null, this.getTagsForStencil(gn, 'build test', dt).join(' ')),
  225. this.createVertexTemplateEntry(s + 'code_editor.svg;',
  226. d, d, '', 'Code Editor', false, null, this.getTagsForStencil(gn, 'code editor', dt).join(' ')),
  227. this.createVertexTemplateEntry(s + 'collaborative_development.svg;',
  228. d, d, '', 'Collaborative Development', false, null, this.getTagsForStencil(gn, 'collaborative development', dt).join(' ')),
  229. this.createVertexTemplateEntry(s + 'configuration_management.svg;',
  230. d, d, '', 'Configuration Management', false, null, this.getTagsForStencil(gn, 'configuration management', dt).join(' ')),
  231. this.createVertexTemplateEntry(s + 'continuous_deploy.svg;',
  232. d, d, '', 'Continuous Deploy', false, null, this.getTagsForStencil(gn, 'continuous deploy', dt).join(' ')),
  233. this.createVertexTemplateEntry(s + 'continuous_testing.svg;',
  234. d, d, '', 'Continuous Testing', false, null, this.getTagsForStencil(gn, 'continuous testing', dt).join(' ')),
  235. this.createVertexTemplateEntry(s + 'devops.svg;',
  236. d, d, '', 'DevOps', false, null, this.getTagsForStencil(gn, 'devops', dt).join(' ')),
  237. this.createVertexTemplateEntry(s + 'provision.svg;',
  238. d, d, '', 'Provision', false, null, this.getTagsForStencil(gn, 'provision', dt).join(' ')),
  239. this.createVertexTemplateEntry(s + 'release_management.svg;',
  240. d, d, '', 'Release Management', false, null, this.getTagsForStencil(gn, 'release management', dt).join(' '))
  241. ];
  242. this.addPalette('ibmDevOps', 'IBM / DevOps', false, mxUtils.bind(this, function(content)
  243. {
  244. for (var i = 0; i < fns.length; i++)
  245. {
  246. content.appendChild(fns[i](content));
  247. }
  248. }));
  249. };
  250. Sidebar.prototype.addIBMInfrastructurePalette = function(d, dt, sb, s)
  251. {
  252. s += 'infrastructure/';
  253. var gn = 'infrastructure ';
  254. var fns = [
  255. this.createVertexTemplateEntry(s + 'channels.svg;',
  256. d, d, '', 'Channels', false, null, this.getTagsForStencil(gn, 'channels', dt).join(' ')),
  257. this.createVertexTemplateEntry(s + 'cloud_messaging.svg;',
  258. d, d, '', 'Cloud Messaging', false, null, this.getTagsForStencil(gn, 'cloud messaging', dt).join(' ')),
  259. this.createVertexTemplateEntry(s + 'dashboard.svg;',
  260. d, d, '', 'Dashboard', false, null, this.getTagsForStencil(gn, 'dashboard', dt).join(' ')),
  261. this.createVertexTemplateEntry(s + 'diagnostics.svg;',
  262. d, d, '', 'Diagnostics', false, null, this.getTagsForStencil(gn, 'diagnostics', dt).join(' ')),
  263. this.createVertexTemplateEntry(s + 'edge_services.svg;',
  264. d, d, '', 'Edge Services', false, null, this.getTagsForStencil(gn, 'edge services', dt).join(' ')),
  265. this.createVertexTemplateEntry(s + 'enterprise_messaging.svg;',
  266. d, d, '', 'Enterprise Messaging', false, null, this.getTagsForStencil(gn, 'enterprise messaging', dt).join(' ')),
  267. this.createVertexTemplateEntry(s + 'event_feed.svg;',
  268. d, d, '', 'Event Feed', false, null, this.getTagsForStencil(gn, 'event feed', dt).join(' ')),
  269. this.createVertexTemplateEntry(s + 'infrastructure_services.svg;',
  270. d, d, '', 'Infrastructure Services', false, null, this.getTagsForStencil(gn, 'infrastructure services', dt).join(' ')),
  271. this.createVertexTemplateEntry(s + 'interservice_communication.svg;',
  272. d, d, '', 'Interservice Communication', false, null, this.getTagsForStencil(gn, 'interservice communication', dt).join(' ')),
  273. this.createVertexTemplateEntry(s + 'load_balancing_routing.svg;',
  274. d, d, '', 'Load Balancing / Routing', false, null, this.getTagsForStencil(gn, 'load balancing routing', dt).join(' ')),
  275. this.createVertexTemplateEntry(s + 'microservices_mesh.svg;',
  276. d, d, '', 'Microservices Mesh', false, null, this.getTagsForStencil(gn, 'microservices mesh', dt).join(' ')),
  277. this.createVertexTemplateEntry(s + 'mobile_backend.svg;',
  278. d, d, '', 'Mobile Backend', false, null, this.getTagsForStencil(gn, 'mobile backend', dt).join(' ')),
  279. this.createVertexTemplateEntry(s + 'mobile_provider_network.svg;',
  280. d, d, '', 'Mobile Provider Network', false, null, this.getTagsForStencil(gn, 'mobile provider network', dt).join(' ')),
  281. this.createVertexTemplateEntry(s + 'monitoring.svg;',
  282. d, d, '', 'Monitoring', false, null, this.getTagsForStencil(gn, 'monitoring', dt).join(' ')),
  283. this.createVertexTemplateEntry(s + 'monitoring_logging.svg;',
  284. d, d, '', 'Monitoring \& Logging', false, null, this.getTagsForStencil(gn, 'monitoring logging', dt).join(' ')),
  285. this.createVertexTemplateEntry(s + 'peer_services.svg;',
  286. d, d, '', 'Peer Services', false, null, this.getTagsForStencil(gn, 'peer services', dt).join(' ')),
  287. this.createVertexTemplateEntry(s + 'service_discovery_configuration.svg;',
  288. d, d, '', 'Service Discovery \& Configuration', false, null, this.getTagsForStencil(gn, 'service discovery configuration', dt).join(' ')),
  289. this.createVertexTemplateEntry(s + 'transformation_connectivity.svg;',
  290. d, d, '', 'Transformation \& Connectivity', false, null, this.getTagsForStencil(gn, 'transformation connectivity', dt).join(' '))
  291. ];
  292. this.addPalette('ibmInfrastructure', 'IBM / Infrastructure', false, mxUtils.bind(this, function(content)
  293. {
  294. for (var i = 0; i < fns.length; i++)
  295. {
  296. content.appendChild(fns[i](content));
  297. }
  298. }));
  299. };
  300. Sidebar.prototype.addIBMManagementPalette = function(d, dt, sb, s)
  301. {
  302. s += 'management/';
  303. var gn = 'management ';
  304. var fns = [
  305. this.createVertexTemplateEntry(s + 'alert_notification.svg;',
  306. d, d, '', 'Alert Notification', false, null, this.getTagsForStencil(gn, 'alert notification', dt).join(' ')),
  307. this.createVertexTemplateEntry(s + 'api_management.svg;',
  308. d, d, '', 'API Management', false, null, this.getTagsForStencil(gn, 'api management', dt).join(' ')),
  309. this.createVertexTemplateEntry(s + 'cloud_management.svg;',
  310. d, d, '', 'Cloud Management', false, null, this.getTagsForStencil(gn, 'cloud management', dt).join(' ')),
  311. this.createVertexTemplateEntry(s + 'cluster_management.svg;',
  312. d, d, '', 'Cluster Management', false, null, this.getTagsForStencil(gn, 'cluster management', dt).join(' ')),
  313. this.createVertexTemplateEntry(s + 'content_management.svg;',
  314. d, d, '', 'Content Management', false, null, this.getTagsForStencil(gn, 'content management', dt).join(' ')),
  315. this.createVertexTemplateEntry(s + 'data_services.svg;',
  316. d, d, '', 'Data Services', false, null, this.getTagsForStencil(gn, 'data services', dt).join(' ')),
  317. this.createVertexTemplateEntry(s + 'device_management.svg;',
  318. d, d, '', 'Device Management', false, null, this.getTagsForStencil(gn, 'device management', dt).join(' ')),
  319. this.createVertexTemplateEntry(s + 'information_governance.svg;',
  320. d, d, '', 'Information Governance', false, null, this.getTagsForStencil(gn, 'information governance', dt).join(' ')),
  321. this.createVertexTemplateEntry(s + 'it_service_management.svg;',
  322. d, d, '', 'IT Service Management', false, null, this.getTagsForStencil(gn, 'it service management information technology', dt).join(' ')),
  323. this.createVertexTemplateEntry(s + 'management.svg;',
  324. d, d, '', 'Management', false, null, this.getTagsForStencil(gn, 'management', dt).join(' ')),
  325. this.createVertexTemplateEntry(s + 'monitoring_metrics.svg;',
  326. d, d, '', 'Monitoring \& Metrics', false, null, this.getTagsForStencil(gn, 'monitoring metrics', dt).join(' ')),
  327. this.createVertexTemplateEntry(s + 'process_management.svg;',
  328. d, d, '', 'Process Management', false, null, this.getTagsForStencil(gn, 'process management', dt).join(' ')),
  329. this.createVertexTemplateEntry(s + 'provider_cloud_portal_service.svg;',
  330. d, d, '', 'Provider Cloud Portal Service', false, null, this.getTagsForStencil(gn, 'provider cloud portal service', dt).join(' ')),
  331. this.createVertexTemplateEntry(s + 'push_notifications.svg;',
  332. d, d, '', 'Push Notifications', false, null, this.getTagsForStencil(gn, 'push notifications', dt).join(' ')),
  333. this.createVertexTemplateEntry(s + 'service_management_tools.svg;',
  334. d, d, '', 'Service Management Tools', false, null, this.getTagsForStencil(gn, 'service management tools', dt).join(' '))
  335. ];
  336. this.addPalette('ibmManagement', 'IBM / Management', false, mxUtils.bind(this, function(content)
  337. {
  338. for (var i = 0; i < fns.length; i++)
  339. {
  340. content.appendChild(fns[i](content));
  341. }
  342. }));
  343. };
  344. Sidebar.prototype.addIBMMiscPalette = function(d, dt, sb, s)
  345. {
  346. s += 'miscellaneous/';
  347. var gn = 'miscellaneous ';
  348. var fns = [
  349. this.createVertexTemplateEntry(s + 'bluemix.svg;',
  350. d, d, '', 'Bluemix', false, null, this.getTagsForStencil(gn, 'bluemix', dt).join(' ')),
  351. this.createVertexTemplateEntry(s + 'cloudant.svg;',
  352. d, d, '', 'Cloudant', false, null, this.getTagsForStencil(gn, 'cloudant', dt).join(' ')),
  353. this.createVertexTemplateEntry(s + 'cognitive_services.svg;',
  354. d, d, '', 'Cognitive Services', false, null, this.getTagsForStencil(gn, 'cognitive services', dt).join(' ')),
  355. this.createVertexTemplateEntry(s + 'ibm_containers.svg;',
  356. d, d, '', 'IBM Containers', false, null, this.getTagsForStencil(gn, 'ibm containers', dt).join(' ')),
  357. this.createVertexTemplateEntry(s + 'ibm_public_cloud.svg;',
  358. d, d * 0.77, '', 'IBM Public Cloud', false, null, this.getTagsForStencil(gn, 'ibm public cloud', dt).join(' ')),
  359. this.createVertexTemplateEntry(s + 'iot_cloud.svg;',
  360. d, d * 0.77, '', 'IoT Cloud', false, null, this.getTagsForStencil(gn, 'iot cloud internet of things', dt).join(' ')),
  361. this.createVertexTemplateEntry(s + 'microservices_application.svg;',
  362. d, d, '', 'Microservices Application', false, null, this.getTagsForStencil(gn, 'microservices application', dt).join(' ')),
  363. this.createVertexTemplateEntry(s + 'object_storage.svg;',
  364. d, d, '', 'Object Storage', false, null, this.getTagsForStencil(gn, 'object storage', dt).join(' ')),
  365. this.createVertexTemplateEntry(s + 'offline_capabilities.svg;',
  366. d, d, '', 'Offline Capabilities', false, null, this.getTagsForStencil(gn, 'offline capabilities', dt).join(' ')),
  367. this.createVertexTemplateEntry(s + 'openwhisk.svg;',
  368. d, d, '', 'Openwhisk', false, null, this.getTagsForStencil(gn, 'openwhisk', dt).join(' ')),
  369. this.createVertexTemplateEntry(s + 'peer_cloud.svg;',
  370. d, d * 0.77, '', 'Peer Cloud', false, null, this.getTagsForStencil(gn, 'peer cloud', dt).join(' ')),
  371. this.createVertexTemplateEntry(s + 'retrieve_rank.svg;',
  372. d, d, '', 'Retrieve Rank', false, null, this.getTagsForStencil(gn, 'retrieve rank', dt).join(' ')),
  373. this.createVertexTemplateEntry(s + 'scalable.svg;',
  374. d, d, '', 'Scalable', false, null, this.getTagsForStencil(gn, 'scalable', dt).join(' ')),
  375. this.createVertexTemplateEntry(s + 'text_to_speech.svg;',
  376. d, d, '', 'Text to Speech', false, null, this.getTagsForStencil(gn, 'text to speech', dt).join(' '))
  377. ];
  378. this.addPalette('ibmMiscellaneous', 'IBM / Miscellaneous', false, mxUtils.bind(this, function(content)
  379. {
  380. for (var i = 0; i < fns.length; i++)
  381. {
  382. content.appendChild(fns[i](content));
  383. }
  384. }));
  385. };
  386. Sidebar.prototype.addIBMSecurityPalette = function(d, dt, sb, s)
  387. {
  388. s += 'security/';
  389. var gn = 'security ';
  390. var fns = [
  391. this.createVertexTemplateEntry(s + 'api_security.svg;',
  392. d, d, '', 'API Security', false, null, this.getTagsForStencil(gn, 'api security', dt).join(' ')),
  393. this.createVertexTemplateEntry(s + 'blockchain_security_service.svg;',
  394. d, d, '', 'Blockchain Security Service', false, null, this.getTagsForStencil(gn, 'blockchain security service', dt).join(' ')),
  395. this.createVertexTemplateEntry(s + 'data_security.svg;',
  396. d, d, '', 'Data Security', false, null, this.getTagsForStencil(gn, 'data security', dt).join(' ')),
  397. this.createVertexTemplateEntry(s + 'firewall.svg;',
  398. d, d, '', 'Firewall', false, null, this.getTagsForStencil(gn, 'firewall', dt).join(' ')),
  399. this.createVertexTemplateEntry(s + 'gateway.svg;',
  400. d, d, '', 'Gateway', false, null, this.getTagsForStencil(gn, 'gateway', dt).join(' ')),
  401. this.createVertexTemplateEntry(s + 'governance_risk_compliance.svg;',
  402. d, d, '', 'Governance, Risk \& Compliance', false, null, this.getTagsForStencil(gn, 'governance risk compliance', dt).join(' ')),
  403. this.createVertexTemplateEntry(s + 'identity_access_management.svg;',
  404. d, d, '', 'Identity \& Access Management', false, null, this.getTagsForStencil(gn, 'identity access management', dt).join(' ')),
  405. this.createVertexTemplateEntry(s + 'identity_provider.svg;',
  406. d, d, '', 'Identity Provider', false, null, this.getTagsForStencil(gn, 'identity provider', dt).join(' ')),
  407. this.createVertexTemplateEntry(s + 'infrastructure_security.svg;',
  408. d, d, '', 'Infrastructure Security', false, null, this.getTagsForStencil(gn, 'infrastructure security', dt).join(' ')),
  409. this.createVertexTemplateEntry(s + 'physical_security.svg;',
  410. d, d, '', 'Physical Security', false, null, this.getTagsForStencil(gn, 'physical security', dt).join(' ')),
  411. this.createVertexTemplateEntry(s + 'security_monitoring_intelligence.svg;',
  412. d, d, '', 'Security Monitoring \& Intelligence', false, null, this.getTagsForStencil(gn, 'security monitoring intelligence', dt).join(' ')),
  413. this.createVertexTemplateEntry(s + 'security_services.svg;',
  414. d, d, '', 'Security Services', false, null, this.getTagsForStencil(gn, 'security services', dt).join(' ')),
  415. this.createVertexTemplateEntry(s + 'trustend_computing.svg;',
  416. d, d, '', 'Trustend Computing', false, null, this.getTagsForStencil(gn, 'trustend computing', dt).join(' ')),
  417. this.createVertexTemplateEntry(s + 'vpn.svg;',
  418. d, d, '', 'VPN', false, null, this.getTagsForStencil(gn, 'vpn virtual private network', dt).join(' '))
  419. ];
  420. this.addPalette('ibmSecurity', 'IBM / Security', false, mxUtils.bind(this, function(content)
  421. {
  422. for (var i = 0; i < fns.length; i++)
  423. {
  424. content.appendChild(fns[i](content));
  425. }
  426. }));
  427. };
  428. Sidebar.prototype.addIBMSocialPalette = function(d, dt, sb, s)
  429. {
  430. s += 'social/';
  431. var gn = 'social ';
  432. var fns = [
  433. this.createVertexTemplateEntry(s + 'communities.svg;',
  434. d, d, '', 'Communities', false, null, this.getTagsForStencil(gn, 'communities', dt).join(' ')),
  435. this.createVertexTemplateEntry(s + 'file_sync.svg;',
  436. d, d, '', 'File Sync', false, null, this.getTagsForStencil(gn, 'file sync', dt).join(' ')),
  437. this.createVertexTemplateEntry(s + 'live_collaboration.svg;',
  438. d, d, '', 'Live Collaboration', false, null, this.getTagsForStencil(gn, 'live collaboration', dt).join(' ')),
  439. this.createVertexTemplateEntry(s + 'messaging.svg;',
  440. d, d, '', 'Messaging', false, null, this.getTagsForStencil(gn, 'messaging', dt).join(' ')),
  441. this.createVertexTemplateEntry(s + 'networking.svg;',
  442. d, d, '', 'Networking', false, null, this.getTagsForStencil(gn, 'networking', dt).join(' '))
  443. ];
  444. this.addPalette('ibmSocial', 'IBM / Social', false, mxUtils.bind(this, function(content)
  445. {
  446. for (var i = 0; i < fns.length; i++)
  447. {
  448. content.appendChild(fns[i](content));
  449. }
  450. }));
  451. };
  452. Sidebar.prototype.addIBMUsersPalette = function(d, dt, sb, s)
  453. {
  454. s += 'users/';
  455. var gn = 'users ';
  456. var fns = [
  457. this.createVertexTemplateEntry(s + 'browser.svg;',
  458. d, d, '', 'Browser', false, null, this.getTagsForStencil(gn, 'browser', dt).join(' ')),
  459. this.createVertexTemplateEntry(s + 'device.svg;',
  460. d, d, '', 'Device', false, null, this.getTagsForStencil(gn, 'device', dt).join(' ')),
  461. this.createVertexTemplateEntry(s + 'integrated_digital_experiences.svg;',
  462. d, d, '', 'Integrated Digital Experiences', false, null, this.getTagsForStencil(gn, 'integrated digital experiences', dt).join(' ')),
  463. this.createVertexTemplateEntry(s + 'physical_entity.svg;',
  464. d, d, '', 'Physical Entity', false, null, this.getTagsForStencil(gn, 'physical entity', dt).join(' ')),
  465. this.createVertexTemplateEntry(s + 'sensor.svg;',
  466. d, d, '', 'Sensor', false, null, this.getTagsForStencil(gn, 'sensor', dt).join(' ')),
  467. this.createVertexTemplateEntry(s + 'user.svg;',
  468. d, d, '', 'User', false, null, this.getTagsForStencil(gn, 'user', dt).join(' '))
  469. ];
  470. this.addPalette('ibmUsers', 'IBM / Users', false, mxUtils.bind(this, function(content)
  471. {
  472. for (var i = 0; i < fns.length; i++)
  473. {
  474. content.appendChild(fns[i](content));
  475. }
  476. }));
  477. };
  478. Sidebar.prototype.addIBMVPCPalette = function(d, dt, sb, s)
  479. {
  480. s += 'vpc/';
  481. var gn = 'vpc virtual private cloud ';
  482. var fns = [
  483. this.createVertexTemplateEntry(s + 'Instance.svg;',
  484. d, d, '', 'Instance', false, null, this.getTagsForStencil(gn, 'instance', dt).join(' ')),
  485. this.createVertexTemplateEntry(s + 'LoadBalancer.svg;',
  486. d, d, '', 'Load Balancer', false, null, this.getTagsForStencil(gn, 'load balancer', dt).join(' ')),
  487. this.createVertexTemplateEntry(s + 'BlockStorage.svg;',
  488. d, d, '', 'Block Storage', false, null, this.getTagsForStencil(gn, 'block storage', dt).join(' ')),
  489. this.createVertexTemplateEntry(s + 'FloatingIP.svg;',
  490. d, d, '', 'Floating IP', false, null, this.getTagsForStencil(gn, 'floating ip internet protocol', dt).join(' ')),
  491. this.createVertexTemplateEntry(s + 'PublicGateway.svg;',
  492. d, d, '', 'Public Gateway', false, null, this.getTagsForStencil(gn, 'public gateway', dt).join(' ')),
  493. this.createVertexTemplateEntry(s + 'ObjectStorage.svg;',
  494. d, d, '', 'Object Storage', false, null, this.getTagsForStencil(gn, 'object storage', dt).join(' ')),
  495. this.createVertexTemplateEntry(s + 'VPNConnection.svg;',
  496. d, d, '', 'VPN Connection', false, null, this.getTagsForStencil(gn, 'connection', dt).join(' ')),
  497. this.createVertexTemplateEntry(s + 'VPNGateway.svg;',
  498. d, d, '', 'VPN Gateway', false, null, this.getTagsForStencil(gn, 'gateway', dt).join(' ')),
  499. this.createVertexTemplateEntry(s + 'DirectLink.svg;',
  500. d, d, '', 'Direct Link', false, null, this.getTagsForStencil(gn, 'direct link', dt).join(' ')),
  501. this.createVertexTemplateEntry(s + 'InternetServices2.svg;',
  502. d, d, '', 'Internet Services', false, null, this.getTagsForStencil(gn, 'internet services', dt).join(' ')),
  503. this.createVertexTemplateEntry(s + 'LoadBalancerPool.svg;',
  504. d, d, '', 'Load Balancer Pool', false, null, this.getTagsForStencil(gn, 'load balancer pool', dt).join(' ')),
  505. this.createVertexTemplateEntry(s + 'LoadBalancerListener.svg;',
  506. d, d, '', 'Load Balancer Listener', false, null, this.getTagsForStencil(gn, 'load balancer listener', dt).join(' ')),
  507. this.createVertexTemplateEntry(s + 'Rules.svg;',
  508. d, d, '', 'Rules', false, null, this.getTagsForStencil(gn, 'load balancer listener', dt).join(' ')),
  509. this.createVertexTemplateEntry(s + 'ImageService.svg;',
  510. d, d, '', 'Image Service', false, null, this.getTagsForStencil(gn, 'image service', dt).join(' ')),
  511. this.createVertexTemplateEntry(s + 'Key.svg;',
  512. d, d, '', 'Key', false, null, this.getTagsForStencil(gn, 'key', dt).join(' ')),
  513. this.createVertexTemplateEntry(s + 'VPNPolicy.svg;',
  514. d, d, '', 'VPN Policy', false, null, this.getTagsForStencil(gn, 'policy', dt).join(' ')),
  515. this.createVertexTemplateEntry(s + 'Router.svg;',
  516. d, d, '', 'Router', false, null, this.getTagsForStencil(gn, 'router', dt).join(' ')),
  517. this.createVertexTemplateEntry(s + 'Bridge.svg;',
  518. d, d, '', 'Bridge', false, null, this.getTagsForStencil(gn, 'bridge', dt).join(' ')),
  519. this.createVertexTemplateEntry(s + 'CloudServices.svg;',
  520. d, d, '', 'Cloud Services', false, null, this.getTagsForStencil(gn, 'cloud services', dt).join(' ')),
  521. this.createVertexTemplateEntry(s + 'Internet.svg;',
  522. d, d, '', 'Internet', false, null, this.getTagsForStencil(gn, 'internet', dt).join(' ')),
  523. this.createVertexTemplateEntry(s + 'Enterprise.svg;',
  524. d, d, '', 'Data Center', false, null, this.getTagsForStencil(gn, 'dat acenter', dt).join(' ')),
  525. this.createVertexTemplateEntry(s + 'Enterprise2.svg;',
  526. d, d * 0.8, '', 'Enterprise', false, null, this.getTagsForStencil(gn, 'enterprise', dt).join(' ')),
  527. this.createVertexTemplateEntry(s + 'PowerInstance.svg;',
  528. d, d, '', 'Power Instance', false, null, this.getTagsForStencil(gn, 'power instance', dt).join(' ')),
  529. this.createVertexTemplateEntry(s + 'TransitGateway.svg;',
  530. d, d, '', 'Transit Gateway', false, null, this.getTagsForStencil(gn, 'transit gateway', dt).join(' ')),
  531. this.createVertexTemplateEntry(s + 'BareMetalServer.svg;',
  532. d, d, '', 'Bare Metal Server', false, null, this.getTagsForStencil(gn, 'bare metal server', dt).join(' '))
  533. ];
  534. this.addPalette('ibmVPC', 'IBM / VPC', false, mxUtils.bind(this, function(content)
  535. {
  536. for (var i = 0; i < fns.length; i++)
  537. {
  538. content.appendChild(fns[i](content));
  539. }
  540. }));
  541. };
  542. Sidebar.prototype.addIBMBoxesPalette = function(d, dt, sb, s)
  543. {
  544. s += 'boxes/';
  545. var gn = 'boxes box ';
  546. var fns = [
  547. this.createVertexTemplateEntry(
  548. 'shape=mxgraph.ibm.box;prType=cloud;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#4376BB;strokeWidth=3;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  549. 200, 200, 'IBM Cloud', 'IBM Cloud', true, null, this.getTagsForStencil(gn, 'ibm cloud', dt).join(' ')),
  550. this.createVertexTemplateEntry(
  551. 'shape=mxgraph.ibm.box;prType=vpc;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#4376BB;strokeWidth=2;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  552. 200, 200, 'VPC', 'VPC', true, null, this.getTagsForStencil(gn, 'vpc virtual private cloud', dt).join(' ')),
  553. this.createVertexTemplateEntry(
  554. 'shape=mxgraph.ibm.box;prType=region;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#919191;strokeWidth=2;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  555. 200, 200, 'Region', 'Region', true, null, this.getTagsForStencil(gn, 'region', dt).join(' ')),
  556. this.createVertexTemplateEntry(
  557. 'shape=mxgraph.ibm.box;prType=zone;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=#E0E0E0;rounded=0;whiteSpace=wrap;html=1;strokeColor=#919191;strokeWidth=1;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  558. 200, 200, 'Zone', 'Zone', true, null, this.getTagsForStencil(gn, 'zone', dt).join(' ')),
  559. this.createVertexTemplateEntry(
  560. 'shape=mxgraph.ibm.box;prType=subnet;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=#E6F0E2;rounded=0;whiteSpace=wrap;html=1;strokeColor=#00882B;strokeWidth=1;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  561. 200, 200, 'Subnet:ACL', 'Subnet:ACL', true, null, this.getTagsForStencil(gn, 'subnet acl', dt).join(' ')),
  562. this.createVertexTemplateEntry(
  563. 'fontStyle=0;verticalAlign=top;align=center;spacingTop=-2;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#FF0000;strokeWidth=2;dashed=1;container=1;collapsible=0;expand=0;recursiveResize=0;',
  564. 200, 200, 'Security Group', 'Security Group', true, null, this.getTagsForStencil(gn, 'security group', dt).join(' ')),
  565. this.createVertexTemplateEntry(
  566. 'fontStyle=0;verticalAlign=top;align=center;spacingTop=-2;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#00882B;strokeWidth=2;dashed=1;container=1;collapsible=0;expand=0;recursiveResize=0;',
  567. 200, 200, 'Instance Group', 'Instance Group', true, null, this.getTagsForStencil(gn, 'instance group', dt).join(' ')),
  568. this.createVertexTemplateEntry(
  569. 'fontStyle=0;verticalAlign=top;align=center;spacingTop=-2;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#919191;strokeWidth=2;dashed=1;container=1;collapsible=0;expand=0;recursiveResize=0;',
  570. 200, 200, 'Resource Group', 'Resource Group', true, null, this.getTagsForStencil(gn, 'resource group', dt).join(' ')),
  571. this.createVertexTemplateEntry(
  572. 'shape=mxgraph.ibm.box;prType=public;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#4376BB;strokeWidth=3;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  573. 200, 200, 'Public Network', 'Public Network', true, null, this.getTagsForStencil(gn, 'public network', dt).join(' ')),
  574. this.createVertexTemplateEntry(
  575. 'shape=mxgraph.ibm.box;prType=enterprise;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#4376BB;strokeWidth=3;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  576. 200, 200, 'Enterprise Network', 'Enterprise Network', true, null, this.getTagsForStencil(gn, 'enterprise network', dt).join(' ')),
  577. this.createVertexTemplateEntry(
  578. 'shape=mxgraph.ibm.box;prType=classic;fontStyle=0;verticalAlign=top;align=left;spacingLeft=32;spacingTop=4;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#4376BB;strokeWidth=2;dashed=0;container=1;spacing=-4;collapsible=0;expand=0;recursiveResize=0;',
  579. 200, 200, 'Classic Infrastructure', 'Classic Infrastructure', true, null, this.getTagsForStencil(gn, 'classic infrastructure', dt).join(' ')),
  580. this.createVertexTemplateEntry(
  581. 'fontStyle=0;verticalAlign=top;align=center;spacingTop=-2;fillColor=none;rounded=0;whiteSpace=wrap;html=1;strokeColor=#4376BB;strokeWidth=1;dashed=0;container=1;collapsible=0;expand=0;recursiveResize=0;',
  582. 200, 200, 'Cloud Services', 'Cloud Services', true, null, this.getTagsForStencil(gn, 'cloud services', dt).join(' '))
  583. ];
  584. this.addPalette('ibmBoxes', 'IBM / Boxes', false, mxUtils.bind(this, function(content)
  585. {
  586. for (var i = 0; i < fns.length; i++)
  587. {
  588. content.appendChild(fns[i](content));
  589. }
  590. }));
  591. };
  592. Sidebar.prototype.addIBMConnectorsPalette = function(d, dt, sb, s)
  593. {
  594. var gn = 'connectors ';
  595. var fns = [
  596. this.createEdgeTemplateEntry('html=1;labelBackgroundColor=#ffffff;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontSize=14;endArrow=none;endFill=0;',
  597. d, d, '', 'Connector', null, dt + 'connector'),
  598. this.createEdgeTemplateEntry('html=1;labelBackgroundColor=#ffffff;endArrow=classic;endFill=1;endSize=6;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontSize=14;',
  599. d, d, '', 'Connector (Single Arrow)', null, dt + 'connector single arrow'),
  600. this.createEdgeTemplateEntry('html=1;labelBackgroundColor=#ffffff;startArrow=classic;startFill=1;startSize=6;endArrow=classic;endFill=1;endSize=6;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontSize=14;',
  601. d, d, '', 'Connector (Double Arrow)', null, dt + 'connector double arrow'),
  602. this.createEdgeTemplateEntry('html=1;labelBackgroundColor=#ffffff;endArrow=none;endFill=0;jettySize=auto;orthogonalLoop=1;strokeWidth=1;dashed=1;fontSize=14;',
  603. d, d, '', 'Dashed Connector', null, dt + 'dashed connector'),
  604. this.createEdgeTemplateEntry('html=1;labelBackgroundColor=#ffffff;startArrow=none;startFill=0;startSize=6;endArrow=classic;endFill=1;endSize=6;jettySize=auto;orthogonalLoop=1;strokeWidth=1;dashed=1;fontSize=14;',
  605. d, d, '', 'Dashed Connector (Single Arrow)', null, dt + 'dashed connector single arrow'),
  606. this.createEdgeTemplateEntry('html=1;labelBackgroundColor=#ffffff;startArrow=classic;startFill=1;startSize=6;endArrow=classic;endFill=1;endSize=6;jettySize=auto;orthogonalLoop=1;strokeWidth=1;dashed=1;fontSize=14;',
  607. d, d, '', 'Dashed Connector (Double Arrow)', null, dt + 'dashed connector double arrow'),
  608. this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;rounded=0;elbow=vertical;html=1;labelBackgroundColor=#ffffff;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontSize=14;endArrow=none;endFill=0;',
  609. d, d, '', 'Elbow Connector', null, dt + 'elbow connector'),
  610. this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;rounded=0;elbow=vertical;html=1;labelBackgroundColor=#ffffff;endArrow=classic;endFill=1;endSize=6;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontSize=14;',
  611. d, d, '', 'Elbow Connector (Single Arrow)', null, dt + 'elbow connector single arrow'),
  612. this.createEdgeTemplateEntry('edgeStyle=elbowEdgeStyle;rounded=0;elbow=vertical;html=1;labelBackgroundColor=#ffffff;startArrow=classic;startFill=1;startSize=6;endArrow=classic;endFill=1;endSize=6;jettySize=auto;orthogonalLoop=1;strokeWidth=1;fontSize=14;',
  613. d, d, '', 'Elbow Connector (Double Arrow)', null, dt + 'elbow connector double arrow')
  614. ];
  615. this.addPalette('ibmConnectors', 'IBM / Connectors', false, mxUtils.bind(this, function(content)
  616. {
  617. for (var i = 0; i < fns.length; i++)
  618. {
  619. content.appendChild(fns[i](content));
  620. }
  621. }));
  622. };
  623. })();