← Commit history

jw1fsn-dc12v: footprint pads join the pin-hover bus with the symbol (5 pads)

Ray ·cbb929f53b · ·parent 033cd2b
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">PANASONIC_JW1_e59325</span></header>   <main>     <div class="vpwrap">       <div class="av-vp" id="vp">-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-15.850 -7.800 31.400 15.600" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-14.700" y1="-6.650" x2="14.400" y2="-6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="14.400" y1="-6.650" x2="14.400" y2="6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="14.400" y1="6.650" x2="-14.700" y2="6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="-14.700" y1="6.650" x2="-14.700" y2="-6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/></g><g class="adom-layer-fab"><line x1="-14.450" y1="-6.400" x2="14.150" y2="-6.400" stroke="#6e7681" stroke-width="0.1"/><line x1="14.150" y1="-6.400" x2="14.150" y2="6.400" stroke="#6e7681" stroke-width="0.1"/><line x1="14.150" y1="6.400" x2="-14.450" y2="6.400" stroke="#6e7681" stroke-width="0.1"/><line x1="-14.450" y1="6.400" x2="-14.450" y2="-6.400" stroke="#6e7681" stroke-width="0.1"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="rect" data-size="2.200x2.200" data-mount="thru_hole"><rect x="-12.850" y="2.700" width="2.200" height="2.200" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="8" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="-11.750" cy="-3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="4.750" cy="3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="6" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="8.250" cy="-3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="4" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="11.750" cy="3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"><circle cx="-11.750" cy="3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="-11.750" cy="-3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="4.750" cy="3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="8.250" cy="-3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="11.750" cy="3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/></g><g class="adom-layer-silk"><line x1="-13.250" y1="2.700" x2="-13.250" y2="4.900" stroke="#00cccc" stroke-width="0.12" stroke-linecap="round"/></g><g class="adom-layer-padnum"><text x="-11.750" y="3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="-11.750" y="-3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">8</text><text x="4.750" y="3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="8.250" y="-3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">6</text><text x="11.750" y="3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">4</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="-15.850 -7.800 31.400 15.600" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><line x1="-14.700" y1="-6.650" x2="14.400" y2="-6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="14.400" y1="-6.650" x2="14.400" y2="6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="14.400" y1="6.650" x2="-14.700" y2="6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/><line x1="-14.700" y1="6.650" x2="-14.700" y2="-6.650" stroke="#FF26E2" stroke-width="0.05" stroke-dasharray="0.2,0.1"/></g><g class="adom-layer-fab"><line x1="-14.450" y1="-6.400" x2="14.150" y2="-6.400" stroke="#6e7681" stroke-width="0.1"/><line x1="14.150" y1="-6.400" x2="14.150" y2="6.400" stroke="#6e7681" stroke-width="0.1"/><line x1="14.150" y1="6.400" x2="-14.450" y2="6.400" stroke="#6e7681" stroke-width="0.1"/><line x1="-14.450" y1="6.400" x2="-14.450" y2="-6.400" stroke="#6e7681" stroke-width="0.1"/></g><g class="adom-layer-copper"><g data-pad="1" data-num="1" data-shape="rect" data-size="2.200x2.200" data-mount="thru_hole"><rect x="-12.850" y="2.700" width="2.200" height="2.200" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="8" data-num="8" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="-11.750" cy="-3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-num="2" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="4.750" cy="3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="6" data-num="6" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="8.250" cy="-3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="4" data-num="4" data-shape="circle" data-size="2.200x2.200" data-mount="thru_hole"><circle cx="11.750" cy="3.800" r="1.100" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g></g><g class="adom-layer-heatsink"></g><g class="adom-layer-drill"><circle cx="-11.750" cy="3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="-11.750" cy="-3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="4.750" cy="3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="8.250" cy="-3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="11.750" cy="3.800" r="0.750" fill="#0d1117" stroke="#666" stroke-width="0.05"/></g><g class="adom-layer-silk"><line x1="-13.250" y1="2.700" x2="-13.250" y2="4.900" stroke="#00cccc" stroke-width="0.12" stroke-linecap="round"/></g><g class="adom-layer-padnum"><text x="-11.750" y="3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="-11.750" y="-3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">8</text><text x="4.750" y="3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="8.250" y="-3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">6</text><text x="11.750" y="3.800" text-anchor="middle" dominant-baseline="central" font-size="0.924" fill="#fff" font-family="sans-serif" style="pointer-events:none">4</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>