Icard/angular-clarity-master(work.../node_modules/highcharts/modules/dumbbell.js

7 lines
6.4 KiB
JavaScript
Raw Permalink Normal View History

2024-07-16 14:55:36 +00:00
!/**
* Highcharts JS v11.4.1 (2024-04-04)
*
* (c) 2009-2024 Sebastian Bochan, Rafal Sebestjanski
*
* License: www.highcharts.com/license
*/function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/dumbbell",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Series/AreaRange/AreaRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){let{area:{prototype:{pointClass:o,pointClass:{prototype:i}}}}=t.seriesTypes,{defined:s,isNumber:r}=e;return class extends o{setState(){let t=this.state,e=this.series,o=e.chart.polar;s(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),s(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic,this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,o&&r(this.plotHighX)&&(this.plotX=this.plotHighX),i.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],o&&r(this.plotLowX)&&(this.plotX=this.plotLowX),e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0;let l=e.modifyMarkerSettings();i.setState.apply(this,arguments),e.restoreMarkerSettings(l)}haloPath(){let t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&r(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=i.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&r(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(i.haloPath.apply(this,arguments))),e}isValid(){return r(this.low)&&r(this.high)}}}),o(e,"Series/Dumbbell/DumbbellPoint.js",[e["Series/AreaRange/AreaRangePoint.js"],e["Core/Utilities.js"]],function(t,e){let{extend:o,pick:i}=e;class s extends t{setState(){let t=this.series,e=t.chart,s=t.options.lowColor,r=t.options.marker,l=t.options.lowMarker,h=this.options,n=h.lowColor,a=this.zone&&this.zone.color,p=i(n,l?.fillColor,s,h.color,a,this.color,t.color),c="attr",d,u;if(this.pointSetState.apply(this,arguments),!this.state){c="animate";let[t,s]=this.graphics||[];t&&!e.styledMode&&(t.attr({fill:p}),s&&(u={y:this.y,zone:this.zone},this.y=this.high,this.zone=this.zone?this.getZone():void 0,d=i(this.marker?this.marker.fillColor:void 0,r?r.fillColor:void 0,h.color,this.zone?this.zone.color:void 0,this.color),s.attr({fill:d}),o(this,u)))}this.connector?.[c](t.getConnectorAttribs(this))}destroy(){return this.graphic||(this.graphic=this.connector,this.connector=void 0),super.destroy()}}return o(s.prototype,{pointSetState:t.prototype.setState}),s}),o(e,"Series/Dumbbell/DumbbellSeriesDefaults.js",[],function(){return{trackByArea:!1,fillColor:"none",lineWidth:0,pointRange:1,connectorWidth:1,stickyTracking:!1,groupPadding:.2,crisp:!1,pointPadding:.1,legendSymbol:"rectangle",lowColor:"#333333",states:{hover:{lineWidthPlus:0,connectorWidthPlus:1,halo:!1}}}}),o(e,"Series/Dumbbell/DumbbellSeries.js",[e["Series/Dumbbell/DumbbellPoint.js"],e["Series/Dumbbell/DumbbellSeriesDefaults.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(t,e,o,i,s,r){let{noop:l}=o,{arearange:h,column:n,columnrange:a}=i.seriesTypes,{extend:p,merge:c,pick:d}=r;class u extends h{getConnectorAttribs(t){let e=this.chart,o=t.options,i=this.options,r=this.xAxis,l=this.yAxis,h=d(i.states&&i.states.hover&&i.states.hover.connectorWidthPlus,1),n=d(o.dashStyle,i.dashStyle),a=l.toPixels(i.threshold||0,!0),c=e.inverted?l.len-a:a,u=d(o.connectorWidth,i.connectorWidth),g=d(o.connectorColor,i.connectorColor,o.color,t.zone?t.zone.color:void 0,t.color),y=d(t.plotLow,t.plotY),f=d(t.plotHigh,c),m;if("number"!=typeof y)return{};t.state&&(u+=h),y<0?y=0:y>=l.len&&(y=l.len),f<0?f=0:f>=l.len&&(f=l.len),(t.plotX<0||t.plotX>r.len)&