12 |
- (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[653],{88791:function(e,t,i){i(54805),i(42567)},60517:function(e,t,i){var n=i(33051),o=i(51177),a=i(4272),r=i(11726),l=i(58608),s=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function g(e,t,i){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],i]),o=e.coordToPoint([t[1],i]);return{x1:n[0],y1:n[1],x2:o[0],y2:o[1]}}function c(e){var t=e.getRadiusAxis();return t.inverse?0:1}function d(e){var t=e[0],i=e[e.length-1];t&&i&&Math.abs(Math.abs(t.coord-i.coord)-360)<1e-4&&e.pop()}var h=r.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),r=i.getTicksCoords(),l=i.getMinorTicksCoords(),g=n.map(i.getViewLabels(),(function(e){e=n.clone(e);return e.coord=i.dataToCoord(e.tickValue),e}));d(g),d(r),n.each(s,(function(t){!e.get(t+".show")||i.scale.isBlank()&&"axisLine"!==t||this["_"+t](e,o,r,l,a,g)}),this)}},_axisLine:function(e,t,i,n,a){var r,l=e.getModel("axisLine.lineStyle"),s=c(t),g=s?0:1;r=0===a[g]?new o.Circle({shape:{cx:t.cx,cy:t.cy,r:a[s]},style:l.getLineStyle(),z2:1,silent:!0}):new o.Ring({shape:{cx:t.cx,cy:t.cy,r:a[s],r0:a[g]},style:l.getLineStyle(),z2:1,silent:!0}),r.style.fill=null,this.group.add(r)},_axisTick:function(e,t,i,a,r){var l=e.getModel("axisTick"),s=(l.get("inside")?-1:1)*l.get("length"),d=r[c(t)],h=n.map(i,(function(e){return new o.Line({shape:g(t,[d,d+s],e.coord)})}));this.group.add(o.mergePath(h,{style:n.defaults(l.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_minorTick:function(e,t,i,a,r){if(a.length){for(var l=e.getModel("axisTick"),s=e.getModel("minorTick"),d=(l.get("inside")?-1:1)*s.get("length"),h=r[c(t)],u=[],p=0;p<a.length;p++)for(var x=0;x<a[p].length;x++)u.push(new o.Line({shape:g(t,[h,h+d],a[p][x].coord)}));this.group.add(o.mergePath(u,{style:n.defaults(s.getModel("lineStyle").getLineStyle(),n.defaults(l.getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")}))}))}},_axisLabel:function(e,t,i,r,s,g){var d=e.getCategories(!0),h=e.getModel("axisLabel"),u=h.get("margin"),p=e.get("triggerEvent");n.each(g,(function(i,n){var r=h,g=i.tickValue,x=s[c(t)],f=t.coordToPoint([x+u,i.coord]),y=t.cx,v=t.cy,m=Math.abs(f[0]-y)/x<.3?"center":f[0]>y?"left":"right",L=Math.abs(f[1]-v)/x<.3?"middle":f[1]>v?"top":"bottom";d&&d[g]&&d[g].textStyle&&(r=new a(d[g].textStyle,h,h.ecModel));var A=new o.Text({silent:l.isLabelSilent(e)});this.group.add(A),o.setTextStyle(A.style,r,{x:f[0],y:f[1],textFill:r.getTextColor()||e.get("axisLine.lineStyle.color"),text:i.formattedLabel,textAlign:m,textVerticalAlign:L}),p&&(A.eventData=l.makeAxisEventDataBase(e),A.eventData.targetType="axisLabel",A.eventData.value=i.rawLabel)}),this)},_splitLine:function(e,t,i,a,r){var l=e.getModel("splitLine"),s=l.getModel("lineStyle"),c=s.get("color"),d=0;c=c instanceof Array?c:[c];for(var h=[],u=0;u<i.length;u++){var p=d++%c.length;h[p]=h[p]||[],h[p].push(new o.Line({shape:g(t,r,i[u].coord)}))}for(u=0;u<h.length;u++)this.group.add(o.mergePath(h[u],{style:n.defaults({stroke:c[u%c.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},_minorSplitLine:function(e,t,i,n,a){if(n.length){for(var r=e.getModel("minorSplitLine"),l=r.getModel("lineStyle"),s=[],c=0;c<n.length;c++)for(var d=0;d<n[c].length;d++)s.push(new o.Line({shape:g(t,a,n[c][d].coord)}));this.group.add(o.mergePath(s,{style:l.getLineStyle(),silent:!0,z:e.get("z")}))}},_splitArea:function(e,t,i,a,r){if(i.length){var l=e.getModel("splitArea"),s=l.getModel("areaStyle"),g=s.get("color"),c=0;g=g instanceof Array?g:[g];for(var d=[],h=Math.PI/180,u=-i[0].coord*h,p=Math.min(r[0],r[1]),x=Math.max(r[0],r[1]),f=e.get("clockwise"),y=1;y<i.length;y++){var v=c++%g.length;d[v]=d[v]||[],d[v].push(new o.Sector({shape:{cx:t.cx,cy:t.cy,r0:p,r:x,startAngle:u,endAngle:-i[y].coord*h,clockwise:f},silent:!0})),u=-i[y].coord*h}for(y=0;y<d.length;y++)this.group.add(o.mergePath(d[y],{style:n.defaults({fill:g[y%g.length]},s.getAreaStyle()),silent:!0}))}}});e.exports=h},58608:function(e,t,i){var n=i(33051),o=n.retrieve,a=n.defaults,r=n.extend,l=n.each,s=i(78988),g=i(51177),c=i(4272),d=i(85669),h=d.isRadianAroundZero,u=d.remRadian,p=i(41525),x=p.createSymbol,f=i(32892),y=i(45280),v=y.applyTransform,m=i(97980),L=m.shouldShowAllLabels,A=Math.PI,S=function(e,t){this.opt=t,this.axisModel=e,a(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new g.Group;var i=new g.Group({position:t.position.slice(),rotation:t.rotation});i.updateTransform(),this._transform=i.transform,this._dumbGroup=i};S.prototype={constructor:S,hasBuilder:function(e){return!!b[e]},add:function(e){b[e].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var i=this.axisModel.axis.getExtent(),n=this._transform,o=[i[0],0],a=[i[1],0];n&&(v(o,o,n),v(a,a,n));var s=r({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new g.Line({anid:"line",subPixelOptimize:!0,shape:{x1:o[0],y1:o[1],x2:a[0],y2:a[1]},style:s,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1}));var c=t.get("axisLine.symbol"),d=t.get("axisLine.symbolSize"),h=t.get("axisLine.symbolOffset")||0;if("number"===typeof h&&(h=[h,h]),null!=c){"string"===typeof c&&(c=[c,c]),"string"!==typeof d&&"number"!==typeof d||(d=[d,d]);var u=d[0],p=d[1];l([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((o[0]-a[0])*(o[0]-a[0])+(o[1]-a[1])*(o[1]-a[1]))}],(function(t,i){if("none"!==c[i]&&null!=c[i]){var n=x(c[i],-u/2,-p/2,u,p,s.stroke,!0),a=t.r+t.offset,r=[o[0]+a*Math.cos(e.rotation),o[1]-a*Math.sin(e.rotation)];n.attr({rotation:t.rotate,position:r,silent:!0,z2:11}),this.group.add(n)}}),this)}}},axisTickLabel:function(){var e=this.axisModel,t=this.opt,i=B(this,e,t),n=V(this,e,t);C(e,n,i),z(this,e,t)},axisName:function(){var e=this.opt,t=this.axisModel,i=o(e.axisName,t.get("name"));if(i){var n,a,l=t.get("nameLocation"),c=e.nameDirection,d=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,u=this.axisModel.axis.getExtent(),p=u[0]>u[1]?-1:1,x=["start"===l?u[0]-p*h:"end"===l?u[1]+p*h:(u[0]+u[1])/2,G(l)?e.labelOffset+c*h:0],f=t.get("nameRotate");null!=f&&(f=f*A/180),G(l)?n=M(e.rotation,null!=f?f:e.rotation,c):(n=_(e,l,f||0,u),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(n.rotation)),!isFinite(a)&&(a=null)));var y=d.getFont(),v=t.get("nameTruncate",!0)||{},m=v.ellipsis,L=o(e.nameTruncateMaxWidth,v.maxWidth,a),S=null!=m&&null!=L?s.truncateText(i,L,y,m,{minChar:2,placeholder:v.placeholder}):i,b=t.get("tooltip",!0),C=t.mainType,w={componentType:C,name:i,$vars:["name"]};w[C+"Index"]=t.componentIndex;var P=new g.Text({anid:"name",__fullText:i,__truncatedText:S,position:x,rotation:n.rotation,silent:k(t),z2:1,tooltip:b&&b.show?r({content:i,formatter:function(){return i},formatterParams:w},b):null});g.setTextStyle(P.style,d,{text:S,textFont:y,textFill:d.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:d.get("align")||n.textAlign,textVerticalAlign:d.get("verticalAlign")||n.textVerticalAlign}),t.get("triggerEvent")&&(P.eventData=T(t),P.eventData.targetType="axisName",P.eventData.name=i),this._dumbGroup.add(P),P.updateTransform(),this.group.add(P),P.decomposeTransform()}}},T=S.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},M=S.innerTextLayout=function(e,t,i){var n,o,a=u(t-e);return h(a)?(o=i>0?"top":"bottom",n="center"):h(a-A)?(o=i>0?"bottom":"top",n="center"):(o="middle",n=a>0&&a<A?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}};function _(e,t,i,n){var o,a,r=u(i-e.rotation),l=n[0]>n[1],s="start"===t&&!l||"start"!==t&&l;return h(r-A/2)?(a=s?"bottom":"top",o="center"):h(r-1.5*A)?(a=s?"top":"bottom",o="center"):(a="middle",o=r<1.5*A&&r>A/2?s?"left":"right":s?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}var k=S.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)};function C(e,t,i){if(!L(e.axis)){var n=e.get("axisLabel.showMinLabel"),o=e.get("axisLabel.showMaxLabel");t=t||[],i=i||[];var a=t[0],r=t[1],l=t[t.length-1],s=t[t.length-2],g=i[0],c=i[1],d=i[i.length-1],h=i[i.length-2];!1===n?(w(a),w(g)):P(a,r)&&(n?(w(r),w(c)):(w(a),w(g))),!1===o?(w(l),w(d)):P(s,l)&&(o?(w(s),w(h)):(w(l),w(d)))}}function w(e){e&&(e.ignore=!0)}function P(e,t,i){var n=e&&e.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(n&&o){var a=f.identity([]);return f.rotate(a,a,-e.rotation),n.applyTransform(f.mul([],a,e.getLocalTransform())),o.applyTransform(f.mul([],a,t.getLocalTransform())),n.intersect(o)}}function G(e){return"middle"===e||"center"===e}function D(e,t,i,n,o){for(var a=[],r=[],l=[],s=0;s<e.length;s++){var c=e[s].coord;r[0]=c,r[1]=0,l[0]=c,l[1]=i,t&&(v(r,r,t),v(l,l,t));var d=new g.Line({anid:o+"_"+e[s].tickValue,subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:l[0],y2:l[1]},style:n,z2:2,silent:!0});a.push(d)}return a}function B(e,t,i){var n=t.axis,o=t.getModel("axisTick");if(o.get("show")&&!n.scale.isBlank()){for(var r=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),s=n.getTicksCoords(),g=D(s,e._transform,l,a(r.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}),"ticks"),c=0;c<g.length;c++)e.group.add(g[c]);return g}}function z(e,t,i){var n=t.axis,o=t.getModel("minorTick");if(o.get("show")&&!n.scale.isBlank()){var r=n.getMinorTicksCoords();if(r.length)for(var l=o.getModel("lineStyle"),s=i.tickDirection*o.get("length"),g=a(l.getLineStyle(),a(t.getModel("axisTick").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})),c=0;c<r.length;c++)for(var d=D(r[c],e._transform,s,g,"minorticks_"+c),h=0;h<d.length;h++)e.group.add(d[h])}}function V(e,t,i){var n=t.axis,a=o(i.axisLabelShow,t.get("axisLabel.show"));if(a&&!n.scale.isBlank()){var r=t.getModel("axisLabel"),s=r.get("margin"),d=n.getViewLabels(),h=(o(i.labelRotate,r.get("rotate"))||0)*A/180,u=M(i.rotation,h,i.labelDirection),p=t.getCategories&&t.getCategories(!0),x=[],f=k(t),y=t.get("triggerEvent");return l(d,(function(o,a){var l=o.tickValue,d=o.formattedLabel,h=o.rawLabel,v=r;p&&p[l]&&p[l].textStyle&&(v=new c(p[l].textStyle,r,t.ecModel));var m=v.getTextColor()||t.get("axisLine.lineStyle.color"),L=n.dataToCoord(l),A=[L,i.labelOffset+i.labelDirection*s],S=new g.Text({anid:"label_"+l,position:A,rotation:u.rotation,silent:f,z2:10});g.setTextStyle(S.style,v,{text:d,textAlign:v.getShallow("align",!0)||u.textAlign,textVerticalAlign:v.getShallow("verticalAlign",!0)||v.getShallow("baseline",!0)||u.textVerticalAlign,textFill:"function"===typeof m?m("category"===n.type?h:"value"===n.type?l+"":l,a):m}),y&&(S.eventData=T(t),S.eventData.targetType="axisLabel",S.eventData.value=h),e._dumbGroup.add(S),S.updateTransform(),x.push(S),e.group.add(S),S.decomposeTransform()})),x}}var R=S;e.exports=R},11726:function(e,t,i){var n=i(38175),o=(n.__DEV__,i(70492)),a=i(18490),r=o.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(e,t,i,n){this.axisPointerClass&&a.fixValue(e),r.superApply(this,"render",arguments),l(this,e,t,i,n,!0)},updateAxisPointer:function(e,t,i,n,o){l(this,e,t,i,n,!1)},remove:function(e,t){var i=this._axisPointer;i&&i.remove(t),r.superApply(this,"remove",arguments)},dispose:function(e,t){s(this,t),r.superApply(this,"dispose",arguments)}});function l(e,t,i,n,o,l){var g=r.getAxisPointerClass(e.axisPointerClass);if(g){var c=a.getAxisPointerModel(t);c?(e._axisPointer||(e._axisPointer=new g)).render(t,c,n,l):s(e,n)}}function s(e,t,i){var n=e._axisPointer;n&&n.dispose(t,i),e._axisPointer=null}var g=[];r.registerAxisPointerClass=function(e,t){g[e]=t},r.getAxisPointerClass=function(e){return e&&g[e]};var c=r;e.exports=c},42567:function(e,t,i){var n=i(33051),o=i(51177),a=i(58608),r=i(11726),l=i(49069),s=i(77956),g=s.rectCoordAxisBuildSplitArea,c=s.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine","minorSplitLine"],u=r.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(e,t,i,r){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new o.Group,this.group.add(this._axisGroup),e.get("show")){var g=e.getCoordSysModel(),c=l.layout(g,e),p=new a(e,c);n.each(d,p.add,p),this._axisGroup.add(p.getGroup()),n.each(h,(function(t){e.get(t+".show")&&this["_"+t](e,g)}),this),o.groupTransition(s,this._axisGroup,e),u.superCall(this,"render",e,t,i,r)}},remove:function(){c(this)},_splitLine:function(e,t){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),r=a.getModel("lineStyle"),l=r.get("color");l=n.isArray(l)?l:[l];for(var s=t.coordinateSystem.getRect(),g=i.isHorizontal(),c=0,d=i.getTicksCoords({tickModel:a}),h=[],u=[],p=r.getLineStyle(),x=0;x<d.length;x++){var f=i.toGlobalCoord(d[x].coord);g?(h[0]=f,h[1]=s.y,u[0]=f,u[1]=s.y+s.height):(h[0]=s.x,h[1]=f,u[0]=s.x+s.width,u[1]=f);var y=c++%l.length,v=d[x].tickValue;this._axisGroup.add(new o.Line({anid:null!=v?"line_"+d[x].tickValue:null,subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:u[0],y2:u[1]},style:n.defaults({stroke:l[y]},p),silent:!0}))}}},_minorSplitLine:function(e,t){var i=e.axis,n=e.getModel("minorSplitLine"),a=n.getModel("lineStyle"),r=t.coordinateSystem.getRect(),l=i.isHorizontal(),s=i.getMinorTicksCoords();if(s.length)for(var g=[],c=[],d=a.getLineStyle(),h=0;h<s.length;h++)for(var u=0;u<s[h].length;u++){var p=i.toGlobalCoord(s[h][u].coord);l?(g[0]=p,g[1]=r.y,c[0]=p,c[1]=r.y+r.height):(g[0]=r.x,g[1]=p,c[0]=r.x+r.width,c[1]=p),this._axisGroup.add(new o.Line({anid:"minor_line_"+s[h][u].tickValue,subPixelOptimize:!0,shape:{x1:g[0],y1:g[1],x2:c[0],y2:c[1]},style:d,silent:!0}))}},_splitArea:function(e,t){g(this,this._axisGroup,e,t)}});u.extend({type:"xAxis"}),u.extend({type:"yAxis"})},20594:function(e,t,i){var n=i(70492),o=i(33051),a=i(58608),r=i(63448),l=i(9344),s=i(51177),g=["axisLine","axisTickLabel","axisName"],c=n.extendComponentView({type:"parallelAxis",init:function(e,t){c.superApply(this,"init",arguments),(this._brushController=new r(t.getZr())).on("brush",o.bind(this._onBrush,this))},render:function(e,t,i,n){if(!d(e,t,n)){this.axisModel=e,this.api=i,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new s.Group,this.group.add(this._axisGroup),e.get("show")){var l=u(e,t),c=l.coordinateSystem,h=e.getAreaSelectStyle(),p=h.width,x=e.axis.dim,f=c.getAxisLayout(x),y=o.extend({strokeContainThreshold:p},f),v=new a(e,y);o.each(g,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(y,h,e,l,p,i);var m=n&&!1===n.animation?null:e;s.groupTransition(r,this._axisGroup,m)}}},_refreshBrushController:function(e,t,i,n,o,a){var r=i.axis.getExtent(),g=r[1]-r[0],c=Math.min(30,.1*Math.abs(g)),d=s.BoundingRect.create({x:r[0],y:-o/2,width:g,height:o});d.x-=c,d.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:l.makeRectPanelClipPath(d),isTargetByCursor:l.makeRectIsTargetByCursor(d,a,n),getLinearBrushOtherExtent:l.makeLinearBrushOtherExtent(d,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(h(i))},_onBrush:function(e,t){var i=this.axisModel,n=i.axis,a=o.map(e,(function(e){return[n.coordToData(e.range[0],!0),n.coordToData(e.range[1],!0)]}));(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},dispose:function(){this._brushController.dispose()}});function d(e,t,i){return i&&"axisAreaSelect"===i.type&&t.findComponents({mainType:"parallelAxis",query:i})[0]===e}function h(e){var t=e.axis;return o.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function u(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var p=c;e.exports=p},81832:function(e,t,i){var n=i(33051),o=i(51177),a=i(58608),r=i(11726),l=["axisLine","axisTickLabel","axisName"],s=["splitLine","splitArea","minorSplitLine"],g=r.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(e,t){if(this.group.removeAll(),e.get("show")){var i=e.axis,o=i.polar,r=o.getAngleAxis(),g=i.getTicksCoords(),d=i.getMinorTicksCoords(),h=r.getExtent()[0],u=i.getExtent(),p=c(o,e,h),x=new a(e,p);n.each(l,x.add,x),this.group.add(x.getGroup()),n.each(s,(function(t){e.get(t+".show")&&!i.scale.isBlank()&&this["_"+t](e,o,h,u,g,d)}),this)}},_splitLine:function(e,t,i,a,r){var l=e.getModel("splitLine"),s=l.getModel("lineStyle"),g=s.get("color"),c=0;g=g instanceof Array?g:[g];for(var d=[],h=0;h<r.length;h++){var u=c++%g.length;d[u]=d[u]||[],d[u].push(new o.Circle({shape:{cx:t.cx,cy:t.cy,r:r[h].coord}}))}for(h=0;h<d.length;h++)this.group.add(o.mergePath(d[h],{style:n.defaults({stroke:g[h%g.length],fill:null},s.getLineStyle()),silent:!0}))},_minorSplitLine:function(e,t,i,a,r,l){if(l.length){for(var s=e.getModel("minorSplitLine"),g=s.getModel("lineStyle"),c=[],d=0;d<l.length;d++)for(var h=0;h<l[d].length;h++)c.push(new o.Circle({shape:{cx:t.cx,cy:t.cy,r:l[d][h].coord}}));this.group.add(o.mergePath(c,{style:n.defaults({fill:null},g.getLineStyle()),silent:!0}))}},_splitArea:function(e,t,i,a,r){if(r.length){var l=e.getModel("splitArea"),s=l.getModel("areaStyle"),g=s.get("color"),c=0;g=g instanceof Array?g:[g];for(var d=[],h=r[0].coord,u=1;u<r.length;u++){var p=c++%g.length;d[p]=d[p]||[],d[p].push(new o.Sector({shape:{cx:t.cx,cy:t.cy,r0:h,r:r[u].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[u].coord}for(u=0;u<d.length;u++)this.group.add(o.mergePath(d[u],{style:n.defaults({fill:g[u%g.length]},s.getAreaStyle()),silent:!0}))}}});function c(e,t,i){return{position:[e.cx,e.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}e.exports=g},55165:function(e,t,i){var n=i(33051),o=i(58608),a=i(51177),r=i(48337),l=i(11726),s=i(77956),g=s.rectCoordAxisBuildSplitArea,c=s.rectCoordAxisHandleRemove,d=["axisLine","axisTickLabel","axisName"],h=["splitArea","splitLine"],u=l.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,t,i,l){var s=this.group;s.removeAll();var g=this._axisGroup;this._axisGroup=new a.Group;var c=r.layout(e),p=new o(e,c);n.each(d,p.add,p),s.add(this._axisGroup),s.add(p.getGroup()),n.each(h,(function(t){e.get(t+".show")&&this["_"+t](e)}),this),a.groupTransition(g,this._axisGroup,e),u.superCall(this,"render",e,t,i,l)},remove:function(){c(this)},_splitLine:function(e){var t=e.axis;if(!t.scale.isBlank()){var i=e.getModel("splitLine"),n=i.getModel("lineStyle"),o=n.get("width"),r=n.get("color");r=r instanceof Array?r:[r];for(var l=e.coordinateSystem.getRect(),s=t.isHorizontal(),g=[],c=0,d=t.getTicksCoords({tickModel:i}),h=[],u=[],p=0;p<d.length;++p){var x=t.toGlobalCoord(d[p].coord);s?(h[0]=x,h[1]=l.y,u[0]=x,u[1]=l.y+l.height):(h[0]=l.x,h[1]=x,u[0]=l.x+l.width,u[1]=x);var f=c++%r.length;g[f]=g[f]||[],g[f].push(new a.Line({subPixelOptimize:!0,shape:{x1:h[0],y1:h[1],x2:u[0],y2:u[1]},style:{lineWidth:o},silent:!0}))}for(p=0;p<g.length;++p)this.group.add(a.mergePath(g[p],{style:{stroke:r[p%r.length],lineDash:n.getLineDash(o),lineWidth:o},silent:!0}))}},_splitArea:function(e){g(this,this._axisGroup,e,e)}}),p=u;e.exports=p},77956:function(e,t,i){var n=i(33051),o=i(51177);function a(e,t,i,a){var r=i.axis;if(!r.scale.isBlank()){var l=i.getModel("splitArea"),s=l.getModel("areaStyle"),g=s.get("color"),c=a.coordinateSystem.getRect(),d=r.getTicksCoords({tickModel:l,clamp:!0});if(d.length){var h=g.length,u=e.__splitAreaColors,p=n.createHashMap(),x=0;if(u)for(var f=0;f<d.length;f++){var y=u.get(d[f].tickValue);if(null!=y){x=(y+(h-1)*f)%h;break}}var v=r.toGlobalCoord(d[0].coord),m=s.getAreaStyle();g=n.isArray(g)?g:[g];for(f=1;f<d.length;f++){var L,A,S,b,T=r.toGlobalCoord(d[f].coord);r.isHorizontal()?(L=v,A=c.y,S=T-L,b=c.height,v=L+S):(L=c.x,A=v,S=c.width,b=T-A,v=A+b);var M=d[f-1].tickValue;null!=M&&p.set(M,x),t.add(new o.Rect({anid:null!=M?"area_"+M:null,shape:{x:L,y:A,width:S,height:b},style:n.defaults({fill:g[x]},m),silent:!0})),x=(x+1)%h}e.__splitAreaColors=p}}}function r(e){e.__splitAreaColors=null}t.rectCoordAxisBuildSplitArea=a,t.rectCoordAxisHandleRemove=r}}]);
- //# sourceMappingURL=chunk-vendors-799ff171.ed080fcd.js.map
|