Sidebar-Electrical.js 73 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883
  1. (function()
  2. {
  3. // Adds electrical stencils
  4. Sidebar.prototype.addElectricalPalette = function()
  5. {
  6. var s = mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;' + mxConstants.STYLE_VERTICAL_ALIGN + '=top;strokeWidth=1;' + mxConstants.STYLE_SHAPE;
  7. var mea = s + '=mxgraph.electrical.abstract.';
  8. var mec = s + '=mxgraph.electrical.capacitors.';
  9. var med = 'fillColor=#000000;' + s + '=mxgraph.electrical.diodes.';
  10. var mei = s + '=mxgraph.electrical.inductors.';
  11. var mem = s + '=mxgraph.electrical.miscellaneous.';
  12. var meem = s + '=mxgraph.electrical.electro-mechanical.';
  13. var mel = s + '=mxgraph.electrical.logic_gates.';
  14. var mef1 = s + '=mxgraph.electrical.mosfets1.';
  15. var mef2 = s + '=mxgraph.electrical.mosfets2.';
  16. var met = s + '=mxgraph.electrical.transistors.';
  17. var meoe = s + '=mxgraph.electrical.opto_electronics.';
  18. var mep = s + '=mxgraph.electrical.plc_ladder.';
  19. var mer = s + '=mxgraph.electrical.radio.';
  20. var mere = s + '=mxgraph.electrical.resistors.';
  21. var mess = s + '=mxgraph.electrical.signal_sources.';
  22. var metd = s + '=mxgraph.electrical.thermionic_devices.';
  23. var mew = s + '=mxgraph.electrical.waveforms.';
  24. var mein = 'perimeter=ellipsePerimeter;' + s + '=mxgraph.electrical.instruments.';
  25. var meiecl = s + '=mxgraph.electrical.iec_logic_gates.';
  26. var merm = s + '=mxgraph.electrical.rot_mech.';
  27. var metr = s + '=mxgraph.electrical.transmission.';
  28. var gnmel = 'mxgraph.electrical.logic_gates';
  29. var dtmel = 'electrical logic gate ';
  30. var gnmeiecl = 'mxgraph.electrical.iec_logic_gates';
  31. var dtmeiecl = 'electrical iec logic gate ';
  32. var gnmere = 'mxgraph.electrical.resistors';
  33. var dtmere = 'electrical resistor ';
  34. var gnmec = 'mxgraph.electrical.capacitors';
  35. var dtmec = 'electrical capacitor ';
  36. var gnmei = 'mxgraph.electrical.inductors';
  37. var dtmei = 'electrical inductor ';
  38. var gnmeem = 'mxgraph.electrical.electro-mechanical';
  39. var dtmeem = 'electrical switch relay ';
  40. var gnmed = 'mxgraph.electrical.diodes';
  41. var dtmed = 'electrical diode ';
  42. var gnmess = 'mxgraph.electrical.signal_sources';
  43. var dtmess = 'electrical signal source ';
  44. var gnmet = 'mxgraph.electrical.transistors';
  45. var dtmet = 'electrical transistor ';
  46. var gnmein = 'mxgraph.electrical.instruments';
  47. var dtmein = 'electrical instrument ';
  48. var gnmer = 'mxgraph.electrical.radio';
  49. var dtmer = 'electrical radio audio ';
  50. var gnmem = 'mxgraph.electrical.miscellaneous';
  51. var dtmem = 'electrical ';
  52. var gnmea = 'mxgraph.electrical.abstract';
  53. var dtmea = 'electrical ';
  54. var gnmep = 'mxgraph.electrical.plc_ladder';
  55. var dtmep = 'electrical plc ladder programmable logic logical controller';
  56. var gnmeoe = 'mxgraph.electrical.opto_electronics';
  57. var dtmeoe = 'electrical optical ';
  58. var gnmetd = 'mxgraph.electrical.thermionic_devices';
  59. var dtmetd = 'electrical thermionic thermo device vacuum tube ';
  60. var gnmew = 'mxgraph.electrical.waveforms';
  61. var dtmew = 'electrical waveform signal ';
  62. var gnmerm = 'mxgraph.electrical.rot_mech';
  63. var dtmerm = 'electrical rotating equipment mechanical function functions';
  64. var gnmetr = 'mxgraph.electrical.transmission';
  65. var dtmetr = 'electrical transmission paths bus buses';
  66. this.addPaletteFunctions('electrical\LogicGates', 'Electrical / Logic Gates', false,
  67. [
  68. this.createVertexTemplateEntry(mel + 'and;', 100, 60, '', 'AND', null, null, this.getTagsForStencil(gnmel, 'and', dtmel).join(' ')),
  69. this.createVertexTemplateEntry(mel + 'buffer;', 100, 60, '', 'Buffer', null, null, this.getTagsForStencil(gnmel, 'buffer', dtmel).join(' ')),
  70. this.createVertexTemplateEntry(mel + 'd_type_flip-flop;', 100, 80, '', 'D Type Flip-Flop', null, null, this.getTagsForStencil(gnmel, 'd_type_flip-flop', dtmel).join(' ')),
  71. this.createVertexTemplateEntry(mel + 'd_type_flip-flop_with_clear;', 100, 90, '', 'D Type Flip-Flop With Clear', null, null, this.getTagsForStencil(gnmel, 'd_type_flip-flop_with_clear', dtmel).join(' ')),
  72. this.createVertexTemplateEntry(mel + 'd_type_rs_flip-flop;', 100, 100, '', 'D Type RS Flip-Flop', null, null, this.getTagsForStencil(gnmel, 'd_type_rs_flip-flop', dtmel).join(' ')),
  73. this.createVertexTemplateEntry(mel + 'inverter;', 100, 60, '', 'Inverter', null, null, this.getTagsForStencil(gnmel, 'inverter', dtmel).join(' ')),
  74. this.createVertexTemplateEntry(mel + 'inverting_contact;', 5, 5, '', 'Inverting Contact', null, null, this.getTagsForStencil(gnmel, 'inverting_contact', dtmel).join(' ')),
  75. this.createVertexTemplateEntry(mel + 'jk_flip-flop;', 100, 80, '', 'JK Flip-Flop', null, null, this.getTagsForStencil(gnmel, 'jk_flip-flop', dtmel).join(' ')),
  76. this.createVertexTemplateEntry(mel + 'jk_flip-flop_with_clear;', 100, 90, '', 'JK Flip-Flop With Clear', null, null, this.getTagsForStencil(gnmel, 'jk_flip-flop_with_clear', dtmel).join(' ')),
  77. this.createVertexTemplateEntry(mel + 'jk_flip-flop_with_sr;', 100, 100, '', 'JK Flip-Flop With SR', null, null, this.getTagsForStencil(gnmel, 'jk_flip-flop_with_sr', dtmel).join(' ')),
  78. this.createVertexTemplateEntry(mel + 'nand;', 100, 60, '', 'NAND', null, null, this.getTagsForStencil(gnmel, 'nand', dtmel).join(' ')),
  79. this.createVertexTemplateEntry(mel + 'nor;', 100, 60, '', 'NOR', null, null, this.getTagsForStencil(gnmel, 'nor', dtmel).join(' ')),
  80. this.createVertexTemplateEntry(mel + 'or;', 100, 60, '', 'OR', null, null, this.getTagsForStencil(gnmel, 'or', dtmel).join(' ')),
  81. this.createVertexTemplateEntry(mel + 'rs_latch;', 100, 80, '', 'RS Latch', null, null, this.getTagsForStencil(gnmel, 'rs_latch', dtmel).join(' ')),
  82. this.createVertexTemplateEntry(mel + 'synchronous_rs_latch;', 100, 80, '', 'RS Latch (Synchronous)', null, null, this.getTagsForStencil(gnmel, 'synchronous_rs_latch', dtmel).join(' ')),
  83. this.createVertexTemplateEntry(mel + 'schmitt_trigger;', 100, 60, '', 'Schmitt Trigger', null, null, this.getTagsForStencil(gnmel, 'schmitt_trigger', dtmel).join(' ')),
  84. this.createVertexTemplateEntry(mel + 't_type_flip-flop;', 100, 80, '', 'T Type Flip-Flop', null, null, this.getTagsForStencil(gnmel, 't_type_flip-flop', dtmel).join(' ')),
  85. this.createVertexTemplateEntry(mel + 'xnor;', 100, 60, '', 'XNOR', null, null, this.getTagsForStencil(gnmel, 'xnor', dtmel).join(' ')),
  86. this.createVertexTemplateEntry(mel + 'xor;', 100, 60, '', 'XOR', null, null, this.getTagsForStencil(gnmel, 'xor', dtmel).join(' ')),
  87. this.createVertexTemplateEntry(meiecl + 'and;', 60, 80, '', 'AND (IEC)', null, null, this.getTagsForStencil(gnmeiecl, 'and', dtmeiecl).join(' ')),
  88. this.createVertexTemplateEntry(meiecl + 'nand;', 66, 80, '', 'NAND (IEC)', null, null, this.getTagsForStencil(gnmeiecl, 'nand', dtmeiecl).join(' ')),
  89. this.createVertexTemplateEntry(meiecl + 'or;', 60, 80, '', 'OR (IEC)', null, null, this.getTagsForStencil(gnmeiecl, 'or', dtmeiecl).join(' ')),
  90. this.createVertexTemplateEntry(meiecl + 'nor;', 66, 80, '', 'NOR (IEC)', null, null, this.getTagsForStencil(gnmeiecl, 'nor', dtmeiecl).join(' ')),
  91. this.createVertexTemplateEntry(meiecl + 'not;', 66, 80, '', 'NOT (IEC)', null, null, this.getTagsForStencil(gnmeiecl, 'xor', dtmeiecl).join(' ')),
  92. this.createVertexTemplateEntry(meiecl + 'xor;', 60, 80, '', 'XOR (IEC)', null, null, this.getTagsForStencil(gnmeiecl, 'xor', dtmeiecl).join(' '))
  93. ]);
  94. this.addPaletteFunctions('electrical\Resistors', 'Electrical / Resistors', false,
  95. [
  96. this.createVertexTemplateEntry(mere + 'resistor_1;',
  97. 100, 20, '', 'Resistor', null, null, this.getTagsForStencil(gnmere, 'resistor_1', dtmere).join(' ')),
  98. this.createVertexTemplateEntry(mere + 'resistor_2;',
  99. 100, 20, '', 'Resistor', null, null, this.getTagsForStencil(gnmere, 'resistor_2', dtmere).join(' ')),
  100. this.createVertexTemplateEntry(mere + 'potentiometer_1;',
  101. 100, 40, '', 'Potentiometer', null, null, this.getTagsForStencil(gnmere, 'potentiometer_1', dtmere).join(' ')),
  102. this.createVertexTemplateEntry(mere + 'potentiometer_2;',
  103. 100, 40, '', 'Potentiometer', null, null, this.getTagsForStencil(gnmere, 'potentiometer_2', dtmere).join(' ')),
  104. this.createVertexTemplateEntry(mere + 'trimmer_pot_1;',
  105. 100, 40, '', 'Potentiometer (Trimmer)', null, null, this.getTagsForStencil(gnmere, 'trimmer_pot_1', dtmere).join(' ')),
  106. this.createVertexTemplateEntry(mere + 'trimmer_pot_2;',
  107. 100, 40, '', 'Potentiometer (Trimmer)', null, null, this.getTagsForStencil(gnmere, 'trimmer_pot_2', dtmere).join(' ')),
  108. this.createVertexTemplateEntry(mere + 'trimmer_resistor_1;',
  109. 100, 65.5, '', 'Resistor (Trimmer)', null, null, this.getTagsForStencil(gnmere, 'trimmer_resistor_1', dtmere).join(' ')),
  110. this.createVertexTemplateEntry(mere + 'trimmer_resistor_2;',
  111. 100, 65.5, '', 'Resistor (Trimmer)', null, null, this.getTagsForStencil(gnmere, 'trimmer_resistor_2', dtmere).join(' ')),
  112. this.createVertexTemplateEntry(mere + 'variable_resistor_1;',
  113. 100, 60, '', 'Resistor (Variable)', null, null, this.getTagsForStencil(gnmere, 'variable_resistor_1', dtmere).join(' ')),
  114. this.createVertexTemplateEntry(mere + 'variable_resistor_2;',
  115. 100, 60, '', 'Resistor (Variable)', null, null, this.getTagsForStencil(gnmere, 'variable_resistor_2', dtmere).join(' ')),
  116. this.createVertexTemplateEntry(mere + 'resistor_with_instrument_or_relay_shunt;',
  117. 100, 20, '', 'Resistor (Instrument/Relay Shunt)', null, null, this.getTagsForStencil(gnmere, 'resistor_with_instrument_or_relay_shunt', dtmere).join(' ')),
  118. this.createVertexTemplateEntry(mere + 'attenuator;',
  119. 100, 60, '', 'Attenuator', null, null, this.getTagsForStencil(gnmere, 'attenuator', dtmere).join(' ')),
  120. this.createVertexTemplateEntry(mere + 'resistor,_adjustable_contact;',
  121. 100, 40, '', 'Resistor (Adjustable Contact)', null, null, this.getTagsForStencil(gnmere, 'resistor,_adjustable_contact', dtmere).join(' ')),
  122. this.createVertexTemplateEntry(mere + 'resistor,_shunt;',
  123. 100, 45, '', 'Resistor (Shunt)', null, null, this.getTagsForStencil(gnmere, 'resistor,_shunt', dtmere).join(' ')),
  124. this.createVertexTemplateEntry(mere + 'symmetrical_varistor;',
  125. 100, 60, '', 'Varistor (Symmetrical)', null, null, this.getTagsForStencil(gnmere, 'symmetrical_varistor', dtmere).join(' ')),
  126. this.createVertexTemplateEntry(mere + 'tapped_resistor;',
  127. 100, 40, '', 'Resistor (Tapped)', null, null, this.getTagsForStencil(gnmere, 'tapped_resistor', dtmere).join(' ')),
  128. this.createVertexTemplateEntry(mere + 'nonlinear_resistor;',
  129. 100, 60, '', 'Resistor (Nonlinear)', null, null, this.getTagsForStencil(gnmere, 'nonlinear_resistor', dtmere).join(' ')),
  130. this.createVertexTemplateEntry(mere + 'memristor_1;',
  131. 100, 20, '', 'Memristor', null, null, this.getTagsForStencil(gnmere, 'memristor_1', dtmere).join(' ')),
  132. this.createVertexTemplateEntry(mere + 'memristor_2;',
  133. 100, 24, '', 'Memristor', null, null, this.getTagsForStencil(gnmere, 'memristor_2', dtmere).join(' ')),
  134. this.createVertexTemplateEntry(mere + 'magnetoresistor;',
  135. 100, 60, '', 'Magnetoresistor', null, null, this.getTagsForStencil(gnmere, 'magnetoresistor', dtmere).join(' ')),
  136. this.createVertexTemplateEntry(mere + 'symmetrical_photoconductive_transducer;',
  137. 100, 40, '', 'Photoconductive Transducer (Symmetrical)', null, null, this.getTagsForStencil(gnmere, 'symmetrical_photoconductive_transducer', dtmere).join(' '))
  138. ]);
  139. this.addPaletteFunctions('electrical\Capacitors', 'Electrical / Capacitors', false,
  140. [
  141. this.createVertexTemplateEntry(mec + 'capacitor_1;',
  142. 100, 60, '', 'Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'capacitor_1', dtmec).join(' ')),
  143. this.createVertexTemplateEntry(mec + 'capacitor_2;',
  144. 100, 60, '', 'Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'capacitor_2', dtmec).join(' ')),
  145. this.createVertexTemplateEntry(mec + 'capacitor_3;',
  146. 100, 60, '', 'Electrolytic Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'capacitor_3', dtmec).join(' ')),
  147. this.createVertexTemplateEntry(mec + 'capacitor_4;',
  148. 100, 60, '', 'Capacitor (UK)', null, null, this.getTagsForStencil(gnmec, 'capacitor_4', dtmec).join(' ')),
  149. this.createVertexTemplateEntry(mec + 'capacitor_5;',
  150. 100, 60, '', 'Electrolytic Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'capacitor_5', dtmec).join(' ')),
  151. this.createVertexTemplateEntry(mec + 'capacitor_6;',
  152. 100, 60, '', 'Capacitor', null, null, this.getTagsForStencil(gnmec, 'capacitor_6', dtmec).join(' ')),
  153. this.createVertexTemplateEntry(mec + 'differential_capacitor;',
  154. 100, 80, '', 'Differential Capacitor', null, null, this.getTagsForStencil(gnmec, 'differential_capacitor', dtmec).join(' ')),
  155. this.createVertexTemplateEntry(mec + 'trimmer_capacitor_1;',
  156. 100, 65.5, '', 'Tuning Variable Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'trimmer_capacitor_1', dtmec).join(' ')),
  157. this.createVertexTemplateEntry(mec + 'trimmer_capacitor_2;',
  158. 100, 65.5, '', 'Tuning Variable Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'trimmer_capacitor_2', dtmec).join(' ')),
  159. this.createVertexTemplateEntry(mec + 'variable_capacitor_1;',
  160. 100, 60, '', 'Trimmer Variable Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'variable_capacitor_1', dtmec).join(' ')),
  161. this.createVertexTemplateEntry(mec + 'variable_capacitor_2;',
  162. 100, 60, '', 'Trimmer Variable Capacitor (US)', null, null, this.getTagsForStencil(gnmec, 'variable_capacitor_2', dtmec).join(' ')),
  163. this.createVertexTemplateEntry(mec + 'feed_through_capacitor;',
  164. 100, 90, '', 'Feed Through Capacitor', null, null, this.getTagsForStencil(gnmec, 'feed_through_capacitor', dtmec).join(' ')),
  165. this.createVertexTemplateEntry(mec + 'ganged_capacitor;',
  166. 100, 130, '', 'Ganged Capacitor', null, null, this.getTagsForStencil(gnmec, 'ganged_capacitor', dtmec).join(' ')),
  167. this.createVertexTemplateEntry(mec + 'multiple_capacitor;',
  168. 100, 130, '', 'Multiple Capacitor', null, null, this.getTagsForStencil(gnmec, 'multiple_capacitor', dtmec).join(' ')),
  169. this.createVertexTemplateEntry(mec + 'multiple_electrolytic_capacitor_comm_neg;',
  170. 100, 130, '', 'Multiple Electrolytic Capacitor (Common Negative)', null, null, this.getTagsForStencil(gnmec, 'multiple_electrolytic_capacitor_comm_neg', dtmec).join(' ')),
  171. this.createVertexTemplateEntry(mec + 'multiple_electrolytic_capacitor_comm_pos;',
  172. 100, 130, '', 'Multiple Electrolytic Capacitor (Common Positive)', null, null, this.getTagsForStencil(gnmec, 'multiple_electrolytic_capacitor_comm_pos', dtmec).join(' '))
  173. ]);
  174. this.addPaletteFunctions('electrical\Inductors', 'Electrical / Inductors', false,
  175. [
  176. this.createVertexTemplateEntry(mei + 'inductor_3;',
  177. 100, 8, '', 'Inductor (Air Core)', null, null, this.getTagsForStencil(gnmei, 'inductor_3', dtmei).join(' ')),
  178. this.createVertexTemplateEntry(mei + 'inductor_5;',
  179. 100, 14, '', 'Inductor (Air Core)', null, null, this.getTagsForStencil(gnmei, 'inductor_5', dtmei).join(' ')),
  180. this.createVertexTemplateEntry(mei + 'inductor_1;',
  181. 100, 15, '', 'Inductor (Air Core)', null, null, this.getTagsForStencil(gnmei, 'inductor_1', dtmei).join(' ')),
  182. this.createVertexTemplateEntry(mei + 'variable_inductor;',
  183. 100, 60, '', 'Variable', null, null, this.getTagsForStencil(gnmei, 'variable_inductor', dtmei).join(' ')),
  184. this.createVertexTemplateEntry(mei + 'ferrite_core;',
  185. 64, 4, '', 'Ferrite Core', null, null, this.getTagsForStencil(gnmei, 'ferrite_core', dtmei).join(' ')),
  186. this.createVertexTemplateEntry(mei + 'iron_core;',
  187. 64, 4, '', 'Iron Core', null, null, this.getTagsForStencil(gnmei, 'iron_core', dtmei).join(' ')),
  188. this.createVertexTemplateEntry(mei + 'magnetic_core;direction=north;',
  189. 64, 3, '', 'Magnetic Core', null, null, this.getTagsForStencil(gnmei, 'magnetic core', dtmei).join(' ')),
  190. this.createVertexTemplateEntry(mei + 'transformer_1;',
  191. 64, 60, '', 'Transformer (Iron Core)', null, null, this.getTagsForStencil(gnmei, 'transformer_1', dtmei).join(' ')),
  192. this.createVertexTemplateEntry(mei + 'transformer_2;',
  193. 64, 60, '', 'Transformer (Iron Core)', null, null, this.getTagsForStencil(gnmei, 'transformer_2', dtmei).join(' ')),
  194. this.createVertexTemplateEntry(mei + 'half_inductor;',
  195. 32, 23, '', 'Half Inductor', null, null, this.getTagsForStencil(gnmei, 'half inductor', dtmei).join(' ')),
  196. this.createVertexTemplateEntry(mei + 'transformer;direction=north;',
  197. 64, 64, '', 'Transformer', null, null, this.getTagsForStencil(gnmei, 'transformer', dtmei).join(' ')),
  198. this.createVertexTemplateEntry(mei + 'inductor;',
  199. 100, 42, '', 'Inductor', null, null, this.getTagsForStencil(gnmei, 'inductor', dtmei).join(' ')),
  200. this.createVertexTemplateEntry(mei + 'choke;',
  201. 100, 200, '', 'Choke', null, null, this.getTagsForStencil(gnmei, 'choke', dtmei).join(' ')),
  202. this.createVertexTemplateEntry('verticalLabelPosition=top;shadow=0;dashed=0;align=center;fillColor=#000000;strokeColor=#000000;html=1;verticalAlign=bottom;strokeWidth=1;shape=mxgraph.electrical.inductors.variometer;',
  203. 150, 88, '', 'Variometer', null, null, this.getTagsForStencil(gnmei, 'variometer', dtmei).join(' ')),
  204. this.createVertexTemplateEntry(mei + 'coaxial_choke;',
  205. 300, 50, '', 'Coaxial Choke', null, null, this.getTagsForStencil(gnmei, 'coaxial choke', dtmei).join(' ')),
  206. this.createVertexTemplateEntry(mei + 'transductor;',
  207. 200, 100, '', 'Transductor', null, null, this.getTagsForStencil(gnmei, 'transductor', dtmei).join(' ')),
  208. this.createVertexTemplateEntry(mei + 'saturating_transformer;',
  209. 200, 150, '', 'Saturating Transformer', null, null, this.getTagsForStencil(gnmei, 'saturating_transformer', dtmei).join(' ')),
  210. this.createVertexTemplateEntry(mei + 'potential_transformer_2;',
  211. 92, 40, '', 'Potential Transformer', null, null, this.getTagsForStencil(gnmei, 'potential transformer', dtmei).join(' ')),
  212. this.createVertexTemplateEntry(mei + 'pot_trans_3_windings;',
  213. 67, 96, '', 'Pot. Trans. 3 Windings', null, null, this.getTagsForStencil(gnmei, 'potential transformer 3 three windings', dtmei).join(' ')),
  214. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;strokeColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.signal_sources.current_source;',
  215. 40, 60, '', 'Transformer', null, null, this.getTagsForStencil(gnmei, '', dtmei).join(' ')),
  216. this.createVertexTemplateEntry(mei + 'adjustable_transformer;',
  217. 46, 60, '', 'Adjustable Transformer', null, null, this.getTagsForStencil(gnmei, 'adjustable_transformer', dtmei).join(' ')),
  218. this.createVertexTemplateEntry(mei + '1_phase_induction_volt_reg;',
  219. 100, 100, '', '1-Phase Induction Voltage Regulator', null, null, this.getTagsForStencil(gnmei, '1 phase induction voltage regulator monophase', dtmei).join(' ')),
  220. this.createVertexTemplateEntry(mei + 'triplex_induction_volt_reg;',
  221. 100, 100, '', 'Triplex Induction Voltage Regulator', null, null, this.getTagsForStencil(gnmei, 'triplex induction voltage regulator', dtmei).join(' ')),
  222. this.createVertexTemplateEntry(mei + 'induction_voltage_regulator;',
  223. 160, 210, '', 'Induction Voltage Regulator', null, null, this.getTagsForStencil(gnmei, 'induction voltage regulator', dtmei).join(' ')),
  224. this.createVertexTemplateEntry(mei + 'current_transformer_1;',
  225. 12, 75, '', 'Current Transformer', null, null, this.getTagsForStencil(gnmei, 'current transformer', dtmei).join(' ')),
  226. this.createVertexTemplateEntry(mei + 'current_transformer_2;',
  227. 125, 175, '', 'Current Transformer', null, null, this.getTagsForStencil(gnmei, 'current transformer', dtmei).join(' ')),
  228. this.createVertexTemplateEntry(mei + 'current_transformer_3;',
  229. 75, 10, '', 'Current Transformer', null, null, this.getTagsForStencil(gnmei, 'current transformer', dtmei).join(' ')),
  230. this.createVertexTemplateEntry(mei + 'potential_transformer;',
  231. 100, 50, '', 'Potential Transformer', null, null, this.getTagsForStencil(gnmei, 'potential transformer', dtmei).join(' ')),
  232. this.createVertexTemplateEntry(mei + 'outdoor_metering_device;',
  233. 100, 100, '', 'Outdoor Metering Device', null, null, this.getTagsForStencil(gnmei, 'outdoor metering device', dtmei).join(' ')),
  234. this.createVertexTemplateEntry(mei + 'linear_coupler;',
  235. 80, 20, '', 'Linear Coupler', null, null, this.getTagsForStencil(gnmei, 'linear coupler', dtmei).join(' '))
  236. ]);
  237. this.addPaletteFunctions('electrical\SwitchesRelays', 'Electrical / Switches and Relays', false,
  238. [
  239. this.createVertexTemplateEntry(meem + '2-way_switch;',
  240. 75, 26, '', 'SPDT', null, null, this.getTagsForStencil(gnmeem, '2-way switch', dtmeem).join(' ')),
  241. this.createVertexTemplateEntry(meem + 'push_switch_nc;',
  242. 75, 10, '', 'Pushbutton NC', null, null, this.getTagsForStencil(gnmeem, 'push switch nc', dtmeem).join(' ')),
  243. this.createVertexTemplateEntry(meem + 'push_switch_no;',
  244. 75, 19, '', 'Pushbutton NO', null, null, this.getTagsForStencil(gnmeem, 'push switch no', dtmeem).join(' ')),
  245. this.createVertexTemplateEntry(meem + 'simple_switch;',
  246. 75, 19, '', 'SPST', null, null, this.getTagsForStencil(gnmeem, 'simple switch', dtmeem).join(' ')),
  247. this.createVertexTemplateEntry(meem + 'switch_disconnector;',
  248. 75, 19, '', 'Switch Disconnector', null, null, this.getTagsForStencil(gnmeem, 'switch disconnector', dtmeem).join(' ')),
  249. this.createVertexTemplateEntry(meem + 'fuse;',
  250. 75, 16, '', 'Fuse', null, null, this.getTagsForStencil(gnmeem, 'fuse', dtmeem).join(' ')),
  251. this.createVertexTemplateEntry(meem + 'liquid_level_actuated;',
  252. 75, 28, '', 'Liquid Level Actuated', null, null, this.getTagsForStencil(gnmeem, 'liquid level actuated', dtmeem).join(' ')),
  253. this.createVertexTemplateEntry(meem + 'liquid_level_actuated_2;',
  254. 75, 32, '', 'Liquid Level Actuated', null, null, this.getTagsForStencil(gnmeem, 'liquid level actuated', dtmeem).join(' ')),
  255. this.createVertexTemplateEntry(meem + 'gas_flow_actuated;',
  256. 75, 32, '', 'Gas Flow Actuated', null, null, this.getTagsForStencil(gnmeem, 'gas flow actuated', dtmeem).join(' ')),
  257. this.createVertexTemplateEntry(meem + 'flow_actuated;',
  258. 75, 31, '', 'Flow Actuated', null, null, this.getTagsForStencil(gnmeem, 'flow actuated', dtmeem).join(' ')),
  259. this.createVertexTemplateEntry(meem + 'pressure_actuated;',
  260. 75, 31, '', 'Pressure Actuated', null, null, this.getTagsForStencil(gnmeem, 'pressure actuated', dtmeem).join(' ')),
  261. this.createVertexTemplateEntry(meem + 'temperature_actuated;',
  262. 75, 31, '', 'Temperature Actuated', null, null, this.getTagsForStencil(gnmeem, 'temperature actuated', dtmeem).join(' ')),
  263. this.createVertexTemplateEntry(meem + 'safety_interlock;',
  264. 75, 37, '', 'Safety Interlock', null, null, this.getTagsForStencil(gnmeem, 'safety interlock', dtmeem).join(' ')),
  265. this.createVertexTemplateEntry(meem + 'temperature_switch;',
  266. 75, 18, '', 'Temperature Switch', null, null, this.getTagsForStencil(gnmeem, 'temperature switch', dtmeem).join(' ')),
  267. this.createVertexTemplateEntry('verticalLabelPosition=top;shadow=0;dashed=0;align=center;fillColor=#ffffff;strokeColor=#000000;html=1;verticalAlign=bottom;strokeWidth=1;shape=mxgraph.electrical.electro-mechanical.thermostat;fontColor=#000000;fontSize=10;',
  268. 75, 7, 'tº', 'Thermostat', null, null, this.getTagsForStencil(gnmeem, 'thermostat', dtmeem).join(' ')),
  269. this.createVertexTemplateEntry(meem + 'limit_switch;',
  270. 75, 16, '', 'Limit Switch', null, null, this.getTagsForStencil(gnmeem, 'limit switch', dtmeem).join(' ')),
  271. this.createVertexTemplateEntry(meem + 'circuit_breaker;',
  272. 75, 20, '', 'Circuit Breaker', null, null, this.getTagsForStencil(gnmeem, 'circuit breaker', dtmeem).join(' ')),
  273. this.createVertexTemplateEntry(meem + 'selector_switch;',
  274. 75, 66, '', 'Selector Switch', null, null, this.getTagsForStencil(gnmeem, 'selector_switch', dtmeem).join(' ')),
  275. this.createVertexTemplateEntry(meem + 'shorting_selector;',
  276. 60, 66, '', 'Shorting Selector', null, null, this.getTagsForStencil(gnmeem, 'shorting selector', dtmeem).join(' ')),
  277. this.createVertexTemplateEntry(meem + 'proximity_limit_switch;',
  278. 75, 55, '', 'Proximity Limit Switch', null, null, this.getTagsForStencil(gnmeem, 'proximity limit switch', dtmeem).join(' ')),
  279. this.createVertexTemplateEntry(meem + 'inertia_switch;',
  280. 75, 19, '', 'Inertia Switch', null, null, this.getTagsForStencil(gnmeem, 'inertia switch', dtmeem).join(' ')),
  281. this.createVertexTemplateEntry(meem + 'pushbutton_break;',
  282. 75, 54, '', 'Pushbutton Break', null, null, this.getTagsForStencil(gnmeem, 'pushbutton break', dtmeem).join(' ')),
  283. this.createVertexTemplateEntry(meem + 'manual_switch;',
  284. 75, 18, '', 'Manual Switch', null, null, this.getTagsForStencil(gnmeem, 'manual switch', dtmeem).join(' ')),
  285. this.createVertexTemplateEntry(meem + 'make_contact;',
  286. 75, 16, '', 'Make Contact', null, null, this.getTagsForStencil(gnmeem, 'make contact', dtmeem).join(' ')),
  287. this.createVertexTemplateEntry(meem + 'break_contact;',
  288. 75, 10, '', 'Break Contact', null, null, this.getTagsForStencil(gnmeem, 'break contact', dtmeem).join(' ')),
  289. this.createVertexTemplateEntry(meem + 'two_way_contact;',
  290. 75, 30, '', 'Two Way Contact', null, null, this.getTagsForStencil(gnmeem, 'two way contact', dtmeem).join(' ')),
  291. this.createVertexTemplateEntry(meem + 'passing_make_contact;',
  292. 75, 23, '', 'Passing Make-Contact', null, null, this.getTagsForStencil(gnmeem, 'passing make contact', dtmeem).join(' ')),
  293. this.createVertexTemplateEntry(meem + 'stay_put;',
  294. 75, 7, '', 'Stay Put', null, null, this.getTagsForStencil(gnmeem, 'stay put', dtmeem).join(' ')),
  295. this.createVertexTemplateEntry(meem + 'dpst;',
  296. 75, 26, '', 'DPST', null, null, this.getTagsForStencil(gnmeem, 'dpst', dtmeem).join(' ')),
  297. this.createVertexTemplateEntry(meem + 'spring_return;',
  298. 75, 10, '', 'Spring Return', null, null, this.getTagsForStencil(gnmeem, 'spring return', dtmeem).join(' ')),
  299. this.createVertexTemplateEntry(meem + 'spring_return_2;',
  300. 75, 19, '', 'Spring Return', null, null, this.getTagsForStencil(gnmeem, 'spring return', dtmeem).join(' ')),
  301. this.createVertexTemplateEntry(meem + 'limit_switch_no;',
  302. 75, 24, '', 'Limit Switch NO', null, null, this.getTagsForStencil(gnmeem, 'limit switch no normally open', dtmeem).join(' ')),
  303. this.createVertexTemplateEntry(meem + 'limit_switch_nc;',
  304. 75, 13, '', 'Limit Switch NC', null, null, this.getTagsForStencil(gnmeem, 'limit switch nc normally closed', dtmeem).join(' ')),
  305. this.createVertexTemplateEntry(meem + 'dpdt;',
  306. 75, 32, '', 'DPDT', null, null, this.getTagsForStencil(gnmeem, 'dpdt', dtmeem).join(' ')),
  307. this.createVertexTemplateEntry(meem + '2_position_switch;',
  308. 75, 70, '', '2-Position Switch', null, null, this.getTagsForStencil(gnmeem, '2 position switch', dtmeem).join(' ')),
  309. this.createVertexTemplateEntry(meem + '3_position_switch;',
  310. 60, 60, '', '3-Position Switch', null, null, this.getTagsForStencil(gnmeem, '3 position switch', dtmeem).join(' ')),
  311. this.createVertexTemplateEntry(meem + '4_position_switch;',
  312. 75, 70, '', '4-Position Switch', null, null, this.getTagsForStencil(gnmeem, '4 position switch', dtmeem).join(' ')),
  313. this.createVertexTemplateEntry(meem + 'pushbutton_make;',
  314. 75, 53, '', 'Pushbutton Make', null, null, this.getTagsForStencil(gnmeem, 'pushbutton make', dtmeem).join(' ')),
  315. this.createVertexTemplateEntry(meem + 'pushbutton_2_circuit;',
  316. 75, 73, '', 'Pushbutton 2-Circuit', null, null, this.getTagsForStencil(gnmeem, 'pushbutton 2 circuit', dtmeem).join(' ')),
  317. this.createVertexTemplateEntry(meem + 'time_delay_make;',
  318. 75, 31, '', 'Time Delay Make', null, null, this.getTagsForStencil(gnmeem, 'time delay make', dtmeem).join(' ')),
  319. this.createVertexTemplateEntry(meem + 'time_delay_break;',
  320. 75, 32, '', 'Time Delay Break', null, null, this.getTagsForStencil(gnmeem, 'time delay break', dtmeem).join(' ')),
  321. this.createVertexTemplateEntry(meem + 'time_delay_make_2;',
  322. 75, 36, '', 'Time Delay Make', null, null, this.getTagsForStencil(gnmeem, 'time delay make', dtmeem).join(' ')),
  323. this.createVertexTemplateEntry(meem + 'time_delay_break_2;',
  324. 75, 30, '', 'Time Delay Break', null, null, this.getTagsForStencil(gnmeem, 'time delay break', dtmeem).join(' ')),
  325. this.createVertexTemplateEntry(meem + 'isolator;',
  326. 75, 20, '', 'Isolator', null, null, this.getTagsForStencil(gnmeem, 'isolator', dtmeem).join(' ')),
  327. this.createVertexTemplateEntry(meem + 'changeover_contact;',
  328. 75, 20, '', 'Changeover Contact', null, null, this.getTagsForStencil(gnmeem, 'changeover contact', dtmeem).join(' ')),
  329. this.createVertexTemplateEntry(meem + 'reed_switch;',
  330. 75, 20, '', 'Reed Switch', null, null, this.getTagsForStencil(gnmeem, 'reed switch', dtmeem).join(' ')),
  331. this.createVertexTemplateEntry(meem + 'relay_coil;',
  332. 70, 35, '', 'Relay Coil', null, null, this.getTagsForStencil(gnmeem, 'relay coil', dtmeem).join(' ')),
  333. this.createVertexTemplateEntry(meem + 'relay;',
  334. 100, 50, '', 'Relay', null, null, this.getTagsForStencil(gnmeem, 'relay', dtmeem).join(' ')),
  335. this.createVertexTemplateEntry(meem + 'relay_contacts;',
  336. 30, 24, '', 'Relay Contacts', null, null, this.getTagsForStencil(gnmeem, 'relay contacts', dtmeem).join(' ')),
  337. this.createVertexTemplateEntry(meem + 'resonator;',
  338. 100, 50, '', 'Resonator', null, null, this.getTagsForStencil(gnmeem, 'resonator', dtmeem).join(' ')),
  339. this.createVertexTemplateEntry(meem + 'pilot_light;',
  340. 100, 100, '', 'Pilot Light', null, null, this.getTagsForStencil(gnmeem, 'pilot light', dtmeem).join(' ')),
  341. this.createVertexTemplateEntry(meem + 'relay_coil_2;',
  342. 100, 70, '', 'Relay Coil', null, null, this.getTagsForStencil(gnmeem, 'relay coil', dtmeem).join(' ')),
  343. this.createVertexTemplateEntry(meem + 'mercury_switch;',
  344. 80, 80, '', 'Mercury Switch', null, null, this.getTagsForStencil(gnmeem, 'mercury switch', dtmeem).join(' ')),
  345. this.createVertexTemplateEntry(meem + 'mercury_switch_2;',
  346. 50, 90, '', 'Mercury Switch', null, null, this.getTagsForStencil(gnmeem, 'mercury switch', dtmeem).join(' '))
  347. ]);
  348. this.addPaletteFunctions('electrical\Diodes', 'Electrical / Diodes', false,
  349. [
  350. this.createVertexTemplateEntry(med + 'diode;',
  351. 100, 60, '', 'PN Diode', null, null, this.getTagsForStencil(gnmed, 'diode', dtmed).join(' ')),
  352. this.createVertexTemplateEntry(med + 'gunn_diode;',
  353. 100, 60, '', 'Gunn Diode', null, null, this.getTagsForStencil(gnmed, 'gunn_diode', dtmed).join(' ')),
  354. this.createVertexTemplateEntry(med + 'schottky_diode;',
  355. 100, 60, '', 'Schottky Diode', null, null, this.getTagsForStencil(gnmed, 'schottky_diode', dtmed).join(' ')),
  356. this.createVertexTemplateEntry(med + 'zener_diode_2;',
  357. 100, 60, '', 'Breakdown', null, null, this.getTagsForStencil(gnmed, 'zener_diode_2', dtmed).join(' ')),
  358. this.createVertexTemplateEntry(med + 'tunnel_diode;',
  359. 100, 60, '', 'Tunnel Diode 1', null, null, this.getTagsForStencil(gnmed, 'tunnel_diode', dtmed).join(' ')),
  360. this.createVertexTemplateEntry(med + 'tunnel_diode_2;',
  361. 100, 80, '', 'Tunnel Diode 2', null, null, this.getTagsForStencil(gnmed, 'tunnel_diode_2', dtmed).join(' ')),
  362. this.createVertexTemplateEntry(med + 'field_effect_diode;',
  363. 100, 60, '', 'Field Effect Diode', null, null, this.getTagsForStencil(gnmed, 'field_effect_diode', dtmed).join(' ')),
  364. this.createVertexTemplateEntry(med + 'varactor_-_varicap;',
  365. 100, 60, '', 'Varactor - Varicap', null, null, this.getTagsForStencil(gnmed, 'varactor_-_varicap', dtmed).join(' ')),
  366. this.createVertexTemplateEntry(med + 'zener_diode_1;',
  367. 100, 60, '', 'Zener Diode 1', null, null, this.getTagsForStencil(gnmed, 'zener_diode_1', dtmed).join(' ')),
  368. this.createVertexTemplateEntry(med + 'zener_diode_3;',
  369. 100, 60, '', 'Zener Diode 2', null, null, this.getTagsForStencil(gnmed, 'zener_diode_3', dtmed).join(' ')),
  370. this.createVertexTemplateEntry(med + 'four_layer_diode;',
  371. 100, 80, '', 'Four Layer Diode', null, null, this.getTagsForStencil(gnmed, 'four_layer_diode', dtmed).join(' ')),
  372. this.createVertexTemplateEntry(med + 'transorb_1;',
  373. 100, 60, '', 'Transorb 1', null, null, this.getTagsForStencil(gnmed, 'transorb_1', dtmed).join(' ')),
  374. this.createVertexTemplateEntry(med + 'transorb_2;',
  375. 100, 60, '', 'Transorb 2', null, null, this.getTagsForStencil(gnmed, 'transorb_2', dtmed).join(' '))
  376. ]);
  377. this.addPaletteFunctions('electrical\Sources', 'Electrical / Sources', false,
  378. [
  379. this.createVertexTemplateEntry(mess + 'ac_source;',
  380. 60, 60, '', 'AC', null, null, this.getTagsForStencil(gnmess, 'ac_source', dtmess).join(' ')),
  381. this.createVertexTemplateEntry(mess + 'current_source;',
  382. 40, 60, '', 'Current', null, null, this.getTagsForStencil(gnmess, 'current_source', dtmess).join(' ')),
  383. this.createVertexTemplateEntry(mess + 'dc_source_1;',
  384. 70, 75, '', 'DC', null, null, this.getTagsForStencil(gnmess, 'dc_source_1', dtmess).join(' ')),
  385. this.createVertexTemplateEntry(mess + 'dc_source_2;',
  386. 60, 60, '', 'DC', null, null, this.getTagsForStencil(gnmess, 'dc_source_2', dtmess).join(' ')),
  387. this.createVertexTemplateEntry(mess + 'dc_source_3;',
  388. 60, 60, '', 'DC', null, null, this.getTagsForStencil(gnmess, 'dc_source_3', dtmess).join(' ')),
  389. this.createVertexTemplateEntry(mess + 'dependent_source_1;',
  390. 60, 60, '', 'Dependent', null, null, this.getTagsForStencil(gnmess, 'dependent_source_1', dtmess).join(' ')),
  391. this.createVertexTemplateEntry(mess + 'dependent_source_2;',
  392. 60, 60, '', 'Dependent', null, null, this.getTagsForStencil(gnmess, 'dependent_source_2', dtmess).join(' ')),
  393. this.createVertexTemplateEntry(mess + 'dependent_source_3;',
  394. 60, 60, '', 'Dependent', null, null, this.getTagsForStencil(gnmess, 'dependent_source_3', dtmess).join(' ')),
  395. this.createVertexTemplateEntry(mess + 'noise_source;',
  396. 60, 60, '', 'Noise', null, null, this.getTagsForStencil(gnmess, 'noise_source', dtmess).join(' ')),
  397. this.createVertexTemplateEntry(mess + 'ideal_source;',
  398. 60, 60, '', 'Ideal Source', null, null, this.getTagsForStencil(gnmess, 'ideal source', dtmess).join(' ')),
  399. this.createVertexTemplateEntry(mess + 'explosive_squib',
  400. 60, 60, '', 'Explosive Squib', null, null, this.getTagsForStencil(gnmess, 'explosive squib', dtmem).join(' ')),
  401. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;strokeColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.monocell_battery;',
  402. 100, 60, '', 'Accumulator / Monocell Battery', null, null, this.getTagsForStencil(gnmess, 'accumulator monocell battery single cell', dtmem).join(' ')),
  403. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;strokeColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.multicell_battery;',
  404. 100, 60, '', 'Multicell Battery', null, null, this.getTagsForStencil(gnmess, 'accumulator multicell battery multi multiple cell', dtmem).join(' ')),
  405. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;strokeColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.multicell_battery_tapped;',
  406. 100, 70, '', 'Multicell Battery Tapped', null, null, this.getTagsForStencil(gnmess, 'accumulator multicell battery tapped multi multiple cell', dtmem).join(' '))
  407. ]);
  408. this.addPaletteFunctions('electrical\Transistors', 'Electrical / Transistors', false,
  409. [
  410. this.createVertexTemplateEntry(met + 'npn_transistor_1;',
  411. 95, 100, '', 'BJT (NPN)', null, null, this.getTagsForStencil(gnmet, 'npn_transistor_1', dtmet).join(' ')),
  412. this.createVertexTemplateEntry(met + 'pnp_transistor_1;',
  413. 95, 100, '', 'BJT (PNP)', null, null, this.getTagsForStencil(gnmet, 'pnp_transistor_1', dtmet).join(' ')),
  414. this.createVertexTemplateEntry(met + 'n-channel_jfet_1;',
  415. 95, 100, '', 'N Channel JFET', null, null, this.getTagsForStencil(gnmet, 'n-channel_jfet_1', dtmet).join(' ')),
  416. this.createVertexTemplateEntry(met + 'p-channel_jfet_1;',
  417. 95, 100, '', 'P Channel JFET', null, null, this.getTagsForStencil(gnmet, 'p-channel_jfet_1', dtmet).join(' ')),
  418. this.createVertexTemplateEntry(mef1 + 'n-channel_mosfet_1;',
  419. 95, 100, '', 'MOSFET (N)', null, null, this.getTagsForStencil(gnmet, 'n-channel_mosfet_1', dtmet).join(' ')),
  420. this.createVertexTemplateEntry(mef1 + 'p-channel_mosfet_1;',
  421. 95, 100, '', 'MOSFET (P)', null, null, this.getTagsForStencil(gnmet, 'p-channel_mosfet_1', dtmet).join(' ')),
  422. this.createVertexTemplateEntry(mef1 + 'mosfet_ic_n;',
  423. 95, 100, '', 'NMOS', null, null, this.getTagsForStencil(gnmet, 'mosfet_ic_n', dtmet).join(' ')),
  424. this.createVertexTemplateEntry(mef1 + 'mosfet_ic_p;',
  425. 95, 100, '', 'PMOS', null, null, this.getTagsForStencil(gnmet, 'mosfet_ic_p', dtmet).join(' ')),
  426. this.createVertexTemplateEntry(mef1 + 'mosfet_n_no_bulk;',
  427. 95, 100, '', 'MOSFET No Bulk (N)', null, null, this.getTagsForStencil(gnmet, 'mosfet_n_no_bulk', dtmet).join(' ')),
  428. this.createVertexTemplateEntry(mef1 + 'mosfet_p_no_bulk;',
  429. 95, 100, '', 'MOSFET No Bulk (P)', null, null, this.getTagsForStencil(gnmet, 'mosfet_p_no_bulk', dtmet).join(' ')),
  430. this.createVertexTemplateEntry(mef1 + 'dual_gate_mosfet_n;',
  431. 95, 100, '', 'Dual Gate MOSFET (N)', null, null, this.getTagsForStencil(gnmet, 'dual_gate_mosfet_n', dtmet).join(' ')),
  432. this.createVertexTemplateEntry(mef1 + 'dual_gate_mosfet_p;',
  433. 95, 100, '', 'Dual Gate MOSFET (P)', null, null, this.getTagsForStencil(gnmet, 'dual_gate_mosfet_p', dtmet).join(' ')),
  434. this.createVertexTemplateEntry(met + 'nmos;',
  435. 60, 100, '', 'NMOS', null, null, this.getTagsForStencil(gnmet, 'nmos', dtmet).join(' ')),
  436. this.createVertexTemplateEntry(met + 'pmos;',
  437. 60, 100, '', 'PMOS', null, null, this.getTagsForStencil(gnmet, 'pmos', dtmet).join(' '))
  438. ]);
  439. this.addPaletteFunctions('electrical\Instruments', 'Electrical / Instruments', false,
  440. [
  441. this.createVertexTemplateEntry(mein + 'ampermeter;',
  442. 90, 90, '', 'Ampermeter', null, null, this.getTagsForStencil(gnmein, 'ampermeter', dtmein).join(' ')),
  443. this.createVertexTemplateEntry(mein + 'galvanometer;',
  444. 90, 90, '', 'Galvanometer', null, null, this.getTagsForStencil(gnmein, 'galvanometer', dtmein).join(' ')),
  445. this.createVertexTemplateEntry(mein + 'oscilloscope;',
  446. 90, 90, '', 'Oscilloscope', null, null, this.getTagsForStencil(gnmein, 'oscilloscope', dtmein).join(' ')),
  447. this.createVertexTemplateEntry(mein + 'signal_generator;',
  448. 90, 90, '', 'Signal Generator', null, null, this.getTagsForStencil(gnmein, 'signal_generator', dtmein).join(' ')),
  449. this.createVertexTemplateEntry(mein + 'voltmeter;',
  450. 90, 90, '', 'Voltmeter', null, null, this.getTagsForStencil(gnmein, 'voltmeter', dtmein).join(' '))
  451. ]);
  452. this.addPaletteFunctions('electrical\Misc', 'Electrical / Misc', false,
  453. [
  454. this.createVertexTemplateEntry(mer + 'aerial_-_antenna_1;',
  455. 80, 100, '', 'Antenna', null, null, this.getTagsForStencil(gnmer, 'aerial_-_antenna_1', dtmer).join(' ')),
  456. this.createVertexTemplateEntry(mer + 'aerial_-_antenna_2;',
  457. 79, 100, '', 'Antenna', null, null, this.getTagsForStencil(gnmer, 'aerial_-_antenna_2', dtmer).join(' ')),
  458. this.createVertexTemplateEntry(mer + 'loop_antenna;',
  459. 64.8, 69.78, '', 'Loop Antenna', null, null, this.getTagsForStencil(gnmer, 'loop_antenna', dtmer).join(' ')),
  460. this.createVertexTemplateEntry(mem + 'loop_antenna',
  461. 100, 100, '', 'Loop Antenna', null, null, this.getTagsForStencil(gnmess, 'loop antenna', dtmem).join(' ')),
  462. this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE + '=mxgraph.electrical.electro-mechanical.motor_1;html=1;shadow=0;dashed=0;fillColor=#ffffff;align=center;fontSize=30;strokeColor=#000000;strokeWidth=1;',
  463. 100, 60, 'M', 'Electrical Motor', null, null, this.getTagsForStencil(gnmeem, 'motor_1', dtmeem).join(' ')),
  464. this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE + '=mxgraph.electrical.electro-mechanical.motor_2;html=1;shadow=0;dashed=0;fillColor=#ffffff;align=center;fontSize=30;strokeColor=#000000;strokeWidth=1;',
  465. 100, 60, '', 'Motor Armature', null, null, this.getTagsForStencil(gnmeem, 'motor_2', dtmeem).join(' ')),
  466. this.createVertexTemplateEntry(mem + 'co-ax;',
  467. 40, 60, '', 'Co-Ax', null, null, this.getTagsForStencil(gnmem, 'co-ax', dtmem).join(' ')),
  468. this.createVertexTemplateEntry(mem + 'crystal_1;',
  469. 100, 40, '', 'Crystal', null, null, this.getTagsForStencil(gnmem, 'crystal_1', dtmem).join(' ')),
  470. this.createVertexTemplateEntry(mem + 'fuse_1;',
  471. 100, 20, '', 'Fuse (IEC)', null, null, this.getTagsForStencil(gnmem, 'fuse_1', dtmem).join(' ')),
  472. this.createVertexTemplateEntry(mem + 'fuse_2;',
  473. 100, 20, '', 'Fuse (IEEE)', null, null, this.getTagsForStencil(gnmem, 'fuse_2', dtmem).join(' ')),
  474. this.createVertexTemplateEntry(mem + 'fuse_3;',
  475. 100, 12, '', 'Fuse (obsolete)', null, null, this.getTagsForStencil(gnmem, 'fuse_3', dtmem).join(' ')),
  476. this.createVertexTemplateEntry(mem + 'fuse_4;',
  477. 100, 32, '', 'Fuse (IEEE)', null, null, this.getTagsForStencil(gnmem, 'fuse_4', dtmem).join(' ')),
  478. this.createVertexTemplateEntry(mem + 'light_bulb;',
  479. 60, 50, '', 'Light Bulb', null, null, this.getTagsForStencil(gnmem, 'light_bulb', dtmem).join(' ')),
  480. this.createVertexTemplateEntry(mem + 'illuminating_bulb;',
  481. 60, 50, '', 'Illuminating Bulb', null, null, this.getTagsForStencil(gnmem, 'illuminating_bulb', dtmem).join(' ')),
  482. this.createVertexTemplateEntry(mem + 'light_bulb;',
  483. 60, 50, '', 'Pilot Light', null, null, this.getTagsForStencil(gnmem, 'light_bulb', dtmem).join(' ')),
  484. this.createVertexTemplateEntry(mem + 'neon_lamp_2;',
  485. 60, 50, '', 'Neon Lamp', null, null, this.getTagsForStencil(gnmem, 'neon_lamp_2', dtmem).join(' ')),
  486. this.createVertexTemplateEntry(mem + 'flourescent_lamp',
  487. 80, 30, '', 'Flourescent Lamp', null, null, this.getTagsForStencil(gnmess, 'flourescent lamp', dtmem).join(' ')),
  488. this.createVertexTemplateEntry(meoe + 'lamp',
  489. 50, 100, '', 'Lamp', null, null, this.getTagsForStencil(gnmess, 'lamp', dtmeoe).join(' ')),
  490. this.createVertexTemplateEntry(mem + 'thermocouple;',
  491. 80, 81, '', 'Thermocouple', null, null, this.getTagsForStencil(gnmem, 'thermocouple', dtmem).join(' ')),
  492. this.createVertexTemplateEntry(mea + 'amplifier;',
  493. 90, 100, '', 'Amplifier', null, null, this.getTagsForStencil(gnmea, 'amplifier', dtmea).join(' ')),
  494. this.createVertexTemplateEntry(mea + 'controlled_amplifier;',
  495. 100, 90, '', 'Controlled Amplifier', null, null, this.getTagsForStencil(gnmea, 'controlled_amplifier', dtmea).join(' ')),
  496. this.createVertexTemplateEntry(mea + 'dac;',
  497. 70, 46, '', 'DAC', null, null, this.getTagsForStencil(gnmea, 'dac', dtmea).join(' ')),
  498. this.createVertexTemplateEntry(mea + 'mux;',
  499. 60, 90, '', 'Mux', null, null, this.getTagsForStencil(gnmea, 'mux', dtmea).join(' ')),
  500. this.createVertexTemplateEntry(mea + 'demux;',
  501. 60, 90, '', 'Demux', null, null, this.getTagsForStencil(gnmea, 'demux', dtmea).join(' ')),
  502. this.createVertexTemplateEntry(mea + 'mux-demux;',
  503. 60, 90, '', 'Mux-Demux', null, null, this.getTagsForStencil(gnmea, 'mux-demux', dtmea).join(' ')),
  504. this.createVertexTemplateEntry(mea + 'operational_amp_1;',
  505. 98, 90, '', 'Operational Amp', null, null, this.getTagsForStencil(gnmea, 'operational_amp_1', dtmea).join(' ')),
  506. this.createVertexTemplateEntry(mea + 'operational_amp_2;',
  507. 98, 90, '', 'Operational Amp', null, null, this.getTagsForStencil(gnmea, 'operational_amp_2', dtmea).join(' ')),
  508. this.createVertexTemplateEntry(mea + 'ota_1;',
  509. 100, 90, '', 'OTA', null, null, this.getTagsForStencil(gnmea, 'ota_1', dtmea).join(' ')),
  510. this.createVertexTemplateEntry(mea + 'ota_2;',
  511. 100, 90, '', 'OTA', null, null, this.getTagsForStencil(gnmea, 'ota_2', dtmea).join(' ')),
  512. this.createVertexTemplateEntry(mea + 'ota_3;',
  513. 100, 90, '', 'OTA', null, null, this.getTagsForStencil(gnmea, 'ota_3', dtmea).join(' ')),
  514. this.createVertexTemplateEntry(mea + 'quantizer;',
  515. 52, 46, '', 'Quantizer', null, null, this.getTagsForStencil(gnmea, 'quantizer', dtmea).join(' ')),
  516. this.createVertexTemplateEntry(mea + 'delta;',
  517. 50, 50, '', 'Delta', null, null, this.getTagsForStencil(gnmea, 'delta', dtmea).join(' ')),
  518. this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE + '=mxgraph.electrical.abstract.function;html=1;shadow=0;dashed=0;fillColor=#ffffff;align=center;strokeColor=#000000;strokeWidth=1;fontSize=24',
  519. 50, 50, 'fn', 'Function', null, null, this.getTagsForStencil(gnmea, 'function', dtmea).join(' ')),
  520. this.createVertexTemplateEntry(mea + 'integrator;',
  521. 50, 50, '', 'Integrator', null, null, this.getTagsForStencil(gnmea, 'integrator', dtmea).join(' ')),
  522. this.createVertexTemplateEntry(mea + 'multiplier;',
  523. 50, 50, '', 'Multiplier', null, null, this.getTagsForStencil(gnmea, 'multiplier', dtmea).join(' ')),
  524. this.createVertexTemplateEntry(mea + 'sum;',
  525. 50, 50, '', 'Sum', null, null, this.getTagsForStencil(gnmea, 'sum', dtmea).join(' ')),
  526. this.createVertexTemplateEntry(mea + 'summation_point;',
  527. 50, 50, '', 'Summation Point', null, null, this.getTagsForStencil(gnmea, 'summation_point', dtmea).join(' ')),
  528. this.createVertexTemplateEntry(mea + 'filter;',
  529. 52, 46, '', 'Filter', null, null, this.getTagsForStencil(gnmea, 'filter', dtmea).join(' ')),
  530. this.createVertexTemplateEntry(s + '=mxgraph.electrical.logic_gates.bandpass_filter;',
  531. 52, 46, '', 'Bandpass Filter', null, null, this.getTagsForStencil('mxgraph.electrical.logic_gates', 'bandpass_filter', '').join(' ')),
  532. this.createVertexTemplateEntry(s + '=mxgraph.electrical.logic_gates.highpass_filter;',
  533. 52, 46, '', 'Highpass Filter', null, null, this.getTagsForStencil('mxgraph.electrical.logic_gates', 'highpass_filter', '').join(' ')),
  534. this.createVertexTemplateEntry(s + '=mxgraph.electrical.logic_gates.lowpass_filter;',
  535. 52, 46, '', 'Lowpass Filter', null, null, this.getTagsForStencil('mxgraph.electrical.logic_gates', 'lowpass_filter', '').join(' ')),
  536. this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE + '=mxgraph.electrical.abstract.thermistor_with_independent_integral_heater;html=1;shadow=0;dashed=0;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1;align=center;overflow=fill;fontSize=12;',
  537. 100, 94.25,
  538. '<table cellpadding="0" cellspacing="0" style="width:100%;height:100%;">' +
  539. '<tr height="45%">' +
  540. '<td align="center">\\temp\\</td>' +
  541. '</tr>' +
  542. '<tr height="55%">' +
  543. '<td></td>' +
  544. '</tr>' +
  545. '</table>',
  546. 'Thermistor With Independent Integral Heater', null, null, this.getTagsForStencil(gnmea, 'thermistor_with_independent_integral_heater', dtmea).join(' ')),
  547. this.createVertexTemplateEntry(mea + 'voltage_regulator;',
  548. 70, 58, '', 'Voltage Regulator', null, null, this.getTagsForStencil(gnmea, 'voltage_regulator', dtmea).join(' ')),
  549. this.createVertexTemplateEntry(mess + 'vdd;fontSize=24;',
  550. 60, 40,
  551. 'V<sub>dd</sub>', 'Vdd', null, null, this.getTagsForStencil(gnmess, 'vdd', dtmess).join(' ')),
  552. this.createVertexTemplateEntry(mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=top;' + mxConstants.STYLE_VERTICAL_ALIGN + '=bottom;' + mxConstants.STYLE_SHAPE + '=mxgraph.electrical.signal_sources.vss2;shadow=0;dashed=0;fillColor=#ffffff;align=center;strokeColor=#000000;strokeWidth=1;fontSize=24;html=1;',
  553. 60, 40,
  554. 'V<sub>ss</sub>', 'Vss', null, null, this.getTagsForStencil(gnmess, 'vss2', dtmess).join(' ')),
  555. this.createVertexTemplateEntry(mxConstants.STYLE_VERTICAL_LABEL_POSITION + '=top;' + mxConstants.STYLE_VERTICAL_ALIGN + '=bottom;' + mxConstants.STYLE_SHAPE + '=mxgraph.electrical.signal_sources.current_flow;shadow=0;dashed=0;fillColor=#ffffff;align=center;strokeColor=#000000;strokeWidth=1;fontSize=10;html=1;',
  556. 70, 10,
  557. '5 mA', 'Current Flow', null, null, this.getTagsForStencil(gnmess, 'current_flow', dtmess).join(' ')),
  558. this.createVertexTemplateEntry(mxConstants.STYLE_LABEL_POSITION + '=right;' + mxConstants.STYLE_ALIGN + '=left;' + mxConstants.STYLE_SHAPE + '=mxgraph.electrical.signal_sources.voltage;shadow=0;dashed=0;fillColor=#ffffff;strokeColor=#000000;strokeWidth=1;fontSize=10;html=1;',
  559. 10, 70,
  560. '1.2 V', 'Voltage', null, null, this.getTagsForStencil(gnmess, 'voltage', dtmess).join(' ')),
  561. this.createVertexTemplateEntry(mess + 'equipotential;',
  562. 90, 90, '', 'Equipotential', null, null, this.getTagsForStencil(gnmess, 'equipotential', dtmess).join(' ')),
  563. this.createVertexTemplateEntry(mess + 'protective_earth;',
  564. 25, 20, '', 'Equipotential', null, null, this.getTagsForStencil(gnmess, 'protective_earth', dtmess).join(' ')),
  565. this.createVertexTemplateEntry(mess + 'signal_ground;',
  566. 45, 30, '', 'Ground', null, null, this.getTagsForStencil(gnmess, 'signal_ground', dtmess).join(' ')),
  567. this.createVertexTemplateEntry(mem + 'chassis;',
  568. 65, 32, '', 'Chassis', null, null, this.getTagsForStencil(gnmess, 'chassis', dtmem).join(' ')),
  569. this.createVertexTemplateEntry(mem + 'circuit_breaker;',
  570. 100, 13, '', 'Circuit Breaker', null, null, this.getTagsForStencil(gnmess, 'circuit breaker', dtmem).join(' ')),
  571. this.createVertexTemplateEntry(mem + 'generic_component',
  572. 60, 60, '', 'Generic Component', null, null, this.getTagsForStencil(gnmess, 'generic component', dtmem).join(' ')),
  573. this.createVertexTemplateEntry(mem + 'permanent_magnet',
  574. 20, 70, '', 'Permanent Magnet', null, null, this.getTagsForStencil(gnmess, 'permanent magnet', dtmem).join(' ')),
  575. this.createVertexTemplateEntry(mem + 'thermal_element',
  576. 100, 32, '', 'Thermal Element', null, null, this.getTagsForStencil(gnmess, 'thermal element', dtmem).join(' ')),
  577. this.createVertexTemplateEntry(mem + 'igniter_plug',
  578. 72, 39, '', 'Igniter Plug', null, null, this.getTagsForStencil(gnmess, 'igniter plug', dtmem).join(' ')),
  579. this.createVertexTemplateEntry('shape=mxgraph.arrows2.arrow;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;verticalAlign=top;strokeWidth=1;dy=0;dx=10;notch=0;',
  580. 100, 30, '', 'Pickup Head', null, null, this.getTagsForStencil(gnmess, 'pickup head', dtmem).join(' ')),
  581. this.createVertexTemplateEntry(mem + 'squib_ignitor',
  582. 100, 100, '', 'Squib Ignitor', null, null, this.getTagsForStencil(gnmess, 'squib ignitor', dtmem).join(' ')),
  583. this.createVertexTemplateEntry(mem + 'transducer',
  584. 70, 60, '', 'Transducer', null, null, this.getTagsForStencil(gnmess, 'transducer', dtmem).join(' ')),
  585. this.createVertexTemplateEntry(mem + 'transducer_2',
  586. 80, 100, '', 'Transducer', null, null, this.getTagsForStencil(gnmess, 'transducer', dtmem).join(' ')),
  587. this.createVertexTemplateEntry(mem + 'thermopile',
  588. 80, 82, '', 'Thermopile', null, null, this.getTagsForStencil(gnmess, 'thermopile', dtmem).join(' ')),
  589. this.createVertexTemplateEntry(mem + 'indicator',
  590. 60, 60, '', 'Indicator', null, null, this.getTagsForStencil(gnmess, 'indicator', dtmem).join(' ')),
  591. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.surge_protector;',
  592. 70, 20, '', 'Surge Protector', null, null, this.getTagsForStencil(gnmess, 'surge protector', dtmem).join(' ')),
  593. this.createVertexTemplateEntry(mem + 'surge_protector_2;',
  594. 70, 24, '', 'Surge Protector', null, null, this.getTagsForStencil(gnmess, 'surge protector', dtmem).join(' ')),
  595. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;verticalAlign=top;strokeWidth=1;shape=rect;',
  596. 130, 50, '', 'Material', null, null, this.getTagsForStencil(gnmess, 'material', dtmem).join(' ')),
  597. this.createVertexTemplateEntry(mem + 'sensing_link_squib',
  598. 130, 40, '', 'Sensing Link Squib', null, null, this.getTagsForStencil(gnmess, 'sensing link squib', dtmem).join(' ')),
  599. this.createVertexTemplateEntry(mem + 'delay_element',
  600. 100, 100, '', 'Delay Element', null, null, this.getTagsForStencil(gnmess, 'delay_element', dtmem).join(' ')),
  601. this.createVertexTemplateEntry(mer + 'buzzer',
  602. 80, 50, '', 'Buzzer', null, null, this.getTagsForStencil(gnmess, 'buzzer', dtmer).join(' ')),
  603. this.createVertexTemplateEntry(mem + 'adapter',
  604. 100, 40, '', 'Adapter', null, null, this.getTagsForStencil(gnmess, 'adapter', dtmer).join(' ')),
  605. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;verticalAlign=top;strokeWidth=1;shape=ellipse;perimeter=ellipsePerimeter;',
  606. 15, 15, '', 'Circuit Terminal', null, null, this.getTagsForStencil(gnmess, 'circuit terminal', dtmer).join(' ')),
  607. this.createEdgeTemplateEntry('endArrow=open;html=1;strokeColor=#000000;strokeWidth=1;endFill=0;endSize=20;',
  608. 100, 0, '', 'M/F Contact', null, this.getTagsForStencil(gnmess, '', 'mf contact').join(' ')),
  609. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;strokeColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.mf_contact_2',
  610. 100, 10, '', 'MF Contact 2', null, null, this.getTagsForStencil(gnmess, 'mf contact', dtmer).join(' ')),
  611. this.createVertexTemplateEntry(mem + 'terminal_board',
  612. 75, 150, '', 'Terminal Board', null, null, this.getTagsForStencil(gnmess, 'terminal board', dtmer).join(' ')),
  613. this.createVertexTemplateEntry(mem + 'cable_termination',
  614. 100, 50, '', 'Cable Termination', null, null, this.getTagsForStencil(gnmess, 'cable termination', dtmer).join(' ')),
  615. this.createVertexTemplateEntry(mem + '2_conductor_jack',
  616. 100, 50, '', '2-Conductor Jack', null, null, this.getTagsForStencil(gnmess, '2 conductor jack two', dtmer).join(' ')),
  617. this.createVertexTemplateEntry(mem + '3_conductor_jack',
  618. 100, 50, '', '3-Conductor Jack', null, null, this.getTagsForStencil(gnmess, '3 conductor jack three', dtmer).join(' ')),
  619. this.createVertexTemplateEntry(mem + '2_conductor_plug',
  620. 53, 24, '', '2-Conductor Plug', null, null, this.getTagsForStencil(gnmess, '2 conductor plug two', dtmer).join(' ')),
  621. this.createVertexTemplateEntry(mem + '3_conductor_plug',
  622. 53, 24, '', '3 Conductor Plug', null, null, this.getTagsForStencil(gnmess, '3 conductor plug', dtmer).join(' ')),
  623. this.createVertexTemplateEntry(mem + 'normalled_jacks',
  624. 230, 65, '', 'Normalled Jacks', null, null, this.getTagsForStencil(gnmess, 'normalled jacks', dtmer).join(' ')),
  625. this.createVertexTemplateEntry(mem + 'normalled_jack',
  626. 110, 65, '', 'Normalled Jack', null, null, this.getTagsForStencil(gnmess, 'normalled jack', dtmer).join(' ')),
  627. this.createVertexTemplateEntry(mem + 'coaxial_outside_conductor',
  628. 300, 150, '', 'Coaxial Outside Conductor', null, null, this.getTagsForStencil(gnmess, 'coaxial outside conductor', dtmer).join(' ')),
  629. this.createVertexTemplateEntry(mem + 'coaxial_center_conductor',
  630. 300, 150, '', 'Coaxial Center Conductor', null, null, this.getTagsForStencil(gnmess, 'coaxial center conductor', dtmer).join(' ')),
  631. this.createVertexTemplateEntry(mem + 'large_d_connector',
  632. 375, 75, '', 'Large D Connector', null, null, this.getTagsForStencil(gnmess, 'large d connector', dtmer).join(' ')),
  633. this.createVertexTemplateEntry(mem + 'small_d_connector',
  634. 150, 75, '', 'Small D Connector', null, null, this.getTagsForStencil(gnmess, 'small d connector', dtmer).join(' ')),
  635. this.createVertexTemplateEntry(mem + 'c_header_connector',
  636. 200, 75, '', 'C Header Connector', null, null, this.getTagsForStencil(gnmess, 'c header connector', dtmer).join(' ')),
  637. this.createVertexTemplateEntry(mem + 'ac_out',
  638. 200, 100, '', 'AC Out', null, null, this.getTagsForStencil(gnmess, 'ac out alternate current', dtmer).join(' ')),
  639. this.createVertexTemplateEntry(mem + 'shielded_jack_plug',
  640. 50, 100, '', 'Shielded Jack/Plug', null, null, this.getTagsForStencil(gnmess, 'shielded jack plug', dtmer).join(' ')),
  641. this.createVertexTemplateEntry(mem + 'coaxial_jack_plug',
  642. 50, 100, '', 'Coaxial Jack/Plug', null, null, this.getTagsForStencil(gnmess, 'coaxial jack/plug', dtmer).join(' ')),
  643. this.createVertexTemplateEntry(mem + 'f_m_2_conductor_1',
  644. 100, 100, '', 'F/M 2 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  645. this.createVertexTemplateEntry(mem + 'f_m_2_conductor_2',
  646. 100, 100, '', 'F/M 2 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  647. this.createVertexTemplateEntry(mem + 'f_m_2_conductor_3',
  648. 100, 50, '', 'F/M 2 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  649. this.createVertexTemplateEntry(mem + 'f_m_3_conductor_1',
  650. 100, 100, '', 'F/M 3 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  651. this.createVertexTemplateEntry(mem + 'f_m_3_conductor_2',
  652. 100, 100, '', 'F/M 3 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  653. this.createVertexTemplateEntry(mem + 'f_m_3_conductor_3',
  654. 100, 100, '', 'F/M 3 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  655. this.createVertexTemplateEntry(mem + 'f_m_3_conductor_4',
  656. 100, 100, '', 'F/M 3 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' ')),
  657. this.createVertexTemplateEntry(mem + 'f_m_3_conductor_5',
  658. 100, 100, '', 'F/M 3 Conductor', null, null, this.getTagsForStencil(gnmess, 'fm 2 conductor', dtmer).join(' '))
  659. ]);
  660. this.addPaletteFunctions('electrical\Audio', 'Electrical / Audio', false,
  661. [
  662. this.createVertexTemplateEntry(mer + 'dipole;',
  663. 100, 40, '', 'Dipole', null, null, this.getTagsForStencil(gnmer, 'dipole', dtmer).join(' ')),
  664. this.createVertexTemplateEntry(mer + 'electret_microphone;',
  665. 70, 70, '', 'Electret Microphone', null, null, this.getTagsForStencil(gnmer, 'electret_microphone', dtmer).join(' ')),
  666. this.createVertexTemplateEntry(mer + 'microphone_1;',
  667. 70, 70, '', 'Microphone', null, null, this.getTagsForStencil(gnmer, 'microphone_1', dtmer).join(' ')),
  668. this.createVertexTemplateEntry(mer + 'microphone_2;',
  669. 42, 70, '', 'Microphone', null, null, this.getTagsForStencil(gnmer, 'microphone_2', dtmer).join(' ')),
  670. this.createVertexTemplateEntry(meem + 'piezo_sounder;',
  671. 100, 40, '', 'Piezo Sounder', null, null, this.getTagsForStencil(gnmeem, 'piezo_sounder', dtmeem).join(' ')),
  672. this.createVertexTemplateEntry(meem + 'buzzer;',
  673. 45, 60, '', 'Buzzer', null, null, this.getTagsForStencil(gnmeem, 'buzzer', dtmeem).join(' ')),
  674. this.createVertexTemplateEntry(meem + 'loudspeaker;',
  675. 25, 50, '', 'Loudspeaker', null, null, this.getTagsForStencil(gnmeem, 'loudspeaker', dtmeem).join(' ')),
  676. this.createVertexTemplateEntry(mer + 'headphones;',
  677. 66, 56, '', 'Headphones', null, null, this.getTagsForStencil(gnmer, 'headphones', dtmer).join(' ')),
  678. this.createVertexTemplateEntry(meem + 'bell;',
  679. 47, 60, '', 'Bell', null, null, this.getTagsForStencil(gnmeem, 'bell', dtmeem).join(' '))
  680. ]);
  681. this.addPaletteFunctions('electrical\PlcLadder', 'Electrical / PLC Ladder', false,
  682. [
  683. this.createVertexTemplateEntry(mep + 'contact;',
  684. 50, 25, '', 'Contact', null, null, this.getTagsForStencil(gnmep, 'contact', dtmep).join(' ')),
  685. this.createVertexTemplateEntry(mep + 'not_contact;',
  686. 50, 25, '', 'Contact (N)', null, null, this.getTagsForStencil(gnmep, 'not_contact', dtmep).join(' ')),
  687. this.createVertexTemplateEntry(mep + 'not_output_1;',
  688. 50, 25, '', 'Output (N)', null, null, this.getTagsForStencil(gnmep, 'not_output_1;', dtmep).join(' ')),
  689. this.createVertexTemplateEntry(mep + 'not_output_2;',
  690. 50, 25, '', 'Output (N)', null, null, this.getTagsForStencil(gnmep, 'not_output_2', dtmep).join(' ')),
  691. this.createVertexTemplateEntry(mep + 'output_1;',
  692. 50, 25, '', 'Output', null, null, this.getTagsForStencil(gnmep, 'output_1', dtmep).join(' ')),
  693. this.createVertexTemplateEntry(mep + 'output_2;',
  694. 50, 25, '', 'Output', null, null, this.getTagsForStencil(gnmep, 'output_2', dtmep).join(' '))
  695. ]);
  696. this.addPaletteFunctions('electrical\Optical', 'Electrical / Optical', false,
  697. [
  698. this.createVertexTemplateEntry(meoe + '7_segment_display;',
  699. 74.7, 96.1, '', '7 Segment Display', null, null, this.getTagsForStencil(gnmeoe, '7_segment_display', dtmeoe).join(' ')),
  700. this.createVertexTemplateEntry(meoe + '7_segment_display_with_dp;',
  701. 79.8, 96.9, '', '7 Segment Display with DP', null, null, this.getTagsForStencil(gnmeoe, '7_segment_display_with_dp', dtmeoe).join(' ')),
  702. this.createVertexTemplateEntry(meoe + '9_segment_display;',
  703. 74.7, 96.1, '', '9 Segment Display', null, null, this.getTagsForStencil(gnmeoe, '9_segment_display', dtmeoe).join(' ')),
  704. this.createVertexTemplateEntry(meoe + '9_segment_display_with_dp;',
  705. 79.8, 96.9, '', '9 Segment Display with DP', null, null, this.getTagsForStencil(gnmeoe, '9_segment_display_with_dp', dtmeoe).join(' ')),
  706. this.createVertexTemplateEntry(meoe + 'led_1;',
  707. 100, 65, '', 'LED', null, null, this.getTagsForStencil(gnmeoe, 'led_1', dtmeoe).join(' ')),
  708. this.createVertexTemplateEntry(meoe + 'led_2;',
  709. 100, 70, '', 'LED', null, null, this.getTagsForStencil(gnmeoe, 'led_2', dtmeoe).join(' ')),
  710. this.createVertexTemplateEntry(meoe + 'light-activated_scr;',
  711. 100, 70, '', 'Light Activated SCR', null, null, this.getTagsForStencil(gnmeoe, 'light-activated_scr', dtmeoe).join(' ')),
  712. this.createVertexTemplateEntry(meoe + 'opto-coupler;',
  713. 99, 60, '', 'Opto-coupler', null, null, this.getTagsForStencil(gnmeoe, 'opto-coupler', dtmeoe).join(' ')),
  714. this.createVertexTemplateEntry(meoe + 'opto-transistor;',
  715. 100, 110, '', 'Opto-transistor', null, null, this.getTagsForStencil(gnmeoe, 'opto-transistor', dtmeoe).join(' ')),
  716. this.createVertexTemplateEntry(meoe + 'photodiode;',
  717. 100, 70, '', 'Photodiode', null, null, this.getTagsForStencil(gnmeoe, 'photodiode', dtmeoe).join(' ')),
  718. this.createVertexTemplateEntry(meoe + 'photo_resistor_1;',
  719. 100, 90, '', 'Photo Resistor', null, null, this.getTagsForStencil(gnmeoe, 'photo_resistor_1', dtmeoe).join(' ')),
  720. this.createVertexTemplateEntry(meoe + 'photo_resistor_2;',
  721. 100, 50, '', 'Photo Resistor', null, null, this.getTagsForStencil(gnmeoe, 'photo_resistor_2', dtmeoe).join(' ')),
  722. this.createVertexTemplateEntry(meoe + 'photo_resistor_3;',
  723. 100, 90, '', 'Photo Resistor', null, null, this.getTagsForStencil(gnmeoe, 'photo_resistor_3', dtmeoe).join(' ')),
  724. this.createVertexTemplateEntry(meoe + 'solar_cell;',
  725. 100, 70, '', 'Solar Cell', null, null, this.getTagsForStencil(gnmeoe, 'solar_cell', dtmeoe).join(' '))
  726. ]);
  727. this.addPaletteFunctions('electrical\VacuumTubes', 'Electrical / Vacuum Tubes', false,
  728. [
  729. this.createVertexTemplateEntry(metd + 'diode;',
  730. 70, 77, '', 'Diode', null, null, this.getTagsForStencil(gnmetd, 'diode', dtmetd).join(' ')),
  731. this.createVertexTemplateEntry(metd + 'double_diode;',
  732. 70, 77, '', 'Double Diode', null, null, this.getTagsForStencil(gnmetd, 'double_diode', dtmetd).join(' ')),
  733. this.createVertexTemplateEntry(metd + 'triode;',
  734. 70, 77, '', 'Triode', null, null, this.getTagsForStencil(gnmetd, 'triode', dtmetd).join(' ')),
  735. this.createVertexTemplateEntry(metd + 'double_triode;',
  736. 70, 77, '', 'Double Triode', null, null, this.getTagsForStencil(gnmetd, 'double_triode', dtmetd).join(' ')),
  737. this.createVertexTemplateEntry(metd + 'tetrode;',
  738. 70, 77, '', 'Tetrode', null, null, this.getTagsForStencil(gnmetd, 'tetrode', dtmetd).join(' ')),
  739. this.createVertexTemplateEntry(metd + 'pentode;',
  740. 70, 77, '', 'Pentode', null, null, this.getTagsForStencil(gnmetd, 'pentode', dtmetd).join(' ')),
  741. this.createVertexTemplateEntry(metd + 'photocell;',
  742. 70, 87, '', 'Photocell', null, null, this.getTagsForStencil(gnmetd, 'photocell', dtmetd).join(' '))
  743. ]);
  744. this.addPaletteFunctions('electrical\Waveforms', 'Electrical / Waveforms', false,
  745. [
  746. this.createVertexTemplateEntry(mew + 'pulse_1;',
  747. 90, 90, '', 'Pulse', null, null, this.getTagsForStencil(gnmew, 'pulse_1', dtmew).join(' ')),
  748. this.createVertexTemplateEntry(mew + 'pulse_2;',
  749. 90, 90, '', 'Pulse', null, null, this.getTagsForStencil(gnmew, 'pulse_2', dtmew).join(' ')),
  750. this.createVertexTemplateEntry(mew + 'sawtooth;',
  751. 90, 40, '', 'Sawtooth', null, null, this.getTagsForStencil(gnmew, 'sawtooth', dtmew).join(' ')),
  752. this.createVertexTemplateEntry(mew + 'sine_wave;',
  753. 90, 66.18, '', 'Sine Wave', null, null, this.getTagsForStencil(gnmew, 'sine_wave', dtmew).join(' ')),
  754. this.createVertexTemplateEntry(mew + 'slow_square_wave;',
  755. 90, 80, '', 'Chopped Square Wave', null, null, this.getTagsForStencil(gnmew, 'slow_square_wave', dtmew).join(' ')),
  756. this.createVertexTemplateEntry(mew + 'square_wave;',
  757. 90, 80, '', 'square_wave', null, null, this.getTagsForStencil(gnmew, 'square_wave', dtmew).join(' ')),
  758. this.createVertexTemplateEntry(mew + 'step_1;',
  759. 90, 90, '', 'Step', null, null, this.getTagsForStencil(gnmew, 'step_1', dtmew).join(' ')),
  760. this.createVertexTemplateEntry(mew + 'step_2;',
  761. 90, 90, '', 'Step', null, null, this.getTagsForStencil(gnmew, 'step_2', dtmew).join(' '))
  762. ]);
  763. this.addPaletteFunctions('electrical\RotMech', 'Electrical / Rotating Equipment & Mechanical Functions', false,
  764. [
  765. this.createVertexTemplateEntry('verticalLabelPosition=middle;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;fontSize=32;fontColor=#000000;perimeter=ellipsePerimeter;',
  766. 100, 100, 'M', 'Rotating Machine', null, null, this.getTagsForStencil(gnmerm, 'rotating machine', dtmerm).join(' ')),
  767. this.createVertexTemplateEntry(merm + 'armature;',
  768. 100, 100, '', 'Armature', null, null, this.getTagsForStencil(gnmerm, 'armature', dtmerm).join(' ')),
  769. this.createVertexTemplateEntry(merm + 'field;',
  770. 90, 15, '', 'Field', null, null, this.getTagsForStencil(gnmerm, 'field', dtmerm).join(' ')),
  771. this.createVertexTemplateEntry(mem + 'permanent_magnet;',
  772. 20, 70, '', 'Permanent Magnet', null, null, this.getTagsForStencil(gnmerm, 'permanent magnet', dtmerm).join(' ')),
  773. this.createVertexTemplateEntry(merm + 'winding_connection;',
  774. 100, 100, '', 'Winding Connection', null, null, this.getTagsForStencil(gnmerm, 'winding connection', dtmerm).join(' ')),
  775. this.createVertexTemplateEntry(merm + 'synchro;',
  776. 80, 100, '', 'Synchro', null, null, this.getTagsForStencil(gnmerm, 'synchro', dtmerm).join(' ')),
  777. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;html=1;verticalAlign=top;strokeWidth=1;shape=trapezoid;perimeter=none;',
  778. 75, 25, '', 'Brake', null, null, this.getTagsForStencil(gnmerm, 'brake', dtmerm).join(' ')),
  779. this.createVertexTemplateEntry(merm + 'gearing;',
  780. 100, 64, '', 'Gearing', null, null, this.getTagsForStencil(gnmerm, 'gearing', dtmerm).join(' ')),
  781. this.createVertexTemplateEntry(merm + 'verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.rot_mech.rotation;',
  782. 69, 54, '', 'Rotation', null, null, this.getTagsForStencil(gnmerm, 'rotation', dtmerm).join(' ')),
  783. this.createVertexTemplateEntry(merm + 'clutch;',
  784. 100, 20, '', 'Clutch', null, null, this.getTagsForStencil(gnmerm, 'clutch', dtmerm).join(' ')),
  785. this.createVertexTemplateEntry(merm + 'clutch_2;',
  786. 90, 60, '', 'Clutch', null, null, this.getTagsForStencil(gnmerm, 'clutch', dtmerm).join(' ')),
  787. this.createVertexTemplateEntry(merm + 'delayed_action;',
  788. 72, 50, '', 'Delayed Action', null, null, this.getTagsForStencil(gnmerm, 'delayed action', dtmerm).join(' ')),
  789. this.createVertexTemplateEntry(merm + 'manual_control;',
  790. 50, 50, '', 'Manual Control', null, null, this.getTagsForStencil(gnmerm, 'manual control', dtmerm).join(' ')),
  791. this.createVertexTemplateEntry(merm + 'blocking_device;',
  792. 100, 15, '', 'Blocking Device', null, null, this.getTagsForStencil(gnmerm, 'blocking device', dtmerm).join(' ')),
  793. this.createVertexTemplateEntry(merm + 'latching_device;',
  794. 100, 22, '', 'Latching Device', null, null, this.getTagsForStencil(gnmerm, 'latching device', dtmerm).join(' ')),
  795. this.createVertexTemplateEntry(merm + 'mechanical_interlock;',
  796. 100, 30, '', 'Mechanical Interlock', null, null, this.getTagsForStencil(gnmerm, 'mechanical interlock', dtmerm).join(' ')),
  797. this.createVertexTemplateEntry(merm + 'automatic_return;',
  798. 100, 12, '', 'Automatic Return', null, null, this.getTagsForStencil(gnmerm, 'automatic_return', dtmerm).join(' ')),
  799. this.createVertexTemplateEntry(merm + 'detent;',
  800. 100, 8, '', 'Detent', null, null, this.getTagsForStencil(gnmerm, 'detent', dtmerm).join(' '))
  801. ]);
  802. var sb = this;
  803. var fns =
  804. [
  805. this.createVertexTemplateEntry(metr + 'bus_width;',
  806. 130, 156, '', 'Bus Width', null, null, this.getTagsForStencil(gnmetr, 'bus width', dtmetr).join(' ')),
  807. this.createVertexTemplateEntry(metr + 'line_concentrator;',
  808. 130, 130, '', 'Line Concentrator', null, null, this.getTagsForStencil(gnmetr, 'line concentrator', dtmetr).join(' ')),
  809. this.createVertexTemplateEntry(metr + 'cable_group;',
  810. 130, 130, '', 'Cable Group', null, null, this.getTagsForStencil(gnmetr, 'cable group', dtmetr).join(' ')),
  811. this.createVertexTemplateEntry(metr + 'overground_enclosure;',
  812. 130, 136, '', 'Overground Enclosure', null, null, this.getTagsForStencil(gnmetr, 'overground enclosure', dtmetr).join(' ')),
  813. this.createVertexTemplateEntry(metr + 'optical_fiber;',
  814. 130, 80, '', 'Optical Fiber', null, null, this.getTagsForStencil(gnmetr, 'optical fiber', dtmetr).join(' ')),
  815. this.createVertexTemplateEntry('verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#ffffff;strokeColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=ellipse;',
  816. 10, 10, '', 'Terminal', null, null, this.getTagsForStencil(gnmetr, 'terminal', dtmetr).join(' ')),
  817. this.createVertexTemplateEntry(metr + 'terminal_3_phase;',
  818. 43, 10, '', 'Terminal 3 Phase', null, null, this.getTagsForStencil(gnmetr, 'Terminal 3 Phase', dtmetr).join(' ')),
  819. this.createVertexTemplateEntry('verticalLabelPosition=middle;shadow=0;dashed=0;align=center;fillColor=#ffffff;strokeColor=#000000;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;fontColor=#000000;fontSize=50;fontStyle=1;perimeter=ellipsePerimeter;',
  820. 130, 130, 'T', 'Terminal', null, null, this.getTagsForStencil(gnmetr, 'terminal', dtmetr).join(' ')),
  821. this.createVertexTemplateEntry(metr + 'line_cable;',
  822. 130, 60, '', 'Line/Cable', null, null, this.getTagsForStencil(gnmetr, 'line cable', dtmetr).join(' ')),
  823. this.createVertexTemplateEntry(metr + 'anticreepage_device;',
  824. 130, 88, '', 'Anticreepage Device', null, null, this.getTagsForStencil(gnmetr, 'anticreepage device', dtmetr).join(' ')),
  825. this.createVertexTemplateEntry(metr + 'testPoint;',
  826. 60, 130, '', 'Test Point', null, null, this.getTagsForStencil(gnmetr, 'test point', dtmetr).join(' ')),
  827. this.createEdgeTemplateEntry('endArrow=none;html=1;strokeColor=#000000;strokeWidth=1;',
  828. 100, 0, '', 'Transmission Path', null, this.getTagsForStencil(gnmess, '', 'transmission path').join(' ')),
  829. this.createEdgeTemplateEntry('endArrow=classicThin;html=1;strokeColor=#000000;strokeWidth=1;endSize=20;',
  830. 100, 0, '', 'Direction of Flow', null, this.getTagsForStencil(gnmess, '', 'direction flow').join(' ')),
  831. this.createVertexTemplateEntry(metr + 'straightBus;',
  832. 90, 130, '', 'Straight Bus', null, null, this.getTagsForStencil(gnmetr, 'straight bus', dtmetr).join(' ')),
  833. this.createVertexTemplateEntry('html=1;shadow=0;dashed=0;align=center;verticalAlign=middle;shape=mxgraph.arrows2.bendArrow;dy=15;dx=38;notch=0;arrowHead=55;rounded=0;strokeColor=#000000;strokeWidth=1;fillColor=#FFFFFF;',
  834. 130, 130, '', 'Elbow Bus', null, null, this.getTagsForStencil(gnmetr, 'elbow bus', dtmetr).join(' ')),
  835. this.createVertexTemplateEntry('html=1;shadow=0;dashed=0;align=center;verticalAlign=middle;shape=mxgraph.arrows2.bendArrow;dy=15;dx=38;notch=0;arrowHead=55;rounded=0;strokeColor=#000000;strokeWidth=1;fillColor=#FFFFFF;flipH=1;',
  836. 130, 130, '', 'Elbow Bus', null, null, this.getTagsForStencil(gnmetr, 'elbow bus', dtmetr).join(' ')),
  837. this.createVertexTemplateEntry(metr + '2_line_bus;',
  838. 130, 25, '', '2-Line Bus', null, null, this.getTagsForStencil(gnmetr, '2 two line bus', dtmetr).join(' ')),
  839. this.createVertexTemplateEntry(metr + '3_line_bus;',
  840. 130, 30, '', '3-Line Bus', null, null, this.getTagsForStencil(gnmetr, '3 three line bus', dtmetr).join(' ')),
  841. this.createVertexTemplateEntry(metr + '4_line_bus;',
  842. 130, 75, '', '4-Line Bus', null, null, this.getTagsForStencil(gnmetr, '3 three line bus', dtmetr).join(' ')),
  843. this.createVertexTemplateEntry(metr + '8_line_bus;',
  844. 130, 180, '', '8-Line Bus', null, null, this.getTagsForStencil(gnmetr, '3 three line bus', dtmetr).join(' ')),
  845. this.createVertexTemplateEntry(metr + 'twoLineBusElbow;notch=25;',
  846. 120, 120, '', '2-Line Bus Elbow', null, null, this.getTagsForStencil(gnmetr, '2 two line bus elbow', dtmetr).join(' ')),
  847. this.createVertexTemplateEntry(metr + 'threeLineBusElbow;notch=30;',
  848. 120, 120, '', '3-Line Bus Elbow', null, null, this.getTagsForStencil(gnmetr, '3 two line bus elbow', dtmetr).join(' ')),
  849. this.createVertexTemplateEntry(metr + 'fourLineBusElbow;notch=75;',
  850. 120, 120, '', '4-Line Bus Elbow', null, null, this.getTagsForStencil(gnmetr, '4 two line bus elbow', dtmetr).join(' ')),
  851. this.createVertexTemplateEntry(metr + 'eightLineBusElbow;notch=180;',
  852. 200, 200, '', '8-Line Bus Elbow', null, null, this.getTagsForStencil(gnmetr, '8 two line bus elbow', dtmetr).join(' '))
  853. ];
  854. this.addPalette('electrical\Transmission', 'Electrical / Transmission Paths', false, mxUtils.bind(this, function(content)
  855. {
  856. for (var i = 0; i < fns.length; i++)
  857. {
  858. content.appendChild(fns[i](content));
  859. }
  860. }));
  861. };
  862. })();