← Commit history

a4975slbtr-t: viewers

Ray ·9d90e870be · ·parent 82e1aaa
1 file changed +4−3
viewers/symbol.html+4−3
@@ -23,10 +23,10 @@ rect.pad.hi{stroke:var(--hi);stroke-width:.15;paint-order:stroke} #tip .td{font-size:11px;color:var(--ink);margin-top:5px;line-height:1.4} </style></head><body> <div class=bar><span class=h>Schematic symbol</span><span class=sp></span></div>-<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-850 -500 1700 1000' style='width:100%;height:100%'><rect x='-600.0' y='-450.0' width='1200.0' height='900.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='PFD'><line class='pinvis' x1='-800.0' y1='-350.0' x2='-600.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-350.0' x2='-600.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-305.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-570.0' y='-350.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>PFD</text><g class='pingroup' data-num='2' data-name='REF'><line class='pinvis' x1='-800.0' y1='-250.0' x2='-600.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-250.0' x2='-600.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-205.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-570.0' y='-250.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>REF</text><g class='pingroup' data-num='3' data-name='RC'><line class='pinvis' x1='-800.0' y1='-150.0' x2='-600.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-150.0' x2='-600.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-570.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>RC</text><g class='pingroup' data-num='4' data-name='GROUND'><line class='pinvis' x1='-800.0' y1='-50.0' x2='-600.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-50.0' x2='-600.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-570.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='5' data-name='GROUND'><line class='pinvis' x1='-800.0' y1='50.0' x2='-600.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='50.0' x2='-600.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-570.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='6' data-name='LOGIC SUPPLY (VCC)'><line class='pinvis' x1='-800.0' y1='150.0' x2='-600.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='150.0' x2='-600.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-570.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>LOGIC SUPPLY (VCC)</text><g class='pingroup' data-num='7' data-name='PHASE'><line class='pinvis' x1='-800.0' y1='250.0' x2='-600.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='250.0' x2='-600.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='295.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='-570.0' y='250.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>PHASE</text><g class='pingroup' data-num='8' data-name='D2 (DATA2)'><line class='pinvis' x1='-800.0' y1='350.0' x2='-600.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='350.0' x2='-600.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='395.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-570.0' y='350.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>D2 (DATA2)</text><g class='pingroup' data-num='16' data-name='LOAD SUPPLY (VBB)'><line class='pinvis' x1='800.0' y1='-350.0' x2='600.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-350.0' x2='600.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-395.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>16</text><text x='570.0' y='-350.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>LOAD SUPPLY (VBB)</text><g class='pingroup' data-num='15' data-name='OUTB'><line class='pinvis' x1='800.0' y1='-250.0' x2='600.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-250.0' x2='600.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-295.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>15</text><text x='570.0' y='-250.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>OUTB</text><g class='pingroup' data-num='14' data-name='D0 (DATA0)'><line class='pinvis' x1='800.0' y1='-150.0' x2='600.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-150.0' x2='600.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>14</text><text x='570.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>D0 (DATA0)</text><g class='pingroup' data-num='13' data-name='GROUND'><line class='pinvis' x1='800.0' y1='-50.0' x2='600.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-50.0' x2='600.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>13</text><text x='570.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='12' data-name='GROUND'><line class='pinvis' x1='800.0' y1='50.0' x2='600.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='50.0' x2='600.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>12</text><text x='570.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='11' data-name='SENSE'><line class='pinvis' x1='800.0' y1='150.0' x2='600.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='150.0' x2='600.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>11</text><text x='570.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>SENSE</text><g class='pingroup' data-num='10' data-name='OUTA'><line class='pinvis' x1='800.0' y1='250.0' x2='600.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='250.0' x2='600.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='205.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>10</text><text x='570.0' y='250.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>OUTA</text><g class='pingroup' data-num='9' data-name='D1 (DATA1)'><line class='pinvis' x1='800.0' y1='350.0' x2='600.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='350.0' x2='600.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='305.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>9</text><text x='570.0' y='350.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>D1 (DATA1)</text></svg></div>+<div class=stage id=stage><svg xmlns='http://www.w3.org/2000/svg' viewBox='-850 -500 1700 1000' style='width:100%;height:100%'><rect x='-600.0' y='-450.0' width='1200.0' height='900.0' fill='#e35d5d22' stroke='#e35d5d' stroke-width='4'/><g class='pingroup' data-num='1' data-name='PFD'><line class='pinvis' x1='-800.0' y1='-350.0' x2='-600.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-350.0' x2='-600.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-305.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>1</text><text x='-570.0' y='-350.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>PFD</text><g class='pingroup' data-num='2' data-name='REF (VREF)'><line class='pinvis' x1='-800.0' y1='-250.0' x2='-600.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-250.0' x2='-600.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-205.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>2</text><text x='-570.0' y='-250.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>REF (VREF)</text><g class='pingroup' data-num='3' data-name='RC'><line class='pinvis' x1='-800.0' y1='-150.0' x2='-600.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-150.0' x2='-600.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>3</text><text x='-570.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>RC</text><g class='pingroup' data-num='4' data-name='GROUND'><line class='pinvis' x1='-800.0' y1='-50.0' x2='-600.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='-50.0' x2='-600.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='-5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>4</text><text x='-570.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='5' data-name='GROUND'><line class='pinvis' x1='-800.0' y1='50.0' x2='-600.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='50.0' x2='-600.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>5</text><text x='-570.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='6' data-name='LOGIC SUPPLY (VCC)'><line class='pinvis' x1='-800.0' y1='150.0' x2='-600.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='150.0' x2='-600.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>6</text><text x='-570.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>LOGIC SUPPLY (VCC)</text><g class='pingroup' data-num='7' data-name='PHASE'><line class='pinvis' x1='-800.0' y1='250.0' x2='-600.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='250.0' x2='-600.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='295.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>7</text><text x='-570.0' y='250.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>PHASE</text><g class='pingroup' data-num='8' data-name='D2 (DATA2)'><line class='pinvis' x1='-800.0' y1='350.0' x2='-600.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='-800.0' y1='350.0' x2='-600.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='-700.0' y='395.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>8</text><text x='-570.0' y='350.0' font-size='60' fill='#e6e9ef' text-anchor='start' dominant-baseline='central'>D2 (DATA2)</text><g class='pingroup' data-num='16' data-name='LOAD SUPPLY (VBB)'><line class='pinvis' x1='800.0' y1='-350.0' x2='600.0' y2='-350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-350.0' x2='600.0' y2='-350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-395.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>16</text><text x='570.0' y='-350.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>LOAD SUPPLY (VBB)</text><g class='pingroup' data-num='15' data-name='OUTB'><line class='pinvis' x1='800.0' y1='-250.0' x2='600.0' y2='-250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-250.0' x2='600.0' y2='-250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-295.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>15</text><text x='570.0' y='-250.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>OUTB</text><g class='pingroup' data-num='14' data-name='D0 (DATA0)'><line class='pinvis' x1='800.0' y1='-150.0' x2='600.0' y2='-150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-150.0' x2='600.0' y2='-150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-195.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>14</text><text x='570.0' y='-150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>D0 (DATA0)</text><g class='pingroup' data-num='13' data-name='GROUND'><line class='pinvis' x1='800.0' y1='-50.0' x2='600.0' y2='-50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='-50.0' x2='600.0' y2='-50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='-95.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>13</text><text x='570.0' y='-50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='12' data-name='GROUND'><line class='pinvis' x1='800.0' y1='50.0' x2='600.0' y2='50.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='50.0' x2='600.0' y2='50.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='5.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>12</text><text x='570.0' y='50.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>GROUND</text><g class='pingroup' data-num='11' data-name='SENSE'><line class='pinvis' x1='800.0' y1='150.0' x2='600.0' y2='150.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='150.0' x2='600.0' y2='150.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='105.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>11</text><text x='570.0' y='150.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>SENSE</text><g class='pingroup' data-num='10' data-name='OUTA'><line class='pinvis' x1='800.0' y1='250.0' x2='600.0' y2='250.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='250.0' x2='600.0' y2='250.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='205.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>10</text><text x='570.0' y='250.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>OUTA</text><g class='pingroup' data-num='9' data-name='D1 (DATA1)'><line class='pinvis' x1='800.0' y1='350.0' x2='600.0' y2='350.0' stroke='#dfe4ec' stroke-width='4'/><line x1='800.0' y1='350.0' x2='600.0' y2='350.0' stroke='transparent' stroke-width='26' pointer-events='stroke'/></g><text x='700.0' y='305.0' font-size='60' fill='#9fb0c8' text-anchor='middle' dominant-baseline='central'>9</text><text x='570.0' y='350.0' font-size='60' fill='#e6e9ef' text-anchor='end' dominant-baseline='central'>D1 (DATA1)</text></svg></div> <div id=tip></div> <script>-var KIND="symbol", MPN="ADOM/A4975SLBTR-T", PINS=[{"desc":"","name":"PFD","number":"1","type":""},{"desc":"","name":"REF","number":"2","type":""},{"desc":"","name":"RC","number":"3","type":""},{"desc":"","name":"GROUND","number":"4","type":""},{"desc":"","name":"GROUND","number":"5","type":""},{"desc":"","name":"LOGIC SUPPLY (VCC)","number":"6","type":""},{"desc":"","name":"PHASE","number":"7","type":""},{"desc":"","name":"D2 (DATA2)","number":"8","type":""},{"desc":"","name":"LOAD SUPPLY (VBB)","number":"16","type":""},{"desc":"","name":"OUTB","number":"15","type":""},{"desc":"","name":"D0 (DATA0)","number":"14","type":""},{"desc":"","name":"GROUND","number":"13","type":""},{"desc":"","name":"GROUND","number":"12","type":""},{"desc":"","name":"SENSE","number":"11","type":""},{"desc":"","name":"OUTA","number":"10","type":""},{"desc":"","name":"D1 (DATA1)","number":"9","type":""}];+var KIND="symbol", MPN="ADOM/A4975SLBTR-T", PINS=[{"desc":"","name":"PFD","number":"1","type":""},{"desc":"","name":"REF (VREF)","number":"2","type":""},{"desc":"","name":"RC","number":"3","type":""},{"desc":"","name":"GROUND","number":"4","type":""},{"desc":"","name":"GROUND","number":"5","type":""},{"desc":"","name":"LOGIC SUPPLY (VCC)","number":"6","type":""},{"desc":"","name":"PHASE","number":"7","type":""},{"desc":"","name":"D2 (DATA2)","number":"8","type":""},{"desc":"","name":"LOAD SUPPLY (VBB)","number":"16","type":""},{"desc":"","name":"OUTB","number":"15","type":""},{"desc":"","name":"D0 (DATA0)","number":"14","type":""},{"desc":"","name":"GROUND","number":"13","type":""},{"desc":"","name":"GROUND","number":"12","type":""},{"desc":"","name":"SENSE","number":"11","type":""},{"desc":"","name":"OUTA","number":"10","type":""},{"desc":"","name":"D1 (DATA1)","number":"9","type":""}]; var byNum={}; PINS.forEach(function(p){byNum[String(p.number)]=p;}); var stage=document.getElementById('stage'), svg=stage.querySelector('svg'), tip=document.getElementById('tip'); // ---- pan/zoom ----@@ -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);});