← Commit history
viewers/footprint.html+1−1@@ -26,7 +26,7 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} <div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-4.800 -4.000 9.600 8.000' style='width:100%;height:100%'><line class='ly-silk' x1='-1.850' y1='-3.410' x2='1.910' y2='-3.410' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-1.850' y1='3.410' x2='1.910' y2='3.410' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='1.910' y1='-3.410' x2='1.910' y2='-2.150' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='1.910' y1='3.410' x2='1.910' y2='2.150' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-4.400' y1='-3.600' x2='-4.400' y2='3.600' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-4.400' y1='3.600' x2='4.400' y2='3.600' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='4.400' y1='-3.600' x2='-4.400' y2='-3.600' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='4.400' y1='3.600' x2='4.400' y2='-3.600' stroke='#4ade80' stroke-width='0.050'/><line class='ly-fab' x1='-1.850' y1='-2.350' x2='-1.850' y2='3.350' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-1.850' y1='-2.350' x2='-0.850' y2='-3.350' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-1.850' y1='3.350' x2='1.850' y2='3.350' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='-0.850' y1='-3.350' x2='1.850' y2='-3.350' stroke='#f472b6' stroke-width='0.100'/><line class='ly-fab' x1='1.850' y1='-3.350' x2='1.850' y2='3.350' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='GND' x='-4.150' y='-3.050' width='2.000' height='1.500' rx='0.375' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-3.150' y='-2.300' font-size='0.900' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>1</text><rect class='ly-copper pad' data-num='2' data-name='VOUT' x='-4.150' y='-0.750' width='2.000' height='1.500' rx='0.375' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-3.150' y='0.000' font-size='0.900' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='2' data-name='VOUT' x='2.150' y='-1.900' width='2.000' height='3.800' rx='0.500' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='3.150' y='0.000' font-size='1.100' transform='rotate(-90 3.150 0.000)' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>2</text><rect class='ly-copper pad' data-num='3' data-name='VIN' x='-4.150' y='1.550' width='2.000' height='1.500' rx='0.375' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-3.150' y='2.300' font-size='0.900' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text></svg></div> <div id=tip></div> <script>-var KIND="footprint", MPN="RAY/SSP1117-1-2V", PINS=[{"desc":"","name":"GND","number":"1","type":""},{"desc":"","name":"VOUT","number":"2","type":""},{"desc":"","name":"TAB/VOUT","number":"4","type":""},{"desc":"","name":"VIN","number":"3","type":""}];+var KIND="footprint", MPN="RAY/SSP1117-1-2V", PINS=[{"desc":"","name":"GND","number":"1","type":""},{"desc":"","name":"VOUT","number":"2","type":""},{"desc":"","name":"VIN","number":"3","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 ----
viewers/symbol.html+2−2@@ -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 -200 1500 400' style='width:100%;height:100%'><rect x='-500.0' y='-150.0' width='1000.0' height='300.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='GND'><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'>1</text><text x='-470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>GND</text><g class='pingroup' data-num='2' data-name='VOUT'><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'>2</text><text x='-470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>VOUT</text><g class='pingroup' data-num='4' data-name='TAB/VOUT'><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'>4</text><text x='470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>TAB/VOUT</text><g class='pingroup' data-num='3' data-name='VIN'><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'>3</text><text x='470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>VIN</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -200 1500 400' style='width:100%;height:100%'><rect x='-500.0' y='-150.0' width='1000.0' height='300.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='GND'><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'>1</text><text x='-470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>GND</text><g class='pingroup' data-num='2' data-name='VOUT'><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'>2</text><text x='-470.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>VOUT</text><g class='pingroup' data-num='3' data-name='VIN'><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'>3</text><text x='470.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>VIN</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="RAY/SSP1117-1-2V", PINS=[{"desc":"","name":"GND","number":"1","type":""},{"desc":"","name":"VOUT","number":"2","type":""},{"desc":"","name":"TAB/VOUT","number":"4","type":""},{"desc":"","name":"VIN","number":"3","type":""}];+var KIND="symbol", MPN="RAY/SSP1117-1-2V", PINS=[{"desc":"","name":"GND","number":"1","type":""},{"desc":"","name":"VOUT","number":"2","type":""},{"desc":"","name":"VIN","number":"3","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 ----