← Commit history
lm2931az50r: footprint pads join the pin-hover bus with the symbol (3 pads)
1 file changed
+3−3
viewers/footprint.html+3−3@@ -51,13 +51,13 @@ aside .ah{padding:9px 12px;border-bottom:1px solid var(--border);font-size:12px; .layers{padding:6px} .note{font-size:11px;color:var(--muted);line-height:1.45;padding:8px 11px} .note b{color:#7ef0d2}-</style></head>+</style><style>/* lbr-hover bus (component-factory inject_layers) */[data-num]{cursor:pointer}[data-num].hi>*{fill:#ffd166!important;stroke:#ffffff!important;stroke-width:0.08!important}</style></head> <body> <header><span class="dot"></span><span class="b">adom-footprint <span>ยท interactive</span></span><span class="nm">TO-92_Inline</span></header> <main> <div class="vpwrap"> <div class="av-vp" id="vp">- <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.675 -2.880 5.890 5.040" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-1.4600" y1="-2.7300" x2="-1.4600" y2="2.0100" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-1.4600" y1="-2.7300" x2="4.0000" y2="-2.7300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="4.0000" y1="2.0100" x2="-1.4600" y2="2.0100" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="4.0000" y1="2.0100" x2="4.0000" y2="-2.7300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/></g><g class="adom-layer-fab"><line x1="-0.5000" y1="1.7500" x2="3.0000" y2="1.7500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><path d="M -0.4836 1.7536 A 2.4800 2.4800 0 1 0 1.2700 -2.4800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><path d="M 1.2700 -2.4800 A 2.4800 2.4800 0 1 0 3.0236 1.7536" 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="1.050x1.500" data-mount="thru_hole"><rect x="-0.525" y="-0.750" width="1.050" height="1.500" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="oval" data-size="1.050x1.500" data-mount="thru_hole"><rect x="0.745" y="-0.750" width="1.050" height="1.500" rx="0.525" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-shape="oval" data-size="1.050x1.500" data-mount="thru_hole"><rect x="2.015" y="-0.750" width="1.050" height="1.500" rx="0.525" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"><circle cx="0.000" cy="0.000" r="0.375" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="1.270" cy="0.000" r="0.375" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="2.540" cy="0.000" r="0.375" fill="#0d1117" stroke="#666" stroke-width="0.05"/></g><g class="adom-layer-silk"><line x1="-0.5300" y1="1.8500" x2="3.0700" y2="1.8500" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><path d="M -0.5685 1.8385 A 2.6000 2.6000 0 1 0 1.2700 -2.6000" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><path d="M 1.2700 -2.6000 A 2.6000 2.6000 0 1 0 3.1085 1.8385" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="0.000" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.441" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="1.270" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.441" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="2.540" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.441" fill="#fff" font-family="sans-serif" style="pointer-events:none">3</text></g><g class="adom-layer-paste-apertures"></g><g class="adom-layer-paste-dots"></g></svg>+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1.675 -2.880 5.890 5.040" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-1.4600" y1="-2.7300" x2="-1.4600" y2="2.0100" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="-1.4600" y1="-2.7300" x2="4.0000" y2="-2.7300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="4.0000" y1="2.0100" x2="-1.4600" y2="2.0100" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/><line x1="4.0000" y1="2.0100" x2="4.0000" y2="-2.7300" stroke="#FF26E2" stroke-width="0.050" stroke-linecap="round" fill="none"/></g><g class="adom-layer-fab"><line x1="-0.5000" y1="1.7500" x2="3.0000" y2="1.7500" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><path d="M -0.4836 1.7536 A 2.4800 2.4800 0 1 0 1.2700 -2.4800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><path d="M 1.2700 -2.4800 A 2.4800 2.4800 0 1 0 3.0236 1.7536" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-num="1" data-shape="rect" data-size="1.050x1.500" data-mount="thru_hole"><rect x="-0.525" y="-0.750" width="1.050" height="1.500" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-num="2" data-shape="oval" data-size="1.050x1.500" data-mount="thru_hole"><rect x="0.745" y="-0.750" width="1.050" height="1.500" rx="0.525" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-num="3" data-shape="oval" data-size="1.050x1.500" data-mount="thru_hole"><rect x="2.015" y="-0.750" width="1.050" height="1.500" rx="0.525" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"><circle cx="0.000" cy="0.000" r="0.375" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="1.270" cy="0.000" r="0.375" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="2.540" cy="0.000" r="0.375" fill="#0d1117" stroke="#666" stroke-width="0.05"/></g><g class="adom-layer-silk"><line x1="-0.5300" y1="1.8500" x2="3.0700" y2="1.8500" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><path d="M -0.5685 1.8385 A 2.6000 2.6000 0 1 0 1.2700 -2.6000" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><path d="M 1.2700 -2.6000 A 2.6000 2.6000 0 1 0 3.1085 1.8385" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/></g><g class="adom-layer-padnum"><text x="0.000" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.441" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="1.270" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.441" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="2.540" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.441" fill="#fff" font-family="sans-serif" style="pointer-events:none">3</text></g><g class="adom-layer-paste-apertures"></g><g class="adom-layer-paste-dots"></g></svg> </div> </div> <aside>@@ -207,4 +207,4 @@ var META={"pasteApertures":0,"pasteDots":0}; AV.buildLayers({ svg:svg, container:document.getElementById('layers'), state:{}, meta:META }); })(); </script>-</body></html>+<script>/* lbr-hover bus (component-factory inject_layers) */(function(){var MPN=null;function els(n){return [].slice.call(document.querySelectorAll('[data-num="'+n+'"]'));}function clearHi(){[].forEach.call(document.querySelectorAll('[data-num].hi'),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(_){}}[].forEach.call(document.querySelectorAll('[data-num]'),function(g){var n=g.getAttribute('data-num');g.addEventListener('mouseenter',function(){clearHi();hi(n);post(n);});g.addEventListener('mouseleave',function(){clearHi();post(null);});});window.addEventListener('message',function(e){var d=e.data||{};if(d.type!=='lbr-hover')return;clearHi();if(d.pin!=null)hi(d.pin);});})();</script></body></html>