!function(e){"object"==typeof module&&"undefined"!=typeof module.exports?module.exports=e:e()}((function(){(window.webpackJsonpFusionCharts=window.webpackJsonpFusionCharts||[]).push([[6],{1174:function(e,t,i){"use strict";var n=i(210);t.__esModule=!0,t["default"]=void 0;var o=n(i(1175));t.ZoomLine=o["default"];var a=n(i(1181));t.ZoomLineDY=a["default"];var s=n(i(1184)),r={name:"zoomline",type:"package",requiresFusionCharts:!0,extension:function(e){e.addDep(s["default"]),e.addDep(o["default"]),e.addDep(a["default"])}};t["default"]=r},1175:function(e,t,i){"use strict";var n=i(210);t.__esModule=!0,t["default"]=void 0;var o=n(i(1176))["default"];t["default"]=o},1176:function(e,t,i){"use strict";var n=i(210);t.__esModule=!0,t["default"]=void 0;var o=n(i(231)),a=i(217),s=n(i(709)),r=n(i(1177)),l=n(i(1179)),c=i(229),u=i(621),h=i(1180),d=i(225),p=window.navigator.userAgent,f=(0,d.getDep)("redraphael","plugin"),g=window.doc,m="rgba(192,192,192,"+(/msie/i.test(p)&&!window.opera?.002:1e-6)+")",v=window.parseFloat,b=window.parseInt,x=Math,C=x.max,y=x.min,k=x.ceil,w=x.floor,E=0,M=function(e,t){var i=t.get("config"),n=(0,a.getMouseCoordinate)(t.get("linkedItems","container"),e,t),o=n.chartX,s=n.chartY,r=i.canvasLeft,l=i.canvasTop,c=i.canvasLeft+i.canvasWidth,u=i.canvasHeight+i.canvasTop;return n.insideCanvas=!1,n.originalEvent=e,o>r&&ol&&sSwitch to Zoom Mode
Select a subset of data to zoom into it for detailed view"):"",btnSwitchToPinModeTooltext:l?(0,a.pluck)(o.btnswitchtopinmodetooltext,"Switch to Pin Mode
Select a subset of data and compare with the rest of the view"):"",pinPaneFill:(0,a.convertColor)((0,a.pluck)(o.pinpanebgcolor,r),(0,a.pluckNumber)(o.pinpanebgalpha,15)),zoomPaneFill:(0,a.convertColor)((0,a.pluck)(o.zoompanebgcolor,"#b9d5f1"),(0,a.pluckNumber)(o.zoompanebgalpha,30)),zoomPaneStroke:(0,a.convertColor)((0,a.pluck)(o.zoompanebordercolor,"#3399ff"),(0,a.pluckNumber)(o.zoompaneborderalpha,80)),showPeakData:(0,a.pluckNumber)(o.showpeakdata,0),maxPeakDataLimit:(0,a.pluckNumber)(o.maxpeakdatalimit,o.maxpeaklimit,null),minPeakDataLimit:(0,a.pluckNumber)(o.minpeakdatalimit,o.minpeaklimit,null),crossline:{enabled:(0,a.pluckNumber)(o.showcrossline,1),line:{"stroke-width":(0,a.pluckNumber)(o.crosslinethickness,1),stroke:(0,a.getFirstColor)((0,a.pluck)(o.crosslinecolor,"#000000")),"stroke-opacity":(0,a.pluckNumber)(o.crosslinealpha,20)/100},labelEnabled:(0,a.pluckNumber)(o.showcrosslinelabel,o.showcrossline,1),labelstyle:{fontSize:v(o.crosslinelabelsize)?v(o.crosslinelabelsize)+"px":i.outCanfontSize,fontSizeWithUnit:(0,a.pluckFontSizeMaintainUnit)(o.crosslinelabelsize,i.outCanfontSizeWithUnit),fontFamily:(0,a.pluck)(o.crosslinelabelfont,i.outCanfontFamily)},valueEnabled:(0,a.pluckNumber)(o.showcrosslinevalues,o.showcrossline,1),valuestyle:{fontSize:v(o.crosslinevaluesize)?v(o.crosslinevaluesize)+"px":i.inCanfontSize,fontSizeWithUnit:(0,a.pluckFontSizeMaintainUnit)(o.crosslinevaluesize,i.outCanfontSizeWithUnit),fontFamily:(0,a.pluck)(o.crosslinevaluefont,i.inCanvasStyle.fontFamily)}},useCrossline:(0,a.pluckNumber)(o.usecrossline,1),tooltipSepChar:(0,a.pluck)(o.tooltipsepchar,", "),showTerminalValidData:(0,a.pluckNumber)(o.showterminalvaliddata,0)})},i.getValuePixel=function(e){var t=this.config.viewPortConfig;return t.ddsi+w(e/t.ppp)},i.getDatasets=function(){var e=[];return this.iterateComponents((function(t){t.getType&&"dataset"===t.getType()&&e.push(t)})),e},i.__preDraw=function(){var e,t,i,n,o,s=this.config,r=this.getFromEnv("dataSource").chart,l=s.cdm,c=this.getChildren("xAxis")[0],u=s.viewPortConfig,h=s.crossline,d=this.getChildren("canvas")[0].config,p=C(d.canvasPadding,d.canvasPaddingLeft,d.canvasPaddingRight),f=this.getChildren("yAxis")[0],g=s.canvasHeight,m=this.getFromEnv("dataSource").chart,v=c.getTicksLen(),x=c.getVisibleConfig(),y=x.minValue,k=x.maxValue,w=(0,a.pluckNumber)(r.displaystartindex,y,1),E=(0,a.pluckNumber)(r.displayendindex,k,v||2),M=b(w,10)-1,P=b(E,10)-1,L=0;if(h.labelstyle.fontSize=this.computeFontSize(h.labelstyle.fontSizeWithUnit),h.valuestyle.fontSize=this.computeFontSize(h.valuestyle.fontSizeWithUnit),o=(n=this.getDatasets()).length,s.borderWidth=(0,a.pluckNumber)(m.showborder,1)?(0,a.pluckNumber)(m.borderthickness,1):0,s.updateAnimDuration=500,s.status="zoom",s.maxZoomLimit=(0,a.pluckNumber)(r.maxzoomlimit,1e3),s.viewPortHistory=[],(t=(0,a.pluckNumber)(r.pixelsperpoint,15))<1&&(t=1),(i=(0,a.pluckNumber)(r.pixelsperlabel,r.xaxisminlabelwidth,c.getAxisConfig("labels").rotation?20:60))=(v-1||1))&&(M=0),(P<=M||P>(v-1||1))&&(P=v-1||1),(u=s.viewPortConfig=(0,a.extend2)(s.viewPortConfig,{amrd:(0,a.pluckNumber)(r.anchorminrenderdistance,20),nvl:(0,a.pluckNumber)(r.numvisiblelabels,0),cdm:l,oppp:t,oppl:i,dsi:M,dei:P,vdl:P-M,clen:v,offset:0,step:1,llen:0,alen:0,ddsi:M,ddei:P,ppc:0})).clen){for(;o--;)e=n[o].config,L=C(L,e.drawanchors&&(e.anchorradius||0)+(Number(e.anchorborderthickness)||0)||0);s.overFlowingMarkerWidth=L,p=s.canvasPadding=C(L,p),s._prezoomed=u.dei-u.dsio.canvasWidth?o.canvasWidth:h)-u)/s,((p=p>o.canvasHeight?o.canvasHeight:p)-d)/r]},i.updateManager=function(){var e,t,i,n,o,a,s,r,l,c,u,h,d,p,f,g,m,b=this.getDatasets(),x=b.length,y=this.config,w=y.viewPortConfig,E=y._visw,M=this.getChildren("xAxis")[0],P=function(e){return M.getPixel(e,{wrtVisible:!0})},L=M.getAxisConfig("labels").style;if(y.legendClicked)for(e=0;eM.getTicksLen()?w.scaleX=1:w.scaleX=M.getTicksLen()/Math.abs(f-p-l-.9),m=M.getVisibleConfig(),i=Math.ceil((m.maxValue-m.minValue+1)/g),n=y.viewPortConfig&&y.viewPortConfig.scaleX,t=Math.max(Math.round(M.getAxisConfig("labelStep")/n),g?i:c*l),M.setLabelConfig({step:t})},i.getParsedLabel=function(e){var t=this.xlabels;return t.parsed[e]||(t.parsed[e]=(0,a.parseUnsafeString)(t.data[e]||""))},i._setAxisScale=function(){this.setScrollType("always")},i.getDSdef=function(){return r["default"]},t}(s["default"]);t["default"]=P},1177:function(e,t,i){"use strict";var n=i(210);t.__esModule=!0,t["default"]=void 0;var o=n(i(231)),a=i(217),s=n(i(547)),r=i(225),l=n(i(1178)),c=a.hasTouch?a.TOUCH_THRESHOLD_PIXELS:a.CLICK_THRESHOLD_PIXELS;(0,r.addDep)({name:"zoomlineAnimation",type:"animationRule",extension:l["default"]});var u=function(e){function t(){return e.apply(this,arguments)||this}(0,o["default"])(t,e);var i=t.prototype;return i.getType=function(){return"dataset"},i.getName=function(){return"zoomLine"},i.__setDefaultConfig=function(){e.prototype.__setDefaultConfig.call(this),this.config.skipIgnorerIndices=[],this.config.showPeakData=0,this.config.showTerminalValidData=0,this.config.minPeakDataLimit=null,this.config.maxPeakDataLimit=null},i._plotConfigure=function(t,i,n){e.prototype._plotConfigure.call(this,t,i,n);var o=this.config,a=this.components.data[t].config.setValue,s=n||this.getFromEnv("xAxis").getTicksLen(),r=o.showTerminalValidData,l=o.showPeakData,c=o.maxPeakDataLimit,u=o.minPeakDataLimit;l&&(cc&&au&&(a>c||a=i.amrd?e.prototype.drawPlots.call(this):this.hideAllAnchors()},i._setConfigure=function(t,i){var n=this.config,o=this.getFromEnv("chart"),s=o.config,r=o.getFromEnv("dataSource").chart,l=this.config.JSONData;n.drawanchors=(0,a.pluckNumber)(r.drawanchors,r.showanchors,1),n.anchorradius=(0,a.pluckNumber)(l.anchorradius,r.anchorradius,n.linethickness+2),n.showTerminalValidData=(0,a.pluckNumber)(s.showTerminalValidData,0),n.showPeakData=(0,a.pluckNumber)(s.showPeakData,0),n.showPeakData&&(s.maxPeakDataLimit||s.minPeakDataLimit)&&(n.maxPeakDataLimit=(0,a.pluckNumber)(s.maxPeakDataLimit,Number.MIN_SAFE_INTEGER),n.minPeakDataLimit=(0,a.pluckNumber)(s.minPeakDataLimit,Number.MAX_SAFE_INTEGER)),e.prototype._setConfigure.call(this,t,i)},i.configureAttributes=function(t){e.prototype.configureAttributes.call(this,t);var i,n,o={},s=this.getFromEnv("chart").getFromEnv("dataSource").chart;i=(n=this.config).linethickness+(0,a.pluckNumber)(s.pinlinethicknessdelta,1),o["stroke-width"]=i>0&&i||0,o["stroke-dasharray"]=[3,2],o.stroke=(0,a.hashify)(n.linecolor),o["stroke-opacity"]=n.alpha/100,o["stroke-linejoin"]=n["stroke-linejoin"]="round",o["stroke-linecap"]=n["stroke-linecap"]="round",n.pin=o,n.animation=!1,n.transposeanimduration=0,n.defaultPadding={left:0,right:0}},i.drawLabel=function(){return this},i.isWithinShape=function(e,t,i,n){var o,s,r,l,u,h,d,p,f,g,m,v;if(e)return o=e.config.anchorProps,s=e.config,l=o.borderThickness,this,u=this.components.data,h=(0,a.pluckNumber)(s.dragTolerance,0),d=e._xPos,null!==(p=e._yPos)?(v=e.config.hoverEffects,r=Math.max(o.radius,v&&v.anchorRadius||0,c)+l/2,f=i-d,g=n-p,((m=Math.sqrt(Math.pow(f,2)+Math.pow(g,2)))<=r||m<=h)&&{pointIndex:t,hovered:!0,pointObj:u[t]}):void 0},i.hideAllAnchors=function(){var e,t,i,n=this.components.data;for(t=0,i=n.length;ta/2?a-t:-t),h=r.getPixel(f,{wrtVisible:!0})-p-u,h-=n.offset,o.transform(["T",Math.round(h),0]),i.hidden&&0!==l.crossline.enabled&&i.show(),(fd.maxValue)&&i.hide(),(f!==i.position||i.hidden)&&(i.position=f,i.lineX=h,i.updateLabels()))}}),t}(0,l["default"])(t,e);var i=t.prototype;return i.configureAttributes=function(e){this.config.options=e},i.draw=function(){var e,t,i,n,o,a,s,r,l={},u=this.getFromEnv("chart"),h=u.getFromEnv()["number-formatter"],d=u.config,p=this.left=u.getChildren("xAxis")[0].getAxisConfig("axisDimention").x,f=this.top=d.canvasTop,g=this.height=d.canvasHeight,m=this._visout=d._visout,C=[],y=this.getFromEnv("animationManager"),k=this.getGraphicalElement("line"),w=this.config.options,E=w.labelstyle,M=w.valuestyle,P=u.getChildren("yAxis")[0],L=P.getLimit(),_=u.getChildren("yAxis")[1],S=_&&_.getLimit(),T=this.getGraphicalElement("labels"),F=[],N=this.getGraphicalElement("positionLabel"),D=this.getLinkedParent().getChildContainer("crosslineBottom"),A=this.getLinkedParent().getChildContainer("crosslineTop");if(u.iterateComponents((function(e){e.getType&&"dataset"===e.getType()&&!e.getState("removed")&&C.push(e)})),this.plots=C,this.width=d._visw,o=this.group,(o=this.getContainer("valueGroup"))||(o=this.addContainer("valueGroup",x("crossline-value-group",A,this))),(r=this.getContainer("labelGroup"))||(r=this.addContainer("labelGroup",x("crossline-label-group",A,this))).insertBefore(u.getChildContainer("plotGroup")),this.container=D,o.attr({transform:["T",p,d._ymin]}).css(M),a=y.setAnimation({el:k||"path",container:D,doNotRemove:!0,attr:(0,c.extend2)({path:["M",p,f,"l",0,g]},w.line)}).toBack(),k||this.addGraphicalElement("line",a,!1),w.labelEnabled&&(l.x=m,l.y=f+g+(d.scrollHeight||0)+2.5,l["vertical-align"]="top",l.direction=d.textDirection,l.text=""),s=y.setAnimation({el:N||"text",attr:w.labelEnabled&&l,css:w.labelEnabled&&E,container:r,doNotRemove:!0,callback:!w.labelEnabled&&v}),!N&&w.labelEnabled&&this.addGraphicalElement("positionLabel",s,!1),this.hide(),this.ppixelRatio=-P.config.axisDimention.axisLength/P.getVisibleLength(),this.spixelRatio=_&&-_.config.axisDimention.axisLength/_.getVisibleLength(),this.yminValue=d._yminValue,this.pyaxisminvalue=L.min,this.pyaxismaxvalue=L.max,this.syaxisminvalue=S&&S.min,this.syaxismaxvalue=S&&S.max,this.positionLabels=d.xlabels||{data:[],parsed:[]},this.chart=u,e=0,w.valueEnabled){for(t=C.length;eC||ab||a=l&&"end")||"middle","text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2.5]},doNotRemove:!0,component:e})):i.attr({x:-l})}})),n&&t.setAnimation({el:n,attr:{x:u+e.left,text:e.getPositionLabel(c),"text-bound":["rgba(255,255,255,1)","rgba(0,0,0,1)",1,2.5]},component:e})},i.show=function(){if(!this.disabled){this.hidden=!1;var e=this.getContainer("valueGroup"),t=this.getGraphicalElement("positionLabel"),i=this.getGraphicalElement("line");e&&e.show(),t&&t.show(),i&&i.show()}},i.hide=function(){this.hidden=!0;var e=this.getContainer("valueGroup"),t=this.getGraphicalElement("positionLabel"),i=this.getGraphicalElement("line");e&&e.hide(),t&&t.hide(),i&&i.hide()},i.dispose=function(){var e;for(e in this)this.hasOwnProperty(e)&&delete this[e]},t}(u.ComponentInterface);var k=function(){function e(){this.y=0,this.lRef=void 0,this.__shift=0,this.__index=0}var t=e.prototype;return t.applyShift=function(e){this.__shift=e,this.lRef.calcY=this.y+=e*f},t.applyDirectIndex=function(e){this.__index=e,this.lRef.calcY=this.y=a-e*f*-1},e}(),w=function(){function e(e){this.holes=[],this.pos=[];for(var t=0;tp-1?p-1:t],(l=new k).y=e,l.lRef=i,!n)return l.applyDirectIndex(u),d.splice(u,1,l),void this.holes.splice(this.holes.indexOf(u),1);if(a=u+(h=C.call(this.holes,u)).absValue*h.noScaleSide,h.noScaleSide===o.POS)return l.applyDirectIndex(a),d.splice(a,1,l),this.holes.splice(this.holes.indexOf(a),1),a;if(h.noScaleSide===o.NEG){for(r=d.splice(a+1,d.length-1),d.pop(),r.forEach((function(e){e&&e.applyShift(-1)})),[].push.apply(d,r),c=a;d[c];)c++;return d.push(0),this.repositionHoles(),c+=(h=C.call(this.holes,c)).absValue*h.noScaleSide,l.applyDirectIndex(c),d.splice(c,1,l),this.repositionHoles(),d.length-1}}else i.calcY=s},e}(),E={extension:function(e){e.addEventListener("instantiated",(function(e){if("canvas"===e.sender.getName()){var t,i,n,o=e.sender;o.registerFactory("crossLineManager-zoomline",(function(){var a,s=e.sender.getFromEnv("chart"),r=s&&s.getName();r&&m[r.toLowerCase()]&&((i=s.config.crossline)&&0!==i.enabled&&1===s.config.useCrossline?n=1:(i&&(i.enabled=0),n=0),(0,c.componentFactory)(o,y,"crossLine",n,[i]),n&&(a=o.getChildren("crossLine")[0],t=a.config.handlers,a.addExtEventListener("fc-mousemove",t.onMouseMove,o),a.addExtEventListener("fc-mouseover",t.onMouseMove,o),a.addExtEventListener("fc-dragstart",(function(e){t.onMouseOut(e),a.removeExtEventListener("fc-mousemove",t.onMouseMove,o)}),o),a.addExtEventListener("fc-dragend",(function(){a.addExtEventListener("fc-mousemove",t.onMouseMove,o)}),o),a.addExtEventListener("fc-mouseout",(function(e){t.onMouseOut(e)}),o)))}))}}))},name:"crossline-manager",type:"extension",requiresFusionCharts:!0};t["default"]=E}}])})); //# sourceMappingURL=http://localhost:3052/3.17.0/map/eval/fusioncharts.zoomline.js.map