12 |
- (self["webpackChunkapp"]=self["webpackChunkapp"]||[]).push([[7823],{94859:function(e,t,a){var n=a(70492),o=a(33051);a(52702),a(42471);var i=a(75324),r=a(69274),l=a(63798),s=a(22528);i("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),n.registerVisual(r("pie")),n.registerLayout(o.curry(l,"pie")),n.registerProcessor(s("pie"))},17659:function(e,t,a){var n=a(80423),o=a(85669),i=o.parsePercent,r=Math.PI/180;function l(e,t,a,n,o,i,r,l,s,u){function c(t,a,n,o){for(var i=t;i<a;i++){if(e[i].y+n>s+r)break;if(e[i].y+=n,i>t&&i+1<a&&e[i+1].y>e[i].y+e[i].height)return void d(i,n/2)}d(a-1,n/2)}function d(t,a){for(var n=t;n>=0;n--){if(e[n].y-a<s)break;if(e[n].y-=a,n>0&&e[n].y>e[n-1].y+e[n-1].height)break}}function g(e,t,a,n,o,i){for(var r=t?Number.MAX_VALUE:0,l=0,s=e.length;l<s;l++)if("none"===e[l].labelAlignTo){var u=Math.abs(e[l].y-n),c=e[l].len,d=e[l].len2,g=u<o+c?Math.sqrt((o+c+d)*(o+c+d)-u*u):Math.abs(e[l].x-a);t&&g>=r&&(g=r-10),!t&&g<=r&&(g=r+10),e[l].x=a+g*i,r=g}}e.sort((function(e,t){return e.y-t.y}));for(var h,y=0,p=e.length,f=[],v=[],m=0;m<p;m++){if("outer"===e[m].position&&"labelLine"===e[m].labelAlignTo){var x=e[m].x-u;e[m].linePoints[1][0]+=x,e[m].x=u}h=e[m].y-y,h<0&&c(m,p,-h,o),y=e[m].y+e[m].height}r-y<0&&d(p-1,y-r);for(m=0;m<p;m++)e[m].y>=a?v.push(e[m]):f.push(e[m]);g(f,!1,t,a,n,o),g(v,!0,t,a,n,o)}function s(e,t,a,o,i,r,s,c){for(var d=[],g=[],h=Number.MAX_VALUE,y=-Number.MAX_VALUE,p=0;p<e.length;p++)u(e[p])||(e[p].x<t?(h=Math.min(h,e[p].x),d.push(e[p])):(y=Math.max(y,e[p].x),g.push(e[p])));l(g,t,a,o,1,i,r,s,c,y),l(d,t,a,o,-1,i,r,s,c,h);for(p=0;p<e.length;p++){var f=e[p];if(!u(f)){var v=f.linePoints;if(v){var m,x="edge"===f.labelAlignTo,L=f.textRect.width;m=x?f.x<t?v[2][0]-f.labelDistance-s-f.labelMargin:s+i-f.labelMargin-v[2][0]-f.labelDistance:f.x<t?f.x-s-f.bleedMargin:s+i-f.x-f.bleedMargin,m<f.textRect.width&&(f.text=n.truncateText(f.text,m,f.font),"edge"===f.labelAlignTo&&(L=n.getWidth(f.text,f.font)));var b=v[1][0]-v[2][0];x?f.x<t?v[2][0]=s+f.labelMargin+L+f.labelDistance:v[2][0]=s+i-f.labelMargin-L-f.labelDistance:(f.x<t?v[2][0]=f.x+f.labelDistance:v[2][0]=f.x-f.labelDistance,v[1][0]=v[2][0]+b),v[1][1]=v[2][1]=f.y}}}}function u(e){return"center"===e.position}function c(e,t,a,o,l,u){var c,d,g=e.getData(),h=[],y=!1,p=(e.get("minShowLabelAngle")||0)*r;g.each((function(o){var r=g.getItemLayout(o),s=g.getItemModel(o),u=s.getModel("label"),f=u.get("position")||s.get("emphasis.label.position"),v=u.get("distanceToLabelLine"),m=u.get("alignTo"),x=i(u.get("margin"),a),L=u.get("bleedMargin"),b=u.getFont(),I=s.getModel("labelLine"),A=I.get("length");A=i(A,a);var S=I.get("length2");if(S=i(S,a),!(r.angle<p)){var D,M,N,w,_=(r.startAngle+r.endAngle)/2,E=Math.cos(_),T=Math.sin(_);c=r.cx,d=r.cy;var P,j=e.getFormattedLabel(o,"normal")||g.getName(o),V=n.getBoundingRect(j,b,w,"top"),G="inside"===f||"inner"===f;if("center"===f)D=r.cx,M=r.cy,w="center";else{var k=(G?(r.r+r.r0)/2*E:r.r*E)+c,C=(G?(r.r+r.r0)/2*T:r.r*T)+d;if(D=k+3*E,M=C+3*T,!G){var H=k+E*(A+t-r.r),R=C+T*(A+t-r.r),z=H+(E<0?-1:1)*S,B=R;D="edge"===m?E<0?l+x:l+a-x:z+(E<0?-v:v),M=B,N=[[k,C],[H,R],[z,B]]}w=G?"center":"edge"===m?E>0?"right":"left":E>0?"left":"right"}var U=u.get("rotate");P="number"===typeof U?U*(Math.PI/180):U?E<0?-_+Math.PI:-_:0,y=!!P,r.label={x:D,y:M,position:f,height:V.height,len:A,len2:S,linePoints:N,textAlign:w,verticalAlign:"middle",rotation:P,inside:G,labelDistance:v,labelAlignTo:m,labelMargin:x,bleedMargin:L,textRect:V,text:j,font:b},G||h.push(r.label)}})),!y&&e.get("avoidLabelOverlap")&&s(h,c,d,t,a,o,l,u)}e.exports=c},63798:function(e,t,a){var n=a(85669),o=n.parsePercent,i=n.linearMap,r=a(76172),l=a(17659),s=a(33051),u=2*Math.PI,c=Math.PI/180;function d(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function g(e,t,a,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),n=t.mapDimension("value"),r=d(e,a),g=e.get("center"),h=e.get("radius");s.isArray(h)||(h=[0,h]),s.isArray(g)||(g=[g,g]);var y=o(r.width,a.getWidth()),p=o(r.height,a.getHeight()),f=Math.min(y,p),v=o(g[0],y)+r.x,m=o(g[1],p)+r.y,x=o(h[0],f/2),L=o(h[1],f/2),b=-e.get("startAngle")*c,I=e.get("minAngle")*c,A=0;t.each(n,(function(e){!isNaN(e)&&A++}));var S=t.getSum(n),D=Math.PI/(S||A)*2,M=e.get("clockwise"),N=e.get("roseType"),w=e.get("stillShowZeroSum"),_=t.getDataExtent(n);_[0]=0;var E=u,T=0,P=b,j=M?1:-1;if(t.each(n,(function(e,a){var n;if(isNaN(e))t.setItemLayout(a,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:v,cy:m,r0:x,r:N?NaN:L,viewRect:r});else{n="area"!==N?0===S&&w?D:e*D:u/A,n<I?(n=I,E-=I):T+=e;var o=P+j*n;t.setItemLayout(a,{angle:n,startAngle:P,endAngle:o,clockwise:M,cx:v,cy:m,r0:x,r:N?i(e,_,[x,L]):L,viewRect:r}),P=o}})),E<u&&A)if(E<=.001){var V=u/A;t.each(n,(function(e,a){if(!isNaN(e)){var n=t.getItemLayout(a);n.angle=V,n.startAngle=b+j*a*V,n.endAngle=b+j*(a+1)*V}}))}else D=E/T,P=b,t.each(n,(function(e,a){if(!isNaN(e)){var n=t.getItemLayout(a),o=n.angle===I?I:e*D;n.startAngle=P,n.endAngle=P+j*o,P+=j*o}}));l(e,L,r.width,r.height,r.x,r.y)}))}e.exports=g},48927:function(e,t,a){var n=a(70492);a(22881),a(57345),a(36158);var o=a(69274),i=a(34586),r=a(34263),l=a(22528),s=a(17144);n.registerVisual(o("radar")),n.registerVisual(i("radar","circle")),n.registerLayout(r),n.registerProcessor(l("radar")),n.registerPreprocessor(s)},57345:function(e,t,a){var n=a(93321),o=a(23263),i=a(33051),r=a(78988),l=r.encodeHTML,s=a(72019),u=n.extend({type:"series.radar",dependencies:["radar"],init:function(e){u.superApply(this,"init",arguments),this.legendVisualProvider=new s(i.bind(this.getData,this),i.bind(this.getRawData,this))},getInitialData:function(e,t){return o(this,{generateCoord:"indicator_",generateCoordCount:1/0})},formatTooltip:function(e){var t=this.getData(),a=this.coordinateSystem,n=a.getIndicatorAxes(),o=this.getData().getName(e);return l(""===o?this.name:o)+"<br/>"+i.map(n,(function(a,n){var o=t.get(t.mapDimension(a.dim),e);return l(a.name+" : "+o)})).join("<br />")},getTooltipPosition:function(e){if(null!=e)for(var t=this.getData(),a=this.coordinateSystem,n=t.getValues(i.map(a.dimensions,(function(e){return t.mapDimension(e)})),e,!0),o=0,r=n.length;o<r;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[o]),o)}},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4}}),c=u;e.exports=c},36158:function(e,t,a){var n=a(70492),o=a(51177),i=a(33051),r=a(41525);function l(e){return i.isArray(e)||(e=[+e,+e]),e}var s=n.extendChartView({type:"radar",render:function(e,t,a){var n=e.coordinateSystem,s=this.group,u=e.getData(),c=this._data;function d(e,t){var a=e.getItemVisual(t,"symbol")||"circle",n=e.getItemVisual(t,"color");if("none"!==a){var o=l(e.getItemVisual(t,"symbolSize")),i=r.createSymbol(a,-1,-1,2,2,n);return i.attr({style:{strokeNoScale:!0},z2:100,scale:[o[0]/2,o[1]/2]}),i}}function g(t,a,n,i,r,l){n.removeAll();for(var s=0;s<a.length-1;s++){var u=d(i,r);u&&(u.__dimIdx=s,t[s]?(u.attr("position",t[s]),o[l?"initProps":"updateProps"](u,{position:a[s]},e,r)):u.attr("position",a[s]),n.add(u))}}function h(e){return i.map(e,(function(e){return[n.cx,n.cy]}))}u.diff(c).add((function(t){var a=u.getItemLayout(t);if(a){var n=new o.Polygon,i=new o.Polyline,r={shape:{points:a}};n.shape.points=h(a),i.shape.points=h(a),o.initProps(n,r,e,t),o.initProps(i,r,e,t);var l=new o.Group,s=new o.Group;l.add(i),l.add(n),l.add(s),g(i.shape.points,a,s,u,t,!0),u.setItemGraphicEl(t,l)}})).update((function(t,a){var n=c.getItemGraphicEl(a),i=n.childAt(0),r=n.childAt(1),l=n.childAt(2),s={shape:{points:u.getItemLayout(t)}};s.shape.points&&(g(i.shape.points,s.shape.points,l,u,t,!1),o.updateProps(i,s,e),o.updateProps(r,s,e),u.setItemGraphicEl(t,n))})).remove((function(e){s.remove(c.getItemGraphicEl(e))})).execute(),u.eachItemGraphicEl((function(e,t){var a=u.getItemModel(t),n=e.childAt(0),r=e.childAt(1),l=e.childAt(2),c=u.getItemVisual(t,"color");s.add(e),n.useStyle(i.defaults(a.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),n.hoverStyle=a.getModel("emphasis.lineStyle").getLineStyle();var d=a.getModel("areaStyle"),g=a.getModel("emphasis.areaStyle"),h=d.isEmpty()&&d.parentModel.isEmpty(),y=g.isEmpty()&&g.parentModel.isEmpty();y=y&&h,r.ignore=h,r.useStyle(i.defaults(d.getAreaStyle(),{fill:c,opacity:.7})),r.hoverStyle=g.getAreaStyle();var p=a.getModel("itemStyle").getItemStyle(["color"]),f=a.getModel("emphasis.itemStyle").getItemStyle(),v=a.getModel("label"),m=a.getModel("emphasis.label");l.eachChild((function(e){e.setStyle(p),e.hoverStyle=i.clone(f);var a=u.get(u.dimensions[e.__dimIdx],t);(null==a||isNaN(a))&&(a=""),o.setLabelStyle(e.style,e.hoverStyle,v,m,{labelFetcher:u.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:a,autoColor:c,isRectText:!0})})),e.highDownOnUpdate=function(e,t){r.attr("ignore","emphasis"===t?y:h)},o.setHoverStyle(e)})),this._data=u},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});e.exports=s},17144:function(e,t,a){var n=a(33051);function o(e){var t=e.polar;if(t){n.isArray(t)||(t=[t]);var a=[];n.each(t,(function(t,o){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],n.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):a.push(t)})),e.polar=a}n.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}e.exports=o},34263:function(e,t,a){var n=a(33051);function o(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),a=[],o=e.coordinateSystem;if(o){var l=o.getIndicatorAxes();n.each(l,(function(e,n){t.each(t.mapDimension(l[n].dim),(function(e,t){a[t]=a[t]||[];var l=o.dataToPoint(e,n);a[t][n]=i(l)?l:r(o)}))})),t.each((function(e){var l=n.find(a[e],(function(e){return i(e)}))||r(o);a[e].push(l.slice()),t.setItemLayout(e,a[e])}))}}))}function i(e){return!isNaN(e[0])&&!isNaN(e[1])}function r(e){return[e.cx,e.cy]}e.exports=o},90474:function(e,t,a){var n=a(70492);a(55341),a(42978),a(37655);var o=a(55776),i=a(66028);n.registerLayout(o),n.registerVisual(i)},55341:function(e,t,a){var n=a(93321),o=a(19638),i=a(78988),r=i.encodeHTML,l=a(4272),s=a(38175),u=(s.__DEV__,n.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(e,t){for(var a=e.edges||e.links,n=e.data||e.nodes,i=e.levels,r=this.levelModels={},s=0;s<i.length;s++)null!=i[s].depth&&i[s].depth>=0&&(r[i[s].depth]=new l(i[s],this,t));if(n&&a){var u=o(n,a,this,!0,c);return u.data}function c(e,t){e.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var a=this.parentModel,n=a.getData().getItemLayout(t).depth,o=a.levelModels[n];return o||this.parentModel})),e})),t.wrapMethod("getItemModel",(function(e,t){return e.customizeGetParent((function(e){var a=this.parentModel,n=a.getGraph().getEdgeByIndex(t),o=n.node1.getLayout().depth,i=a.levelModels[o];return i||this.parentModel})),e}))}},setNodePosition:function(e,t){var a=this.option.data[e];a.localX=t[0],a.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(e,t,a){if("edge"===a){var n=this.getDataParams(e,a),o=n.data,i=o.source+" -- "+o.target;return n.value&&(i+=" : "+n.value),r(i)}if("node"===a){var l=this.getGraph().getNodeByIndex(e),s=l.getLayout().value,c=this.getDataParams(e,a).data.name;if(s)i=c+" : "+s;return r(i)}return u.superCall(this,"formatTooltip",e,t)},optionUpdated:function(){var e=this.option;!0===e.focusNodeAdjacency&&(e.focusNodeAdjacency="allEdges")},getDataParams:function(e,t){var a=u.superCall(this,"getDataParams",e,t);if(null==a.value&&"node"===t){var n=this.getGraph().getNodeByIndex(e),o=n.getLayout().value;a.value=o}return a},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}})),c=u;e.exports=c},42978:function(e,t,a){var n=a(51177),o=a(70492),i=a(33051),r=["itemStyle","opacity"],l=["emphasis","itemStyle","opacity"],s=["lineStyle","opacity"],u=["emphasis","lineStyle","opacity"];function c(e,t){return e.getVisual("opacity")||e.getModel().get(t)}function d(e,t,a){var n=e.getGraphicEl(),o=c(e,t);null!=a&&(null==o&&(o=1),o*=a),n.downplay&&n.downplay(),n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",o)}))}function g(e,t){var a=c(e,t),n=e.getGraphicEl();n.traverse((function(e){"group"!==e.type&&e.setStyle("opacity",a)})),n.highlight&&n.highlight()}var h=n.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(e,t){var a=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+a,t.y2),e.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(e.lineTo(t.x2,t.y2+a),e.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),e.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),y=o.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(e,t,a){var o=this,i=e.getGraph(),r=this.group,l=e.layoutInfo,s=l.width,u=l.height,c=e.getData(),d=e.getData("edge"),g=e.get("orient");this._model=e,r.removeAll(),r.attr("position",[l.x,l.y]),i.eachEdge((function(t){var a=new h;a.dataIndex=t.dataIndex,a.seriesIndex=e.seriesIndex,a.dataType="edge";var o,i,l,c,y,p,f,v,m=t.getModel("lineStyle"),x=m.get("curveness"),L=t.node1.getLayout(),b=t.node1.getModel(),I=b.get("localX"),A=b.get("localY"),S=t.node2.getLayout(),D=t.node2.getModel(),M=D.get("localX"),N=D.get("localY"),w=t.getLayout();switch(a.shape.extent=Math.max(1,w.dy),a.shape.orient=g,"vertical"===g?(o=(null!=I?I*s:L.x)+w.sy,i=(null!=A?A*u:L.y)+L.dy,l=(null!=M?M*s:S.x)+w.ty,c=null!=N?N*u:S.y,y=o,p=i*(1-x)+c*x,f=l,v=i*x+c*(1-x)):(o=(null!=I?I*s:L.x)+L.dx,i=(null!=A?A*u:L.y)+w.sy,l=null!=M?M*s:S.x,c=(null!=N?N*u:S.y)+w.ty,y=o*(1-x)+l*x,p=i,f=o*x+l*(1-x),v=c),a.setShape({x1:o,y1:i,x2:l,y2:c,cpx1:y,cpy1:p,cpx2:f,cpy2:v}),a.setStyle(m.getItemStyle()),a.style.fill){case"source":a.style.fill=t.node1.getVisual("color");break;case"target":a.style.fill=t.node2.getVisual("color");break}n.setHoverStyle(a,t.getModel("emphasis.lineStyle").getItemStyle()),r.add(a),d.setItemGraphicEl(t.dataIndex,a)})),i.eachNode((function(t){var a=t.getLayout(),o=t.getModel(),i=o.get("localX"),l=o.get("localY"),d=o.getModel("label"),g=o.getModel("emphasis.label"),h=new n.Rect({shape:{x:null!=i?i*s:a.x,y:null!=l?l*u:a.y,width:a.dx,height:a.dy},style:o.getModel("itemStyle").getItemStyle()}),y=t.getModel("emphasis.itemStyle").getItemStyle();n.setLabelStyle(h.style,y,d,g,{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id,isRectText:!0}),h.setStyle("fill",t.getVisual("color")),n.setHoverStyle(h,y),r.add(h),c.setItemGraphicEl(t.dataIndex,h),h.dataType="node"})),c.eachItemGraphicEl((function(t,n){var i=c.getItemModel(n);i.get("draggable")&&(t.drift=function(t,i){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=i,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(n),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move"),t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),i.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){o._focusAdjacencyDisabled||(o._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,dataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(a)}))})),d.eachItemGraphicEl((function(t,n){var i=d.getItemModel(n);t.focusNodeAdjHandler&&t.off("mouseover",t.focusNodeAdjHandler),t.unfocusNodeAdjHandler&&t.off("mouseout",t.unfocusNodeAdjHandler),i.get("focusNodeAdjacency")&&(t.on("mouseover",t.focusNodeAdjHandler=function(){o._focusAdjacencyDisabled||(o._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:e.id,edgeDataIndex:t.dataIndex}))}),t.on("mouseout",t.unfocusNodeAdjHandler=function(){o._focusAdjacencyDisabled||o._dispatchUnfocus(a)}))})),!this._data&&e.get("animation")&&r.setClipPath(p(r.getBoundingRect(),e,(function(){r.removeClipPath()}))),this._data=e.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(e){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout((function(){t._unfocusDelayTimer=null,e.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})}),500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(e,t,a,n){var o=e.getData(),c=o.graph,h=n.dataIndex,y=o.getItemModel(h),p=n.edgeDataIndex;if(null!=h||null!=p){var f=c.getNodeByIndex(h),v=c.getEdgeByIndex(p);if(c.eachNode((function(e){d(e,r,.1)})),c.eachEdge((function(e){d(e,s,.1)})),f){g(f,l);var m=y.get("focusNodeAdjacency");"outEdges"===m?i.each(f.outEdges,(function(e){e.dataIndex<0||(g(e,u),g(e.node2,l))})):"inEdges"===m?i.each(f.inEdges,(function(e){e.dataIndex<0||(g(e,u),g(e.node1,l))})):"allEdges"===m&&i.each(f.edges,(function(e){e.dataIndex<0||(g(e,u),e.node1!==f&&g(e.node1,l),e.node2!==f&&g(e.node2,l))}))}v&&(g(v,u),g(v.node1,l),g(v.node2,l))}},unfocusNodeAdjacency:function(e,t,a,n){var o=e.getGraph();o.eachNode((function(e){d(e,r)})),o.eachEdge((function(e){d(e,s)}))}});function p(e,t,a){var o=new n.Rect({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return n.initProps(o,{shape:{width:e.width+20}},t,a),o}e.exports=y},37655:function(e,t,a){var n=a(70492);a(35540),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},55776:function(e,t,a){var n=a(76172),o=a(33051),i=a(32234),r=i.groupData;function l(e,t,a){e.eachSeriesByType("sankey",(function(e){var a=e.get("nodeWidth"),n=e.get("nodeGap"),i=s(e,t);e.layoutInfo=i;var r=i.width,l=i.height,d=e.getGraph(),g=d.nodes,h=d.edges;c(g);var y=o.filter(g,(function(e){return 0===e.getLayout().value})),p=0!==y.length?0:e.get("layoutIterations"),f=e.get("orient"),v=e.get("nodeAlign");u(g,h,a,n,r,l,p,f,v)}))}function s(e,t){return n.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function u(e,t,a,n,o,i,r,l,s){d(e,t,a,o,i,l,s),f(e,t,i,o,n,r,l),_(e,l)}function c(e){o.each(e,(function(e){var t=N(e.outEdges,M),a=N(e.inEdges,M),n=e.getValue()||0,o=Math.max(t,a,n);e.setLayout({value:o},!0)}))}function d(e,t,a,n,o,i,r){for(var l=[],s=[],u=[],c=[],d=0,g=0,y=0;y<t.length;y++)l[y]=1;for(y=0;y<e.length;y++)s[y]=e[y].inEdges.length,0===s[y]&&u.push(e[y]);var f=-1;while(u.length){for(var v=0;v<u.length;v++){var m=u[v],x=m.hostGraph.data.getRawDataItem(m.dataIndex),L=null!=x.depth&&x.depth>=0;L&&x.depth>f&&(f=x.depth),m.setLayout({depth:L?x.depth:d},!0),"vertical"===i?m.setLayout({dy:a},!0):m.setLayout({dx:a},!0);for(var b=0;b<m.outEdges.length;b++){var I=m.outEdges[b],A=t.indexOf(I);l[A]=0;var S=I.node2,D=e.indexOf(S);0===--s[D]&&c.indexOf(S)<0&&c.push(S)}}++d,u=c,c=[]}for(y=0;y<l.length;y++)if(1===l[y])throw new Error("Sankey is a DAG, the original data has cycle!");var M=f>d-1?f:d-1;r&&"left"!==r&&h(e,r,i,M);g="vertical"===i?(o-a)/M:(n-a)/M;p(e,g,i)}function g(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function h(e,t,a,n){if("right"===t){var i=[],r=e,l=0;while(r.length){for(var s=0;s<r.length;s++){var u=r[s];u.setLayout({skNodeHeight:l},!0);for(var c=0;c<u.inEdges.length;c++){var d=u.inEdges[c];i.indexOf(d.node1)<0&&i.push(d.node1)}}r=i,i=[],++l}o.each(e,(function(e){g(e)||e.setLayout({depth:Math.max(0,n-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&y(e,n)}function y(e,t){o.each(e,(function(e){g(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}function p(e,t,a){o.each(e,(function(e){var n=e.getLayout().depth*t;"vertical"===a?e.setLayout({y:n},!0):e.setLayout({x:n},!0)}))}function f(e,t,a,n,o,i,r){var l=v(e,r);m(l,t,a,n,o,r),x(l,o,a,n,r);for(var s=1;i>0;i--)s*=.99,L(l,s,r),x(l,o,a,n,r),w(l,s,r),x(l,o,a,n,r)}function v(e,t){var a=[],n="vertical"===t?"y":"x",i=r(e,(function(e){return e.getLayout()[n]}));return i.keys.sort((function(e,t){return e-t})),o.each(i.keys,(function(e){a.push(i.buckets.get(e))})),a}function m(e,t,a,n,i,r){var l=1/0;o.each(e,(function(e){var t=e.length,s=0;o.each(e,(function(e){s+=e.getLayout().value}));var u="vertical"===r?(n-(t-1)*i)/s:(a-(t-1)*i)/s;u<l&&(l=u)})),o.each(e,(function(e){o.each(e,(function(e,t){var a=e.getLayout().value*l;"vertical"===r?(e.setLayout({x:t},!0),e.setLayout({dx:a},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:a},!0))}))})),o.each(t,(function(e){var t=+e.getValue()*l;e.setLayout({dy:t},!0)}))}function x(e,t,a,n,i){var r="vertical"===i?"x":"y";o.each(e,(function(e){var o,l,s;e.sort((function(e,t){return e.getLayout()[r]-t.getLayout()[r]}));for(var u=0,c=e.length,d="vertical"===i?"dx":"dy",g=0;g<c;g++)l=e[g],s=u-l.getLayout()[r],s>0&&(o=l.getLayout()[r]+s,"vertical"===i?l.setLayout({x:o},!0):l.setLayout({y:o},!0)),u=l.getLayout()[r]+l.getLayout()[d]+t;var h="vertical"===i?n:a;if(s=u-t-h,s>0)for(o=l.getLayout()[r]-s,"vertical"===i?l.setLayout({x:o},!0):l.setLayout({y:o},!0),u=o,g=c-2;g>=0;--g)l=e[g],s=l.getLayout()[r]+l.getLayout()[d]+t-u,s>0&&(o=l.getLayout()[r]-s,"vertical"===i?l.setLayout({x:o},!0):l.setLayout({y:o},!0)),u=l.getLayout()[r]}))}function L(e,t,a){o.each(e.slice().reverse(),(function(e){o.each(e,(function(e){if(e.outEdges.length){var n=N(e.outEdges,b,a)/N(e.outEdges,M,a);if(isNaN(n)){var o=e.outEdges.length;n=o?N(e.outEdges,I,a)/o:0}if("vertical"===a){var i=e.getLayout().x+(n-D(e,a))*t;e.setLayout({x:i},!0)}else{var r=e.getLayout().y+(n-D(e,a))*t;e.setLayout({y:r},!0)}}}))}))}function b(e,t){return D(e.node2,t)*e.getValue()}function I(e,t){return D(e.node2,t)}function A(e,t){return D(e.node1,t)*e.getValue()}function S(e,t){return D(e.node1,t)}function D(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function M(e){return e.getValue()}function N(e,t,a){var n=0,o=e.length,i=-1;while(++i<o){var r=+t.call(e,e[i],a);isNaN(r)||(n+=r)}return n}function w(e,t,a){o.each(e,(function(e){o.each(e,(function(e){if(e.inEdges.length){var n=N(e.inEdges,A,a)/N(e.inEdges,M,a);if(isNaN(n)){var o=e.inEdges.length;n=o?N(e.inEdges,S,a)/o:0}if("vertical"===a){var i=e.getLayout().x+(n-D(e,a))*t;e.setLayout({x:i},!0)}else{var r=e.getLayout().y+(n-D(e,a))*t;e.setLayout({y:r},!0)}}}))}))}function _(e,t){var a="vertical"===t?"x":"y";o.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[a]-t.node2.getLayout()[a]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[a]-t.node1.getLayout()[a]}))})),o.each(e,(function(e){var t=0,a=0;o.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),o.each(e.inEdges,(function(e){e.setLayout({ty:a},!0),a+=e.getLayout().dy}))}))}e.exports=l},66028:function(e,t,a){var n=a(59937),o=a(33051);function i(e,t){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph(),a=t.nodes;if(a.length){var i=1/0,r=-1/0;o.each(a,(function(e){var t=e.getLayout().value;t<i&&(i=t),t>r&&(r=t)})),o.each(a,(function(t){var a=new n({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}),o=a.mapValueToVisual(t.getLayout().value),l=t.getModel().get("itemStyle.color");null!=l?t.setVisual("color",l):t.setVisual("color",o)}))}}))}e.exports=i},42213:function(e,t,a){var n=a(70492);a(517),a(79002);var o=a(34586),i=a(21149);a(84617),n.registerVisual(o("scatter","circle")),n.registerLayout(i("scatter"))},517:function(e,t,a){var n=a(40488),o=a(93321),i=o.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(e,t){return n(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});e.exports=i},79002:function(e,t,a){var n=a(70492),o=a(68162),i=a(48066),r=a(21149);n.extendChartView({type:"scatter",render:function(e,t,a){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.updateData(n,{clipShape:this._getClipShape(e)}),this._finished=!0},incrementalPrepareRender:function(e,t,a){var n=e.getData(),o=this._updateSymbolDraw(n,e);o.incrementalPrepareUpdate(n),this._finished=!1},incrementalRender:function(e,t,a){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,a){var n=e.getData();if(this.group.dirty(),!this._finished||n.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=r().reset(e);o.progress&&o.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_getClipShape:function(e){var t=e.coordinateSystem,a=t&&t.getArea&&t.getArea();return e.get("clip",!0)?a:null},_updateSymbolDraw:function(e,t){var a=this._symbolDraw,n=t.pipelineContext,r=n.large;return a&&r===this._isLargeDraw||(a&&a.remove(),a=this._symbolDraw=r?new i:new o,this._isLargeDraw=r,this.group.removeAll()),this.group.add(a.group),a},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})}}]);
- //# sourceMappingURL=chunk-vendors-e24f3508.98c3e752.js.map
|