maxGraph/javascript/examples/grapheditor/www/stencils/electrical/opto-electronics.xml

1015 lines
17 KiB
XML

<shapes name="mxGraph.electrical.opto_electronics">
<shape name="7 Segment Display" h="96.1" w="74.7" aspect="variable" strokewidth="inherit">
<foreground>
<path>
<move x="20.2" y="7"/>
<line x="28.5" y="0"/>
<line x="59.3" y="0"/>
<line x="65.6" y="6.9"/>
<line x="57.2" y="14"/>
<line x="26.6" y="14"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="68.3" y="9.6"/>
<line x="74.7" y="16.4"/>
<line x="71.8" y="38.2"/>
<line x="63.3" y="45.4"/>
<line x="56.8" y="38.5"/>
<line x="59.8" y="16.5"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="62.6" y="50.8"/>
<line x="69.2" y="57.7"/>
<line x="66.2" y="79.6"/>
<line x="57.7" y="86.6"/>
<line x="51.3" y="79.7"/>
<line x="54.2" y="57.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="48.2" y="82.2"/>
<line x="54.6" y="89.2"/>
<line x="46.4" y="96.1"/>
<line x="15.4" y="96.1"/>
<line x="9" y="89.3"/>
<line x="17.4" y="82.2"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="17.7" y="57.7"/>
<line x="14.8" y="79.6"/>
<line x="6.4" y="86.6"/>
<line x="0" y="79.8"/>
<line x="3" y="57.8"/>
<line x="11.4" y="50.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="60.1" y="47.9"/>
<line x="51.8" y="54.9"/>
<line x="20.8" y="54.9"/>
<line x="14.5" y="47.9"/>
<line x="23.1" y="40.9"/>
<line x="54" y="40.9"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="23.4" y="16.4"/>
<line x="20.4" y="38.4"/>
<line x="12" y="45.4"/>
<line x="5.6" y="38.6"/>
<line x="8.6" y="16.4"/>
<line x="17" y="9.6"/>
<close/>
</path>
<fillstroke/>
</foreground>
</shape>
<shape name="7 Segment Display with DP" h="96.9" w="79.8" aspect="variable" strokewidth="inherit">
<foreground>
<path>
<move x="20.2" y="7"/>
<line x="28.5" y="0"/>
<line x="59.3" y="0"/>
<line x="65.6" y="6.9"/>
<line x="57.2" y="14"/>
<line x="26.6" y="14"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="68.3" y="9.6"/>
<line x="74.7" y="16.4"/>
<line x="71.8" y="38.2"/>
<line x="63.3" y="45.4"/>
<line x="56.8" y="38.5"/>
<line x="59.8" y="16.5"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="62.6" y="50.8"/>
<line x="69.2" y="57.7"/>
<line x="66.2" y="79.6"/>
<line x="57.7" y="86.6"/>
<line x="51.3" y="79.7"/>
<line x="54.2" y="57.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="48.2" y="82.2"/>
<line x="54.6" y="89.2"/>
<line x="46.4" y="96.1"/>
<line x="15.4" y="96.1"/>
<line x="9" y="89.3"/>
<line x="17.4" y="82.2"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="17.7" y="57.7"/>
<line x="14.8" y="79.6"/>
<line x="6.4" y="86.6"/>
<line x="0" y="79.8"/>
<line x="3" y="57.8"/>
<line x="11.4" y="50.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="60.1" y="47.9"/>
<line x="51.8" y="54.9"/>
<line x="20.8" y="54.9"/>
<line x="14.5" y="47.9"/>
<line x="23.1" y="40.9"/>
<line x="54" y="40.9"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="23.4" y="16.4"/>
<line x="20.4" y="38.4"/>
<line x="12" y="45.4"/>
<line x="5.6" y="38.6"/>
<line x="8.6" y="16.4"/>
<line x="17" y="9.6"/>
<close/>
</path>
<fillstroke/>
<ellipse x="67.8" y="84.9" w="12" h="12"/>
<fillstroke/>
</foreground>
</shape>
<shape name="9 Segment Display" h="96.1" w="74.7" aspect="variable" strokewidth="inherit">
<foreground>
<path>
<move x="20.2" y="7"/>
<line x="28.5" y="0"/>
<line x="59.3" y="0"/>
<line x="65.6" y="6.9"/>
<line x="57.2" y="14"/>
<line x="26.6" y="14"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="68.3" y="9.6"/>
<line x="74.7" y="16.4"/>
<line x="71.8" y="38.2"/>
<line x="63.3" y="45.4"/>
<line x="56.8" y="38.5"/>
<line x="59.8" y="16.5"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="62.6" y="50.8"/>
<line x="69.2" y="57.7"/>
<line x="66.2" y="79.6"/>
<line x="57.7" y="86.6"/>
<line x="51.3" y="79.7"/>
<line x="54.2" y="57.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="48.2" y="82.2"/>
<line x="54.6" y="89.2"/>
<line x="46.4" y="96.1"/>
<line x="15.4" y="96.1"/>
<line x="9" y="89.3"/>
<line x="17.4" y="82.2"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="17.7" y="57.7"/>
<line x="14.8" y="79.6"/>
<line x="6.4" y="86.6"/>
<line x="0" y="79.8"/>
<line x="3" y="57.8"/>
<line x="11.4" y="50.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="60.1" y="47.9"/>
<line x="51.8" y="54.9"/>
<line x="20.8" y="54.9"/>
<line x="14.5" y="47.9"/>
<line x="23.1" y="40.9"/>
<line x="54" y="40.9"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="23.4" y="16.4"/>
<line x="20.4" y="38.4"/>
<line x="12" y="45.4"/>
<line x="5.6" y="38.6"/>
<line x="8.6" y="16.4"/>
<line x="17" y="9.6"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="49.1" y="17"/>
<line x="56.8" y="17"/>
<line x="55.2" y="28.2"/>
<line x="49.6" y="38"/>
<line x="40.8" y="38"/>
<line x="42.3" y="28.6"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="18.4" y="69.7"/>
<line x="25.6" y="57.5"/>
<line x="34.6" y="57.5"/>
<line x="33.6" y="65.2"/>
<line x="25.4" y="79.9"/>
<line x="17.1" y="79.9"/>
<close/>
</path>
<fillstroke/>
</foreground>
</shape>
<shape name="9 Segment Display with DP" h="96.9" w="79.8" aspect="variable" strokewidth="inherit">
<foreground>
<path>
<move x="20.2" y="7"/>
<line x="28.5" y="0"/>
<line x="59.3" y="0"/>
<line x="65.6" y="6.9"/>
<line x="57.2" y="14"/>
<line x="26.6" y="14"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="68.3" y="9.6"/>
<line x="74.7" y="16.4"/>
<line x="71.8" y="38.2"/>
<line x="63.3" y="45.4"/>
<line x="56.8" y="38.5"/>
<line x="59.8" y="16.5"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="62.6" y="50.8"/>
<line x="69.2" y="57.7"/>
<line x="66.2" y="79.6"/>
<line x="57.7" y="86.6"/>
<line x="51.3" y="79.7"/>
<line x="54.2" y="57.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="48.2" y="82.2"/>
<line x="54.6" y="89.2"/>
<line x="46.4" y="96.1"/>
<line x="15.4" y="96.1"/>
<line x="9" y="89.3"/>
<line x="17.4" y="82.2"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="17.7" y="57.7"/>
<line x="14.8" y="79.6"/>
<line x="6.4" y="86.6"/>
<line x="0" y="79.8"/>
<line x="3" y="57.8"/>
<line x="11.4" y="50.8"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="60.1" y="47.9"/>
<line x="51.8" y="54.9"/>
<line x="20.8" y="54.9"/>
<line x="14.5" y="47.9"/>
<line x="23.1" y="40.9"/>
<line x="54" y="40.9"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="23.4" y="16.4"/>
<line x="20.4" y="38.4"/>
<line x="12" y="45.4"/>
<line x="5.6" y="38.6"/>
<line x="8.6" y="16.4"/>
<line x="17" y="9.6"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="49.1" y="17"/>
<line x="56.8" y="17"/>
<line x="55.2" y="28.2"/>
<line x="49.6" y="38"/>
<line x="40.8" y="38"/>
<line x="42.3" y="28.6"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="18.4" y="69.7"/>
<line x="25.6" y="57.5"/>
<line x="34.6" y="57.5"/>
<line x="33.6" y="65.2"/>
<line x="25.4" y="79.9"/>
<line x="17.1" y="79.9"/>
<close/>
</path>
<fillstroke/>
<ellipse x="67.8" y="84.9" w="12" h="12"/>
<fillstroke/>
</foreground>
</shape>
<shape name="LED 1" h="65" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.54" perimeter="0" name="in"/>
<constraint x="1" y="0.54" perimeter="0" name="out"/>
</connections>
<background>
<path>
<move x="30" y="5"/>
<line x="70" y="35"/>
<line x="30" y="65"/>
<close/>
</path>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="35"/>
<line x="30" y="35"/>
</path>
<stroke/>
<path>
<move x="70" y="5"/>
<line x="70" y="65"/>
</path>
<stroke/>
<path>
<move x="80" y="7"/>
<line x="87" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="87" y="3"/>
<line x="87" y="0"/>
<line x="84" y="0"/>
</path>
<stroke/>
<restore/>
<path>
<move x="70" y="35"/>
<line x="100" y="35"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="LED 2" h="70" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.57" perimeter="0" name="in"/>
<constraint x="1" y="0.57" perimeter="0" name="out"/>
</connections>
<background>
<path>
<move x="30" y="10"/>
<line x="70" y="40"/>
<line x="30" y="70"/>
<close/>
</path>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="40"/>
<line x="30" y="40"/>
</path>
<stroke/>
<path>
<move x="70" y="10"/>
<line x="70" y="70"/>
</path>
<stroke/>
<path>
<move x="80" y="12"/>
<line x="87" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="87" y="8"/>
<line x="87" y="5"/>
<line x="84" y="5"/>
</path>
<stroke/>
<restore/>
<path>
<move x="75" y="7"/>
<line x="82" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="82" y="3"/>
<line x="82" y="0"/>
<line x="79" y="0"/>
</path>
<stroke/>
<restore/>
<path>
<move x="70" y="40"/>
<line x="100" y="40"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Light-activated SCR" h="70" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.57" perimeter="0" name="in"/>
<constraint x="1" y="0.57" perimeter="0" name="out"/>
</connections>
<background>
<path>
<move x="30" y="10"/>
<line x="70" y="40"/>
<line x="30" y="70"/>
<close/>
</path>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="40"/>
<line x="30" y="40"/>
</path>
<stroke/>
<path>
<move x="70" y="10"/>
<line x="70" y="70"/>
</path>
<stroke/>
<path>
<move x="80" y="12"/>
<line x="87" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="80" y="9"/>
<line x="80" y="12"/>
<line x="84" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="75" y="7"/>
<line x="82" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="75" y="4"/>
<line x="75" y="7"/>
<line x="78" y="7"/>
</path>
<stroke/>
<restore/>
<path>
<move x="70" y="40"/>
<line x="100" y="40"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Opto-coupler" h="60" w="99" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0.195" y="0" perimeter="0" name="in1"/>
<constraint x="0.8" y="0" perimeter="0" name="in2"/>
<constraint x="0.195" y="1" perimeter="0" name="out1"/>
<constraint x="0.8" y="1" perimeter="0" name="out2"/>
</connections>
<background>
<rect x="0" y="0" w="99" h="60"/>
<fillstroke/>
</background>
<foreground>
<path>
<move x="19.5" y="0"/>
<line x="19.5" y="60"/>
</path>
<stroke/>
<path>
<move x="10.5" y="25"/>
<line x="19.5" y="34.5"/>
<line x="28.5" y="25"/>
<close/>
</path>
<fillstroke/>
<path>
<move x="39.5" y="35"/>
<line x="49.5" y="35"/>
</path>
<stroke/>
<save/>
<miterlimit limit="2"/>
<path>
<move x="76.5" y="46"/>
<line x="79.5" y="50"/>
<line x="74.5" y="49.4"/>
<close/>
</path>
<fillstroke/>
<fillcolor color="none"/>
<miterlimit limit="4"/>
<path>
<move x="46.5" y="33"/>
<line x="49.5" y="35"/>
<line x="46.5" y="37"/>
</path>
<stroke/>
<restore/>
<path>
<move x="39.5" y="25"/>
<line x="49.5" y="25"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="46.5" y="23"/>
<line x="49.5" y="25"/>
<line x="46.5" y="27"/>
</path>
<stroke/>
<restore/>
<path>
<move x="9.5" y="35"/>
<line x="29.5" y="35"/>
</path>
<stroke/>
<path>
<move x="59.5" y="12"/>
<line x="59.5" y="48"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="59.5" y="22"/>
<line x="79.5" y="10"/>
<line x="79.5" y="0"/>
</path>
<stroke/>
<restore/>
<path>
<move x="75.5" y="47.7"/>
<line x="59.5" y="38"/>
</path>
<stroke/>
<path>
<move x="79.5" y="50"/>
<line x="79.5" y="60"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Opto-transistor" h="90" w="90" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.5" perimeter="0" name="in"/>
<constraint x="0.815" y="0.11" perimeter="0" name="Vout1"/>
<constraint x="0.815" y="0.89" perimeter="0" name="Vout2"/>
</connections>
<background>
<ellipse x="0" y="0" w="90" h="90"/>
<fillstroke/>
</background>
<foreground>
<save/>
<strokewidth width="2"/>
<path>
<move x="20" y="15"/>
<line x="20" y="75"/>
</path>
<stroke/>
<restore/>
<strokewidth width="1"/>
<path>
<move x="20" y="45"/>
<line x="73" y="10"/>
</path>
<stroke/>
<path>
<move x="20" y="45"/>
<line x="73" y="80"/>
</path>
<stroke/>
<path>
<move x="0" y="45"/>
<line x="20" y="45"/>
</path>
<stroke/>
<path>
<move x="5" y="0"/>
<line x="12" y="7"/>
</path>
<stroke/>
<path>
<move x="0" y="5"/>
<line x="7" y="12"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="12" y="4"/>
<line x="12" y="7"/>
<line x="9" y="7"/>
</path>
<stroke/>
<path>
<move x="7" y="9"/>
<line x="7" y="12"/>
<line x="4" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="24.5" y="51"/>
<line x="21" y="45"/>
<line x="27.5" y="46.5"/>
<close/>
</path>
<fillstroke/>
</foreground>
</shape>
<shape name="Photodiode" h="70" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.57" perimeter="0" name="in"/>
<constraint x="1" y="0.57" perimeter="0" name="out"/>
</connections>
<background>
<path>
<move x="30" y="10"/>
<line x="70" y="40"/>
<line x="30" y="70"/>
<close/>
</path>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="40"/>
<line x="30" y="40"/>
</path>
<stroke/>
<path>
<move x="70" y="10"/>
<line x="70" y="70"/>
</path>
<stroke/>
<path>
<move x="80" y="12"/>
<line x="87" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="80" y="9"/>
<line x="80" y="12"/>
<line x="83" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="75" y="7"/>
<line x="82" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="75" y="4"/>
<line x="75" y="7"/>
<line x="78" y="7"/>
</path>
<stroke/>
<restore/>
<path>
<move x="70" y="40"/>
<line x="100" y="40"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Photo Resistor 1" h="90" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.5" perimeter="0" name="in"/>
<constraint x="1" y="0.5" perimeter="0" name="out"/>
</connections>
<background>
<ellipse x="5" y="0" w="90" h="90"/>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="45"/>
<line x="18" y="45"/>
</path>
<stroke/>
<path>
<move x="82" y="45"/>
<line x="100" y="45"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<rect x="18" y="35" w="64" h="20"/>
<stroke/>
<restore/>
<path>
<move x="85" y="12"/>
<line x="92" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="85" y="9"/>
<line x="85" y="12"/>
<line x="88" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="80" y="7"/>
<line x="87" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="80" y="4"/>
<line x="80" y="7"/>
<line x="82" y="7"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Photo Resistor 2" h="50" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.8" perimeter="0" name="in"/>
<constraint x="1" y="0.8" perimeter="0" name="out"/>
</connections>
<background>
<rect x="18" y="30" w="64" h="20"/>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="40"/>
<line x="18" y="40"/>
</path>
<stroke/>
<path>
<move x="82" y="40"/>
<line x="100" y="40"/>
</path>
<stroke/>
<path>
<move x="80" y="12"/>
<line x="87" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="80" y="9"/>
<line x="80" y="12"/>
<line x="83" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="75" y="7"/>
<line x="82" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="75" y="4"/>
<line x="75" y="7"/>
<line x="78" y="7"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Photo Resistor 3" h="90" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.5" perimeter="0" name="in"/>
<constraint x="1" y="0.5" perimeter="0" name="out"/>
</connections>
<background>
<ellipse x="5" y="0" w="90" h="90"/>
<fillstroke/>
</background>
<foreground>
<path>
<move x="85" y="12"/>
<line x="92" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="85" y="9"/>
<line x="85" y="12"/>
<line x="88" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="80" y="7"/>
<line x="87" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="80" y="4"/>
<line x="80" y="7"/>
<line x="82" y="7"/>
</path>
<stroke/>
<path>
<move x="0" y="45"/>
<line x="18" y="45"/>
<line x="22" y="35"/>
<line x="30" y="55"/>
<line x="38" y="35"/>
<line x="46" y="55"/>
<line x="54" y="35"/>
<line x="62" y="55"/>
<line x="70" y="35"/>
<line x="78" y="55"/>
<line x="82" y="45"/>
<line x="100" y="45"/>
</path>
<stroke/>
</foreground>
</shape>
<shape name="Solar Cell" h="70" w="100" aspect="variable" strokewidth="inherit">
<connections>
<constraint x="0" y="0.57" perimeter="0" name="in"/>
<constraint x="1" y="0.57" perimeter="0" name="out"/>
</connections>
<background>
<rect x="41" y="25" w="4" h="30"/>
<fillstroke/>
</background>
<foreground>
<path>
<move x="0" y="40"/>
<line x="41" y="40"/>
</path>
<stroke/>
<path>
<move x="55" y="10"/>
<line x="55" y="70"/>
</path>
<stroke/>
<path>
<move x="55" y="40"/>
<line x="100" y="40"/>
</path>
<stroke/>
<path>
<move x="80" y="12"/>
<line x="87" y="5"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="80" y="9"/>
<line x="80" y="12"/>
<line x="83" y="12"/>
</path>
<stroke/>
<restore/>
<path>
<move x="75" y="7"/>
<line x="82" y="0"/>
</path>
<stroke/>
<save/>
<fillcolor color="none"/>
<path>
<move x="75" y="4"/>
<line x="75" y="7"/>
<line x="78" y="7"/>
</path>
<stroke/>
</foreground>
</shape>
</shapes>