← Commit history

Update 2 file(s)

Ray ·af66b17d9b ·2d ago ·parent b4ae7a2
2 files changed +6−6
viewers/footprint.html+3−3
@@ -1,5 +1,5 @@ <!doctype html><html lang=en><head><meta charset=utf-8>-<meta name=viewport content="width=device-width,initial-scale=1"><title>LM2903 footprint</title>+<meta name=viewport content="width=device-width,initial-scale=1"><title>ADOM/LM2903 footprint</title> <style> :root{--bg:#0d1117;--panel:#161b22;--edge:#30363d;--ink:#e6edf3;--mut:#8b949e;--acc:#00b8b0;--accb:#00e6dc;--hi:#6ea8fe} *{box-sizing:border-box;margin:0}html,body{height:100%}@@ -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='-4.100 -3.100 8.200 6.200' style='width:100%;height:100%'><line class='ly-silk' x1='-2.060' y1='-2.560' x2='2.060' y2='-2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='-2.465' x2='-2.060' y2='-2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='2.560' x2='-2.060' y2='2.465' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='-2.560' x2='2.060' y2='-2.465' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='2.465' x2='2.060' y2='2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='2.560' x2='-2.060' y2='2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-3.700' y1='-2.460' x2='-2.200' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-3.700' y1='2.460' x2='-3.700' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-2.700' x2='2.200' y2='-2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-2.460' x2='-2.200' y2='-2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='2.460' x2='-3.700' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='2.700' x2='-2.200' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-2.700' x2='2.200' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-2.460' x2='3.700' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='2.460' x2='2.200' y2='2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='2.700' x2='-2.200' y2='2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='-2.460' x2='3.700' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='2.460' x2='2.200' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><rect class='ly-copper pad' data-num='1' data-name='' x='-3.450' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-1.905' 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='-' x='-3.450' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-0.635' 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='+' x='-3.450' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='0.635' 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><rect class='ly-copper pad' data-num='4' data-name='V-' x='-3.450' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>4</text><rect class='ly-copper pad' data-num='5' data-name='+' x='1.500' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>5</text><rect class='ly-copper pad' data-num='6' data-name='-' x='1.500' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>6</text><rect class='ly-copper pad' data-num='7' data-name='' x='1.500' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>7</text><rect class='ly-copper pad' data-num='8' data-name='V+' x='1.500' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>8</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-4.100 -3.200 8.200 6.300' style='width:100%;height:100%'><line class='ly-silk' x1='-2.060' y1='-2.560' x2='2.060' y2='-2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='-2.465' x2='-2.060' y2='-2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='-2.060' y1='2.560' x2='-2.060' y2='2.465' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='-2.560' x2='2.060' y2='-2.465' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='2.465' x2='2.060' y2='2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-silk' x1='2.060' y1='2.560' x2='-2.060' y2='2.560' stroke='#d8b4fe' stroke-width='0.120'/><line class='ly-courtyard' x1='-3.700' y1='-2.460' x2='-2.200' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-3.700' y1='2.460' x2='-3.700' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-2.700' x2='2.200' y2='-2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='-2.460' x2='-2.200' y2='-2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='2.460' x2='-3.700' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='-2.200' y1='2.700' x2='-2.200' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-2.700' x2='2.200' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='-2.460' x2='3.700' y2='-2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='2.460' x2='2.200' y2='2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='2.200' y1='2.700' x2='-2.200' y2='2.700' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='-2.460' x2='3.700' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><line class='ly-courtyard' x1='3.700' y1='2.460' x2='2.200' y2='2.460' stroke='#4ade80' stroke-width='0.050'/><polygon class='ly-silk' points='-2.600,-2.470 -2.840,-2.800 -2.360,-2.800' fill='#d8b4fe' stroke='none'/><polygon class='ly-fab' points='-0.975,-2.450 1.950,-2.450 1.950,2.450 -1.950,2.450 -1.950,-1.475' fill='none' stroke='#f472b6' stroke-width='0.100'/><rect class='ly-copper pad' data-num='1' data-name='1OUT' x='-3.450' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-1.905' 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='1IN-' x='-3.450' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='-0.635' 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='1IN+' x='-3.450' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='0.635' 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><rect class='ly-copper pad' data-num='4' data-name='GND' x='-3.450' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='-2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>4</text><rect class='ly-copper pad' data-num='5' data-name='2IN+' x='1.500' y='1.605' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>5</text><rect class='ly-copper pad' data-num='6' data-name='2IN-' x='1.500' y='0.335' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>6</text><rect class='ly-copper pad' data-num='7' data-name='2OUT' x='1.500' y='-0.935' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-0.635' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>7</text><rect class='ly-copper pad' data-num='8' data-name='VCC' x='1.500' y='-2.205' width='1.950' height='0.600' rx='0.150' fill='#f59e0b' stroke='#00000033' stroke-width='0.03' opacity='0.94'/><text class='padnum' x='2.475' y='-1.905' font-size='0.360' fill='#1c1206' text-anchor='middle' dominant-baseline='central' pointer-events='none' font-family='ui-monospace,monospace' font-weight='700'>8</text></svg></div> <div id=tip></div> <script>-var KIND="footprint", MPN="LM2903", PINS=[{"desc":"Output pin of comparator 1.","name":"","number":"1","type":"Output"},{"desc":"Inverting (negative) input of comparator 1.","name":"-","number":"2","type":"Input"},{"desc":"Non-inverting (positive) input of comparator 1.","name":"+","number":"3","type":"Input"},{"desc":"Non-inverting (positive) input of comparator 2.","name":"+","number":"5","type":"Input"},{"desc":"Inverting (negative) input of comparator 2.","name":"-","number":"6","type":"Input"},{"desc":"Output pin of comparator 2.","name":"","number":"7","type":"Output"},{"desc":"Ground (V-).","name":"V-","number":"4","type":"Power"},{"desc":"Positive supply (V+).","name":"V+","number":"8","type":"Power"}];+var KIND="footprint", MPN="ADOM/LM2903", PINS=[{"desc":"","name":"1OUT","number":"1","type":""},{"desc":"","name":"1IN-","number":"2","type":""},{"desc":"","name":"1IN+","number":"3","type":""},{"desc":"","name":"2IN+","number":"5","type":""},{"desc":"","name":"2IN-","number":"6","type":""},{"desc":"","name":"2OUT","number":"7","type":""},{"desc":"","name":"GND","number":"4","type":""},{"desc":"","name":"VCC","number":"8","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+3−3
@@ -1,5 +1,5 @@ <!doctype html><html lang=en><head><meta charset=utf-8>-<meta name=viewport content="width=device-width,initial-scale=1"><title>LM2903 symbol</title>+<meta name=viewport content="width=device-width,initial-scale=1"><title>ADOM/LM2903 symbol</title> <style> :root{--bg:#0d1117;--panel:#161b22;--edge:#30363d;--ink:#e6edf3;--mut:#8b949e;--acc:#00b8b0;--accb:#00e6dc;--hi:#6ea8fe} *{box-sizing:border-box;margin:0}html,body{height:100%}@@ -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='-350 -350 700 700' style='width:100%;height:100%'><polyline points='-200.0,-200.0 200.0,-0.0 -200.0,200.0 -200.0,-200.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='130.0,20.0 110.0,20.0 130.0,-0.0 110.0,-20.0 90.0,-0.0 110.0,20.0 90.0,20.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='-200.0,-200.0 200.0,-0.0 -200.0,200.0 -200.0,-200.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='130.0,20.0 110.0,20.0 130.0,-0.0 110.0,-20.0 90.0,-0.0 110.0,20.0 90.0,20.0' fill='none' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name=''><line class='pinvis' x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='250.0' y='-37.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><g class='pingroup' data-num='2' data-name='-'><line class='pinvis' x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='137.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-175.0' y='100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>-</text><g class='pingroup' data-num='3' data-name='+'><line class='pinvis' x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='-62.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-175.0' y='-100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>+</text><g class='pingroup' data-num='5' data-name='+'><line class='pinvis' x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='-62.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-175.0' y='-100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>+</text><g class='pingroup' data-num='6' data-name='-'><line class='pinvis' x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='137.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-175.0' y='100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>-</text><g class='pingroup' data-num='7' data-name=''><line class='pinvis' x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='250.0' y='-37.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><g class='pingroup' data-num='4' data-name='V-'><line class='pinvis' x1='-100.0' y1='300.0' x2='-100.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='300.0' x2='-100.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-55.0' y='225.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-100.0' y='120.0' font-size='60' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>V-</text><g class='pingroup' data-num='8' data-name='V+'><line class='pinvis' x1='-100.0' y1='-300.0' x2='-100.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='-300.0' x2='-100.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-145.0' y='-225.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-100.0' y='-120.0' font-size='60' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>V+</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-350 -350 700 700' style='width:100%;height:100%'><polyline points='-200.0,-200.0 200.0,-0.0 -200.0,200.0 -200.0,-200.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='130.0,20.0 110.0,20.0 130.0,-0.0 110.0,-20.0 90.0,-0.0 110.0,20.0 90.0,20.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='-200.0,-200.0 200.0,-0.0 -200.0,200.0 -200.0,-200.0' fill='none' stroke='#e35d5d' stroke-width='4'/><polyline points='130.0,20.0 110.0,20.0 130.0,-0.0 110.0,-20.0 90.0,-0.0 110.0,20.0 90.0,20.0' fill='none' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='1OUT'><line class='pinvis' x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='250.0' y='-37.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='175.0' y='0.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>1OUT</text><g class='pingroup' data-num='2' data-name='1IN-'><line class='pinvis' x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='137.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-175.0' y='100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1IN-</text><g class='pingroup' data-num='3' data-name='1IN+'><line class='pinvis' x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='-62.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-175.0' y='-100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>1IN+</text><g class='pingroup' data-num='5' data-name='2IN+'><line class='pinvis' x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='-100.0' x2='-200.0' y2='-100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='-62.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-175.0' y='-100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>2IN+</text><g class='pingroup' data-num='6' data-name='2IN-'><line class='pinvis' x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-300.0' y1='100.0' x2='-200.0' y2='100.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-250.0' y='137.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-175.0' y='100.0' font-size='50' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>2IN-</text><g class='pingroup' data-num='7' data-name='2OUT'><line class='pinvis' x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='300.0' y1='-0.0' x2='200.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='250.0' y='-37.5' font-size='50' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='175.0' y='0.0' font-size='50' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>2OUT</text><g class='pingroup' data-num='4' data-name='GND'><line class='pinvis' x1='-100.0' y1='300.0' x2='-100.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='300.0' x2='-100.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-55.0' y='225.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-100.0' y='120.0' font-size='60' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>GND</text><g class='pingroup' data-num='8' data-name='VCC'><line class='pinvis' x1='-100.0' y1='-300.0' x2='-100.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-100.0' y1='-300.0' x2='-100.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-145.0' y='-225.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-100.0' y='-120.0' font-size='60' fill='#e6e9ef' text-anchor='middle' dominant-baseline='central'>VCC</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="LM2903", PINS=[{"desc":"Output pin of comparator 1.","name":"","number":"1","type":"Output"},{"desc":"Inverting (negative) input of comparator 1.","name":"-","number":"2","type":"Input"},{"desc":"Non-inverting (positive) input of comparator 1.","name":"+","number":"3","type":"Input"},{"desc":"Non-inverting (positive) input of comparator 2.","name":"+","number":"5","type":"Input"},{"desc":"Inverting (negative) input of comparator 2.","name":"-","number":"6","type":"Input"},{"desc":"Output pin of comparator 2.","name":"","number":"7","type":"Output"},{"desc":"Ground (V-).","name":"V-","number":"4","type":"Power"},{"desc":"Positive supply (V+).","name":"V+","number":"8","type":"Power"}];+var KIND="symbol", MPN="ADOM/LM2903", PINS=[{"desc":"","name":"1OUT","number":"1","type":""},{"desc":"","name":"1IN-","number":"2","type":""},{"desc":"","name":"1IN+","number":"3","type":""},{"desc":"","name":"2IN+","number":"5","type":""},{"desc":"","name":"2IN-","number":"6","type":""},{"desc":"","name":"2OUT","number":"7","type":""},{"desc":"","name":"GND","number":"4","type":""},{"desc":"","name":"VCC","number":"8","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 ----