← Commit history

esda8p80-1u1m: viewers

Ray ·cbc4fd6c5c · ·parent 02faa2e
2 files changed +5−5
viewers/footprint.html+3−3
@@ -1,5 +1,5 @@ <!doctype html><html><head><meta charset="utf-8">-<title>R_0603_1608Metric - adom-footprint</title>+<title>D_0603_1608Metric - adom-footprint</title> <meta name="viewport" content="width=device-width,initial-scale=1"> <style> /* ── adom-footprint shared viewer core (CSS) ───────────────────────────────@@ -53,11 +53,11 @@ aside .ah{padding:9px 12px;border-bottom:1px solid var(--border);font-size:12px; .note b{color:#7ef0d2} </style></head> <body>-  <header><span class="dot"></span><span class="b">adom-footprint <span>· interactive</span></span><span class="nm">R_0603_1608Metric</span></header>+  <header><span class="dot"></span><span class="b">adom-footprint <span>· interactive</span></span><span class="nm">D_0603_1608Metric</span></header>   <main>     <div class="vpwrap">       <div class="av-vp" id="vp">-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.375 -1.625 4.750 3.250" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><rect x="-1.4800" y="-0.7300" width="2.9600" height="1.4600" stroke="#FF26E2" stroke-width="0.050" fill="none"/></g><g class="adom-layer-fab"><rect x="-0.8000" y="-0.4125" width="1.6000" height="0.8250" stroke="#6e7681" stroke-width="0.100" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="roundrect" data-size="0.800x0.950" data-mount="smd"><rect x="-1.225" y="-0.475" width="0.800" height="0.950" rx="0.200" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="roundrect" data-size="0.800x0.950" data-mount="smd"><rect x="0.425" y="-0.475" width="0.800" height="0.950" rx="0.200" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"></g><g class="adom-layer-silk"><line x1="-0.2373" y1="-0.5225" x2="0.2373" y2="-0.5225" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-0.2373" y1="0.5225" x2="0.2373" y2="0.5225" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="-0.825" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.336" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="0.825" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.336" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text></g><g class="adom-layer-paste-apertures"><rect x="-1.225" y="-0.475" width="0.800" height="0.950" rx="0.05" transform="rotate(0.00 -0.825 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.425" y="-0.475" width="0.800" height="0.950" rx="0.05" transform="rotate(0.00 0.825 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/></g><g class="adom-layer-paste-dots"><circle cx="-0.950" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.950" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.950" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.700" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.700" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.700" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.700" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.700" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.700" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.950" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.950" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.950" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>+        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.375 -1.625 4.750 3.250" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><rect x="-1.4800" y="-0.7300" width="2.9600" height="1.4600" stroke="#FF26E2" stroke-width="0.050" fill="none"/></g><g class="adom-layer-fab"><line x1="-0.8000" y1="-0.1000" x2="-0.8000" y2="0.4000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="-0.8000" y1="0.4000" x2="0.8000" y2="0.4000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="-0.5000" y1="-0.4000" x2="-0.8000" y2="-0.1000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="0.8000" y1="-0.4000" x2="-0.5000" y2="-0.4000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="0.8000" y1="0.4000" x2="0.8000" y2="-0.4000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="roundrect" data-size="0.875x0.950" data-mount="smd"><rect x="-1.225" y="-0.475" width="0.875" height="0.950" rx="0.219" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="roundrect" data-size="0.875x0.950" data-mount="smd"><rect x="0.350" y="-0.475" width="0.875" height="0.950" rx="0.219" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"></g><g class="adom-layer-silk"><line x1="-1.4850" y1="-0.7350" x2="-1.4850" y2="0.7350" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-1.4850" y1="0.7350" x2="0.8000" y2="0.7350" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.8000" y1="-0.7350" x2="-1.4850" y2="-0.7350" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="-0.787" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.367" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="0.787" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.367" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text></g><g class="adom-layer-paste-apertures"><rect x="-1.225" y="-0.475" width="0.875" height="0.950" rx="0.05" transform="rotate(0.00 -0.787 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.350" y="-0.475" width="0.875" height="0.950" rx="0.05" transform="rotate(0.00 0.787 0.000)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/></g><g class="adom-layer-paste-dots"><circle cx="-0.912" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.912" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.912" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.662" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.662" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.662" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.662" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.662" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.662" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.912" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.912" cy="0.000" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.912" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>       </div>     </div>     <aside>
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 -150 1500 300' style='width:100%;height:100%'><rect x='-500.0' y='-100.0' width='1000.0' height='200.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='I/O'><line class='pinvis' x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>I/O</text><g class='pingroup' data-num='2' data-name='GND'><line class='pinvis' x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>GND</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-750 -150 1500 300' style='width:100%;height:100%'><rect x='-500.0' y='-100.0' width='1000.0' height='200.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='K'><line class='pinvis' x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-700.0' y1='-0.0' x2='-500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-600.0' y='45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>K</text><g class='pingroup' data-num='2' data-name='A'><line class='pinvis' x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='#dfe4ec' stroke-width='4'/><line x1='700.0' y1='-0.0' x2='500.0' y2='-0.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='600.0' y='-45.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='470.0' y='0.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>A</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="ADOM/ESDA8P80-1U1M", PINS=[{"desc":"","name":"I/O","number":"1","type":""},{"desc":"","name":"GND","number":"2","type":""}];+var KIND="symbol", MPN="ADOM/ESDA8P80-1U1M", PINS=[{"desc":"","name":"K","number":"1","type":""},{"desc":"","name":"A","number":"2","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 ----