basb-cli
Version:
Blog as Second Brain!
2 lines (1 loc) • 17.2 kB
JavaScript
import{_ as e,c as t,G as n,ae as i,S as a,m as o,aQ as s,b as r,T as l,aR as h,f as p,$ as u,p as d,g as c,o as g,aS as m,C as y,aT as f,I as v,a9 as _,k as b,j as S,aU as x,l as w,u as D,e as I,aV as L,aW as k,aX as N}from"./index.js";import{S as O}from"./SymbolDraw.js";import{S as A}from"./Symbol.js";import{E as P,a as C}from"./poly.js";import{a as M,b as T}from"./createClipPathFromCoordSys.js";import{i as E}from"./CoordinateSystem.js";import{a as G,g as V}from"./labelHelper.js";import{p as R}from"./points.js";import{d as z}from"./dataSample.js";var H=function(a){function o(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=o.type,e.hasSymbolVisual=!0,e}return e(o,a),o.prototype.getInitialData=function(e){var n=e.coordinateSystem;if("polar"!==n&&"cartesian2d"!==n)throw new Error("Line not support coordinateSystem besides cartesian and polar");return t(null,this,{useEncodeDefaulter:!0})},o.prototype.getLegendIcon=function(e){var t=new n,a=i("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(a),a.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),s=this.getData().getVisual("symbolRotate"),r="none"===o?"circle":o,l=.8*e.itemHeight,h=i(r,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);t.add(h),h.setStyle(e.itemStyle);var p="inherit"===e.iconRotate?s:e.iconRotate||0;return h.rotation=p*Math.PI/180,h.setOrigin([e.itemWidth/2,e.itemHeight/2]),r.indexOf("empty")>-1&&(h.style.stroke=h.style.fill,h.style.fill="#fff",h.style.lineWidth=2),t},o.type="series.line",o.dependencies=["grid","polar"],o.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},o}(a);function F(e,t,n){var i=e.getBaseAxis(),a=e.getOtherAxis(i),l=function(e,t){var n=0,i=e.scale.getExtent();"start"===t?n=i[0]:"end"===t?n=i[1]:r(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]);return n}(a,n),h=i.dim,p=a.dim,u=t.mapDimension(p),d=t.mapDimension(h),c="x"===p||"radius"===p?1:0,g=o(e.dimensions,(function(e){return t.mapDimension(e)})),m=!1,y=t.getCalculationInfo("stackResultDimension");return s(t,g[0])&&(m=!0,g[0]=y),s(t,g[1])&&(m=!0,g[1]=y),{dataDimsForPoint:g,valueStart:l,valueAxisDim:p,baseAxisDim:h,stacked:!!m,valueDim:u,baseDim:d,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function j(e,t,n,i){var a=NaN;e.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=e.valueStart);var o=e.baseDataOffset,s=[];return s[o]=n.get(e.baseDim,i),s[1-o]=a,t.dataToPoint(s)}function W(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function B(e){for(var t=1/0,n=1/0,i=-1/0,a=-1/0,o=0;o<e.length;){var s=e[o++],r=e[o++];isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i)),isNaN(r)||(n=Math.min(r,n),a=Math.max(r,a))}return[[t,n],[i,a]]}function X(e,t){var n=B(e),i=n[0],a=n[1],o=B(t),s=o[0],r=o[1];return Math.max(Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]),Math.abs(a[0]-r[0]),Math.abs(a[1]-r[1]))}function U(e){return r(e)?e:e?.5:0}function Y(e,t,n,i){var a=t.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,s=[],r=0,l=[],h=[],p=[],u=[];if(i){for(r=0;r<e.length;r+=2)isNaN(e[r])||isNaN(e[r+1])||u.push(e[r],e[r+1]);e=u}for(r=0;r<e.length-2;r+=2)switch(p[0]=e[r+2],p[1]=e[r+3],h[0]=e[r],h[1]=e[r+1],s.push(h[0],h[1]),n){case"end":l[o]=p[o],l[1-o]=h[1-o],s.push(l[0],l[1]);break;case"middle":var d=(h[o]+p[o])/2,c=[];l[o]=c[o]=d,l[1-o]=h[1-o],c[1-o]=p[1-o],s.push(l[0],l[1]),s.push(c[0],c[1]);break;default:l[o]=h[o],l[1-o]=p[1-o],s.push(l[0],l[1])}return s.push(e[r++],e[r++]),s}function J(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count())if("cartesian2d"===t.type){for(var a,s,r=i.length-1;r>=0;r--){var l=e.getDimensionInfo(i[r].dimension);if("x"===(a=l&&l.coordDim)||"y"===a){s=i[r];break}}if(s){var h=t.getAxis(a),p=o(s.stops,(function(e){return{coord:h.toGlobalCoord(h.dataToCoord(e.value)),color:e.color}})),u=p.length,d=s.outerColors.slice();u&&p[0].coord>p[u-1].coord&&(p.reverse(),d.reverse());var c=function(e,t){var n,i,a=[],o=e.length;function s(e,t,n){var i=e.coord,a=(n-i)/(t.coord-i);return{coord:n,color:N(a,[e.color,t.color])}}for(var r=0;r<o;r++){var l=e[r],h=l.coord;if(h<0)n=l;else{if(h>t){i?a.push(s(i,l,t)):n&&a.push(s(n,l,0),s(n,l,t));break}n&&(a.push(s(n,l,0)),n=null),a.push(l),i=l}}return a}(p,"x"===a?n.getWidth():n.getHeight()),g=c.length;if(!g&&u)return p[0].coord<0?d[1]?d[1]:p[u-1].color:d[0]?d[0]:p[0].color;var m=c[0].coord-10,y=c[g-1].coord+10,f=y-m;if(f<.001)return"transparent";I(c,(function(e){e.offset=(e.coord-m)/f})),c.push({offset:g?c[g-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:g?c[0].offset:.5,color:d[0]||"transparent"});var v=new L(0,0,0,0,c,!0);return v[a]=m,v[a+"2"]=y,v}console.warn("Visual map on line style only support x or y dimension.")}else console.warn("Visual map on line style is only supported on cartesian2d.")}function Q(e,t,n){var i=e.get("showAllSymbol"),a="auto"===i;if(!i||a){var o=n.getAxesByScale("ordinal")[0];if(o&&(!a||!function(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var a=t.count(),o=Math.max(1,Math.round(a/5)),s=0;s<a;s+=o)if(1.5*A.getSymbolSize(t,s)[e.isHorizontal()?1:0]>i)return!1;return!0}(o,t))){var s=t.mapDimension(o.dim),r={};return I(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);r[t]=1})),function(e){return!r.hasOwnProperty(t.get(s,e))}}}}function Z(e,t){return[e[2*t],e[2*t+1]]}function $(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<k.length;t++)if(e.get([k[t],"endLabel","show"]))return!0;return!1}function q(e,t,n,i){if(E(t,"cartesian2d")){var a=i.getModel("endLabel"),o=a.get("valueAnimation"),s=i.getData(),r={lastFrameIndex:0},l=$(i)?function(n,i){e._endLabelOnDuring(n,i,s,r,o,a,t)}:null,h=t.getBaseAxis().isHorizontal(),p=M(t,n,i,(function(){var t=e._endLabel;t&&n&&null!=r.originalX&&t.attr({x:r.originalX,y:r.originalY})}),l);if(!i.get("clip",!0)){var u=p.shape,d=Math.max(u.width,u.height);h?(u.y-=d,u.height+=2*d):(u.x-=d,u.width+=2*d)}return l&&l(1,p),p}return i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),T(t,n,i)}var K=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e(i,t),i.prototype.init=function(){var e=new n,t=new O;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},i.prototype.render=function(e,t,n){var i=this,a=e.coordinateSystem,o=this.group,s=e.getData(),r=e.getModel("lineStyle"),m=e.getModel("areaStyle"),y=s.getLayout("points")||[],f="polar"===a.type,v=this._coordSys,_=this._symbolDraw,b=this._polyline,S=this._polygon,x=this._lineGroup,w=!t.ssr&&e.get("animation"),D=!m.isEmpty(),I=m.get("origin"),L=F(a,s,I),k=D&&function(e,t,n){if(!n.valueDim)return[];for(var i=t.count(),a=l(2*i),o=0;o<i;o++){var s=j(n,e,t,o);a[2*o]=s[0],a[2*o+1]=s[1]}return a}(a,s,L),N=e.get("showSymbol"),O=e.get("connectNulls"),A=N&&!f&&Q(e,s,a),P=this._data;P&&P.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),P.setItemGraphicEl(t,null))})),N||_.remove(),o.add(x);var C,M=!f&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&(null!=(C=a.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var T=J(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(b&&v.type===a.type&&M===this._step){D&&!S?S=this._newPolygon(y,k):S&&!D&&(x.remove(S),S=this._polygon=null),f||this._initOrUpdateEndLabel(e,a,h(T));var E=x.getClipPath();if(E){var G=q(this,a,!1,e);p(E,{shape:G.shape},e)}else x.setClipPath(q(this,a,!0,e));N&&_.updateData(s,{isIgnore:A,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[y[2*e],y[2*e+1]]}}),W(this._stackedOnPoints,k)&&W(this._points,y)||(w?this._doUpdateAnimation(s,k,a,n,M,I,O):(M&&(y=Y(y,a,M,O),k&&(k=Y(k,a,M,O))),b.setShape({points:y}),S&&S.setShape({points:y,stackedOnPoints:k})))}else N&&_.updateData(s,{isIgnore:A,clipShape:C,disableAnimation:!0,getSymbolPoint:function(e){return[y[2*e],y[2*e+1]]}}),w&&this._initSymbolLabelAnimation(s,a,C),M&&(y=Y(y,a,M,O),k&&(k=Y(k,a,M,O))),b=this._newPolyline(y),D?S=this._newPolygon(y,k):S&&(x.remove(S),S=this._polygon=null),f||this._initOrUpdateEndLabel(e,a,h(T)),x.setClipPath(q(this,a,!0,e));var V=e.getModel("emphasis"),R=V.get("focus"),z=V.get("blurScope"),H=V.get("disabled");(b.useStyle(u(r.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),d(b,e,"lineStyle"),b.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(b.getState("emphasis").style.lineWidth=+b.style.lineWidth+1);c(b).seriesIndex=e.seriesIndex,g(b,R,z,H);var B=U(e.get("smooth")),X=e.get("smoothMonotone");if(b.setShape({smooth:B,smoothMonotone:X,connectNulls:O}),S){var Z=s.getCalculationInfo("stackedOnSeries"),$=0;S.useStyle(u(m.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Z&&($=U(Z.get("smooth"))),S.setShape({smooth:B,stackedOnSmooth:$,smoothMonotone:X,connectNulls:O}),d(S,e,"areaStyle"),c(S).seriesIndex=e.seriesIndex,g(S,R,z,H)}var K=function(e){i._changePolyState(e)};s.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=K)})),this._polyline.onHoverStateChange=K,this._data=s,this._coordSys=a,this._stackedOnPoints=k,this._points=y,this._step=M,this._valueOrigin=I,e.get("triggerLineEvent")&&(this.packEventData(e,b),S&&this.packEventData(e,S))},i.prototype.packEventData=function(e,t){c(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},i.prototype.highlight=function(e,t,n,i){var a=e.getData(),o=m(a,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var s=a.getLayout("points"),r=a.getItemGraphicEl(o);if(!r){var l=s[2*o],h=s[2*o+1];if(isNaN(l)||isNaN(h))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,h))return;var p=e.get("zlevel")||0,u=e.get("z")||0;(r=new A(a,o)).x=l,r.y=h,r.setZ(p,u);var d=r.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=u,d.z2=this._polyline.z2+1),r.__temp=!0,a.setItemGraphicEl(o,r),r.stopSymbolAnimation(!0),this.group.add(r)}r.highlight()}else y.prototype.highlight.call(this,e,t,n,i)},i.prototype.downplay=function(e,t,n,i){var a=e.getData(),o=m(a,i);if(this._changePolyState("normal"),null!=o&&o>=0){var s=a.getItemGraphicEl(o);s&&(s.__temp?(a.setItemGraphicEl(o,null),this.group.remove(s)):s.downplay())}else y.prototype.downplay.call(this,e,t,n,i)},i.prototype._changePolyState=function(e){var t=this._polygon;f(this._polyline,e),t&&f(t,e)},i.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new P({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},i.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new C({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},i.prototype._initSymbolLabelAnimation=function(e,t,n){var i,a,o=t.getBaseAxis(),s=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),a=!1):"polar"===t.type&&(i="angle"===o.dim,a=!0);var r=e.hostModel,l=r.get("animationDuration");v(l)&&(l=l(null));var h=r.get("animationDelay")||0,p=v(h)?h(null):h;e.eachItemGraphicEl((function(e,o){var r=e;if(r){var u=[e.x,e.y],d=void 0,c=void 0,g=void 0;if(n)if(a){var m=n,y=t.pointToCoord(u);i?(d=m.startAngle,c=m.endAngle,g=-y[1]/180*Math.PI):(d=m.r0,c=m.r,g=y[0])}else{var f=n;i?(d=f.x,c=f.x+f.width,g=e.x):(d=f.y+f.height,c=f.y,g=e.y)}var _=c===d?0:(g-d)/(c-d);s&&(_=1-_);var b=v(h)?h(o):l*_+p,S=r.getSymbolPath(),x=S.getTextContent();r.attr({scaleX:0,scaleY:0}),r.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:b}),S.disableLabelAnimation=!0}}))},i.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if($(e)){var a=e.getData(),o=this._polyline,s=a.getLayout("points");if(!s)return o.removeTextContent(),void(this._endLabel=null);var r=this._endLabel;r||((r=this._endLabel=new _({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(e){for(var t,n,i=e.length/2;i>0&&(t=e[2*i-2],n=e[2*i-1],isNaN(t)||isNaN(n));i--);return i-1}(s);l>=0&&(b(o,S(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?G(a,n):V(a,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),a=n.inverse,o=i?a?"right":"left":"center",s=i?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||s}}}(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},i.prototype._endLabelOnDuring=function(e,t,n,i,a,o,s){var r=this._endLabel,l=this._polyline;if(r){e<1&&null==i.originalX&&(i.originalX=r.x,i.originalY=r.y);var h=n.getLayout("points"),p=n.hostModel,u=p.get("connectNulls"),d=o.get("precision"),c=o.get("distance")||0,g=s.getBaseAxis(),m=g.isHorizontal(),y=g.inverse,f=t.shape,v=y?m?f.x:f.y+f.height:m?f.x+f.width:f.y,_=(m?c:0)*(y?-1:1),b=(m?0:-c)*(y?-1:1),S=m?"x":"y",D=function(e,t,n){for(var i,a,o=e.length/2,s="x"===n?0:1,r=0,l=-1,h=0;h<o;h++)if(a=e[2*h+s],!isNaN(a)&&!isNaN(e[2*h+1-s]))if(0!==h){if(i<=t&&a>=t||i>=t&&a<=t){l=h;break}r=h,i=a}else i=a;return{range:[r,l],t:(t-i)/(a-i)}}(h,v,S),I=D.range,L=I[1]-I[0],k=void 0;if(L>=1){if(L>1&&!u){var N=Z(h,I[0]);r.attr({x:N[0]+_,y:N[1]+b}),a&&(k=p.getRawValue(I[0]))}else{(N=l.getPointOn(v,S))&&r.attr({x:N[0]+_,y:N[1]+b});var O=p.getRawValue(I[0]),A=p.getRawValue(I[1]);a&&(k=x(n,d,O,A,D.t))}i.lastFrameIndex=I[0]}else{var P=1===e||i.lastFrameIndex>0?I[0]:0;N=Z(h,P);a&&(k=p.getRawValue(P)),r.attr({x:N[0]+_,y:N[1]+b})}if(a){var C=w(r);"function"==typeof C.setLabelText&&C.setLabelText(k)}}},i.prototype._doUpdateAnimation=function(e,t,n,i,a,o,s){var r=this._polyline,h=this._polygon,p=e.hostModel,u=function(e,t,n,i,a,o,s,r){for(var h=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),p=[],u=[],d=[],c=[],g=[],m=[],y=[],f=F(a,t,s),v=e.getLayout("points")||[],_=t.getLayout("points")||[],b=0;b<h.length;b++){var S=h[b],x=!0,w=void 0,D=void 0;switch(S.cmd){case"=":w=2*S.idx,D=2*S.idx1;var I=v[w],L=v[w+1],k=_[D],N=_[D+1];(isNaN(I)||isNaN(L))&&(I=k,L=N),p.push(I,L),u.push(k,N),d.push(n[w],n[w+1]),c.push(i[D],i[D+1]),y.push(t.getRawIndex(S.idx1));break;case"+":var O=S.idx,A=f.dataDimsForPoint,P=a.dataToPoint([t.get(A[0],O),t.get(A[1],O)]);D=2*O,p.push(P[0],P[1]),u.push(_[D],_[D+1]);var C=j(f,a,t,O);d.push(C[0],C[1]),c.push(i[D],i[D+1]),y.push(t.getRawIndex(O));break;case"-":x=!1}x&&(g.push(S),m.push(m.length))}m.sort((function(e,t){return y[e]-y[t]}));var M=p.length,T=l(M),E=l(M),G=l(M),V=l(M),R=[];for(b=0;b<m.length;b++){var z=m[b],H=2*b,W=2*z;T[H]=p[W],T[H+1]=p[W+1],E[H]=u[W],E[H+1]=u[W+1],G[H]=d[W],G[H+1]=d[W+1],V[H]=c[W],V[H+1]=c[W+1],R[b]=g[z]}return{current:T,next:E,stackedOnCurrent:G,stackedOnNext:V,status:R}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=u.current,c=u.stackedOnCurrent,g=u.next,m=u.stackedOnNext;if(a&&(d=Y(u.current,n,a,s),c=Y(u.stackedOnCurrent,n,a,s),g=Y(u.next,n,a,s),m=Y(u.stackedOnNext,n,a,s)),X(d,g)>3e3||h&&X(c,m)>3e3)return r.stopAnimation(),r.setShape({points:g}),void(h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:m})));r.shape.__points=u.current,r.shape.points=d;var y={shape:{points:g}};u.current!==d&&(y.shape.__points=u.next),r.stopAnimation(),D(r,y,p),h&&(h.setShape({points:d,stackedOnPoints:c}),h.stopAnimation(),D(h,{shape:{stackedOnPoints:m}},p),r.shape.points!==h.shape.points&&(h.shape.points=r.shape.points));for(var f=[],v=u.status,_=0;_<v.length;_++){if("="===v[_].cmd){var b=e.getItemGraphicEl(v[_].idx1);b&&f.push({el:b,ptIdx:_})}}r.animators&&r.animators.length&&r.animators[0].during((function(){h&&h.dirtyShape();for(var e=r.shape.__points,t=0;t<f.length;t++){var n=f[t].el,i=2*f[t].ptIdx;n.x=e[i],n.y=e[i+1],n.markRedraw()}}))},i.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,i){e.__temp&&(t.remove(e),n.setItemGraphicEl(i,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},i.type="line",i}(y);function ee(e){e.registerChartView(K),e.registerSeriesModel(H),e.registerLayout(R("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,z("line"))}export{ee as install};