← Commit history

7n65-to220-vb: viewers

Ray ·803ccc0438 · ·parent 1b650a1
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-220-3_Vertical</span></header>   <main>     <div class="vpwrap">       <div class="av-vp" id="vp">-        <svg xmlns="http://www.w3.org/2000/svg" viewBox="-3.110 -3.800 11.300 5.950" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><polygon points="-2.9600,-3.6500 8.0400,-3.6500 8.0400,1.7500 -2.9600,1.7500" stroke="#FF26E2" stroke-width="0.050" fill="none"/></g><g class="adom-layer-fab"><line x1="-2.4600" y1="-1.8800" x2="7.5400" y2="-1.8800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="0.6900" y1="-3.1500" x2="0.6900" y2="-1.8800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="4.3900" y1="-3.1500" x2="4.3900" y2="-1.8800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><rect x="-2.4600" y="-3.1500" width="10.0000" height="4.4000" stroke="#6e7681" stroke-width="0.100" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-shape="rect" data-size="1.905x2.000" data-mount="thru_hole"><rect x="-0.953" y="-1.000" width="1.905" height="2.000" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-shape="oval" data-size="1.905x2.000" data-mount="thru_hole"><rect x="1.587" y="-1.000" width="1.905" height="2.000" rx="0.953" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-shape="oval" data-size="1.905x2.000" data-mount="thru_hole"><rect x="4.128" y="-1.000" width="1.905" height="2.000" rx="0.953" 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.550" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="2.540" cy="0.000" r="0.550" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="5.080" cy="0.000" r="0.550" fill="#0d1117" stroke="#666" stroke-width="0.05"/></g><g class="adom-layer-silk"><line x1="-2.5700" y1="-3.2600" x2="7.6500" y2="-3.2600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-2.5700" y1="-1.8800" x2="7.6500" y2="-1.8800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-2.5700" y1="1.3600" x2="-2.5700" y2="-3.2600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.6900" y1="-3.2600" x2="0.6900" y2="-1.8800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="4.3900" y1="-3.2600" x2="4.3900" y2="-1.8800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="7.6500" y1="-3.2600" x2="7.6500" y2="1.3600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="7.6500" y1="1.3600" x2="-2.5700" y2="1.3600" 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.800" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="2.540" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.800" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="5.080" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.800" 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="-2.860 -3.550 10.800 5.700" preserveAspectRatio="xMidYMid meet"><g class="adom-layer-courtyard"><rect x="-2.7100" y="-3.4000" width="10.5000" height="4.9000" stroke="#FF26E2" stroke-width="0.050" fill="none"/></g><g class="adom-layer-fab"><line x1="-2.4600" y1="-1.8800" x2="7.5400" y2="-1.8800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="0.6900" y1="-3.1500" x2="0.6900" y2="-1.8800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><line x1="4.3900" y1="-3.1500" x2="4.3900" y2="-1.8800" stroke="#6e7681" stroke-width="0.100" stroke-linecap="round" fill="none"/><rect x="-2.4600" y="-3.1500" width="10.0000" height="4.4000" stroke="#6e7681" stroke-width="0.100" fill="none"/></g><g class="adom-layer-copper"><g data-pad="1" data-num="1" data-shape="rect" data-size="1.905x2.000" data-mount="thru_hole"><rect x="-0.953" y="-1.000" width="1.905" height="2.000" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="2" data-num="2" data-shape="oval" data-size="1.905x2.000" data-mount="thru_hole"><rect x="1.587" y="-1.000" width="1.905" height="2.000" rx="0.953" fill="#C83434" stroke="#ef5350" stroke-width="0.04"/></g><g data-pad="3" data-num="3" data-shape="oval" data-size="1.905x2.000" data-mount="thru_hole"><rect x="4.128" y="-1.000" width="1.905" height="2.000" rx="0.953" 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.550" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="2.540" cy="0.000" r="0.550" fill="#0d1117" stroke="#666" stroke-width="0.05"/><circle cx="5.080" cy="0.000" r="0.550" fill="#0d1117" stroke="#666" stroke-width="0.05"/></g><g class="adom-layer-silk"><line x1="-2.5700" y1="-3.2600" x2="7.6500" y2="-3.2600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-2.5700" y1="-1.8800" x2="7.6500" y2="-1.8800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="-2.5700" y1="1.3600" x2="-2.5700" y2="-3.2600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="0.6900" y1="-3.2600" x2="0.6900" y2="-1.8800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="4.3900" y1="-3.2600" x2="4.3900" y2="-1.8800" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="7.6500" y1="-3.2600" x2="7.6500" y2="1.3600" stroke="#00cccc" stroke-width="0.120" stroke-linecap="round" fill="none"/><line x1="7.6500" y1="1.3600" x2="-2.5700" y2="1.3600" 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.800" fill="#fff" font-family="sans-serif" style="pointer-events:none">1</text><text x="2.540" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.800" fill="#fff" font-family="sans-serif" style="pointer-events:none">2</text><text x="5.080" y="0.000" text-anchor="middle" dominant-baseline="central" font-size="0.800" 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>