chunk-vendors-56d22386.1496a9fe.js 16 KB

12
  1. (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[6626],{35598:function(e,t,a){var i=a(70492);a(85082),a(25663),i.registerPreprocessor((function(e){e.markArea=e.markArea||{}}))},34563:function(e,t,a){var i=a(70492);a(44971),a(13214),i.registerPreprocessor((function(e){e.markLine=e.markLine||{}}))},74482:function(e,t,a){var i=a(70492);a(35869),a(71696),i.registerPreprocessor((function(e){e.markPoint=e.markPoint||{}}))},85082:function(e,t,a){var i=a(8233),n=i.extend({type:"markArea",defaultOption:{zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}}});e.exports=n},25663:function(e,t,a){var i=a(33051),n=a(21092),o=a(87587),r=a(85669),s=a(51177),l=a(42459),u=a(55597),m=function(e,t,a,n){var o=l.dataTransform(e,n[0]),r=l.dataTransform(e,n[1]),s=i.retrieve,u=o.coord,m=r.coord;u[0]=s(u[0],-1/0),u[1]=s(u[1],-1/0),m[0]=s(m[0],1/0),m[1]=s(m[1],1/0);var d=i.mergeAll([{},o,r]);return d.coord=[o.coord,r.coord],d.x0=o.x,d.y0=o.y,d.x1=r.x,d.y1=r.y,d};function d(e){return!isNaN(e)&&!isFinite(e)}function c(e,t,a,i){var n=1-e;return d(t[n])&&d(a[n])}function p(e,t){var a=t.coord[0],i=t.coord[1];return!("cartesian2d"!==e.type||!a||!i||!c(1,a,i,e)&&!c(0,a,i,e))||(l.dataFilter(e,{coord:a,x:t.x0,y:t.y0})||l.dataFilter(e,{coord:i,x:t.x1,y:t.y1}))}function f(e,t,a,i,n){var o,s=i.coordinateSystem,l=e.getItemModel(t),u=r.parsePercent(l.get(a[0]),n.getWidth()),m=r.parsePercent(l.get(a[1]),n.getHeight());if(isNaN(u)||isNaN(m)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(a,t));else{var c=e.get(a[0],t),p=e.get(a[1],t),f=[c,p];s.clampData&&s.clampData(f,f),o=s.dataToPoint(f,!0)}if("cartesian2d"===s.type){var g=s.getAxis("x"),h=s.getAxis("y");c=e.get(a[0],t),p=e.get(a[1],t);d(c)?o[0]=g.toGlobalCoord(g.getExtent()["x0"===a[0]?0:1]):d(p)&&(o[1]=h.toGlobalCoord(h.getExtent()["y0"===a[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(m)||(o[1]=m)}else o=[u,m];return o}var g=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];function h(e,t,a){var n,r,s=["x0","y0","x1","y1"];e?(n=i.map(e&&e.dimensions,(function(e){var a=t.getData(),n=a.getDimensionInfo(a.mapDimension(e))||{};return i.defaults({name:e},n)})),r=new o(i.map(s,(function(e,t){return{name:e,type:n[t%2].type}})),a)):(n=[{name:"value",type:"float"}],r=new o(n,a));var l=i.map(a.get("data"),i.curry(m,t,e,a));e&&(l=i.filter(l,i.curry(p,e)));var u=e?function(e,t,a,i){return e.coord[Math.floor(i/2)][i%2]}:function(e){return e.value};return r.initData(l,null,u),r.hasItemOption=!0,r}u.extend({type:"markArea",updateTransform:function(e,t,a){t.eachSeries((function(e){var t=e.markAreaModel;if(t){var n=t.getData();n.each((function(t){var o=i.map(g,(function(i){return f(n,t,i,e,a)}));n.setItemLayout(t,o);var r=n.getItemGraphicEl(t);r.setShape("points",o)}))}}),this)},renderSeries:function(e,t,a,o){var r=e.coordinateSystem,l=e.id,u=e.getData(),m=this.markerGroupMap,d=m.get(l)||m.set(l,{group:new s.Group});this.group.add(d.group),d.__keep=!0;var c=h(r,e,t);t.setData(c),c.each((function(t){c.setItemLayout(t,i.map(g,(function(a){return f(c,t,a,e,o)}))),c.setItemVisual(t,{color:u.getVisual("color")})})),c.diff(d.__data).add((function(e){var t=new s.Polygon({shape:{points:c.getItemLayout(e)}});c.setItemGraphicEl(e,t),d.group.add(t)})).update((function(e,a){var i=d.__data.getItemGraphicEl(a);s.updateProps(i,{shape:{points:c.getItemLayout(e)}},t,e),d.group.add(i),c.setItemGraphicEl(e,i)})).remove((function(e){var t=d.__data.getItemGraphicEl(e);d.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,a){var o=c.getItemModel(a),r=o.getModel("label"),l=o.getModel("emphasis.label"),u=c.getItemVisual(a,"color");e.useStyle(i.defaults(o.getModel("itemStyle").getItemStyle(),{fill:n.modifyAlpha(u,.4),stroke:u})),e.hoverStyle=o.getModel("emphasis.itemStyle").getItemStyle(),s.setLabelStyle(e.style,e.hoverStyle,r,l,{labelFetcher:t,labelDataIndex:a,defaultText:c.getName(a)||"",isRectText:!0,autoColor:u}),s.setHoverStyle(e,{}),e.dataModel=t})),d.__data=c,d.group.silent=t.get("silent")||e.get("silent")}})},44971:function(e,t,a){var i=a(8233),n=i.extend({type:"markLine",defaultOption:{zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"}});e.exports=n},13214:function(e,t,a){var i=a(33051),n=a(87587),o=a(85669),r=a(42459),s=a(47145),l=a(55597),u=a(99936),m=u.getStackedDimension,d=function(e,t,a,n){var o=e.getData(),s=n.type;if(!i.isArray(n)&&("min"===s||"max"===s||"average"===s||"median"===s||null!=n.xAxis||null!=n.yAxis)){var l,u;if(null!=n.yAxis||null!=n.xAxis)l=t.getAxis(null!=n.yAxis?"y":"x"),u=i.retrieve(n.yAxis,n.xAxis);else{var d=r.getAxisInfo(n,o,t,e);l=d.valueAxis;var c=m(o,d.valueDataDim);u=r.numCalculate(o,c,s)}var p="x"===l.dim?0:1,f=1-p,g=i.clone(n),h={};g.type=null,g.coord=[],h.coord=[],g.coord[f]=-1/0,h.coord[f]=1/0;var v=a.get("precision");v>=0&&"number"===typeof u&&(u=+u.toFixed(Math.min(v,20))),g.coord[p]=h.coord[p]=u,n=[g,h,{type:s,valueIndex:n.valueIndex,value:u}]}return n=[r.dataTransform(e,n[0]),r.dataTransform(e,n[1]),i.extend({},n[2])],n[2].type=n[2].type||"",i.merge(n[2],n[0]),i.merge(n[2],n[1]),n};function c(e){return!isNaN(e)&&!isFinite(e)}function p(e,t,a,i){var n=1-e,o=i.dimensions[e];return c(t[n])&&c(a[n])&&t[e]===a[e]&&i.getAxis(o).containData(t[e])}function f(e,t){if("cartesian2d"===e.type){var a=t[0].coord,i=t[1].coord;if(a&&i&&(p(1,a,i,e)||p(0,a,i,e)))return!0}return r.dataFilter(e,t[0])&&r.dataFilter(e,t[1])}function g(e,t,a,i,n){var r,s=i.coordinateSystem,l=e.getItemModel(t),u=o.parsePercent(l.get("x"),n.getWidth()),m=o.parsePercent(l.get("y"),n.getHeight());if(isNaN(u)||isNaN(m)){if(i.getMarkerPosition)r=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var d=s.dimensions,p=e.get(d[0],t),f=e.get(d[1],t);r=s.dataToPoint([p,f])}if("cartesian2d"===s.type){var g=s.getAxis("x"),h=s.getAxis("y");d=s.dimensions;c(e.get(d[0],t))?r[0]=g.toGlobalCoord(g.getExtent()[a?0:1]):c(e.get(d[1],t))&&(r[1]=h.toGlobalCoord(h.getExtent()[a?0:1]))}isNaN(u)||(r[0]=u),isNaN(m)||(r[1]=m)}else r=[u,m];e.setItemLayout(t,r)}var h=l.extend({type:"markLine",updateTransform:function(e,t,a){t.eachSeries((function(e){var t=e.markLineModel;if(t){var i=t.getData(),n=t.__from,o=t.__to;n.each((function(t){g(n,t,!0,e,a),g(o,t,!1,e,a)})),i.each((function(e){i.setItemLayout(e,[n.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},renderSeries:function(e,t,a,n){var o=e.coordinateSystem,r=e.id,l=e.getData(),u=this.markerGroupMap,m=u.get(r)||u.set(r,new s);this.group.add(m.group);var d=v(o,e,t),c=d.from,p=d.to,f=d.line;t.__from=c,t.__to=p,t.setData(f);var h=t.get("symbol"),y=t.get("symbolSize");function x(t,a,i){var o=t.getItemModel(a);g(t,a,i,e,n),t.setItemVisual(a,{symbolSize:o.get("symbolSize")||y[i?0:1],symbol:o.get("symbol",!0)||h[i?0:1],color:o.get("itemStyle.color")||l.getVisual("color")})}i.isArray(h)||(h=[h,h]),"number"===typeof y&&(y=[y,y]),d.from.each((function(e){x(c,e,!0),x(p,e,!1)})),f.each((function(e){var t=f.getItemModel(e).get("lineStyle.color");f.setItemVisual(e,{color:t||c.getItemVisual(e,"color")}),f.setItemLayout(e,[c.getItemLayout(e),p.getItemLayout(e)]),f.setItemVisual(e,{fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolSize:p.getItemVisual(e,"symbolSize"),toSymbol:p.getItemVisual(e,"symbol")})})),m.updateData(f),d.line.eachItemGraphicEl((function(e,a){e.traverse((function(e){e.dataModel=t}))})),m.__keep=!0,m.group.silent=t.get("silent")||e.get("silent")}});function v(e,t,a){var o;o=e?i.map(e&&e.dimensions,(function(e){var a=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},a)})):[{name:"value",type:"float"}];var s=new n(o,a),l=new n(o,a),u=new n([],a),m=i.map(a.get("data"),i.curry(d,t,e,a));e&&(m=i.filter(m,i.curry(f,e)));var c=e?r.dimValueGetter:function(e){return e.value};return s.initData(i.map(m,(function(e){return e[0]})),null,c),l.initData(i.map(m,(function(e){return e[1]})),null,c),u.initData(i.map(m,(function(e){return e[2]}))),u.hasItemOption=!0,{from:s,to:l,line:u}}e.exports=h},35869:function(e,t,a){var i=a(8233),n=i.extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}}});e.exports=n},71696:function(e,t,a){var i=a(33051),n=a(68162),o=a(85669),r=a(87587),s=a(42459),l=a(55597);function u(e,t,a){var i=t.coordinateSystem;e.each((function(n){var r,s=e.getItemModel(n),l=o.parsePercent(s.get("x"),a.getWidth()),u=o.parsePercent(s.get("y"),a.getHeight());if(isNaN(l)||isNaN(u)){if(t.getMarkerPosition)r=t.getMarkerPosition(e.getValues(e.dimensions,n));else if(i){var m=e.get(i.dimensions[0],n),d=e.get(i.dimensions[1],n);r=i.dataToPoint([m,d])}}else r=[l,u];isNaN(l)||(r[0]=l),isNaN(u)||(r[1]=u),e.setItemLayout(n,r)}))}var m=l.extend({type:"markPoint",updateTransform:function(e,t,a){t.eachSeries((function(e){var t=e.markPointModel;t&&(u(t.getData(),e,a),this.markerGroupMap.get(e.id).updateLayout(t))}),this)},renderSeries:function(e,t,a,o){var r=e.coordinateSystem,s=e.id,l=e.getData(),m=this.markerGroupMap,c=m.get(s)||m.set(s,new n),p=d(r,e,t);t.setData(p),u(t.getData(),e,o),p.each((function(e){var a=p.getItemModel(e),n=a.getShallow("symbol"),o=a.getShallow("symbolSize"),r=i.isFunction(n),s=i.isFunction(o);if(r||s){var u=t.getRawValue(e),m=t.getDataParams(e);r&&(n=n(u,m)),s&&(o=o(u,m))}p.setItemVisual(e,{symbol:n,symbolSize:o,color:a.get("itemStyle.color")||l.getVisual("color")})})),c.updateData(p),this.group.add(c.group),p.eachItemGraphicEl((function(e){e.traverse((function(e){e.dataModel=t}))})),c.__keep=!0,c.group.silent=t.get("silent")||e.get("silent")}});function d(e,t,a){var n;n=e?i.map(e&&e.dimensions,(function(e){var a=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return i.defaults({name:e},a)})):[{name:"value",type:"float"}];var o=new r(n,a),l=i.map(a.get("data"),i.curry(s.dataTransform,t));return e&&(l=i.filter(l,i.curry(s.dataFilter,e))),o.initData(l,null,e?s.dimValueGetter:function(e){return e.value}),o}e.exports=m},8233:function(e,t,a){var i=a(38175),n=(i.__DEV__,a(70492)),o=a(33051),r=a(66387),s=a(32234),l=a(78988),u=a(61219),m=l.addCommas,d=l.encodeHTML;function c(e){s.defaultEmphasis(e,"label",["show"])}var p=n.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,a){this.mergeDefaultAndTheme(e,a),this._mergeOption(e,a,!1,!0)},isAnimationEnabled:function(){if(r.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},mergeOption:function(e,t){this._mergeOption(e,t,!1,!1)},_mergeOption:function(e,t,a,i){var n=this.constructor,r=this.mainType+"Model";a||t.eachSeries((function(e){var a=e.get(this.mainType,!0),s=e[r];a&&a.data?(s?s._mergeOption(a,t,!0):(i&&c(a),o.each(a.data,(function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)})),s=new n(a,this,t),o.extend(s,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),s.__hostSeries=e),e[r]=s):e[r]=null}),this)},formatTooltip:function(e){var t=this.getData(),a=this.getRawValue(e),i=o.isArray(a)?o.map(a,m).join(", "):m(a),n=t.getName(e),r=d(this.name);return(null!=a||n)&&(r+="<br />"),n&&(r+=d(n),null!=a&&(r+=" : ")),null!=a&&(r+=d(i)),r},getData:function(){return this._data},setData:function(e){this._data=e}});o.mixin(p,u);var f=p;e.exports=f},55597:function(e,t,a){var i=a(70492),n=a(33051),o=i.extendComponentView({type:"marker",init:function(){this.markerGroupMap=n.createHashMap()},render:function(e,t,a){var i=this.markerGroupMap;i.each((function(e){e.__keep=!1}));var n=this.type+"Model";t.eachSeries((function(e){var i=e[n];i&&this.renderSeries(e,i,t,a)}),this),i.each((function(e){!e.__keep&&this.group.remove(e.group)}),this)},renderSeries:function(){}});e.exports=o},42459:function(e,t,a){var i=a(33051),n=a(85669),o=a(99936),r=o.isDimensionStacked,s=i.indexOf;function l(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function u(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function m(e,t,a,i,o,s){var l=[],u=r(t,i),m=u?t.getCalculationInfo("stackResultDimension"):i,d=y(t,m,e),c=t.indicesOfNearest(m,d)[0];l[o]=t.get(a,c),l[s]=t.get(m,c);var p=t.get(i,c),f=n.getPrecision(t.get(i,c));return f=Math.min(f,20),f>=0&&(l[s]=+l[s].toFixed(f)),[l,p]}var d=i.curry,c={min:d(m,"min"),max:d(m,"max"),average:d(m,"average")};function p(e,t){var a=e.getData(),n=e.coordinateSystem;if(t&&!u(t)&&!i.isArray(t.coord)&&n){var o=n.dimensions,r=f(t,a,n,e);if(t=i.clone(t),t.type&&c[t.type]&&r.baseAxis&&r.valueAxis){var l=s(o,r.baseAxis.dim),m=s(o,r.valueAxis.dim),d=c[t.type](a,r.baseDataDim,r.valueDataDim,l,m);t.coord=d[0],t.value=d[1]}else{for(var p=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],g=0;g<2;g++)c[p[g]]&&(p[g]=y(a,a.mapDimension(o[g]),p[g]));t.coord=p}}return t}function f(e,t,a,i){var n={};return null!=e.valueIndex||null!=e.valueDim?(n.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,n.valueAxis=a.getAxis(g(i,n.valueDataDim)),n.baseAxis=a.getOtherAxis(n.valueAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim)):(n.baseAxis=i.getBaseAxis(),n.valueAxis=a.getOtherAxis(n.baseAxis),n.baseDataDim=t.mapDimension(n.baseAxis.dim),n.valueDataDim=t.mapDimension(n.valueAxis.dim)),n}function g(e,t){var a=e.getData(),i=a.dimensions;t=a.getDimension(t);for(var n=0;n<i.length;n++){var o=a.getDimensionInfo(i[n]);if(o.name===t)return o.coordDim}}function h(e,t){return!(e&&e.containData&&t.coord&&!l(t))||e.containData(t.coord)}function v(e,t,a,i){return i<2?e.coord&&e.coord[i]:e.value}function y(e,t,a){if("average"===a){var i=0,n=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,n++)})),i/n}return"median"===a?e.getMedian(t):e.getDataExtent(t,!0)["max"===a?1:0]}t.dataTransform=p,t.getAxisInfo=f,t.dataFilter=h,t.dimValueGetter=v,t.numCalculate=y},75781:function(e,t,a){var i=a(70492),n=a(33051),o=a(270),r=a(20769);a(14506),a(20946),a(7849);var s=5;i.extendComponentView({type:"parallel",render:function(e,t,a){this._model=e,this._api=a,this._handlers||(this._handlers={},n.each(l,(function(e,t){a.getZr().on(t,this._handlers[t]=n.bind(e,this))}),this)),o.createOrUpdate(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},dispose:function(e,t){n.each(this._handlers,(function(e,a){t.getZr().off(a,e)})),this._handlers=null},_throttledDispatchExpand:function(e){this._dispatchExpand(e)},_dispatchExpand:function(e){e&&this._api.dispatchAction(n.extend({type:"parallelAxisExpand"},e))}});var l={mousedown:function(e){u(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(u(this,"click")&&t){var a=[e.offsetX,e.offsetY],i=Math.pow(t[0]-a[0],2)+Math.pow(t[1]-a[1],2);if(i>s)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&u(this,"mousemove")){var t=this._model,a=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=a.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:a.axisExpandWindow,animation:"jump"===i&&null})}}};function u(e,t){var a=e._model;return a.get("axisExpandable")&&a.get("axisExpandTriggerOn")===t}i.registerPreprocessor(r)},7849:function(e,t,a){a(14506),a(8985),a(20594)},49225:function(e,t,a){var i=a(70492),n=a(33051),o=a(21709);a(90580),a(3229),a(48540),a(52528),a(72432),i.registerLayout(n.curry(o,"bar")),i.extendComponentView({type:"polar"})}}]);
  2. //# sourceMappingURL=chunk-vendors-56d22386.1496a9fe.js.map