Files
qhmes/web-dist/js/install-65EkHmmZ.js

2 lines
8.9 KiB
Java
Raw Normal View History

2026-06-16 18:19:57 +08:00
import{_ as F,P as nt,n as lt,S as Q,a as U,b as vt,p as C,L as $,r as gt,Z as K,c as X,i as j,l as Z,s as I,u as tt,d as ot,f as st,g as et,t as at,h as rt,G as it,j as ht,k as ut,m as ct,o as dt,q as yt,C as mt,v as ft,w as pt}from"./echarts-O0zoDaFZ.js";var wt=(function(){function w(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return w})(),St=(function(w){F(r,w);function r(t){var i=w.call(this,t)||this;return i.type="pointer",i}return r.prototype.getDefaultShape=function(){return new wt},r.prototype.buildPath=function(t,i){var y=Math.cos,g=Math.sin,e=i.r,u=i.width,v=i.angle,x=i.x-y(v)*u*(u>=e/3?1:2),m=i.y-g(v)*u*(u>=e/3?1:2);v=i.angle-Math.PI/2,t.moveTo(x,m),t.lineTo(i.x+y(v)*u,i.y+g(v)*u),t.lineTo(i.x+y(i.angle)*e,i.y+g(i.angle)*e),t.lineTo(i.x-y(v)*u,i.y-g(v)*u),t.lineTo(x,m)},r})(nt);function At(w,r){var t=w.get("center"),i=r.getWidth(),y=r.getHeight(),g=Math.min(i,y),e=C(t[0],r.getWidth()),u=C(t[1],r.getHeight()),v=C(w.get("radius"),g/2);return{cx:e,cy:u,r:v}}function Y(w,r){var t=w==null?"":w+"";return r&&(ct(r)?t=r.replace("{value}",t):dt(r)&&(t=r(w))),t}var Pt=(function(w){F(r,w);function r(){var t=w!==null&&w.apply(this,arguments)||this;return t.type=r.type,t}return r.prototype.render=function(t,i,y){this.group.removeAll();var g=t.get(["axisLine","lineStyle","color"]),e=At(t,y);this._renderMain(t,i,y,g,e),this._data=t.getData()},r.prototype.dispose=function(){},r.prototype._renderMain=function(t,i,y,g,e){var u=this.group,v=t.get("clockwise"),x=-t.get("startAngle")/180*Math.PI,m=-t.get("endAngle")/180*Math.PI,D=t.getModel("axisLine"),V=D.get("roundCap"),L=V?Q:U,f=D.get("show"),H=D.getModel("lineStyle"),_=H.get("width"),c=[x,m];lt(c,!v),x=c[0],m=c[1];for(var n=m-x,A=x,b=[],N=0;f&&N<g.length;N++){var k=Math.min(Math.max(g[N][0],0),1);m=x+n*k;var E=new L({shape:{startAngle:A,endAngle:m,cx:e.cx,cy:e.cy,clockwise:v,r0:e.r-_,r:e.r},silent:!0});E.setStyle({fill:g[N][1]}),E.setStyle(H.getLineStyle(["color","width"])),b.push(E),A=m}b.reverse(),vt(b,function(T){return u.add(T)});var M=function(T){if(T<=0)return g[0][1];var a;for(a=0;a<g.length;a++)if(g[a][0]>=T&&(a===0?0:g[a-1][0])<T)return g[a][1];return g[a-1][1]};this._renderTicks(t,i,y,M,e,x,m,v,_),this._renderTitleAndDetail(t,i,y,M,e),this._renderAnchor(t,e),this._renderPointer(t,i,y,M,e,x,m,v,_)},r.prototype._renderTicks=function(t,i,y,g,e,u,v,x,m){for(var D=this.group,V=e.cx,L=e.cy,f=e.r,H=+t.get("min"),_=+t.get("max"),c=t.getModel("splitLine"),n=t.getModel("axisTick"),A=t.getModel("axisLabel"),b=t.get("splitNumber"),N=n.get("splitNumber"),k=C(c.get("length"),f),E=C(n.get("length"),f),M=u,T=(v-u)/b,a=T/N,d=c.getModel("lineStyle").getLineStyle(),S=n.getModel("lineStyle").getLineStyle(),p=c.get("distance"),o,s,l=0;l<=b;l++){if(o=Math.cos(M),s=Math.sin(M),c.get("show")){var h=p?p+m:m,P=new $({shape:{x1:o*(f-h)+V,y1:s*(f-h)+L,x2:o*(f-k-h)+V,y2:s*(f-k-h)+L},style:d,silent:!0});d.stroke==="auto"&&P.setStyle({stroke:g(l/b)}),D.add(P)}if(A.get("show")){var h=A.get("distance")+p,G=Y(gt(l/b*(_-H)+H),A.get("formatter")),z=g(l/b),W=o*(f-k-h)+V,q=s*(f-k-h)+L,R=A.get("rotate"),O=0;R==="radial"?(O=-M+2*Math.PI,O>Math.PI/2&&(O+=Math.PI)):R==="tangential"?O=-M-Math.PI/2:yt(R)&&(O=R*Math.PI/180),O===0?D.add(new K({style:X(A,{text:G,x:W,y:q,verticalAlign:s<-.8?"top":s>.8?"bottom":"middle",align:o<-.4?"left":o>.4?"right":"center"},{inheritColor:z}),silent:!0})):D.add(new K({style:X(A,{text:G,x:W,y:q,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:W,originY:q,rotation:O}))}if(n.get("show")&&l!==b){var h=n.get("distance");h=h?h+m:m;for(var B=0;B<=N;B++){o=Math.cos(M),s=Math.sin(M);var J=new $({shape:{x1:o*(f-h)+V,y1:s*(f-h)+L,x2:o*(f-E-h)+V,y2:s*(f-E-h)+L},silent:!0,style:S});S.stroke==="auto"&&J.setStyle({stroke:g((l+B/N)/b)}),D.add(J),M+=a}M-=a}else M+=T}},r.prototype._renderPointer=function(t,i,y,g,e,u,v,x,m){var D=this.group,V=this._data,L=this._progressEls,f=[],H=t.get(["pointer","show"]),_=t.getModel("progress"),c=_.get("show"),n=t.getData(),A=n.mapDimension("value"),b=+t.get("min"),N=+t.get("max"),k=[b,N],E=[u,v];function M(a,d){var S=n.ge