← Commit history
2-54mm-15p-zz: symbol repaired (connector Conn_01x15)
3 files changed
+83−73
2-54mm-15p-zz.kicad_sym+39−39@@ -1,72 +1,72 @@ (kicad_symbol_lib (version 20211014) (generator ds2sf_rect) (symbol "2.54mm-15P ZZ" (in_bom yes) (on_board yes)- (property "Reference" "U" (at 0 12.70 0) (effects (font (size 1.27 1.27))))- (property "Value" "2.54mm-15P ZZ" (at 0 -15.24 0) (effects (font (size 1.27 1.27))))+ (property "Reference" "J" (at 0 22.86 0) (effects (font (size 1.27 1.27))))+ (property "Value" "2.54mm-15P ZZ" (at 0 -22.86 0) (effects (font (size 1.27 1.27)))) (property "Footprint" "" (at 0 0 0) (effects (font (size 1.27 1.27)) hide)) (symbol "2.54mm-15P ZZ_0_1"- (rectangle (start -12.70 10.16) (end 12.70 -12.70)+ (rectangle (start -2.54 20.32) (end 2.54 -20.32) (stroke (width 0.254) (type default)) (fill (type background))) ) (symbol "2.54mm-15P ZZ_1_1"- (pin passive line (at -17.78 7.62 0) (length 5.08)- (name "1" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 17.78 0) (length 5.08)+ (name "1" (effects (font (size 1.27 1.27)) hide)) (number "1" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 5.08 0) (length 5.08)- (name "2" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 15.24 0) (length 5.08)+ (name "2" (effects (font (size 1.27 1.27)) hide)) (number "2" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 2.54 0) (length 5.08)- (name "3" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 12.70 0) (length 5.08)+ (name "3" (effects (font (size 1.27 1.27)) hide)) (number "3" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 0.00 0) (length 5.08)- (name "4" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 10.16 0) (length 5.08)+ (name "4" (effects (font (size 1.27 1.27)) hide)) (number "4" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 -2.54 0) (length 5.08)- (name "5" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 7.62 0) (length 5.08)+ (name "5" (effects (font (size 1.27 1.27)) hide)) (number "5" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 -5.08 0) (length 5.08)- (name "6" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 5.08 0) (length 5.08)+ (name "6" (effects (font (size 1.27 1.27)) hide)) (number "6" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 -7.62 0) (length 5.08)- (name "7" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 2.54 0) (length 5.08)+ (name "7" (effects (font (size 1.27 1.27)) hide)) (number "7" (effects (font (size 1.27 1.27)))) )- (pin passive line (at -17.78 -10.16 0) (length 5.08)- (name "8" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 0.00 0) (length 5.08)+ (name "8" (effects (font (size 1.27 1.27)) hide)) (number "8" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 7.62 180) (length 5.08)- (name "15" (effects (font (size 1.27 1.27))))- (number "15" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -2.54 0) (length 5.08)+ (name "9" (effects (font (size 1.27 1.27)) hide))+ (number "9" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 5.08 180) (length 5.08)- (name "14" (effects (font (size 1.27 1.27))))- (number "14" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -5.08 0) (length 5.08)+ (name "10" (effects (font (size 1.27 1.27)) hide))+ (number "10" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 2.54 180) (length 5.08)- (name "13" (effects (font (size 1.27 1.27))))- (number "13" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -7.62 0) (length 5.08)+ (name "11" (effects (font (size 1.27 1.27)) hide))+ (number "11" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 0.00 180) (length 5.08)- (name "12" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -10.16 0) (length 5.08)+ (name "12" (effects (font (size 1.27 1.27)) hide)) (number "12" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 -2.54 180) (length 5.08)- (name "11" (effects (font (size 1.27 1.27))))- (number "11" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -12.70 0) (length 5.08)+ (name "13" (effects (font (size 1.27 1.27)) hide))+ (number "13" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 -5.08 180) (length 5.08)- (name "10" (effects (font (size 1.27 1.27))))- (number "10" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -15.24 0) (length 5.08)+ (name "14" (effects (font (size 1.27 1.27)) hide))+ (number "14" (effects (font (size 1.27 1.27)))) )- (pin passive line (at 17.78 -7.62 180) (length 5.08)- (name "9" (effects (font (size 1.27 1.27))))- (number "9" (effects (font (size 1.27 1.27))))+ (pin passive line (at -7.62 -17.78 0) (length 5.08)+ (name "15" (effects (font (size 1.27 1.27)) hide))+ (number "15" (effects (font (size 1.27 1.27)))) ) ) )
2-54mm-15p-zz.lbr+40−31@@ -50,7 +50,7 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description></description>+<description>SHOU HAN Wire To Board Connector, 插件,P=2.5mm. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention</description> <packages> <package name="JST_XH_B15B-XH-A_1x15_P2.50mm_Vertical"> <description>JST, 2.50 mm pitch. JST XH series connector, B15B-XH-A</description>@@ -105,32 +105,33 @@ </packages> <symbols> <symbol name="2.54mm-15P ZZ">- <wire x1="-12.7" y1="10.16" x2="12.7" y2="10.16" width="0.254" layer="94"/>- <wire x1="12.7" y1="10.16" x2="12.7" y2="-12.7" width="0.254" layer="94"/>- <wire x1="12.7" y1="-12.7" x2="-12.7" y2="-12.7" width="0.254" layer="94"/>- <wire x1="-12.7" y1="-12.7" x2="-12.7" y2="10.16" width="0.254" layer="94"/>- <text x="0.0000" y="12.7000" size="1.27" layer="95" align="center">>NAME</text>- <text x="0.0000" y="-15.2400" size="1.27" layer="96" align="center">>VALUE</text>- <pin name="1" x="-17.78" y="7.62" length="middle" direction="pas"/>- <pin name="2" x="-17.78" y="5.08" length="middle" direction="pas"/>- <pin name="3" x="-17.78" y="2.54" length="middle" direction="pas"/>- <pin name="4" x="-17.78" y="0" length="middle" direction="pas"/>- <pin name="5" x="-17.78" y="-2.54" length="middle" direction="pas"/>- <pin name="6" x="-17.78" y="-5.08" length="middle" direction="pas"/>- <pin name="7" x="-17.78" y="-7.62" length="middle" direction="pas"/>- <pin name="8" x="-17.78" y="-10.16" length="middle" direction="pas"/>- <pin name="15" x="17.78" y="7.62" length="middle" direction="pas" rot="R180"/>- <pin name="14" x="17.78" y="5.08" length="middle" direction="pas" rot="R180"/>- <pin name="13" x="17.78" y="2.54" length="middle" direction="pas" rot="R180"/>- <pin name="12" x="17.78" y="0" length="middle" direction="pas" rot="R180"/>- <pin name="11" x="17.78" y="-2.54" length="middle" direction="pas" rot="R180"/>- <pin name="10" x="17.78" y="-5.08" length="middle" direction="pas" rot="R180"/>- <pin name="9" x="17.78" y="-7.62" length="middle" direction="pas" rot="R180"/>+ <description>SHOU HAN Wire To Board Connector, 插件,P=2.5mm. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention</description>+ <wire x1="-2.54" y1="20.32" x2="2.54" y2="20.32" width="0.254" layer="94"/>+ <wire x1="2.54" y1="20.32" x2="2.54" y2="-20.32" width="0.254" layer="94"/>+ <wire x1="2.54" y1="-20.32" x2="-2.54" y2="-20.32" width="0.254" layer="94"/>+ <wire x1="-2.54" y1="-20.32" x2="-2.54" y2="20.32" width="0.254" layer="94"/>+ <text x="0.0000" y="22.8600" size="1.27" layer="95" align="center">>NAME</text>+ <text x="0.0000" y="-22.8600" size="1.27" layer="96" align="center">>VALUE</text>+ <pin name="1" x="-7.62" y="17.78" length="middle" direction="pas"/>+ <pin name="2" x="-7.62" y="15.24" length="middle" direction="pas"/>+ <pin name="3" x="-7.62" y="12.7" length="middle" direction="pas"/>+ <pin name="4" x="-7.62" y="10.16" length="middle" direction="pas"/>+ <pin name="5" x="-7.62" y="7.62" length="middle" direction="pas"/>+ <pin name="6" x="-7.62" y="5.08" length="middle" direction="pas"/>+ <pin name="7" x="-7.62" y="2.54" length="middle" direction="pas"/>+ <pin name="8" x="-7.62" y="0" length="middle" direction="pas"/>+ <pin name="9" x="-7.62" y="-2.54" length="middle" direction="pas"/>+ <pin name="10" x="-7.62" y="-5.08" length="middle" direction="pas"/>+ <pin name="11" x="-7.62" y="-7.62" length="middle" direction="pas"/>+ <pin name="12" x="-7.62" y="-10.16" length="middle" direction="pas"/>+ <pin name="13" x="-7.62" y="-12.7" length="middle" direction="pas"/>+ <pin name="14" x="-7.62" y="-15.24" length="middle" direction="pas"/>+ <pin name="15" x="-7.62" y="-17.78" length="middle" direction="pas"/> </symbol> </symbols> <devicesets>-<deviceset name="2.54mm-15P ZZ" prefix="U">- <description></description>+<deviceset name="2.54mm-15P ZZ" prefix="J">+ <description>SHOU HAN Wire To Board Connector, 插件,P=2.5mm. Unpolarised two-terminal part: the datasheet prints no pin numbers, so pins 1 and 2 follow the library convention</description> <gates> <gate name="G$1" symbol="2.54mm-15P ZZ" x="0" y="0"/> </gates>@@ -145,15 +146,23 @@ <connect gate="G$1" pin="6" pad="6"/> <connect gate="G$1" pin="7" pad="7"/> <connect gate="G$1" pin="8" pad="8"/>- <connect gate="G$1" pin="15" pad="15"/>- <connect gate="G$1" pin="14" pad="14"/>- <connect gate="G$1" pin="13" pad="13"/>- <connect gate="G$1" pin="12" pad="12"/>- <connect gate="G$1" pin="11" pad="11"/>- <connect gate="G$1" pin="10" pad="10"/> <connect gate="G$1" pin="9" pad="9"/>+ <connect gate="G$1" pin="10" pad="10"/>+ <connect gate="G$1" pin="11" pad="11"/>+ <connect gate="G$1" pin="12" pad="12"/>+ <connect gate="G$1" pin="13" pad="13"/>+ <connect gate="G$1" pin="14" pad="14"/>+ <connect gate="G$1" pin="15" pad="15"/> </connects>- <technologies><technology name=""/></technologies>+ <technologies>+ <technology name="">+ <attribute name="MPN" value="2.54mm-15P ZZ" constant="no"/>+ <attribute name="MANUFACTURER" value="SHOU HAN" constant="no"/>+ <attribute name="DATASHEET" value="https://jlcpcb.com/api/file/downloadByFileSystemAccessId/8562339699709796352" constant="no"/>+ <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/2-54mm-15p-zz" constant="no"/>+ <attribute name="LCSC_PN" value="C5368787" constant="no"/>+ </technology>+ </technologies> </device> </devices> </deviceset>
viewers/symbol.html+4−3@@ -23,10 +23,10 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} #tip .td{font-size:11px;color:var(--ink);margin-top:5px;line-height:1.4} </style></head><body> <div class=bar><span class=h>Schematic symbol</span><span class=sp></span></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -500 1500 1000' style='width:100%;height:100%'><rect x='-500.0' y='-450.0' width='1000.0' height='900.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='1'><line class='pinvis' x1='-700.0' y1='-350.0' x2='-500.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-350.0' x2='-500.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-305.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='-350.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1</text><g class='pingroup' data-num='2' data-name='2'><line class='pinvis' x1='-700.0' y1='-250.0' x2='-500.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-250.0' x2='-500.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-205.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-470.0' y='-250.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>2</text><g class='pingroup' data-num='3' data-name='3'><line class='pinvis' x1='-700.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-150.0' x2='-500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-470.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>3</text><g class='pingroup' data-num='4' data-name='4'><line class='pinvis' x1='-700.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-50.0' x2='-500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='-5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>4</text><g class='pingroup' data-num='5' data-name='5'><line class='pinvis' x1='-700.0' y1='50.0' x2='-500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='50.0' x2='-500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>5</text><g class='pingroup' data-num='6' data-name='6'><line class='pinvis' x1='-700.0' y1='150.0' x2='-500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='150.0' x2='-500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-470.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>6</text><g class='pingroup' data-num='7' data-name='7'><line class='pinvis' x1='-700.0' y1='250.0' x2='-500.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='250.0' x2='-500.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='295.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='-470.0' y='250.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>7</text><g class='pingroup' data-num='8' data-name='8'><line class='pinvis' x1='-700.0' y1='350.0' x2='-500.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='350.0' x2='-500.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='395.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-470.0' y='350.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>8</text><g class='pingroup' data-num='15' data-name='15'><line class='pinvis' x1='700.0' y1='-350.0' x2='500.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-350.0' x2='500.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-395.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>15</text><text x='470.0' y='-350.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>15</text><g class='pingroup' data-num='14' data-name='14'><line class='pinvis' x1='700.0' y1='-250.0' x2='500.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-250.0' x2='500.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-295.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>14</text><text x='470.0' y='-250.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>14</text><g class='pingroup' data-num='13' data-name='13'><line class='pinvis' x1='700.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-150.0' x2='500.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>13</text><text x='470.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>13</text><g class='pingroup' data-num='12' data-name='12'><line class='pinvis' x1='700.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-50.0' x2='500.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>12</text><text x='470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>12</text><g class='pingroup' data-num='11' data-name='11'><line class='pinvis' x1='700.0' y1='50.0' x2='500.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='50.0' x2='500.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>11</text><text x='470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>11</text><g class='pingroup' data-num='10' data-name='10'><line class='pinvis' x1='700.0' y1='150.0' x2='500.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='150.0' x2='500.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>10</text><text x='470.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>10</text><g class='pingroup' data-num='9' data-name='9'><line class='pinvis' x1='700.0' y1='250.0' x2='500.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='250.0' x2='500.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='205.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>9</text><text x='470.0' y='250.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>9</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-250 -850 500 1700' style='width:100%;height:100%'><rect x='0.0' y='-800.0' width='200.0' height='1600.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='1'><line class='pinvis' x1='-200.0' y1='-700.0' x2='0.0' y2='-700.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-700.0' x2='0.0' y2='-700.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-655.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='30.0' y='-700.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1</text><g class='pingroup' data-num='2' data-name='2'><line class='pinvis' x1='-200.0' y1='-600.0' x2='0.0' y2='-600.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-600.0' x2='0.0' y2='-600.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-555.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='30.0' y='-600.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>2</text><g class='pingroup' data-num='3' data-name='3'><line class='pinvis' x1='-200.0' y1='-500.0' x2='0.0' y2='-500.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-500.0' x2='0.0' y2='-500.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-455.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='30.0' y='-500.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>3</text><g class='pingroup' data-num='4' data-name='4'><line class='pinvis' x1='-200.0' y1='-400.0' x2='0.0' y2='-400.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-400.0' x2='0.0' y2='-400.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-355.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='30.0' y='-400.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>4</text><g class='pingroup' data-num='5' data-name='5'><line class='pinvis' x1='-200.0' y1='-300.0' x2='0.0' y2='-300.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-300.0' x2='0.0' y2='-300.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-255.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='30.0' y='-300.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>5</text><g class='pingroup' data-num='6' data-name='6'><line class='pinvis' x1='-200.0' y1='-200.0' x2='0.0' y2='-200.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-200.0' x2='0.0' y2='-200.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-155.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='30.0' y='-200.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>6</text><g class='pingroup' data-num='7' data-name='7'><line class='pinvis' x1='-200.0' y1='-100.0' x2='0.0' y2='-100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-100.0' x2='0.0' y2='-100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='-55.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='30.0' y='-100.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>7</text><g class='pingroup' data-num='8' data-name='8'><line class='pinvis' x1='-200.0' y1='-0.0' x2='0.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='-0.0' x2='0.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='30.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>8</text><g class='pingroup' data-num='9' data-name='9'><line class='pinvis' x1='-200.0' y1='100.0' x2='0.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='100.0' x2='0.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='145.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>9</text><text x='30.0' y='100.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>9</text><g class='pingroup' data-num='10' data-name='10'><line class='pinvis' x1='-200.0' y1='200.0' x2='0.0' y2='200.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='200.0' x2='0.0' y2='200.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='245.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>10</text><text x='30.0' y='200.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>10</text><g class='pingroup' data-num='11' data-name='11'><line class='pinvis' x1='-200.0' y1='300.0' x2='0.0' y2='300.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='300.0' x2='0.0' y2='300.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='345.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>11</text><text x='30.0' y='300.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>11</text><g class='pingroup' data-num='12' data-name='12'><line class='pinvis' x1='-200.0' y1='400.0' x2='0.0' y2='400.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='400.0' x2='0.0' y2='400.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='445.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>12</text><text x='30.0' y='400.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>12</text><g class='pingroup' data-num='13' data-name='13'><line class='pinvis' x1='-200.0' y1='500.0' x2='0.0' y2='500.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='500.0' x2='0.0' y2='500.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='545.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>13</text><text x='30.0' y='500.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>13</text><g class='pingroup' data-num='14' data-name='14'><line class='pinvis' x1='-200.0' y1='600.0' x2='0.0' y2='600.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='600.0' x2='0.0' y2='600.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='645.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>14</text><text x='30.0' y='600.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>14</text><g class='pingroup' data-num='15' data-name='15'><line class='pinvis' x1='-200.0' y1='700.0' x2='0.0' y2='700.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-200.0' y1='700.0' x2='0.0' y2='700.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-100.0' y='745.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>15</text><text x='30.0' y='700.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>15</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="ADOM/2-54MM-15P-ZZ", PINS=[{"desc":"","name":"1","number":"1","type":""},{"desc":"","name":"2","number":"2","type":""},{"desc":"","name":"3","number":"3","type":""},{"desc":"","name":"4","number":"4","type":""},{"desc":"","name":"5","number":"5","type":""},{"desc":"","name":"6","number":"6","type":""},{"desc":"","name":"7","number":"7","type":""},{"desc":"","name":"8","number":"8","type":""},{"desc":"","name":"15","number":"15","type":""},{"desc":"","name":"14","number":"14","type":""},{"desc":"","name":"13","number":"13","type":""},{"desc":"","name":"12","number":"12","type":""},{"desc":"","name":"11","number":"11","type":""},{"desc":"","name":"10","number":"10","type":""},{"desc":"","name":"9","number":"9","type":""}];+var KIND="symbol", MPN="ADOM/2-54MM-15P-ZZ", PINS=[{"desc":"","name":"1","number":"1","type":""},{"desc":"","name":"2","number":"2","type":""},{"desc":"","name":"3","number":"3","type":""},{"desc":"","name":"4","number":"4","type":""},{"desc":"","name":"5","number":"5","type":""},{"desc":"","name":"6","number":"6","type":""},{"desc":"","name":"7","number":"7","type":""},{"desc":"","name":"8","number":"8","type":""},{"desc":"","name":"9","number":"9","type":""},{"desc":"","name":"10","number":"10","type":""},{"desc":"","name":"11","number":"11","type":""},{"desc":"","name":"12","number":"12","type":""},{"desc":"","name":"13","number":"13","type":""},{"desc":"","name":"14","number":"14","type":""},{"desc":"","name":"15","number":"15","type":""}]; var byNum={}; PINS.forEach(function(p){byNum[String(p.number)]=p;}); var stage=document.getElementById('stage'), svg=stage.querySelector('svg'), tip=document.getElementById('tip'); // ---- pan/zoom ----@@ -44,7 +44,8 @@ function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+' function clearHi(){[].slice.call(document.querySelectorAll('.hi')).forEach(function(e){e.classList.remove('hi');});} function hi(n){els(n).forEach(function(e){e.classList.add('hi');});} function post(n){try{parent.postMessage({type:'lbr-hover',pin:n===null?null:String(n),mpn:MPN},'*');}catch(_){}}-function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';tip.querySelector('.tn').textContent=n+' '+(p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';}+function ovName(el,pre,nm){el.textContent=pre;var r=nm,i;while((i=r.indexOf('~{'))>=0){el.appendChild(document.createTextNode(r.slice(0,i)));var a=r.slice(i+2),j=a.indexOf('}'),s=document.createElement('span');s.style.textDecoration='overline';s.textContent=j<0?a:a.slice(0,j);el.appendChild(s);r=j<0?'':a.slice(j+1);}el.appendChild(document.createTextNode(r));}+function showTip(n,x,y){var p=byNum[String(n)];if(!p)return;tip.innerHTML='<span class=tn></span><div class=tt></div><div class=td></div>';ovName(tip.querySelector('.tn'),n+' ',p.name||'');tip.querySelector('.tt').textContent=p.type||'';var d=p.desc||'';if(d)tip.querySelector('.td').textContent=d;else tip.querySelector('.td').style.display='none';tip.style.display='block';tip.style.left=(x+14)+'px';tip.style.top=(y+12)+'px';} [].slice.call(document.querySelectorAll('.pingroup,.pad')).forEach(function(g){ var n=g.getAttribute('data-num'); g.addEventListener('mouseenter',function(e){clearHi();hi(n);post(n);showTip(n,e.clientX,e.clientY);});