← Commit history

bl8506-27nrm: viewers

Ray ·974931e0c0 ·2mo ago ·parent b78d7ed
2 files changed +4−4
viewers/footprint.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>PCB footprint</span><span class=sp></span><button class="lyrtog on" data-lyr="copper"><span class="d" style="background:#e35d5d"></span>Copper</button><button class="lyrtog on" data-lyr="silk"><span class="d" style="background:#e6edf3"></span>Silkscreen</button><button class="lyrtog" data-lyr="fab"><span class="d" style="background:#8b949e"></span>Fab</button><button class="lyrtog" data-lyr="courtyard"><span class="d" style="background:#bc8cff"></span>Courtyard</button></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-2.330 -2.100 4.660 4.200' style='width:100%;height:100%'><line class='ly-silk' x1='-0.760' y1='-1.560' x2='0.760' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.760' y1='-1.510' x2='-0.760' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.760' y1='0.390' x2='-0.760' y2='-0.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.760' y1='1.560' x2='-0.760' y2='1.510' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.760' y1='-1.560' x2='0.760' y2='-0.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.760' y1='0.560' x2='0.760' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.760' y1='1.560' x2='-0.760' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-1.930' y1='-1.500' x2='-0.900' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.930' y1='-0.390' x2='-1.930' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.930' y1='0.390' x2='-0.900' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.930' y1='1.500' x2='-1.930' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='-1.700' x2='0.900' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='-1.500' x2='-0.900' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='-0.390' x2='-1.930' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='0.390' x2='-0.900' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='1.500' x2='-1.930' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='1.700' x2='-0.900' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='-1.700' x2='0.900' y2='-0.550' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='-0.550' x2='1.930' y2='-0.550' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='0.550' x2='0.900' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='1.700' x2='-0.900' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.930' y1='-0.550' x2='1.930' y2='0.550' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.930' y1='0.550' x2='0.900' y2='0.550' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='1' data-name='VOUT' x='-1.675' y='-1.250' width='1.475' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.938' y='-0.950' font-size='0.360' 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='VSS' x='-1.675' y='0.650' width='1.475' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.938' y='0.950' font-size='0.360' 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='VDD' x='0.200' y='-0.300' width='1.475' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='0.938' y='0.000' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>3</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-2.330 -2.100 4.660 4.200' style='width:100%;height:100%'><line class='ly-silk' x1='-0.760' y1='-1.560' x2='0.760' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.760' y1='-1.510' x2='-0.760' y2='-1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.760' y1='0.390' x2='-0.760' y2='-0.390' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-0.760' y1='1.560' x2='-0.760' y2='1.510' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.760' y1='-1.560' x2='0.760' y2='-0.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.760' y1='0.560' x2='0.760' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='0.760' y1='1.560' x2='-0.760' y2='1.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-1.930' y1='-1.500' x2='-0.900' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.930' y1='-0.390' x2='-1.930' y2='-1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.930' y1='0.390' x2='-0.900' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-1.930' y1='1.500' x2='-1.930' y2='0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='-1.700' x2='0.900' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='-1.500' x2='-0.900' y2='-1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='-0.390' x2='-1.930' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='0.390' x2='-0.900' y2='-0.390' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='1.500' x2='-1.930' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-0.900' y1='1.700' x2='-0.900' y2='1.500' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='-1.700' x2='0.900' y2='-0.550' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='-0.550' x2='1.930' y2='-0.550' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='0.550' x2='0.900' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='0.900' y1='1.700' x2='-0.900' y2='1.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.930' y1='-0.550' x2='1.930' y2='0.550' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='1.930' y1='0.550' x2='0.900' y2='0.550' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='1' data-name='VOUT' x='-1.675' y='-1.250' width='1.475' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.938' y='-0.950' font-size='0.360' 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='VDD' x='-1.675' y='0.650' width='1.475' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-0.938' y='0.950' font-size='0.360' 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='VSS' x='0.200' y='-0.300' width='1.475' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='0.938' y='0.000' font-size='0.360' 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/BL8506-27NRM", PINS=[{"desc":"","name":"VOUT","number":"1","type":""},{"desc":"","name":"VSS","number":"2","type":""},{"desc":"","name":"VDD","number":"3","type":""}];+var KIND="footprint", MPN="RAY/BL8506-27NRM", PINS=[{"desc":"","name":"VOUT","number":"1","type":""},{"desc":"","name":"VDD","number":"2","type":""},{"desc":"","name":"VSS","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='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='-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'>VOUT</text><g class='pingroup' data-num='2' data-name='VSS'><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'>VSS</text><g class='pingroup' data-num='3' data-name='VDD'><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'>VDD</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='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='-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'>VOUT</text><g class='pingroup' data-num='2' data-name='VDD'><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'>VDD</text><g class='pingroup' data-num='3' data-name='VSS'><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'>VSS</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="RAY/BL8506-27NRM", PINS=[{"desc":"","name":"VOUT","number":"1","type":""},{"desc":"","name":"VSS","number":"2","type":""},{"desc":"","name":"VDD","number":"3","type":""}];+var KIND="symbol", MPN="RAY/BL8506-27NRM", PINS=[{"desc":"","name":"VOUT","number":"1","type":""},{"desc":"","name":"VDD","number":"2","type":""},{"desc":"","name":"VSS","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 ----