← Commit history

cxb006xmd089: .lbr and symbol viewer from adom-lbr 2.47.10 (primes, overbars)

Ray ·d5f26650e5 · ·parent 5b76e64
2 files changed +14−4
cxb006xmd089.lbr+12−3
@@ -50,7 +50,7 @@ <layer number="98" name="Guide" color="6" fill="1" visible="yes" active="yes"/> </layers> <library>-<description></description>+<description>CREC Crystals, SMD3225-4P. Pinout cross-checked by two models against the datasheet</description> <packages> <package name="Crystal_SMD_3225-4Pin_3.2x2.5mm">   <description>Crystal, 3.2 x 2.5 mm. SMD3225/4, Crystal, 3.2x2.5mm package, SMD</description>@@ -73,6 +73,7 @@ </packages> <symbols> <symbol name="CXB006XMD089">+  <description>CREC Crystals, SMD3225-4P. Pinout cross-checked by two models against the datasheet</description>   <wire x1="-12.7" y1="2.54" x2="12.7" y2="2.54" width="0.254" layer="94"/>   <wire x1="12.7" y1="2.54" x2="12.7" y2="-5.08" width="0.254" layer="94"/>   <wire x1="12.7" y1="-5.08" x2="-12.7" y2="-5.08" width="0.254" layer="94"/>@@ -87,7 +88,7 @@ </symbols> <devicesets> <deviceset name="CXB006XMD089" prefix="U">-  <description></description>+  <description>CREC Crystals, SMD3225-4P. Pinout cross-checked by two models against the datasheet</description>   <gates>     <gate name="G$1" symbol="CXB006XMD089" x="0" y="0"/>   </gates>@@ -99,7 +100,15 @@         <connect gate="G$1" pin="GND@2" pad="4"/>         <connect gate="G$1" pin="X_TAL@2" pad="3"/>       </connects>-      <technologies><technology name=""/></technologies>+      <technologies>+        <technology name="">+          <attribute name="MPN" value="CXB006XMD089" constant="no"/>+          <attribute name="MANUFACTURER" value="CREC" constant="no"/>+          <attribute name="DATASHEET" value="https://datasheet.lcsc.com/datasheet/pdf/893e91931cc13a29806df852ca02b7ed.pdf" constant="no"/>+          <attribute name="ADOM_WIKI" value="https://wiki.adom.inc/adom/cxb006xmd089" constant="no"/>+          <attribute name="LCSC_PN" value="C19631450" constant="no"/>+        </technology>+      </technologies>     </device>   </devices> </deviceset>
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);});