highcharts 13.0.2 → 13.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +6 -2
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +10 -6
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesComponent.js +2 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +25 -1
- package/es-modules/Accessibility/KeyboardNavigation.js +1 -1
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +13 -3
- package/es-modules/Core/Animation/AnimationUtilities.js +7 -2
- package/es-modules/Core/Animation/Fx.js +1 -0
- package/es-modules/Core/Axis/Axis.js +181 -211
- package/es-modules/Core/Axis/Axis3DComposition.js +13 -15
- package/es-modules/Core/Axis/AxisDefaults.js +9 -8
- package/es-modules/Core/Axis/BrokenAxis.js +5 -4
- package/es-modules/Core/Axis/Color/ColorAxis.js +66 -54
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -0
- package/es-modules/Core/Axis/Color/ColorAxisDefaults.js +6 -4
- package/es-modules/Core/Axis/DateTimeAxis.js +4 -3
- package/es-modules/Core/Axis/GridAxis.js +17 -13
- package/es-modules/Core/Axis/LogarithmicAxis.js +4 -3
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +3 -4
- package/es-modules/Core/Axis/OrdinalAxis.js +0 -15
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +135 -72
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +72 -124
- package/es-modules/Core/Axis/RadialAxis.js +50 -7
- package/es-modules/Core/Axis/ScrollbarAxis.js +3 -0
- package/es-modules/Core/Axis/Stacking/StackItem.js +49 -75
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +34 -22
- package/es-modules/Core/Axis/Tick.js +95 -92
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +9 -13
- package/es-modules/Core/Axis/WaterfallAxis.js +1 -1
- package/es-modules/Core/Chart/Chart.js +13 -4
- package/es-modules/Core/Chart/StockChart.js +20 -26
- package/es-modules/Core/Defaults.js +18 -0
- package/es-modules/Core/Globals.js +9 -7
- package/es-modules/Core/Pointer.js +7 -8
- package/es-modules/Core/Renderer/HTML/AST.js +19 -12
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +5 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +1 -0
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +6 -2
- package/es-modules/Core/Series/OverlappingDataLabels.js +41 -32
- package/es-modules/Core/Series/Point.js +14 -11
- package/es-modules/Core/Series/Series.js +21 -10
- package/es-modules/Core/Tooltip.js +35 -40
- package/es-modules/Data/DataCursor.js +3 -2
- package/es-modules/Data/DataTable.js +21 -2
- package/es-modules/Data/DataTableCore.js +28 -4
- package/es-modules/Data/Formula/FormulaParser.js +30 -10
- package/es-modules/Extensions/Annotations/Annotation.js +5 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +4 -13
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -4
- package/es-modules/Extensions/Breadcrumbs/BreadcrumbsDefaults.js +1 -1
- package/es-modules/Extensions/Data.js +4 -2
- package/es-modules/Extensions/DragPanes/DragPanes.js +6 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +9 -4
- package/es-modules/Extensions/ExportData/ExportData.js +24 -4
- package/es-modules/Extensions/Pane/Pane.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +5 -4
- package/es-modules/Extensions/StaticScale.js +13 -11
- package/es-modules/Series/Area/AreaSeriesDefaults.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +1 -1
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/AreaSplineRange/AreaSplineRangeSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeriesDefaults.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +1 -1
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +1 -1
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -1
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +6 -3
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesDefaults.js +2 -3
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +1 -1
- package/es-modules/Series/Contour/ContourSeriesDefaults.js +12 -14
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +1 -1
- package/es-modules/Series/Flags/FlagsPoint.js +4 -2
- package/es-modules/Series/Flags/FlagsPointOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSeries.js +8 -7
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +7 -7
- package/es-modules/Series/Flags/FlagsSeriesOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +5 -3
- package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +1 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +1 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +1 -1
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +1 -7
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/Histogram/HistogramSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +1 -1
- package/es-modules/Series/Item/ItemSeriesDefaults.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +0 -1
- package/es-modules/Series/Map/MapSeriesDefaults.js +1 -1
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +0 -1
- package/es-modules/Series/MapLine/MapLineSeriesDefaults.js +1 -1
- package/es-modules/Series/MapPoint/MapPointSeriesDefaults.js +0 -1
- package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +5 -5
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +0 -1
- package/es-modules/Series/PackedBubble/PackedBubbleChart.js +18 -0
- package/es-modules/Series/PackedBubble/PackedBubbleDataLabelOptions.js +12 -0
- package/es-modules/Series/PackedBubble/PackedBubbleIntegration.js +3 -3
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubblePointOptions.js +12 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +20 -20
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -2
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesOptions.js +12 -0
- package/es-modules/Series/ParetoSeries/ParetoPoint.js +17 -0
- package/es-modules/Series/ParetoSeries/ParetoPointOptions.js +12 -0
- package/es-modules/Series/ParetoSeries/ParetoSeries.js +3 -3
- package/es-modules/Series/ParetoSeries/ParetoSeriesDefaults.js +1 -1
- package/es-modules/Series/ParetoSeries/ParetoSeriesOptions.js +12 -0
- package/es-modules/Series/PathUtilities.js +3 -1
- package/es-modules/Series/Pictorial/PictorialPointOptions.js +12 -0
- package/es-modules/Series/Pictorial/PictorialSeries.js +5 -25
- package/es-modules/Series/Pictorial/PictorialSeriesDefaults.js +45 -0
- package/es-modules/Series/Pictorial/PictorialSeriesOptions.js +12 -0
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DPoint.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +6 -6
- package/es-modules/Series/PolarComposition.js +22 -21
- package/es-modules/Series/Polygon/PolygonPoint.js +17 -0
- package/es-modules/Series/Polygon/PolygonPointOptions.js +12 -0
- package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +1 -1
- package/es-modules/Series/Polygon/PolygonSeriesOptions.js +12 -0
- package/es-modules/Series/Pyramid/PyramidPoint.js +19 -0
- package/es-modules/Series/Pyramid/PyramidPointOptions.js +14 -0
- package/es-modules/Series/Pyramid/PyramidSeries.js +1 -1
- package/es-modules/Series/Pyramid/PyramidSeriesDefaults.js +1 -1
- package/es-modules/Series/Pyramid/PyramidSeriesOptions.js +14 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DPoint.js +19 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DPointOptions.js +14 -0
- package/es-modules/Series/Pyramid3D/Pyramid3DSeries.js +1 -1
- package/es-modules/Series/Pyramid3D/Pyramid3DSeriesOptions.js +14 -0
- package/es-modules/Series/Renko/RenkoSeriesDefaults.js +1 -2
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +6 -7
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +1 -1
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +1 -1
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Streamgraph/StreamgraphSeriesDefaults.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeriesDefaults.js +2 -2
- package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +1 -1
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +1 -1
- package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +1 -1
- package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +1 -1
- package/es-modules/Series/Variwide/VariwideComposition.js +11 -8
- package/es-modules/Series/Vector/VectorSeriesDefaults.js +1 -1
- package/es-modules/Series/Venn/VennSeriesDefaults.js +1 -1
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeriesDefaults.js +1 -1
- package/es-modules/Shared/Utilities.js +7 -0
- package/es-modules/Stock/Indicators/ABands/ABandsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +0 -1
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/ATR/ATRIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/AroonOscillator/AroonOscillatorIndicator.js +2 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CCI/CCIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +0 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DEMA/DEMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DMI/DMIIndicator.js +3 -3
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DisparityIndex/DisparityIndexIndicator.js +3 -3
- package/es-modules/Stock/Indicators/EMA/EMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +0 -1
- package/es-modules/Stock/Indicators/KeltnerChannels/KeltnerChannelsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionAngle/LinearRegressionAngleIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionIntercept/LinearRegressionInterceptIndicator.js +0 -1
- package/es-modules/Stock/Indicators/LinearRegressionSlopes/LinearRegressionSlopesIndicator.js +0 -1
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +0 -1
- package/es-modules/Stock/Indicators/MFI/MFIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/Momentum/MomentumIndicator.js +0 -1
- package/es-modules/Stock/Indicators/NATR/NATRIndicator.js +0 -1
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PC/PCIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PSAR/PSARIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +0 -1
- package/es-modules/Stock/Indicators/PriceEnvelopes/PriceEnvelopesIndicator.js +0 -1
- package/es-modules/Stock/Indicators/ROC/ROCIndicator.js +0 -1
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Stochastic/StochasticIndicator.js +3 -3
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TEMA/TEMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TRIX/TRIXIndicator.js +1 -1
- package/es-modules/Stock/Indicators/TrendLine/TrendLineIndicator.js +0 -1
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -1
- package/es-modules/Stock/Indicators/VWAP/VWAPIndicator.js +0 -1
- package/es-modules/Stock/Indicators/WMA/WMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +0 -1
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +5 -5
- package/es-modules/Stock/Navigator/Navigator.js +1 -5
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +38 -8
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-autoload.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/contour.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data-sorting.src.js +1 -1
- package/es-modules/masters/modules/data-tools.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/flowmap.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/geoheatmap.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/renko.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/standalone-navigator.src.js +1 -1
- package/es-modules/masters/themes/adaptive.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/high-contrast.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +2 -2
- package/esm/highcharts-3d.src.js +38 -61
- package/esm/highcharts-autoload.js +2 -2
- package/esm/highcharts-autoload.src.js +18 -39
- package/esm/highcharts-gantt.js +1 -1
- package/esm/highcharts-gantt.src.js +1 -1
- package/esm/highcharts-more.js +2 -2
- package/esm/highcharts-more.src.js +142 -120
- package/esm/highcharts.js +4 -4
- package/esm/highcharts.src.js +825 -751
- package/esm/highmaps.js +1 -1
- package/esm/highmaps.src.js +1 -1
- package/esm/highstock.js +1 -1
- package/esm/highstock.src.js +1 -1
- package/esm/i18n/fr-FR.js +2 -2
- package/esm/i18n/fr-FR.src.js +17 -38
- package/esm/i18n/nb-NO.js +2 -2
- package/esm/i18n/nb-NO.src.js +17 -38
- package/esm/i18n/zh-CN.js +2 -2
- package/esm/i18n/zh-CN.src.js +17 -38
- package/esm/indicators/acceleration-bands.js +2 -2
- package/esm/indicators/acceleration-bands.src.js +18 -39
- package/esm/indicators/accumulation-distribution.js +2 -2
- package/esm/indicators/accumulation-distribution.src.js +17 -39
- package/esm/indicators/ao.js +2 -2
- package/esm/indicators/ao.src.js +18 -39
- package/esm/indicators/apo.js +2 -2
- package/esm/indicators/apo.src.js +18 -39
- package/esm/indicators/aroon-oscillator.js +2 -2
- package/esm/indicators/aroon-oscillator.src.js +19 -40
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +18 -39
- package/esm/indicators/atr.js +2 -2
- package/esm/indicators/atr.src.js +17 -39
- package/esm/indicators/bollinger-bands.js +2 -2
- package/esm/indicators/bollinger-bands.src.js +17 -39
- package/esm/indicators/cci.js +2 -2
- package/esm/indicators/cci.src.js +17 -39
- package/esm/indicators/chaikin.js +2 -2
- package/esm/indicators/chaikin.src.js +18 -40
- package/esm/indicators/cmf.js +2 -2
- package/esm/indicators/cmf.src.js +17 -39
- package/esm/indicators/cmo.js +2 -2
- package/esm/indicators/cmo.src.js +17 -39
- package/esm/indicators/dema.js +2 -2
- package/esm/indicators/dema.src.js +18 -39
- package/esm/indicators/disparity-index.js +2 -2
- package/esm/indicators/disparity-index.src.js +20 -41
- package/esm/indicators/dmi.js +2 -2
- package/esm/indicators/dmi.src.js +20 -41
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +18 -39
- package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
- package/esm/indicators/ichimoku-kinko-hyo.src.js +18 -40
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +76 -99
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +48 -46
- package/esm/indicators/keltner-channels.js +2 -2
- package/esm/indicators/keltner-channels.src.js +18 -39
- package/esm/indicators/klinger.js +2 -2
- package/esm/indicators/klinger.src.js +17 -38
- package/esm/indicators/macd.js +2 -2
- package/esm/indicators/macd.src.js +17 -39
- package/esm/indicators/mfi.js +2 -2
- package/esm/indicators/mfi.src.js +17 -39
- package/esm/indicators/momentum.js +2 -2
- package/esm/indicators/momentum.src.js +17 -39
- package/esm/indicators/natr.js +2 -2
- package/esm/indicators/natr.src.js +17 -39
- package/esm/indicators/obv.js +2 -2
- package/esm/indicators/obv.src.js +17 -39
- package/esm/indicators/pivot-points.js +2 -2
- package/esm/indicators/pivot-points.src.js +17 -39
- package/esm/indicators/ppo.js +2 -2
- package/esm/indicators/ppo.src.js +18 -39
- package/esm/indicators/price-channel.js +2 -2
- package/esm/indicators/price-channel.src.js +18 -39
- package/esm/indicators/price-envelopes.js +2 -2
- package/esm/indicators/price-envelopes.src.js +17 -39
- package/esm/indicators/psar.js +2 -2
- package/esm/indicators/psar.src.js +17 -39
- package/esm/indicators/regressions.js +2 -2
- package/esm/indicators/regressions.src.js +17 -42
- package/esm/indicators/roc.js +2 -2
- package/esm/indicators/roc.src.js +17 -39
- package/esm/indicators/rsi.js +2 -2
- package/esm/indicators/rsi.src.js +17 -39
- package/esm/indicators/slow-stochastic.js +2 -2
- package/esm/indicators/slow-stochastic.src.js +17 -38
- package/esm/indicators/stochastic.js +2 -2
- package/esm/indicators/stochastic.src.js +20 -41
- package/esm/indicators/supertrend.js +2 -2
- package/esm/indicators/supertrend.src.js +19 -40
- package/esm/indicators/tema.js +2 -2
- package/esm/indicators/tema.src.js +18 -39
- package/esm/indicators/trendline.js +2 -2
- package/esm/indicators/trendline.src.js +17 -39
- package/esm/indicators/trix.js +2 -2
- package/esm/indicators/trix.src.js +18 -39
- package/esm/indicators/volume-by-price.js +2 -2
- package/esm/indicators/volume-by-price.src.js +18 -39
- package/esm/indicators/vwap.js +2 -2
- package/esm/indicators/vwap.src.js +17 -39
- package/esm/indicators/williams-r.js +2 -2
- package/esm/indicators/williams-r.src.js +18 -39
- package/esm/indicators/wma.js +2 -2
- package/esm/indicators/wma.src.js +17 -39
- package/esm/indicators/zigzag.js +2 -2
- package/esm/indicators/zigzag.src.js +17 -39
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +90 -76
- package/esm/modules/annotations-advanced.js +3 -3
- package/esm/modules/annotations-advanced.src.js +36 -58
- package/esm/modules/annotations.js +3 -3
- package/esm/modules/annotations.src.js +36 -58
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +18 -39
- package/esm/modules/arrow-symbols.js +3 -3
- package/esm/modules/arrow-symbols.src.js +17 -38
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +57 -63
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +56 -62
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +21 -41
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +18 -39
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +92 -96
- package/esm/modules/contour.js +3 -3
- package/esm/modules/contour.src.js +29 -52
- package/esm/modules/current-date-indicator.js +2 -2
- package/esm/modules/current-date-indicator.src.js +17 -38
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +18 -39
- package/esm/modules/data-sorting.js +2 -2
- package/esm/modules/data-sorting.src.js +18 -39
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +110 -67
- package/esm/modules/data.js +4 -4
- package/esm/modules/data.src.js +53 -48
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +52 -48
- package/esm/modules/debugger.js +2 -2
- package/esm/modules/debugger.src.js +17 -38
- package/esm/modules/dependency-wheel.js +2 -2
- package/esm/modules/dependency-wheel.src.js +17 -38
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +17 -38
- package/esm/modules/drag-panes.js +2 -2
- package/esm/modules/drag-panes.src.js +22 -46
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +17 -38
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +40 -54
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +18 -39
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +42 -43
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +26 -47
- package/esm/modules/flowmap.js +2 -2
- package/esm/modules/flowmap.src.js +17 -38
- package/esm/modules/full-screen.js +2 -2
- package/esm/modules/full-screen.src.js +17 -38
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +21 -42
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +18 -39
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +84 -104
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +18 -39
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +34 -51
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +20 -41
- package/esm/modules/heikinashi.js +2 -2
- package/esm/modules/heikinashi.src.js +18 -39
- package/esm/modules/histogram-bellcurve.js +2 -2
- package/esm/modules/histogram-bellcurve.src.js +19 -40
- package/esm/modules/hollowcandlestick.js +2 -2
- package/esm/modules/hollowcandlestick.src.js +18 -39
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +19 -40
- package/esm/modules/lollipop.js +2 -2
- package/esm/modules/lollipop.src.js +18 -39
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +64 -63
- package/esm/modules/marker-clusters.js +2 -2
- package/esm/modules/marker-clusters.src.js +49 -46
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +17 -38
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +72 -67
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +24 -45
- package/esm/modules/no-data-to-display.js +2 -2
- package/esm/modules/no-data-to-display.src.js +17 -38
- package/esm/modules/non-cartesian-zoom.js +2 -2
- package/esm/modules/non-cartesian-zoom.src.js +17 -38
- package/esm/modules/offline-exporting.js +2 -2
- package/esm/modules/offline-exporting.src.js +19 -40
- package/esm/modules/organization.js +2 -2
- package/esm/modules/organization.src.js +20 -39
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +24 -44
- package/esm/modules/pareto.js +2 -2
- package/esm/modules/pareto.src.js +21 -42
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +20 -39
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +17 -38
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +71 -65
- package/esm/modules/pointandfigure.js +2 -2
- package/esm/modules/pointandfigure.src.js +47 -44
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +17 -38
- package/esm/modules/pyramid3d.js +2 -2
- package/esm/modules/pyramid3d.src.js +18 -39
- package/esm/modules/renko.js +2 -2
- package/esm/modules/renko.src.js +18 -40
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +24 -46
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +17 -38
- package/esm/modules/series-on-point.js +2 -2
- package/esm/modules/series-on-point.src.js +47 -44
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +18 -39
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +18 -39
- package/esm/modules/static-scale.js +2 -2
- package/esm/modules/static-scale.src.js +30 -49
- package/esm/modules/stock-tools.js +2 -2
- package/esm/modules/stock-tools.src.js +29 -50
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +117 -141
- package/esm/modules/streamgraph.js +2 -2
- package/esm/modules/streamgraph.src.js +18 -39
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +38 -57
- package/esm/modules/textpath.js +2 -2
- package/esm/modules/textpath.src.js +17 -38
- package/esm/modules/tiledwebmap.js +3 -3
- package/esm/modules/tiledwebmap.src.js +19 -40
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +22 -40
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +19 -40
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +23 -42
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +47 -67
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +34 -53
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +19 -40
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +28 -46
- package/esm/modules/vector.js +2 -2
- package/esm/modules/vector.src.js +18 -39
- package/esm/modules/venn.js +2 -2
- package/esm/modules/venn.src.js +18 -39
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +18 -39
- package/esm/modules/wordcloud.js +2 -2
- package/esm/modules/wordcloud.src.js +18 -39
- package/esm/modules/xrange.js +2 -2
- package/esm/modules/xrange.src.js +18 -39
- package/esm/standalone-navigator.js +4 -4
- package/esm/standalone-navigator.src.js +877 -777
- package/esm/themes/adaptive.js +2 -2
- package/esm/themes/adaptive.src.js +17 -38
- package/esm/themes/avocado.js +2 -2
- package/esm/themes/avocado.src.js +17 -38
- package/esm/themes/dark-unica.js +2 -2
- package/esm/themes/dark-unica.src.js +17 -38
- package/esm/themes/grid-light.js +2 -2
- package/esm/themes/grid-light.src.js +17 -38
- package/esm/themes/high-contrast.js +2 -2
- package/esm/themes/high-contrast.src.js +17 -38
- package/esm/themes/sand-signika.js +2 -2
- package/esm/themes/sand-signika.src.js +17 -38
- package/esm/themes/sunset.js +2 -2
- package/esm/themes/sunset.src.js +17 -38
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +43 -66
- package/highcharts-autoload.d.ts +0 -1
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +0 -1
- package/highcharts-autoload.src.js +834 -779
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +896 -840
- package/highcharts-more.d.ts +10 -0
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.d.ts +10 -0
- package/highcharts-more.src.js +147 -125
- package/highcharts.d.ts +2785 -80144
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +2785 -80144
- package/highcharts.src.js +833 -778
- package/highmaps.js +4 -4
- package/highmaps.src.js +916 -846
- package/highstock.js +4 -4
- package/highstock.src.js +904 -875
- package/i18n/fr-FR.js +2 -2
- package/i18n/fr-FR.src.js +26 -37
- package/i18n/nb-NO.js +2 -2
- package/i18n/nb-NO.src.js +26 -37
- package/i18n/zh-CN.js +2 -2
- package/i18n/zh-CN.src.js +26 -37
- package/indicators/acceleration-bands.js +2 -2
- package/indicators/acceleration-bands.src.js +23 -44
- package/indicators/accumulation-distribution.js +2 -2
- package/indicators/accumulation-distribution.src.js +22 -44
- package/indicators/ao.js +2 -2
- package/indicators/ao.src.js +23 -44
- package/indicators/apo.js +2 -2
- package/indicators/apo.src.js +23 -44
- package/indicators/aroon-oscillator.js +2 -2
- package/indicators/aroon-oscillator.src.js +24 -45
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +23 -44
- package/indicators/atr.js +2 -2
- package/indicators/atr.src.js +22 -44
- package/indicators/bollinger-bands.js +2 -2
- package/indicators/bollinger-bands.src.js +22 -44
- package/indicators/cci.js +2 -2
- package/indicators/cci.src.js +22 -44
- package/indicators/chaikin.js +2 -2
- package/indicators/chaikin.src.js +23 -45
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.src.js +22 -44
- package/indicators/cmo.js +2 -2
- package/indicators/cmo.src.js +22 -44
- package/indicators/dema.js +2 -2
- package/indicators/dema.src.js +23 -44
- package/indicators/disparity-index.js +2 -2
- package/indicators/disparity-index.src.js +25 -46
- package/indicators/dmi.js +2 -2
- package/indicators/dmi.src.js +25 -46
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +23 -44
- package/indicators/ichimoku-kinko-hyo.js +2 -2
- package/indicators/ichimoku-kinko-hyo.src.js +23 -45
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +81 -104
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +53 -51
- package/indicators/keltner-channels.js +2 -2
- package/indicators/keltner-channels.src.js +23 -44
- package/indicators/klinger.js +2 -2
- package/indicators/klinger.src.js +22 -43
- package/indicators/macd.js +2 -2
- package/indicators/macd.src.js +22 -44
- package/indicators/mfi.js +2 -2
- package/indicators/mfi.src.js +22 -44
- package/indicators/momentum.js +2 -2
- package/indicators/momentum.src.js +22 -44
- package/indicators/natr.js +2 -2
- package/indicators/natr.src.js +22 -44
- package/indicators/obv.js +2 -2
- package/indicators/obv.src.js +22 -44
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.src.js +22 -44
- package/indicators/ppo.js +2 -2
- package/indicators/ppo.src.js +23 -44
- package/indicators/price-channel.js +2 -2
- package/indicators/price-channel.src.js +23 -44
- package/indicators/price-envelopes.js +2 -2
- package/indicators/price-envelopes.src.js +22 -44
- package/indicators/psar.js +2 -2
- package/indicators/psar.src.js +22 -44
- package/indicators/regressions.js +2 -2
- package/indicators/regressions.src.js +22 -47
- package/indicators/roc.js +2 -2
- package/indicators/roc.src.js +22 -44
- package/indicators/rsi.js +2 -2
- package/indicators/rsi.src.js +22 -44
- package/indicators/slow-stochastic.js +2 -2
- package/indicators/slow-stochastic.src.js +22 -43
- package/indicators/stochastic.js +2 -2
- package/indicators/stochastic.src.js +25 -46
- package/indicators/supertrend.js +2 -2
- package/indicators/supertrend.src.js +24 -45
- package/indicators/tema.js +2 -2
- package/indicators/tema.src.js +23 -44
- package/indicators/trendline.js +2 -2
- package/indicators/trendline.src.js +22 -44
- package/indicators/trix.js +2 -2
- package/indicators/trix.src.js +23 -44
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.src.js +23 -44
- package/indicators/vwap.js +2 -2
- package/indicators/vwap.src.js +22 -44
- package/indicators/williams-r.js +2 -2
- package/indicators/williams-r.src.js +23 -44
- package/indicators/wma.js +2 -2
- package/indicators/wma.src.js +22 -44
- package/indicators/zigzag.js +2 -2
- package/indicators/zigzag.src.js +22 -44
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.js +95 -81
- package/modules/annotations-advanced.js +9 -9
- package/modules/annotations-advanced.src.js +41 -63
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.js +41 -63
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +23 -44
- package/modules/arrow-symbols.js +2 -2
- package/modules/arrow-symbols.src.js +17 -38
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +62 -68
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +61 -67
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +26 -46
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +23 -44
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +97 -101
- package/modules/contour.js +5 -5
- package/modules/contour.src.js +111 -117
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.src.js +17 -38
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +23 -44
- package/modules/data-sorting.js +2 -2
- package/modules/data-sorting.src.js +18 -39
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +110 -67
- package/modules/data.js +4 -4
- package/modules/data.src.js +58 -53
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +57 -53
- package/modules/debugger.js +2 -2
- package/modules/debugger.src.js +17 -38
- package/modules/dependency-wheel.js +2 -2
- package/modules/dependency-wheel.src.js +22 -43
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +22 -43
- package/modules/drag-panes.js +2 -2
- package/modules/drag-panes.src.js +22 -46
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +17 -38
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +45 -59
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +23 -44
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +47 -48
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +31 -52
- package/modules/flowmap.js +2 -2
- package/modules/flowmap.src.js +22 -43
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.src.js +22 -43
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +26 -47
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +23 -44
- package/modules/gantt.js +8 -8
- package/modules/gantt.src.js +93 -113
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.js +23 -44
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +39 -56
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.js +101 -105
- package/modules/heikinashi.js +2 -2
- package/modules/heikinashi.src.js +23 -44
- package/modules/histogram-bellcurve.js +2 -2
- package/modules/histogram-bellcurve.src.js +24 -45
- package/modules/hollowcandlestick.js +2 -2
- package/modules/hollowcandlestick.src.js +23 -44
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +24 -45
- package/modules/lollipop.js +2 -2
- package/modules/lollipop.src.js +23 -44
- package/modules/map.js +4 -4
- package/modules/map.src.js +146 -128
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.src.js +49 -46
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +17 -38
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.js +77 -72
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +29 -50
- package/modules/no-data-to-display.js +2 -2
- package/modules/no-data-to-display.src.js +22 -43
- package/modules/non-cartesian-zoom.js +2 -2
- package/modules/non-cartesian-zoom.src.js +17 -38
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +24 -45
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +25 -44
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +29 -49
- package/modules/pareto.js +2 -2
- package/modules/pareto.src.js +26 -47
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +25 -44
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +17 -38
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +76 -70
- package/modules/pointandfigure.js +2 -2
- package/modules/pointandfigure.src.js +52 -49
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +17 -38
- package/modules/pyramid3d.js +2 -2
- package/modules/pyramid3d.src.js +23 -44
- package/modules/renko.js +2 -2
- package/modules/renko.src.js +23 -45
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +29 -51
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +22 -43
- package/modules/series-on-point.js +2 -2
- package/modules/series-on-point.src.js +52 -49
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +23 -44
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +23 -44
- package/modules/static-scale.js +2 -2
- package/modules/static-scale.src.js +30 -49
- package/modules/stock-tools.js +2 -2
- package/modules/stock-tools.src.js +34 -55
- package/modules/stock.js +6 -6
- package/modules/stock.src.js +132 -154
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +23 -44
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +43 -62
- package/modules/textpath.js +2 -2
- package/modules/textpath.src.js +17 -38
- package/modules/tiledwebmap.js +3 -3
- package/modules/tiledwebmap.src.js +24 -45
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +27 -45
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +24 -45
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +28 -47
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +52 -72
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +39 -58
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +24 -45
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +33 -51
- package/modules/vector.js +2 -2
- package/modules/vector.src.js +23 -44
- package/modules/venn.js +2 -2
- package/modules/venn.src.js +23 -44
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +23 -44
- package/modules/wordcloud.js +2 -2
- package/modules/wordcloud.src.js +23 -44
- package/modules/xrange.js +2 -2
- package/modules/xrange.src.js +23 -44
- package/options/abands.d.ts +183 -8
- package/options/abands.src.d.ts +183 -8
- package/options/ad.d.ts +176 -5
- package/options/ad.src.d.ts +176 -5
- package/options/ao.d.ts +202 -0
- package/options/ao.src.d.ts +202 -0
- package/options/apo.d.ts +178 -8
- package/options/apo.src.d.ts +178 -8
- package/options/arcdiagram.d.ts +785 -0
- package/options/arcdiagram.src.d.ts +785 -0
- package/options/area.d.ts +226 -0
- package/options/area.src.d.ts +226 -0
- package/options/arearange.d.ts +229 -8
- package/options/arearange.src.d.ts +229 -8
- package/options/areaspline.d.ts +1344 -8
- package/options/areaspline.src.d.ts +1344 -8
- package/options/areasplinerange.d.ts +972 -8
- package/options/areasplinerange.src.d.ts +972 -8
- package/options/aroon.d.ts +219 -0
- package/options/aroon.src.d.ts +219 -0
- package/options/aroonoscillator.d.ts +1140 -8
- package/options/aroonoscillator.src.d.ts +1140 -8
- package/options/atr.d.ts +210 -0
- package/options/atr.src.d.ts +210 -0
- package/options/bar.d.ts +183 -10
- package/options/bar.src.d.ts +183 -10
- package/options/bb.d.ts +1232 -0
- package/options/bb.src.d.ts +1232 -0
- package/options/bellcurve.d.ts +1167 -8
- package/options/bellcurve.src.d.ts +1167 -8
- package/options/boxplot.d.ts +163 -10
- package/options/boxplot.src.d.ts +163 -10
- package/options/bubble.d.ts +1005 -8
- package/options/bubble.src.d.ts +1005 -8
- package/options/bullet.d.ts +953 -8
- package/options/bullet.src.d.ts +953 -8
- package/options/candlestick.d.ts +1309 -8
- package/options/candlestick.src.d.ts +1309 -8
- package/options/cci.d.ts +210 -0
- package/options/cci.src.d.ts +210 -0
- package/options/chaikin.d.ts +180 -8
- package/options/chaikin.src.d.ts +180 -8
- package/options/cmf.d.ts +211 -0
- package/options/cmf.src.d.ts +211 -0
- package/options/cmo.d.ts +175 -5
- package/options/cmo.src.d.ts +175 -5
- package/options/column.d.ts +252 -2
- package/options/column.src.d.ts +252 -2
- package/options/columnpyramid.d.ts +1296 -0
- package/options/columnpyramid.src.d.ts +1296 -0
- package/options/columnrange.d.ts +216 -2
- package/options/columnrange.src.d.ts +216 -2
- package/options/contour.d.ts +1148 -0
- package/options/contour.src.d.ts +1148 -0
- package/options/cylinder.d.ts +183 -2
- package/options/cylinder.src.d.ts +183 -2
- package/options/dema.d.ts +1181 -0
- package/options/dema.src.d.ts +1181 -0
- package/options/dependencywheel.d.ts +315 -0
- package/options/dependencywheel.src.d.ts +315 -0
- package/options/disparityindex.d.ts +1157 -8
- package/options/disparityindex.src.d.ts +1157 -8
- package/options/dmi.d.ts +1227 -0
- package/options/dmi.src.d.ts +1227 -0
- package/options/dpo.d.ts +1140 -8
- package/options/dpo.src.d.ts +1140 -8
- package/options/dumbbell.d.ts +286 -0
- package/options/dumbbell.src.d.ts +286 -0
- package/options/ema.d.ts +1156 -5
- package/options/ema.src.d.ts +1156 -5
- package/options/errorbar.d.ts +1286 -0
- package/options/errorbar.src.d.ts +1286 -0
- package/options/flags.d.ts +1269 -8
- package/options/flags.src.d.ts +1269 -8
- package/options/flowmap.d.ts +551 -0
- package/options/flowmap.src.d.ts +551 -0
- package/options/funnel.d.ts +728 -10
- package/options/funnel.src.d.ts +728 -10
- package/options/gantt.d.ts +1011 -0
- package/options/gantt.src.d.ts +1011 -0
- package/options/gauge.d.ts +675 -0
- package/options/gauge.src.d.ts +675 -0
- package/options/geoheatmap.d.ts +585 -8
- package/options/geoheatmap.src.d.ts +585 -8
- package/options/heatmap.d.ts +1054 -8
- package/options/heatmap.src.d.ts +1054 -8
- package/options/heikinashi.d.ts +178 -10
- package/options/heikinashi.src.d.ts +178 -10
- package/options/histogram.d.ts +1226 -0
- package/options/histogram.src.d.ts +1226 -0
- package/options/hlc.d.ts +223 -2
- package/options/hlc.src.d.ts +223 -2
- package/options/hollowcandlestick.d.ts +1335 -0
- package/options/hollowcandlestick.src.d.ts +1335 -0
- package/options/ikh.d.ts +228 -5
- package/options/ikh.src.d.ts +228 -5
- package/options/item.d.ts +217 -8
- package/options/item.src.d.ts +217 -8
- package/options/keltnerchannels.d.ts +1220 -0
- package/options/keltnerchannels.src.d.ts +1220 -0
- package/options/klinger.d.ts +1162 -0
- package/options/klinger.src.d.ts +1162 -0
- package/options/line.d.ts +1377 -8
- package/options/line.src.d.ts +1377 -8
- package/options/linearregression.d.ts +199 -5
- package/options/linearregression.src.d.ts +199 -5
- package/options/linearregressionangle.d.ts +1157 -5
- package/options/linearregressionangle.src.d.ts +1157 -5
- package/options/linearregressionintercept.d.ts +240 -0
- package/options/linearregressionintercept.src.d.ts +240 -0
- package/options/linearregressionslope.d.ts +240 -0
- package/options/linearregressionslope.src.d.ts +240 -0
- package/options/lollipop.d.ts +949 -0
- package/options/lollipop.src.d.ts +949 -0
- package/options/macd.d.ts +254 -0
- package/options/macd.src.d.ts +254 -0
- package/options/map.d.ts +150 -8
- package/options/map.src.d.ts +150 -8
- package/options/mapbubble.d.ts +1016 -8
- package/options/mapbubble.src.d.ts +1016 -8
- package/options/mapline.d.ts +994 -0
- package/options/mapline.src.d.ts +994 -0
- package/options/mappoint.d.ts +1105 -1
- package/options/mappoint.src.d.ts +1105 -1
- package/options/mfi.d.ts +181 -5
- package/options/mfi.src.d.ts +181 -5
- package/options/momentum.d.ts +215 -0
- package/options/momentum.src.d.ts +215 -0
- package/options/natr.d.ts +170 -5
- package/options/natr.src.d.ts +170 -5
- package/options/networkgraph.d.ts +365 -0
- package/options/networkgraph.src.d.ts +365 -0
- package/options/obv.d.ts +170 -5
- package/options/obv.src.d.ts +170 -5
- package/options/ohlc.d.ts +183 -7
- package/options/ohlc.src.d.ts +183 -7
- package/options/organization.d.ts +808 -0
- package/options/organization.src.d.ts +808 -0
- package/options/packedbubble.d.ts +877 -8
- package/options/packedbubble.src.d.ts +877 -8
- package/options/pareto.d.ts +1028 -0
- package/options/pareto.src.d.ts +1028 -0
- package/options/pc.d.ts +183 -8
- package/options/pc.src.d.ts +183 -8
- package/options/pictorial.d.ts +202 -2
- package/options/pictorial.src.d.ts +202 -2
- package/options/pie.d.ts +196 -8
- package/options/pie.src.d.ts +196 -8
- package/options/pivotpoints.d.ts +1199 -0
- package/options/pivotpoints.src.d.ts +1199 -0
- package/options/pointandfigure.d.ts +980 -0
- package/options/pointandfigure.src.d.ts +980 -0
- package/options/polygon.d.ts +234 -0
- package/options/polygon.src.d.ts +234 -0
- package/options/ppo.d.ts +1156 -8
- package/options/ppo.src.d.ts +1156 -8
- package/options/priceenvelopes.d.ts +1229 -0
- package/options/priceenvelopes.src.d.ts +1229 -0
- package/options/psar.d.ts +1156 -5
- package/options/psar.src.d.ts +1156 -5
- package/options/pyramid.d.ts +837 -2
- package/options/pyramid.src.d.ts +837 -2
- package/options/renko.d.ts +247 -10
- package/options/renko.src.d.ts +247 -10
- package/options/roc.d.ts +1215 -0
- package/options/roc.src.d.ts +1215 -0
- package/options/rsi.d.ts +1157 -5
- package/options/rsi.src.d.ts +1157 -5
- package/options/sankey.d.ts +276 -8
- package/options/sankey.src.d.ts +276 -8
- package/options/scatter.d.ts +3043 -1018
- package/options/scatter.src.d.ts +3043 -1018
- package/options/series.d.ts +175 -0
- package/options/series.src.d.ts +175 -0
- package/options/slowstochastic.d.ts +183 -0
- package/options/slowstochastic.src.d.ts +183 -0
- package/options/sma.d.ts +211 -0
- package/options/sma.src.d.ts +211 -0
- package/options/solidgauge.d.ts +218 -0
- package/options/solidgauge.src.d.ts +218 -0
- package/options/spline.d.ts +230 -0
- package/options/spline.src.d.ts +230 -0
- package/options/stochastic.d.ts +1170 -8
- package/options/stochastic.src.d.ts +1170 -8
- package/options/streamgraph.d.ts +1345 -8
- package/options/streamgraph.src.d.ts +1345 -8
- package/options/sunburst.d.ts +286 -9
- package/options/sunburst.src.d.ts +286 -9
- package/options/supertrend.d.ts +1208 -0
- package/options/supertrend.src.d.ts +1208 -0
- package/options/tema.d.ts +1140 -8
- package/options/tema.src.d.ts +1140 -8
- package/options/tiledwebmap.d.ts +164 -0
- package/options/tiledwebmap.src.d.ts +164 -0
- package/options/tilemap.d.ts +687 -0
- package/options/tilemap.src.d.ts +687 -0
- package/options/timeline.d.ts +282 -0
- package/options/timeline.src.d.ts +282 -0
- package/options/treegraph.d.ts +982 -0
- package/options/treegraph.src.d.ts +982 -0
- package/options/treemap.d.ts +1396 -22
- package/options/treemap.src.d.ts +1396 -22
- package/options/trendline.d.ts +211 -0
- package/options/trendline.src.d.ts +211 -0
- package/options/trix.d.ts +178 -8
- package/options/trix.src.d.ts +178 -8
- package/options/variablepie.d.ts +686 -8
- package/options/variablepie.src.d.ts +686 -8
- package/options/variwide.d.ts +178 -2
- package/options/variwide.src.d.ts +178 -2
- package/options/vbp.d.ts +576 -0
- package/options/vbp.src.d.ts +576 -0
- package/options/vector.d.ts +660 -0
- package/options/vector.src.d.ts +660 -0
- package/options/venn.d.ts +654 -0
- package/options/venn.src.d.ts +654 -0
- package/options/vwap.d.ts +1157 -5
- package/options/vwap.src.d.ts +1157 -5
- package/options/waterfall.d.ts +1254 -8
- package/options/waterfall.src.d.ts +1254 -8
- package/options/williamsr.d.ts +209 -0
- package/options/williamsr.src.d.ts +209 -0
- package/options/windbarb.d.ts +222 -2
- package/options/windbarb.src.d.ts +222 -2
- package/options/wma.d.ts +1156 -5
- package/options/wma.src.d.ts +1156 -5
- package/options/wordcloud.d.ts +682 -0
- package/options/wordcloud.src.d.ts +682 -0
- package/options/xrange.d.ts +1168 -0
- package/options/xrange.src.d.ts +1168 -0
- package/options/zigzag.d.ts +1197 -0
- package/options/zigzag.src.d.ts +1197 -0
- package/package.json +1 -1
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +885 -804
- package/themes/adaptive.js +2 -2
- package/themes/adaptive.src.js +22 -43
- package/themes/avocado.js +2 -2
- package/themes/avocado.src.js +17 -38
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +17 -38
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +17 -38
- package/themes/high-contrast.js +2 -2
- package/themes/high-contrast.src.js +17 -38
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +17 -38
- package/themes/sunset.js +2 -2
- package/themes/sunset.src.js +17 -38
package/modules/timeline.src.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.
|
|
3
|
+
* @license Highcharts JS v13.1.1 (2026-09-20)
|
|
4
4
|
* @module highcharts/modules/timeline
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
*
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
16
16
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
17
|
-
module.exports = factory(root["_Highcharts"], root["_Highcharts"]["SeriesRegistry"], root["_Highcharts"]
|
|
17
|
+
module.exports = factory(root["_Highcharts"]["Point"], root["_Highcharts"]["SeriesRegistry"], root["_Highcharts"]);
|
|
18
18
|
else if(typeof define === 'function' && define.amd)
|
|
19
|
-
define("highcharts/modules/timeline", ["highcharts/highcharts"], function (amd1) {return factory(amd1
|
|
19
|
+
define("highcharts/modules/timeline", ["highcharts/highcharts"], function (amd1) {return factory(amd1["Point"],amd1["SeriesRegistry"],amd1);});
|
|
20
20
|
else if(typeof exports === 'object')
|
|
21
|
-
exports["highcharts/modules/timeline"] = factory(root["_Highcharts"], root["_Highcharts"]["SeriesRegistry"], root["_Highcharts"]
|
|
21
|
+
exports["highcharts/modules/timeline"] = factory(root["_Highcharts"]["Point"], root["_Highcharts"]["SeriesRegistry"], root["_Highcharts"]);
|
|
22
22
|
else
|
|
23
|
-
root["Highcharts"] = factory(root["Highcharts"], root["Highcharts"]["SeriesRegistry"], root["Highcharts"]
|
|
24
|
-
})(typeof window === 'undefined' ? this : window, (
|
|
23
|
+
root["Highcharts"] = factory(root["Highcharts"]["Point"], root["Highcharts"]["SeriesRegistry"], root["Highcharts"]);
|
|
24
|
+
})(typeof window === 'undefined' ? this : window, (__WEBPACK_EXTERNAL_MODULE__260__, __WEBPACK_EXTERNAL_MODULE__512__, __WEBPACK_EXTERNAL_MODULE__944__) => {
|
|
25
25
|
return /******/ (() => { // webpackBootstrap
|
|
26
26
|
/******/ "use strict";
|
|
27
27
|
/******/ var __webpack_modules__ = ({
|
|
@@ -75,48 +75,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__944__;
|
|
|
75
75
|
/******/
|
|
76
76
|
/************************************************************************/
|
|
77
77
|
/******/ /* webpack/runtime/compat get default export */
|
|
78
|
-
/******/
|
|
79
|
-
/******/
|
|
80
|
-
/******/
|
|
81
|
-
/******/
|
|
82
|
-
/******/
|
|
83
|
-
/******/
|
|
84
|
-
/******/
|
|
85
|
-
/******/
|
|
86
|
-
/******/ };
|
|
87
|
-
/******/ })();
|
|
78
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
79
|
+
/******/ __webpack_require__.n = (module) => {
|
|
80
|
+
/******/ const getter = module && module.__esModule ?
|
|
81
|
+
/******/ () => (module['default']) :
|
|
82
|
+
/******/ () => (module);
|
|
83
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
84
|
+
/******/ return getter;
|
|
85
|
+
/******/ };
|
|
88
86
|
/******/
|
|
89
87
|
/******/ /* webpack/runtime/define property getters */
|
|
90
|
-
/******/
|
|
91
|
-
/******/
|
|
92
|
-
/******/
|
|
93
|
-
/******/ if(
|
|
94
|
-
/******/
|
|
95
|
-
/******/ while(i < definition.length) {
|
|
96
|
-
/******/ var key = definition[i++];
|
|
97
|
-
/******/ var binding = definition[i++];
|
|
98
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
99
|
-
/******/ if(binding === 0) {
|
|
100
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
101
|
-
/******/ } else {
|
|
102
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
103
|
-
/******/ }
|
|
104
|
-
/******/ } else if(binding === 0) { i++; }
|
|
105
|
-
/******/ }
|
|
106
|
-
/******/ } else {
|
|
107
|
-
/******/ for(var key in definition) {
|
|
108
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
109
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
110
|
-
/******/ }
|
|
111
|
-
/******/ }
|
|
88
|
+
/******/ // define getter/value functions for harmony exports
|
|
89
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
90
|
+
/******/ for(var key in definition) {
|
|
91
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
92
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
112
93
|
/******/ }
|
|
113
|
-
/******/ }
|
|
114
|
-
/******/ }
|
|
94
|
+
/******/ }
|
|
95
|
+
/******/ };
|
|
115
96
|
/******/
|
|
116
97
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
117
|
-
/******/ (
|
|
118
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
119
|
-
/******/ })();
|
|
98
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
120
99
|
/******/
|
|
121
100
|
/************************************************************************/
|
|
122
101
|
let __webpack_exports__ = {};
|
|
@@ -235,7 +214,7 @@ class TimelinePoint extends LinePoint {
|
|
|
235
214
|
coords[direction] += dataLabel[inverted ? 'width' : 'height'] || 0;
|
|
236
215
|
}
|
|
237
216
|
// Change coordinates so that they will be relative to data label.
|
|
238
|
-
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.objectEach)(coords, (_coord, i) => {
|
|
217
|
+
;(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.objectEach)(coords, (_coord, i) => {
|
|
239
218
|
coords[i] -= (dataLabel.alignAttr || dataLabel)[i[0]];
|
|
240
219
|
});
|
|
241
220
|
return chart.renderer.crispLine([
|
|
@@ -485,7 +464,7 @@ const TimelineSeriesDefaults = {
|
|
|
485
464
|
*
|
|
486
465
|
* @extends series,plotOptions.timeline
|
|
487
466
|
* @excluding animationLimit, boostThreshold, connectEnds, connectNulls,
|
|
488
|
-
* cropThreshold, dashStyle,
|
|
467
|
+
* cropThreshold, dashStyle, findNearestPointBy,
|
|
489
468
|
* getExtremesFromAll, negativeColor, pointInterval,
|
|
490
469
|
* pointIntervalUnit, pointPlacement, pointStart, softThreshold,
|
|
491
470
|
* stacking, stack, step, threshold, turboThreshold, zoneAxis, zones,
|
package/modules/treegraph.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!/**
|
|
2
|
-
* Highcharts JS v13.
|
|
2
|
+
* Highcharts JS v13.1.1 (2026-09-20)
|
|
3
3
|
* Treegraph chart series type
|
|
4
4
|
* @module highcharts/modules/treegraph
|
|
5
5
|
* @requires highcharts
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
*
|
|
11
11
|
* A commercial license may be required depending on use,
|
|
12
12
|
* see www.highcharts.com/license
|
|
13
|
-
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.SVGRenderer,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.SVGElement):"function"==typeof define&&define.amd?define("highcharts/modules/treegraph",["highcharts/highcharts"],function(t){return e(t,t.SeriesRegistry,t.SVGRenderer,t.Point,t.Color,t.SVGElement)}):"object"==typeof exports?exports["highcharts/modules/treegraph"]=e(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.SVGRenderer,t._Highcharts.Point,t._Highcharts.Color,t._Highcharts.SVGElement):t.Highcharts=e(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.SVGRenderer,t.Highcharts.Point,t.Highcharts.Color,t.Highcharts.SVGElement)}("u"<typeof window?this:window,(t,e,i,s,o,l)=>(()=>{"use strict";var r,n={620(t){t.exports=o},260(t){t.exports=s},28(t){t.exports=l},540(t){t.exports=i},512(t){t.exports=e},944(e){e.exports=t}};let a={};function h(t){let e=a[t];if(void 0!==e)return e.exports;let i=a[t]={exports:{}};return n[t](i,i.exports,h),i.exports}h.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return h.d(e,{a:e}),e},h.d=(t,e)=>{if(Array.isArray(e))for(var i=0;i<e.length;){var s=e[i++],o=e[i++];h.o(t,s)?0===o&&i++:0===o?Object.defineProperty(t,s,{enumerable:!0,value:e[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:o})}else for(var s in e)h.o(e,s)&&!h.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},h.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let d={};h.d(d,{default:()=>z});var p=h(944),c=h.n(p);function u(t){let{x1:e,y1:i,x2:s,y2:o,bendAt:l,width:r=0,inverted:n=!1,radius:a,parentVisible:h}=t;if(h){let t=l??r/2;return f([["M",e,i],["L",e+t*(n?-1:1),i],["L",e+t*(n?-1:1),o],["L",s,o]],a)}return[["M",e,i],["L",e,i],["C",e,i,e,o,e,o],["L",e,o],["C",e,i,e,o,e,o],["L",e,o]]}function f(t,e){let i=[];for(let s=0;s<t.length;s++){let o=t[s][1],l=t[s][2];if("number"==typeof o&&"number"==typeof l)if(0===s)i.push(["M",o,l]);else if(s===t.length-1)i.push(["L",o,l]);else if(e){let r=t[s-1],n=t[s+1];if(r&&n){let t=r[1],s=r[2],a=n[1],h=n[2];if("number"==typeof t&&"number"==typeof a&&"number"==typeof s&&"number"==typeof h&&t!==a&&s!==h){let r=t<a?1:-1,n=s<h?1:-1;i.push(["L",o-r*Math.min(Math.abs(o-t),e),l-n*Math.min(Math.abs(l-s),e)],["C",o,l,o,l,o+r*Math.min(Math.abs(o-a),e),l+n*Math.min(Math.abs(l-h),e)])}}}else i.push(["L",o,l])}return i}var g=h(512),v=h.n(g),b=h(540),m=h.n(b);let{seriesTypes:{treemap:{prototype:{NodeClass:y}}}}=v(),x=class extends y{constructor(){super(...arguments),this.mod=0,this.shift=0,this.change=0,this.children=[],this.preX=0,this.hidden=!1,this.wasVisited=!1,this.collapsed=!1}nextLeft(){return this.getLeftMostChild()||this.thread}nextRight(){return this.getRightMostChild()||this.thread}getAncestor(t,e){return t.ancestor.children[0]===this.children[0]?t.ancestor:e}getLeftMostSibling(){let t=this.getParent();if(t){for(let e of t.children)if(e&&e.point.visible)return e}}hasChildren(){let t=this.children;for(let e=0;e<t.length;e++)if(t[e].point.visible)return!0;return!1}getLeftSibling(){let t=this.getParent();if(t){let e=t.children;for(let t=this.relativeXPosition-1;t>=0;t--)if(e[t]&&e[t].point.visible)return e[t]}}getLeftMostChild(){let t=this.children;for(let e=0;e<t.length;e++)if(t[e].point.visible)return t[e]}getRightMostChild(){let t=this.children;for(let e=t.length-1;e>=0;e--)if(t[e].point.visible)return t[e]}getParent(){return this.parentNode}getFirstChild(){let t=this.children;for(let e=0;e<t.length;e++)if(t[e].point.visible)return t[e]}};var L=h(260),P=h.n(L);let{seriesTypes:{treemap:{prototype:{pointClass:k}}}}=v();class C extends k{constructor(){super(...arguments),this.dataLabelOnHidden=!0,this.isLink=!1,this.setState=P().prototype.setState}draw(){super.draw.apply(this,arguments);let t=this.graphic;t&&t.animate({visibility:this.visible?"inherit":"hidden"}),this.renderCollapseButton()}renderCollapseButton(){let t=this.series,e=this.graphic&&this.graphic.parentGroup,i=t.mapOptionsToLevel[this.node.level||0]||{},s=(0,p.merge)(t.options.collapseButton,i.collapseButton,this.options.collapseButton),{width:o,height:l,shape:r,style:n}=s,a=this.series.chart,h=this.visible&&(this.collapsed||!s.onlyOnHover||"hover"===this.state)?1:0;if(this.shapeArgs)if(this.collapseButtonOptions=s,this.collapseButton)if(this.node.children.length&&s.enabled){let{x:t,y:e}=this.getCollapseBtnPosition(s);this.collapseButton.attr({text:this.collapsed?"+":"-",rotation:90*!!a.inverted,rotationOriginX:o/2,rotationOriginY:l/2,visibility:this.visible?"inherit":"hidden"}).animate({x:t,y:e,opacity:h})}else this.collapseButton.destroy(),delete this.collapseButton;else{if(!this.node.children.length||!s.enabled)return;let{x:t,y:i}=this.getCollapseBtnPosition(s),d=s.fillColor||this.color||"var(--highcharts-neutral-color-20)";this.collapseButton=a.renderer.label(this.collapsed?"+":"-",t,i,r).attr({height:l-4,width:o-4,padding:2,fill:d,rotation:90*!!a.inverted,rotationOriginX:o/2,rotationOriginY:l/2,stroke:s.lineColor||"var(--highcharts-background-color)","stroke-width":s.lineWidth,"text-align":"center",align:"center",zIndex:1,opacity:h,visibility:this.visible?"inherit":"hidden"}).addClass("highcharts-tracker").addClass("highcharts-collapse-button").removeClass("highcharts-no-tooltip").css((0,p.merge)({color:"string"==typeof d?a.renderer.getContrast(d):"var(--highcharts-neutral-color-80)"},n)).add(e),this.collapseButton.element.point=this}}toggleCollapse(t){let e=this.series;this.update({collapsed:t??!this.collapsed},!1,void 0,!1),(0,p.fireEvent)(e,"toggleCollapse"),e.redraw()}destroy(){this.collapseButton&&(this.collapseButton.destroy(),delete this.collapseButton,this.collapseButton=void 0),this.linkToParent&&(this.linkToParent.destroy(),delete this.linkToParent),super.destroy.apply(this,arguments)}getCollapseBtnPosition(t){let e=this.series.chart.inverted,i=t.width,s=t.height,{x:o=0,y:l=0,width:r=0,height:n=0}=this.shapeArgs||{};return{x:o+t.x+(e?-(.3*s):r+-.3*i),y:l+n/2-s/2+t.y}}}(0,p.addEvent)(C,"mouseOut",function(){let t=this.collapseButton,e=this.collapseButtonOptions;t&&e?.onlyOnHover&&!this.collapsed&&t.animate({opacity:0})}),(0,p.addEvent)(C,"mouseOver",function(){this.collapseButton&&this.visible&&this.collapseButton.animate({opacity:1},this.series.options.states?.hover?.animation)}),(0,p.addEvent)(C,"click",function(){this.toggleCollapse()});var T=h(620),O=h.n(T);let M={getColor:function(t,e){let i,s,o,l,r,n,a=e.index,h=e.mapOptionsToLevel,d=e.parentColor,p=e.parentColorIndex,c=e.series,u=e.colors,f=e.siblings,g=c.points,v=c.chart.options.chart;if(t){let b;i=g[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(l=i.index%(u?u.length:v.colorCount),o=u&&u[l]),c.chart.styledMode||(r=(i&&i.options.color)??(s&&s.color)??o??(d&&((b=s&&s.colorVariation)&&"brightness"===b.key&&a&&f?O().parse(d).brighten(b.to*(a/f)).get():d))??c.color),n=(i&&i.options.colorIndex)??(s&&s.colorIndex)??l??p??e.colorIndex}return{color:r,colorIndex:n}},getLevelOptions:function(t){let e,i,s,o,l,r,n={};if((0,p.isObject)(t))for(o=(0,p.isNumber)(t.from)?t.from:1,r=t.levels,i={},e=(0,p.isObject)(t.defaults)?t.defaults:{},(0,p.isArray)(r)&&(i=r.reduce((t,i)=>{let s,l,r;return(0,p.isObject)(i)&&(0,p.isNumber)(i.level)&&(l=(r=(0,p.merge)({},i)).levelIsConstant??e.levelIsConstant,delete r.levelIsConstant,delete r.level,s=i.level+(l?0:o-1),(0,p.isObject)(t[s])?(0,p.merge)(!0,t[s],r):t[s]=r),t},{})),l=(0,p.isNumber)(t.to)?t.to:1,s=0;s<=l;s++)n[s]=(0,p.merge)({},e,(0,p.isObject)(i[s])?i[s]:{});return n},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:l=0}=s,{plotSizeX:r=1}=i;if("auto"===l){if("string"==typeof o&&/%$/.test(o))return r/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(r+t)/(e||1)-t}return(0,p.relativeLength)(l,r)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,l=i.mapIdToNode[o],r=!1!==i.levelIsConstant,n=i.points[e.i],a=n&&n.options||{},h=[],d=0;e.levelDynamic=e.level-(r?0:l.level),e.name=(n&&n.name)??"",e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let l=(0,p.extend)({},i);(0,p.extend)(l,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,l),h.push(s),s.visible&&(d+=s.val)});let c=a.value??d;return e.visible=c>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=c,e},updateRootId:function(t){let e,i;return(0,p.isObject)(t)&&(i=(0,p.isObject)(t.options)?t.options:{},e=t.rootNode??i.rootId??"",(0,p.isObject)(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}},{seriesTypes:{column:{prototype:{pointClass:N}}}}=v(),S=class extends N{constructor(t,e,i,s){super(t,e,i),this.dataLabelOnNull=!0,this.formatPrefix="link",this.isLink=!0,this.node={},this.formatPrefix="link",this.dataLabelOnNull=!0,s&&(this.fromNode=s.node.parentNode.point,this.visible=s.visible,this.toNode=s,this.id=this.toNode.id+"-"+this.fromNode.id)}update(t,e,i,s){let o={id:this.id,formatPrefix:this.formatPrefix};P().prototype.update.call(this,t,!this.isLink&&e,i,s),this.visible=this.toNode.visible,(0,p.extend)(this,o),(e??!0)&&this.series.chart.redraw(i)}};class X{static createDummyNode(t,e,i){let s=new x;return s.id=t.id+"-"+i,s.ancestor=t,s.children.push(e),s.parent=t.id,s.parentNode=t,s.point=e.point,s.level=e.level-i,s.relativeXPosition=e.relativeXPosition,s.visible=e.visible,t.children[e.relativeXPosition]=s,e.oldParentNode=t,e.relativeXPosition=0,e.parentNode=s,e.parent=s.id,s}calculatePositions(t){let e=t.nodeList;this.resetValues(e);let i=t.tree;i&&(this.calculateRelativeX(i,0),this.beforeLayout(e),this.firstWalk(i),this.secondWalk(i,-i.preX),this.afterLayout(e))}beforeLayout(t){for(let e of t)for(let t of e.children)if(t&&t.level-e.level>1){let i=t.level-e.level-1;for(;i>0;)t=X.createDummyNode(e,t,i),i--}}resetValues(t){for(let e of t)e.mod=0,e.ancestor=e,e.shift=0,e.thread=void 0,e.change=0,e.preX=0}calculateRelativeX(t,e){let i=t.children;for(let t=0,e=i.length;t<e;++t)this.calculateRelativeX(i[t],t);t.relativeXPosition=e}firstWalk(t){let e;if(t.hasChildren()){let i=t.getLeftMostChild();for(let e of t.children)this.firstWalk(e),i=this.apportion(e,i);this.executeShifts(t);let s=t.getLeftMostChild(),o=t.getRightMostChild(),l=(s.preX+o.preX)/2;(e=t.getLeftSibling())?(t.preX=e.preX+1,t.mod=t.preX-l):t.preX=l}else(e=t.getLeftSibling())?(t.preX=e.preX+1,t.mod=t.preX):t.preX=0}secondWalk(t,e){for(let i of(t.yPosition=t.preX+e,t.xPosition=t.point?.x??t.level,t.children))this.secondWalk(i,e+t.mod)}executeShifts(t){let e=0,i=0;for(let s=t.children.length-1;s>=0;s--){let o=t.children[s];o.preX+=e,o.mod+=e,i+=o.change,e+=o.shift+i}}apportion(t,e){let i=t.getLeftSibling();if(i){let s=t,o=t,l=i,r=s.getLeftMostSibling(),n=s.mod,a=o.mod,h=l.mod,d=r.mod;for(;l&&l.nextRight()&&s&&s.nextLeft();){l=l.nextRight(),r=r.nextLeft(),s=s.nextLeft(),(o=o.nextRight()).ancestor=t;let i=l.preX+h-(s.preX+n)+1;i>0&&(this.moveSubtree(t.getAncestor(l,e),t,i),n+=i,a+=i),h+=l.mod,n+=s.mod,d+=r.mod,a+=o.mod}l&&l.nextRight()&&!o.nextRight()&&(o.thread=l.nextRight(),o.mod+=h-a),s&&s.nextLeft()&&!r.nextLeft()&&(r.thread=s.nextLeft(),r.mod+=n-d),e=t}return e}moveSubtree(t,e,i){let s=e.relativeXPosition-t.relativeXPosition;e.change-=i/s,e.shift+=i,e.preX+=i,e.mod+=i,t.change+=i/s}afterLayout(t){for(let e of t)e.oldParentNode&&(e.relativeXPosition=e.parentNode.relativeXPosition,e.parent=e.oldParentNode.parent,e.parentNode=e.oldParentNode,e.oldParentNode.children.splice(e.relativeXPosition,1,e),e.oldParentNode=void 0)}}var w=h(28),A=h.n(w);let{composed:B,deg2rad:R}=c(),{getLinkPath:H}={applyRadius:f,getLinkPath:{default:u,orthogonal:u,straight:function(t){let{x1:e,y1:i,x2:s,y2:o,width:l=0,inverted:r=!1,parentVisible:n}=t;return n?[["M",e,i],["L",e+l*(r?-1:1),o],["L",s,o]]:[["M",e,i],["L",e,o],["L",e,o]]},curved:function(t){let{x1:e,y1:i,x2:s,y2:o,offset:l=0,width:r=0,inverted:n=!1,parentVisible:a}=t;return a?[["M",e,i],["C",e+l,i,e-l+r*(n?-1:1),o,e+r*(n?-1:1),o],["L",s,o]]:[["M",e,i],["C",e,i,e,o,e,o],["L",s,o]]}}},{series:{prototype:W},seriesTypes:{treemap:I,column:E}}=v(),{prototype:{symbols:j}}=m(),{getLevelOptions:V,getNodeWidth:_}=M;r=A(),(0,p.pushUnique)(B,"TextPath")&&((0,p.addEvent)(r,"afterGetBBox",function(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),l=o-s,r=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),n=i.innerHTML.replace(r,"").split(/<tspan class="highcharts-br"[^>]*>/),a=n.length,h=(t,e)=>{let{x:o,y:r}=e,n=(i.getRotationOfChar(t)-90)*R,a=Math.cos(n),h=Math.sin(n);return[[o-l*a,r-l*h],[o+s*a,r+s*h]]};for(let e=0,s=0;s<a;s++){let o=n[s].length;for(let l=0;l<o;l+=5)try{let o=e+l+s,[r,n]=h(o,i.getStartPositionOfChar(o));0===l?(t.push(n),t.push(r)):(0===s&&t.unshift(n),s===a-1&&t.push(r))}catch{break}e+=o-1;try{let o=e+s,l=i.getEndPositionOfChar(o),[r,n]=h(o,l);t.unshift(n),t.unshift(r)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}),(0,p.addEvent)(r,"beforeAddingDataLabel",function(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}),r.prototype.setTextPath=r.prototype.setTextPath??function(t,e){let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:l,enabled:r}=(0,p.merge)({enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);if(t=t||o&&o.path,o?.undo(),t&&r){let e=(0,p.addEvent)(s,"afterModifyTree",e=>{if(t&&r){let o=t.attr("id");o||t.attr("id",o=(0,p.uniqueKey)());let r={x:0,y:0};(0,p.defined)(l.dx)&&(r.dx=l.dx,delete l.dx),(0,p.defined)(l.dy)&&(r.dy=l.dy,delete l.dy),s.attr(r),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let n=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:(0,p.extend)(l,{"text-anchor":l.textAnchor,href:`${i}#${o}`}),children:n}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this});class D extends I{constructor(){super(...arguments),this.nodeList=[],this.links=[]}init(){super.init.apply(this,arguments),this.layoutAlgorithm=new X;let t=this,e=this.chart.labelCollectors;e.some(t=>"collectorFunc"===t.name)||e.push(function(){let e=[];if(t.options.dataLabels&&!(0,p.splat)(t.options.dataLabels)[0].allowOverlap)for(let i of t.links||[])i.dataLabel&&e.push(i.dataLabel);return e})}getLayoutModifiers(){let t=this.chart,e=this,i=t.plotSizeX,s=t.plotSizeY,o=e.options.link?.lineWidth||0,l=(0,p.arrayMax)(this.points.map(t=>t.node.xPosition)),r=1/0,n=-1/0,a=1/0,h=-1/0,d=0,c=0,u=0,f=0;this.points.forEach(t=>{if(this.options.fillSpace&&!t.visible)return;let g=t.node,v=e.mapOptionsToLevel[t.node.level]||{},b=(0,p.merge)(this.options.marker,v.marker,t.options.marker),m=b.width??_(this,l),y=(0,p.relativeLength)(b.radius||0,Math.min(i,s)),x=Math.max(b.lineWidth||0,o),L=b.symbol,P="circle"!==L&&b.height?(0,p.relativeLength)(b.height,s):2*y,k="circle"!==L&&m?(0,p.relativeLength)(m,i):2*y;g.nodeSizeX=k,g.nodeSizeY=P,g.xPosition<=r&&(r=g.xPosition,c=Math.max(k+x,c)),g.xPosition>=n&&(n=g.xPosition,d=Math.max(k+x,d)),g.yPosition<=a&&(a=g.yPosition,f=Math.max(P+x,f)),g.yPosition>=h&&(h=g.yPosition,u=Math.max(P+x,u))});let g=h===a?1:(s-(f+u)/2)/(h-a),v=h===a?s/2:-g*a+f/2,b=n===r?1:(i-(d+d)/2)/(n-r),m=n===r?i/2:-b*r+c/2;return{ax:b,bx:m,ay:g,by:v}}getLinks(){let t=this,e=[];return this.data.forEach(i=>{let s=t.mapOptionsToLevel[i.node.level??0]||{};if(i.node.parent){let o=(0,p.merge)(s,i.options);if(!i.linkToParent||i.linkToParent.condemned){let e=new t.LinkClass(t,o,void 0,i);i.linkToParent=e}else i.collapsed=i.collapsed??(this.mapOptionsToLevel[i.node.level]||{}).collapsed,i.linkToParent.visible=i.linkToParent.toNode.visible;i.linkToParent.index=e.push(i.linkToParent)-1}else i.linkToParent&&(t.links.splice(i.linkToParent.index),i.linkToParent.destroy(),delete i.linkToParent)}),e}buildTree(t,e,i,s,o){let l=this.points[e];return i=l?.level??i,super.buildTree.call(this,t,e,i,s,o)}markerAttribs(){return{}}setCollapsedStatus(t,e){let i=t.point;i&&(i.collapsed=i.collapsed??(this.mapOptionsToLevel[t.level]||{}).collapsed,i.visible=e,e=!1!==e&&!i.collapsed),t.children.forEach(t=>{this.setCollapsedStatus(t,e)})}drawTracker(){E.prototype.drawTracker.apply(this,arguments),E.prototype.drawTracker.call(this,this.links)}translate(){let t=this.options,e=M.updateRootId(this),i;W.translate.call(this);let s=this.tree=this.getTree();i=this.nodeMap[e],""===e||i&&i.children.length||(this.setRootNode("",!1),e=this.rootNode,i=this.nodeMap[e]),this.mapOptionsToLevel=V({from:i.level+1,levels:t.levels,to:s.height,defaults:{levelIsConstant:this.options.levelIsConstant,colorByPoint:t.colorByPoint}}),this.setCollapsedStatus(s,!0),this.links=this.getLinks(),this.setTreeValues(s),this.layoutAlgorithm.calculatePositions(this),this.layoutModifier=this.getLayoutModifiers(),this.points.forEach(t=>{this.translateNode(t)}),this.points.forEach(t=>{t.linkToParent&&this.translateLink(t.linkToParent)}),t.colorByPoint||this.setColorRecursive(this.tree)}translateLink(t){let e=t.fromNode,i=t.toNode,s=this.options.link?.lineWidth||0,o=this.options.link?.curveFactor??.5,l=i.x!==i.node.level||e.x!==e.node.level,r=t.options.link?.type??this.options.link?.type??"default";if(e.shapeArgs&&i.shapeArgs){let n=e.shapeArgs.width||0,a=this.chart.inverted,h=(0,p.crisp)((e.shapeArgs.y||0)+(e.shapeArgs.height||0)/2,s),d=(0,p.crisp)((i.shapeArgs.y||0)+(i.shapeArgs.height||0)/2,s),c=(0,p.crisp)((e.shapeArgs.x||0)+n,s),u=(0,p.crisp)(i.shapeArgs.x||0,s);a&&(c-=Math.round(n),u+=Math.round(i.shapeArgs.width||0));let f=i.node.xPosition-e.node.xPosition,g=Math.abs(u-c)+n,v=(l?g:g/f)-n,b=(0,p.crisp)((u+c)/2,s),m=(0,p.relativeLength)(t.options.link?.bendAt??this.options.link?.bendAt??"50%",g-n);t.shapeType="path",t.plotX=b,t.plotY=d,t.shapeArgs={d:H[r]({x1:c,y1:h,x2:u,y2:d,width:v,offset:v*o*(a?-1:1),inverted:a,parentVisible:i.visible,radius:this.options.link?.radius,bendAt:m})},t.dlBox={x:(c+u)/2,y:(h+d)/2,height:s,width:0},t.tooltipPos=a?[(this.chart.plotSizeY||0)-t.dlBox.y,(this.chart.plotSizeX||0)-t.dlBox.x]:[t.dlBox.x,t.dlBox.y]}}drawNodeLabels(t){let e,i,s=this.mapOptionsToLevel;for(let o of t){if(i=s[o.node.level],e={style:{}},i&&i.dataLabels&&(e=(0,p.merge)(e,i.dataLabels),this.hasDataLabels=()=>!0),o.shapeArgs&&this.options.dataLabels){let t={},{width:i=0,height:s=0}=o.shapeArgs;this.chart.inverted&&([i,s]=[s,i]),(0,p.splat)(this.options.dataLabels)[0].style?.width||(t.width=`${i}px`),(0,p.splat)(this.options.dataLabels)[0].style?.lineClamp||(t.lineClamp=Math.floor(s/16)),(0,p.extend)(e.style,t),o.dataLabel?.css(t)}o.dlOptions=(0,p.merge)(e,o.options.dataLabels)}W.drawDataLabels.call(this,t)}alignDataLabel(t,e){let i=t.visible;t.visible=!0,super.alignDataLabel.apply(this,arguments),e.animate({opacity:+(!1!==i)},void 0,function(){i||e.hide()}),t.visible=i}drawDataLabels(){this.options.dataLabels&&(this.options.dataLabels=(0,p.splat)(this.options.dataLabels),this.drawNodeLabels(this.points),W.drawDataLabels.call(this,this.links))}destroy(){if(this.links){for(let t of this.links)t.destroy(!0);this.links.length=0}return W.destroy.apply(this,arguments)}pointAttribs(t,e){let i=t&&this.mapOptionsToLevel[t.node.level]||{},s=t?.options||{},o=i.states?.[e||"normal"]||{};t&&(t.options.marker=(0,p.merge)(this.options.marker,i.marker,t.options.marker));let l=o.link?.color??s.link?.color??i.link?.color??this.options.link?.color,r=o.link?.lineWidth??s.link?.lineWidth??i.link?.lineWidth??this.options.link?.lineWidth,n=W.pointAttribs.call(this,t,e);return t&&(t.isLink&&(n.stroke=l,n["stroke-width"]=r,delete n.fill),t.visible||(n.opacity=0)),n}drawPoints(){I.prototype.drawPoints.apply(this,arguments),E.prototype.drawPoints.call(this,this.links)}translateNode(t){let e=this.chart,{node:i,plotX:s=0}=t,o=e.plotSizeY,l=e.plotSizeX,{ax:r,bx:n,ay:a,by:h}=this.layoutModifier,d=this.isCartesian?e.inverted?l-s:s:r*i.xPosition+n,c=a*i.yPosition+h,u=this.mapOptionsToLevel[i.level]||{},f=(0,p.merge)(this.options.marker,u.marker,t.options.marker).symbol,g=i.nodeSizeY,v=i.nodeSizeX,b=this.options.reversed,m=i.x=e.inverted?l-v/2-d:d-v/2,y=i.y=b?c-g/2:o-c-g/2,x=t.options.borderRadius??u.borderRadius??this.options.borderRadius,L=j[f||"circle"];if(void 0===L?(t.hasImage=!0,t.shapeType="image",t.imageUrl=f.match(/^url\((.*?)\)$/)[1]):t.shapeType="path",!t.visible&&t.linkToParent){let e=t.linkToParent.fromNode;if(e){let{x:i=0,y:s=0,width:o=0,height:l=0}=e.shapeArgs||{};t.shapeArgs||(t.shapeArgs={}),t.hasImage||(0,p.extend)(t.shapeArgs,{d:L(i,s,o,l,x?{r:x}:void 0)}),(0,p.extend)(t.shapeArgs,{x:i,y:s}),t.plotX=e.plotX,t.plotY=e.plotY}}else t.plotX=m,t.plotY=y,t.shapeArgs={x:m,y:y,width:v,height:g,cursor:t.node.isLeaf?"default":"pointer"},t.hasImage||(t.shapeArgs.d=L(m,y,v,g,x?{r:x}:void 0));t.tooltipPos=e.inverted?[o-y-g/2,l-m-v/2]:[m+v/2,y]}}D.defaultOptions=(0,p.merge)(I.defaultOptions,{reversed:!1,marker:{radius:10,lineWidth:0,symbol:"circle",fillOpacity:1,states:{}},link:{color:"var(--highcharts-neutral-color-60)",cursor:"default",lineWidth:1,radius:10,type:"curved"},collapseButton:{onlyOnHover:!0,enabled:!0,lineWidth:1,x:0,y:0,height:18,width:18,shape:"circle",style:{cursor:"pointer",fontWeight:"bold",fontSize:"1em"}},fillSpace:!1,tooltip:{linkFormat:"{point.fromNode.id} → {point.toNode.id}",pointFormat:"{point.id}"},dataLabels:{defer:!0,linkTextPath:{attributes:{startOffset:"50%"}},enabled:!0,linkFormatter:()=>"",pointFormat:void 0,padding:5,style:{textOverflow:"none"}},nodeDistance:30,nodeWidth:void 0}),(0,p.extend)(D.prototype,{forceDL:!0,pointClass:C,NodeClass:x,LinkClass:S,isCartesian:!1}),v().registerSeriesType("treegraph",D);let z=c();return d.default})());
|
|
13
|
+
*/function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts.Color,t._Highcharts.Point,t._Highcharts.SVGElement,t._Highcharts.SVGRenderer,t._Highcharts.SeriesRegistry,t._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/treegraph",["highcharts/highcharts"],function(t){return e(t.Color,t.Point,t.SVGElement,t.SVGRenderer,t.SeriesRegistry,t)}):"object"==typeof exports?exports["highcharts/modules/treegraph"]=e(t._Highcharts.Color,t._Highcharts.Point,t._Highcharts.SVGElement,t._Highcharts.SVGRenderer,t._Highcharts.SeriesRegistry,t._Highcharts):t.Highcharts=e(t.Highcharts.Color,t.Highcharts.Point,t.Highcharts.SVGElement,t.Highcharts.SVGRenderer,t.Highcharts.SeriesRegistry,t.Highcharts)}("u"<typeof window?this:window,(t,e,i,s,o,l)=>(()=>{"use strict";var r,n={620(e){e.exports=t},260(t){t.exports=e},28(t){t.exports=i},540(t){t.exports=s},512(t){t.exports=o},944(t){t.exports=l}};let a={};function h(t){let e=a[t];if(void 0!==e)return e.exports;let i=a[t]={exports:{}};return n[t](i,i.exports,h),i.exports}h.n=t=>{let e=t&&t.__esModule?()=>t.default:()=>t;return h.d(e,{a:e}),e},h.d=(t,e)=>{for(var i in e)h.o(e,i)&&!h.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},h.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let d={};h.d(d,{default:()=>z});var p=h(944),c=h.n(p);function u(t){let{x1:e,y1:i,x2:s,y2:o,bendAt:l,width:r=0,inverted:n=!1,radius:a,parentVisible:h}=t;if(h){let t=l??r/2;return f([["M",e,i],["L",e+t*(n?-1:1),i],["L",e+t*(n?-1:1),o],["L",s,o]],a)}return[["M",e,i],["L",e,i],["C",e,i,e,o,e,o],["L",e,o],["C",e,i,e,o,e,o],["L",e,o]]}function f(t,e){let i=[];for(let s=0;s<t.length;s++){let o=t[s][1],l=t[s][2];if("number"==typeof o&&"number"==typeof l)if(0===s)i.push(["M",o,l]);else if(s===t.length-1)i.push(["L",o,l]);else if(e){let r=t[s-1],n=t[s+1];if(r&&n){let t=r[1],s=r[2],a=n[1],h=n[2];if("number"==typeof t&&"number"==typeof a&&"number"==typeof s&&"number"==typeof h&&t!==a&&s!==h){let r=t<a?1:-1,n=s<h?1:-1;i.push(["L",o-r*Math.min(Math.abs(o-t),e),l-n*Math.min(Math.abs(l-s),e)],["C",o,l,o,l,o+r*Math.min(Math.abs(o-a),e),l+n*Math.min(Math.abs(l-h),e)])}}}else i.push(["L",o,l])}return i}var g=h(512),v=h.n(g),b=h(540),m=h.n(b);let{seriesTypes:{treemap:{prototype:{NodeClass:y}}}}=v(),x=class extends y{constructor(){super(...arguments),this.mod=0,this.shift=0,this.change=0,this.children=[],this.preX=0,this.hidden=!1,this.wasVisited=!1,this.collapsed=!1}nextLeft(){return this.getLeftMostChild()||this.thread}nextRight(){return this.getRightMostChild()||this.thread}getAncestor(t,e){return t.ancestor.children[0]===this.children[0]?t.ancestor:e}getLeftMostSibling(){let t=this.getParent();if(t){for(let e of t.children)if(e&&e.point.visible)return e}}hasChildren(){let t=this.children;for(let e=0;e<t.length;e++)if(t[e].point.visible)return!0;return!1}getLeftSibling(){let t=this.getParent();if(t){let e=t.children;for(let t=this.relativeXPosition-1;t>=0;t--)if(e[t]&&e[t].point.visible)return e[t]}}getLeftMostChild(){let t=this.children;for(let e=0;e<t.length;e++)if(t[e].point.visible)return t[e]}getRightMostChild(){let t=this.children;for(let e=t.length-1;e>=0;e--)if(t[e].point.visible)return t[e]}getParent(){return this.parentNode}getFirstChild(){let t=this.children;for(let e=0;e<t.length;e++)if(t[e].point.visible)return t[e]}};var L=h(260),P=h.n(L);let{seriesTypes:{treemap:{prototype:{pointClass:k}}}}=v();class C extends k{constructor(){super(...arguments),this.dataLabelOnHidden=!0,this.isLink=!1,this.setState=P().prototype.setState}draw(){super.draw.apply(this,arguments);let t=this.graphic;t&&t.animate({visibility:this.visible?"inherit":"hidden"}),this.renderCollapseButton()}renderCollapseButton(){let t=this.series,e=this.graphic&&this.graphic.parentGroup,i=t.mapOptionsToLevel[this.node.level||0]||{},s=(0,p.merge)(t.options.collapseButton,i.collapseButton,this.options.collapseButton),{width:o,height:l,shape:r,style:n}=s,a=this.series.chart,h=this.visible&&(this.collapsed||!s.onlyOnHover||"hover"===this.state)?1:0;if(this.shapeArgs)if(this.collapseButtonOptions=s,this.collapseButton)if(this.node.children.length&&s.enabled){let{x:t,y:e}=this.getCollapseBtnPosition(s);this.collapseButton.attr({text:this.collapsed?"+":"-",rotation:90*!!a.inverted,rotationOriginX:o/2,rotationOriginY:l/2,visibility:this.visible?"inherit":"hidden"}).animate({x:t,y:e,opacity:h})}else this.collapseButton.destroy(),delete this.collapseButton;else{if(!this.node.children.length||!s.enabled)return;let{x:t,y:i}=this.getCollapseBtnPosition(s),d=s.fillColor||this.color||"var(--highcharts-neutral-color-20)";this.collapseButton=a.renderer.label(this.collapsed?"+":"-",t,i,r).attr({height:l-4,width:o-4,padding:2,fill:d,rotation:90*!!a.inverted,rotationOriginX:o/2,rotationOriginY:l/2,stroke:s.lineColor||"var(--highcharts-background-color)","stroke-width":s.lineWidth,"text-align":"center",align:"center",zIndex:1,opacity:h,visibility:this.visible?"inherit":"hidden"}).addClass("highcharts-tracker").addClass("highcharts-collapse-button").removeClass("highcharts-no-tooltip").css((0,p.merge)({color:"string"==typeof d?a.renderer.getContrast(d):"var(--highcharts-neutral-color-80)"},n)).add(e),this.collapseButton.element.point=this}}toggleCollapse(t){let e=this.series;this.update({collapsed:t??!this.collapsed},!1,void 0,!1),(0,p.fireEvent)(e,"toggleCollapse"),e.redraw()}destroy(){this.collapseButton&&(this.collapseButton.destroy(),delete this.collapseButton,this.collapseButton=void 0),this.linkToParent&&(this.linkToParent.destroy(),delete this.linkToParent),super.destroy.apply(this,arguments)}getCollapseBtnPosition(t){let e=this.series.chart.inverted,i=t.width,s=t.height,{x:o=0,y:l=0,width:r=0,height:n=0}=this.shapeArgs||{};return{x:o+t.x+(e?-(.3*s):r+-.3*i),y:l+n/2-s/2+t.y}}}(0,p.addEvent)(C,"mouseOut",function(){let t=this.collapseButton,e=this.collapseButtonOptions;t&&e?.onlyOnHover&&!this.collapsed&&t.animate({opacity:0})}),(0,p.addEvent)(C,"mouseOver",function(){this.collapseButton&&this.visible&&this.collapseButton.animate({opacity:1},this.series.options.states?.hover?.animation)}),(0,p.addEvent)(C,"click",function(){this.toggleCollapse()});var T=h(620),O=h.n(T);let M={getColor:function(t,e){let i,s,o,l,r,n,a=e.index,h=e.mapOptionsToLevel,d=e.parentColor,p=e.parentColorIndex,c=e.series,u=e.colors,f=e.siblings,g=c.points,v=c.chart.options.chart;if(t){let b;i=g[t.i],s=h[t.level]||{},i&&s.colorByPoint&&(l=i.index%(u?u.length:v.colorCount),o=u&&u[l]),c.chart.styledMode||(r=(i&&i.options.color)??(s&&s.color)??o??(d&&((b=s&&s.colorVariation)&&"brightness"===b.key&&a&&f?O().parse(d).brighten(b.to*(a/f)).get():d))??c.color),n=(i&&i.options.colorIndex)??(s&&s.colorIndex)??l??p??e.colorIndex}return{color:r,colorIndex:n}},getLevelOptions:function(t){let e,i,s,o,l,r,n={};if((0,p.isObject)(t))for(o=(0,p.isNumber)(t.from)?t.from:1,r=t.levels,i={},e=(0,p.isObject)(t.defaults)?t.defaults:{},(0,p.isArray)(r)&&(i=r.reduce((t,i)=>{let s,l,r;return(0,p.isObject)(i)&&(0,p.isNumber)(i.level)&&(l=(r=(0,p.merge)({},i)).levelIsConstant??e.levelIsConstant,delete r.levelIsConstant,delete r.level,s=i.level+(l?0:o-1),(0,p.isObject)(t[s])?(0,p.merge)(!0,t[s],r):t[s]=r),t},{})),l=(0,p.isNumber)(t.to)?t.to:1,s=0;s<=l;s++)n[s]=(0,p.merge)({},e,(0,p.isObject)(i[s])?i[s]:{});return n},getNodeWidth:function(t,e){let{chart:i,options:s}=t,{nodeDistance:o=0,nodeWidth:l=0}=s,{plotSizeX:r=1}=i;if("auto"===l){if("string"==typeof o&&/%$/.test(o))return r/(e+parseFloat(o)/100*(e-1));let t=Number(o);return(r+t)/(e||1)-t}return(0,p.relativeLength)(l,r)},setTreeValues:function t(e,i){let s=i.before,o=i.idRoot,l=i.mapIdToNode[o],r=!1!==i.levelIsConstant,n=i.points[e.i],a=n&&n.options||{},h=[],d=0;e.levelDynamic=e.level-(r?0:l.level),e.name=(n&&n.name)??"",e.visible=o===e.id||!0===i.visible,"function"==typeof s&&(e=s(e,i)),e.children.forEach((s,o)=>{let l=(0,p.extend)({},i);(0,p.extend)(l,{index:o,siblings:e.children.length,visible:e.visible}),s=t(s,l),h.push(s),s.visible&&(d+=s.val)});let c=a.value??d;return e.visible=c>=0&&(d>0||e.visible),e.children=h,e.childrenTotal=d,e.isLeaf=e.visible&&!d,e.val=c,e},updateRootId:function(t){let e,i;return(0,p.isObject)(t)&&(i=(0,p.isObject)(t.options)?t.options:{},e=t.rootNode??i.rootId??"",(0,p.isObject)(t.userOptions)&&(t.userOptions.rootId=e),t.rootNode=e),e}},{seriesTypes:{column:{prototype:{pointClass:N}}}}=v(),S=class extends N{constructor(t,e,i,s){super(t,e,i),this.dataLabelOnNull=!0,this.formatPrefix="link",this.isLink=!0,this.node={},this.formatPrefix="link",this.dataLabelOnNull=!0,s&&(this.fromNode=s.node.parentNode.point,this.visible=s.visible,this.toNode=s,this.id=this.toNode.id+"-"+this.fromNode.id)}update(t,e,i,s){let o={id:this.id,formatPrefix:this.formatPrefix};P().prototype.update.call(this,t,!this.isLink&&e,i,s),this.visible=this.toNode.visible,(0,p.extend)(this,o),(e??!0)&&this.series.chart.redraw(i)}},X=class t{static createDummyNode(t,e,i){let s=new x;return s.id=t.id+"-"+i,s.ancestor=t,s.children.push(e),s.parent=t.id,s.parentNode=t,s.point=e.point,s.level=e.level-i,s.relativeXPosition=e.relativeXPosition,s.visible=e.visible,t.children[e.relativeXPosition]=s,e.oldParentNode=t,e.relativeXPosition=0,e.parentNode=s,e.parent=s.id,s}calculatePositions(t){let e=t.nodeList;this.resetValues(e);let i=t.tree;i&&(this.calculateRelativeX(i,0),this.beforeLayout(e),this.firstWalk(i),this.secondWalk(i,-i.preX),this.afterLayout(e))}beforeLayout(e){for(let i of e)for(let e of i.children)if(e&&e.level-i.level>1){let s=e.level-i.level-1;for(;s>0;)e=t.createDummyNode(i,e,s),s--}}resetValues(t){for(let e of t)e.mod=0,e.ancestor=e,e.shift=0,e.thread=void 0,e.change=0,e.preX=0}calculateRelativeX(t,e){let i=t.children;for(let t=0,e=i.length;t<e;++t)this.calculateRelativeX(i[t],t);t.relativeXPosition=e}firstWalk(t){let e;if(t.hasChildren()){let i=t.getLeftMostChild();for(let e of t.children)this.firstWalk(e),i=this.apportion(e,i);this.executeShifts(t);let s=t.getLeftMostChild(),o=t.getRightMostChild(),l=(s.preX+o.preX)/2;(e=t.getLeftSibling())?(t.preX=e.preX+1,t.mod=t.preX-l):t.preX=l}else(e=t.getLeftSibling())?(t.preX=e.preX+1,t.mod=t.preX):t.preX=0}secondWalk(t,e){for(let i of(t.yPosition=t.preX+e,t.xPosition=t.point?.x??t.level,t.children))this.secondWalk(i,e+t.mod)}executeShifts(t){let e=0,i=0;for(let s=t.children.length-1;s>=0;s--){let o=t.children[s];o.preX+=e,o.mod+=e,i+=o.change,e+=o.shift+i}}apportion(t,e){let i=t.getLeftSibling();if(i){let s=t,o=t,l=i,r=s.getLeftMostSibling(),n=s.mod,a=o.mod,h=l.mod,d=r.mod;for(;l&&l.nextRight()&&s&&s.nextLeft();){l=l.nextRight(),r=r.nextLeft(),s=s.nextLeft(),(o=o.nextRight()).ancestor=t;let i=l.preX+h-(s.preX+n)+1;i>0&&(this.moveSubtree(t.getAncestor(l,e),t,i),n+=i,a+=i),h+=l.mod,n+=s.mod,d+=r.mod,a+=o.mod}l&&l.nextRight()&&!o.nextRight()&&(o.thread=l.nextRight(),o.mod+=h-a),s&&s.nextLeft()&&!r.nextLeft()&&(r.thread=s.nextLeft(),r.mod+=n-d),e=t}return e}moveSubtree(t,e,i){let s=e.relativeXPosition-t.relativeXPosition;e.change-=i/s,e.shift+=i,e.preX+=i,e.mod+=i,t.change+=i/s}afterLayout(t){for(let e of t)e.oldParentNode&&(e.relativeXPosition=e.parentNode.relativeXPosition,e.parent=e.oldParentNode.parent,e.parentNode=e.oldParentNode,e.oldParentNode.children.splice(e.relativeXPosition,1,e),e.oldParentNode=void 0)}};var w=h(28),B=h.n(w);let{composed:A,deg2rad:R}=c(),{getLinkPath:H}={applyRadius:f,getLinkPath:{default:u,orthogonal:u,straight:function(t){let{x1:e,y1:i,x2:s,y2:o,width:l=0,inverted:r=!1,parentVisible:n}=t;return n?[["M",e,i],["L",e+l*(r?-1:1),o],["L",s,o]]:[["M",e,i],["L",e,o],["L",e,o]]},curved:function(t){let{x1:e,y1:i,x2:s,y2:o,offset:l=0,width:r=0,inverted:n=!1,parentVisible:a}=t;return a?[["M",e,i],["C",e+l,i,e-l+r*(n?-1:1),o,e+r*(n?-1:1),o],["L",s,o]]:[["M",e,i],["C",e,i,e,o,e,o],["L",s,o]]}}},{series:{prototype:W},seriesTypes:{treemap:I,column:E}}=v(),{prototype:{symbols:V}}=m(),{getLevelOptions:_,getNodeWidth:j}=M;r=B(),(0,p.pushUnique)(A,"TextPath")&&((0,p.addEvent)(r,"afterGetBBox",function(t){let e=t.bBox,i=this.element?.querySelector("textPath");if(i){let t=[],{b:s,h:o}=this.renderer.fontMetrics(this.element),l=o-s,r=RegExp('(<tspan>|<tspan(?!\\sclass="highcharts-br")[^>]*>|<\\/tspan>)',"g"),n=i.innerHTML.replace(r,"").split(/<tspan class="highcharts-br"[^>]*>/),a=n.length,h=(t,e)=>{let{x:o,y:r}=e,n=(i.getRotationOfChar(t)-90)*R,a=Math.cos(n),h=Math.sin(n);return[[o-l*a,r-l*h],[o+s*a,r+s*h]]};for(let e=0,s=0;s<a;s++){let o=n[s].length;for(let l=0;l<o;l+=5)try{let o=e+l+s,[r,n]=h(o,i.getStartPositionOfChar(o));0===l?(t.push(n),t.push(r)):(0===s&&t.unshift(n),s===a-1&&t.push(r))}catch{break}e+=o-1;try{let o=e+s,l=i.getEndPositionOfChar(o),[r,n]=h(o,l);t.unshift(n),t.unshift(r)}catch{break}}t.length&&t.push(t[0].slice()),e.polygon=t}return e}),(0,p.addEvent)(r,"beforeAddingDataLabel",function(t){let e=t.labelOptions,i=t.point,s=e[i.formatPrefix+"TextPath"]||e.textPath;s&&!e.useHTML&&(this.setTextPath(i.getDataLabelPath?.(this)||i.graphic,s),i.dataLabelPath&&!s.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy()))}),r.prototype.setTextPath=r.prototype.setTextPath??function(t,e){let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:l,enabled:r}=(0,p.merge)({enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);if(t=t||o&&o.path,o?.undo(),t&&r){let e=(0,p.addEvent)(s,"afterModifyTree",e=>{if(t&&r){let o=t.attr("id");o||t.attr("id",o=(0,p.uniqueKey)());let r={x:0,y:0};(0,p.defined)(l.dx)&&(r.dx=l.dx,delete l.dx),(0,p.defined)(l.dy)&&(r.dy=l.dy,delete l.dy),s.attr(r),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let n=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:(0,p.extend)(l,{"text-anchor":l.textAnchor,href:`${i}#${o}`}),children:n}}});s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this});class D extends I{constructor(){super(...arguments),this.nodeList=[],this.links=[]}init(){super.init.apply(this,arguments),this.layoutAlgorithm=new X;let t=this,e=this.chart.labelCollectors;e.some(t=>"collectorFunc"===t.name)||e.push(function(){let e=[];if(t.options.dataLabels&&!(0,p.splat)(t.options.dataLabels)[0].allowOverlap)for(let i of t.links||[])i.dataLabel&&e.push(i.dataLabel);return e})}getLayoutModifiers(){let t=this.chart,e=this,i=t.plotSizeX,s=t.plotSizeY,o=e.options.link?.lineWidth||0,l=(0,p.arrayMax)(this.points.map(t=>t.node.xPosition)),r=1/0,n=-1/0,a=1/0,h=-1/0,d=0,c=0,u=0,f=0;this.points.forEach(t=>{if(this.options.fillSpace&&!t.visible)return;let g=t.node,v=e.mapOptionsToLevel[t.node.level]||{},b=(0,p.merge)(this.options.marker,v.marker,t.options.marker),m=b.width??j(this,l),y=(0,p.relativeLength)(b.radius||0,Math.min(i,s)),x=Math.max(b.lineWidth||0,o),L=b.symbol,P="circle"!==L&&b.height?(0,p.relativeLength)(b.height,s):2*y,k="circle"!==L&&m?(0,p.relativeLength)(m,i):2*y;g.nodeSizeX=k,g.nodeSizeY=P,g.xPosition<=r&&(r=g.xPosition,c=Math.max(k+x,c)),g.xPosition>=n&&(n=g.xPosition,d=Math.max(k+x,d)),g.yPosition<=a&&(a=g.yPosition,f=Math.max(P+x,f)),g.yPosition>=h&&(h=g.yPosition,u=Math.max(P+x,u))});let g=h===a?1:(s-(f+u)/2)/(h-a),v=h===a?s/2:-g*a+f/2,b=n===r?1:(i-(d+d)/2)/(n-r),m=n===r?i/2:-b*r+c/2;return{ax:b,bx:m,ay:g,by:v}}getLinks(){let t=this,e=[];return this.data.forEach(i=>{let s=t.mapOptionsToLevel[i.node.level??0]||{};if(i.node.parent){let o=(0,p.merge)(s,i.options);if(!i.linkToParent||i.linkToParent.condemned){let e=new t.LinkClass(t,o,void 0,i);i.linkToParent=e}else i.collapsed=i.collapsed??(this.mapOptionsToLevel[i.node.level]||{}).collapsed,i.linkToParent.visible=i.linkToParent.toNode.visible;i.linkToParent.index=e.push(i.linkToParent)-1}else i.linkToParent&&(t.links.splice(i.linkToParent.index),i.linkToParent.destroy(),delete i.linkToParent)}),e}buildTree(t,e,i,s,o){let l=this.points[e];return i=l?.level??i,super.buildTree.call(this,t,e,i,s,o)}markerAttribs(){return{}}setCollapsedStatus(t,e){let i=t.point;i&&(i.collapsed=i.collapsed??(this.mapOptionsToLevel[t.level]||{}).collapsed,i.visible=e,e=!1!==e&&!i.collapsed),t.children.forEach(t=>{this.setCollapsedStatus(t,e)})}drawTracker(){E.prototype.drawTracker.apply(this,arguments),E.prototype.drawTracker.call(this,this.links)}translate(){let t=this.options,e=M.updateRootId(this),i;W.translate.call(this);let s=this.tree=this.getTree();i=this.nodeMap[e],""===e||i&&i.children.length||(this.setRootNode("",!1),e=this.rootNode,i=this.nodeMap[e]),this.mapOptionsToLevel=_({from:i.level+1,levels:t.levels,to:s.height,defaults:{levelIsConstant:this.options.levelIsConstant,colorByPoint:t.colorByPoint}}),this.setCollapsedStatus(s,!0),this.links=this.getLinks(),this.setTreeValues(s),this.layoutAlgorithm.calculatePositions(this),this.layoutModifier=this.getLayoutModifiers(),this.points.forEach(t=>{this.translateNode(t)}),this.points.forEach(t=>{t.linkToParent&&this.translateLink(t.linkToParent)}),t.colorByPoint||this.setColorRecursive(this.tree)}translateLink(t){let e=t.fromNode,i=t.toNode,s=this.options.link?.lineWidth||0,o=this.options.link?.curveFactor??.5,l=i.x!==i.node.level||e.x!==e.node.level,r=t.options.link?.type??this.options.link?.type??"default";if(e.shapeArgs&&i.shapeArgs){let n=e.shapeArgs.width||0,a=this.chart.inverted,h=(0,p.crisp)((e.shapeArgs.y||0)+(e.shapeArgs.height||0)/2,s),d=(0,p.crisp)((i.shapeArgs.y||0)+(i.shapeArgs.height||0)/2,s),c=(0,p.crisp)((e.shapeArgs.x||0)+n,s),u=(0,p.crisp)(i.shapeArgs.x||0,s);a&&(c-=Math.round(n),u+=Math.round(i.shapeArgs.width||0));let f=i.node.xPosition-e.node.xPosition,g=Math.abs(u-c)+n,v=(l?g:g/f)-n,b=(0,p.crisp)((u+c)/2,s),m=(0,p.relativeLength)(t.options.link?.bendAt??this.options.link?.bendAt??"50%",g-n);t.shapeType="path",t.plotX=b,t.plotY=d,t.shapeArgs={d:H[r]({x1:c,y1:h,x2:u,y2:d,width:v,offset:v*o*(a?-1:1),inverted:a,parentVisible:i.visible,radius:this.options.link?.radius,bendAt:m})},t.dlBox={x:(c+u)/2,y:(h+d)/2,height:s,width:0},t.tooltipPos=a?[(this.chart.plotSizeY||0)-t.dlBox.y,(this.chart.plotSizeX||0)-t.dlBox.x]:[t.dlBox.x,t.dlBox.y]}}drawNodeLabels(t){let e,i,s=this.mapOptionsToLevel;for(let o of t){if(i=s[o.node.level],e={style:{}},i&&i.dataLabels&&(e=(0,p.merge)(e,i.dataLabels),this.hasDataLabels=()=>!0),o.shapeArgs&&this.options.dataLabels){let t={},{width:i=0,height:s=0}=o.shapeArgs;this.chart.inverted&&([i,s]=[s,i]),(0,p.splat)(this.options.dataLabels)[0].style?.width||(t.width=`${i}px`),(0,p.splat)(this.options.dataLabels)[0].style?.lineClamp||(t.lineClamp=Math.floor(s/16)),(0,p.extend)(e.style,t),o.dataLabel?.css(t)}o.dlOptions=(0,p.merge)(e,o.options.dataLabels)}W.drawDataLabels.call(this,t)}alignDataLabel(t,e){let i=t.visible;t.visible=!0,super.alignDataLabel.apply(this,arguments),e.animate({opacity:+(!1!==i)},void 0,function(){i||e.hide()}),t.visible=i}drawDataLabels(){this.options.dataLabels&&(this.options.dataLabels=(0,p.splat)(this.options.dataLabels),this.drawNodeLabels(this.points),W.drawDataLabels.call(this,this.links))}destroy(){if(this.links){for(let t of this.links)t.destroy(!0);this.links.length=0}return W.destroy.apply(this,arguments)}pointAttribs(t,e){let i=t&&this.mapOptionsToLevel[t.node.level]||{},s=t?.options||{},o=i.states?.[e||"normal"]||{};t&&(t.options.marker=(0,p.merge)(this.options.marker,i.marker,t.options.marker));let l=o.link?.color??s.link?.color??i.link?.color??this.options.link?.color,r=o.link?.lineWidth??s.link?.lineWidth??i.link?.lineWidth??this.options.link?.lineWidth,n=W.pointAttribs.call(this,t,e);return t&&(t.isLink&&(n.stroke=l,n["stroke-width"]=r,delete n.fill),t.visible||(n.opacity=0)),n}drawPoints(){I.prototype.drawPoints.apply(this,arguments),E.prototype.drawPoints.call(this,this.links)}translateNode(t){let e=this.chart,{node:i,plotX:s=0}=t,o=e.plotSizeY,l=e.plotSizeX,{ax:r,bx:n,ay:a,by:h}=this.layoutModifier,d=this.isCartesian?e.inverted?l-s:s:r*i.xPosition+n,c=a*i.yPosition+h,u=this.mapOptionsToLevel[i.level]||{},f=(0,p.merge)(this.options.marker,u.marker,t.options.marker).symbol,g=i.nodeSizeY,v=i.nodeSizeX,b=this.options.reversed,m=i.x=e.inverted?l-v/2-d:d-v/2,y=i.y=b?c-g/2:o-c-g/2,x=t.options.borderRadius??u.borderRadius??this.options.borderRadius,L=V[f||"circle"];if(void 0===L?(t.hasImage=!0,t.shapeType="image",t.imageUrl=f.match(/^url\((.*?)\)$/)[1]):t.shapeType="path",!t.visible&&t.linkToParent){let e=t.linkToParent.fromNode;if(e){let{x:i=0,y:s=0,width:o=0,height:l=0}=e.shapeArgs||{};t.shapeArgs||(t.shapeArgs={}),t.hasImage||(0,p.extend)(t.shapeArgs,{d:L(i,s,o,l,x?{r:x}:void 0)}),(0,p.extend)(t.shapeArgs,{x:i,y:s}),t.plotX=e.plotX,t.plotY=e.plotY}}else t.plotX=m,t.plotY=y,t.shapeArgs={x:m,y:y,width:v,height:g,cursor:t.node.isLeaf?"default":"pointer"},t.hasImage||(t.shapeArgs.d=L(m,y,v,g,x?{r:x}:void 0));t.tooltipPos=e.inverted?[o-y-g/2,l-m-v/2]:[m+v/2,y]}}D.defaultOptions=(0,p.merge)(I.defaultOptions,{reversed:!1,marker:{radius:10,lineWidth:0,symbol:"circle",fillOpacity:1,states:{}},link:{color:"var(--highcharts-neutral-color-60)",cursor:"default",lineWidth:1,radius:10,type:"curved"},collapseButton:{onlyOnHover:!0,enabled:!0,lineWidth:1,x:0,y:0,height:18,width:18,shape:"circle",style:{cursor:"pointer",fontWeight:"bold",fontSize:"1em"}},fillSpace:!1,tooltip:{linkFormat:"{point.fromNode.id} → {point.toNode.id}",pointFormat:"{point.id}"},dataLabels:{defer:!0,linkTextPath:{attributes:{startOffset:"50%"}},enabled:!0,linkFormatter:()=>"",pointFormat:void 0,padding:5,style:{textOverflow:"none"}},nodeDistance:30,nodeWidth:void 0}),(0,p.extend)(D.prototype,{forceDL:!0,pointClass:C,NodeClass:x,LinkClass:S,isCartesian:!1}),v().registerSeriesType("treegraph",D);let z=c();return d.default})());
|
package/modules/treegraph.src.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.
|
|
3
|
+
* @license Highcharts JS v13.1.1 (2026-09-20)
|
|
4
4
|
* Treegraph chart series type
|
|
5
5
|
* @module highcharts/modules/treegraph
|
|
6
6
|
* @requires highcharts
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
*/
|
|
15
15
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
16
16
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
17
|
-
module.exports = factory(root["_Highcharts"], root["_Highcharts"]["
|
|
17
|
+
module.exports = factory(root["_Highcharts"]["Color"], root["_Highcharts"]["Point"], root["_Highcharts"]["SVGElement"], root["_Highcharts"]["SVGRenderer"], root["_Highcharts"]["SeriesRegistry"], root["_Highcharts"]);
|
|
18
18
|
else if(typeof define === 'function' && define.amd)
|
|
19
|
-
define("highcharts/modules/treegraph", ["highcharts/highcharts"], function (amd1) {return factory(amd1
|
|
19
|
+
define("highcharts/modules/treegraph", ["highcharts/highcharts"], function (amd1) {return factory(amd1["Color"],amd1["Point"],amd1["SVGElement"],amd1["SVGRenderer"],amd1["SeriesRegistry"],amd1);});
|
|
20
20
|
else if(typeof exports === 'object')
|
|
21
|
-
exports["highcharts/modules/treegraph"] = factory(root["_Highcharts"], root["_Highcharts"]["
|
|
21
|
+
exports["highcharts/modules/treegraph"] = factory(root["_Highcharts"]["Color"], root["_Highcharts"]["Point"], root["_Highcharts"]["SVGElement"], root["_Highcharts"]["SVGRenderer"], root["_Highcharts"]["SeriesRegistry"], root["_Highcharts"]);
|
|
22
22
|
else
|
|
23
|
-
root["Highcharts"] = factory(root["Highcharts"], root["Highcharts"]["
|
|
24
|
-
})(typeof window === 'undefined' ? this : window, (
|
|
23
|
+
root["Highcharts"] = factory(root["Highcharts"]["Color"], root["Highcharts"]["Point"], root["Highcharts"]["SVGElement"], root["Highcharts"]["SVGRenderer"], root["Highcharts"]["SeriesRegistry"], root["Highcharts"]);
|
|
24
|
+
})(typeof window === 'undefined' ? this : window, (__WEBPACK_EXTERNAL_MODULE__620__, __WEBPACK_EXTERNAL_MODULE__260__, __WEBPACK_EXTERNAL_MODULE__28__, __WEBPACK_EXTERNAL_MODULE__540__, __WEBPACK_EXTERNAL_MODULE__512__, __WEBPACK_EXTERNAL_MODULE__944__) => {
|
|
25
25
|
return /******/ (() => { // webpackBootstrap
|
|
26
26
|
/******/ "use strict";
|
|
27
27
|
/******/ var __webpack_modules__ = ({
|
|
@@ -96,48 +96,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__944__;
|
|
|
96
96
|
/******/
|
|
97
97
|
/************************************************************************/
|
|
98
98
|
/******/ /* webpack/runtime/compat get default export */
|
|
99
|
-
/******/
|
|
100
|
-
/******/
|
|
101
|
-
/******/
|
|
102
|
-
/******/
|
|
103
|
-
/******/
|
|
104
|
-
/******/
|
|
105
|
-
/******/
|
|
106
|
-
/******/
|
|
107
|
-
/******/ };
|
|
108
|
-
/******/ })();
|
|
99
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
100
|
+
/******/ __webpack_require__.n = (module) => {
|
|
101
|
+
/******/ const getter = module && module.__esModule ?
|
|
102
|
+
/******/ () => (module['default']) :
|
|
103
|
+
/******/ () => (module);
|
|
104
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
105
|
+
/******/ return getter;
|
|
106
|
+
/******/ };
|
|
109
107
|
/******/
|
|
110
108
|
/******/ /* webpack/runtime/define property getters */
|
|
111
|
-
/******/
|
|
112
|
-
/******/
|
|
113
|
-
/******/
|
|
114
|
-
/******/ if(
|
|
115
|
-
/******/
|
|
116
|
-
/******/ while(i < definition.length) {
|
|
117
|
-
/******/ var key = definition[i++];
|
|
118
|
-
/******/ var binding = definition[i++];
|
|
119
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
120
|
-
/******/ if(binding === 0) {
|
|
121
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
122
|
-
/******/ } else {
|
|
123
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
124
|
-
/******/ }
|
|
125
|
-
/******/ } else if(binding === 0) { i++; }
|
|
126
|
-
/******/ }
|
|
127
|
-
/******/ } else {
|
|
128
|
-
/******/ for(var key in definition) {
|
|
129
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
130
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
131
|
-
/******/ }
|
|
132
|
-
/******/ }
|
|
109
|
+
/******/ // define getter/value functions for harmony exports
|
|
110
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
111
|
+
/******/ for(var key in definition) {
|
|
112
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
113
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
133
114
|
/******/ }
|
|
134
|
-
/******/ }
|
|
135
|
-
/******/ }
|
|
115
|
+
/******/ }
|
|
116
|
+
/******/ };
|
|
136
117
|
/******/
|
|
137
118
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
138
|
-
/******/ (
|
|
139
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
140
|
-
/******/ })();
|
|
119
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
141
120
|
/******/
|
|
142
121
|
/************************************************************************/
|
|
143
122
|
let __webpack_exports__ = {};
|
|
@@ -234,7 +213,7 @@ function getCurvedPath(pathParams) {
|
|
|
234
213
|
}
|
|
235
214
|
/**
|
|
236
215
|
* General function to apply corner radius to a path
|
|
237
|
-
* @
|
|
216
|
+
* @internal
|
|
238
217
|
*/
|
|
239
218
|
function applyRadius(path, r) {
|
|
240
219
|
const d = [];
|
|
@@ -287,10 +266,12 @@ function applyRadius(path, r) {
|
|
|
287
266
|
}
|
|
288
267
|
return d;
|
|
289
268
|
}
|
|
269
|
+
/** @internal */
|
|
290
270
|
const PathUtilities = {
|
|
291
271
|
applyRadius,
|
|
292
272
|
getLinkPath
|
|
293
273
|
};
|
|
274
|
+
/** @internal */
|
|
294
275
|
/* harmony default export */ const Series_PathUtilities = (PathUtilities);
|
|
295
276
|
|
|
296
277
|
// EXTERNAL MODULE: external {"amd":["highcharts/highcharts","SeriesRegistry"],"commonjs":["highcharts","SeriesRegistry"],"commonjs2":["highcharts","SeriesRegistry"],"root":["Highcharts","SeriesRegistry"]}
|
|
@@ -646,7 +627,7 @@ class TreegraphPoint extends TreemapPoint {
|
|
|
646
627
|
};
|
|
647
628
|
}
|
|
648
629
|
}
|
|
649
|
-
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.addEvent)(TreegraphPoint, 'mouseOut', function () {
|
|
630
|
+
;(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.addEvent)(TreegraphPoint, 'mouseOut', function () {
|
|
650
631
|
const btn = this.collapseButton, btnOptions = this.collapseButtonOptions;
|
|
651
632
|
if (btn && btnOptions?.onlyOnHover && !this.collapsed) {
|
|
652
633
|
btn.animate({ opacity: 0 });
|
|
@@ -2218,7 +2199,7 @@ class TreegraphSeries extends TreemapSeries {
|
|
|
2218
2199
|
if (!(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.splat)(series.options.dataLabels)[0].style?.lineClamp) {
|
|
2219
2200
|
css.lineClamp = Math.floor(height / 16);
|
|
2220
2201
|
}
|
|
2221
|
-
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.extend)(options.style, css);
|
|
2202
|
+
;(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.extend)(options.style, css);
|
|
2222
2203
|
point.dataLabel?.css(css);
|
|
2223
2204
|
}
|
|
2224
2205
|
// Merge custom options with point options
|
|
@@ -2339,7 +2320,7 @@ class TreegraphSeries extends TreemapSeries {
|
|
|
2339
2320
|
d: symbolFn(x, y, width, height, borderRadius ? { r: borderRadius } : void 0)
|
|
2340
2321
|
});
|
|
2341
2322
|
}
|
|
2342
|
-
(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.extend)(point.shapeArgs, { x, y });
|
|
2323
|
+
;(0,highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_.extend)(point.shapeArgs, { x, y });
|
|
2343
2324
|
point.plotX = parentNode.plotX;
|
|
2344
2325
|
point.plotY = parentNode.plotY;
|
|
2345
2326
|
}
|
package/modules/treegrid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!/**
|
|
2
|
-
* Highcharts Gantt JS v13.
|
|
2
|
+
* Highcharts Gantt JS v13.1.1 (2026-09-20)
|
|
3
3
|
* @module highcharts/modules/treegrid
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
*
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
*
|
|
11
11
|
* A commercial license may be required depending on use,
|
|
12
12
|
* see www.highcharts.com/license
|
|
13
|
-
*/function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts,e._Highcharts.StackItem,e._Highcharts.Axis,e._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts/highcharts"],function(e){return t(e,e.StackItem,e.Axis,e.Color)}):"object"==typeof exports?exports["highcharts/modules/treegrid"]=t(e._Highcharts,e._Highcharts.StackItem,e._Highcharts.Axis,e._Highcharts.Color):e.Highcharts=t(e.Highcharts,e.Highcharts.StackItem,e.Highcharts.Axis,e.Highcharts.Color)}("u"<typeof window?this:window,(e,t,i,s)=>(()=>{"use strict";let r;var o,n,a,l={532(e){e.exports=i},620(e){e.exports=s},184(e){e.exports=t},944(t){t.exports=e}};let d={};function h(e){let t=d[e];if(void 0!==t)return t.exports;let i=d[e]={exports:{}};return l[e](i,i.exports,h),i.exports}h.n=e=>{let t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{if(Array.isArray(t))for(var i=0;i<t.length;){var s=t[i++],r=t[i++];h.o(e,s)?0===r&&i++:0===r?Object.defineProperty(e,s,{enumerable:!0,value:t[i++]}):Object.defineProperty(e,s,{enumerable:!0,get:r})}else for(var s in t)h.o(t,s)&&!h.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let c={};h.d(c,{default:()=>er});var f=h(944),p=h.n(f),u=h(184),m=h.n(u);!function(e){function t(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){Object.keys(this.options.breaks?.[0]||{}).length&&(this.options.ordinal=!1)}function s(){let e=this.brokenAxis;if(e?.hasBreaks){let t=this.tickPositions,i=this.tickPositions.info,s=[];for(let i=0;i<t.length;i++)e.isInAnyBreak(t[i])||s.push(t[i]);this.tickPositions=s,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new d(this))}function o(){let{isDirty:e,options:{connectNulls:t},points:i,xAxis:s,yAxis:r}=this;if(e){let e=i.length;for(;e--;){let o=i[e],n=(null!==o.y||!1!==t)&&(s?.brokenAxis?.isInAnyBreak(o.x,!0)||r?.brokenAxis?.isInAnyBreak(o.y,!0));o.visible=!n&&!1!==o.options.visible}}}function n(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,this.pointArrayMap??["y"])}function a(e,t){let i,s,r,o=this,n=o.points;if(e?.brokenAxis?.hasBreaks){let a=e.brokenAxis;t.forEach(function(t){i=a?.breakArray||[],s=e.isXAxis?e.min:o.options.threshold??e.min,n.forEach(function(o){r=o["stack"+t.toUpperCase()]??o[t],i.forEach(function(t){if((0,f.isNumber)(s)&&(0,f.isNumber)(r)){let i="";s<t.from&&r>t.to||s>t.from&&r<t.from?i="pointBreak":(s<t.from&&r>t.from&&r<t.to||s>t.from&&r>t.to&&r<t.from)&&(i="pointInBreak"),i&&(0,f.fireEvent)(e,i,{point:o,brk:t})}})})})}}function l(){let e=this.currentDataGrouping,t=e?.gapSize,i=this.points.slice(),s=this.yAxis,r=this.options.gapSize,o=i.length-1;if(r&&o>0){let e,n;for("value"!==this.options.gapUnit&&(r*=this.basePointRange),t&&t>r&&t>=this.basePointRange&&(r=t);o--;)if(n&&!1!==n.visible||(n=i[o+1]),e=i[o],!1!==n.visible&&!1!==e.visible){if(n.x-e.x>r){let t=(e.x+n.x)/2;i.splice(o+1,0,{isNull:!0,x:t}),s.stacking&&this.options.stacking&&((s.stacking.stacks[this.stackKey][t]=new(m())(s,s.options.stackLabels,!1,t,this.stack??"")).total=0)}n=e}}return this.getGraphPath(i)}e.compose=function(e,d){if(!e.keepProps.includes("brokenAxis")){e.keepProps.push("brokenAxis"),(0,f.addEvent)(e,"init",r),(0,f.addEvent)(e,"afterInit",t),(0,f.addEvent)(e,"afterSetTickPositions",s),(0,f.addEvent)(e,"afterSetOptions",i);let h=d.prototype;h.drawBreaks=a,h.gappedPath=l,(0,f.addEvent)(d,"afterGeneratePoints",o),(0,f.addEvent)(d,"afterRender",n)}return e};class d{static isInBreak(e,t){let i=e.repeat||1/0,s=e.from,r=e.to-e.from,o=t>=s?(t-s)%i:i-(s-t)%i;return e.inclusive?o<=r:o<r&&0!==o}static lin2Val(e){let t=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,f.isNumber)(e))return e;let r=e;if(e>t)for(let e of s)if(e.from>r)break;else e.to<=r&&e.to>t?r+=e.len:d.isInBreak(e,r)&&(r+=e.len);else if(e<t)for(let e of s)if(e.from>t)break;else e.from>=r&&e.from<t?r-=e.len:d.isInBreak(e,r)&&(r-=e.len);return r}static val2Lin(e){let t=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,f.isNumber)(e))return e;let r=e;if(e>t){for(let i of s)if(i.to<=e&&i.to>t)r-=i.len;else if(i.from>e)break;else if(d.isInBreak(i,e)){r-=e-i.from;break}}else if(e<t){for(let i of s)if(i.from>=e&&i.from<t)r+=i.len;else if(i.from>t)break;else if(d.isInBreak(i,e)){r+=i.to-e;break}}return r}constructor(e){this.axis=e}findBreakAt(e,t){return(0,f.find)(t,function(t){return t.from<e&&e<t.to})}isInAnyBreak(e,t){let i=this.axis,s=i.options.breaks||[],r=s.length,o,n,a;if(r&&(0,f.isNumber)(e)){for(;r--;)d.isInBreak(s[r],e)&&(o=!0,n||(n=s[r].showPoints??!i.isXAxis));a=o&&t?o&&!n:o}return a}setBreaks(e,t){let i=this,s=i.axis,r=s.chart.time,o=(0,f.isArray)(e)&&!!Object.keys(e?.[0]||{}).length;s.isDirty=(i.hasBreaks??!1)!==o,i.hasBreaks=o,e?.forEach(e=>{e.from=r.parse(e.from)||0,e.to=r.parse(e.to)||0}),e!==s.options.breaks&&(s.options.breaks=s.userOptions.breaks=e),s.forceRedraw=!0,s.series.forEach(function(e){e.isDirty=!0}),o||s.val2lin!==d.val2Lin||(delete s.val2lin,delete s.lin2val),o&&(s.userOptions.ordinal=!1,s.lin2val=d.lin2Val,s.val2lin=d.val2Lin,s.setExtremes=function(e,t,r,o,n){if(i.hasBreaks&&!s.treeGrid?.tree){let s,r=this.brokenAxis.breakArray||[];for(;s=i.findBreakAt(e,r);)e=s.to;for(;s=i.findBreakAt(t,r);)t=s.from;t<e&&(t=e)}s.constructor.prototype.setExtremes.call(this,e,t,r,o,n)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),i.unitLength=void 0,i.hasBreaks){let e=s.options.breaks||[],t=[],r=[],o=s.pointRangePadding??0,n=0,a,l,h=s.userMin??s.min,c=s.userMax??s.max,p,u,m=(0,f.isNumber)(h)?Math.min(s.dataMin??h,h):s.dataMin??h,g=(0,f.isNumber)(c)?Math.max(s.dataMax??c,c):s.dataMax??c;s.treeGrid?.tree||e.forEach(function(e){l=e.repeat||1/0,(0,f.isNumber)(h)&&(0,f.isNumber)(c)&&(d.isInBreak(e,h)&&(h+=e.to%l-h%l),d.isInBreak(e,c)&&(c-=c%l-e.from%l))}),(0,f.isNumber)(m)&&(0,f.isNumber)(g)&&e.forEach(function(e){for(p=e.from,l=e.repeat||1/0;p-l>m;)p-=l;for(;p<m;)p+=l;for(u=p;u<g;u+=l)t.push({value:u,move:"in"}),t.push({value:u+e.to-e.from,move:"out",size:e.breakSize})}),t.sort(function(e,t){return e.value===t.value?("in"!==e.move)-("in"!==t.move):e.value-t.value}),a=0,p=m,t.forEach(e=>{1===(a+="in"===e.move?1:-1)&&"in"===e.move&&(p=e.value),0===a&&(0,f.isNumber)(p)&&(r.push({from:p,to:e.value,len:e.value-p-(e.size||0)}),(0,f.isNumber)(h)&&(0,f.isNumber)(c)&&p<c&&e.value>h&&(n+=e.value-p-(e.size||0)))}),i.breakArray=r,(0,f.isNumber)(h)&&(0,f.isNumber)(c)&&(0,f.isNumber)(s.min)&&(i.unitLength=c-h-n+o,(0,f.fireEvent)(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:i.unitLength&&(s.transA*=(c-s.min+o)/i.unitLength),o&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=h,s.max=c)}}),(t??!0)&&s.chart.redraw()}}e.Additions=d}(n||(n={}));let g=n;var b=h(532),k=h.n(b);let{dateFormats:x}=p();function v(e){return(0,f.isObject)(e,!0)}function y(e,t){let i={width:0,height:0};if(t.forEach(function(t){let s=e[t],r=0,o=0,n;v(s)&&(r=(n=v(s.label)?s.label:{}).getBBox?n.getBBox().height:0,n.textStr&&!(0,f.isNumber)(n.textPxLength)&&(n.textPxLength=n.getBBox().width),o=(0,f.isNumber)(n.textPxLength)?Math.round(n.textPxLength):0,n.textStr&&(o=Math.round(n.getBBox().width)),i.height=Math.max(r,i.height),i.width=Math.max(o,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){let e=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(e-1)}return i}function P(e){let{grid:t}=this,i=3===this.side;if(i||e.apply(this),!t?.isColumn){let e=t?.columns||[];i&&(e=e.slice().reverse()),e.forEach(e=>{e.getOffset()})}i&&e.apply(this)}function O(e){if(!0===(this.options.grid||{}).enabled){let{axisTitle:t,height:i,horiz:s,left:r,offset:o,opposite:n,options:l,top:d,width:h}=this,c=this.tickSize(),f=t?.getBBox().width,p=l.title,{x:u,y:m}=p,g=p.margin??(s?5:10),b=t?this.chart.renderer.fontMetrics(t).f:0,k=(s?d+i:r)+(s?1:-1)*(n?-1:1)*(c?c[0]/2:0)+(this.side===a.bottom?b:0);if(e.titlePosition.x=s?r-(f||0)/2-g+u:k+(n?h:0)+o+u,e.titlePosition.y=s?k-(n?i:0)+(n?b:-b)/2+o+m:d-g+m,!s){let[t=0]=c||[];"left"===p.textAlign?e.titlePosition.x-=t/2:"right"===p.textAlign&&(e.titlePosition.x+=t/2)}}}function E(){let e,{chart:t,options:{grid:i={}},userOptions:s}=this;if(i.enabled&&((e=this.options).labels.align=e.labels.align??"center",this.categories||(e.showLastLabel=!1),this.labelRotation=0,e.labels.rotation=0,e.minTickInterval=1),i.columns){let e=this.grid.columns=[],r=this.grid.columnIndex=0;for(;++r<i.columns.length;){let o=(0,f.merge)(s,i.columns[r],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),n=new(k())(this.chart,o,this.coll);n.grid.isColumn=!0,n.grid.columnIndex=r,(0,f.erase)(t.axes,n),(0,f.erase)(t[this.coll]||[],n),e.push(n)}}}function N(){let{axisTitle:e,grid:t,options:i}=this;if(!0===(i.grid||{}).enabled){let s=this.min||0,r=this.max||0,o=this.ticks[this.tickPositions[0]];if(e&&!this.chart.styledMode&&o?.slotWidth&&!this.options.title.style.width&&e.css({width:`${o.slotWidth}px`}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid?.isOuterAxis()&&this.axisLine){let e=i.lineWidth;if(e){let t=this.getLinePath(e),o=t[0],n=t[1],l=(this.tickSize("tick")||[1])[0]*(this.side===a.top||this.side===a.left?-1:1);if("M"===o[0]&&"L"===n[0]&&(this.horiz?(o[2]+=l,n[2]+=l):(o[1]+=l,n[1]+=l)),!this.horiz&&this.chart.marginRight){let e=["L",this.left,o[2]||0],t=[o,e],a=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(r+this.tickmarkOffset)],l=[["M",n[1]||0,this.toPixels(r+this.tickmarkOffset)],a];this.grid.upperBorder||s%1==0||(this.grid.upperBorder=this.grid.renderBorder(t)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.upperBorder.animate({d:t})),this.grid.lowerBorder||r%1==0||(this.grid.lowerBorder=this.grid.renderBorder(l)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.lowerBorder.animate({d:l}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.axisLineExtra.animate({d:t})):this.grid.axisLineExtra=this.grid.renderBorder(t),this.axisLine[this.showAxis?"show":"hide"]()}}if((t?.columns||[]).forEach(e=>e.render()),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent?.scrollbar)&&this.tickPositions.length){let e,t,i=this.tickmarkOffset,o=this.tickPositions[this.tickPositions.length-1],n=this.tickPositions[0];for(;(e=this.hiddenLabels.pop())&&e.element;)e.show();for(;(t=this.hiddenMarks.pop())&&t.element;)t.show();(e=this.ticks[n].label)&&(s-n>i?this.hiddenLabels.push(e.hide()):e.show()),(e=this.ticks[o].label)&&(o-r>i?this.hiddenLabels.push(e.hide()):e.show());let a=this.ticks[o].mark;a&&o-r<i&&o-r>0&&this.ticks[o].isLast&&this.hiddenMarks.push(a.hide())}}}function A(){let e=this.tickPositions?.info,t=this.options,i=t.grid||{},s=this.userOptions.labels||{};i.enabled&&(this.horiz?(this.series.forEach(e=>{e.options.pointRange=0}),e&&t.dateTimeLabelFormats&&t.labels&&!(0,f.defined)(s.align)&&(!1===t.dateTimeLabelFormats[e.unitName].range||e.count>1)&&(t.labels.align="left",(0,f.defined)(s.x)||(t.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function w(e){let t,i=this.options,s=e.userOptions,r=i&&v(i.grid)?i.grid:{};!0===r.enabled&&(t=(0,f.merge)(!0,{className:"highcharts-grid-axis "+(s.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},s),"xAxis"===this.coll&&((0,f.defined)(s.linkedTo)&&!(0,f.defined)(s.tickPixelInterval)&&(t.tickPixelInterval=350),!(!(0,f.defined)(s.tickPixelInterval)&&(0,f.defined)(s.linkedTo))||(0,f.defined)(s.tickPositioner)||(0,f.defined)(s.tickInterval)||(0,f.defined)(s.units)||(t.tickPositioner=function(e,i){let s=this.linkedParent?.tickPositions?.info;if(s){let r=t.units||[],o,n=1,a="year";for(let e=0;e<r.length;e++){let t=r[e];if(t&&t[0]===s.unitName){o=e;break}}let l=(0,f.isNumber)(o)&&r[o+1];if(l){a=l[0]||"year";let e=l[1];n=e?.[0]||1}else"year"===s.unitName&&(n=10*s.count);let d=f.timeUnits[a];return this.tickInterval=d*n,this.chart.time.getTimeTicks({unitRange:d,count:n,unitName:a},e,i,this.options.startOfWeek)}})),(0,f.merge)(!0,this.options,t),this.horiz&&(i.minPadding=s.minPadding??0,i.maxPadding=s.maxPadding??0),(0,f.isNumber)(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=r.borderWidth))}function G(e){let t=e.userOptions,i=t?.grid||{},s=i.columns;i.enabled&&s&&(0,f.merge)(!0,this.options,s[0])}function I(){(this.grid.columns||[]).forEach(e=>e.setScale())}function B(e){let{horiz:t,maxLabelDimensions:i,options:{grid:s={}}}=this;if(s.enabled&&i){let r=2*this.options.labels.distance,o=t?s.cellHeight||r+i.height:r+i.width;(0,f.isArray)(e.tickSize)?e.tickSize[0]=o:e.tickSize=[o,0]}}function T(){this.axes.forEach(e=>{(e.grid?.columns||[]).forEach(e=>{e.setAxisSize(),e.setAxisTranslation()})})}function M(e){let{grid:t}=this;t&&((t.columns||[]).forEach(t=>t.destroy(e.keepEvents)),t.columns=void 0)}function C(e){let t=e.userOptions||{},i=(0,f.merge)({borderColor:"var(--highcharts-neutral-color-20)"},t.grid||{});i.enabled&&(0,f.defined)(i.borderColor)&&(t.tickColor=t.lineColor=i.borderColor),this.grid||(this.grid=new W(this)),this.hiddenLabels=[],this.hiddenMarks=[],i.enabled&&(this.clippable=!1)}function L(e){let t=this.label,i=this.axis,s=i.reversed,r=i.chart,o=i.options.grid||{},n=i.options.labels,l=n.align,d=a[i.side],h=e.tickmarkOffset,c=i.tickPositions,p=this.pos-h,u=(0,f.isNumber)(c[e.index+1])?c[e.index+1]-h:(i.max||0)+h,m=i.tickSize("tick"),g=m?m[0]:0,b=m?m[1]/2:0;if(!0===o.enabled){let o,a,h,c;if("top"===d?a=(o=i.top+i.offset)-g:"bottom"===d?o=(a=r.chartHeight-i.bottom+i.offset)+g:(o=i.top+i.len-(i.translate(s?u:p)||0),a=i.top+i.len-(i.translate(s?p:u)||0)),"right"===d?c=(h=r.chartWidth-i.right+i.offset)+g:"left"===d?h=(c=i.left+i.offset)-g:(h=Math.round(i.left+(i.translate(s?u:p)||0))-b,c=Math.min(Math.round(i.left+(i.translate(s?p:u)||0))-b,i.left+i.len)),this.slotWidth=c-h,e.pos.x="left"===l?h:"right"===l?c:h+(c-h)/2,e.pos.y=a+(o-a)/2,t){let i=r.renderer.fontMetrics(t),s=t.getBBox().height;if(n.useHTML)e.pos.y+=i.b+-(s/2);else{let t=Math.round(s/i.h);e.pos.y+=(i.b-(i.h-i.f))/2+-((t-1)*i.h/2)}}e.pos.x+=i.horiz&&n.x||0}}function S(e){let{axis:t,value:i}=e;if(t.options.grid?.enabled){let s,r=t.tickPositions,o=(t.linkedParent||t).series,n=o.reduce((e,t)=>t.is("gantt")?e?.concat(t.options?.data??[]):e,[])??[],a=i===r[0],l=i===r[r.length-1],d=o[0]&&(0,f.find)(n,function(e){return e[t.isXAxis?"x":"y"]===i});d&&(s=(0,f.merge)(d),p().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(s,t.chart)),e.isFirst=a,e.isLast=l,e.point=s}}function j(){let e=this.options,t=e.grid||{},i=this.categories,s=this.tickPositions,r=s[0],o=s[1],n=s[s.length-1],a=s[s.length-2],l=this.linkedParent?.min,d=this.linkedParent?.max,h=l||this.min,c=d||this.max,p=this.tickInterval,u=(0,f.isNumber)(h)&&h>=r+p&&h<o,m=(0,f.isNumber)(h)&&r<h&&r+p>h,g=(0,f.isNumber)(c)&&n>c&&n-p<c,b=(0,f.isNumber)(c)&&c<=n-p&&c>a;!0===t.enabled&&!i&&(this.isXAxis||this.isLinked)&&((m||u)&&!e.startOnTick&&(s[0]=h),(g||b)&&!e.endOnTick&&(s[s.length-1]=c))}function z(e){var t;let{options:{grid:i={}}}=this;return!0===i.enabled&&this.categories?this.tickInterval:e.apply(this,(t=arguments,Array.prototype.slice.call(t,1)))}(o=a||(a={}))[o.top=0]="top",o[o.right=1]="right",o[o.bottom=2]="bottom",o[o.left=3]="left";class W{constructor(e){this.axis=e}isOuterAxis(){let e=this.axis,t=e.chart,i=e.grid.columnIndex,s=e.linkedParent?.grid.columns||e.grid.columns||[],r=i?e.linkedParent:e,o=-1,n=0;return 3===e.side&&!t.inverted&&s.length?!e.linkedParent:((t[e.coll]||[]).forEach((t,i)=>{t.side!==e.side||t.options.isInternal||(n=i,t===r&&(o=i))}),n===o&&(!(0,f.isNumber)(i)||s.length===i))}renderBorder(e){let t=this.axis,i=t.chart.renderer,s=t.options,r=i.path(e).addClass("highcharts-axis-line").add(t.axisGroup);return i.styledMode||r.attr({stroke:s.lineColor,"stroke-width":s.lineWidth,zIndex:7}),r}}x.E=function(e){return this.dateFormat("%a",e,!0).charAt(0)},x.W=function(e){let t=this.toParts(e),i=(t[7]+6)%7,s=t.slice(0);s[2]=t[2]-i+3;let r=this.toParts(this.makeTime(s[0],0,1));return 4!==r[7]&&(t[1]=0,t[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(s[0],s[1],s[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};function R(e,t,i,s,r,o){let n=o&&o.after,a=o&&o.before,l={data:s,depth:i-1,id:e,level:i,parent:t||""},d=0,h=0,c,p;"function"==typeof a&&a(l,o);let u=(r[e]||[]).map(t=>{let s=R(t.id,e,i+1,t,r,o),n=t.start||NaN,a=!0===t.milestone?n:t.end||NaN;return c=!(0,f.isNumber)(c)||n<c?n:c,p=!(0,f.isNumber)(p)||a>p?a:p,d=d+1+s.descendants,h=Math.max(s.height+1,h),s});return s&&(s.start??(s.start=c),s.end??(s.end=p)),(0,f.extend)(l,{children:u,descendants:d,height:h}),"function"==typeof n&&n(l,o),l}let H=function(e,t){let i,s;return R("",null,1,null,(i=[],Object.keys(s=e.reduce((e,t)=>{let{parent:s="",id:r}=t;return void 0===e[s]&&(e[s]=[]),e[s].push(t),r&&i.push(r),e},{})).forEach(e=>{if(""!==e&&-1===i.indexOf(e)){let t=s[e].map(function(e){let{...t}=e;return t});s[""].push(...t),delete s[e]}}),s),t)};function D(){this.treeGrid||(this.treeGrid=new V(this))}function _(e,t,i,s,r,o,n,a,l){let d,h,c,p=this.options?.labels??o,u=this.pos,m=this.axis,g="treegrid"===m.type,b=e.apply(this,[t,i,s,r,p,n,a,l]);if(g){let{width:e=0,padding:t=5*!m.linkedParent}=p&&(0,f.isObject)(p.symbol,!0)?p.symbol:{},i=p&&(0,f.isNumber)(p.indentation)?p.indentation:0;d=m.treeGrid.mapOfPosToGridNode,h=d?.[u],c=h?.depth||1,b.x+=e+2*t+(c-1)*i}return b}function F(e){let t,{pos:i,axis:s,label:r,treeGrid:o,options:n}=this,a=o?.labelIcon,l=r?.element,{treeGrid:d,options:h,chart:c,tickPositions:p}=s,u=d.mapOfPosToGridNode,m=n?.labels??h?.labels,g=m&&(0,f.isObject)(m.symbol,!0)?m.symbol:{},b=u?.[i],{descendants:k,depth:x}=b||{},v=b&&k&&k>0,y="treegrid"===s.type&&l,P=p.indexOf(i)>-1,O="highcharts-treegrid-node-",E=O+"level-",N=c.styledMode;if(y&&b&&r.removeClass(RegExp(E+".*")).addClass(E+x),e.apply(this,Array.prototype.slice.call(arguments,1)),y&&v){var A;let e,i,s,n,l,h,c,p,u,k,x,v;t=d.isCollapsed(b),A={color:!N&&r.styles.color||"",collapsed:t,group:r.parentGroup,options:g,renderer:r.renderer,show:P,xy:r.xy},i=!(e=this.treeGrid).labelIcon,s=A.renderer,n=A.xy,h=(l=A.options).width||0,c=l.height||0,p=l.padding??this.axis.linkedParent?0:5,u={x:n.x-h/2-p,y:n.y-c/2},k=A.collapsed?90:180,x=A.show&&(0,f.isNumber)(u.y),(v=e.labelIcon)||(e.labelIcon=v=s.path(s.symbols[l.type](l.x||0,l.y||0,h,c)).addClass("highcharts-label-icon").add(A.group)),v[x?"show":"hide"](),s.styledMode||v.attr({cursor:"pointer",fill:A.color||"var(--highcharts-neutral-color-60)","stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0}),v[i?"attr":"animate"]({translateX:u.x,translateY:u.y,rotation:k}),r.addClass(O+(t?"collapsed":"expanded")).removeClass(O+(t?"expanded":"collapsed")),N||r.css({cursor:"pointer"}),[r,a].forEach(e=>{e&&!e.attachedTreeGridEvents&&((0,f.addEvent)(e.element,"mouseover",function(){r.addClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:"underline"})}),(0,f.addEvent)(e.element,"mouseout",function(){let e;e=(0,f.isObject)(m.style)?m.style:{},r.removeClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:e.textDecoration||"none"})}),(0,f.addEvent)(e.element,"click",function(){o.toggleCollapse()}),e.attachedTreeGridEvents=!0)})}else a&&((0,f.removeEvent)(l),r?.css({cursor:"default"}),a.destroy(),o.labelIcon=void 0)}class V{static compose(e){let t=e.prototype;t.toggleCollapse||((0,f.addEvent)(e,"init",D),(0,f.wrap)(t,"getLabelPosition",_),(0,f.wrap)(t,"renderLabel",F),t.collapse=function(e){this.treeGrid.collapse(e)},t.expand=function(e){this.treeGrid.expand(e)},t.toggleCollapse=function(e){this.treeGrid.toggleCollapse(e)})}constructor(e){this.tick=e}collapse(e){let{pos:t,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.collapse(o[t]),e??!0)}destroy(){this.labelIcon?.destroy()}expand(e){let{pos:t,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.expand(o[t]),e??!0)}toggleCollapse(e=!0){let{axis:t,pos:i}=this.tick,{brokenAxis:s,treeGrid:r}=t;if(s&&r.mapOfPosToGridNode){let o=!!(t.scrollbar&&t.staticScale),n=t.pos+t.len+(r.pendingSizeAdjustment||0);if(r.pendingSizeAdjustment=0,s.setBreaks(r.toggleCollapse(r.mapOfPosToGridNode[i]),o&&e),o){let e=t.toValue(t.toPixels(t.dataMax)),i=t.toValue(n)-t.tickmarkOffset,s=t.userMin??t.min;if(r.adjustedMax=e!==t.dataMax?e-t.tickmarkOffset:void 0,i>t.dataMax){let e=n-t.toPixels(t.dataMax+t.tickmarkOffset);i=r.adjustedMax??t.dataMax,(s=t.toValue(t.toPixels(s-t.tickmarkOffset)-e)+t.tickmarkOffset)<t.dataMin&&(e=t.toPixels(t.dataMin)-t.toPixels(s),s=t.dataMin,r.pendingSizeAdjustment=e)}t.setExtremes((0,f.correctFloat)(s),(0,f.correctFloat)(i),!1,!1,{trigger:"toggleCollapse"})}e&&t.chart.redraw()}}}var X=h(620),q=h.n(X);let{getLevelOptions:U}={getColor:function(e,t){let i,s,r,o,n,a,l=t.index,d=t.mapOptionsToLevel,h=t.parentColor,c=t.parentColorIndex,f=t.series,p=t.colors,u=t.siblings,m=f.points,g=f.chart.options.chart;if(e){let b;i=m[e.i],s=d[e.level]||{},i&&s.colorByPoint&&(o=i.index%(p?p.length:g.colorCount),r=p&&p[o]),f.chart.styledMode||(n=(i&&i.options.color)??(s&&s.color)??r??(h&&((b=s&&s.colorVariation)&&"brightness"===b.key&&l&&u?q().parse(h).brighten(b.to*(l/u)).get():h))??f.color),a=(i&&i.options.colorIndex)??(s&&s.colorIndex)??o??c??t.colorIndex}return{color:n,colorIndex:a}},getLevelOptions:function(e){let t,i,s,r,o,n,a={};if((0,f.isObject)(e))for(r=(0,f.isNumber)(e.from)?e.from:1,n=e.levels,i={},t=(0,f.isObject)(e.defaults)?e.defaults:{},(0,f.isArray)(n)&&(i=n.reduce((e,i)=>{let s,o,n;return(0,f.isObject)(i)&&(0,f.isNumber)(i.level)&&(o=(n=(0,f.merge)({},i)).levelIsConstant??t.levelIsConstant,delete n.levelIsConstant,delete n.level,s=i.level+(o?0:r-1),(0,f.isObject)(e[s])?(0,f.merge)(!0,e[s],n):e[s]=n),e},{})),o=(0,f.isNumber)(e.to)?e.to:1,s=0;s<=o;s++)a[s]=(0,f.merge)({},t,(0,f.isObject)(i[s])?i[s]:{});return a},getNodeWidth:function(e,t){let{chart:i,options:s}=e,{nodeDistance:r=0,nodeWidth:o=0}=s,{plotSizeX:n=1}=i;if("auto"===o){if("string"==typeof r&&/%$/.test(r))return n/(t+parseFloat(r)/100*(t-1));let e=Number(r);return(n+e)/(t||1)-e}return(0,f.relativeLength)(o,n)},setTreeValues:function e(t,i){let s=i.before,r=i.idRoot,o=i.mapIdToNode[r],n=!1!==i.levelIsConstant,a=i.points[t.i],l=a&&a.options||{},d=[],h=0;t.levelDynamic=t.level-(n?0:o.level),t.name=(a&&a.name)??"",t.visible=r===t.id||!0===i.visible,"function"==typeof s&&(t=s(t,i)),t.children.forEach((s,r)=>{let o=(0,f.extend)({},i);(0,f.extend)(o,{index:r,siblings:t.children.length,visible:t.visible}),s=e(s,o),d.push(s),s.visible&&(h+=s.val)});let c=l.value??h;return t.visible=c>=0&&(h>0||t.visible),t.children=d,t.childrenTotal=h,t.isLeaf=t.visible&&!h,t.val=c,t},updateRootId:function(e){let t,i;return(0,f.isObject)(e)&&(i=(0,f.isObject)(e.options)?e.options:{},t=e.rootNode??i.rootId??"",(0,f.isObject)(e.userOptions)&&(e.userOptions.rootId=t),e.rootNode=t),t}};function $(e){return Array(e.dataTable.rowCount).fill(void 0).map((t,i)=>e.dataTable.getRowObject(i))}function K(e){return{from:e.collapseStart||0,to:e.collapseEnd||0,showPoints:!1}}function Y(e,t,i){var s;let r,o=[],n=[],a={},l=t||!1,d={},h=-1,c=H(e,{after:function(e){let t=d[e.pos],i=0,s=0;t.children.forEach(function(e){s+=(e.descendants||0)+1,i=Math.max((e.height||0)+1,i)}),t.descendants=s,t.height=i,t.collapsed&&n.push(t)},before:function(e){let t,i,s=(0,f.isObject)(e.data,!0)?e.data:{},r=(0,f.isString)(s.name)?s.name:"",n=a[e.parent],c=(0,f.isObject)(n,!0)?d[n.pos]:null;l&&(0,f.isObject)(c,!0)&&(t=(0,f.find)(c.children,function(e){return e.name===r}))?(i=t.pos,t.nodes.push(e)):i=h++,!d[i]&&(d[i]=t={depth:c?c.depth+1:0,name:r,id:s.id,nodes:[e],children:[],pos:i},-1!==i&&o.push(r),(0,f.isObject)(c,!0)&&c.children.push(t)),(0,f.isString)(e.id)&&(a[e.id]=e),t&&!0===s.collapsed&&(t.collapsed=!0),e.pos=i}});return s=d,{categories:o,mapOfIdToNode:a,mapOfPosToGridNode:d=(r=function(e,t,s){let o=e.nodes,n=t+(-1===t?0:i-1),a=(n-t)/2,l=t+a;return o.forEach(function(e){let i=e.data;(0,f.isObject)(i,!0)&&(i.y=t+(i.yIndex||0)),e.pos=l}),s[l]=e,e.pos=l,e.tickmarkOffset=a+.5,e.collapseStart=n+.5,e.children.forEach(function(e){r(e,n+1,s),n=(e.collapseEnd||0)-.5}),e.collapseEnd=n+.5,s})(s["-1"],-1,{}),collapsedNodes:n,tree:c}}function J(e){let t=e.target;t.axes.filter(e=>"treegrid"===e.type).forEach(function(i){let s=i.options,r=s.labels,o=i.uniqueNames,n=t.time.parse(s.max),a=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(e){return!e.hasRendered||e.isDirtyData||e.isDirty}),l=0,d,h;if(a){let s=[];if(d=i.series.reduce(function(e,i){let r=$(i),n=r[0],a=Array.isArray(n)&&!n.find(e=>"object"==typeof e);return s.push(a),i.visible&&(r.forEach(function(s){(a||i.options.keys?.length)&&(s=i.pointClass.prototype.optionsToObject.call({series:i},s),i.pointClass.setGanttPointAliases(s,t)),(0,f.isObject)(s,!0)&&(s.yIndex=l,s.seriesIndex=i.index,e.push(s))}),!0===o&&l++),e},[]),n&&d.length<n)for(let e=d.length;e<=n;e++)d.push({name:e+""});i.categories=(h=Y(d,o||!1,!0===o?l:1)).categories,i.treeGrid.mapOfPosToGridNode=h.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=h.tree,i.series.forEach(e=>{let t=d.filter(t=>t.seriesIndex===e.index);t.forEach(e=>{delete e.seriesIndex,delete e.yIndex}),e.visible&&e.setData(t,!1)}),i.treeGrid.mapOptionsToLevel=U({defaults:r,from:1,levels:r?.levels,to:i.treeGrid.tree?.height}),"beforeRender"===e.type&&(i.treeGrid.collapsedNodes=h.collapsedNodes)}})}function Q(e,t){let i=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,o=this.ticks,n=o[t],a,l,d;s&&this.treeGrid.mapOfPosToGridNode?((a=i[(d=this.treeGrid.mapOfPosToGridNode[t]).depth])&&(l={labels:a}),!n&&r?o[t]=n=new r(this,t,void 0,void 0,{category:d.name,tickmarkOffset:d.tickmarkOffset,options:l}):(n.parameters.category=d.name,n.options=l,n.addLabel(),this.isDirty=!0)):e.apply(this,Array.prototype.slice.call(arguments,1))}function Z(e,t,i,s){let r=this,o="treegrid"===i.type;r.treeGrid||(r.treeGrid=new ei(r)),o&&((0,f.addEvent)(t,"beforeRender",J,{order:0}),(0,f.addEvent)(t,"beforeRedraw",J),(0,f.addEvent)(t,"addSeries",function(e){if(e.options.data){let t=Y(e.options.data,i.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(t.collapsedNodes)}}),(0,f.addEvent)(r,"foundExtremes",function(){r.treeGrid.collapsedNodes?.forEach(function(e){let t=r.treeGrid.collapse(e);r.brokenAxis&&(r.brokenAxis.setBreaks(t,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(t=>e.collapseStart!==t.collapseStart||e.collapseEnd!==t.collapseEnd)))})}),(0,f.addEvent)(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),i=(0,f.merge)({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-3,height:6,width:8}},uniqueNames:!1},i,{reversed:!0})),e.apply(r,[t,i,s]),o&&(r.hasNames=!0,r.options.showLastLabel=!0)}function ee(e){let t=this.options,i=this.chart.time,s="number"==typeof t.linkedTo?this.chart[this.coll]?.[t.linkedTo]:void 0;if("treegrid"===this.type){if(this.min=this.userMin??i.parse(t.min)??this.dataMin,this.max=this.userMax??i.parse(t.max)??this.dataMax,(0,f.fireEvent)(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],s){let e=s.getExtremes();this.min=e.min??e.dataMin,this.max=e.max??e.dataMax,this.tickPositions=s.tickPositions}this.linkedParent=s}else e.apply(this,Array.prototype.slice.call(arguments,1))}function et(e){let t=this;"treegrid"===this.type&&t.visible&&t.tickPositions.forEach(function(e){let i=t.ticks[e];i.label?.attachedTreeGridEvents&&((0,f.removeEvent)(i.label.element),i.label.attachedTreeGridEvents=!1)}),e.apply(t,Array.prototype.slice.call(arguments,1))}class ei{static compose(e,t,i,s){var o,n,a;if(!e.keepProps.includes("treeGrid")){let t=e.prototype;e.keepProps.push("treeGrid"),(0,f.wrap)(t,"generateTick",Q),(0,f.wrap)(t,"init",Z),(0,f.wrap)(t,"setTickInterval",ee),(0,f.wrap)(t,"redraw",et),t.utils={getNode:R},r||(r=s)}return o=e,n=t,a=s,o.keepProps.includes("grid")||(o.keepProps.push("grid"),o.prototype.getMaxLabelDimensions=y,(0,f.wrap)(o.prototype,"unsquish",z),(0,f.wrap)(o.prototype,"getOffset",P),(0,f.addEvent)(o,"init",C),(0,f.addEvent)(o,"afterGetTitlePosition",O),(0,f.addEvent)(o,"afterInit",E),(0,f.addEvent)(o,"afterRender",N),(0,f.addEvent)(o,"afterSetAxisTranslation",A),(0,f.addEvent)(o,"afterSetOptions",w),(0,f.addEvent)(o,"afterSetOptions",G),(0,f.addEvent)(o,"afterSetScale",I),(0,f.addEvent)(o,"afterTickSize",B),(0,f.addEvent)(o,"trimTicks",j),(0,f.addEvent)(o,"destroy",M),(0,f.addEvent)(n,"afterSetChartSize",T),(0,f.addEvent)(a,"afterGetLabelPosition",L),(0,f.addEvent)(a,"labelFormat",S)),g.compose(e,i),V.compose(s),e}constructor(e){this.pendingSizeAdjustment=0,this.axis=e}setCollapsedStatus(e){let t=this.axis,i=t.chart;t.series.forEach(function(t){let s=$(t);if(e.id&&s){let r=i.get(e.id),o=s[t.data.indexOf(r)];t.dataTable.setRow({collapsed:e.collapsed},t.data.indexOf(r)),r&&(0,f.isObject)(o,!0)&&(r.collapsed=e.collapsed,o.collapsed=e.collapsed)}})}collapse(e){let t=this.axis,i=t.options.breaks||[],s=K(e);return i.push(s),e.collapsed=!0,t.treeGrid.setCollapsedStatus(e),i}expand(e){let t=this.axis,i=K(e);return e.collapsed=!1,t.treeGrid.setCollapsedStatus(e),t.options.breaks?.reduce(function(e,t){return(t.to!==i.to||t.from!==i.from)&&e.push(t),e},[])||[]}getTickPositions(){let e=this.axis,t=Math.floor(e.min/e.tickInterval)*e.tickInterval,i=Math.ceil(e.max/e.tickInterval)*e.tickInterval;return Object.keys(e.treeGrid.mapOfPosToGridNode||{}).reduce(function(s,r){let o=+r;return o>=t&&o<=i&&!e.brokenAxis?.isInAnyBreak(o)&&s.push(o),s},[])}isCollapsed(e){let t=this.axis.options.breaks||[],i=K(e);return t.some(function(e){return e.from===i.from&&e.to===i.to})}toggleCollapse(e){return this.isCollapsed(e)?this.expand(e):this.collapse(e)}}let es=p();ei.compose(es.Axis,es.Chart,es.Series,es.Tick);let er=p();return c.default})());
|
|
13
|
+
*/function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(e._Highcharts.Axis,e._Highcharts.Color,e._Highcharts.StackItem,e._Highcharts):"function"==typeof define&&define.amd?define("highcharts/modules/treegrid",["highcharts/highcharts"],function(e){return t(e.Axis,e.Color,e.StackItem,e)}):"object"==typeof exports?exports["highcharts/modules/treegrid"]=t(e._Highcharts.Axis,e._Highcharts.Color,e._Highcharts.StackItem,e._Highcharts):e.Highcharts=t(e.Highcharts.Axis,e.Highcharts.Color,e.Highcharts.StackItem,e.Highcharts)}("u"<typeof window?this:window,(e,t,i,s)=>(()=>{"use strict";let r;var o,n,a,l={532(t){t.exports=e},620(e){e.exports=t},184(e){e.exports=i},944(e){e.exports=s}};let d={};function h(e){let t=d[e];if(void 0!==t)return t.exports;let i=d[e]={exports:{}};return l[e](i,i.exports,h),i.exports}h.n=e=>{let t=e&&e.__esModule?()=>e.default:()=>e;return h.d(t,{a:t}),t},h.d=(e,t)=>{for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let c={};h.d(c,{default:()=>ea});var f=h(944),p=h.n(f),u=h(184),m=h.n(u);let{composed:g}=p();!function(e){function t(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function i(){Object.keys(this.options.breaks?.[0]||{}).length&&(this.options.ordinal=!1)}function s(){let e=this.brokenAxis;if(e?.hasBreaks){let t=this.tickPositions,i=this.tickPositions.info,s=[];for(let i=0;i<t.length;i++)e.isInAnyBreak(t[i])||s.push(t[i]);this.tickPositions=s,this.tickPositions.info=i}}function r(){this.brokenAxis||(this.brokenAxis=new d(this))}function o(){let{isDirty:e,options:{connectNulls:t},points:i,xAxis:s,yAxis:r}=this;if(e){let e=i.length;for(;e--;){let o=i[e],n=(null!==o.y||!1!==t)&&(s?.brokenAxis?.isInAnyBreak(o.x,!0)||r?.brokenAxis?.isInAnyBreak(o.y,!0));o.visible=!n&&!1!==o.options.visible}}}function n(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,this.pointArrayMap??["y"])}function a(e,t){let i,s,r,o=this,n=o.points;if(e?.brokenAxis?.hasBreaks){let a=e.brokenAxis;t.forEach(function(t){i=a?.breakArray||[],s=e.isXAxis?e.min:o.options.threshold??e.min,n.forEach(function(o){r=o["stack"+t.toUpperCase()]??o[t],i.forEach(function(t){if((0,f.isNumber)(s)&&(0,f.isNumber)(r)){let i="";s<t.from&&r>t.to||s>t.from&&r<t.from?i="pointBreak":(s<t.from&&r>t.from&&r<t.to||s>t.from&&r>t.to&&r<t.from)&&(i="pointInBreak"),i&&(0,f.fireEvent)(e,i,{point:o,brk:t})}})})})}}function l(){let e=this.currentDataGrouping,t=e?.gapSize,i=this.points.slice(),s=this.yAxis,r=this.options.gapSize,o=i.length-1;if(r&&o>0){let e,n;for("value"!==this.options.gapUnit&&(r*=this.basePointRange),t&&t>r&&t>=this.basePointRange&&(r=t);o--;)if(n&&!1!==n.visible||(n=i[o+1]),e=i[o],!1!==n.visible&&!1!==e.visible){if(n.x-e.x>r){let t=(e.x+n.x)/2;i.splice(o+1,0,{isNull:!0,x:t}),s.stacking&&this.options.stacking&&((s.stacking.stacks[this.stackKey][t]=new(m())(s,!1,t,this.stack??"")).total=0)}n=e}}return this.getGraphPath(i)}e.compose=function(e,d){if((0,f.pushUnique)(g,"Axis.Broken")){(0,f.addEvent)(e,"init",r),(0,f.addEvent)(e,"afterInit",t),(0,f.addEvent)(e,"afterSetTickPositions",s),(0,f.addEvent)(e,"afterSetOptions",i);let h=d.prototype;h.drawBreaks=a,h.gappedPath=l,(0,f.addEvent)(d,"afterGeneratePoints",o),(0,f.addEvent)(d,"afterRender",n)}return e};class d{static isInBreak(e,t){let i=e.repeat||1/0,s=e.from,r=e.to-e.from,o=t>=s?(t-s)%i:i-(s-t)%i;return e.inclusive?o<=r:o<r&&0!==o}static lin2Val(e){let t=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,f.isNumber)(e))return e;let r=e;if(e>t)for(let e of s)if(e.from>r)break;else e.to<=r&&e.to>t?r+=e.len:d.isInBreak(e,r)&&(r+=e.len);else if(e<t)for(let e of s)if(e.from>t)break;else e.from>=r&&e.from<t?r-=e.len:d.isInBreak(e,r)&&(r-=e.len);return r}static val2Lin(e){let t=this.min||0,i=this.brokenAxis,s=i?.breakArray;if(!s?.length||!(0,f.isNumber)(e))return e;let r=e;if(e>t){for(let i of s)if(i.to<=e&&i.to>t)r-=i.len;else if(i.from>e)break;else if(d.isInBreak(i,e)){r-=e-i.from;break}}else if(e<t){for(let i of s)if(i.from>=e&&i.from<t)r+=i.len;else if(i.from>t)break;else if(d.isInBreak(i,e)){r+=i.to-e;break}}return r}constructor(e){this.axis=e}findBreakAt(e,t){return(0,f.find)(t,function(t){return t.from<e&&e<t.to})}isInAnyBreak(e,t){let i=this.axis,s=i.options.breaks||[],r=s.length,o,n,a;if(r&&(0,f.isNumber)(e)){for(;r--;)d.isInBreak(s[r],e)&&(o=!0,n||(n=s[r].showPoints??!i.isXAxis));a=o&&t?o&&!n:o}return a}setBreaks(e,t){let i=this,s=i.axis,r=s.chart.time,o=(0,f.isArray)(e)&&!!Object.keys(e?.[0]||{}).length;s.isDirty=(i.hasBreaks??!1)!==o,i.hasBreaks=o,e?.forEach(e=>{e.from=r.parse(e.from)||0,e.to=r.parse(e.to)||0}),e!==s.options.breaks&&(s.options.breaks=s.userOptions.breaks=e),s.forceRedraw=!0,s.series.forEach(function(e){e.isDirty=!0}),o||s.val2lin!==d.val2Lin||(delete s.val2lin,delete s.lin2val),o&&(s.userOptions.ordinal=!1,s.lin2val=d.lin2Val,s.val2lin=d.val2Lin,s.setExtremes=function(e,t,r,o,n){if(i.hasBreaks&&!s.treeGrid?.tree){let s,r=this.brokenAxis.breakArray||[];for(;s=i.findBreakAt(e,r);)e=s.to;for(;s=i.findBreakAt(t,r);)t=s.from;t<e&&(t=e)}s.constructor.prototype.setExtremes.call(this,e,t,r,o,n)},s.setAxisTranslation=function(){if(s.constructor.prototype.setAxisTranslation.call(this),i.unitLength=void 0,i.hasBreaks){let e=s.options.breaks||[],t=[],r=[],o=s.pointRangePadding??0,n=0,a,l,h=s.userMin??s.min,c=s.userMax??s.max,p,u,m=(0,f.isNumber)(h)?Math.min(s.dataMin??h,h):s.dataMin??h,g=(0,f.isNumber)(c)?Math.max(s.dataMax??c,c):s.dataMax??c;s.treeGrid?.tree||e.forEach(function(e){l=e.repeat||1/0,(0,f.isNumber)(h)&&(0,f.isNumber)(c)&&(d.isInBreak(e,h)&&(h+=e.to%l-h%l),d.isInBreak(e,c)&&(c-=c%l-e.from%l))}),(0,f.isNumber)(m)&&(0,f.isNumber)(g)&&e.forEach(function(e){for(p=e.from,l=e.repeat||1/0;p-l>m;)p-=l;for(;p<m;)p+=l;for(u=p;u<g;u+=l)t.push({value:u,move:"in"}),t.push({value:u+e.to-e.from,move:"out",size:e.breakSize})}),t.sort(function(e,t){return e.value===t.value?("in"!==e.move)-("in"!==t.move):e.value-t.value}),a=0,p=m,t.forEach(e=>{1===(a+="in"===e.move?1:-1)&&"in"===e.move&&(p=e.value),0===a&&(0,f.isNumber)(p)&&(r.push({from:p,to:e.value,len:e.value-p-(e.size||0)}),(0,f.isNumber)(h)&&(0,f.isNumber)(c)&&p<c&&e.value>h&&(n+=e.value-p-(e.size||0)))}),i.breakArray=r,(0,f.isNumber)(h)&&(0,f.isNumber)(c)&&(0,f.isNumber)(s.min)&&(i.unitLength=c-h-n+o,(0,f.fireEvent)(s,"afterBreaks"),s.staticScale?s.transA=s.staticScale:i.unitLength&&(s.transA*=(c-s.min+o)/i.unitLength),o&&(s.minPixelPadding=s.transA*(s.minPointOffset||0)),s.min=h,s.max=c)}}),(t??!0)&&s.chart.redraw()}}e.Additions=d}(n||(n={}));let b=n;var x=h(532),k=h.n(x);let{composed:v,dateFormats:y}=p();function P(e){return(0,f.isObject)(e,!0)}function E(e,t){let i={width:0,height:0};if(t.forEach(function(t){let s=e[t],r=0,o=0,n;P(s)&&(r=(n=P(s.label)?s.label:{}).getBBox?n.getBBox().height:0,n.textStr&&!(0,f.isNumber)(n.textPxLength)&&(n.textPxLength=n.getBBox().width),o=(0,f.isNumber)(n.textPxLength)?Math.round(n.textPxLength):0,n.textStr&&(o=Math.round(n.getBBox().width)),i.height=Math.max(r,i.height),i.width=Math.max(o,i.width))}),"treegrid"===this.type&&this.treeGrid&&this.treeGrid.mapOfPosToGridNode){let e=this.treeGrid.mapOfPosToGridNode[-1].height||0;i.width+=this.options.labels.indentation*(e-1)}return i}function O(e){let{grid:t}=this,i=3===this.side;if(i||e.apply(this),!t?.isColumn){let e=t?.columns||[];i&&(e=e.slice().reverse()),e.forEach(e=>{e.getOffset()})}i&&e.apply(this)}function A(e){if(!0===(this.options.grid||{}).enabled){let{axisTitle:t,height:i,horiz:s,left:r,offset:o,opposite:n,options:l,top:d,width:h}=this,c=this.tickSize(),f=t?.getBBox().width,p=l.title,{x:u,y:m}=p,g=p.margin??(s?5:10),b=t?this.chart.renderer.fontMetrics(t).f:0,x=(s?d+i:r)+(s?1:-1)*(n?-1:1)*(c?c[0]/2:0)+(this.side===a.bottom?b:0);if(e.titlePosition.x=s?r-(f||0)/2-g+u:x+(n?h:0)+o+u,e.titlePosition.y=s?x-(n?i:0)+(n?b:-b)/2+o+m:d-g+m,!s){let[t=0]=c||[];"left"===p.textAlign?e.titlePosition.x-=t/2:"right"===p.textAlign&&(e.titlePosition.x+=t/2)}}}function N(){var e;let t,{chart:i,options:{grid:s={}},userOptions:r}=this;if(s.enabled&&((t=this.options).labels.align=t.labels.align??"center",this.categories||(t.showLastLabel=!1),this.labelRotation=0,t.labels.rotation=0,t.minTickInterval=1),s.columns){(e=this.grid).columns||(e.columns=[]);let t=this.grid.columns;t.forEach(e=>e.destroy()),t.length=0;let o=this.grid.columnIndex=0;for(;++o<s.columns.length;){let e=(0,f.merge)(r,s.columns[o],{isInternal:!0,linkedTo:0,scrollbar:{enabled:!1}},{grid:{columns:void 0}}),n=new(k())(this.chart,e,this.coll);n.grid.isColumn=!0,n.grid.columnIndex=o,(0,f.erase)(i.axes,n),(0,f.erase)(i[this.coll]||[],n),t.push(n)}}}function w(){let{axisTitle:e,grid:t,options:i}=this;if(!0===(i.grid||{}).enabled){let s=this.min||0,r=this.max||0,o=this.ticks[this.tickPositions[0]];if(e&&!this.chart.styledMode&&o?.slotWidth&&!this.options.title.style.width&&e.css({width:`${o.slotWidth}px`}),this.maxLabelDimensions=this.getMaxLabelDimensions(this.ticks,this.tickPositions),this.rightWall&&this.rightWall.destroy(),this.grid?.isOuterAxis()&&this.axisLine){let e=i.lineWidth;if(e){let t=this.getLinePath(e),o=t[0],n=t[1],l=(this.tickSize("tick")||[1])[0]*(this.side===a.top||this.side===a.left?-1:1);if("M"===o[0]&&"L"===n[0]&&(this.horiz?(o[2]+=l,n[2]+=l):(o[1]+=l,n[1]+=l)),!this.horiz&&this.chart.marginRight){let e=["L",this.left,o[2]||0],t=[o,e],a=["L",this.chart.chartWidth-this.chart.marginRight,this.toPixels(r+this.tickmarkOffset)],l=[["M",n[1]||0,this.toPixels(r+this.tickmarkOffset)],a];this.grid.upperBorder||s%1==0||(this.grid.upperBorder=this.grid.renderBorder(t)),this.grid.upperBorder&&(this.grid.upperBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.upperBorder.animate({d:t})),this.grid.lowerBorder||r%1==0||(this.grid.lowerBorder=this.grid.renderBorder(l)),this.grid.lowerBorder&&(this.grid.lowerBorder.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.lowerBorder.animate({d:l}))}this.grid.axisLineExtra?(this.grid.axisLineExtra.attr({stroke:i.lineColor,"stroke-width":i.lineWidth}),this.grid.axisLineExtra.animate({d:t})):this.grid.axisLineExtra=this.grid.renderBorder(t),this.axisLine[this.showAxis?"show":"hide"]()}}if((t?.columns||[]).forEach(e=>e.render()),!this.horiz&&this.chart.hasRendered&&(this.scrollbar||this.linkedParent?.scrollbar)&&this.tickPositions.length){let e,t,i=this.tickmarkOffset,o=this.tickPositions[this.tickPositions.length-1],n=this.tickPositions[0];for(;(e=this.hiddenLabels.pop())&&e.element;)e.show();for(;(t=this.hiddenMarks.pop())&&t.element;)t.show();(e=this.ticks[n].label)&&(s-n>i?this.hiddenLabels.push(e.hide()):e.show()),(e=this.ticks[o].label)&&(o-r>i?this.hiddenLabels.push(e.hide()):e.show());let a=this.ticks[o].mark;a&&o-r<i&&o-r>0&&this.ticks[o].isLast&&this.hiddenMarks.push(a.hide())}}}function I(){let e=this.tickPositions?.info,t=this.options,i=t.grid||{},s=this.userOptions.labels||{};i.enabled&&(this.horiz?(this.series.forEach(e=>{e.options.pointRange=0}),e&&t.dateTimeLabelFormats&&t.labels&&!(0,f.defined)(s.align)&&(!1===t.dateTimeLabelFormats[e.unitName].range||e.count>1)&&(t.labels.align="left",(0,f.defined)(s.x)||(t.labels.x=3))):"treegrid"!==this.type&&this.grid&&this.grid.columns&&(this.minPointOffset=this.tickInterval))}function G(e){let t,i=this.options,s=e.userOptions,r=i&&P(i.grid)?i.grid:{};!0===r.enabled&&(t=(0,f.merge)(!0,{className:"highcharts-grid-axis "+(s.className||""),dateTimeLabelFormats:{hour:{list:["%[HM]","%[H]"]},day:{list:["%[AeB]","%[aeb]","%[E]"]},week:{list:["Week %W","W%W"]},month:{list:["%[B]","%[b]","%o"]}},grid:{borderWidth:1},labels:{padding:2,style:{fontSize:"0.9em"}},margin:0,title:{text:null,reserveSpace:!1,rotation:0,style:{textOverflow:"ellipsis"}},units:[["millisecond",[1,10,100]],["second",[1,10]],["minute",[1,5,15]],["hour",[1,6]],["day",[1]],["week",[1]],["month",[1]],["year",null]]},s),"xAxis"===this.coll&&((0,f.defined)(s.linkedTo)&&!(0,f.defined)(s.tickPixelInterval)&&(t.tickPixelInterval=350),!(!(0,f.defined)(s.tickPixelInterval)&&(0,f.defined)(s.linkedTo))||(0,f.defined)(s.tickPositioner)||(0,f.defined)(s.tickInterval)||(0,f.defined)(s.units)||(t.tickPositioner=function(e,i){let s=this.linkedParent?.tickPositions?.info;if(s){let r=t.units||[],o,n=1,a="year";for(let e=0;e<r.length;e++){let t=r[e];if(t&&t[0]===s.unitName){o=e;break}}let l=(0,f.isNumber)(o)&&r[o+1];if(l){a=l[0]||"year";let e=l[1];n=e?.[0]||1}else"year"===s.unitName&&(n=10*s.count);let d=f.timeUnits[a];return this.tickInterval=d*n,this.chart.time.getTimeTicks({unitRange:d,count:n,unitName:a},e,i,this.options.startOfWeek)}})),(0,f.merge)(!0,this.options,t),this.horiz&&(i.minPadding=s.minPadding??0,i.maxPadding=s.maxPadding??0),(0,f.isNumber)(i.grid.borderWidth)&&(i.tickWidth=i.lineWidth=r.borderWidth))}function B(e){let t=e.userOptions,i=t?.grid||{},s=i.columns;i.enabled&&s&&(0,f.merge)(!0,this.options,s[0])}function T(){(this.grid.columns||[]).forEach(e=>e.setScale())}function M(e){let{horiz:t,maxLabelDimensions:i,options:s}=this,{labels:r,grid:o={}}=s;if(o.enabled&&i){let s=(r.distance??15)*2,n=t?o.cellHeight||s+i.height:s+i.width;(0,f.isArray)(e.tickSize)?e.tickSize[0]=n:e.tickSize=[n,0]}}function C(){this.axes.forEach(e=>{(e.grid?.columns||[]).forEach(e=>{e.setAxisSize(),e.setAxisTranslation()})})}function L(){let{grid:e}=this;e&&((e.columns||[]).forEach(e=>e.destroy()),e.columns=void 0)}function S(e){let t=e.userOptions||{},i=(0,f.merge)({borderColor:"var(--highcharts-neutral-color-20)"},t.grid||{});i.enabled&&(0,f.defined)(i.borderColor)&&(t.tickColor=t.lineColor=i.borderColor),this.grid||(this.grid=new H(this)),this.hiddenLabels=[],this.hiddenMarks=[],i.enabled&&(this.clippable=!1)}function j(e){let t=this.label,i=this.axis,s=i.reversed,r=i.chart,o=i.options.grid||{},n=i.options.labels,l=n.align,d=a[i.side],h=e.tickmarkOffset,c=i.tickPositions,p=this.pos-h,u=(0,f.isNumber)(c[e.index+1])?c[e.index+1]-h:(i.max||0)+h,m=i.tickSize("tick"),g=m?m[0]:0,b=m?m[1]/2:0;if(!0===o.enabled){let o,a,h,c;if("top"===d?a=(o=i.top+i.offset)-g:"bottom"===d?o=(a=r.chartHeight-i.bottom+i.offset)+g:(o=i.top+i.len-(i.translate(s?u:p)||0),a=i.top+i.len-(i.translate(s?p:u)||0)),"right"===d?c=(h=r.chartWidth-i.right+i.offset)+g:"left"===d?h=(c=i.left+i.offset)-g:(h=Math.round(i.left+(i.translate(s?u:p)||0))-b,c=Math.min(Math.round(i.left+(i.translate(s?p:u)||0))-b,i.left+i.len)),this.slotWidth=c-h,e.pos.x="left"===l?h:"right"===l?c:h+(c-h)/2,e.pos.y=a+(o-a)/2,t){let i=r.renderer.fontMetrics(t),s=t.getBBox().height;if(n.useHTML)e.pos.y+=i.b+-(s/2);else{let t=Math.round(s/i.h);e.pos.y+=(i.b-(i.h-i.f))/2+-((t-1)*i.h/2)}}e.pos.x+=i.horiz&&n.x||0}}function z(e){let{axis:t,value:i}=e;if(t.options.grid?.enabled){let s,r=t.tickPositions,o=(t.linkedParent||t).series,n=o.reduce((e,t)=>t.is("gantt")?e?.concat(t.options?.data??[]):e,[])??[],a=i===r[0],l=i===r[r.length-1],d=o[0]&&(0,f.find)(n,function(e){return e[t.isXAxis?"x":"y"]===i});d&&(s=(0,f.merge)(d),p().seriesTypes.gantt.prototype.pointClass.setGanttPointAliases(s,t.chart)),e.isFirst=a,e.isLast=l,e.point=s}}function W(){let e=this.options,t=e.grid||{},i=this.categories,s=this.tickPositions,r=s[0],o=s[1],n=s[s.length-1],a=s[s.length-2],l=this.linkedParent?.min,d=this.linkedParent?.max,h=l||this.min,c=d||this.max,p=this.tickInterval,u=(0,f.isNumber)(h)&&h>=r+p&&h<o,m=(0,f.isNumber)(h)&&r<h&&r+p>h,g=(0,f.isNumber)(c)&&n>c&&n-p<c,b=(0,f.isNumber)(c)&&c<=n-p&&c>a;!0===t.enabled&&!i&&(this.isXAxis||this.linkedParent)&&((m||u)&&!e.startOnTick&&(s[0]=h),(g||b)&&!e.endOnTick&&(s[s.length-1]=c))}function R(e){var t;let{options:{grid:i={}}}=this;return!0===i.enabled&&this.categories?this.tickInterval:e.apply(this,(t=arguments,Array.prototype.slice.call(t,1)))}(o=a||(a={}))[o.top=0]="top",o[o.right=1]="right",o[o.bottom=2]="bottom",o[o.left=3]="left";class H{constructor(e){this.axis=e}isOuterAxis(){let e=this.axis,t=e.chart,i=e.grid.columnIndex,s=e.linkedParent?.grid.columns||e.grid.columns||[],r=i?e.linkedParent:e,o=-1,n=0;return 3===e.side&&!t.inverted&&s.length?!e.linkedParent:((t[e.coll]||[]).forEach((t,i)=>{t.side!==e.side||t.options.isInternal||(n=i,t===r&&(o=i))}),n===o&&(!(0,f.isNumber)(i)||s.length===i))}renderBorder(e){let t=this.axis,i=t.chart.renderer,s=t.options,r=i.path(e).addClass("highcharts-axis-line").add(t.axisGroup);return i.styledMode||r.attr({stroke:s.lineColor,"stroke-width":s.lineWidth,zIndex:7}),r}}y.E=function(e){return this.dateFormat("%a",e,!0).charAt(0)},y.W=function(e){let t=this.toParts(e),i=(t[7]+6)%7,s=t.slice(0);s[2]=t[2]-i+3;let r=this.toParts(this.makeTime(s[0],0,1));return 4!==r[7]&&(t[1]=0,t[2]=1+(11-r[7])%7),(1+Math.floor((this.makeTime(s[0],s[1],s[2])-this.makeTime(r[0],r[1],r[2]))/6048e5)).toString()};function D(e,t,i,s,r,o){let n=o&&o.after,a=o&&o.before,l={data:s,depth:i-1,id:e,level:i,parent:t||""},d=0,h=0,c,p;"function"==typeof a&&a(l,o);let u=(r[e]||[]).map(t=>{let s=D(t.id,e,i+1,t,r,o),n=t.start||0/0,a=!0===t.milestone?n:t.end||0/0;return c=!(0,f.isNumber)(c)||n<c?n:c,p=!(0,f.isNumber)(p)||a>p?a:p,d=d+1+s.descendants,h=Math.max(s.height+1,h),s});return s&&(s.start??(s.start=c),s.end??(s.end=p)),(0,f.extend)(l,{children:u,descendants:d,height:h}),"function"==typeof n&&n(l,o),l}let _=function(e,t){let i,s;return D("",null,1,null,(i=[],Object.keys(s=e.reduce((e,t)=>{let{parent:s="",id:r}=t;return void 0===e[s]&&(e[s]=[]),e[s].push(t),r&&i.push(r),e},{})).forEach(e=>{if(""!==e&&-1===i.indexOf(e)){let t=s[e].map(function(e){let{...t}=e;return t});s[""].push(...t),delete s[e]}}),s),t)};function F(){this.treeGrid||(this.treeGrid=new U(this))}function q(e,t,i,s,r,o,n,a,l){let d,h,c,p=this.options?.labels??o,u=this.pos,m=this.axis,g="treegrid"===m.type,b=e.apply(this,[t,i,s,r,p,n,a,l]);if(g){let{width:e=0,padding:t=5*!m.linkedParent}=p&&(0,f.isObject)(p.symbol,!0)?p.symbol:{},i=p&&(0,f.isNumber)(p.indentation)?p.indentation:0;d=m.treeGrid.mapOfPosToGridNode,h=d?.[u],c=h?.depth||1,b.x+=e+2*t+(c-1)*i}return b}function V(e){let t,{pos:i,axis:s,label:r,treeGrid:o,options:n}=this,a=o?.labelIcon,l=r?.element,{treeGrid:d,options:h,chart:c,tickPositions:p}=s,u=d.mapOfPosToGridNode,m=n?.labels??h?.labels,g=m&&(0,f.isObject)(m.symbol,!0)?m.symbol:{},b=u?.[i],{descendants:x,depth:k}=b||{},v=b&&x&&x>0,y="treegrid"===s.type&&l,P=p.indexOf(i)>-1,E="highcharts-treegrid-node-",O=E+"level-",A=c.styledMode;if(y&&b&&r.removeClass(RegExp(O+".*")).addClass(O+k),e.apply(this,Array.prototype.slice.call(arguments,1)),y&&v){var N;let e,i,s,n,l,h,c,p,u,x,k,v;t=d.isCollapsed(b),N={color:!A&&r.styles.color||"",collapsed:t,group:r.parentGroup,options:g,renderer:r.renderer,show:P,xy:r.xy},i=!(e=this.treeGrid).labelIcon,s=N.renderer,n=N.xy,h=(l=N.options).width||0,c=l.height||0,p=l.padding??this.axis.linkedParent?0:5,u={x:n.x-h/2-p,y:n.y-c/2},x=N.collapsed?90:180,k=N.show&&(0,f.isNumber)(u.y),(v=e.labelIcon)||(e.labelIcon=v=s.path(s.symbols[l.type](l.x||0,l.y||0,h,c)).addClass("highcharts-label-icon").add(N.group)),v[k?"show":"hide"](),s.styledMode||v.attr({cursor:"pointer",fill:N.color||"var(--highcharts-neutral-color-60)","stroke-width":1,stroke:l.lineColor,strokeWidth:l.lineWidth||0}),v[i?"attr":"animate"]({translateX:u.x,translateY:u.y,rotation:x}),r.addClass(E+(t?"collapsed":"expanded")).removeClass(E+(t?"expanded":"collapsed")),A||r.css({cursor:"pointer"}),[r,a].forEach(e=>{e&&!e.attachedTreeGridEvents&&((0,f.addEvent)(e.element,"mouseover",function(){r.addClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:"underline"})}),(0,f.addEvent)(e.element,"mouseout",function(){let e;e=(0,f.isObject)(m.style)?m.style:{},r.removeClass("highcharts-treegrid-node-active"),r.renderer.styledMode||r.css({textDecoration:e.textDecoration||"none"})}),(0,f.addEvent)(e.element,"click",function(){o.toggleCollapse()}),e.attachedTreeGridEvents=!0)})}else a&&((0,f.removeEvent)(l),r?.css({cursor:"default"}),a.destroy(),o.labelIcon=void 0)}class U{static compose(e){let t=e.prototype;t.toggleCollapse||((0,f.addEvent)(e,"init",F),(0,f.wrap)(t,"getLabelPosition",q),(0,f.wrap)(t,"renderLabel",V),t.collapse=function(e){this.treeGrid.collapse(e)},t.expand=function(e){this.treeGrid.expand(e)},t.toggleCollapse=function(e){this.treeGrid.toggleCollapse(e)})}constructor(e){this.tick=e}collapse(e){let{pos:t,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.collapse(o[t]),e??!0)}destroy(){this.labelIcon?.destroy()}expand(e){let{pos:t,axis:i}=this.tick,{treeGrid:s,brokenAxis:r}=i,o=s.mapOfPosToGridNode;r&&o&&r.setBreaks(s.expand(o[t]),e??!0)}toggleCollapse(e=!0){let{axis:t,pos:i}=this.tick,{brokenAxis:s,treeGrid:r}=t;if(s&&r.mapOfPosToGridNode){let o=!!(t.scrollbar&&t.staticScale),n=t.pos+t.len+(r.pendingSizeAdjustment||0);if(r.pendingSizeAdjustment=0,s.setBreaks(r.toggleCollapse(r.mapOfPosToGridNode[i]),o&&e),o){let e=t.toValue(t.toPixels(t.dataMax)),i=t.toValue(n)-t.tickmarkOffset,s=t.userMin??t.min;if(r.adjustedMax=e!==t.dataMax?e-t.tickmarkOffset:void 0,i>t.dataMax){let e=n-t.toPixels(t.dataMax+t.tickmarkOffset);i=r.adjustedMax??t.dataMax,(s=t.toValue(t.toPixels(s-t.tickmarkOffset)-e)+t.tickmarkOffset)<t.dataMin&&(e=t.toPixels(t.dataMin)-t.toPixels(s),s=t.dataMin,r.pendingSizeAdjustment=e)}t.setExtremes((0,f.correctFloat)(s),(0,f.correctFloat)(i),!1,!1,{trigger:"toggleCollapse"})}e&&t.chart.redraw()}}}var X=h(620),$=h.n(X);let{composed:K}=p(),{getLevelOptions:Y}={getColor:function(e,t){let i,s,r,o,n,a,l=t.index,d=t.mapOptionsToLevel,h=t.parentColor,c=t.parentColorIndex,f=t.series,p=t.colors,u=t.siblings,m=f.points,g=f.chart.options.chart;if(e){let b;i=m[e.i],s=d[e.level]||{},i&&s.colorByPoint&&(o=i.index%(p?p.length:g.colorCount),r=p&&p[o]),f.chart.styledMode||(n=(i&&i.options.color)??(s&&s.color)??r??(h&&((b=s&&s.colorVariation)&&"brightness"===b.key&&l&&u?$().parse(h).brighten(b.to*(l/u)).get():h))??f.color),a=(i&&i.options.colorIndex)??(s&&s.colorIndex)??o??c??t.colorIndex}return{color:n,colorIndex:a}},getLevelOptions:function(e){let t,i,s,r,o,n,a={};if((0,f.isObject)(e))for(r=(0,f.isNumber)(e.from)?e.from:1,n=e.levels,i={},t=(0,f.isObject)(e.defaults)?e.defaults:{},(0,f.isArray)(n)&&(i=n.reduce((e,i)=>{let s,o,n;return(0,f.isObject)(i)&&(0,f.isNumber)(i.level)&&(o=(n=(0,f.merge)({},i)).levelIsConstant??t.levelIsConstant,delete n.levelIsConstant,delete n.level,s=i.level+(o?0:r-1),(0,f.isObject)(e[s])?(0,f.merge)(!0,e[s],n):e[s]=n),e},{})),o=(0,f.isNumber)(e.to)?e.to:1,s=0;s<=o;s++)a[s]=(0,f.merge)({},t,(0,f.isObject)(i[s])?i[s]:{});return a},getNodeWidth:function(e,t){let{chart:i,options:s}=e,{nodeDistance:r=0,nodeWidth:o=0}=s,{plotSizeX:n=1}=i;if("auto"===o){if("string"==typeof r&&/%$/.test(r))return n/(t+parseFloat(r)/100*(t-1));let e=Number(r);return(n+e)/(t||1)-e}return(0,f.relativeLength)(o,n)},setTreeValues:function e(t,i){let s=i.before,r=i.idRoot,o=i.mapIdToNode[r],n=!1!==i.levelIsConstant,a=i.points[t.i],l=a&&a.options||{},d=[],h=0;t.levelDynamic=t.level-(n?0:o.level),t.name=(a&&a.name)??"",t.visible=r===t.id||!0===i.visible,"function"==typeof s&&(t=s(t,i)),t.children.forEach((s,r)=>{let o=(0,f.extend)({},i);(0,f.extend)(o,{index:r,siblings:t.children.length,visible:t.visible}),s=e(s,o),d.push(s),s.visible&&(h+=s.val)});let c=l.value??h;return t.visible=c>=0&&(h>0||t.visible),t.children=d,t.childrenTotal=h,t.isLeaf=t.visible&&!h,t.val=c,t},updateRootId:function(e){let t,i;return(0,f.isObject)(e)&&(i=(0,f.isObject)(e.options)?e.options:{},t=e.rootNode??i.rootId??"",(0,f.isObject)(e.userOptions)&&(e.userOptions.rootId=t),e.rootNode=t),t}};function J(e){return Array(e.dataTable.rowCount).fill(void 0).map((t,i)=>e.dataTable.getRowObject(i))}function Q(e){return{from:e.collapseStart||0,to:e.collapseEnd||0,showPoints:!1}}function Z(e,t,i){var s;let r,o=[],n=[],a={},l=t||!1,d={},h=-1,c=_(e,{after:function(e){let t=d[e.pos],i=0,s=0;t.children.forEach(function(e){s+=(e.descendants||0)+1,i=Math.max((e.height||0)+1,i)}),t.descendants=s,t.height=i,t.collapsed&&n.push(t)},before:function(e){let t,i,s=(0,f.isObject)(e.data,!0)?e.data:{},r=(0,f.isString)(s.name)?s.name:"",n=a[e.parent],c=(0,f.isObject)(n,!0)?d[n.pos]:null;l&&(0,f.isObject)(c,!0)&&(t=(0,f.find)(c.children,function(e){return e.name===r}))?(i=t.pos,t.nodes.push(e)):i=h++,!d[i]&&(d[i]=t={depth:c?c.depth+1:0,name:r,id:s.id,nodes:[e],children:[],pos:i},-1!==i&&o.push(r),(0,f.isObject)(c,!0)&&c.children.push(t)),(0,f.isString)(e.id)&&(a[e.id]=e),t&&!0===s.collapsed&&(t.collapsed=!0),e.pos=i}});return s=d,{categories:o,mapOfIdToNode:a,mapOfPosToGridNode:d=(r=function(e,t,s){let o=e.nodes,n=t+(-1===t?0:i-1),a=(n-t)/2,l=t+a;return o.forEach(function(e){let i=e.data;(0,f.isObject)(i,!0)&&(i.y=t+(i.yIndex||0)),e.pos=l}),s[l]=e,e.pos=l,e.tickmarkOffset=a+.5,e.collapseStart=n+.5,e.children.forEach(function(e){r(e,n+1,s),n=(e.collapseEnd||0)-.5}),e.collapseEnd=n+.5,s})(s["-1"],-1,{}),collapsedNodes:n,tree:c}}function ee(e){let t=e.target;t.axes.filter(e=>"treegrid"===e.type).forEach(function(i){let s=i.options,r=s.labels,o=i.uniqueNames,n=t.time.parse(s.max),a=!i.treeGrid.mapOfPosToGridNode||i.series.some(function(e){return!e.hasRendered||e.isDirtyData||e.isDirty}),l=0,d,h;if(a){let s=[];if(d=i.series.reduce(function(e,i){let r=J(i),n=r[0],a=Array.isArray(n)&&!n.find(e=>"object"==typeof e);return s.push(a),i.visible&&(r.forEach(function(s){(a||i.options.keys?.length)&&(s=i.pointClass.prototype.optionsToObject.call({series:i},s),i.pointClass.setGanttPointAliases(s,t)),(0,f.isObject)(s,!0)&&(s.yIndex=l,s.seriesIndex=i.index,e.push(s))}),!0===o&&l++),e},[]),n&&d.length<n)for(let e=d.length;e<=n;e++)d.push({name:e+""});i.categories=(h=Z(d,o||!1,!0===o?l:1)).categories,i.treeGrid.mapOfPosToGridNode=h.mapOfPosToGridNode,i.hasNames=!0,i.treeGrid.tree=h.tree,i.series.forEach(e=>{let t=d.filter(t=>t.seriesIndex===e.index);t.forEach(e=>{delete e.seriesIndex,delete e.yIndex}),e.visible&&e.setData(t,!1)}),i.treeGrid.mapOptionsToLevel=Y({defaults:r,from:1,levels:r?.levels,to:i.treeGrid.tree?.height}),"beforeRender"===e.type&&(i.treeGrid.collapsedNodes=h.collapsedNodes)}})}function et(e,t){let i=this.treeGrid.mapOptionsToLevel||{},s="treegrid"===this.type,o=this.ticks,n=this.treeGrid.mapOfPosToGridNode?.[t],a=o[t],l,d;s&&n?((l=i[n.depth])&&(d={labels:l}),!a&&r?o[t]=a=new r(this,t,void 0,void 0,{category:n.name,tickmarkOffset:n.tickmarkOffset,options:d}):(a.parameters.category=n.name,a.options=d,a.addLabel(),this.isDirty=!0)):e.apply(this,Array.prototype.slice.call(arguments,1))}function ei(e,t,i,s){let r=this,o="treegrid"===i.type;r.treeGrid||(r.treeGrid=new eo(r)),o&&((0,f.addEvent)(t,"beforeRender",ee,{order:0}),(0,f.addEvent)(t,"beforeRedraw",ee),(0,f.addEvent)(t,"addSeries",function(e){if(e.options.data){let t=Z(e.options.data,i.uniqueNames||!1,1);r.treeGrid.collapsedNodes=(r.treeGrid.collapsedNodes||[]).concat(t.collapsedNodes)}}),(0,f.addEvent)(r,"foundExtremes",function(){r.treeGrid.collapsedNodes?.forEach(function(e){let t=r.treeGrid.collapse(e);r.brokenAxis&&(r.brokenAxis.setBreaks(t,!1),r.treeGrid.collapsedNodes&&(r.treeGrid.collapsedNodes=r.treeGrid.collapsedNodes.filter(t=>e.collapseStart!==t.collapseStart||e.collapseEnd!==t.collapseEnd)))})}),(0,f.addEvent)(r,"afterBreaks",function(){"yAxis"===r.coll&&!r.staticScale&&r.chart.options.chart.height&&(r.isDirty=!0)}),i=(0,f.merge)({grid:{enabled:!0},labels:{align:"left",levels:[{level:void 0},{level:1,style:{fontWeight:"bold"}}],symbol:{type:"triangle",x:-5,y:-3,height:6,width:8}},uniqueNames:!1},i,{reversed:!0})),e.apply(r,[t,i,s]),o&&(r.hasNames=!0,r.options.showLastLabel=!0)}function es(e){let t=this.options,i=this.chart.time,s=this.linkedParent;if("treegrid"===this.type){if(this.min=this.userMin??i.parse(t.min)??this.dataMin,this.max=this.userMax??i.parse(t.max)??this.dataMax,(0,f.fireEvent)(this,"foundExtremes"),this.setAxisTranslation(),this.tickInterval=1,this.tickmarkOffset=.5,this.tickPositions=this.treeGrid.mapOfPosToGridNode?this.treeGrid.getTickPositions():[],s){let e=s.getExtremes();this.min=e.min??e.dataMin,this.max=e.max??e.dataMax,this.tickPositions=s.tickPositions}this.linkedParent=s}else e.apply(this,Array.prototype.slice.call(arguments,1))}function er(e){let t=this;"treegrid"===this.type&&t.visible&&t.tickPositions.forEach(function(e){let i=t.ticks[e];i.label?.attachedTreeGridEvents&&((0,f.removeEvent)(i.label.element),i.label.attachedTreeGridEvents=!1)}),e.apply(t,Array.prototype.slice.call(arguments,1))}class eo{static compose(e,t,i,s){var o,n,a;if((0,f.pushUnique)(K,"Axis.TreeGrid")){let t=e.prototype;(0,f.wrap)(t,"generateTick",et),(0,f.wrap)(t,"init",ei),(0,f.wrap)(t,"setTickInterval",es),(0,f.wrap)(t,"redraw",er),t.utils={getNode:D},r||(r=s)}return o=e,n=t,a=s,(0,f.pushUnique)(v,"Axis.Grid")&&(o.prototype.getMaxLabelDimensions=E,(0,f.wrap)(o.prototype,"unsquish",R),(0,f.wrap)(o.prototype,"getOffset",O),(0,f.addEvent)(o,"init",S),(0,f.addEvent)(o,"afterGetTitlePosition",A),(0,f.addEvent)(o,"afterInit",N),(0,f.addEvent)(o,"afterRender",w),(0,f.addEvent)(o,"afterSetAxisTranslation",I),(0,f.addEvent)(o,"afterSetOptions",G),(0,f.addEvent)(o,"afterSetOptions",B),(0,f.addEvent)(o,"afterSetScale",T),(0,f.addEvent)(o,"afterTickSize",M),(0,f.addEvent)(o,"trimTicks",W),(0,f.addEvent)(o,"destroy",L),(0,f.addEvent)(n,"afterSetChartSize",C),(0,f.addEvent)(a,"afterGetLabelPosition",j),(0,f.addEvent)(a,"labelFormat",z)),b.compose(e,i),U.compose(s),e}constructor(e){this.pendingSizeAdjustment=0,this.axis=e}setCollapsedStatus(e){let t=this.axis,i=t.chart;t.series.forEach(function(t){let s=J(t);if(e.id&&s){let r=i.get(e.id),o=s[t.data.indexOf(r)];t.dataTable.setRow({collapsed:e.collapsed},t.data.indexOf(r)),r&&(0,f.isObject)(o,!0)&&(r.collapsed=e.collapsed,o.collapsed=e.collapsed)}})}collapse(e){let t=this.axis,i=t.options.breaks||[],s=Q(e);return i.push(s),e.collapsed=!0,t.treeGrid.setCollapsedStatus(e),i}expand(e){let t=this.axis,i=Q(e);return e.collapsed=!1,t.treeGrid.setCollapsedStatus(e),t.options.breaks?.reduce(function(e,t){return(t.to!==i.to||t.from!==i.from)&&e.push(t),e},[])||[]}getTickPositions(){let e=this.axis,t=Math.floor(e.min/e.tickInterval)*e.tickInterval,i=Math.ceil(e.max/e.tickInterval)*e.tickInterval;return Object.keys(e.treeGrid.mapOfPosToGridNode||{}).reduce(function(s,r){let o=+r;return o>=t&&o<=i&&!e.brokenAxis?.isInAnyBreak(o)&&s.push(o),s},[])}isCollapsed(e){let t=this.axis.options.breaks||[],i=Q(e);return t.some(function(e){return e.from===i.from&&e.to===i.to})}toggleCollapse(e){return this.isCollapsed(e)?this.expand(e):this.collapse(e)}}let en=p();eo.compose(en.Axis,en.Chart,en.Series,en.Tick);let ea=p();return c.default})());
|