← Commit history

yc124-jr-072k7l: viewers

Ray ·dd33647945 · ·parent 6b37808
2 files changed +5−4
viewers/footprint.html+3−3
@@ -1,5 +1,5 @@ <!doctype html><html><head><meta charset="utf-8">-<title>R_Array_Convex_4x0402 - adom-footprint</title>+<title>YAGEO_YC124_3ff155 - 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_Array_Convex_4x0402</span></header>+  <header><span class="dot"></span><span class="b">adom-footprint <span>· interactive</span></span><span class="nm">YAGEO_YC124_3ff155</span></header>   <main>     <div class="vpwrap">       <div class="av-vp" id="vp">-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.900 -2.100 3.800 4.200" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-1.0000" y1="-1.2500" x2="-1.0000" y2="1.2500" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-1.0000" y1="-1.2500" x2="1.0000" y2="-1.2500" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="1.0000" y1="1.2500" x2="-1.0000" y2="1.2500" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="1.0000" y1="1.2500" x2="1.0000" y2="-1.2500" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/></g><g class="adom-layer-fab"><line x1="-0.5000" y1="-1.0000" x2="0.5000" y2="-1.0000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="-0.5000" y1="1.0000" x2="-0.5000" y2="-1.0000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="0.5000" y1="-1.0000" x2="0.5000" y2="1.0000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="0.5000" y1="1.0000" x2="-0.5000" y2="1.0000" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="rect" data-size="0.500x0.400" data-mount="smd"><rect x="-0.750" y="-0.950" width="0.500" height="0.400" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="rect" data-size="0.500x0.300" data-mount="smd"><rect x="-0.750" y="-0.400" width="0.500" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-shape="rect" data-size="0.500x0.300" data-mount="smd"><rect x="-0.750" y="0.100" width="0.500" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="4" data-shape="rect" data-size="0.500x0.400" data-mount="smd"><rect x="-0.750" y="0.550" width="0.500" height="0.400" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="5" data-shape="rect" data-size="0.500x0.400" data-mount="smd"><rect x="0.250" y="0.550" width="0.500" height="0.400" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="6" data-shape="rect" data-size="0.500x0.300" data-mount="smd"><rect x="0.250" y="0.100" width="0.500" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="7" data-shape="rect" data-size="0.500x0.300" data-mount="smd"><rect x="0.250" y="-0.400" width="0.500" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="8" data-shape="rect" data-size="0.500x0.400" data-mount="smd"><rect x="0.250" y="-0.950" width="0.500" height="0.400" 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.2500" y1="-1.1800" x2="-0.2500" y2="-1.1800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.2500" y1="1.1800" x2="-0.2500" y2="1.1800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="-0.500" y="-0.750" text-anchor="middle" dominant-baseline="central" font-size="0.168" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="-0.500" y="-0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="-0.500" y="0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">3</text><text x="-0.500" y="0.750" text-anchor="middle" dominant-baseline="central" font-size="0.168" fill="#fff" font-family="sans-serif" style="pointer-events:none">4</text><text x="0.500" y="0.750" text-anchor="middle" dominant-baseline="central" font-size="0.168" fill="#fff" font-family="sans-serif" style="pointer-events:none">5</text><text x="0.500" y="0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">6</text><text x="0.500" y="-0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">7</text><text x="0.500" y="-0.750" text-anchor="middle" dominant-baseline="central" font-size="0.168" fill="#fff" font-family="sans-serif" style="pointer-events:none">8</text></g><g class="adom-layer-paste-apertures"><rect x="-0.750" y="-0.950" width="0.500" height="0.400" rx="0.05" transform="rotate(0.00 -0.500 -0.750)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-0.750" y="-0.400" width="0.500" height="0.300" rx="0.05" transform="rotate(0.00 -0.500 -0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-0.750" y="0.100" width="0.500" height="0.300" rx="0.05" transform="rotate(0.00 -0.500 0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-0.750" y="0.550" width="0.500" height="0.400" rx="0.05" transform="rotate(0.00 -0.500 0.750)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="0.550" width="0.500" height="0.400" rx="0.05" transform="rotate(0.00 0.500 0.750)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="0.100" width="0.500" height="0.300" rx="0.05" transform="rotate(0.00 0.500 0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="-0.400" width="0.500" height="0.300" rx="0.05" transform="rotate(0.00 0.500 -0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="-0.950" width="0.500" height="0.400" rx="0.05" transform="rotate(0.00 0.500 -0.750)" 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.500" cy="-0.750" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.500" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.500" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.500" cy="0.750" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.500" cy="0.750" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.500" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.500" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.500" cy="-0.750" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>+        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-2.450 -2.400 4.750 4.800" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-1.150" y1="-1.250" x2="1.150" y2="-1.250" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="1.150" y1="-1.250" x2="1.150" y2="1.250" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="1.150" y1="1.250" x2="-1.150" y2="1.250" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="-1.150" y1="1.250" x2="-1.150" y2="-1.250" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/></g><g class="adom-layer-fab"><line x1="-0.500" y1="-1.000" x2="0.500" y2="-1.000" stroke="#6e7681" stroke-width="0.1"/><line x1="0.500" y1="-1.000" x2="0.500" y2="1.000" stroke="#6e7681" stroke-width="0.1"/><line x1="0.500" y1="1.000" x2="-0.500" y2="1.000" stroke="#6e7681" stroke-width="0.1"/><line x1="-0.500" y1="1.000" x2="-0.500" y2="-1.000" stroke="#6e7681" stroke-width="0.1"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="-0.900" y="-0.900" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="-0.900" y="-0.400" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="-0.900" y="0.100" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="4" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="-0.900" y="0.600" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="5" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="0.250" y="-0.900" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="6" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="0.250" y="-0.400" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="7" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="0.250" y="0.100" width="0.650" height="0.300" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="8" data-shape="rect" data-size="0.650x0.300" data-mount="smd"><rect x="0.250" y="0.600" width="0.650" height="0.300" 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.300" y1="-0.900" x2="-1.300" y2="-0.600" stroke="#00cccc" stroke-width="0.12" stroke-linecap="round"/></g><g class="adom-layer-padnum"><text x="-0.575" y="-0.750" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="-0.575" y="-0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="-0.575" y="0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">3</text><text x="-0.575" y="0.750" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">4</text><text x="0.575" y="-0.750" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">5</text><text x="0.575" y="-0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">6</text><text x="0.575" y="0.250" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">7</text><text x="0.575" y="0.750" text-anchor="middle" dominant-baseline="central" font-size="0.126" fill="#fff" font-family="sans-serif" style="pointer-events:none">8</text></g><g class="adom-layer-paste-apertures"><rect x="-0.900" y="-0.900" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 -0.575 -0.750)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-0.900" y="-0.400" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 -0.575 -0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-0.900" y="0.100" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 -0.575 0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="-0.900" y="0.600" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 -0.575 0.750)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="-0.900" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 0.575 -0.750)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="-0.400" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 0.575 -0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="0.100" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 0.575 0.250)" fill="none" stroke="#8aa0b8" stroke-width="0.03" stroke-dasharray="0.12 0.08" opacity="0.7"/><rect x="0.250" y="0.600" width="0.650" height="0.300" rx="0.05" transform="rotate(0.00 0.575 0.750)" 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.575" cy="-0.750" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.575" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.575" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="-0.575" cy="0.750" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.575" cy="-0.750" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.575" cy="-0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.575" cy="0.250" r="0.150" fill="#37c8a6" opacity="0.92"/><circle cx="0.575" cy="0.750" r="0.150" fill="#37c8a6" opacity="0.92"/></g></svg>       </div>     </div>     <aside>
viewers/symbol.html+2−1
@@ -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);});