chunk-vendors-bcd1cd2e.ad4b92d1.js 22 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[9159],{3229:function(e,t,i){i(90580),i(60517)},52528:function(e,t,i){var n=i(70492),a=i(33051),o=i(18490),r=i(96472);i(16572),i(48253),i(97326),n.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!a.isArray(t)&&(e.axisPointer.link=[t])}})),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=o.collect(e,t)})),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},r)},16572:function(e,t,i){var n=i(70492),a=n.extendComponentModel({type:"axisPointer",coordSysAxesInfo:null,defaultOption:{show:"auto",triggerOn:null,zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#aaa",width:1,type:"solid"},shadowStyle:{color:"rgba(150,150,150,0.3)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,shadowBlur:3,shadowColor:"#aaa"},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}}}),o=a;e.exports=o},48253:function(e,t,i){var n=i(70492),a=i(56996),o=n.extendComponentView({type:"axisPointer",render:function(e,t,i){var n=t.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";a.register("axisPointer",i,(function(e,t,i){"none"!==o&&("leave"===e||o.indexOf(e)>=0)&&i({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},remove:function(e,t){a.unregister(t.getZr(),"axisPointer"),o.superApply(this._model,"remove",arguments)},dispose:function(e,t){a.unregister("axisPointer",t),o.superApply(this._model,"dispose",arguments)}}),r=o;e.exports=r},47329:function(e,t,i){var n=i(33051),a=i(34251),o=i(51177),r=i(18490),s=i(61158),l=i(270),d=i(32234),u=d.makeInner,c=u(),p=n.clone,h=n.bind;function g(){}function f(e,t,i,n){x(c(i).lastProp,n)||(c(i).lastProp=n,t?o.updateProps(i,n,e):(i.stopAnimation(),i.attr(n)))}function x(e,t){if(n.isObject(e)&&n.isObject(t)){var i=!0;return n.each(t,(function(t,n){i=i&&x(e[n],t)})),!!i}return e===t}function v(e,t){e[t.get("label.show")?"show":"hide"]()}function m(e){return{position:e.position.slice(),rotation:e.rotation||0}}function y(e,t,i){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=n&&(e.z=n),null!=a&&(e.zlevel=a),e.silent=i)}))}g.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(e,t,i,a){var r=t.get("value"),s=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,a||this._lastValue!==r||this._lastStatus!==s){this._lastValue=r,this._lastStatus=s;var l=this._group,d=this._handle;if(!s||"hide"===s)return l&&l.hide(),void(d&&d.hide());l&&l.show(),d&&d.show();var u={};this.makeElOption(u,r,e,t,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var p=this._moveAnimation=this.determineAnimation(e,t);if(l){var h=n.curry(f,t,p);this.updatePointerEl(l,u,h,t),this.updateLabelEl(l,u,h,t)}else l=this._group=new o.Group,this.createPointerEl(l,u,e,t),this.createLabelEl(l,u,e,t),i.getZr().add(l);y(l,t,!0),this._renderHandle(r)}},remove:function(e){this.clear(e)},dispose:function(e){this.clear(e)},determineAnimation:function(e,t){var i=t.get("animation"),n=e.axis,a="category"===n.type,o=t.get("snap");if(!o&&!a)return!1;if("auto"===i||null==i){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=r.getAxisInfo(e).seriesDataCount,d=n.getExtent();return Math.abs(d[0]-d[1])/l>s}return!1}return!0===i},makeElOption:function(e,t,i,n,a){},createPointerEl:function(e,t,i,n){var a=t.pointer;if(a){var r=c(e).pointerEl=new o[a.type](p(t.pointer));e.add(r)}},createLabelEl:function(e,t,i,n){if(t.label){var a=c(e).labelEl=new o.Rect(p(t.label));e.add(a),v(a,n)}},updatePointerEl:function(e,t,i){var n=c(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),i(n,{shape:t.pointer.shape}))},updateLabelEl:function(e,t,i,n){var a=c(e).labelEl;a&&(a.setStyle(t.label.style),i(a,{shape:t.label.shape,position:t.label.position}),v(a,n))},_renderHandle:function(e){if(!this._dragging&&this.updateHandleTransform){var t,i=this._axisPointerModel,a=this._api.getZr(),r=this._handle,d=i.getModel("handle"),u=i.get("status");if(!d.get("show")||!u||"hide"===u)return r&&a.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=o.createIcon(d.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){s.stop(e.event)},onmousedown:h(this._onHandleDragMove,this,0,0),drift:h(this._onHandleDragMove,this),ondragend:h(this._onHandleDragEnd,this)}),a.add(r)),y(r,i,!1);var c=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];r.setStyle(d.getItemStyle(null,c));var p=d.get("size");n.isArray(p)||(p=[p,p]),r.attr("scale",[p[0]/2,p[1]/2]),l.createOrUpdate(this,"_doDispatchAxisPointer",d.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},_moveHandleToValue:function(e,t){f(this._axisPointerModel,!t&&this._moveAnimation,this._handle,m(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(e,t){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(m(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(m(n)),c(i).lastProp=null,this._doDispatchAxisPointer()}},_doDispatchAxisPointer:function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},_onHandleDragEnd:function(e){this._dragging=!1;var t=this._handle;if(t){var i=this._axisPointerModel.get("value");this._moveHandleToValue(i),this._api.dispatchAction({type:"hideTip"})}},getHandleTransform:null,updateHandleTransform:null,clear:function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,n=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}},g.prototype.constructor=g,a.enableClassExtend(g);var I=g;e.exports=I},97326:function(e,t,i){var n=i(47329),a=i(75539),o=i(49069),r=i(11726),s=n.extend({makeElOption:function(e,t,i,n,r){var s=i.axis,u=s.grid,c=n.get("type"),p=l(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(t,!0));if(c&&"none"!==c){var g=a.buildElStyle(n),f=d[c](s,h,p);f.style=g,e.graphicKey=f.type,e.pointer=f}var x=o.layout(u.model,i);a.buildCartesianSingleLabelElOption(t,e,x,i,n,r)},getHandleTransform:function(e,t,i){var n=o.layout(t.axis.grid.model,t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:a.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var a=i.axis,o=a.grid,r=a.getGlobalExtent(!0),s=l(o,a).getOtherAxis(a).getGlobalExtent(),d="x"===a.dim?0:1,u=e.position;u[d]+=t[d],u[d]=Math.min(r[1],u[d]),u[d]=Math.max(r[0],u[d]);var c=(s[1]+s[0])/2,p=[c,c];p[d]=u[d];var h=[{verticalAlign:"middle"},{align:"center"}];return{position:u,rotation:e.rotation,cursorPoint:p,tooltipOption:h[d]}}});function l(e,t){var i={};return i[t.dim+"AxisIndex"]=t.index,e.getCartesian(i)}var d={line:function(e,t,i){var n=a.makeLineShape([t,i[0]],[t,i[1]],u(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,i){var n=Math.max(1,e.getBandWidth()),o=i[1]-i[0];return{type:"Rect",shape:a.makeRectShape([t-n/2,i[0]],[n,o],u(e))}}};function u(e){return"x"===e.dim?0:1}r.registerAxisPointerClass("CartesianAxisPointer",s);var c=s;e.exports=c},72432:function(e,t,i){var n=i(78988),a=i(47329),o=i(51177),r=i(75539),s=i(32892),l=i(58608),d=i(11726),u=a.extend({makeElOption:function(e,t,i,a,o){var s=i.axis;"angle"===s.dim&&(this.animationThreshold=Math.PI/18);var l,d=s.polar,u=d.getOtherAxis(s),h=u.getExtent();l=s["dataTo"+n.capitalFirst(s.dim)](t);var g=a.get("type");if(g&&"none"!==g){var f=r.buildElStyle(a),x=p[g](s,d,l,h,f);x.style=f,e.graphicKey=x.type,e.pointer=x}var v=a.get("label.margin"),m=c(t,i,a,d,v);r.buildLabelElOption(e,i,a,o,m)}});function c(e,t,i,n,a){var r=t.axis,d=r.dataToCoord(e),u=n.getAngleAxis().getExtent()[0];u=u/180*Math.PI;var c,p,h,g=n.getRadiusAxis().getExtent();if("radius"===r.dim){var f=s.create();s.rotate(f,f,u),s.translate(f,f,[n.cx,n.cy]),c=o.applyTransform([d,-a],f);var x=t.getModel("axisLabel").get("rotate")||0,v=l.innerTextLayout(u,x*Math.PI/180,-1);p=v.textAlign,h=v.textVerticalAlign}else{var m=g[1];c=n.coordToPoint([m+a,d]);var y=n.cx,I=n.cy;p=Math.abs(c[0]-y)/m<.3?"center":c[0]>y?"left":"right",h=Math.abs(c[1]-I)/m<.3?"middle":c[1]>I?"top":"bottom"}return{position:c,align:p,verticalAlign:h}}var p={line:function(e,t,i,n,a){return"angle"===e.dim?{type:"Line",shape:r.makeLineShape(t.coordToPoint([n[0],i]),t.coordToPoint([n[1],i]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:i}}},shadow:function(e,t,i,n,a){var o=Math.max(1,e.getBandWidth()),s=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:r.makeSectorShape(t.cx,t.cy,n[0],n[1],(-i-o/2)*s,(o/2-i)*s)}:{type:"Sector",shape:r.makeSectorShape(t.cx,t.cy,i-o/2,i+o/2,0,2*Math.PI)}}};d.registerAxisPointerClass("PolarAxisPointer",u);var h=u;e.exports=h},16795:function(e,t,i){var n=i(47329),a=i(75539),o=i(48337),r=i(11726),s=["x","y"],l=["width","height"],d=n.extend({makeElOption:function(e,t,i,n,r){var s=i.axis,l=s.coordinateSystem,d=p(l,1-c(s)),h=l.dataToPoint(t)[0],g=n.get("type");if(g&&"none"!==g){var f=a.buildElStyle(n),x=u[g](s,h,d);x.style=f,e.graphicKey=x.type,e.pointer=x}var v=o.layout(i);a.buildCartesianSingleLabelElOption(t,e,v,i,n,r)},getHandleTransform:function(e,t,i){var n=o.layout(t,{labelInside:!1});return n.labelMargin=i.get("handle.margin"),{position:a.getTransformedPosition(t.axis,e,n),rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(e,t,i,n){var a=i.axis,o=a.coordinateSystem,r=c(a),s=p(o,r),l=e.position;l[r]+=t[r],l[r]=Math.min(s[1],l[r]),l[r]=Math.max(s[0],l[r]);var d=p(o,1-r),u=(d[1]+d[0])/2,h=[u,u];return h[r]=l[r],{position:l,rotation:e.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}}}),u={line:function(e,t,i){var n=a.makeLineShape([t,i[0]],[t,i[1]],c(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,i){var n=e.getBandWidth(),o=i[1]-i[0];return{type:"Rect",shape:a.makeRectShape([t-n/2,i[0]],[n,o],c(e))}}};function c(e){return e.isHorizontal()?0:1}function p(e,t){var i=e.getRect();return[i[s[t]],i[s[t]]+i[l[t]]]}r.registerAxisPointerClass("SingleAxisPointer",d);var h=d;e.exports=h},96472:function(e,t,i){var n=i(33051),a=i(32234),o=a.makeInner,r=i(18490),s=i(92448),l=n.each,d=n.curry,u=o();function c(e,t,i){var a=e.currTrigger,o=[e.x,e.y],r=e,u=e.dispatchAction||n.bind(i.dispatchAction,i),c=t.getComponent("axisPointer").coordSysAxesInfo;if(c){P(o)&&(o=s({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},t).point);var h=P(o),b=r.axesInfo,A=c.axesInfo,S="leave"===a||P(o),w={},_={},M={list:[],map:{}},T={showPointer:d(g,_),showTooltip:d(f,M)};l(c.coordSysMap,(function(e,t){var i=h||e.containPoint(o);l(c.coordSysAxesInfo[t],(function(e,t){var n=e.axis,a=y(b,e);if(!S&&i&&(!b||a)){var r=a&&a.value;null!=r||h||(r=n.pointToData(o)),null!=r&&p(e,r,T,!1,w)}}))}));var C={};return l(A,(function(e,t){var i=e.linkGroup;i&&!_[t]&&l(i.axesInfo,(function(t,n){var a=_[n];if(t!==e&&a){var o=a.value;i.mapper&&(o=e.axis.scale.parse(i.mapper(o,I(t),I(e)))),C[e.key]=o}}))})),l(C,(function(e,t){p(A[t],e,T,!0,w)})),x(_,A,w),v(M,o,e,u),m(A,u,i),w}}function p(e,t,i,a,o){var r=e.axis;if(!r.scale.isBlank()&&r.containData(t))if(e.involveSeries){var s=h(t,e),l=s.payloadBatch,d=s.snapToValue;l[0]&&null==o.seriesIndex&&n.extend(o,l[0]),!a&&e.snap&&r.containData(d)&&null!=d&&(t=d),i.showPointer(e,t,l,o),i.showTooltip(e,s,d)}else i.showPointer(e,t)}function h(e,t){var i=t.axis,n=i.dim,a=e,o=[],r=Number.MAX_VALUE,s=-1;return l(t.seriesModels,(function(t,d){var u,c,p=t.getData().mapDimension(n,!0);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(p,e,i);c=h.dataIndices,u=h.nestestValue}else{if(c=t.getData().indicesOfNearest(p[0],e,"category"===i.type?.5:null),!c.length)return;u=t.getData().get(p[0],c[0])}if(null!=u&&isFinite(u)){var g=e-u,f=Math.abs(g);f<=r&&((f<r||g>=0&&s<0)&&(r=f,s=g,a=u,o.length=0),l(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:a}}function g(e,t,i,n){e[t.key]={value:i,payloadBatch:n}}function f(e,t,i,n){var a=i.payloadBatch,o=t.axis,s=o.model,l=t.axisPointerModel;if(t.triggerTooltip&&a.length){var d=t.coordSys.model,u=r.makeKey(d),c=e.map[u];c||(c=e.map[u]={coordSysId:d.id,coordSysIndex:d.componentIndex,coordSysType:d.type,coordSysMainType:d.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:l.get("label.precision"),formatter:l.get("label.formatter")},seriesDataIndices:a.slice()})}}function x(e,t,i){var n=i.axesInfo=[];l(t,(function(t,i){var a=t.axisPointerModel.option,o=e[i];o?(!t.useHandle&&(a.status="show"),a.value=o.value,a.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(a.status="hide"),"show"===a.status&&n.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:a.value})}))}function v(e,t,i,n){if(!P(t)&&e.list.length){var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}else n({type:"hideTip"})}function m(e,t,i){var a=i.getZr(),o="axisPointerLastHighlights",r=u(a)[o]||{},s=u(a)[o]={};l(e,(function(e,t){var i=e.axisPointerModel.option;"show"===i.status&&l(i.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;s[t]=e}))}));var d=[],c=[];n.each(r,(function(e,t){!s[t]&&c.push(e)})),n.each(s,(function(e,t){!r[t]&&d.push(e)})),c.length&&i.dispatchAction({type:"downplay",escapeConnect:!0,batch:c}),d.length&&i.dispatchAction({type:"highlight",escapeConnect:!0,batch:d})}function y(e,t){for(var i=0;i<(e||[]).length;i++){var n=e[i];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function I(e){var t=e.axis.model,i={},n=i.axisDim=e.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=t.componentIndex,i.axisName=i[n+"AxisName"]=t.name,i.axisId=i[n+"AxisId"]=t.id,i}function P(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}e.exports=c},92448:function(e,t,i){var n=i(33051),a=i(32234);function o(e,t){var i,o=[],r=e.seriesIndex;if(null==r||!(i=t.getSeriesByIndex(r)))return{point:[]};var s=i.getData(),l=a.queryDataIndex(s,e);if(null==l||l<0||n.isArray(l))return{point:[]};var d=s.getItemGraphicEl(l),u=i.coordinateSystem;if(i.getTooltipPosition)o=i.getTooltipPosition(l)||[];else if(u&&u.dataToPoint)o=u.dataToPoint(s.getValues(n.map(u.dimensions,(function(e){return s.mapDimension(e)})),l,!0))||[];else if(d){var c=d.getBoundingRect().clone();c.applyTransform(d.transform),o=[c.x+c.width/2,c.y+c.height/2]}return{point:o,el:d}}e.exports=o},56996:function(e,t,i){var n=i(33051),a=i(66387),o=i(32234),r=o.makeInner,s=r(),l=n.each;function d(e,t,i){if(!a.node){var n=t.getZr();s(n).records||(s(n).records={}),u(n,t);var o=s(n).records[e]||(s(n).records[e]={});o.handler=i}}function u(e,t){function i(i,n){e.on(i,(function(i){var a=g(t);l(s(e).records,(function(e){e&&n(e,i,a.dispatchAction)})),c(a.pendings,t)}))}s(e).initialized||(s(e).initialized=!0,i("click",n.curry(h,"click")),i("mousemove",n.curry(h,"mousemove")),i("globalout",p))}function c(e,t){var i,n=e.showTip.length,a=e.hideTip.length;n?i=e.showTip[n-1]:a&&(i=e.hideTip[a-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function p(e,t,i){e.handler("leave",null,i)}function h(e,t,i,n){t.handler(e,i,n)}function g(e){var t={showTip:[],hideTip:[]},i=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=i,e.dispatchAction(n))};return{dispatchAction:i,pendings:t}}function f(e,t){if(!a.node){var i=t.getZr(),n=(s(i).records||{})[e];n&&(s(i).records[e]=null)}}t.register=d,t.unregister=f},18490:function(e,t,i){var n=i(33051),a=i(4272),o=n.each,r=n.curry;function s(e,t){var i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return l(i,e,t),i.seriesInvolved&&u(i,e),i}function l(e,t,i){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),s=a.get("link",!0)||[],l=[];o(i.getCoordinateSystems(),(function(i){if(i.axisPointerEnabled){var u=v(i.model),p=e.coordSysAxesInfo[u]={};e.coordSysMap[u]=i;var h=i.model,g=h.getModel("tooltip",n);if(o(i.getAxes(),r(I,!1,null)),i.getTooltipAxes&&n&&g.get("show")){var f="axis"===g.get("trigger"),m="cross"===g.get("axisPointer.type"),y=i.getTooltipAxes(g.get("axisPointer.axis"));(f||m)&&o(y.baseAxes,r(I,!m||"cross",f)),m&&o(y.otherAxes,r(I,"cross",!1))}}function I(n,o,r){var u=r.model.getModel("axisPointer",a),h=u.get("show");if(h&&("auto"!==h||n||x(u))){null==o&&(o=u.get("triggerTooltip")),u=n?d(r,g,a,t,n,o):u;var f=u.get("snap"),m=v(r.model),y=o||f||"category"===r.type,I=e.axesInfo[m]={key:m,axis:r,coordSys:i,axisPointerModel:u,triggerTooltip:o,involveSeries:y,snap:f,useHandle:x(u),seriesModels:[]};p[m]=I,e.seriesInvolved|=y;var P=c(s,r);if(null!=P){var b=l[P]||(l[P]={axesInfo:{}});b.axesInfo[m]=I,b.mapper=s[P].mapper,I.linkGroup=b}}}}))}function d(e,t,i,r,s,l){var d=t.getModel("axisPointer"),u={};o(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){u[e]=n.clone(d.get(e))})),u.snap="category"!==e.type&&!!l,"cross"===d.get("type")&&(u.type="line");var c=u.label||(u.label={});if(null==c.show&&(c.show=!1),"cross"===s){var p=d.get("label.show");if(c.show=null==p||p,!l){var h=u.lineStyle=d.get("crossStyle");h&&n.defaults(c,h.textStyle)}}return e.model.getModel("axisPointer",new a(u,i,r))}function u(e,t){t.eachSeries((function(t){var i=t.coordinateSystem,n=t.get("tooltip.trigger",!0),a=t.get("tooltip.show",!0);i&&"none"!==n&&!1!==n&&"item"!==n&&!1!==a&&!1!==t.get("axisPointer.show",!0)&&o(e.coordSysAxesInfo[v(i.model)],(function(e){var n=e.axis;i.getAxis(n.dim)===n&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}),this)}function c(e,t){for(var i=t.model,n=t.dim,a=0;a<e.length;a++){var o=e[a]||{};if(p(o[n+"AxisId"],i.id)||p(o[n+"AxisIndex"],i.componentIndex)||p(o[n+"AxisName"],i.name))return a}}function p(e,t){return"all"===e||n.isArray(e)&&n.indexOf(e,t)>=0||e===t}function h(e){var t=g(e);if(t){var i=t.axisPointerModel,n=t.axis.scale,a=i.option,o=i.get("status"),r=i.get("value");null!=r&&(r=n.parse(r));var s=x(i);null==o&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==r||r>l[1])&&(r=l[1]),r<l[0]&&(r=l[0]),a.value=r,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function g(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[v(e)]}function f(e){var t=g(e);return t&&t.axisPointerModel}function x(e){return!!e.get("handle.show")}function v(e){return e.type+"||"+e.id}t.collect=s,t.fixValue=h,t.getAxisInfo=g,t.getAxisPointerModel=f,t.makeKey=v},75539:function(e,t,i){var n=i(33051),a=i(51177),o=i(80423),r=i(78988),s=i(32892),l=i(97980),d=i(58608);function u(e){var t,i=e.get("type"),n=e.getModel(i+"Style");return"line"===i?(t=n.getLineStyle(),t.fill=null):"shadow"===i&&(t=n.getAreaStyle(),t.stroke=null),t}function c(e,t,i,n,a){var s=i.get("value"),l=h(s,t.axis,t.ecModel,i.get("seriesDataIndices"),{precision:i.get("label.precision"),formatter:i.get("label.formatter")}),d=i.getModel("label"),u=r.normalizeCssArray(d.get("padding")||0),c=d.getFont(),g=o.getBoundingRect(l,c),f=a.position,x=g.width+u[1]+u[3],v=g.height+u[0]+u[2],m=a.align;"right"===m&&(f[0]-=x),"center"===m&&(f[0]-=x/2);var y=a.verticalAlign;"bottom"===y&&(f[1]-=v),"middle"===y&&(f[1]-=v/2),p(f,x,v,n);var I=d.get("backgroundColor");I&&"auto"!==I||(I=t.get("axisLine.lineStyle.color")),e.label={shape:{x:0,y:0,width:x,height:v,r:d.get("borderRadius")},position:f.slice(),style:{text:l,textFont:c,textFill:d.getTextColor(),textPosition:"inside",textPadding:u,fill:I,stroke:d.get("borderColor")||"transparent",lineWidth:d.get("borderWidth")||0,shadowBlur:d.get("shadowBlur"),shadowColor:d.get("shadowColor"),shadowOffsetX:d.get("shadowOffsetX"),shadowOffsetY:d.get("shadowOffsetY")},z2:10}}function p(e,t,i,n){var a=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+i,o)-i,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function h(e,t,i,a,o){e=t.scale.parse(e);var r=t.scale.getLabel(e,{precision:o.precision}),s=o.formatter;if(s){var d={value:l.getAxisRawValue(t,e),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};n.each(a,(function(e){var t=i.getSeriesByIndex(e.seriesIndex),n=e.dataIndexInside,a=t&&t.getDataParams(n);a&&d.seriesData.push(a)})),n.isString(s)?r=s.replace("{value}",r):n.isFunction(s)&&(r=s(d))}return r}function g(e,t,i){var n=s.create();return s.rotate(n,n,i.rotation),s.translate(n,n,i.position),a.applyTransform([e.dataToCoord(t),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}function f(e,t,i,n,a,o){var r=d.innerTextLayout(i.rotation,0,i.labelDirection);i.labelMargin=a.get("label.margin"),c(t,n,a,o,{position:g(n.axis,e,i),align:r.textAlign,verticalAlign:r.textVerticalAlign})}function x(e,t,i){return i=i||0,{x1:e[i],y1:e[1-i],x2:t[i],y2:t[1-i]}}function v(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}}function m(e,t,i,n,a,o){return{cx:e,cy:t,r0:i,r:n,startAngle:a,endAngle:o,clockwise:!0}}t.buildElStyle=u,t.buildLabelElOption=c,t.getValueLabel=h,t.getTransformedPosition=g,t.buildCartesianSingleLabelElOption=f,t.makeLineShape=x,t.makeRectShape=v,t.makeSectorShape=m}}]);
  2. //# sourceMappingURL=chunk-vendors-bcd1cd2e.ad4b92d1.js.map