You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingAnQiYeWeb/public/modules/vmlcontext_12545w.js

1 line
4.3 KiB

1 year ago
/**/_jsload2 && _jsload2('vmlcontext', 'var ah=10,bh=ah/2; function ch(a){this.vi=[[1,0,0],[0,1,0],[0,0,1]];this.oN=[];this.lK=[];this.xk=[];this.lineWidth=1;this.miterLimit=1*ah;this.canvas=a;var b=H("div");b.style.width=a.clientWidth+"px";b.style.height=a.clientHeight+"px";b.style.position="absolute";a.appendChild(b);this.yL=b;this.fN=this.Xw=this.Ww=1;document.styleSheets.canvas_style||(a=document.createStyleSheet(),a.owningElement.id="canvas_style",a.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\\\:shape,g_vml_\\\\:fill,g_vml_\\\\:stroke{behavior:url(#default#VML)}")} function dh(a,b){for(var c=[[1,0,0],[0,1,0],[0,0,1]],d=0;3>d;d++)for(var e=0;3>e;e++){for(var f=0,g=0;3>g;g++)f+=a[d][g]*b[g][e];c[d][e]=f}return c}var eh=ch.prototype;eh.clearRect=function(){this.yL.innerHTML=""};eh.beginPath=function(){this.xk=[]};eh.moveTo=function(a,b){var c=this.pi(a,b);this.xk.push({type:"moveTo",x:c.x,y:c.y});this.Ls=c.x;this.Ms=c.y};eh.lineTo=function(a,b){var c=this.pi(a,b);this.xk.push({type:"lineTo",x:c.x,y:c.y});this.Ls=c.x;this.Ms=c.y}; eh.bezierCurveTo=function(a,b,c,d,e,f){fh(this,this.pi(a,b),this.pi(c,d),this.pi(e,f))};function fh(a,b,c,d){a.xk.push({type:"bezierCurveTo",DW:b.x,EW:b.y,FW:c.x,GW:c.y,x:d.x,y:d.y});a.Ls=d.x;a.Ms=d.y}eh.quadraticCurveTo=function(a,b,c,d){a=this.pi(a,b);c=this.pi(c,d);d={x:this.Ls+2/3*(a.x-this.Ls),y:this.Ms+2/3*(a.y-this.Ms)};fh(this,d,{x:d.x+(c.x-this.Ls)/3,y:d.y+(c.y-this.Ms)/3},c)}; eh.arc=function(a,b,c,d,e,f){var c=c*ah,g=a+Math.cos(d)*c-bh,i=b+Math.sin(d)*c-bh,d=a+Math.cos(e)*c-bh,e=b+Math.sin(e)*c-bh;g==d&&!f&&(g+=0.125);a=this.pi(a,b);g=this.pi(g,i);d=this.pi(d,e);this.xk.push({type:f?"at":"wa",x:a.x,y:a.y,xa:c,h1:g.x,j1:g.y,g1:d.x,i1:d.y})};eh.rect=function(a,b,c,d){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+d);this.lineTo(a,b+d);this.closePath()}; eh.stroke=function(a){var b=[],c=a?this.fillStyle:this.strokeStyle,d=c.color,c=c.alpha;b.push("<g_vml_:shape",\' filled="\',!!a,\'"\',\' style="position:absolute;width:\',10,"px;height:",10,\'px;"\',\' coordorigin="0 0" coordsize="\',10*ah," ",10*ah,\'"\',\' stroked="\',!a,\'"\',\' path="\');for(var e=p,f=p,g=p,i=p,j=0;j<this.xk.length;j++){var l=this.xk[j];switch(l.type){case "moveTo":b.push(" m ",Math.round(l.x),",",Math.round(l.y));break;case "lineTo":b.push(" l ",Math.round(l.x),",",Math.round(l.y));break;case "close":b.push(" x "); l=p;break;case "bezierCurveTo":b.push(" c ",Math.round(l.DW),",",Math.round(l.EW),",",Math.round(l.FW),",",Math.round(l.GW),",",Math.round(l.x),",",Math.round(l.y));break;case "at":case "wa":b.push(" ",l.type," ",Math.round(l.x-this.Ww*l.xa),",",Math.round(l.y-this.Xw*l.xa)," ",Math.round(l.x+this.Ww*l.xa),",",Math.round(l.y+this.Xw*l.xa)," ",Math.round(l.h1),",",Math.round(l.j1)," ",Math.round(l.g1),",",Math.round(l.i1))}if(l){if(e==p||l.x<e)e=l.x;if(g==p||l.x>g)g=l.x;if(f==p||l.y<f)f=l.y;if(i== p||l.y>i)i=l.y}}b.push(\' ">\');a?b.push(\'<g_vml_:fill color="\',d,\'" opacity="\',c,\'" />\'):(a=this.fN*this.lineWidth,1>a&&(c*=a),b.push("<g_vml_:stroke",\' opacity="\',c,\'"\',\' joinstyle="\',this.lineJoin,\'"\',\' miterlimit="\',this.miterLimit,\'"\',\' endcap="\',"square",\'"\',\' weight="\',a,\'px"\',\' color="\',d,\'" />\'));b.push("</g_vml_:shape>");this.yL.insertAdjacentHTML("beforeEnd",b.join(""))};eh.fill=function(){this.stroke(o)};eh.closePath=function(){this.xk.push({type:"close"})}; eh.pi=function(a,b){var c=this.vi;return{x:ah*(a*c[0][0]+b*c[1][0]+c[2][0])-bh,y:ah*(a*c[0][1]+b*c[1][1]+c[2][1])-bh}};eh.save=function(){var a={};copyState(this,a);this.lK.push(a);this.oN.push(this.vi);this.vi=dh(createMatrixIdentity(),this.vi)};eh.restore=function(){copyState(this.lK.pop(),this);this.vi=this.oN.pop()}; function gh(a,b,c){var d;a:{for(d=0;3>d;d++)for(var e=0;2>e;e++)if(!isFinite(b[d][e])||isNaN(b[d][e])){d=q;break a}d=o}d&&(a.vi=b,c&&(a.fN=Math.sqrt(Math.abs(b[0][0]*b[1][1]-b[0][1]*b[1][0]))))}eh.translate=function(a,b){gh(this,dh([[1,0,0],[0,1,0],[a,b,1]],this.vi),q)};eh.rotate=function(a){var b=Math.cos(a),a=Math.sin(a);gh(this,dh(