12 |
- (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[645],{53665:function(e,t,i){i(32620),i(68569)},42719:function(e,t,i){var n=i(38175),o=(n.__DEV__,i(70492)),a=i(33051),r=i(66387),s=i(32234),l=i(6398),d=i(13967),h=a.each,c=l.eachAxisDim,u=o.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null,minSpan:null,maxSpan:null,minValueSpan:null,maxValueSpan:null,rangeMode:null},init:function(e,t,i){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0,this._rangePropMode=["percent","percent"];var n=p(e);this.settledOption=n,this.mergeDefaultAndTheme(e,i),this.doInit(n)},mergeOption:function(e){var t=p(e);a.merge(this.option,e,!0),a.merge(this.settledOption,t,!0),this.doInit(t)},doInit:function(e){var t=this.option;r.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),g(this,e);var i=this.settledOption;h([["start","startValue"],["end","endValue"]],(function(e,n){"value"===this._rangePropMode[n]&&(t[e[0]]=i[e[0]]=null)}),this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis((function(t,i,n,o){var a=this.dependentModels[t.axis][i],r=a.__dzAxisProxy||(a.__dzAxisProxy=new d(t.name,i,this,o));e[t.name+"_"+i]=r}),this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();c((function(t){var i=t.axisIndex;e[i]=s.normalizeToArray(e[i])}),this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;c((function(i){null!=e[i.axisIndex]&&(t=!0)}),this);var i=e.orient;return null==i&&t?"orient":t?void 0:(null==i&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),i=this.option,n=this.dependentModels;if(e){var o="vertical"===t?"y":"x";n[o+"Axis"].length?(i[o+"AxisIndex"]=[0],e=!1):h(n.singleAxis,(function(n){e&&n.get("orient",!0)===t&&(i.singleAxisIndex=[n.componentIndex],e=!1)}))}e&&c((function(t){if(e){var n=[],o=this.dependentModels[t.axis];if(o.length&&!n.length)for(var a=0,r=o.length;a<r;a++)"category"===o[a].get("type")&&n.push(a);i[t.axisIndex]=n,n.length&&(e=!1)}}),this),e&&this.ecModel.eachSeries((function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&c((function(t){var n=i[t.axisIndex],o=e.get(t.axisIndex),r=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:o,id:r})[0];o=s.componentIndex,a.indexOf(n,o)<0&&n.push(o)}))}),this)},_autoSetOrient:function(){var e;this.eachTargetAxis((function(t){!e&&(e=t.name)}),this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var i=!0;return c((function(n){var o=e.get(n.axisIndex),a=this.dependentModels[n.axis][o];a&&a.get("type")===t||(i=!1)}),this),i},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return c((function(t){if(null==e){var i=this.get(t.axisIndex);i.length&&(e=this.dependentModels[t.axis][i[0]])}}),this),e},eachTargetAxis:function(e,t){var i=this.ecModel;c((function(n){h(this.get(n.axisIndex),(function(o){e.call(t,n,o,this,i)}),this)}),this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},getAxisModel:function(e,t){var i=this.getAxisProxy(e,t);return i&&i.getAxisModel()},setRawRange:function(e){var t=this.option,i=this.settledOption;h([["start","startValue"],["end","endValue"]],(function(n){null==e[n[0]]&&null==e[n[1]]||(t[n[0]]=i[n[0]]=e[n[0]],t[n[1]]=i[n[1]]=e[n[1]])}),this),g(this,e)},setCalculatedRange:function(e){var t=this.option;h(["start","startValue","end","endValue"],(function(i){t[i]=e[i]}))},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var i=this.findRepresentativeAxisProxy();return i?i.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(e){if(e)return e.__dzAxisProxy;var t=this._axisProxies;for(var i in t)if(t.hasOwnProperty(i)&&t[i].hostedBy(this))return t[i];for(var i in t)if(t.hasOwnProperty(i)&&!t[i].hostedBy(this))return t[i]},getRangePropMode:function(){return this._rangePropMode.slice()}});function p(e){var t={};return h(["start","end","startValue","endValue","throttle"],(function(i){e.hasOwnProperty(i)&&(t[i]=e[i])})),t}function g(e,t){var i=e._rangePropMode,n=e.get("rangeMode");h([["start","startValue"],["end","endValue"]],(function(e,o){var a=null!=t[e[0]],r=null!=t[e[1]];a&&!r?i[o]="percent":!a&&r?i[o]="value":n?i[o]=n[o]:a&&(i[o]="percent")}))}var f=u;e.exports=f},12159:function(e,t,i){var n=i(33166),o=n.extend({type:"dataZoom",render:function(e,t,i,n){this.dataZoomModel=e,this.ecModel=t,this.api=i},getTargetCoordInfo:function(){var e=this.dataZoomModel,t=this.ecModel,i={};function n(e,t,i,n){for(var o,a=0;a<i.length;a++)if(i[a].model===e){o=i[a];break}o||i.push(o={model:e,axisModels:[],coordIndex:n}),o.axisModels.push(t)}return e.eachTargetAxis((function(e,o){var a=t.getComponent(e.axis,o);if(a){var r=a.getCoordSysModel();r&&n(r,a,i[r.mainType]||(i[r.mainType]=[]),r.componentIndex)}}),this),i}});e.exports=o},38036:function(e,t,i){var n=i(42719),o=n.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});e.exports=o},70766:function(e,t,i){var n=i(33051),o=i(12159),a=i(19233),r=i(15992),s=n.bind,l=o.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,i,o){l.superApply(this,"render",arguments),this._range=e.getPercentRange(),n.each(this.getTargetCoordInfo(),(function(t,o){var a=n.map(t,(function(e){return r.generateCoordId(e.model)}));n.each(t,(function(t){var l=t.model,h={};n.each(["pan","zoom","scrollMove"],(function(e){h[e]=s(d[e],this,t,o)}),this),r.register(i,{coordId:r.generateCoordId(l),allCoordIds:a,containsPoint:function(e,t,i){return l.coordinateSystem.containPoint([t,i])},dataZoomId:e.id,dataZoomModel:e,getRange:h})}),this)}),this)},dispose:function(){r.unregister(this.api,this.dataZoomModel.id),l.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(e,t,i,n){var o=this._range,r=o.slice(),s=e.axisModels[0];if(s){var l=c[t](null,[n.originX,n.originY],s,i,e),d=(l.signal>0?l.pixelStart+l.pixelLength-l.pixel:l.pixel-l.pixelStart)/l.pixelLength*(r[1]-r[0])+r[0],h=Math.max(1/n.scale,0);r[0]=(r[0]-d)*h+d,r[1]=(r[1]-d)*h+d;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return a(0,r,[0,100],0,u.minSpan,u.maxSpan),this._range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:h((function(e,t,i,n,o,a){var r=c[n]([a.oldX,a.oldY],[a.newX,a.newY],t,o,i);return r.signal*(e[1]-e[0])*r.pixel/r.pixelLength})),scrollMove:h((function(e,t,i,n,o,a){var r=c[n]([0,0],[a.scrollDelta,a.scrollDelta],t,o,i);return r.signal*(e[1]-e[0])*a.scrollDelta}))};function h(e){return function(t,i,n,o){var r=this._range,s=r.slice(),l=t.axisModels[0];if(l){var d=e(s,l,t,i,n,o);return a(d,s,[0,100],"all"),this._range=s,r[0]!==s[0]||r[1]!==s[1]?s:void 0}}}var c={grid:function(e,t,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem.getRect();return e=e||[0,0],"x"===a.dim?(r.pixel=t[0]-e[0],r.pixelLength=s.width,r.pixelStart=s.x,r.signal=a.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=s.height,r.pixelStart=s.y,r.signal=a.inverse?-1:1),r},polar:function(e,t,i,n,o){var a=i.axis,r={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),d=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===i.mainType?(r.pixel=t[0]-e[0],r.pixelLength=l[1]-l[0],r.pixelStart=l[0],r.signal=a.inverse?1:-1):(r.pixel=t[1]-e[1],r.pixelLength=d[1]-d[0],r.pixelStart=d[0],r.signal=a.inverse?-1:1),r},singleAxis:function(e,t,i,n,o){var a=i.axis,r=o.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===a.orient?(s.pixel=t[0]-e[0],s.pixelLength=r.width,s.pixelStart=r.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=r.height,s.pixelStart=r.y,s.signal=a.inverse?-1:1),s}},u=l;e.exports=u},49498:function(e,t,i){var n=i(42719),o=n.extend({type:"dataZoom.select"});e.exports=o},66100:function(e,t,i){var n=i(12159),o=n.extend({type:"dataZoom.select"});e.exports=o},3496:function(e,t,i){var n=i(42719),o=n.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}}),a=o;e.exports=a},45578:function(e,t,i){var n=i(33051),o=i(61158),a=i(51177),r=i(270),s=i(12159),l=i(85669),d=i(76172),h=i(19233),c=a.Rect,u=l.linearMap,p=l.asc,g=n.bind,f=n.each,v=7,x=1,m=30,_="horizontal",y="vertical",M=5,A=["line","bar","candlestick","scatter"],w=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,i,n){w.superApply(this,"render",arguments),r.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),!1!==this.dataZoomModel.get("show")?(n&&"dataZoom"===n.type&&n.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},remove:function(){w.superApply(this,"remove",arguments),r.clear(this,"_dispatchZoomAction")},dispose:function(){w.superApply(this,"dispose",arguments),r.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new a.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===_?{right:o.width-i.x-i.width,top:o.height-m-v,width:i.width,height:m}:{right:v,top:i.y,width:m,height:i.height},r=d.getLayoutParams(e.option);n.each(["right","top","width","height"],(function(e){"ph"===r[e]&&(r[e]=a[e])}));var s=d.getLayoutRect(r,o,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===y&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),a=this._displayables.barGroup,r=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(i!==_||o?i===_&&o?{scale:r?[-1,1]:[-1,-1]}:i!==y||o?{scale:r?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:r?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:r?[1,1]:[1,-1]});var s=e.getBoundingRect([a]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size,i=this._displayables.barGroup;i.add(new c({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40})),i.add(new c({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:n.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,i=e.series,o=i.getRawData(),r=i.getShadowDim?i.getShadowDim():e.otherDim;if(null!=r){var s=o.getDataExtent(r),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var d,h=[0,t[1]],c=[0,t[0]],p=[[t[0],0],[0,0]],g=[],f=c[1]/(o.count()-1),v=0,x=Math.round(o.count()/t[0]);o.each([r],(function(e,t){if(x>0&&t%x)v+=f;else{var i=null==e||isNaN(e)||""===e,n=i?0:u(e,s,h,!0);i&&!d&&t?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!i&&d&&(p.push([v,0]),g.push([v,0])),p.push([v,n]),g.push([v,n]),v+=f,d=i}}));var m=this.dataZoomModel;this._displayables.barGroup.add(new a.Polygon({shape:{points:p},style:n.defaults({fill:m.get("dataBackgroundColor")},m.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new a.Polyline({shape:{points:g},style:m.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var i,o=this.ecModel;return e.eachTargetAxis((function(a,r){var s=e.getAxisProxy(a.name,r).getTargetSeriesModels();n.each(s,(function(e){if(!i&&!(!0!==t&&n.indexOf(A,e.get("type"))<0)){var s,l=o.getComponent(a.axis,r).axis,d=I(a.name),h=e.coordinateSystem;null!=d&&h.getOtherAxis&&(s=h.getOtherAxis(l).inverse),d=e.getData().mapDimension(d),i={thisAxis:l,series:e,thisDim:a.name,otherDim:d,otherAxisInverse:s}}}),this)}),this),i}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],i=e.handleLabels=[],n=this._displayables.barGroup,o=this._size,r=this.dataZoomModel;n.add(e.filler=new c({draggable:!0,cursor:S(this._orient),drift:g(this._onDragMove,this,"all"),ondragstart:g(this._showDataInfo,this,!0),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1),style:{fill:r.get("fillerColor"),textPosition:"inside"}})),n.add(new c({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:r.get("dataBackgroundColor")||r.get("borderColor"),lineWidth:x,fill:"rgba(0,0,0,0)"}})),f([0,1],(function(e){var o=a.createIcon(r.get("handleIcon"),{cursor:S(this._orient),draggable:!0,drift:g(this._onDragMove,this,e),ondragend:g(this._onDragEnd,this),onmouseover:g(this._showDataInfo,this,!0),onmouseout:g(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),s=o.getBoundingRect();this._handleHeight=l.parsePercent(r.get("handleSize"),this._size[1]),this._handleWidth=s.width/s.height*this._handleHeight,o.setStyle(r.getModel("handleStyle").getItemStyle());var d=r.get("handleColor");null!=d&&(o.style.fill=d),n.add(t[e]=o);var h=r.textStyleModel;this.group.add(i[e]=new a.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:h.getTextColor(),textFont:h.getFont()},z2:10}))}),this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[u(e[0],[0,100],t,!0),u(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var i=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),a=i.findRepresentativeAxisProxy().getMinMaxSpan(),r=[0,100];h(t,n,o,i.get("zoomLock")?"all":e,null!=a.minSpan?u(a.minSpan,r,o,!0):null,null!=a.maxSpan?u(a.maxSpan,r,o,!0):null);var s=this._range,l=this._range=p([u(n[0],o,r,!0),u(n[1],o,r,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},_updateView:function(e){var t=this._displayables,i=this._handleEnds,n=p(i.slice()),o=this._size;f([0,1],(function(e){var n=t.handles[e],a=this._handleHeight;n.attr({scale:[a/2,a/2],position:[i[e],o[1]/2-a/2]})}),this),t.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]}),this._updateDataInfo(e)},_updateDataInfo:function(e){var t=this.dataZoomModel,i=this._displayables,n=i.handleLabels,o=this._orient,r=["",""];if(t.get("showDetail")){var s=t.findRepresentativeAxisProxy();if(s){var l=s.getAxisModel().axis,d=this._range,h=e?s.calculateDataWindow({start:d[0],end:d[1]}).valueWindow:s.getDataValueWindow();r=[this._formatLabel(h[0],l),this._formatLabel(h[1],l)]}}var c=p(this._handleEnds.slice());function u(e){var t=a.getTransform(i.handles[e].parent,this.group),s=a.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+M,d=a.applyTransform([c[e]+(0===e?-l:l),this._size[1]/2],t);n[e].setStyle({x:d[0],y:d[1],textVerticalAlign:o===_?"middle":s,textAlign:o===_?s:"center",text:r[e]})}u.call(this,0),u.call(this,1)},_formatLabel:function(e,t){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");null!=a&&"auto"!==a||(a=t.getPixelPrecision());var r=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(a,20));return n.isFunction(o)?o(e,r):n.isString(o)?o.replace("{value}",r):r},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,i,n){this._dragging=!0,o.stop(n.event);var r=this._displayables.barGroup.getLocalTransform(),s=a.applyTransform([t,i],r,!0),l=this._updateInterval(e,s[0]),d=this.dataZoomModel.get("realtime");this._updateView(!d),l&&d&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction()},_onClickPanelClick:function(e){var t=this._size,i=this._displayables.barGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(i[0]<0||i[0]>t[0]||i[1]<0||i[1]>t[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,a=this._updateInterval("all",i[0]-o);this._updateView(),a&&this._dispatchZoomAction()}},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_findCoordRect:function(){var e;if(f(this.getTargetCoordInfo(),(function(t){if(!e&&t.length){var i=t[0].model.coordinateSystem;e=i.getRect&&i.getRect()}})),!e){var t=this.api.getWidth(),i=this.api.getHeight();e={x:.2*t,y:.2*i,width:.6*t,height:.6*i}}return e}});function I(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function S(e){return"vertical"===e?"ns-resize":"ew-resize"}var b=w;e.exports=b},72078:function(e,t,i){var n=i(70492),o=i(33051),a=i(6398);n.registerAction("dataZoom",(function(e,t){var i=a.createLinkedNodesFinder(o.bind(t.eachComponent,t,"dataZoom"),a.eachAxisDim,(function(e,t){return e.get(t.axisIndex)})),n=[];t.eachComponent({mainType:"dataZoom",query:e},(function(e,t){n.push.apply(n,i(e).nodes)})),o.each(n,(function(t,i){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))},2536:function(e,t,i){var n=i(70492),o=i(33051),a=o.createHashMap,r=o.each;n.registerProcessor({getTargetSeries:function(e){var t=a();return e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){var o=n.getAxisProxy(e.name,i);r(o.getTargetSeriesModels(),(function(e){t.set(e.uid,e)}))}))})),t},modifyOutputEnd:!0,overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).reset(n,t)})),e.eachTargetAxis((function(e,i,n){n.getAxisProxy(e.name,i).filterData(n,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy(),i=t.getDataPercentWindow(),n=t.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:n[0],endValue:n[1]})}))}})},6398:function(e,t,i){var n=i(33051),o=i(78988),a=["x","y","z","radius","angle","single"],r=["cartesian2d","polar","singleAxis"];function s(e){return n.indexOf(r,e)>=0}function l(e,t){e=e.slice();var i=n.map(e,o.capitalFirst);t=(t||[]).slice();var a=n.map(t,o.capitalFirst);return function(o,r){n.each(e,(function(e,n){for(var s={name:e,capital:i[n]},l=0;l<t.length;l++)s[t[l]]=e+a[l];o.call(r,s)}))}}var d=l(a,["axisIndex","axis","index","id"]);function h(e,t,i){return function(i){var n,s={nodes:[],records:{}};if(t((function(e){s.records[e.name]={}})),!i)return s;r(i,s);do{n=!1,e(l)}while(n);function l(e){!o(e,s)&&a(e,s)&&(r(e,s),n=!0)}return s};function o(e,t){return n.indexOf(t.nodes,e)>=0}function a(e,o){var a=!1;return t((function(t){n.each(i(e,t)||[],(function(e){o.records[t.name][e]&&(a=!0)}))})),a}function r(e,o){o.nodes.push(e),t((function(t){n.each(i(e,t)||[],(function(e){o.records[t.name][e]=!0}))}))}}t.isCoordSupported=s,t.createNameEach=l,t.eachAxisDim=d,t.createLinkedNodesFinder=h},29570:function(e,t,i){var n=i(33051),o=n.each,a="\0_ec_hist_store";function r(e,t){var i=h(e);o(t,(function(t,n){for(var o=i.length-1;o>=0;o--){var a=i[o];if(a[n])break}if(o<0){var r=e.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var s=r.getPercentRange();i[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),i.push(t)}function s(e){var t=h(e),i=t[t.length-1];t.length>1&&t.pop();var n={};return o(i,(function(e,i){for(var o=t.length-1;o>=0;o--){e=t[o][i];if(e){n[i]=e;break}}})),n}function l(e){e[a]=null}function d(e){return h(e).length}function h(e){var t=e[a];return t||(t=e[a]=[{}]),t}t.push=r,t.pop=s,t.clear=l,t.count=d},15992:function(e,t,i){var n=i(33051),o=i(9176),a=i(270),r="\0_ec_dataZoom_roams";function s(e,t){var i=h(e),o=t.dataZoomId,r=t.coordId;n.each(i,(function(e,i){var a=e.dataZoomInfos;a[o]&&n.indexOf(t.allCoordIds,r)<0&&(delete a[o],e.count--)})),u(i);var s=i[r];s||(s=i[r]={coordId:r,dataZoomInfos:{},count:0},s.controller=c(e,s),s.dispatchAction=n.curry(p,e)),!s.dataZoomInfos[o]&&s.count++,s.dataZoomInfos[o]=t;var l=g(s.dataZoomInfos);s.controller.enable(l.controlType,l.opt),s.controller.setPointerChecker(t.containsPoint),a.createOrUpdate(s,"dispatchAction",t.dataZoomModel.get("throttle",!0),"fixRate")}function l(e,t){var i=h(e);n.each(i,(function(e){e.controller.dispose();var i=e.dataZoomInfos;i[t]&&(delete i[t],e.count--)})),u(i)}function d(e){return e.type+"\0_"+e.id}function h(e){var t=e.getZr();return t[r]||(t[r]={})}function c(e,t){var i=new o(e.getZr());return n.each(["pan","zoom","scrollMove"],(function(e){i.on(e,(function(i){var o=[];n.each(t.dataZoomInfos,(function(n){if(i.isAvailableBehavior(n.dataZoomModel.option)){var a=(n.getRange||{})[e],r=a&&a(t.controller,i);!n.dataZoomModel.get("disabled",!0)&&r&&o.push({dataZoomId:n.dataZoomId,start:r[0],end:r[1]})}})),o.length&&t.dispatchAction(o)}))})),i}function u(e){n.each(e,(function(t,i){t.count||(t.controller.dispose(),delete e[i])}))}function p(e,t){e.dispatchAction({type:"dataZoom",batch:t})}function g(e){var t,i="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return n.each(e,(function(e){var n=e.dataZoomModel,r=!n.get("disabled",!0)&&(!n.get("zoomLock",!0)||"move");o[i+r]>o[i+t]&&(t=r),a&=n.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}t.register=s,t.unregister=l,t.generateCoordId=d},71264:function(e,t,i){var n=i(98071);n.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))},81768:function(e,t,i){var n=i(98071),o=i(33166),a=i(61772),r=a.detectSourceFormat,s=i(93819),l=s.SERIES_LAYOUT_BY_COLUMN;n.extend({type:"dataset",defaultOption:{seriesLayoutBy:l,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){r(this)}}),o.extend({type:"dataset"})},48807:function(e,t,i){var n=i(70492),o=i(33051);function a(e,t){t.update="updateView",n.registerAction(t,(function(t,i){var n={};return i.eachComponent({mainType:"geo",query:t},(function(i){i[e](t.name);var a=i.coordinateSystem;o.each(a.regions,(function(e){n[e.name]=i.isSelected(e.name)||!1}))})),{selected:n,name:t.name}}))}i(39618),i(18958),i(26062),i(28401),a("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),a("select",{type:"geoSelect",event:"geoselected"}),a("unSelect",{type:"geoUnSelect",event:"geounselected"})},26062:function(e,t,i){var n=i(44121),o=i(70492),a=o.extendComponentView({type:"geo",init:function(e,t){var i=new n(t,!0);this._mapDraw=i,this.group.add(i.group)},render:function(e,t,i,n){if(!n||"geoToggleSelect"!==n.type||n.from!==this.uid){var o=this._mapDraw;e.get("show")?o.draw(e,t,i,this,n):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});e.exports=a},78644:function(e,t,i){var n=i(38175),o=(n.__DEV__,i(70492)),a=i(33051),r=i(32234),s=i(51177),l=i(76172),d=i(85669),h=d.parsePercent,c={path:null,compoundPath:null,group:s.Group,image:s.Image,text:s.Text};o.registerPreprocessor((function(e){var t=e.graphic;a.isArray(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}));var u=o.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(e){var t=this.option.elements;this.option.elements=null,u.superApply(this,"mergeOption",arguments),this.option.elements=t},optionUpdated:function(e,t){var i=this.option,n=(t?i:e).elements,o=i.elements=t?[]:i.elements,s=[];this._flatten(n,s);var l=r.mappingToExists(o,s);r.makeIdAndName(l);var d=this._elOptionsToUpdate=[];a.each(l,(function(e,t){var i=e.option;i&&(d.push(i),x(e,i),m(o,t,i),_(o[t],i))}),this);for(var h=o.length-1;h>=0;h--)null==o[h]?o.splice(h,1):delete o[h].$action},_flatten:function(e,t,i){a.each(e,(function(e){if(e){i&&(e.parentOption=i),t.push(e);var n=e.children;"group"===e.type&&n&&this._flatten(n,t,e),delete e.children}}),this)},useElOptionsToUpdate:function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e}});function p(e,t,i,n){var o=i.type,a=c.hasOwnProperty(o)?c[o]:s.getShapeClass(o),r=new a(i);t.add(r),n.set(e,r),r.__ecGraphicId=e}function g(e,t){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){g(e,t)})),t.removeKey(e.__ecGraphicId),i.remove(e))}function f(e){return e=a.extend({},e),a.each(["id","parentId","$action","hv","bounding"].concat(l.LOCATION_PARAMS),(function(t){delete e[t]})),e}function v(e,t){var i;return a.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(i=!0)})),i}function x(e,t){var i=e.exist;if(t.id=e.keyInfo.id,!t.type&&i&&(t.type=i.type),null==t.parentId){var n=t.parentOption;n?t.parentId=n.id:i&&(t.parentId=i.parentId)}t.parentOption=null}function m(e,t,i){var n=a.extend({},i),o=e[t],r=i.$action||"merge";"merge"===r?o?(a.merge(o,n,!0),l.mergeLayoutParam(o,n,{ignoreSize:!0}),l.copyLayoutParams(i,o)):e[t]=n:"replace"===r?e[t]=n:"remove"===r&&o&&(e[t]=null)}function _(e,t){e&&(e.hv=t.hv=[v(t,["left","right"]),v(t,["top","bottom"])],"group"===e.type&&(null==e.width&&(e.width=t.width=0),null==e.height&&(e.height=t.height=0)))}function y(e,t,i){var n=e.eventData;e.silent||e.ignore||n||(n=e.eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=e.info)}o.extendComponentView({type:"graphic",init:function(e,t){this._elMap=a.createHashMap(),this._lastGraphicModel},render:function(e,t,i){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,i)},_updateElements:function(e){var t=e.useElOptionsToUpdate();if(t){var i=this._elMap,n=this.group;a.each(t,(function(t){var o=t.$action,a=t.id,r=i.get(a),s=t.parentId,l=null!=s?i.get(s):n,d=t.style;"text"===t.type&&d&&(t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=null),!d.hasOwnProperty("textFill")&&d.fill&&(d.textFill=d.fill),!d.hasOwnProperty("textStroke")&&d.stroke&&(d.textStroke=d.stroke));var h=f(t);o&&"merge"!==o?"replace"===o?(g(r,i),p(a,l,h,i)):"remove"===o&&g(r,i):r?r.attr(h):p(a,l,h,i);var c=i.get(a);c&&(c.__ecGraphicWidthOption=t.width,c.__ecGraphicHeightOption=t.height,y(c,e,t))}))}},_relocate:function(e,t){for(var i=e.option.elements,n=this.group,o=this._elMap,a=t.getWidth(),r=t.getHeight(),s=0;s<i.length;s++){var d=i[s],c=o.get(d.id);if(c&&c.isGroup){var u=c.parent,p=u===n;c.__ecGraphicWidth=h(c.__ecGraphicWidthOption,p?a:u.__ecGraphicWidth)||0,c.__ecGraphicHeight=h(c.__ecGraphicHeightOption,p?r:u.__ecGraphicHeight)||0}}for(s=i.length-1;s>=0;s--){d=i[s],c=o.get(d.id);if(c){u=c.parent;var g=u===n?{width:a,height:r}:{width:u.__ecGraphicWidth,height:u.__ecGraphicHeight};l.positionElement(c,d,g,null,{hv:d.hv,boundingMode:d.bounding})}}},_clear:function(){var e=this._elMap;e.each((function(t){g(t,e)})),this._elMap=a.createHashMap()},dispose:function(){this._clear()}})},82601:function(e,t,i){i(84617),i(97326),i(52528)},84617:function(e,t,i){var n=i(70492),o=i(33051),a=i(51177);i(77532),i(88791),n.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new a.Rect({shape:e.coordinateSystem.getRect(),style:o.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))}}),n.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}}]);
- //# sourceMappingURL=chunk-vendors-76cd72f5.92c3891c.js.map
|