12 |
- (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[3404],{76656:function(t,e,i){var n=i(33051),a=i(80423),o=i(3245),r=i(32234),s=r.makeInner,c=s();function l(t,e){e=e||[0,360],o.call(this,"angle",t,e),this.type="category"}l.prototype={constructor:l,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToAngle:o.prototype.dataToCoord,angleToData:o.prototype.coordToData,calculateCategoryInterval:function(){var t=this,e=t.getLabelModel(),i=t.scale,n=i.getExtent(),o=i.count();if(n[1]-n[0]<1)return 0;var r=n[0],s=t.dataToCoord(r+1)-t.dataToCoord(r),l=Math.abs(s),h=a.getBoundingRect(r,e.getFont(),"center","top"),u=Math.max(h.height,7),d=u/l;isNaN(d)&&(d=1/0);var g=Math.max(0,Math.floor(d)),x=c(t.model),p=x.lastAutoInterval,f=x.lastTickCount;return null!=p&&null!=f&&Math.abs(p-g)<=1&&Math.abs(f-o)<=1&&p>g?g=p:(x.lastTickCount=o,x.lastAutoInterval=g),g}},n.inherits(l,o);var h=l;t.exports=h},31696:function(t,e,i){var n=i(33051),a=i(98071),o=i(21293),r=i(16650),s=a.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});n.merge(s.prototype,r);var c={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function l(t,e){return e.type||(e.data?"category":"value")}o("angle",s,l,c.angle),o("radius",s,l,c.radius)},86934:function(t,e,i){var n=i(25341),a=i(76656),o=function(t){this.name=t||"",this.cx=0,this.cy=0,this._radiusAxis=new n,this._angleAxis=new a,this._radiusAxis.polar=this._angleAxis.polar=this};o.prototype={type:"polar",axisPointerEnabled:!0,constructor:o,dimensions:["radius","angle"],model:null,containPoint:function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},containData:function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},getAxis:function(t){return this["_"+t+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},dataToPoint:function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},pointToData:function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},pointToCoord:function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),o=Math.min(a[0],a[1]),r=Math.max(a[0],a[1]);n.inverse?o=r-360:r=o+360;var s=Math.sqrt(e*e+i*i);e/=s,i/=s;var c=Math.atan2(-i,e)/Math.PI*180,l=c<o?1:-1;while(c<o||c>r)c+=360*l;return[s,c]},coordToPoint:function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,a=-Math.sin(i)*e+this.cy;return[n,a]},getArea:function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var n=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*a,endAngle:-n[1]*a,clockwise:t.inverse,contain:function(t,e){var i=t-this.cx,n=e-this.cy,a=i*i+n*n,o=this.r,r=this.r0;return a<=o*o&&a>=r*r}}}};var r=o;t.exports=r},46681:function(t,e,i){var n=i(70492);i(31696);var a=n.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e,i=this.ecModel;return i.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});t.exports=a},25341:function(t,e,i){var n=i(33051),a=i(3245);function o(t,e){a.call(this,"radius",t,e),this.type="category"}o.prototype={constructor:o,pointToData:function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},dataToRadius:a.prototype.dataToCoord,radiusToData:a.prototype.coordToData},n.inherits(o,a);var r=o;t.exports=r},90580:function(t,e,i){var n=i(38175),a=(n.__DEV__,i(33051)),o=i(86934),r=i(85669),s=r.parsePercent,c=i(97980),l=c.createScaleByModel,h=c.niceScaleExtent,u=i(95899),d=i(99936),g=d.getStackedDimension;function x(t,e,i){var n=e.get("center"),o=i.getWidth(),r=i.getHeight();t.cx=s(n[0],o),t.cy=s(n[1],r);var c=t.getRadiusAxis(),l=Math.min(o,r)/2,h=e.get("radius");null==h?h=[0,"100%"]:a.isArray(h)||(h=[0,h]),h=[s(h[0],l),s(h[1],l)],c.inverse?c.setExtent(h[1],h[0]):c.setExtent(h[0],h[1])}function p(t,e){var i=this,n=i.getAngleAxis(),o=i.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===i){var e=t.getData();a.each(e.mapDimension("radius",!0),(function(t){o.scale.unionExtentFromData(e,g(e,t))})),a.each(e.mapDimension("angle",!0),(function(t){n.scale.unionExtentFromData(e,g(e,t))}))}})),h(n.scale,n.model),h(o.scale,o.model),"category"===n.type&&!n.onBand){var r=n.getExtent(),s=360/n.scale.count();n.inverse?r[1]+=s:r[1]-=s,n.setExtent(r[0],r[1])}}function f(t,e){if(t.type=e.get("type"),t.scale=l(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType){t.inverse^=e.get("clockwise");var i=e.get("startAngle");t.setExtent(i,i+(t.inverse?-360:360))}e.axis=t,t.model=e}i(46681);var y={dimensions:o.prototype.dimensions,create:function(t,e){var i=[];return t.eachComponent("polar",(function(t,n){var a=new o(n);a.update=p;var r=a.getRadiusAxis(),s=a.getAngleAxis(),c=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");f(r,c),f(s,l),x(a,t,e),i.push(a),t.coordinateSystem=a,a.model=t})),t.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"polar",index:e.get("polarIndex"),id:e.get("polarId")})[0];e.coordinateSystem=i.coordinateSystem}})),i}};u.register("polar",y)},54649:function(t,e,i){var n=i(33051);function a(t,e){return n.map(["Radius","Angle"],(function(i,n){var a=this["get"+i+"Axis"](),o=e[n],r=t[n]/2,s="dataTo"+i,c="category"===a.type?a.getBandWidth():Math.abs(a[s](o-r)-a[s](o+r));return"Angle"===i&&(c=c*Math.PI/180),c}),this)}function o(t){var e=t.getRadiusAxis(),i=t.getAngleAxis(),o=e.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:o[1],r0:o[0]},api:{coord:n.bind((function(n){var a=e.dataToRadius(n[0]),o=i.dataToAngle(n[1]),r=t.coordToPoint([a,o]);return r.push(a,o*Math.PI/180),r})),size:n.bind(a,t)}}}t.exports=o},20139:function(t,e,i){var n=i(33051),a=i(3245);function o(t,e,i){a.call(this,t,e,i),this.type="value",this.angle=0,this.name="",this.model}n.inherits(o,a);var r=o;t.exports=r},26884:function(t,e,i){var n=i(33051),a=i(20139),o=i(70103),r=i(85669),s=i(97980),c=s.getScaleExtent,l=s.niceScaleExtent,h=i(95899),u=i(76304);function d(t,e,i){this._model=t,this.dimensions=[],this._indicatorAxes=n.map(t.getIndicatorModels(),(function(t,e){var i="indicator_"+e,n=new a(i,"log"===t.get("axisType")?new u:new o);return n.name=t.get("name"),n.model=t,t.axis=n,this.dimensions.push(i),n}),this),this.resize(t,i),this.cx,this.cy,this.r,this.r0,this.startAngle}d.prototype.getIndicatorAxes=function(){return this._indicatorAxes},d.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},d.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,a=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[a,o]},d.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a,o=Math.atan2(-i,e),r=1/0,s=-1,c=0;c<this._indicatorAxes.length;c++){var l=this._indicatorAxes[c],h=Math.abs(o-l.angle);h<r&&(a=l,s=c,r=h)}return[s,+(a&&a.coordToData(n))]},d.prototype.resize=function(t,e){var i=t.get("center"),a=e.getWidth(),o=e.getHeight(),s=Math.min(a,o)/2;this.cx=r.parsePercent(i[0],a),this.cy=r.parsePercent(i[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var c=t.get("radius");"string"!==typeof c&&"number"!==typeof c||(c=[0,c]),this.r0=r.parsePercent(c[0],s),this.r=r.parsePercent(c[1],s),n.each(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var i=this.startAngle+e*Math.PI*2/this._indicatorAxes.length;i=Math.atan2(Math.sin(i),Math.cos(i)),t.angle=i}),this)},d.prototype.update=function(t,e){var i=this._indicatorAxes,a=this._model;n.each(i,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeriesByType("radar",(function(e,o){if("radar"===e.get("coordinateSystem")&&t.getComponent("radar",e.get("radarIndex"))===a){var r=e.getData();n.each(i,(function(t){t.scale.unionExtentFromData(r,r.mapDimension(t.dim))}))}}),this);var o=a.get("splitNumber");function s(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),i=t/e;return 2===i?i=5:i*=2,i*e}n.each(i,(function(t,e){var i=c(t.scale,t.model).extent;l(t.scale,t.model);var n=t.model,a=t.scale,h=n.getMin(),u=n.getMax(),d=a.getInterval();if(null!=h&&null!=u)a.setExtent(+h,+u),a.setInterval((u-h)/o);else if(null!=h){do{x=h+d*o,a.setExtent(+h,x),a.setInterval(d),d=s(d)}while(x<i[1]&&isFinite(x)&&isFinite(i[1]))}else if(null!=u){do{p=u-d*o,a.setExtent(p,+u),a.setInterval(d),d=s(d)}while(p>i[0]&&isFinite(p)&&isFinite(i[0]))}else{var g=a.getTicks().length-1;g>o&&(d=s(d));var x=Math.ceil(i[1]/d)*d,p=r.round(x-d*o);a.setExtent(p,x),a.setInterval(d)}}))},d.dimensions=[],d.create=function(t,e){var i=[];return t.eachComponent("radar",(function(n){var a=new d(n,t,e);i.push(a),n.coordinateSystem=a})),t.eachSeriesByType("radar",(function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])})),i},h.register("radar",d);var g=d;t.exports=g},48681:function(t,e,i){var n=i(70492),a=i(33051),o=i(66484),r=i(4272),s=i(16650),c=o.valueAxis;function l(t,e){return a.defaults({show:e},t)}var h=n.extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),i=this.get("scale"),n=this.get("axisLine"),o=this.get("axisTick"),c=this.get("axisType"),l=this.get("axisLabel"),h=this.get("name"),u=this.get("name.show"),d=this.get("name.formatter"),g=this.get("nameGap"),x=this.get("triggerEvent"),p=a.map(this.get("indicator")||[],(function(p){null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var f=h;if(null!=p.color&&(f=a.defaults({color:p.color},h)),p=a.merge(a.clone(p),{boundaryGap:t,splitNumber:e,scale:i,axisLine:n,axisTick:o,axisType:c,axisLabel:l,name:p.text,nameLocation:"end",nameGap:g,nameTextStyle:f,triggerEvent:x},!1),u||(p.name=""),"string"===typeof d){var y=p.name;p.name=d.replace("{value}",null!=y?y:"")}else"function"===typeof d&&(p.name=d(p.name,p));var m=a.extend(new r(p,null,this.ecModel),s);return m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this.getIndicatorModels=function(){return p}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:a.merge({lineStyle:{color:"#bbb"}},c.axisLine),axisLabel:l(c.axisLabel,!1),axisTick:l(c.axisTick,!1),axisType:"interval",splitLine:l(c.splitLine,!0),splitArea:l(c.splitArea,!0),indicator:[]}}),u=h;t.exports=u},35203:function(t,e,i){var n=i(33051),a=i(98071),o=i(21293),r=i(16650),s=a.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),c={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};function l(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,r),o("single",s,l,c);var h=s;t.exports=h},62933:function(t,e,i){var n=i(50465),a=i(97980),o=i(76172),r=o.getLayoutRect,s=i(33051),c=s.each;function l(t,e,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,i),this.model=t}l.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:l,_init:function(t,e,i){var o=this.dimension,r=new n(o,a.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===r.type;r.onBand=s&&t.get("boundaryGap"),r.inverse=t.get("inverse"),r.orient=t.get("orient"),t.axis=r,r.model=t,r.coordinateSystem=this,this._axis=r},update:function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();c(e.mapDimension(this.dimension,!0),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),a.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},resize:function(t,e){this._rect=r({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,i=e.isHorizontal(),n=i?[0,t.width]:[0,t.height],a=e.reverse?1:0;e.setExtent(n[a],n[1-a]),this._updateAxisTransform(e,i?t.x:t.y)},_updateAxisTransform:function(t,e){var i=t.getExtent(),n=i[0]+i[1],a=t.isHorizontal();t.toGlobalCoord=a?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord=a?function(t){return t-e}:function(t){return n-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(t){var e=this.getRect(),i=this.getAxis(),n=i.orient;return"horizontal"===n?i.contain(i.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:i.contain(i.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),i=this.getRect(),n=[],a="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n}};var h=l;t.exports=h},50465:function(t,e,i){var n=i(33051),a=i(3245),o=function(t,e,i,n,o){a.call(this,t,e,i),this.type=n||"value",this.position=o||"bottom",this.orient=null};o.prototype={constructor:o,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},pointToData:function(t,e){return this.coordinateSystem.pointToData(t,e)[0]},toGlobalCoord:null,toLocalCoord:null},n.inherits(o,a);var r=o;t.exports=r},50878:function(t,e,i){var n=i(33051);function a(t,e){var i=this.getAxis(),n=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(n-a)-i.dataToCoord(n+a))}function o(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(a,t)}}}t.exports=o},48337:function(t,e,i){var n=i(33051);function a(t,e){e=e||{};var i=t.coordinateSystem,a=t.axis,o={},r=a.position,s=a.orient,c=i.getRect(),l=[c.x,c.x+c.width,c.y,c.y+c.height],h={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=["vertical"===s?h.vertical[r]:l[0],"horizontal"===s?h.horizontal[r]:l[3]];var u={horizontal:0,vertical:1};o.rotation=Math.PI/2*u[s];var d={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=d[r],t.get("axisTick.inside")&&(o.tickDirection=-o.tickDirection),n.retrieve(e.labelInside,t.get("axisLabel.inside"))&&(o.labelDirection=-o.labelDirection);var g=e.rotate;return null==g&&(g=t.get("axisLabel.rotate")),o.labelRotation="top"===r?-g:g,o.z2=1,o}e.layout=a},2798:function(t,e,i){var n=i(62933),a=i(95899);function o(t,e){var i=[];return t.eachComponent("singleAxis",(function(a,o){var r=new n(a,t,e);r.name="single_"+o,r.resize(a,e),a.coordinateSystem=r,i.push(r)})),t.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var i=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=i&&i.coordinateSystem}})),i}a.register("single",{create:o,dimensions:n.prototype.dimensions})}}]);
- //# sourceMappingURL=chunk-vendors-8337125e.76b541c9.js.map
|