UNPKG

@zklogic/draw.io

Version:

Draw.IO - Graph Editor integration in Angular-cli

1 lines 68.2 kB
Sidebar.prototype.addElectricalPalette=function(){var e=mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;shadow=0;dashed=0;align=center;html=1;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_SHAPE,t=e+"=mxgraph.electrical.abstract.",l="pointerEvents=1;"+e+"=mxgraph.electrical.capacitors.",r="pointerEvents=1;fillColor=strokeColor;"+e+"=mxgraph.electrical.diodes.",n="pointerEvents=1;"+e+"=mxgraph.electrical.inductors.",i="pointerEvents=1;"+e+"=mxgraph.electrical.miscellaneous.",a="pointerEvents=1;"+e+"=mxgraph.electrical.electro-mechanical.",o=e+"=mxgraph.electrical.logic_gates.",s=e+"=mxgraph.electrical.mosfets1.",c=e+"=mxgraph.electrical.transistors.",u=e+"=mxgraph.electrical.opto_electronics.",h="pointerEvents=1;"+e+"=mxgraph.electrical.plc_ladder.",g=e+"=mxgraph.electrical.radio.",p="pointerEvents=1;"+e+"=mxgraph.electrical.resistors.",m="pointerEvents=1;"+e+"=mxgraph.electrical.signal_sources.",T=e+"=mxgraph.electrical.thermionic_devices.",_="pointerEvents=1;"+e+"=mxgraph.electrical.waveforms.",d="perimeter=ellipsePerimeter;"+e+"=mxgraph.electrical.instruments.",S=e+"=mxgraph.electrical.iec_logic_gates.",y=e+"=mxgraph.electrical.rot_mech.",E=e+"=mxgraph.electrical.transmission.",x="mxgraph.electrical.logic_gates",F="electrical logic gate ",j="mxgraph.electrical.iec_logic_gates",V="electrical iec logic gate ",f="mxgraph.electrical.resistors",b="electrical resistor ",w="mxgraph.electrical.capacitors",v="electrical capacitor ",C="mxgraph.electrical.inductors",k="electrical inductor ",P="mxgraph.electrical.electro-mechanical",L="electrical switch relay ",A="mxgraph.electrical.diodes",I="electrical diode ",M="mxgraph.electrical.signal_sources",D="electrical signal source ",R="mxgraph.electrical.transistors",O="electrical transistor ",B="mxgraph.electrical.instruments",N="electrical instrument ",W="mxgraph.electrical.radio",z="electrical radio audio ",q="mxgraph.electrical.miscellaneous",G="electrical ",H="mxgraph.electrical.abstract",J="electrical ",Y="mxgraph.electrical.plc_ladder",U="electrical plc ladder programmable logic logical controller",K="mxgraph.electrical.opto_electronics",X="electrical optical ",Q="mxgraph.electrical.thermionic_devices",Z="electrical thermionic thermo device vacuum tube ",$="mxgraph.electrical.waveforms",ee="electrical waveform signal ",te="mxgraph.electrical.rot_mech",le="electrical rotating equipment mechanical function functions",re="mxgraph.electrical.transmission",ne="electrical transmission paths bus buses";this.setCurrentSearchEntryLibrary("electrical","electricalLogicGates"),this.addPaletteFunctions("electricalLogicGates","Electrical / Logic Gates",!1,[this.createVertexTemplateEntry(o+"logic_gate;operation=and;",100,60,"","AND",null,null,this.getTagsForStencil(x,"and",F).join(" ")),this.createVertexTemplateEntry(o+"buffer2;",100,60,"","Buffer",null,null,this.getTagsForStencil(x,"buffer",F).join(" ")),this.createVertexTemplateEntry(o+"d_type_flip-flop;",100,80,"","D Type Flip-Flop",null,null,this.getTagsForStencil(x,"d_type_flip-flop",F).join(" ")),this.createVertexTemplateEntry(o+"d_type_flip-flop_with_clear_2;",100,90,"","D Type Flip-Flop With Clear",null,null,this.getTagsForStencil(x,"d_type_flip-flop_with_clear",F).join(" ")),this.createVertexTemplateEntry(o+"d_type_rs_flip-flop;",100,100,"","D Type RS Flip-Flop",null,null,this.getTagsForStencil(x,"d_type_rs_flip-flop",F).join(" ")),this.createVertexTemplateEntry(o+"inverter_2",100,60,"","Inverter",null,null,this.getTagsForStencil(x,"inverter",F).join(" ")),this.createVertexTemplateEntry(o+"inverting_contact;",10,10,"","Inverting Contact",null,null,this.getTagsForStencil(x,"inverting_contact",F).join(" ")),this.createVertexTemplateEntry(o+"jk_flip-flop;",100,80,"","JK Flip-Flop",null,null,this.getTagsForStencil(x,"jk_flip-flop",F).join(" ")),this.createVertexTemplateEntry(o+"jk_flip-flop_with_clear_2;",100,90,"","JK Flip-Flop With Clear",null,null,this.getTagsForStencil(x,"jk_flip-flop_with_clear",F).join(" ")),this.createVertexTemplateEntry(o+"jk_flip-flop_with_sr;",100,100,"","JK Flip-Flop With SR",null,null,this.getTagsForStencil(x,"jk_flip-flop_with_sr",F).join(" ")),this.createVertexTemplateEntry(o+"logic_gate;operation=and;negating=1;negSize=0.15;",100,60,"","NAND",null,null,this.getTagsForStencil(x,"nand not and",F).join(" ")),this.createVertexTemplateEntry(o+"logic_gate;operation=or;",100,60,"","OR",null,null,this.getTagsForStencil(x,"or",F).join(" ")),this.createVertexTemplateEntry(o+"logic_gate;operation=or;negating=1;negSize=0.15;",100,60,"","NOR",null,null,this.getTagsForStencil(x,"nor",F).join(" ")),this.createVertexTemplateEntry(o+"rs_latch;",100,80,"","RS Latch",null,null,this.getTagsForStencil(x,"rs_latch",F).join(" ")),this.createVertexTemplateEntry(o+"synchronous_rs_latch;",100,80,"","RS Latch (Synchronous)",null,null,this.getTagsForStencil(x,"synchronous_rs_latch",F).join(" ")),this.createVertexTemplateEntry(o+"schmitt_trigger;",100,60,"","Schmitt Trigger",null,null,this.getTagsForStencil(x,"schmitt_trigger",F).join(" ")),this.createVertexTemplateEntry(o+"t_type_flip-flop;",100,80,"","T Type Flip-Flop",null,null,this.getTagsForStencil(x,"t_type_flip-flop",F).join(" ")),this.createVertexTemplateEntry(o+"logic_gate;operation=xor;",100,60,"","XOR",null,null,this.getTagsForStencil(x,"xor",F).join(" ")),this.createVertexTemplateEntry(o+"logic_gate;operation=xor;negating=1;negSize=0.15;",100,60,"","XNOR",null,null,this.getTagsForStencil(x,"xnor",F).join(" ")),this.createVertexTemplateEntry(S+"and;",60,80,"","AND (IEC)",null,null,this.getTagsForStencil(j,"and",V).join(" ")),this.createVertexTemplateEntry(S+"nand_2;",66,80,"","NAND (IEC)",null,null,this.getTagsForStencil(j,"nand",V).join(" ")),this.createVertexTemplateEntry(S+"or;",60,80,"","OR (IEC)",null,null,this.getTagsForStencil(j,"or",V).join(" ")),this.createVertexTemplateEntry(S+"nor_2;",66,80,"","NOR (IEC)",null,null,this.getTagsForStencil(j,"nor",V).join(" ")),this.createVertexTemplateEntry(S+"not_2;",66,80,"","NOT (IEC)",null,null,this.getTagsForStencil(j,"xor",V).join(" ")),this.createVertexTemplateEntry(S+"xor;",60,80,"","XOR (IEC)",null,null,this.getTagsForStencil(j,"xor",V).join(" ")),this.createVertexTemplateEntry("shadow=0;dashed=0;align=center;html=1;strokeWidth=1;shape=mxgraph.electrical.logic_gates.dual_inline_ic;labelNames=a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t;",100,200,"IC","Dual In-Line IC",null,null,this.getTagsForStencil(x,"dual inline in line ic integrated circuit",F).join(" ")),this.createVertexTemplateEntry("shadow=0;dashed=0;align=center;html=1;strokeWidth=1;shape=mxgraph.electrical.logic_gates.qfp_ic;labelNames=a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,a1,b1,c1,d1,e1,f1,g1,h1,i1,j1,k1,l1,m1,n1;",200,200,"IC","Quad Flat Package IC",null,null,this.getTagsForStencil(x,"quad flat package qfp ic integrated circuit",F).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalResistors"),this.addPaletteFunctions("electricalResistors","Electrical / Resistors",!1,[this.createVertexTemplateEntry(p+"resistor_1;",100,20,"","Resistor",null,null,this.getTagsForStencil(f,"resistor_1",b).join(" ")),this.createVertexTemplateEntry(p+"resistor_2;",100,20,"","Resistor",null,null,this.getTagsForStencil(f,"resistor_2",b).join(" ")),this.createVertexTemplateEntry(p+"potentiometer_1;",100,40,"","Potentiometer",null,null,this.getTagsForStencil(f,"potentiometer_1",b).join(" ")),this.createVertexTemplateEntry(p+"potentiometer_2;",100,40,"","Potentiometer",null,null,this.getTagsForStencil(f,"potentiometer_2",b).join(" ")),this.createVertexTemplateEntry(p+"trimmer_pot_1;",100,40,"","Potentiometer (Trimmer)",null,null,this.getTagsForStencil(f,"trimmer_pot_1",b).join(" ")),this.createVertexTemplateEntry(p+"trimmer_pot_2;",100,40,"","Potentiometer (Trimmer)",null,null,this.getTagsForStencil(f,"trimmer_pot_2",b).join(" ")),this.createVertexTemplateEntry(p+"trimmer_resistor_1;",100,65.5,"","Resistor (Trimmer)",null,null,this.getTagsForStencil(f,"trimmer_resistor_1",b).join(" ")),this.createVertexTemplateEntry(p+"trimmer_resistor_2;",100,65.5,"","Resistor (Trimmer)",null,null,this.getTagsForStencil(f,"trimmer_resistor_2",b).join(" ")),this.createVertexTemplateEntry(p+"variable_resistor_1;",100,60,"","Resistor (Variable)",null,null,this.getTagsForStencil(f,"variable_resistor_1",b).join(" ")),this.createVertexTemplateEntry(p+"variable_resistor_2;",100,60,"","Resistor (Variable)",null,null,this.getTagsForStencil(f,"variable_resistor_2",b).join(" ")),this.createVertexTemplateEntry(p+"resistor_with_instrument_or_relay_shunt;",100,20,"","Resistor (Instrument/Relay Shunt)",null,null,this.getTagsForStencil(f,"resistor_with_instrument_or_relay_shunt",b).join(" ")),this.createVertexTemplateEntry(p+"attenuator;",100,60,"","Attenuator",null,null,this.getTagsForStencil(f,"attenuator",b).join(" ")),this.createVertexTemplateEntry(p+"resistor,_adjustable_contact;",100,40,"","Resistor (Adjustable Contact)",null,null,this.getTagsForStencil(f,"resistor,_adjustable_contact",b).join(" ")),this.createVertexTemplateEntry(p+"resistor,_shunt;",100,45,"","Resistor (Shunt)",null,null,this.getTagsForStencil(f,"resistor,_shunt",b).join(" ")),this.createVertexTemplateEntry(p+"symmetrical_varistor;",100,60,"","Varistor (Symmetrical)",null,null,this.getTagsForStencil(f,"symmetrical_varistor",b).join(" ")),this.createVertexTemplateEntry(p+"tapped_resistor;",100,40,"","Resistor (Tapped)",null,null,this.getTagsForStencil(f,"tapped_resistor",b).join(" ")),this.createVertexTemplateEntry(p+"nonlinear_resistor;",100,60,"","Resistor (Nonlinear)",null,null,this.getTagsForStencil(f,"nonlinear_resistor",b).join(" ")),this.createVertexTemplateEntry(p+"memristor_1;",100,20,"","Memristor",null,null,this.getTagsForStencil(f,"memristor_1",b).join(" ")),this.createVertexTemplateEntry(p+"memristor_2;",100,24,"","Memristor",null,null,this.getTagsForStencil(f,"memristor_2",b).join(" ")),this.createVertexTemplateEntry(p+"magnetoresistor;",100,60,"","Magnetoresistor",null,null,this.getTagsForStencil(f,"magnetoresistor",b).join(" ")),this.createVertexTemplateEntry(p+"symmetrical_photoconductive_transducer;",100,40,"","Photoconductive Transducer (Symmetrical)",null,null,this.getTagsForStencil(f,"symmetrical_photoconductive_transducer",b).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalCapacitors"),this.addPaletteFunctions("electricalCapacitors","Electrical / Capacitors",!1,[this.createVertexTemplateEntry(l+"capacitor_1;",100,60,"","Capacitor (US)",null,null,this.getTagsForStencil(w,"capacitor_1",v).join(" ")),this.createVertexTemplateEntry(l+"capacitor_2;",100,60,"","Capacitor (US)",null,null,this.getTagsForStencil(w,"capacitor_2",v).join(" ")),this.createVertexTemplateEntry(l+"capacitor_3;",100,60,"","Electrolytic Capacitor (US)",null,null,this.getTagsForStencil(w,"capacitor_3",v).join(" ")),this.createVertexTemplateEntry(l+"capacitor_4;",100,60,"","Capacitor (UK)",null,null,this.getTagsForStencil(w,"capacitor_4",v).join(" ")),this.createVertexTemplateEntry(l+"capacitor_5;",100,60,"","Electrolytic Capacitor (US)",null,null,this.getTagsForStencil(w,"capacitor_5",v).join(" ")),this.createVertexTemplateEntry(l+"capacitor_6;",100,60,"","Capacitor",null,null,this.getTagsForStencil(w,"capacitor_6",v).join(" ")),this.createVertexTemplateEntry(l+"differential_capacitor;",100,80,"","Differential Capacitor",null,null,this.getTagsForStencil(w,"differential_capacitor",v).join(" ")),this.createVertexTemplateEntry(l+"trimmer_capacitor_1;",100,65.5,"","Tuning Variable Capacitor (US)",null,null,this.getTagsForStencil(w,"trimmer_capacitor_1",v).join(" ")),this.createVertexTemplateEntry(l+"trimmer_capacitor_2;",100,65.5,"","Tuning Variable Capacitor (US)",null,null,this.getTagsForStencil(w,"trimmer_capacitor_2",v).join(" ")),this.createVertexTemplateEntry(l+"variable_capacitor_1;",100,60,"","Trimmer Variable Capacitor (US)",null,null,this.getTagsForStencil(w,"variable_capacitor_1",v).join(" ")),this.createVertexTemplateEntry(l+"variable_capacitor_2;",100,60,"","Trimmer Variable Capacitor (US)",null,null,this.getTagsForStencil(w,"variable_capacitor_2",v).join(" ")),this.createVertexTemplateEntry(l+"feed_through_capacitor;",100,90,"","Feed Through Capacitor",null,null,this.getTagsForStencil(w,"feed_through_capacitor",v).join(" ")),this.createVertexTemplateEntry(l+"ganged_capacitor;",100,130,"","Ganged Capacitor",null,null,this.getTagsForStencil(w,"ganged_capacitor",v).join(" ")),this.createVertexTemplateEntry(l+"multiple_capacitor;",100,130,"","Multiple Capacitor",null,null,this.getTagsForStencil(w,"multiple_capacitor",v).join(" ")),this.createVertexTemplateEntry(l+"multiple_electrolytic_capacitor_comm_neg;",100,130,"","Multiple Electrolytic Capacitor (Common Negative)",null,null,this.getTagsForStencil(w,"multiple_electrolytic_capacitor_comm_neg",v).join(" ")),this.createVertexTemplateEntry(l+"multiple_electrolytic_capacitor_comm_pos;",100,130,"","Multiple Electrolytic Capacitor (Common Positive)",null,null,this.getTagsForStencil(w,"multiple_electrolytic_capacitor_comm_pos",v).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalInductors"),this.addPaletteFunctions("electricalInductors","Electrical / Inductors",!1,[this.createVertexTemplateEntry(n+"inductor_3;",100,8,"","Inductor (Air Core)",null,null,this.getTagsForStencil(C,"inductor_3",k).join(" ")),this.createVertexTemplateEntry(n+"inductor_5;",100,14,"","Inductor (Air Core)",null,null,this.getTagsForStencil(C,"inductor_5",k).join(" ")),this.createVertexTemplateEntry(n+"inductor_1;",100,15,"","Inductor (Air Core)",null,null,this.getTagsForStencil(C,"inductor_1",k).join(" ")),this.createVertexTemplateEntry(n+"variable_inductor;",100,60,"","Variable",null,null,this.getTagsForStencil(C,"variable_inductor",k).join(" ")),this.createVertexTemplateEntry(n+"ferrite_core;",64,4,"","Ferrite Core",null,null,this.getTagsForStencil(C,"ferrite_core",k).join(" ")),this.createVertexTemplateEntry(n+"iron_core;",64,4,"","Iron Core",null,null,this.getTagsForStencil(C,"iron_core",k).join(" ")),this.createVertexTemplateEntry(n+"magnetic_core;direction=north;",64,3,"","Magnetic Core",null,null,this.getTagsForStencil(C,"magnetic core",k).join(" ")),this.createVertexTemplateEntry(n+"transformer_1;",64,60,"","Transformer (Iron Core)",null,null,this.getTagsForStencil(C,"transformer_1",k).join(" ")),this.createVertexTemplateEntry(n+"transformer_2;",64,60,"","Transformer (Iron Core)",null,null,this.getTagsForStencil(C,"transformer_2",k).join(" ")),this.createVertexTemplateEntry(n+"half_inductor;",32,23,"","Half Inductor",null,null,this.getTagsForStencil(C,"half inductor",k).join(" ")),this.createVertexTemplateEntry(n+"transformer;direction=north;",64,64,"","Transformer",null,null,this.getTagsForStencil(C,"transformer",k).join(" ")),this.createVertexTemplateEntry(n+"inductor;",100,42,"","Inductor",null,null,this.getTagsForStencil(C,"inductor",k).join(" ")),this.createVertexTemplateEntry(n+"choke;",100,200,"","Choke",null,null,this.getTagsForStencil(C,"choke",k).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=top;shadow=0;dashed=0;align=center;fillColor=#000000;html=1;verticalAlign=bottom;strokeWidth=1;shape=mxgraph.electrical.inductors.variometer;",150,88,"","Variometer",null,null,this.getTagsForStencil(C,"variometer",k).join(" ")),this.createVertexTemplateEntry(n+"coaxial_choke;",300,50,"","Coaxial Choke",null,null,this.getTagsForStencil(C,"coaxial choke",k).join(" ")),this.createVertexTemplateEntry(n+"transductor;",200,100,"","Transductor",null,null,this.getTagsForStencil(C,"transductor",k).join(" ")),this.createVertexTemplateEntry(n+"saturating_transformer;",200,150,"","Saturating Transformer",null,null,this.getTagsForStencil(C,"saturating_transformer",k).join(" ")),this.createVertexTemplateEntry(n+"potential_transformer_2;",92,40,"","Potential Transformer",null,null,this.getTagsForStencil(C,"potential transformer",k).join(" ")),this.createVertexTemplateEntry(n+"pot_trans_3_windings;",67,96,"","Pot. Trans. 3 Windings",null,null,this.getTagsForStencil(C,"potential transformer 3 three windings",k).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.signal_sources.current_source;",40,60,"","Transformer",null,null,this.getTagsForStencil(C,"",k).join(" ")),this.createVertexTemplateEntry(n+"adjustable_transformer;",46,60,"","Adjustable Transformer",null,null,this.getTagsForStencil(C,"adjustable_transformer",k).join(" ")),this.createVertexTemplateEntry(n+"1_phase_induction_volt_reg;",100,100,"","1-Phase Induction Voltage Regulator",null,null,this.getTagsForStencil(C,"1 phase induction voltage regulator monophase",k).join(" ")),this.createVertexTemplateEntry(n+"triplex_induction_volt_reg;",100,100,"","Triplex Induction Voltage Regulator",null,null,this.getTagsForStencil(C,"triplex induction voltage regulator",k).join(" ")),this.createVertexTemplateEntry(n+"induction_voltage_regulator;",160,210,"","Induction Voltage Regulator",null,null,this.getTagsForStencil(C,"induction voltage regulator",k).join(" ")),this.createVertexTemplateEntry(n+"current_transformer_1;",12,75,"","Current Transformer",null,null,this.getTagsForStencil(C,"current transformer",k).join(" ")),this.createVertexTemplateEntry(n+"current_transformer_2;",125,175,"","Current Transformer",null,null,this.getTagsForStencil(C,"current transformer",k).join(" ")),this.createVertexTemplateEntry(n+"current_transformer_3;",75,10,"","Current Transformer",null,null,this.getTagsForStencil(C,"current transformer",k).join(" ")),this.createVertexTemplateEntry(n+"potential_transformer;",100,50,"","Potential Transformer",null,null,this.getTagsForStencil(C,"potential transformer",k).join(" ")),this.createVertexTemplateEntry(n+"outdoor_metering_device;",100,100,"","Outdoor Metering Device",null,null,this.getTagsForStencil(C,"outdoor metering device",k).join(" ")),this.createVertexTemplateEntry(n+"linear_coupler;",80,20,"","Linear Coupler",null,null,this.getTagsForStencil(C,"linear coupler",k).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalSwitchesRelays"),this.addPaletteFunctions("electricalSwitchesRelays","Electrical / Switches and Relays",!1,[this.createVertexTemplateEntry(a+"2-way_switch;",75,26,"","SPDT",null,null,this.getTagsForStencil(P,"2-way switch",L).join(" ")),this.createVertexTemplateEntry(a+"push_switch_nc;",75,10,"","Pushbutton NC",null,null,this.getTagsForStencil(P,"push switch nc",L).join(" ")),this.createVertexTemplateEntry(a+"push_switch_no;",75,19,"","Pushbutton NO",null,null,this.getTagsForStencil(P,"push switch no",L).join(" ")),this.createVertexTemplateEntry(a+"simple_switch;",75,19,"","SPST",null,null,this.getTagsForStencil(P,"simple switch",L).join(" ")),this.createVertexTemplateEntry(a+"switch_disconnector;",75,19,"","Switch Disconnector",null,null,this.getTagsForStencil(P,"switch disconnector",L).join(" ")),this.createVertexTemplateEntry(a+"fuse;",75,16,"","Fuse",null,null,this.getTagsForStencil(P,"fuse",L).join(" ")),this.createVertexTemplateEntry(a+"liquid_level_actuated;",75,28,"","Liquid Level Actuated",null,null,this.getTagsForStencil(P,"liquid level actuated",L).join(" ")),this.createVertexTemplateEntry(a+"liquid_level_actuated_2;",75,32,"","Liquid Level Actuated",null,null,this.getTagsForStencil(P,"liquid level actuated",L).join(" ")),this.createVertexTemplateEntry(a+"gas_flow_actuated;",75,32,"","Gas Flow Actuated",null,null,this.getTagsForStencil(P,"gas flow actuated",L).join(" ")),this.createVertexTemplateEntry(a+"flow_actuated;",75,31,"","Flow Actuated",null,null,this.getTagsForStencil(P,"flow actuated",L).join(" ")),this.createVertexTemplateEntry(a+"pressure_actuated;",75,31,"","Pressure Actuated",null,null,this.getTagsForStencil(P,"pressure actuated",L).join(" ")),this.createVertexTemplateEntry(a+"temperature_actuated;",75,31,"","Temperature Actuated",null,null,this.getTagsForStencil(P,"temperature actuated",L).join(" ")),this.createVertexTemplateEntry(a+"safety_interlock;",75,37,"","Safety Interlock",null,null,this.getTagsForStencil(P,"safety interlock",L).join(" ")),this.createVertexTemplateEntry(a+"temperature_switch;",75,18,"","Temperature Switch",null,null,this.getTagsForStencil(P,"temperature switch",L).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=top;shadow=0;dashed=0;align=center;html=1;verticalAlign=bottom;strokeWidth=1;shape=mxgraph.electrical.electro-mechanical.thermostat;fontSize=10;",75,7,"tº","Thermostat",null,null,this.getTagsForStencil(P,"thermostat",L).join(" ")),this.createVertexTemplateEntry(a+"limit_switch;",75,16,"","Limit Switch",null,null,this.getTagsForStencil(P,"limit switch",L).join(" ")),this.createVertexTemplateEntry(a+"circuit_breaker;",75,20,"","Circuit Breaker",null,null,this.getTagsForStencil(P,"circuit breaker",L).join(" ")),this.createVertexTemplateEntry(a+"selector_switch_3_position;",75,46,"","Selector Switch (3 positions)",null,null,this.getTagsForStencil(P,"selector_switch",L).join(" ")),this.createVertexTemplateEntry(a+"selector_switch;",75,66,"","Selector Switch (4 positions)",null,null,this.getTagsForStencil(P,"selector_switch",L).join(" ")),this.createVertexTemplateEntry(a+"selector_switch_6_position;",75,106,"","Selector Switch (6 positions)",null,null,this.getTagsForStencil(P,"selector_switch",L).join(" ")),this.createVertexTemplateEntry(a+"shorting_selector;",60,66,"","Shorting Selector",null,null,this.getTagsForStencil(P,"shorting selector",L).join(" ")),this.createVertexTemplateEntry(a+"proximity_limit_switch;",75,55,"","Proximity Limit Switch",null,null,this.getTagsForStencil(P,"proximity limit switch",L).join(" ")),this.createVertexTemplateEntry(a+"inertia_switch;",75,19,"","Inertia Switch",null,null,this.getTagsForStencil(P,"inertia switch",L).join(" ")),this.createVertexTemplateEntry(a+"pushbutton_break;",75,54,"","Pushbutton Break",null,null,this.getTagsForStencil(P,"pushbutton break",L).join(" ")),this.createVertexTemplateEntry(a+"manual_switch;",75,18,"","Manual Switch",null,null,this.getTagsForStencil(P,"manual switch",L).join(" ")),this.createVertexTemplateEntry(a+"make_contact;",75,16,"","Make Contact",null,null,this.getTagsForStencil(P,"make contact",L).join(" ")),this.createVertexTemplateEntry(a+"break_contact;",75,10,"","Break Contact",null,null,this.getTagsForStencil(P,"break contact",L).join(" ")),this.createVertexTemplateEntry(a+"two_way_contact;",75,30,"","Two Way Contact",null,null,this.getTagsForStencil(P,"two way contact",L).join(" ")),this.createVertexTemplateEntry(a+"passing_make_contact;",75,23,"","Passing Make-Contact",null,null,this.getTagsForStencil(P,"passing make contact",L).join(" ")),this.createVertexTemplateEntry(a+"stay_put;",75,7,"","Stay Put",null,null,this.getTagsForStencil(P,"stay put",L).join(" ")),this.createVertexTemplateEntry(a+"dpst;",75,26,"","DPST",null,null,this.getTagsForStencil(P,"dpst",L).join(" ")),this.createVertexTemplateEntry(a+"spring_return;",75,10,"","Spring Return",null,null,this.getTagsForStencil(P,"spring return",L).join(" ")),this.createVertexTemplateEntry(a+"spring_return_2;",75,19,"","Spring Return",null,null,this.getTagsForStencil(P,"spring return",L).join(" ")),this.createVertexTemplateEntry(a+"limit_switch_no;",75,24,"","Limit Switch NO",null,null,this.getTagsForStencil(P,"limit switch no normally open",L).join(" ")),this.createVertexTemplateEntry(a+"limit_switch_nc;",75,13,"","Limit Switch NC",null,null,this.getTagsForStencil(P,"limit switch nc normally closed",L).join(" ")),this.createVertexTemplateEntry(a+"dpdt2;",58,62,"","DPDT",null,null,this.getTagsForStencil(P,"dpdt",L).join(" ")),this.createVertexTemplateEntry(a+"2_position_switch;",75,70,"","2-Position Switch",null,null,this.getTagsForStencil(P,"2 position switch",L).join(" ")),this.createVertexTemplateEntry(a+"3_position_switch;",60,60,"","3-Position Switch",null,null,this.getTagsForStencil(P,"3 position switch",L).join(" ")),this.createVertexTemplateEntry(a+"4_position_switch;",75,70,"","4-Position Switch",null,null,this.getTagsForStencil(P,"4 position switch",L).join(" ")),this.createVertexTemplateEntry(a+"pushbutton_make;",75,53,"","Pushbutton Make",null,null,this.getTagsForStencil(P,"pushbutton make",L).join(" ")),this.createVertexTemplateEntry(a+"pushbutton_2_circuit;",75,73,"","Pushbutton 2-Circuit",null,null,this.getTagsForStencil(P,"pushbutton 2 circuit",L).join(" ")),this.createVertexTemplateEntry(a+"time_delay_make;",75,31,"","Time Delay Make",null,null,this.getTagsForStencil(P,"time delay make",L).join(" ")),this.createVertexTemplateEntry(a+"time_delay_break;",75,32,"","Time Delay Break",null,null,this.getTagsForStencil(P,"time delay break",L).join(" ")),this.createVertexTemplateEntry(a+"time_delay_make_2;",75,36,"","Time Delay Make",null,null,this.getTagsForStencil(P,"time delay make",L).join(" ")),this.createVertexTemplateEntry(a+"time_delay_break_2;",75,30,"","Time Delay Break",null,null,this.getTagsForStencil(P,"time delay break",L).join(" ")),this.createVertexTemplateEntry(a+"isolator;",75,20,"","Isolator",null,null,this.getTagsForStencil(P,"isolator",L).join(" ")),this.createVertexTemplateEntry(a+"changeover_contact;",75,20,"","Changeover Contact",null,null,this.getTagsForStencil(P,"changeover contact",L).join(" ")),this.createVertexTemplateEntry(a+"reed_switch;",75,20,"","Reed Switch",null,null,this.getTagsForStencil(P,"reed switch",L).join(" ")),this.createVertexTemplateEntry(a+"relay_coil;",70,35,"","Relay Coil",null,null,this.getTagsForStencil(P,"relay coil",L).join(" ")),this.createVertexTemplateEntry(a+"relay;",100,50,"","Relay",null,null,this.getTagsForStencil(P,"relay",L).join(" ")),this.createVertexTemplateEntry(a+"relay_contacts;",30,24,"","Relay Contacts",null,null,this.getTagsForStencil(P,"relay contacts",L).join(" ")),this.createVertexTemplateEntry(a+"resonator;",100,50,"","Resonator",null,null,this.getTagsForStencil(P,"resonator",L).join(" ")),this.createVertexTemplateEntry(a+"pilot_light;",100,100,"","Pilot Light",null,null,this.getTagsForStencil(P,"pilot light",L).join(" ")),this.createVertexTemplateEntry(a+"relay_coil_2;",100,70,"","Relay Coil",null,null,this.getTagsForStencil(P,"relay coil",L).join(" ")),this.createVertexTemplateEntry(a+"mercury_switch;",80,80,"","Mercury Switch",null,null,this.getTagsForStencil(P,"mercury switch",L).join(" ")),this.createVertexTemplateEntry(a+"mercury_switch_2;",50,90,"","Mercury Switch",null,null,this.getTagsForStencil(P,"mercury switch",L).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalDiodes"),this.addPaletteFunctions("electricalDiodes","Electrical / Diodes",!1,[this.createVertexTemplateEntry(r+"diode;",100,60,"","PN Diode",null,null,this.getTagsForStencil(A,"diode",I).join(" ")),this.createVertexTemplateEntry(r+"gunn_diode;",100,60,"","Gunn Diode",null,null,this.getTagsForStencil(A,"gunn_diode",I).join(" ")),this.createVertexTemplateEntry(r+"schottky_diode;",100,60,"","Schottky Diode",null,null,this.getTagsForStencil(A,"schottky_diode",I).join(" ")),this.createVertexTemplateEntry(r+"zener_diode_2;",100,60,"","Breakdown",null,null,this.getTagsForStencil(A,"zener_diode_2",I).join(" ")),this.createVertexTemplateEntry(r+"tunnel_diode;",100,60,"","Tunnel Diode 1",null,null,this.getTagsForStencil(A,"tunnel_diode",I).join(" ")),this.createVertexTemplateEntry(r+"tunnel_diode_2;",100,80,"","Tunnel Diode 2",null,null,this.getTagsForStencil(A,"tunnel_diode_2",I).join(" ")),this.createVertexTemplateEntry(r+"field_effect_diode;",100,60,"","Field Effect Diode",null,null,this.getTagsForStencil(A,"field_effect_diode",I).join(" ")),this.createVertexTemplateEntry(r+"varactor_-_varicap;",100,60,"","Varactor - Varicap",null,null,this.getTagsForStencil(A,"varactor_-_varicap",I).join(" ")),this.createVertexTemplateEntry(r+"zener_diode_1;",100,60,"","Zener Diode 1",null,null,this.getTagsForStencil(A,"zener_diode_1",I).join(" ")),this.createVertexTemplateEntry(r+"zener_diode_3;",100,60,"","Zener Diode 2",null,null,this.getTagsForStencil(A,"zener_diode_3",I).join(" ")),this.createVertexTemplateEntry(r+"four_layer_diode;",100,80,"","Four Layer Diode",null,null,this.getTagsForStencil(A,"four_layer_diode",I).join(" ")),this.createVertexTemplateEntry(r+"transorb_1;",100,60,"","Transorb 1",null,null,this.getTagsForStencil(A,"transorb_1",I).join(" ")),this.createVertexTemplateEntry(r+"transorb_2;",100,60,"","Transorb 2",null,null,this.getTagsForStencil(A,"transorb_2",I).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalSources"),this.addPaletteFunctions("electricalSources","Electrical / Sources",!1,[this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=ac;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=dc1;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=dc3;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=none;elSourceType=dependent;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=dc2;elSourceType=dependent;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSourceType=dependent;elSignalType=dc3;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=noise;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=ideal;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=expSquib;",60,60,"","Source",null,null,this.getTagsForStencil(M,"source",D).join(" ")),this.createVertexTemplateEntry(m+"current_source;",40,60,"","Current",null,null,this.getTagsForStencil(M,"current_source",D).join(" ")),this.createVertexTemplateEntry(m+"dc_source_1;",70,75,"","DC",null,null,this.getTagsForStencil(M,"dc_source_1",D).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.monocell_battery;",100,60,"","Accumulator / Monocell Battery",null,null,this.getTagsForStencil(M,"accumulator monocell battery single cell",G).join(" ")),this.createVertexTemplateEntry(i+"batteryStack;",100,60,"","Battery Stack",null,null,this.getTagsForStencil(M,"battery stack",D).join(" ")),this.createVertexTemplateEntry("pointerEvents=1;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=#000000;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.multicell_battery_tapped;",100,70,"","Multicell Battery Tapped",null,null,this.getTagsForStencil(M,"accumulator multicell battery tapped multi multiple cell",G).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=square;",60,60,"","Source, Square",null,null,this.getTagsForStencil(M,"source square",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=triangular;",60,60,"","Source, Triangular",null,null,this.getTagsForStencil(M,"source triangular",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=sawtooth;",60,60,"","Source, Sawtooth",null,null,this.getTagsForStencil(M,"source sawtooth",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=pulse;",60,60,"","Source, Pulse",null,null,this.getTagsForStencil(M,"source pulse",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=invPulse;",60,60,"","Source, Inverse Pulse",null,null,this.getTagsForStencil(M,"source inverse pulse",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=chopSquare;",60,60,"","Source, Chopped Square",null,null,this.getTagsForStencil(M,"source chopped square",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=stepOn;",60,60,"","Source, Step On",null,null,this.getTagsForStencil(M,"source step on",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=stepOff;",60,60,"","Source, Step Off",null,null,this.getTagsForStencil(M,"source step off",D).join(" ")),this.createVertexTemplateEntry(m+"source;aspect=fixed;points=[[0.5,0,0],[1,0.5,0],[0.5,1,0],[0,0.5,0]];elSignalType=dc2;",60,60,"","Source, DC",null,null,this.getTagsForStencil(M,"source dc vertical",D).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalTransistors"),this.addPaletteFunctions("electricalTransistors","Electrical / Transistors",!1,[this.createVertexTemplateEntry(c+"npn_transistor_1;",95,100,"","BJT (NPN)",null,null,this.getTagsForStencil(R,"npn_transistor_1",O).join(" ")),this.createVertexTemplateEntry(c+"npn_transistor_5;",64,100,"","BJT (NPN)",null,null,this.getTagsForStencil(R,"npn_transistor_5",O).join(" ")),this.createVertexTemplateEntry(c+"nigbt;",64,100,"","NIGBT",null,null,this.getTagsForStencil(R,"nigbt",O).join(" ")),this.createVertexTemplateEntry(c+"pnp_transistor_1;",95,100,"","BJT (PNP)",null,null,this.getTagsForStencil(R,"pnp_transistor_1",O).join(" ")),this.createVertexTemplateEntry(c+"pnp_transistor_5;",64,100,"","BJT (PNP)",null,null,this.getTagsForStencil(R,"pnp_transistor_5",O).join(" ")),this.createVertexTemplateEntry(c+"pigbt;",64,100,"","PIGBT",null,null,this.getTagsForStencil(R,"pigbt",O).join(" ")),this.createVertexTemplateEntry(c+"n-channel_jfet_1;",95,100,"","N Channel JFET",null,null,this.getTagsForStencil(R,"n-channel_jfet_1",O).join(" ")),this.createVertexTemplateEntry(c+"p-channel_jfet_1;",95,100,"","P Channel JFET",null,null,this.getTagsForStencil(R,"p-channel_jfet_1",O).join(" ")),this.createVertexTemplateEntry(s+"n-channel_mosfet_1;",95,100,"","MOSFET (N)",null,null,this.getTagsForStencil(R,"n-channel_mosfet_1",O).join(" ")),this.createVertexTemplateEntry(s+"p-channel_mosfet_1;",95,100,"","MOSFET (P)",null,null,this.getTagsForStencil(R,"p-channel_mosfet_1",O).join(" ")),this.createVertexTemplateEntry(s+"mosfet_ic_n;",95,100,"","NMOS",null,null,this.getTagsForStencil(R,"mosfet_ic_n",O).join(" ")),this.createVertexTemplateEntry(s+"mosfet_ic_p;",95,100,"","PMOS",null,null,this.getTagsForStencil(R,"mosfet_ic_p",O).join(" ")),this.createVertexTemplateEntry(s+"mosfet_n_no_bulk;",95,100,"","MOSFET No Bulk (N)",null,null,this.getTagsForStencil(R,"mosfet_n_no_bulk",O).join(" ")),this.createVertexTemplateEntry(s+"mosfet_p_no_bulk;",95,100,"","MOSFET No Bulk (P)",null,null,this.getTagsForStencil(R,"mosfet_p_no_bulk",O).join(" ")),this.createVertexTemplateEntry(s+"dual_gate_mosfet_n;",95,100,"","Dual Gate MOSFET (N)",null,null,this.getTagsForStencil(R,"dual_gate_mosfet_n",O).join(" ")),this.createVertexTemplateEntry(s+"dual_gate_mosfet_p;",95,100,"","Dual Gate MOSFET (P)",null,null,this.getTagsForStencil(R,"dual_gate_mosfet_p",O).join(" ")),this.createVertexTemplateEntry(c+"nmos;pointerEvents=1;",60,100,"","NMOS",null,null,this.getTagsForStencil(R,"nmos",O).join(" ")),this.createVertexTemplateEntry(c+"nmos_bulk;pointerEvents=1;",60,100,"","NMOS with Bulk",null,null,this.getTagsForStencil(R,"nmos bulk",O).join(" ")),this.createVertexTemplateEntry(c+"pmos;pointerEvents=1;",60,100,"","PMOS",null,null,this.getTagsForStencil(R,"pmos",O).join(" ")),this.createVertexTemplateEntry(c+"pmos_bulk;pointerEvents=1;",60,100,"","PMOS with Bulk",null,null,this.getTagsForStencil(R,"pmos bulk",O).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalInstruments"),this.addPaletteFunctions("electricalInstruments","Electrical / Instruments",!1,[this.createVertexTemplateEntry("verticalLabelPosition=middle;shadow=0;dashed=0;align=center;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;aspect=fixed;fontSize=50;",90,90,"A","Ammeter",null,null,this.getTagsForStencil(B,"ampermeter ammeter",N).join(" ")),this.createVertexTemplateEntry(d+"galvanometer;",90,90,"","Galvanometer",null,null,this.getTagsForStencil(B,"galvanometer",N).join(" ")),this.createVertexTemplateEntry(d+"oscilloscope;",90,90,"","Oscilloscope",null,null,this.getTagsForStencil(B,"oscilloscope",N).join(" ")),this.createVertexTemplateEntry(d+"signal_generator;",90,90,"","Signal Generator",null,null,this.getTagsForStencil(B,"signal_generator",N).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=middle;shadow=0;dashed=0;align=center;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;aspect=fixed;fontSize=50;",90,90,"V","Voltmeter",null,null,this.getTagsForStencil(B,"ampermeter ammeter",N).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalMisc"),this.addPaletteFunctions("electricalMisc","Electrical / Misc",!1,[this.createVertexTemplateEntry(g+"aerial_-_antenna_1;",80,100,"","Antenna",null,null,this.getTagsForStencil(W,"aerial_-_antenna_1",z).join(" ")),this.createVertexTemplateEntry(g+"aerial_-_antenna_2;",79,100,"","Antenna",null,null,this.getTagsForStencil(W,"aerial_-_antenna_2",z).join(" ")),this.createVertexTemplateEntry(g+"loop_antenna;",64.8,69.78,"","Loop Antenna",null,null,this.getTagsForStencil(W,"loop_antenna",z).join(" ")),this.createVertexTemplateEntry(i+"loop_antenna",100,100,"","Loop Antenna",null,null,this.getTagsForStencil(M,"loop antenna",G).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=middle;shadow=0;dashed=0;align=center;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;aspect=fixed;fontSize=35;",60,60,"M","Electrical Motor",null,null,this.getTagsForStencil(P,"motor_1",L).join(" ")),this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE+"=mxgraph.electrical.electro-mechanical.motor_2;html=1;shadow=0;dashed=0;align=center;fontSize=30;strokeWidth=1;",100,60,"","Motor Armature",null,null,this.getTagsForStencil(P,"motor_2",L).join(" ")),this.createVertexTemplateEntry(i+"co-ax;",40,60,"","Co-Ax",null,null,this.getTagsForStencil(q,"co-ax",G).join(" ")),this.createVertexTemplateEntry(i+"crystal_1;",100,40,"","Crystal",null,null,this.getTagsForStencil(q,"crystal_1",G).join(" ")),this.createVertexTemplateEntry(i+"fuse_1;",100,20,"","Fuse (IEC)",null,null,this.getTagsForStencil(q,"fuse_1",G).join(" ")),this.createVertexTemplateEntry(i+"fuse_2;",100,20,"","Fuse (IEEE)",null,null,this.getTagsForStencil(q,"fuse_2",G).join(" ")),this.createVertexTemplateEntry(i+"fuse_3;",100,12,"","Fuse (obsolete)",null,null,this.getTagsForStencil(q,"fuse_3",G).join(" ")),this.createVertexTemplateEntry(i+"fuse_4;",100,32,"","Fuse (IEEE)",null,null,this.getTagsForStencil(q,"fuse_4",G).join(" ")),this.createVertexTemplateEntry(i+"light_bulb;",60,50,"","Light Bulb",null,null,this.getTagsForStencil(q,"light_bulb",G).join(" ")),this.createVertexTemplateEntry(i+"illuminating_bulb;",60,50,"","Illuminating Bulb",null,null,this.getTagsForStencil(q,"illuminating_bulb",G).join(" ")),this.createVertexTemplateEntry(i+"light_bulb;",60,50,"","Pilot Light",null,null,this.getTagsForStencil(q,"light_bulb",G).join(" ")),this.createVertexTemplateEntry(i+"neon_lamp_2;",60,50,"","Neon Lamp",null,null,this.getTagsForStencil(q,"neon_lamp_2",G).join(" ")),this.createVertexTemplateEntry(i+"flourescent_lamp",80,30,"","Flourescent Lamp",null,null,this.getTagsForStencil(M,"flourescent lamp",G).join(" ")),this.createVertexTemplateEntry(u+"lamp",50,100,"","Lamp",null,null,this.getTagsForStencil(M,"lamp",X).join(" ")),this.createVertexTemplateEntry(i+"thermocouple;",80,81,"","Thermocouple",null,null,this.getTagsForStencil(q,"thermocouple",G).join(" ")),this.createVertexTemplateEntry(t+"amplifier;",90,100,"","Amplifier",null,null,this.getTagsForStencil(H,"amplifier",J).join(" ")),this.createVertexTemplateEntry(t+"controlled_amplifier;",100,90,"","Controlled Amplifier",null,null,this.getTagsForStencil(H,"controlled_amplifier",J).join(" ")),this.createVertexTemplateEntry(t+"dac;",70,46,"","DAC",null,null,this.getTagsForStencil(H,"dac",J).join(" ")),this.createVertexTemplateEntry("shadow=0;dashed=0;align=center;html=1;strokeWidth=1;shape=mxgraph.electrical.abstract.mux2;",80,120,"Mux","Mux",null,null,this.getTagsForStencil(H,"mux",J).join(" ")),this.createVertexTemplateEntry("shadow=0;dashed=0;align=center;html=1;strokeWidth=1;shape=mxgraph.electrical.abstract.mux2;operation=demux;",80,120,"Demux","Demux",null,null,this.getTagsForStencil(H,"mux",J).join(" ")),this.createVertexTemplateEntry(t+"operational_amp_1;",98,90,"","Operational Amp",null,null,this.getTagsForStencil(H,"operational_amp_1",J).join(" ")),this.createVertexTemplateEntry(t+"operational_amp_2;",98,90,"","Operational Amp",null,null,this.getTagsForStencil(H,"operational_amp_2",J).join(" ")),this.createVertexTemplateEntry(t+"ota_1;",100,90,"","OTA",null,null,this.getTagsForStencil(H,"ota_1",J).join(" ")),this.createVertexTemplateEntry(t+"ota_2;",100,90,"","OTA",null,null,this.getTagsForStencil(H,"ota_2",J).join(" ")),this.createVertexTemplateEntry(t+"ota_3;",100,90,"","OTA",null,null,this.getTagsForStencil(H,"ota_3",J).join(" ")),this.createVertexTemplateEntry(t+"quantizer;",52,46,"","Quantizer",null,null,this.getTagsForStencil(H,"quantizer",J).join(" ")),this.createVertexTemplateEntry(t+"delta;",50,50,"","Delta",null,null,this.getTagsForStencil(H,"delta",J).join(" ")),this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE+"=mxgraph.electrical.abstract.function;html=1;shadow=0;dashed=0;align=center;strokeWidth=1;fontSize=24",50,50,"fn","Function",null,null,this.getTagsForStencil(H,"function",J).join(" ")),this.createVertexTemplateEntry(t+"integrator;",50,50,"","Integrator",null,null,this.getTagsForStencil(H,"integrator",J).join(" ")),this.createVertexTemplateEntry(t+"multiplier;",50,50,"","Multiplier",null,null,this.getTagsForStencil(H,"multiplier",J).join(" ")),this.createVertexTemplateEntry(t+"sum;",50,50,"","Sum",null,null,this.getTagsForStencil(H,"sum",J).join(" ")),this.createVertexTemplateEntry(t+"summation_point;",50,50,"","Summation Point",null,null,this.getTagsForStencil(H,"summation_point",J).join(" ")),this.createVertexTemplateEntry(t+"filter;",52,46,"","Filter",null,null,this.getTagsForStencil(H,"filter",J).join(" ")),this.createVertexTemplateEntry(e+"=mxgraph.electrical.logic_gates.bandpass_filter;",52,46,"","Bandpass Filter",null,null,this.getTagsForStencil("mxgraph.electrical.logic_gates","bandpass_filter","").join(" ")),this.createVertexTemplateEntry(e+"=mxgraph.electrical.logic_gates.highpass_filter;",52,46,"","Highpass Filter",null,null,this.getTagsForStencil("mxgraph.electrical.logic_gates","highpass_filter","").join(" ")),this.createVertexTemplateEntry(e+"=mxgraph.electrical.logic_gates.lowpass_filter;",52,46,"","Lowpass Filter",null,null,this.getTagsForStencil("mxgraph.electrical.logic_gates","lowpass_filter","").join(" ")),this.createVertexTemplateEntry(mxConstants.STYLE_SHAPE+"=mxgraph.electrical.abstract.thermistor_with_independent_integral_heater;html=1;shadow=0;dashed=0;strokeWidth=1;align=center;overflow=fill;fontSize=12;",100,94.25,'<table cellpadding="0" cellspacing="0" style="width:100%;height:100%;"><tr height="45%"><td align="center">\\temp\\</td></tr><tr height="55%"><td></td></tr></table>',"Thermistor With Independent Integral Heater",null,null,this.getTagsForStencil(H,"thermistor_with_independent_integral_heater",J).join(" ")),this.createVertexTemplateEntry(t+"voltage_regulator;",70,58,"","Voltage Regulator",null,null,this.getTagsForStencil(H,"voltage_regulator",J).join(" ")),this.createVertexTemplateEntry(m+"vss2;fontSize=24;flipV=1;",60,40,"V<sub>ss</sub>","Vss",null,null,this.getTagsForStencil(M,"vss",D).join(" ")),this.createVertexTemplateEntry(mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=top;"+mxConstants.STYLE_VERTICAL_ALIGN+"=bottom;"+mxConstants.STYLE_SHAPE+"=mxgraph.electrical.signal_sources.vdd;shadow=0;dashed=0;align=center;strokeWidth=1;fontSize=24;html=1;flipV=1;",60,40,"V<sub>dd</sub>","Vdd",null,null,this.getTagsForStencil(M,"vdd",D).join(" ")),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;align=center;strokeWidth=1;fontSize=10;html=1;",70,10,"5 mA","Current Flow",null,null,this.getTagsForStencil(M,"current_flow",D).join(" ")),this.createVertexTemplateEntry(mxConstants.STYLE_LABEL_POSITION+"=right;"+mxConstants.STYLE_ALIGN+"=left;"+mxConstants.STYLE_SHAPE+"=mxgraph.electrical.signal_sources.voltage;shadow=0;dashed=0;strokeWidth=1;fontSize=10;html=1;",10,70,"1.2 V","Voltage",null,null,this.getTagsForStencil(M,"voltage",D).join(" ")),this.createVertexTemplateEntry(m+"equipotential;",90,90,"","Equipotential",null,null,this.getTagsForStencil(M,"equipotential",D).join(" ")),this.createVertexTemplateEntry(m+"protective_earth;",25,20,"","Equipotential",null,null,this.getTagsForStencil(M,"protective_earth",D).join(" ")),this.createVertexTemplateEntry(m+"signal_ground;",45,30,"","Ground",null,null,this.getTagsForStencil(M,"signal_ground",D).join(" ")),this.createVertexTemplateEntry(i+"chassis;",65,32,"","Chassis",null,null,this.getTagsForStencil(M,"chassis",G).join(" ")),this.createVertexTemplateEntry(i+"circuit_breaker;",100,13,"","Circuit Breaker",null,null,this.getTagsForStencil(M,"circuit breaker",G).join(" ")),this.createVertexTemplateEntry(i+"generic_component",60,60,"","Generic Component",null,null,this.getTagsForStencil(M,"generic component",G).join(" ")),this.createVertexTemplateEntry(i+"permanent_magnet",20,70,"","Permanent Magnet",null,null,this.getTagsForStencil(M,"permanent magnet",G).join(" ")),this.createVertexTemplateEntry(i+"thermal_element",100,32,"","Thermal Element",null,null,this.getTagsForStencil(M,"thermal element",G).join(" ")),this.createVertexTemplateEntry(i+"igniter_plug",72,39,"","Igniter Plug",null,null,this.getTagsForStencil(M,"igniter plug",G).join(" ")),this.createVertexTemplateEntry("shape=mxgraph.arrows2.arrow;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;strokeWidth=1;dy=0;dx=10;notch=0;",100,30,"","Pickup Head",null,null,this.getTagsForStencil(M,"pickup head",G).join(" ")),this.createVertexTemplateEntry(i+"squib_ignitor",100,100,"","Squib Ignitor",null,null,this.getTagsForStencil(M,"squib ignitor",G).join(" ")),this.createVertexTemplateEntry(i+"transducer",70,60,"","Transducer",null,null,this.getTagsForStencil(M,"transducer",G).join(" ")),this.createVertexTemplateEntry(i+"transducer_2",80,100,"","Transducer",null,null,this.getTagsForStencil(M,"transducer",G).join(" ")),this.createVertexTemplateEntry(i+"thermopile",80,82,"","Thermopile",null,null,this.getTagsForStencil(M,"thermopile",G).join(" ")),this.createVertexTemplateEntry(i+"indicator",60,60,"","Indicator",null,null,this.getTagsForStencil(M,"indicator",G).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=strokeColor;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.surge_protector;",70,20,"","Surge Protector",null,null,this.getTagsForStencil(M,"surge protector",G).join(" ")),this.createVertexTemplateEntry(i+"surge_protector_2;",70,24,"","Surge Protector",null,null,this.getTagsForStencil(M,"surge protector",G).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;strokeWidth=1;shape=rect;",130,50,"","Material",null,null,this.getTagsForStencil(M,"material",G).join(" ")),this.createVertexTemplateEntry(i+"sensing_link_squib",130,40,"","Sensing Link Squib",null,null,this.getTagsForStencil(M,"sensing link squib",G).join(" ")),this.createVertexTemplateEntry(i+"delay_element",100,100,"","Delay Element",null,null,this.getTagsForStencil(M,"delay_element",G).join(" ")),this.createVertexTemplateEntry(g+"buzzer",80,50,"","Buzzer",null,null,this.getTagsForStencil(M,"buzzer",z).join(" ")),this.createVertexTemplateEntry(i+"adapter",100,40,"","Adapter",null,null,this.getTagsForStencil(M,"adapter",z).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;strokeWidth=1;shape=ellipse;perimeter=ellipsePerimeter;",15,15,"","Circuit Terminal",null,null,this.getTagsForStencil(M,"circuit terminal",z).join(" ")),this.createEdgeTemplateEntry("endArrow=open;html=1;strokeWidth=1;endFill=0;endSize=20;",100,0,"","M/F Contact",null,this.getTagsForStencil(M,"","mf contact").join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=strokeColor;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.miscellaneous.mf_contact_2",100,10,"","M/F Contact 2",null,null,this.getTagsForStencil(M,"mf contact",z).join(" ")),this.createVertexTemplateEntry(i+"terminal_board",75,150,"","Terminal Board",null,null,this.getTagsForStencil(M,"terminal board",z).join(" ")),this.createVertexTemplateEntry(i+"cable_termination",100,50,"","Cable Termination",null,null,this.getTagsForStencil(M,"cable termination",z).join(" ")),this.createVertexTemplateEntry(i+"2_conductor_jack",100,50,"","2-Conductor Jack",null,null,this.getTagsForStencil(M,"2 conductor jack two",z).join(" ")),this.createVertexTemplateEntry(i+"3_conductor_jack",100,50,"","3-Conductor Jack",null,null,this.getTagsForStencil(M,"3 conductor jack three",z).join(" ")),this.createVertexTemplateEntry(i+"2_conductor_plug",53,24,"","2-Conductor Plug",null,null,this.getTagsForStencil(M,"2 conductor plug two",z).join(" ")),this.createVertexTemplateEntry(i+"3_conductor_plug",53,24,"","3 Conductor Plug",null,null,this.getTagsForStencil(M,"3 conductor plug",z).join(" ")),this.createVertexTemplateEntry(i+"normalled_jacks",230,65,"","Normalled Jacks",null,null,this.getTagsForStencil(M,"normalled jacks",z).join(" ")),this.createVertexTemplateEntry(i+"normalled_jack",110,65,"","Normalled Jack",null,null,this.getTagsForStencil(M,"normalled jack",z).join(" ")),this.createVertexTemplateEntry(i+"coaxial_outside_conductor",300,150,"","Coaxial Outside Conductor",null,null,this.getTagsForStencil(M,"coaxial outside conductor",z).join(" ")),this.createVertexTemplateEntry(i+"coaxial_center_conductor",300,150,"","Coaxial Center Conductor",null,null,this.getTagsForStencil(M,"coaxial center conductor",z).join(" ")),this.createVertexTemplateEntry(i+"large_d_connector",375,75,"","Large D Connector",null,null,this.getTagsForStencil(M,"large d connector",z).join(" ")),this.createVertexTemplateEntry(i+"small_d_connector",150,75,"","Small D Connector",null,null,this.getTagsForStencil(M,"small d connector",z).join(" ")),this.createVertexTemplateEntry(i+"c_header_connector",200,75,"","C Header Connector",null,null,this.getTagsForStencil(M,"c header connector",z).join(" ")),this.createVertexTemplateEntry(i+"ac_out",200,100,"","AC Out",null,null,this.getTagsForStencil(M,"ac out alternate current",z).join(" ")),this.createVertexTemplateEntry(i+"shielded_jack_plug",50,100,"","Shielded Jack/Plug",null,null,this.getTagsForStencil(M,"shielded jack plug",z).join(" ")),this.createVertexTemplateEntry(i+"coaxial_jack_plug",50,100,"","Coaxial Jack/Plug",null,null,this.getTagsForStencil(M,"coaxial jack/plug",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_2_conductor_1",100,100,"","F/M 2 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_2_conductor_2",100,100,"","F/M 2 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_2_conductor_3",100,50,"","F/M 2 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_3_conductor_1",100,100,"","F/M 3 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_3_conductor_2",100,100,"","F/M 3 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_3_conductor_3",100,100,"","F/M 3 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_3_conductor_4",100,100,"","F/M 3 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"f_m_3_conductor_5",100,100,"","F/M 3 Conductor",null,null,this.getTagsForStencil(M,"fm 2 conductor",z).join(" ")),this.createVertexTemplateEntry(i+"plug_socket_connection",20,20,"","Plug-Socket Connection",null,null,this.getTagsForStencil(M,"Plug Socket Connection",z).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalAudio"),this.addPaletteFunctions("electricalAudio","Electrical / Audio",!1,[this.createVertexTemplateEntry(g+"dipole;pointerEvents=1;",100,40,"","Dipole",null,null,this.getTagsForStencil(W,"dipole",z).join(" ")),this.createVertexTemplateEntry(g+"electret_microphone;",70,70,"","Electret Microphone",null,null,this.getTagsForStencil(W,"electret_microphone",z).join(" ")),this.createVertexTemplateEntry(g+"microphone_1;",70,70,"","Microphone",null,null,this.getTagsForStencil(W,"microphone_1",z).join(" ")),this.createVertexTemplateEntry(g+"microphone_2;",42,70,"","Microphone",null,null,this.getTagsForStencil(W,"microphone_2",z).join(" ")),this.createVertexTemplateEntry(a+"piezo_sounder;pointerEvents=1;",100,40,"","Piezo Sounder",null,null,this.getTagsForStencil(P,"piezo_sounder",L).join(" ")),this.createVertexTemplateEntry(a+"buzzer;",45,60,"","Buzzer",null,null,this.getTagsForStencil(P,"buzzer",L).join(" ")),this.createVertexTemplateEntry(a+"loudspeaker;",25,50,"","Loudspeaker",null,null,this.getTagsForStencil(P,"loudspeaker",L).join(" ")),this.createVertexTemplateEntry(g+"headphones;pointerEvents=1;",66,56,"","Headphones",null,null,this.getTagsForStencil(W,"headphones",z).join(" ")),this.createVertexTemplateEntry(a+"bell;",47,60,"","Bell",null,null,this.getTagsForStencil(P,"bell",L).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalPlcLadder"),this.addPaletteFunctions("electricalPlcLadder","Electrical / PLC Ladder",!1,[this.createVertexTemplateEntry(h+"contact;",50,25,"","Contact",null,null,this.getTagsForStencil(Y,"contact",U).join(" ")),this.createVertexTemplateEntry(h+"not_contact;",50,25,"","Contact (N)",null,null,this.getTagsForStencil(Y,"not_contact",U).join(" ")),this.createVertexTemplateEntry(h+"not_output_1;",50,25,"","Output (N)",null,null,this.getTagsForStencil(Y,"not_output_1;",U).join(" ")),this.createVertexTemplateEntry(h+"not_output_2;",50,25,"","Output (N)",null,null,this.getTagsForStencil(Y,"not_output_2",U).join(" ")),this.createVertexTemplateEntry(h+"output_1;",50,25,"","Output",null,null,this.getTagsForStencil(Y,"output_1",U).join(" ")),this.createVertexTemplateEntry(h+"output_2;",50,25,"","Output",null,null,this.getTagsForStencil(Y,"output_2",U).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalOptical"),this.addPaletteFunctions("electricalOptical","Electrical / Optical",!1,[this.createVertexTemplateEntry(u+"7_segment_display;pointerEvents=1;",74.7,96.1,"","7 Segment Display",null,null,this.getTagsForStencil(K,"7_segment_display",X).join(" ")),this.createVertexTemplateEntry(u+"7_segment_display_with_dp;pointerEvents=1;",79.8,96.9,"","7 Segment Display with DP",null,null,this.getTagsForStencil(K,"7_segment_display_with_dp",X).join(" ")),this.createVertexTemplateEntry(u+"9_segment_display;pointerEvents=1;",74.7,96.1,"","9 Segment Display",null,null,this.getTagsForStencil(K,"9_segment_display",X).join(" ")),this.createVertexTemplateEntry(u+"9_segment_display_with_dp;pointerEvents=1;",79.8,96.9,"","9 Segment Display with DP",null,null,this.getTagsForStencil(K,"9_segment_display_with_dp",X).join(" ")),this.createVertexTemplateEntry(u+"led_1;pointerEvents=1;",100,65,"","LED",null,null,this.getTagsForStencil(K,"led_1",X).join(" ")),this.createVertexTemplateEntry(u+"led_2;pointerEvents=1;",100,70,"","LED",null,null,this.getTagsForStencil(K,"led_2",X).join(" ")),this.createVertexTemplateEntry(u+"light-activated_scr;pointerEvents=1;",100,70,"","Light Activated SCR",null,null,this.getTagsForStencil(K,"light-activated_scr",X).join(" ")),this.createVertexTemplateEntry(u+"opto-coupler;",99,60,"","Opto-coupler",null,null,this.getTagsForStencil(K,"opto-coupler",X).join(" ")),this.createVertexTemplateEntry(u+"opto-transistor;",100,110,"","Opto-transistor",null,null,this.getTagsForStencil(K,"opto-transistor",X).join(" ")),this.createVertexTemplateEntry(u+"photodiode;pointerEvents=1;",100,70,"","Photodiode",null,null,this.getTagsForStencil(K,"photodiode",X).join(" ")),this.createVertexTemplateEntry(u+"photo_resistor_1;",100,90,"","Photo Resistor",null,null,this.getTagsForStencil(K,"photo_resistor_1",X).join(" ")),this.createVertexTemplateEntry(u+"photo_resistor_2;pointerEvents=1;",100,50,"","Photo Resistor",null,null,this.getTagsForStencil(K,"photo_resistor_2",X).join(" ")),this.createVertexTemplateEntry(u+"photo_resistor_3;",100,90,"","Photo Resistor",null,null,this.getTagsForStencil(K,"photo_resistor_3",X).join(" ")),this.createVertexTemplateEntry(u+"solar_cell;pointerEvents=1;",100,70,"","Solar Cell",null,null,this.getTagsForStencil(K,"solar_cell",X).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalVacuumTubes"),this.addPaletteFunctions("electricalVacuumTubes","Electrical / Vacuum Tubes",!1,[this.createVertexTemplateEntry(T+"diode;",70,77,"","Diode",null,null,this.getTagsForStencil(Q,"diode",Z).join(" ")),this.createVertexTemplateEntry(T+"double_diode;",70,77,"","Double Diode",null,null,this.getTagsForStencil(Q,"double_diode",Z).join(" ")),this.createVertexTemplateEntry(T+"triode;",70,77,"","Triode",null,null,this.getTagsForStencil(Q,"triode",Z).join(" ")),this.createVertexTemplateEntry(T+"double_triode;",70,77,"","Double Triode",null,null,this.getTagsForStencil(Q,"double_triode",Z).join(" ")),this.createVertexTemplateEntry(T+"tetrode;",70,77,"","Tetrode",null,null,this.getTagsForStencil(Q,"tetrode",Z).join(" ")),this.createVertexTemplateEntry(T+"pentode;",70,77,"","Pentode",null,null,this.getTagsForStencil(Q,"pentode",Z).join(" ")),this.createVertexTemplateEntry(T+"photocell;",70,87,"","Photocell",null,null,this.getTagsForStencil(Q,"photocell",Z).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalWaveforms"),this.addPaletteFunctions("electricalWaveforms","Electrical / Waveforms",!1,[this.createVertexTemplateEntry(_+"pulse_1;",90,90,"","Pulse",null,null,this.getTagsForStencil($,"pulse_1",ee).join(" ")),this.createVertexTemplateEntry(_+"pulse_2;",90,90,"","Pulse",null,null,this.getTagsForStencil($,"pulse_2",ee).join(" ")),this.createVertexTemplateEntry(_+"sawtooth;",90,40,"","Sawtooth",null,null,this.getTagsForStencil($,"sawtooth",ee).join(" ")),this.createVertexTemplateEntry(_+"sine_wave;",90,66.18,"","Sine Wave",null,null,this.getTagsForStencil($,"sine_wave",ee).join(" ")),this.createVertexTemplateEntry(_+"slow_square_wave;",90,80,"","Chopped Square Wave",null,null,this.getTagsForStencil($,"slow_square_wave",ee).join(" ")),this.createVertexTemplateEntry(_+"square_wave;",90,80,"","square_wave",null,null,this.getTagsForStencil($,"square_wave",ee).join(" ")),this.createVertexTemplateEntry(_+"step_1;",90,90,"","Step",null,null,this.getTagsForStencil($,"step_1",ee).join(" ")),this.createVertexTemplateEntry(_+"step_2;",90,90,"","Step",null,null,this.getTagsForStencil($,"step_2",ee).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalRotMech"),this.addPaletteFunctions("electricalRotMech","Electrical / Rotating Equipment & Mechanical Functions",!1,[this.createVertexTemplateEntry("verticalLabelPosition=middle;shadow=0;dashed=0;align=center;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;fontSize=32;perimeter=ellipsePerimeter;",100,100,"M","Rotating Machine",null,null,this.getTagsForStencil(te,"rotating machine",le).join(" ")),this.createVertexTemplateEntry(y+"armature;pointerEvents=1;",100,100,"","Armature",null,null,this.getTagsForStencil(te,"armature",le).join(" ")),this.createVertexTemplateEntry(y+"field;pointerEvents=1;",90,15,"","Field",null,null,this.getTagsForStencil(te,"field",le).join(" ")),this.createVertexTemplateEntry(i+"permanent_magnet;pointerEvents=1;",20,70,"","Permanent Magnet",null,null,this.getTagsForStencil(te,"permanent magnet",le).join(" ")),this.createVertexTemplateEntry(y+"winding_connection;",100,100,"","Winding Connection",null,null,this.getTagsForStencil(te,"winding connection",le).join(" ")),this.createVertexTemplateEntry(y+"synchro;",80,100,"","Synchro",null,null,this.getTagsForStencil(te,"synchro",le).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;strokeWidth=1;shape=trapezoid;perimeter=none;",75,25,"","Brake",null,null,this.getTagsForStencil(te,"brake",le).join(" ")),this.createVertexTemplateEntry(y+"gearing;pointerEvents=1;",100,64,"","Gearing",null,null,this.getTagsForStencil(te,"gearing",le).join(" ")),this.createVertexTemplateEntry(y+"verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;fillColor=strokeColor;html=1;verticalAlign=top;strokeWidth=1;shape=mxgraph.electrical.rot_mech.rotation;",69,54,"","Rotation",null,null,this.getTagsForStencil(te,"rotation",le).join(" ")),this.createVertexTemplateEntry(y+"clutch;pointerEvents=1;",100,20,"","Clutch",null,null,this.getTagsForStencil(te,"clutch",le).join(" ")),this.createVertexTemplateEntry(y+"clutch_2;pointerEvents=1;",90,60,"","Clutch",null,null,this.getTagsForStencil(te,"clutch",le).join(" ")),this.createVertexTemplateEntry(y+"delayed_action;pointerEvents=1;",72,50,"","Delayed Action",null,null,this.getTagsForStencil(te,"delayed action",le).join(" ")),this.createVertexTemplateEntry(y+"manual_control;pointerEvents=1;",50,50,"","Manual Control",null,null,this.getTagsForStencil(te,"manual control",le).join(" ")),this.createVertexTemplateEntry(y+"blocking_device;pointerEvents=1;",100,15,"","Blocking Device",null,null,this.getTagsForStencil(te,"blocking device",le).join(" ")),this.createVertexTemplateEntry(y+"latching_device;pointerEvents=1;",100,22,"","Latching Device",null,null,this.getTagsForStencil(te,"latching device",le).join(" ")),this.createVertexTemplateEntry(y+"mechanical_interlock;pointerEvents=1;",100,30,"","Mechanical Interlock",null,null,this.getTagsForStencil(te,"mechanical interlock",le).join(" ")),this.createVertexTemplateEntry(y+"automatic_return;pointerEvents=1;",100,12,"","Automatic Return",null,null,this.getTagsForStencil(te,"automatic_return",le).join(" ")),this.createVertexTemplateEntry(y+"detent;pointerEvents=1;",100,8,"","Detent",null,null,this.getTagsForStencil(te,"detent",le).join(" "))]),this.setCurrentSearchEntryLibrary("electrical","electricalTransmission");var ie=[this.createVertexTemplateEntry(E+"bus_width;pointerEvents=1;",130,156,"","Bus Width",null,null,this.getTagsForStencil(re,"bus width",ne).join(" ")),this.createVertexTemplateEntry(E+"line_concentrator;",130,130,"","Line Concentrator",null,null,this.getTagsForStencil(re,"line concentrator",ne).join(" ")),this.createVertexTemplateEntry(E+"cable_group;pointerEvents=1;",130,130,"","Cable Group",null,null,this.getTagsForStencil(re,"cable group",ne).join(" ")),this.createVertexTemplateEntry(E+"overground_enclosure;",130,136,"","Overground Enclosure",null,null,this.getTagsForStencil(re,"overground enclosure",ne).join(" ")),this.createVertexTemplateEntry(E+"optical_fiber;",130,80,"","Optical Fiber",null,null,this.getTagsForStencil(re,"optical fiber",ne).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;strokeWidth=1;shape=ellipse;",10,10,"","Terminal",null,null,this.getTagsForStencil(re,"terminal",ne).join(" ")),this.createVertexTemplateEntry(E+"terminal_3_phase;pointerEvents=1;",43,10,"","Terminal 3 Phase",null,null,this.getTagsForStencil(re,"Terminal 3 Phase",ne).join(" ")),this.createVertexTemplateEntry("verticalLabelPosition=middle;shadow=0;dashed=0;align=center;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;fontSize=50;fontStyle=1;perimeter=ellipsePerimeter;",130,130,"T","Terminal",null,null,this.getTagsForStencil(re,"terminal",ne).join(" ")),this.createVertexTemplateEntry(E+"line_cable;",130,60,"","Line/Cable",null,null,this.getTagsForStencil(re,"line cable",ne).join(" ")),this.createVertexTemplateEntry(E+"anticreepage_device;pointerEvents=1;",130,88,"","Anticreepage Device",null,null,this.getTagsForStencil(re,"anticreepage device",ne).join(" ")),this.createVertexTemplateEntry(E+"testPoint;",60,130,"","Test Point",null,null,this.getTagsForStencil(re,"test point",ne).join(" ")),this.createEdgeTemplateEntry("endArrow=none;html=1;strokeWidth=1;",100,0,"","Transmission Path",null,this.getTagsForStencil(M,"","transmission path").join(" ")),this.createEdgeTemplateEntry("endArrow=classicThin;html=1;strokeWidth=1;endSize=20;",100,0,"","Direction of Flow",null,this.getTagsForStencil(M,"","direction flow").join(" ")),this.createVertexTemplateEntry(E+"straightBus;",90,130,"","Straight Bus",null,null,this.getTagsForStencil(re,"straight bus",ne).join(" ")),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;strokeWidth=1",130,130,"","Elbow Bus",null,null,this.getTagsForStencil(re,"elbow bus",ne).join(" ")),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;strokeWidth=1;flipH=1;",130,130,"","Elbow Bus",null,null,this.getTagsForStencil(re,"elbow bus",ne).join(" ")),this.createVertexTemplateEntry(E+"2_line_bus;",130,25,"","2-Line Bus",null,null,this.getTagsForStencil(re,"2 two line bus",ne).join(" ")),this.createVertexTemplateEntry(E+"3_line_bus;",130,30,"","3-Line Bus",null,null,this.getTagsForStencil(re,"3 three line bus",ne).join(" ")),this.createVertexTemplateEntry(E+"4_line_bus;",130,75,"","4-Line Bus",null,null,this.getTagsForStencil(re,"3 three line bus",ne).join(" ")),this.createVertexTemplateEntry(E+"8_line_bus;",130,180,"","8-Line Bus",null,null,this.getTagsForStencil(re,"3 three line bus",ne).join(" ")),this.createVertexTemplateEntry(E+"twoLineBusElbow;notch=25;",120,120,"","2-Line Bus Elbow",null,null,this.getTagsForStencil(re,"2 two line bus elbow",ne).join(" ")),this.createVertexTemplateEntry(E+"threeLineBusElbow;notch=30;",120,120,"","3-Line Bus Elbow",null,null,this.getTagsForStencil(re,"3 two line bus elbow",ne).join(" ")),this.createVertexTemplateEntry(E+"fourLineBusElbow;notch=75;",120,120,"","4-Line Bus Elbow",null,null,this.getTagsForStencil(re,"4 two line bus elbow",ne).join(" ")),this.createVertexTemplateEntry(E+"eightLineBusElbow;notch=180;",200,200,"","8-Line Bus Elbow",null,null,this.getTagsForStencil(re,"8 two line bus elbow",ne).join(" "))];this.addPalette("electricalTransmission","Electrical / Transmission Paths",!1,mxUtils.bind(this,(function(e){for(var t=0;t<ie.length;t++)e.appendChild(ie[t](e))}))),this.setCurrentSearchEntryLibrary()};