chunk-vendors-1dfd8ab8.e725da2f.js 15 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[5952],{57760:function(t,e,o){var n=o(33051),i=o(3245),r=function(t,e,o,n,r){i.call(this,t,e,o),this.type=n||"value",this.position=r||"bottom"};r.prototype={constructor:r,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},toLocalCoord:null,toGlobalCoord:null},n.inherits(r,i);var a=r;t.exports=a},54805:function(t,e,o){var n=o(33051),i=o(98071),r=o(21293),a=o(16650),s=i.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function c(t,e){return e.type||(e.data?"category":"value")}n.merge(s.prototype,a);var u={offset:0};r("x",s,c,u),r("y",s,c,u);var l=s;t.exports=l},53907:function(t,e,o){var n=o(33051);function i(t){return this._axes[t]}var r=function(t){this._axes={},this._dimList=[],this.name=t||""};r.prototype={constructor:r,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return n.map(this._dimList,i,this)},getAxesByScale:function(t){return t=t.toLowerCase(),n.filter(this.getAxes(),(function(e){return e.scale.type===t}))},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var o=this._dimList,n=t instanceof Array?[]:{},i=0;i<o.length;i++){var r=o[i],a=this._axes[r];n[r]=a[e](t[r])}return n}};var a=r;t.exports=a},81096:function(t,e,o){var n=o(33051),i=o(60479),r=o(53907);function a(t){r.call(this,t)}a.prototype={constructor:a,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(t){var e=this.getAxis("x"),o=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&o.contain(o.toLocalCoord(t[1]))},containData:function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},dataToPoint:function(t,e,o){var n=this.getAxis("x"),i=this.getAxis("y");return o=o||[],o[0]=n.toGlobalCoord(n.dataToCoord(t[0])),o[1]=i.toGlobalCoord(i.dataToCoord(t[1])),o},clampData:function(t,e){var o=this.getAxis("x").scale,n=this.getAxis("y").scale,i=o.getExtent(),r=n.getExtent(),a=o.parse(t[0]),s=n.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),e},pointToData:function(t,e){var o=this.getAxis("x"),n=this.getAxis("y");return e=e||[],e[0]=o.coordToData(o.toLocalCoord(t[0])),e[1]=n.coordToData(n.toLocalCoord(t[1])),e},getOtherAxis:function(t){return this.getAxis("x"===t.dim?"y":"x")},getArea:function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),o=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-o,a=Math.max(e[0],e[1])-n,s=new i(o,n,r,a);return s}},n.inherits(a,r);var s=a;t.exports=s},77532:function(t,e,o){var n=o(38175),i=(n.__DEV__,o(33051)),r=i.isObject,a=i.each,s=i.map,c=i.indexOf,u=(i.retrieve,o(76172)),l=u.getLayoutRect,h=o(97980),d=h.createScaleByModel,f=h.ifAxisCrossZero,g=h.niceScaleExtent,x=h.estimateLabelUnionRect,p=o(81096),m=o(57760),y=o(95899),v=o(99936),C=v.getStackedDimension;function A(t,e,o){return t.getCoordSysModel()===e}function _(t,e,o){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(t,e,o),this.model=t}o(33927);var b=_.prototype;function M(t,e,o,n){o.getAxesOnZeroOf=function(){return i?[i]:[]};var i,r=t[e],a=o.model,s=a.get("axisLine.onZero"),c=a.get("axisLine.onZeroAxisIndex");if(s){if(null!=c)T(r[c])&&(i=r[c]);else for(var u in r)if(r.hasOwnProperty(u)&&T(r[u])&&!n[l(r[u])]){i=r[u];break}i&&(n[l(i)]=!0)}function l(t){return t.dim+"_"+t.index}}function T(t){return t&&"category"!==t.type&&"time"!==t.type&&f(t)}function L(t,e){var o=t.getExtent(),n=o[0]+o[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}b.type="grid",b.axisPointerEnabled=!0,b.getRect=function(){return this._rect},b.update=function(t,e){var o=this._axesMap;this._updateScale(t,this.model),a(o.x,(function(t){g(t.scale,t.model)})),a(o.y,(function(t){g(t.scale,t.model)}));var n={};a(o.x,(function(t){M(o,"y",t,n)})),a(o.y,(function(t){M(o,"x",t,n)})),this.resize(this.model,e)},b.resize=function(t,e,o){var n=l(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=n;var i=this._axesList;function r(){a(i,(function(t){var e=t.isHorizontal(),o=e?[0,n.width]:[0,n.height],i=t.inverse?1:0;t.setExtent(o[i],o[1-i]),L(t,e?n.x:n.y)}))}r(),!o&&t.get("containLabel")&&(a(i,(function(t){if(!t.model.get("axisLabel.inside")){var e=x(t);if(e){var o=t.isHorizontal()?"height":"width",i=t.model.get("axisLabel.margin");n[o]-=e[o]+i,"top"===t.position?n.y+=e.height+i:"left"===t.position&&(n.x+=e.width+i)}}})),r())},b.getAxis=function(t,e){var o=this._axesMap[t];if(null!=o){if(null==e)for(var n in o)if(o.hasOwnProperty(n))return o[n];return o[e]}},b.getAxes=function(){return this._axesList.slice()},b.getCartesian=function(t,e){if(null!=t&&null!=e){var o="x"+t+"y"+e;return this._coordsMap[o]}r(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},b.getCartesians=function(){return this._coordsList.slice()},b.convertToPixel=function(t,e,o){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.dataToPoint(o):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(o)):null},b.convertFromPixel=function(t,e,o){var n=this._findConvertTarget(t,e);return n.cartesian?n.cartesian.pointToData(o):n.axis?n.axis.coordToData(n.axis.toLocalCoord(o)):null},b._findConvertTarget=function(t,e){var o,n,i=e.seriesModel,r=e.xAxisModel||i&&i.getReferringComponents("xAxis")[0],a=e.yAxisModel||i&&i.getReferringComponents("yAxis")[0],s=e.gridModel,u=this._coordsList;if(i)o=i.coordinateSystem,c(u,o)<0&&(o=null);else if(r&&a)o=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)n=this.getAxis("x",r.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(s){var l=s.coordinateSystem;l===this&&(o=this._coordsList[0])}return{cartesian:o,axis:n}},b.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},b._initCartesian=function(t,e,o){var n={left:!1,right:!1,top:!1,bottom:!1},i={x:{},y:{}},r={x:0,y:0};if(e.eachComponent("xAxis",s("x"),this),e.eachComponent("yAxis",s("y"),this),!r.x||!r.y)return this._axesMap={},void(this._axesList=[]);function s(o){return function(a,s){if(A(a,t,e)){var c=a.get("position");"x"===o?"top"!==c&&"bottom"!==c&&(c=n.bottom?"top":"bottom"):"left"!==c&&"right"!==c&&(c=n.left?"right":"left"),n[c]=!0;var u=new m(o,d(a),[0,0],a.get("type"),c),l="category"===u.type;u.onBand=l&&a.get("boundaryGap"),u.inverse=a.get("inverse"),a.axis=u,u.model=a,u.grid=this,u.index=s,this._axesList.push(u),i[o][s]=u,r[o]++}}}this._axesMap=i,a(i.x,(function(e,o){a(i.y,(function(n,i){var r="x"+o+"y"+i,a=new p(r);a.grid=this,a.model=t,this._coordsMap[r]=a,this._coordsList.push(a),a.addAxis(e),a.addAxis(n)}),this)}),this)},b._updateScale=function(t,e){function o(t,e,o){a(t.mapDimension(e.dim,!0),(function(o){e.scale.unionExtentFromData(t,C(t,o))}))}a(this._axesList,(function(t){t.scale.setExtent(1/0,-1/0)})),t.eachSeries((function(n){if(D(n)){var i=S(n,t),r=i[0],a=i[1];if(!A(r,e,t)||!A(a,e,t))return;var s=this.getCartesian(r.componentIndex,a.componentIndex),c=n.getData(),u=s.getAxis("x"),l=s.getAxis("y");"list"===c.type&&(o(c,u,n),o(c,l,n))}}),this)},b.getTooltipAxes=function(t){var e=[],o=[];return a(this.getCartesians(),(function(n){var i=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),r=n.getOtherAxis(i);c(e,i)<0&&e.push(i),c(o,r)<0&&o.push(r)})),{baseAxes:e,otherAxes:o}};var w=["xAxis","yAxis"];function S(t,e){return s(w,(function(e){var o=t.getReferringComponents(e)[0];return o}))}function D(t){return"cartesian2d"===t.get("coordinateSystem")}_.create=function(t,e){var o=[];return t.eachComponent("grid",(function(n,i){var r=new _(n,t,e);r.name="grid_"+i,r.resize(n,e,!0),n.coordinateSystem=r,o.push(r)})),t.eachSeries((function(e){if(D(e)){var o=S(e,t),n=o[0],i=o[1],r=n.getCoordSysModel(),a=r.coordinateSystem;e.coordinateSystem=a.getCartesian(n.componentIndex,i.componentIndex)}})),o},_.dimensions=_.prototype.dimensions=p.prototype.dimensions,y.register("cartesian2d",_);var R=_;t.exports=R},33927:function(t,e,o){o(54805);var n=o(98071),i=n.extend({type:"grid",dependencies:["xAxis","yAxis"],layoutMode:"box",coordinateSystem:null,defaultOption:{show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"}});t.exports=i},49069:function(t,e,o){var n=o(33051);function i(t,e,o){o=o||{};var i=t.coordinateSystem,r=e.axis,a={},s=r.getAxesOnZeroOf()[0],c=r.position,u=s?"onZero":c,l=r.dim,h=i.getRect(),d=[h.x,h.x+h.width,h.y,h.y+h.height],f={left:0,right:1,top:0,bottom:1,onZero:2},g=e.get("offset")||0,x="x"===l?[d[2]-g,d[3]+g]:[d[0]-g,d[1]+g];if(s){var p=s.toGlobalCoord(s.dataToCoord(0));x[f.onZero]=Math.max(Math.min(p,x[1]),x[0])}a.position=["y"===l?x[f[u]]:d[0],"x"===l?x[f[u]]:d[3]],a.rotation=Math.PI/2*("x"===l?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[c],a.labelOffset=s?x[f[c]]-x[f.onZero]:0,e.get("axisTick.inside")&&(a.tickDirection=-a.tickDirection),n.retrieve(o.labelInside,e.get("axisLabel.inside"))&&(a.labelDirection=-a.labelDirection);var y=e.get("axisLabel.rotate");return a.labelRotate="top"===u?-y:y,a.z2=1,a}e.layout=i},7409:function(t,e,o){var n=o(33051);function i(t,e){return e=e||[0,0],n.map(["x","y"],(function(o,n){var i=this.getAxis(o),r=e[n],a=t[n]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(r-a)-i.dataToCoord(r+a))}),this)}function r(t){var e=t.grid.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:n.bind(i,t)}}}t.exports=r},61418:function(t,e,o){var n=o(33051),i=o(60479),r=o(23845),a=o(11194);function s(t,e,o,n){r.call(this,t),this.map=e;var i=a.load(e,o);this._nameCoordMap=i.nameCoordMap,this._regionsMap=i.regionsMap,this._invertLongitute=null==n||n,this.regions=i.regions,this._rect=i.boundingRect}function c(t,e,o,n){var i=o.geoModel,r=o.seriesModel,a=i?i.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return a===this?a[t](n):null}s.prototype={constructor:s,type:"geo",dimensions:["lng","lat"],containCoord:function(t){for(var e=this.regions,o=0;o<e.length;o++)if(e[o].contain(t))return!0;return!1},transformTo:function(t,e,o,n){var r=this.getBoundingRect(),a=this._invertLongitute;r=r.clone(),a&&(r.y=-r.y-r.height);var s=this._rawTransformable;if(s.transform=r.calculateTransform(new i(t,e,o,n)),s.decomposeTransform(),a){var c=s.scale;c[1]=-c[1]}s.updateTransform(),this._updateTransform()},getRegion:function(t){return this._regionsMap.get(t)},getRegionByCoord:function(t){for(var e=this.regions,o=0;o<e.length;o++)if(e[o].contain(t))return e[o]},addGeoCoord:function(t,e){this._nameCoordMap.set(t,e)},getGeoCoord:function(t){return this._nameCoordMap.get(t)},getBoundingRect:function(){return this._rect},dataToPoint:function(t,e,o){if("string"===typeof t&&(t=this.getGeoCoord(t)),t)return r.prototype.dataToPoint.call(this,t,e,o)},convertToPixel:n.curry(c,"dataToPoint"),convertFromPixel:n.curry(c,"pointToData")},n.mixin(s,r);var u=s;t.exports=u},39618:function(t,e,o){var n=o(33051),i=o(32234),r=o(98071),a=o(4272),s=o(1501),c=o(18958),u=r.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(t){r.prototype.init.apply(this,arguments),i.defaultEmphasis(t,"label",["show"])},optionUpdated:function(){var t=this.option,e=this;t.regions=c.getFilledRegions(t.regions,t.map,t.nameMap),this._optionModelMap=n.reduce(t.regions||[],(function(t,o){return o.name&&t.set(o.name,new a(o,e)),t}),n.createHashMap()),this.updateSelectedMap(t.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(t){return this._optionModelMap.get(t)||new a(null,this,this.ecModel)},getFormattedLabel:function(t,e){var o=this.getRegionModel(t),n=o.get("label"+("normal"===e?".":e+".")+"formatter"),i={name:t};return"function"===typeof n?(i.status=e,n(i)):"string"===typeof n?n.replace("{a}",null!=t?t:""):void 0},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t}});n.mixin(u,s);var l=u;t.exports=l},64215:function(t,e,o){var n=o(60479),i=o(3726),r=o(45280),a=o(40765);function s(t,e,o){if(this.name=t,this.geometries=e,o)o=[o[0],o[1]];else{var n=this.getBoundingRect();o=[n.x+n.width/2,n.y+n.height/2]}this.center=o}s.prototype={constructor:s,properties:null,getBoundingRect:function(){var t=this._rect;if(t)return t;for(var e=Number.MAX_VALUE,o=[e,e],a=[-e,-e],s=[],c=[],u=this.geometries,l=0;l<u.length;l++)if("polygon"===u[l].type){var h=u[l].exterior;i.fromPoints(h,s,c),r.min(o,o,s),r.max(a,a,c)}return 0===l&&(o[0]=o[1]=a[0]=a[1]=0),this._rect=new n(o[0],o[1],a[0]-o[0],a[1]-o[1])},contain:function(t){var e=this.getBoundingRect(),o=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var n=0,i=o.length;n<i;n++)if("polygon"===o[n].type){var r=o[n].exterior,s=o[n].interiors;if(a.contain(r,t[0],t[1])){for(var c=0;c<(s?s.length:0);c++)if(a.contain(s[c]))continue t;return!0}}return!1},transformTo:function(t,e,o,i){var a=this.getBoundingRect(),s=a.width/a.height;o?i||(i=o/s):o=s*i;for(var c=new n(t,e,o,i),u=a.calculateTransform(c),l=this.geometries,h=0;h<l.length;h++)if("polygon"===l[h].type){for(var d=l[h].exterior,f=l[h].interiors,g=0;g<d.length;g++)r.applyTransform(d[g],d[g],u);for(var x=0;x<(f?f.length:0);x++)for(g=0;g<f[x].length;g++)r.applyTransform(f[x][g],f[x][g],u)}a=this._rect,a.copy(c),this.center=[a.x+a.width/2,a.y+a.height/2]},cloneShallow:function(t){null==t&&(t=this.name);var e=new s(t,this.geometries,this.center);return e._rect=this._rect,e.transformTo=null,e}};var c=s;t.exports=c},85911:function(t){var e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function o(t,o){"china"===t&&"台湾"===o.name&&o.geometries.push({type:"polygon",exterior:e[0]})}t.exports=o}}]);
  2. //# sourceMappingURL=chunk-vendors-1dfd8ab8.e725da2f.js.map