highcharts 13.0.1 → 13.0.2
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 +2 -3
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +6 -4
- package/es-modules/Accessibility/Components/LegendComponent.js +2 -2
- package/es-modules/Accessibility/Components/NavigatorComponent.js +2 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +13 -10
- package/es-modules/Accessibility/Components/ZoomComponent.js +2 -2
- package/es-modules/Accessibility/FocusBorder.js +2 -2
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +1 -2
- package/es-modules/Core/Animation/AnimationUtilities.js +3 -2
- package/es-modules/Core/Axis/Axis.js +48 -57
- package/es-modules/Core/Axis/Axis3DComposition.js +8 -6
- package/es-modules/Core/Axis/BrokenAxis.js +6 -5
- package/es-modules/Core/Axis/Color/ColorAxis.js +17 -10
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +2 -2
- package/es-modules/Core/Axis/GridAxis.js +4 -4
- package/es-modules/Core/Axis/LogarithmicAxis.js +5 -3
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +2 -2
- package/es-modules/Core/Axis/OrdinalAxis.js +9 -7
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -2
- package/es-modules/Core/Axis/RadialAxis.js +15 -9
- package/es-modules/Core/Axis/ScrollbarAxis.js +3 -3
- package/es-modules/Core/Axis/Stacking/StackItem.js +5 -5
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +4 -4
- package/es-modules/Core/Axis/Tick.js +10 -11
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -3
- package/es-modules/Core/Chart/Chart.js +14 -14
- package/es-modules/Core/Chart/Chart3D.js +3 -3
- package/es-modules/Core/Chart/ChartDefaults.js +23 -0
- package/es-modules/Core/Chart/MapChart.js +7 -5
- package/es-modules/Core/Chart/StockChart.js +15 -11
- package/es-modules/Core/Color/Color.js +3 -1
- package/es-modules/Core/Defaults.js +35 -0
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +16 -12
- package/es-modules/Core/Legend/LegendSymbol.js +2 -2
- package/es-modules/Core/MSPointer.js +2 -2
- package/es-modules/Core/Math3D.js +6 -7
- package/es-modules/Core/Pointer.js +9 -9
- package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGElement.js +11 -9
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +5 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +5 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +11 -9
- package/es-modules/Core/Renderer/SVG/Symbols.js +6 -5
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +7 -5
- package/es-modules/Core/Series/DataLabel.js +8 -6
- package/es-modules/Core/Series/OverlappingDataLabels.js +5 -2
- package/es-modules/Core/Series/Point.js +3 -3
- package/es-modules/Core/Series/Series.js +37 -21
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Templating.js +2 -2
- package/es-modules/Core/Tooltip.js +11 -7
- package/es-modules/Core/Utilities.js +4 -3
- package/es-modules/Data/Connectors/DataConnector.js +2 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/DataTable.js +17 -0
- package/es-modules/Extensions/Annotations/Annotation.js +4 -4
- package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -2
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +2 -2
- package/es-modules/Extensions/Annotations/EventEmitter.js +4 -4
- package/es-modules/Extensions/Annotations/NavigationBindings.js +6 -3
- package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/Popup.js +3 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -6
- package/es-modules/Extensions/Annotations/Types/Measure.js +3 -3
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +3 -3
- package/es-modules/Extensions/Boost/BoostChart.js +11 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +8 -9
- package/es-modules/Extensions/Boost/WGLRenderer.js +9 -6
- package/es-modules/Extensions/Boost/WGLShader.js +3 -3
- package/es-modules/Extensions/BoostCanvas.js +2 -2
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +5 -4
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +2 -2
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +4 -3
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +2 -2
- package/es-modules/Extensions/DraggablePoints/DragDropProps.js +2 -3
- package/es-modules/Extensions/ExportData/ExportData.js +17 -16
- package/es-modules/Extensions/Exporting/Exporting.js +7 -7
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +2 -2
- package/es-modules/Extensions/Pane/PaneComposition.js +2 -2
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -2
- package/es-modules/Extensions/PatternFill.js +7 -5
- package/es-modules/Extensions/PriceIndication.js +5 -4
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +7 -7
- package/es-modules/Extensions/Sonification/MIDI.js +2 -3
- package/es-modules/Extensions/Sonification/Sonification.js +2 -2
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +3 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +3 -3
- package/es-modules/Extensions/Sonification/TimelineFromChart.js +11 -11
- package/es-modules/Gantt/Legacy.js +2 -2
- package/es-modules/Gantt/Pathfinder.js +3 -3
- package/es-modules/Gantt/PathfinderAlgorithms.js +4 -3
- package/es-modules/Gantt/Tree.js +1 -1
- package/es-modules/Maps/MapNavigation.js +4 -4
- package/es-modules/Maps/MapPointer.js +2 -2
- package/es-modules/Maps/MapView.js +2 -2
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +8 -6
- package/es-modules/Series/Area/AreaSeries.js +4 -5
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +13 -4
- package/es-modules/Series/Bubble/BubbleLegendItem.js +10 -6
- package/es-modules/Series/Bubble/BubbleSeries.js +10 -9
- package/es-modules/Series/Bullet/BulletSeries.js +17 -10
- package/es-modules/Series/CenteredUtilities.js +7 -5
- package/es-modules/Series/Column/ColumnSeries.js +2 -2
- package/es-modules/Series/Column3D/Column3DComposition.js +6 -5
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +4 -4
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +4 -2
- package/es-modules/Series/Cylinder/CylinderComposition.js +2 -2
- package/es-modules/Series/DataModifyComposition.js +9 -7
- package/es-modules/Series/DotPlot/DotPlotSeries.js +3 -2
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +14 -3
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +24 -7
- package/es-modules/Series/FlowMap/FlowMapPoint.js +5 -3
- package/es-modules/Series/FlowMap/FlowMapSeries.js +17 -9
- package/es-modules/Series/Funnel/FunnelSeries.js +2 -2
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +7 -5
- package/es-modules/Series/Gauge/GaugeSeries.js +2 -2
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +4 -4
- package/es-modules/Series/Heatmap/HeatmapPoint.js +6 -6
- package/es-modules/Series/Heatmap/HeatmapPointOptions.js +12 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +13 -13
- package/es-modules/Series/Heatmap/HeatmapSeriesOptions.js +12 -0
- package/es-modules/Series/Histogram/HistogramPoint.js +17 -0
- package/es-modules/Series/Histogram/HistogramPointOptions.js +12 -0
- package/es-modules/Series/Histogram/HistogramSeries.js +14 -2
- package/es-modules/Series/Histogram/HistogramSeriesOptions.js +12 -0
- package/es-modules/Series/InterpolationUtilities.js +5 -5
- package/es-modules/Series/Item/ItemPointOptions.js +14 -0
- package/es-modules/Series/Item/ItemSeries.js +18 -6
- package/es-modules/Series/Item/ItemSeriesOptions.js +14 -0
- package/es-modules/Series/Map/MapPoint.js +5 -3
- package/es-modules/Series/Map/MapSeries.js +5 -8
- package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +3 -3
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -2
- package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +18 -9
- package/es-modules/Series/NodesComposition.js +9 -10
- package/es-modules/Series/Organization/OrganizationPoint.js +3 -2
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +5 -5
- package/es-modules/Series/Pictorial/PictorialSeries.js +4 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +2 -2
- package/es-modules/Series/Pie/PieSeries.js +3 -2
- package/es-modules/Series/Pie3D/Pie3DSeries.js +8 -4
- package/es-modules/Series/PolarComposition.js +8 -7
- package/es-modules/Series/Sankey/SankeySeries.js +11 -5
- package/es-modules/Series/Scatter/ScatterSeries.js +6 -5
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +2 -2
- package/es-modules/Series/Spline/SplineSeries.js +5 -5
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +8 -6
- package/es-modules/Series/Tilemap/TilemapShapes.js +2 -2
- package/es-modules/Series/Timeline/TimelinePoint.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +4 -3
- package/es-modules/Series/TreeUtilities.js +16 -7
- package/es-modules/Series/Treegraph/TreegraphLink.js +2 -2
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +14 -11
- package/es-modules/Series/VariablePie/VariablePieSeries.js +6 -4
- package/es-modules/Series/Variwide/VariwideSeries.js +2 -2
- package/es-modules/Series/Waterfall/WaterfallSeries.js +2 -2
- package/es-modules/Series/Windbarb/WindbarbSeries.js +2 -2
- package/es-modules/Shared/TimeBase.js +8 -2
- package/es-modules/Shared/Utilities.js +9 -7
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -3
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -2
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +4 -4
- package/es-modules/Stock/Navigator/Navigator.js +26 -26
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +4 -4
- package/es-modules/Stock/RangeSelector/RangeSelector.js +15 -11
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +3 -3
- package/es-modules/Stock/Scrollbar/Scrollbar.js +8 -7
- package/es-modules/Stock/StockTools/StockToolbar.js +5 -5
- package/es-modules/Stock/StockTools/StockTools.js +2 -2
- package/es-modules/Stock/StockTools/StockToolsGui.js +4 -2
- 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 +7 -2
- 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 +40 -32
- package/esm/highcharts-autoload.js +1 -1
- package/esm/highcharts-autoload.src.js +1 -1
- 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 +90 -56
- package/esm/highcharts.js +4 -4
- package/esm/highcharts.src.js +312 -207
- 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 +1 -1
- package/esm/i18n/fr-FR.src.js +1 -1
- package/esm/i18n/nb-NO.js +1 -1
- package/esm/i18n/nb-NO.src.js +1 -1
- package/esm/i18n/zh-CN.js +1 -1
- package/esm/i18n/zh-CN.src.js +1 -1
- package/esm/indicators/acceleration-bands.js +1 -1
- package/esm/indicators/acceleration-bands.src.js +1 -1
- package/esm/indicators/accumulation-distribution.js +1 -1
- package/esm/indicators/accumulation-distribution.src.js +1 -1
- package/esm/indicators/ao.js +1 -1
- package/esm/indicators/ao.src.js +1 -1
- package/esm/indicators/apo.js +1 -1
- package/esm/indicators/apo.src.js +1 -1
- package/esm/indicators/aroon-oscillator.js +1 -1
- package/esm/indicators/aroon-oscillator.src.js +1 -1
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +3 -3
- package/esm/indicators/atr.js +1 -1
- package/esm/indicators/atr.src.js +1 -1
- package/esm/indicators/bollinger-bands.js +1 -1
- package/esm/indicators/bollinger-bands.src.js +1 -1
- package/esm/indicators/cci.js +1 -1
- package/esm/indicators/cci.src.js +1 -1
- package/esm/indicators/chaikin.js +1 -1
- package/esm/indicators/chaikin.src.js +1 -1
- package/esm/indicators/cmf.js +1 -1
- package/esm/indicators/cmf.src.js +1 -1
- package/esm/indicators/cmo.js +1 -1
- package/esm/indicators/cmo.src.js +1 -1
- package/esm/indicators/dema.js +1 -1
- package/esm/indicators/dema.src.js +1 -1
- package/esm/indicators/disparity-index.js +1 -1
- package/esm/indicators/disparity-index.src.js +1 -1
- package/esm/indicators/dmi.js +1 -1
- package/esm/indicators/dmi.src.js +1 -1
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +4 -3
- package/esm/indicators/ichimoku-kinko-hyo.js +1 -1
- package/esm/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +8 -7
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +2 -2
- package/esm/indicators/keltner-channels.js +1 -1
- package/esm/indicators/keltner-channels.src.js +1 -1
- package/esm/indicators/klinger.js +1 -1
- package/esm/indicators/klinger.src.js +1 -1
- package/esm/indicators/macd.js +1 -1
- package/esm/indicators/macd.src.js +1 -1
- package/esm/indicators/mfi.js +1 -1
- package/esm/indicators/mfi.src.js +1 -1
- package/esm/indicators/momentum.js +1 -1
- package/esm/indicators/momentum.src.js +1 -1
- package/esm/indicators/natr.js +1 -1
- package/esm/indicators/natr.src.js +1 -1
- package/esm/indicators/obv.js +1 -1
- package/esm/indicators/obv.src.js +1 -1
- package/esm/indicators/pivot-points.js +1 -1
- package/esm/indicators/pivot-points.src.js +1 -1
- package/esm/indicators/ppo.js +1 -1
- package/esm/indicators/ppo.src.js +1 -1
- package/esm/indicators/price-channel.js +1 -1
- package/esm/indicators/price-channel.src.js +1 -1
- package/esm/indicators/price-envelopes.js +1 -1
- package/esm/indicators/price-envelopes.src.js +1 -1
- package/esm/indicators/psar.js +1 -1
- package/esm/indicators/psar.src.js +1 -1
- package/esm/indicators/regressions.js +1 -1
- package/esm/indicators/regressions.src.js +1 -1
- package/esm/indicators/roc.js +1 -1
- package/esm/indicators/roc.src.js +1 -1
- package/esm/indicators/rsi.js +1 -1
- package/esm/indicators/rsi.src.js +2 -2
- package/esm/indicators/slow-stochastic.js +1 -1
- package/esm/indicators/slow-stochastic.src.js +1 -1
- package/esm/indicators/stochastic.js +1 -1
- package/esm/indicators/stochastic.src.js +1 -1
- package/esm/indicators/supertrend.js +1 -1
- package/esm/indicators/supertrend.src.js +1 -1
- package/esm/indicators/tema.js +1 -1
- package/esm/indicators/tema.src.js +1 -1
- package/esm/indicators/trendline.js +1 -1
- package/esm/indicators/trendline.src.js +1 -1
- package/esm/indicators/trix.js +1 -1
- package/esm/indicators/trix.src.js +1 -1
- package/esm/indicators/volume-by-price.js +1 -1
- package/esm/indicators/volume-by-price.src.js +1 -1
- package/esm/indicators/vwap.js +1 -1
- package/esm/indicators/vwap.src.js +1 -1
- package/esm/indicators/williams-r.js +1 -1
- package/esm/indicators/williams-r.src.js +1 -1
- package/esm/indicators/wma.js +1 -1
- package/esm/indicators/wma.src.js +1 -1
- package/esm/indicators/zigzag.js +1 -1
- package/esm/indicators/zigzag.src.js +1 -1
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +69 -63
- package/esm/modules/annotations-advanced.js +3 -3
- package/esm/modules/annotations-advanced.src.js +25 -23
- package/esm/modules/annotations.js +3 -3
- package/esm/modules/annotations.src.js +21 -19
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +16 -15
- package/esm/modules/arrow-symbols.js +1 -1
- package/esm/modules/arrow-symbols.src.js +1 -1
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +29 -20
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +28 -19
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +6 -5
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +17 -10
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +18 -11
- package/esm/modules/contour.js +1 -1
- package/esm/modules/contour.src.js +1 -1
- package/esm/modules/current-date-indicator.js +1 -1
- package/esm/modules/current-date-indicator.src.js +1 -1
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +9 -10
- package/esm/modules/data-sorting.js +1 -1
- package/esm/modules/data-sorting.src.js +1 -1
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +20 -3
- package/esm/modules/data.js +1 -1
- package/esm/modules/data.src.js +1 -1
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +6 -5
- package/esm/modules/debugger.js +1 -1
- package/esm/modules/debugger.src.js +1 -1
- package/esm/modules/dependency-wheel.js +1 -1
- package/esm/modules/dependency-wheel.src.js +1 -1
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +3 -2
- package/esm/modules/drag-panes.js +1 -1
- package/esm/modules/drag-panes.src.js +1 -1
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +2 -3
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +5 -4
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +37 -9
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +17 -16
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +7 -7
- package/esm/modules/flowmap.js +2 -2
- package/esm/modules/flowmap.src.js +21 -11
- package/esm/modules/full-screen.js +1 -1
- package/esm/modules/full-screen.src.js +1 -1
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +2 -2
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +14 -13
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +93 -76
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +8 -8
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +4 -4
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +22 -22
- package/esm/modules/heikinashi.js +1 -1
- package/esm/modules/heikinashi.src.js +1 -1
- package/esm/modules/histogram-bellcurve.js +1 -1
- package/esm/modules/histogram-bellcurve.src.js +15 -3
- package/esm/modules/hollowcandlestick.js +1 -1
- package/esm/modules/hollowcandlestick.src.js +1 -1
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +18 -6
- package/esm/modules/lollipop.js +1 -1
- package/esm/modules/lollipop.src.js +1 -1
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +65 -57
- package/esm/modules/marker-clusters.js +1 -1
- package/esm/modules/marker-clusters.src.js +1 -1
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +3 -3
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +47 -45
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +31 -21
- package/esm/modules/no-data-to-display.js +1 -1
- package/esm/modules/no-data-to-display.src.js +1 -1
- package/esm/modules/non-cartesian-zoom.js +1 -1
- package/esm/modules/non-cartesian-zoom.src.js +1 -1
- package/esm/modules/offline-exporting.js +1 -1
- package/esm/modules/offline-exporting.src.js +1 -1
- package/esm/modules/organization.js +2 -2
- package/esm/modules/organization.src.js +3 -2
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +2 -2
- package/esm/modules/pareto.js +1 -1
- package/esm/modules/pareto.src.js +1 -1
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +7 -6
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +7 -5
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +10 -6
- package/esm/modules/pointandfigure.js +1 -1
- package/esm/modules/pointandfigure.src.js +1 -1
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +5 -4
- package/esm/modules/pyramid3d.js +1 -1
- package/esm/modules/pyramid3d.src.js +1 -1
- package/esm/modules/renko.js +1 -1
- package/esm/modules/renko.src.js +1 -1
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +34 -20
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +7 -7
- package/esm/modules/series-on-point.js +1 -1
- package/esm/modules/series-on-point.src.js +1 -1
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +2 -2
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +19 -19
- package/esm/modules/static-scale.js +1 -1
- package/esm/modules/static-scale.src.js +1 -1
- package/esm/modules/stock-tools.js +3 -3
- package/esm/modules/stock-tools.src.js +15 -10
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +90 -76
- package/esm/modules/streamgraph.js +1 -1
- package/esm/modules/streamgraph.src.js +1 -1
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +41 -26
- package/esm/modules/textpath.js +1 -1
- package/esm/modules/textpath.src.js +1 -1
- package/esm/modules/tiledwebmap.js +2 -2
- package/esm/modules/tiledwebmap.src.js +8 -6
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +3 -3
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +5 -4
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +17 -8
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +28 -18
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +35 -22
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +6 -4
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +2 -2
- package/esm/modules/vector.js +1 -1
- package/esm/modules/vector.src.js +1 -1
- package/esm/modules/venn.js +1 -1
- package/esm/modules/venn.src.js +1 -1
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +2 -2
- package/esm/modules/wordcloud.js +1 -1
- package/esm/modules/wordcloud.src.js +1 -1
- package/esm/modules/xrange.js +1 -1
- package/esm/modules/xrange.src.js +1 -1
- package/esm/standalone-navigator.js +4 -4
- package/esm/standalone-navigator.src.js +355 -249
- package/esm/themes/adaptive.js +1 -1
- package/esm/themes/adaptive.src.js +1 -1
- package/esm/themes/avocado.js +1 -1
- package/esm/themes/avocado.src.js +1 -1
- package/esm/themes/dark-unica.js +1 -1
- package/esm/themes/dark-unica.src.js +1 -1
- package/esm/themes/grid-light.js +1 -1
- package/esm/themes/grid-light.src.js +1 -1
- package/esm/themes/high-contrast.js +1 -1
- package/esm/themes/high-contrast.src.js +1 -1
- package/esm/themes/sand-signika.js +1 -1
- package/esm/themes/sand-signika.src.js +1 -1
- package/esm/themes/sunset.js +1 -1
- package/esm/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +40 -32
- package/highcharts-autoload.d.ts +8 -2
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +8 -2
- package/highcharts-autoload.src.js +313 -208
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +404 -283
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.js +90 -56
- package/highcharts.d.ts +61 -4
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +61 -4
- package/highcharts.src.js +312 -207
- package/highmaps.js +4 -4
- package/highmaps.src.js +390 -272
- package/highstock.js +4 -4
- package/highstock.src.js +413 -293
- package/i18n/fr-FR.js +1 -1
- package/i18n/fr-FR.src.js +1 -1
- package/i18n/nb-NO.js +1 -1
- package/i18n/nb-NO.src.js +1 -1
- package/i18n/zh-CN.js +1 -1
- package/i18n/zh-CN.src.js +1 -1
- package/indicators/acceleration-bands.js +1 -1
- package/indicators/acceleration-bands.src.js +1 -1
- package/indicators/accumulation-distribution.js +1 -1
- package/indicators/accumulation-distribution.src.js +1 -1
- package/indicators/ao.js +1 -1
- package/indicators/ao.src.js +1 -1
- package/indicators/apo.js +1 -1
- package/indicators/apo.src.js +1 -1
- package/indicators/aroon-oscillator.js +1 -1
- package/indicators/aroon-oscillator.src.js +1 -1
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +3 -3
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.src.js +1 -1
- package/indicators/cci.js +1 -1
- package/indicators/cci.src.js +1 -1
- package/indicators/chaikin.js +1 -1
- package/indicators/chaikin.src.js +1 -1
- package/indicators/cmf.js +1 -1
- package/indicators/cmf.src.js +1 -1
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +4 -3
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +8 -7
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +2 -2
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.js +1 -1
- package/indicators/klinger.src.js +1 -1
- package/indicators/macd.js +1 -1
- package/indicators/macd.src.js +1 -1
- package/indicators/mfi.js +1 -1
- package/indicators/mfi.src.js +1 -1
- package/indicators/momentum.js +1 -1
- package/indicators/momentum.src.js +1 -1
- package/indicators/natr.js +1 -1
- package/indicators/natr.src.js +1 -1
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +1 -1
- package/indicators/pivot-points.src.js +1 -1
- package/indicators/ppo.js +1 -1
- package/indicators/ppo.src.js +1 -1
- package/indicators/price-channel.js +1 -1
- package/indicators/price-channel.src.js +1 -1
- package/indicators/price-envelopes.js +1 -1
- package/indicators/price-envelopes.src.js +1 -1
- package/indicators/psar.js +1 -1
- package/indicators/psar.src.js +1 -1
- package/indicators/regressions.js +1 -1
- package/indicators/regressions.src.js +1 -1
- package/indicators/roc.js +1 -1
- package/indicators/roc.src.js +1 -1
- package/indicators/rsi.js +1 -1
- package/indicators/rsi.src.js +2 -2
- package/indicators/slow-stochastic.js +1 -1
- package/indicators/slow-stochastic.src.js +1 -1
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +1 -1
- package/indicators/supertrend.src.js +1 -1
- package/indicators/tema.js +1 -1
- package/indicators/tema.src.js +1 -1
- package/indicators/trendline.js +1 -1
- package/indicators/trendline.src.js +1 -1
- package/indicators/trix.js +1 -1
- package/indicators/trix.src.js +1 -1
- package/indicators/volume-by-price.js +1 -1
- package/indicators/volume-by-price.src.js +1 -1
- package/indicators/vwap.js +1 -1
- package/indicators/vwap.src.js +1 -1
- package/indicators/williams-r.js +1 -1
- package/indicators/williams-r.src.js +1 -1
- package/indicators/wma.js +1 -1
- package/indicators/wma.src.js +1 -1
- package/indicators/zigzag.js +1 -1
- package/indicators/zigzag.src.js +1 -1
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.js +69 -63
- package/modules/annotations-advanced.js +3 -3
- package/modules/annotations-advanced.src.js +25 -23
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.js +21 -19
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +16 -15
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +29 -20
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +28 -19
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +6 -5
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +17 -10
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +18 -11
- package/modules/contour.js +4 -4
- package/modules/contour.src.js +19 -12
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +9 -10
- package/modules/data-sorting.js +1 -1
- package/modules/data-sorting.src.js +1 -1
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +20 -3
- package/modules/data.js +1 -1
- package/modules/data.src.js +1 -1
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +6 -5
- package/modules/debugger.js +1 -1
- package/modules/debugger.src.js +1 -1
- package/modules/dependency-wheel.js +1 -1
- package/modules/dependency-wheel.src.js +1 -1
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +3 -2
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +2 -3
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +5 -4
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +37 -9
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.js +17 -16
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.js +7 -7
- package/modules/flowmap.js +2 -2
- package/modules/flowmap.src.js +21 -11
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.js +2 -2
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +14 -13
- package/modules/gantt.js +6 -6
- package/modules/gantt.src.js +96 -79
- package/modules/geoheatmap.d.ts +0 -12
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.d.ts +0 -12
- package/modules/geoheatmap.src.js +8 -8
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +4 -4
- package/modules/heatmap.d.ts +0 -12
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.d.ts +0 -12
- package/modules/heatmap.src.js +40 -33
- package/modules/heikinashi.js +1 -1
- package/modules/heikinashi.src.js +1 -1
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +15 -3
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +18 -6
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +0 -12
- package/modules/map.js +4 -4
- package/modules/map.src.d.ts +0 -12
- package/modules/map.src.js +83 -68
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.src.js +1 -1
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +3 -3
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.js +47 -45
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +31 -21
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/non-cartesian-zoom.js +1 -1
- package/modules/non-cartesian-zoom.src.js +1 -1
- package/modules/offline-exporting.js +1 -1
- package/modules/offline-exporting.src.js +1 -1
- package/modules/organization.js +2 -2
- package/modules/organization.src.js +3 -2
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +2 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +7 -6
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +7 -5
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +10 -6
- package/modules/pointandfigure.js +1 -1
- package/modules/pointandfigure.src.js +1 -1
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +5 -4
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/renko.js +1 -1
- package/modules/renko.src.js +1 -1
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +34 -20
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +7 -7
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.js +2 -2
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +19 -19
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +15 -10
- package/modules/stock.js +6 -6
- package/modules/stock.src.js +105 -89
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +41 -26
- package/modules/textpath.js +1 -1
- package/modules/textpath.src.js +1 -1
- package/modules/tiledwebmap.js +2 -2
- package/modules/tiledwebmap.src.js +8 -6
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +3 -3
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +5 -4
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +17 -8
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +28 -18
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +35 -22
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +6 -4
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +2 -2
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +1 -1
- package/modules/venn.js +1 -1
- package/modules/venn.src.js +1 -1
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +2 -2
- package/modules/wordcloud.js +1 -1
- package/modules/wordcloud.src.js +1 -1
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +2 -3
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +355 -249
- package/themes/adaptive.js +1 -1
- package/themes/adaptive.src.js +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/high-contrast.js +1 -1
- package/themes/high-contrast.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
package/esm/modules/exporting.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Highcharts JS v13.0.
|
|
2
|
+
* Highcharts JS v13.0.2 (2026-08-27)
|
|
3
3
|
* @module highcharts/modules/exporting
|
|
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
|
-
*/import*as e from"../highcharts.js";let t={};t.n=e=>{let n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{if(Array.isArray(n))for(var i=0;i<n.length;){var r=n[i++],o=n[i++];t.o(e,r)?0===o&&i++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:n[i++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let n=e.default;var i,r,o=t.n(n);let a=e.default.AST;var l=t.n(a);let s=e.default.Chart;var c=t.n(s),h=i||(i={});h.compose=function(e){return e.navigation||(e.navigation=new d(e)),e};class d{constructor(e){this.updates=[],this.chart=e}addUpdate(e){this.chart.navigation.updates.push(e)}update(e,t){this.updates.forEach(n=>{n.call(this.chart,e,t)})}}h.Additions=d;let p=i,{isSafari:u,win:g,win:{document:f}}=o(),m=g.URL||g.webkitURL||g;function y(e,t){let n=g.navigator,i=f.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");let r=/Edge\/\d+/.test(n.userAgent);if((u&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||r||e.length>2e6)&&!(e=function(e){let t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&g.atob&&g.ArrayBuffer&&g.Uint8Array&&g.Blob&&m.createObjectURL){let e=g.atob(t[3]),n=new g.ArrayBuffer(e.length),i=new g.Uint8Array(n);for(let t=0;t<i.length;++t)i[t]=e.charCodeAt(t);return m.createObjectURL(new g.Blob([i],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==i.download)i.href=e,i.download=t,f.body.appendChild(i),i.click(),f.body.removeChild(i);else try{if(!g.open(e,"chart"))throw Error("Failed to open window")}catch{g.location.href=e}}let{isTouchDevice:x}=o(),v={exporting:{allowHTML:!0,allowTableSorting:!0,local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${o().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen?.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.exporting?.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){await this.exporting?.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){await this.exporting?.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){await this.exporting?.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){await this.exporting?.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"var(--highcharts-neutral-color-60)",symbolStroke:"var(--highcharts-neutral-color-60)",symbolStrokeWidth:3,theme:{fill:"var(--highcharts-background-color)",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"var(--highcharts-background-color)",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"var(--highcharts-neutral-color-80)",padding:"0.5em",fontSize:x?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"var(--highcharts-neutral-color-5)"}}};!function(e){let t=[];function n(e,t,n,i){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+i/2+.5],["L",e+n,t+i/2+.5],["M",e,t+i-1.5],["L",e+n,t+i-1.5]]}function i(e,t,n,i){let r=i/3-2,o=[];return o.concat(this.circle(n-r,t,r,r),this.circle(n-r,t+r+4,r,r),this.circle(n-r,t+2*(r+4),r,r))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);let r=e.prototype.symbols;r.menu=n,r.menuball=i.bind(r)}}}(r||(r={}));let w=r,{composed:b}=o();function S(){this.fullscreen=new E(this)}class E{static compose(e){(0,n.pushUnique)(b,"Fullscreen")&&(0,n.addEvent)(e,"beforeRender",S)}constructor(e){this.chart=e,this.isOpen=!1;let t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let e=this,t=e.chart,i=t.options.chart;(0,n.fireEvent)(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,i.width=e.origWidthOption,i.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})}open(){let e=this,t=e.chart,i=t.options.chart;(0,n.fireEvent)(t,"fullscreenOpen",void 0,function(){if(i&&(e.origWidthOption=i.width,e.origHeightOption=i.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){let i=(0,n.addEvent)(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),r=(0,n.addEvent)(t,"destroy",i);e.unbindFullscreenEvent=()=>{i(),r()};let o=t.renderTo[e.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let e=this.chart,t=e.exporting?.divElements,n=e.options.exporting,i=n&&n.buttons&&n.buttons.contextButton.menuItems,r=e.options.lang;if(n?.menuItemDefinitions&&r?.exitFullscreen&&r.viewFullscreen&&i&&t){let e=t[i.indexOf("viewFullscreen")];e&&l().setElementHTML(e,this.isOpen?r.exitFullscreen:n.menuItemDefinitions.viewFullscreen?.text||r.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:C}=o(),O={ajax:function(e){let t={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},i=new XMLHttpRequest;function r(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;i.open((e.type||"get").toUpperCase(),e.url,!0),e.headers?.["Content-Type"]||i.setRequestHeader("Content-Type",t[e.dataType||"json"]||t.text),(0,n.objectEach)(e.headers,function(e,t){i.setRequestHeader(t,e)}),e.responseType&&(i.responseType=e.responseType),i.onreadystatechange=function(){let t;if(4===i.readyState){if(200===i.status){if("blob"!==e.responseType&&(t=i.responseText,"json"===e.dataType))try{t=JSON.parse(t)}catch(e){if(e instanceof Error)return r(i,e)}return e.success?.(t,i)}r(i,i.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),i.send(e.data)},getJSON:function(e,t){O.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})}};O.post=async function(e,t,i){let r=new C.FormData;(0,n.objectEach)(t,function(e,t){r.append(t,e)}),r.append("b64","true");let o=await C.fetch(e,{method:"POST",body:r,...i});if(o.ok){let e=await o.text(),i=document.createElement("a");i.href=`data:${t.type};base64,${e}`,i.download=t.filename,i.click(),(0,n.discardElement)(i)}};let{defaultOptions:T,setOptions:F}=o(),{composed:k,doc:R,isFirefox:N,isMS:A,isSafari:P,SVG_NS:M,win:D}=o();l().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),l().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let L=D.URL||D.webkitURL||D;class I{constructor(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(e,t,n){let i=await I.loadImage(e),r=R.createElement("canvas"),o=r?.getContext("2d");if(o)return r.height=i.height*t,r.width=i.width*t,o.drawImage(i,0,0,r.width,r.height),r.toDataURL(n);throw Error("No canvas found!")}static async fetchCSS(e){try{let t=await fetch(e),n=await t.text(),i=new CSSStyleSheet;return i.replaceSync(n),i}catch{(0,n.error)(`Warning: Failed to fetch CSS from ${e}`,!1)}}static extractFontFamilies(e){return e?e.split(",").map(e=>e.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean):[]}static selectorAffectsSVG(e,t){try{if(t.matches(e))return!0;return!!t.querySelector(e)}catch{return!1}}static collectSVGInlineFonts(e,t){for(let n of[e,...Array.from(e.querySelectorAll("text, tspan"))]){let e=n.getAttribute("style")||"",i=n.getAttribute("font-family")||"";if(e.indexOf("font-family")>-1){let n=e.match(/font-family\s*:\s*([^;]+)/i);for(let e of I.extractFontFamilies(n?.[1]))t.add(e)}for(let e of I.extractFontFamilies(i))t.add(e)}}static async handleStyleSheet(e,t,n,i,r=new Set){let o=e.href;if(o){if(r.has(o))return;r.add(o)}try{for(let a of Array.from(e.cssRules)){if(a instanceof CSSImportRule)try{let e=await I.fetchCSS(a.href);e&&await I.handleStyleSheet(e,t,n,i,r)}catch{}if(a instanceof CSSStyleRule&&I.selectorAffectsSVG(a.selectorText,i))for(let e of I.extractFontFamilies(a.style.fontFamily))n.add(e);if(a instanceof CSSFontFaceRule){let e=a.cssText;if(o){let t=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;e=e.replace(t,(e,t,n)=>{let i=new URL(n,o).href;return`url(${t}${i}${t})`})}t.push(e)}}}catch(e){if("SecurityError"===e.name&&o)try{let e=await I.fetchCSS(o);e&&await I.handleStyleSheet(e,t,n,i,r)}catch{}}}static async fetchStyleSheets(e){let t=[],n=new Set;for(let i of(I.collectSVGInlineFonts(e,n),Array.from(R.styleSheets)))await I.handleStyleSheet(i,t,n,e);return n.size?t.filter(e=>{let t=e.match(/font-family\s*:\s*([^;]+);?/i);return I.extractFontFamilies(t?.[1]).some(e=>n.has(e))}):t}static async inlineFonts(e){let t=await I.fetchStyleSheets(e),n=/url\(([^)]+)\)/g,i=[],r=t.join("\n"),o;for(;o=n.exec(r);){let e=o[1].replace(/['"]/g,"");i.includes(e)||i.push(e)}let a=e=>{let t="",n=new Uint8Array(e);for(let e=0;e<n.byteLength;e++)t+=String.fromCharCode(n[e]);return btoa(t)},l={};for(let e of i)try{let t=await fetch(e),n=t.headers.get("Content-Type")||"",i=a(await t.arrayBuffer());l[e]=`data:${n};base64,${i}`}catch{}r=r.replace(n,(e,t)=>{let n=t.replace(/['"]/g,"");return`url(${l[n]||n})`});let s=document.createElementNS("http://www.w3.org/2000/svg","style");return s.textContent=r,e.append(s),e}static loadImage(e){return new Promise((t,n)=>{let i=new D.Image;i.crossOrigin="Anonymous",i.onload=()=>{setTimeout(()=>{t(i)},I.loadEventDeferDelay)},i.onerror=e=>{n(e)},i.src=e})}static prepareImageOptions(e){let t=e?.type||"image/png",n=e?.libURL||T.exporting?.libURL;return{type:t,filename:(e?.filename||"chart")+"."+("image/svg+xml"===t?"svg":t.split("/")[1]),scale:e?.scale||1,libURL:n?.slice(-1)!=="/"?n+"/":n}}static sanitizeDOM(e){e.querySelectorAll("foreignObject").forEach(e=>{["width","height"].forEach(t=>{let n=e.getAttribute(t);n&&e.setAttribute(t,Math.ceil(1.15*parseInt(n,10)))})})}static sanitizeSVG(e,t){let n=e.lastIndexOf("</svg>");return n>-1&&(e=e.substr(0,n+6)),e=e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">').replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/ /g,"\xa0").replace(/­/g,"\xad")}static svgToDataURL(e){let t=D.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return L.createObjectURL(new D.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)}addButton(e){let t,i=this,r=i.chart,o=r.renderer,a=(0,n.merge)(r.options.navigation?.buttonOptions,e),l=a.onclick,s=a.menuItems,c=a.symbolSize||12;if(!1===a.enabled||!a.theme)return;let h=r.styledMode?{}:a.theme,d=()=>{};l?d=function(e){e&&e.stopPropagation(),l.call(r,e,r)}:s&&(d=function(e){e&&e.stopPropagation(),i.contextMenu(p.menuClassName,s,p.translateX||0,p.translateY||0,p.width||0,p.height||0,p),p.setState(2)}),a.text&&a.symbol?h.paddingLeft=(0,n.pick)(h.paddingLeft,30):a.text||(0,n.extend)(h,{width:a.width,height:a.height,padding:0});let p=o.button(a.text||"",0,0,d,h,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:(0,n.pick)(r.options.lang[a._titleKey||a.titleKey],"")});p.menuClassName=e.menuClassName||"highcharts-menu-"+i.btnCount++,a.symbol&&(t=o.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(p),r.styledMode||t.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),p.add(i.group).align((0,n.extend)(a,{width:p.width,x:(0,n.pick)(a.x,i.buttonOffset)}),!0,"spacingBox"),i.buttonOffset+=((p.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),i.svgElements.push(p,t)}afterPrint(){let e=this.chart;if(!this.printReverseInfo)return;let{childNodes:t,origDisplay:i,resetParams:r}=this.printReverseInfo;this.moveContainers(e.renderTo),[].forEach.call(t,function(e,t){1===e.nodeType&&(e.style.display=i[t]||"")}),this.isPrinting=!1,r&&e.setSize.apply(e,r),delete this.printReverseInfo,I.printingChart=void 0,(0,n.fireEvent)(e,"afterPrint")}beforePrint(){let e=this.chart,t=R.body,i=this.options.printMaxWidth,r={childNodes:t.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,e.pointer?.reset(void 0,0),(0,n.fireEvent)(e,"beforePrint"),i&&e.chartWidth>i&&(r.resetParams=[e.options.chart.width,void 0,!1],e.setSize(i,void 0,!1)),[].forEach.call(r.childNodes,function(e,t){1===e.nodeType&&(r.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(t),this.printReverseInfo=r}contextMenu(e,t,i,r,o,a,s){let c=this,h=c.chart,d=h.options.navigation,{chartWidth:p,chartHeight:u}=h,g="cache-"+e,f=Math.max(o,a),m,y=h[g];y||(c.contextMenuEl=h[g]=y=(0,n.createElement)("div",{className:e},{position:"absolute",zIndex:1e3,padding:f+"px",pointerEvents:"auto",...h.renderer.style},h.scrollablePlotArea?.fixedDiv||h.container),m=(0,n.createElement)("ul",{className:"highcharts-menu"},h.styledMode?{}:{listStyle:"none",margin:0,padding:0},y),h.styledMode||(0,n.css)(m,(0,n.extend)({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},d?.menuStyle||{})),y.hideMenu=function(){(0,n.css)(y,{display:"none"}),s&&s.setState(0),h.exporting&&(h.exporting.openMenu=!1),(0,n.css)(h.renderTo,{overflow:"hidden"}),(0,n.css)(h.container,{overflow:"hidden"}),(0,n.internalClearTimeout)(y.hideTimer),(0,n.fireEvent)(h,"exportMenuHidden")},c.events?.push((0,n.addEvent)(y,"mouseleave",function(){y.hideTimer=D.setTimeout(y.hideMenu,500)}),(0,n.addEvent)(y,"mouseenter",function(){(0,n.internalClearTimeout)(y.hideTimer)}),(0,n.addEvent)(R,"mouseup",function(t){h.pointer?.inClass(t.target,e)||y.hideMenu()}),(0,n.addEvent)(y,"click",function(){h.exporting?.openMenu&&y.hideMenu()})),t.forEach(function(e){if("string"==typeof e&&c.options.menuItemDefinitions?.[e]&&(e=c.options.menuItemDefinitions[e]),(0,n.isObject)(e,!0)){let t;e.separator?(t=(0,n.createElement)("li",{className:"highcharts-menu-item highcharts-separator",role:"separator"},void 0,m),h.styledMode||(0,n.css)(t,{border:"none",backgroundColor:"var(--highcharts-neutral-color-40)",height:"0.5px",margin:"10px 0",padding:0,listStyle:"none","pointer-events":"none"})):("viewData"===e.textKey&&c.isDataTableVisible&&(e.textKey="hideData"),t=(0,n.createElement)("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),y.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(h,arguments)}},void 0,m),l().setElementHTML(t,e.text||h.options.lang[e.textKey]),h.styledMode||(t.onmouseover=function(){(0,n.css)(this,d?.menuItemHoverStyle||{})},t.onmouseout=function(){(0,n.css)(this,d?.menuItemStyle||{})},(0,n.css)(t,(0,n.extend)({cursor:"pointer"},d?.menuItemStyle||{})))),c.divElements.push(t)}}),c.divElements.push(m,y),c.menuHeight=y.offsetHeight,c.menuWidth=y.offsetWidth);let x={display:"block"};i+(c.menuWidth||0)>p?x.right=p-i-o-f+"px":x.left=i-f+"px",r+a+(c.menuHeight||0)>u&&s.alignOptions?.verticalAlign!=="top"?x.bottom=u-r-f+"px":x.top=r+a-f+"px",(0,n.css)(y,x),(0,n.css)(h.renderTo,{overflow:""}),(0,n.css)(h.container,{overflow:""}),h.exporting&&(h.exporting.openMenu=!0),(0,n.fireEvent)(h,"exportMenuShown")}destroy(e){let t,i=e?e.target:this.chart,{divElements:r,events:o,svgElements:a}=this;a.forEach((e,n)=>{e&&(e.onclick=e.ontouchstart=null,i[t="cache-"+e.menuClassName]&&delete i[t],a[n]=e.destroy())}),a.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&((0,n.internalClearTimeout)(e.hideTimer),(0,n.removeEvent)(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,(0,n.discardElement)(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)}async downloadSVG(e,t){let i,r={svg:e,exportingOptions:t,exporting:this};if((0,n.fireEvent)(I.prototype,"downloadSVG",r),r.defaultPrevented)return;let{type:o,filename:a,scale:l,libURL:s}=I.prepareImageOptions(t);if("application/pdf"===o)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===o){if(void 0!==D.MSBlobBuilder){let t=new D.MSBlobBuilder;t.append(e),i=t.getBlob("image/svg+xml")}else i=I.svgToDataURL(e);y(i,a)}else{i=I.svgToDataURL(e);try{I.objectURLRevoke=!0;let e=await I.imageToDataURL(i,l,o);y(e,a)}catch(d){if("No canvas found!"===d.message)throw d;if(e.length>1e8)throw Error("Input too long");let t=R.createElement("canvas"),i=t.getContext("2d"),r=e.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),h=e.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(i&&r&&h){let d=r[1]*l,p=h[1]*l;if(t.width=d,t.height=p,!D.canvg){var c;if(!s)throw Error("Image export requires canvg. Set exporting.libURL or preload canvg.");I.objectURLRevoke=!0,await (c=s+"canvg.js",new Promise((e,t)=>{let i=f.getElementsByTagName("head")[0],r=f.createElement("script");r.type="text/javascript",r.src=c,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${c}`;(0,n.error)(e),t(Error(e))},i.appendChild(r)}))}D.canvg.Canvg.fromString(i,e).start(),y(D.navigator.msSaveOrOpenBlob?t.msToBlob():t.toDataURL(o),a)}}finally{if(I.objectURLRevoke)try{L.revokeObjectURL(i)}catch{}}}}async exportChart(e,t){if((e=(0,n.merge)(this.options,e)).local)await this.localExport(e,t||{});else{let n=await this.getSVGForExport(e,t);e.url&&await O.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)}}async fallbackToServer(e,t){!1===e.fallbackToExportServer?e.error?e.error(e,t):(0,n.error)(t?.message||28,!0,this.chart):"application/pdf"===e.type?(e.local=!1,await this.exportChart(e)):(0,n.error)(t.message,!1)}getChartHTML(e){let t=this.chart;return e&&this.inlineStyles(),this.resolveCSSVariables(),I.sanitizeDOM(t.renderer.box),t.container.querySelectorAll("canvas").forEach(function(e){let i=e.toDataURL("image/png"),r=e.parentNode,o=t.renderer.image(i,0,0,e.width,e.height);(0,n.css)(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),t.container.innerHTML}getFilename(){let e=this.chart.userOptions.title?.text,t=this.options.filename;return t?t.replace(/\//g,"-"):("string"==typeof e&&(t=e.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!t||t.length<5)&&(t="chart"),t)}getSVG(e,t){let i=this.chart,r,o,a=(0,n.merge)(i.options,e);a.plotOptions=(0,n.merge)(i.userOptions.plotOptions,e?.plotOptions),a.time=(0,n.merge)(i.userOptions.time,e?.time);let l=(0,n.createElement)("div",void 0,{position:"absolute",top:"-9999em",width:i.chartWidth+"px",height:i.chartHeight+"px"},R.body),s=i.renderTo.style.width,c=i.renderTo.style.height,h=a.exporting?.sourceWidth||a.chart.width||/px$/.test(s)&&parseInt(s,10)||(a.isGantt?800:600),d=a.exporting?.sourceHeight||a.chart.height||/px$/.test(c)&&parseInt(c,10)||400;(0,n.extend)(a.chart,{animation:!1,renderTo:l,forExport:!0,renderer:"SVGRenderer",width:h,height:d}),a.exporting&&(a.exporting.enabled=!1),delete a.data,a.series=[],i.series.forEach(function(e){(o=(0,n.merge)(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||a?.series?.push(o)});let p={};i.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,n.uniqueKey)()),a&&!e.options.isInternal&&(p[e.coll]||(p[e.coll]=!0,a[e.coll]=[]),a[e.coll].push((0,n.merge)(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),a.colorAxis=i.userOptions.colorAxis;let u=t=>{e&&["xAxis","yAxis","series"].forEach(function(n){e[n]&&t.update({[n]:e[n]})}),i.axes.forEach(function(i){let r=(0,n.find)(t.axes,e=>e.options.internalKey===i.userOptions.internalKey);if(r){let t=i.getExtremes(),o=(0,n.splat)(e?.[i.coll]||{})[0],a="min"in o?o.min:t.userMin,l="max"in o?o.max:t.userMax;(void 0!==a&&a!==r.min||void 0!==l&&l!==r.max)&&r.setExtremes(a??void 0,l??void 0,!0,!1)}});let o=t.exporting;return o?.options.applyStyleSheets&&this.applyShadowDOMStyles(t),(0,n.fireEvent)(i,"getSVG",{chartCopy:t}),r=o?.getChartHTML(i.styledMode||a?.exporting?.applyStyleSheets)||"",r=I.sanitizeSVG(r,a),(0,n.fireEvent)(i,"afterGetSVG",{chartCopy:t,svg:r}),a=void 0,t.destroy(),(0,n.discardElement)(l),r};return t?new Promise(e=>new i.constructor(a||{},function(t){i.callback?.call(this,t);let r=(0,n.addEvent)(this,"render",function(){r(),e(u(this))})})):u(new i.constructor(a,i.callback))}applyShadowDOMStyles(e){let t=this.chart,i=[],r=t.container,o;for(;r&&(!(o=r.getRootNode())||"object"!=typeof o.host);)r=r.parentNode,o=null;o?.querySelectorAll("style").forEach(t=>{let n=t.cloneNode(!0);e.renderer.defs.element.appendChild(n),i.push(n)}),(0,n.addEvent)(t,"afterGetSVG",()=>{i.forEach(e=>{e.remove()})})}async getSVGForExport(e,t){let i=this.options;return await this.getSVG((0,n.merge)({chart:{borderRadius:0}},i.chartOptions,t,{exporting:{sourceWidth:e?.sourceWidth||i.sourceWidth,sourceHeight:e?.sourceHeight||i.sourceHeight}}),!0)}inlineStyles(){let e,t=I.inlineDenylist,i=I.inlineAllowlist,r={},o=(0,n.createElement)("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},R.body),a=o.contentWindow?.document;a&&a.body.appendChild(a.createElementNS(M,"svg")),!function o(l){let s,c,h,d,p,u,g={};if(a&&1===l.nodeType&&-1===I.unstyledElements.indexOf(l.nodeName)){if(s=D.getComputedStyle(l,null),c="svg"===l.nodeName?{}:D.getComputedStyle(l.parentNode,null),!r[l.nodeName]){e=a.getElementsByTagName("svg")[0],h=a.createElementNS(l.namespaceURI,l.nodeName),e.appendChild(h);let t=D.getComputedStyle(h,null),n={};for(let e in t)e.length<1e3&&"string"==typeof t[e]&&!/^\d+$/.test(e)&&(n[e]=t[e]);r[l.nodeName]=n,"text"===l.nodeName&&delete r.text.fill,e.removeChild(h)}for(let e in s)(N||A||P||Object.hasOwnProperty.call(s,e))&&function(e,n){if(d=p=!1,i.length){for(u=i.length;u--&&!p;)p=i[u].test(n);d=!p}for("transform"===n&&"none"===e&&(d=!0),u=t.length;u--&&!d;){if(n.length>1e3)throw Error("Input too long");d=t[u].test(n)||"function"==typeof e}!d&&(c[n]!==e||"svg"===l.nodeName)&&r[l.nodeName][n]!==e&&(I.inlineToAttributes&&-1===I.inlineToAttributes.indexOf(n)?g[n]=e:e&&l.setAttribute(I.hyphenate(n),e))}(s[e],e);if((0,n.css)(l,g),"svg"===l.nodeName&&l.setAttribute("stroke-width","1px"),"text"===l.nodeName)return;[].forEach.call(l.children||l.childNodes,o)}}(this.chart.container.querySelector("svg")),e.parentNode.removeChild(e),o.parentNode.removeChild(o)}async localExport(e,t){let i=this.chart,r,o,a=null,l;if(A&&i.styledMode&&!I.inlineAllowlist.length&&I.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),A&&("application/pdf"===e.type||i.container.getElementsByTagName("image").length&&"image/svg+xml"!==e.type)||"application/pdf"===e.type&&[].some.call(i.container.getElementsByTagName("image"),function(e){let t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")}))return void await this.fallbackToServer(e,Error("Image type not supported for this chart/browser."));let s=(0,n.addEvent)(i,"afterGetSVG",e=>{o=e.chartCopy.options,l=(r=e.chartCopy.container.cloneNode(!0))&&r.getElementsByTagName("image")||[]});try{let i;for(let n of(await this.getSVGForExport(e,t),l?Array.from(l):[]))if(a=n.getAttributeNS("http://www.w3.org/1999/xlink","href")){I.objectURLRevoke=!1;let t=await I.imageToDataURL(a,e?.scale||1,e?.type||"image/png");n.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}else n.parentNode.removeChild(n);let s=r?.querySelector("svg");s&&!e.chartOptions?.chart?.style?.fontFamily&&await I.inlineFonts(s);let c=(i=r?.innerHTML,I.sanitizeSVG(i||"",o));if(c.indexOf("<foreignObject")>-1&&"image/svg+xml"!==e.type&&(A||"application/pdf"===e.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(c,(0,n.extend)({filename:this.getFilename()},e)),c}catch(t){await this.fallbackToServer(e,t)}finally{s()}}moveContainers(e){let t=this.chart,{scrollablePlotArea:n}=t;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})}print(){let e=this.chart;this.isPrinting||(I.printingChart=e,P||this.beforePrint(),setTimeout(()=>{D.focus(),D.print(),P||setTimeout(()=>{e.exporting?.afterPrint()},1e3)},1))}render(){let e=this,{chart:t,options:i}=e,r=e?.isDirty||!e?.svgElements.length;e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==i.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),(0,n.objectEach)(i?.buttons,function(t){e.addButton(t)}),e.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(e=>{["color","fill","stop-color","stroke"].forEach(t=>{let n=e.getAttribute(t);n?.includes("var(")&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));let i=e.style?.[t];i?.includes("var(")&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})}update(e,t){this.isDirty=!0,(0,n.merge)(!0,this.options,e),(0,n.pick)(t,!0)&&this.chart.redraw()}}I.inlineAllowlist=[],I.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],I.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],I.loadEventDeferDelay=150*!!A,I.unstyledElements=["clipPath","defs","desc"],function(e){function t(e){let t=e.exporting;t&&(t.render(),(0,n.addEvent)(e,"redraw",function(){this.exporting?.render()}),(0,n.addEvent)(e,"destroy",function(){this.exporting?.destroy()}))}function i(){let t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),p.compose(t).navigation.addUpdate((e,i)=>{t.exporting&&(t.exporting.isDirty=!0,(0,n.merge)(!0,t.options.navigation,e),(0,n.pick)(i,!0)&&t.redraw())}))}function r({alignTo:e,key:t,textPxLength:i}){let r=this.options.exporting,{align:o,buttonSpacing:a=0,verticalAlign:l,width:s=0}=(0,n.merge)(this.options.navigation?.buttonOptions,r?.buttons?.contextButton),c=e.width-i,h=s+a;(r?.enabled??!0)&&"title"===t&&"right"===o&&"top"===l&&c<2*h&&(c<h?e.width-=h:this.title?.alignValue!=="left"&&(e.x-=h-c/2))}e.compose=function(o,a){w.compose(a),E.compose(o),(0,n.pushUnique)(k,"Exporting")&&((0,n.extend)(c().prototype,{exportChart:async function(e,t){await this.exporting?.exportChart(e,t)},getChartHTML:function(e){return this.exporting?.getChartHTML(e)},getFilename:function(){return this.exporting?.getFilename()},getSVG:function(e){return this.exporting?.getSVG(e,!1)},print:function(){return this.exporting?.print()}}),o.prototype.callbacks.push(t),(0,n.addEvent)(o,"afterInit",i),(0,n.addEvent)(o,"layOutTitle",r),P&&D.matchMedia("print").addListener(function(t){e.printingChart&&(t.matches?e.printingChart.exporting?.beforePrint():e.printingChart.exporting?.afterPrint())}),F(v))}}(I||(I={}));let U=o();U.Exporting=I,U.HttpUtilities=U.HttpUtilities||O,U.ajax=U.HttpUtilities.ajax,U.getJSON=U.HttpUtilities.getJSON,U.post=U.HttpUtilities.post,I.compose(U.Chart,U.Renderer);let G=o();export{G as default};
|
|
13
|
+
*/import*as e from"../highcharts.js";let t={};t.n=e=>{let n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{if(Array.isArray(n))for(var i=0;i<n.length;){var r=n[i++],o=n[i++];t.o(e,r)?0===o&&i++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:n[i++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);let n=e.default;var i,r,o=t.n(n);let a=e.default.AST;var l=t.n(a);let s=e.default.Chart;var c=t.n(s),h=i||(i={});h.compose=function(e){return e.navigation||(e.navigation=new d(e)),e};class d{constructor(e){this.updates=[],this.chart=e}addUpdate(e){this.chart.navigation.updates.push(e)}update(e,t){this.updates.forEach(n=>{n.call(this.chart,e,t)})}}h.Additions=d;let p=i,{isSafari:u,win:g,win:{document:f}}=o(),m=g.URL||g.webkitURL||g;function y(e,t){let n=g.navigator,i=f.createElement("a");if("string"!=typeof e&&!(e instanceof String)&&n.msSaveOrOpenBlob)return void n.msSaveOrOpenBlob(e,t);if(e=""+e,n.userAgent.length>1e3)throw Error("Input too long");let r=/Edge\/\d+/.test(n.userAgent);if((u&&"string"==typeof e&&0===e.indexOf("data:application/pdf")||r||e.length>2e6)&&!(e=function(e){let t=e.replace(/filename=.*;/,"").match(/data:([^;]*)(;base64)?,([A-Z+\d\/]+)/i);if(t&&t.length>3&&g.atob&&g.ArrayBuffer&&g.Uint8Array&&g.Blob&&m.createObjectURL){let e=g.atob(t[3]),n=new g.ArrayBuffer(e.length),i=new g.Uint8Array(n);for(let t=0;t<i.length;++t)i[t]=e.charCodeAt(t);return m.createObjectURL(new g.Blob([i],{type:t[1]}))}}(e)||""))throw Error("Failed to convert to blob");if(void 0!==i.download)i.href=e,i.download=t,f.body.appendChild(i),i.click(),f.body.removeChild(i);else try{if(!g.open(e,"chart"))throw Error("Failed to open window")}catch{g.location.href=e}}let{isTouchDevice:x}=o(),v={exporting:{allowHTML:!0,allowTableSorting:!0,local:!0,type:"image/png",url:`https://export-svg.highcharts.com?v=${o().version}`,pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen?.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.exporting?.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:async function(){await this.exporting?.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:async function(){await this.exporting?.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:async function(){await this.exporting?.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:async function(){await this.exporting?.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:5,height:28,y:-5,verticalAlign:"top",width:28,symbolFill:"var(--highcharts-neutral-color-60)",symbolStroke:"var(--highcharts-neutral-color-60)",symbolStrokeWidth:3,theme:{fill:"var(--highcharts-background-color)",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"var(--highcharts-background-color)",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"var(--highcharts-neutral-color-80)",padding:"0.5em",fontSize:x?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"var(--highcharts-neutral-color-5)"}}};!function(e){let t=[];function n(e,t,n,i){return[["M",e,t+2.5],["L",e+n,t+2.5],["M",e,t+i/2+.5],["L",e+n,t+i/2+.5],["M",e,t+i-1.5],["L",e+n,t+i-1.5]]}function i(e,t,n,i){let r=i/3-2,o=[];return o.concat(this.circle(n-r,t,r,r),this.circle(n-r,t+r+4,r,r),this.circle(n-r,t+2*(r+4),r,r))}e.compose=function(e){if(-1===t.indexOf(e)){t.push(e);let r=e.prototype.symbols;r.menu=n,r.menuball=i.bind(r)}}}(r||(r={}));let w=r,{composed:b}=o();function S(){this.fullscreen=new E(this)}class E{static compose(e){(0,n.pushUnique)(b,"Fullscreen")&&(0,n.addEvent)(e,"beforeRender",S)}constructor(e){this.chart=e,this.isOpen=!1;let t=e.renderTo;!this.browserProps&&("function"==typeof t.requestFullscreen?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:t.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:t.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:t.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let e=this,t=e.chart,i=t.options.chart;(0,n.fireEvent)(t,"fullscreenClose",void 0,function(){e.isOpen&&e.browserProps&&t.container.ownerDocument instanceof Document&&t.container.ownerDocument[e.browserProps.exitFullscreen](),e.unbindFullscreenEvent&&(e.unbindFullscreenEvent=e.unbindFullscreenEvent()),t.setSize(e.origWidth,e.origHeight,!1),e.origWidth=void 0,e.origHeight=void 0,i.width=e.origWidthOption,i.height=e.origHeightOption,e.origWidthOption=void 0,e.origHeightOption=void 0,e.isOpen=!1,e.setButtonText()})}open(){let e=this,t=e.chart,i=t.options.chart;(0,n.fireEvent)(t,"fullscreenOpen",void 0,function(){if(i&&(e.origWidthOption=i.width,e.origHeightOption=i.height),e.origWidth=t.chartWidth,e.origHeight=t.chartHeight,e.browserProps){let i=(0,n.addEvent)(t.container.ownerDocument,e.browserProps.fullscreenChange,function(){e.isOpen?(e.isOpen=!1,e.close()):(t.setSize(null,null,!1),e.isOpen=!0,e.setButtonText())}),r=(0,n.addEvent)(t,"destroy",i);e.unbindFullscreenEvent=()=>{i(),r()};let o=t.renderTo[e.browserProps.requestFullscreen]();o&&o.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let e=this.chart,t=e.exporting?.divElements,n=e.options.exporting,i=n&&n.buttons&&n.buttons.contextButton.menuItems,r=e.options.lang;if(n?.menuItemDefinitions&&r?.exitFullscreen&&r.viewFullscreen&&i&&t){let e=t[i.indexOf("viewFullscreen")];e&&l().setElementHTML(e,this.isOpen?r.exitFullscreen:n.menuItemDefinitions.viewFullscreen?.text||r.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}let{win:C}=o(),O={ajax:function(e){let t={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},i=new XMLHttpRequest;function r(t,n){e.error&&e.error(t,n)}if(!e.url)return!1;i.open((e.type||"get").toUpperCase(),e.url,!0),e.headers?.["Content-Type"]||i.setRequestHeader("Content-Type",t[e.dataType||"json"]||t.text),(0,n.objectEach)(e.headers,function(e,t){i.setRequestHeader(t,e)}),e.responseType&&(i.responseType=e.responseType),i.onreadystatechange=function(){let t;if(4===i.readyState){if(200===i.status){if("blob"!==e.responseType&&(t=i.responseText,"json"===e.dataType))try{t=JSON.parse(t)}catch(e){if(e instanceof Error)return r(i,e)}return e.success?.(t,i)}r(i,i.responseText)}},e.data&&"string"!=typeof e.data&&(e.data=JSON.stringify(e.data)),i.send(e.data)},getJSON:function(e,t){O.ajax({url:e,success:t,dataType:"json",headers:{"Content-Type":"text/plain"}})}};O.post=async function(e,t,i){let r=new C.FormData;(0,n.objectEach)(t,function(e,t){r.append(t,e)}),r.append("b64","true");let o=await C.fetch(e,{method:"POST",body:r,...i});if(o.ok){let e=await o.text(),i=document.createElement("a");i.href=`data:${t.type};base64,${e}`,i.download=t.filename,i.click(),(0,n.discardElement)(i)}};let{defaultOptions:T,setOptions:F}=o(),{composed:k,doc:R,isFirefox:N,isMS:A,isSafari:P,SVG_NS:M,win:D}=o();l().allowedAttributes.push("data-z-index","fill-opacity","filter","preserveAspectRatio","rx","ry","stroke-dasharray","stroke-linejoin","stroke-opacity","text-anchor","transform","transform-origin","version","viewBox","visibility","xmlns","xmlns:xlink"),l().allowedTags.push("desc","clippath","fedropshadow","femorphology","g","image");let L=D.URL||D.webkitURL||D;class I{constructor(e,t){this.options={},this.chart=e,this.options=t,this.btnCount=0,this.buttonOffset=0,this.divElements=[],this.svgElements=[]}static hyphenate(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()})}static async imageToDataURL(e,t,n){let i=await I.loadImage(e),r=R.createElement("canvas"),o=r?.getContext("2d");if(o)return r.height=i.height*t,r.width=i.width*t,o.drawImage(i,0,0,r.width,r.height),r.toDataURL(n);throw Error("No canvas found!")}static async fetchCSS(e){try{let t=await fetch(e),n=await t.text(),i=new CSSStyleSheet;return i.replaceSync(n),i}catch{(0,n.error)(`Warning: Failed to fetch CSS from ${e}`,!1)}}static extractFontFamilies(e){return e?e.split(",").map(e=>e.trim().replace(/^['"]|['"]$/g,"")).filter(Boolean):[]}static selectorAffectsSVG(e,t){try{if(t.matches(e))return!0;return!!t.querySelector(e)}catch{return!1}}static collectSVGInlineFonts(e,t){for(let n of[e,...Array.from(e.querySelectorAll("text, tspan"))]){let e=n.getAttribute("style")||"",i=n.getAttribute("font-family")||"";if(e.indexOf("font-family")>-1){let n=e.match(/font-family\s*:\s*([^;]+)/i);for(let e of I.extractFontFamilies(n?.[1]))t.add(e)}for(let e of I.extractFontFamilies(i))t.add(e)}}static async handleStyleSheet(e,t,n,i,r=new Set){let o=e.href;if(o){if(r.has(o))return;r.add(o)}try{for(let a of Array.from(e.cssRules)){if(a instanceof CSSImportRule)try{let e=await I.fetchCSS(a.href);e&&await I.handleStyleSheet(e,t,n,i,r)}catch{}if(a instanceof CSSStyleRule&&I.selectorAffectsSVG(a.selectorText,i))for(let e of I.extractFontFamilies(a.style.fontFamily))n.add(e);if(a instanceof CSSFontFaceRule){let e=a.cssText;if(o){let t=/url\(\s*(['"]?)(?![a-z]+:|\/\/)([^'")]+?)\1\s*\)/gi;e=e.replace(t,(e,t,n)=>{let i=new URL(n,o).href;return`url(${t}${i}${t})`})}t.push(e)}}}catch(e){if("SecurityError"===e.name&&o)try{let e=await I.fetchCSS(o);e&&await I.handleStyleSheet(e,t,n,i,r)}catch{}}}static async fetchStyleSheets(e){let t=[],n=new Set;for(let i of(I.collectSVGInlineFonts(e,n),Array.from(R.styleSheets)))await I.handleStyleSheet(i,t,n,e);return n.size?t.filter(e=>{let t=e.match(/font-family\s*:\s*([^;]+);?/i);return I.extractFontFamilies(t?.[1]).some(e=>n.has(e))}):t}static async inlineFonts(e){let t=await I.fetchStyleSheets(e),n=/url\(([^)]+)\)/g,i=[],r=t.join("\n"),o;for(;o=n.exec(r);){let e=o[1].replace(/['"]/g,"");i.includes(e)||i.push(e)}let a=e=>{let t="",n=new Uint8Array(e);for(let e=0;e<n.byteLength;e++)t+=String.fromCharCode(n[e]);return btoa(t)},l={};for(let e of i)try{let t=await fetch(e),n=t.headers.get("Content-Type")||"",i=a(await t.arrayBuffer());l[e]=`data:${n};base64,${i}`}catch{}r=r.replace(n,(e,t)=>{let n=t.replace(/['"]/g,"");return`url(${l[n]||n})`});let s=document.createElementNS("http://www.w3.org/2000/svg","style");return s.textContent=r,e.append(s),e}static loadImage(e){return new Promise((t,n)=>{let i=new D.Image;i.crossOrigin="Anonymous",i.onload=()=>{setTimeout(()=>{t(i)},I.loadEventDeferDelay)},i.onerror=e=>{n(e)},i.src=e})}static prepareImageOptions(e){let t=e?.type||"image/png",n=e?.libURL||T.exporting?.libURL;return{type:t,filename:(e?.filename||"chart")+"."+("image/svg+xml"===t?"svg":t.split("/")[1]),scale:e?.scale||1,libURL:n?.slice(-1)!=="/"?n+"/":n}}static sanitizeDOM(e){e.querySelectorAll("foreignObject").forEach(e=>{["width","height"].forEach(t=>{let n=e.getAttribute(t);n&&e.setAttribute(t,Math.ceil(1.15*parseInt(n,10)))})})}static sanitizeSVG(e,t){let n=e.lastIndexOf("</svg>");return n>-1&&(e=e.substr(0,n+6)),e=e.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />").replace(/(<svg(?![^>]*xmlns=)[^>]*)>/g,'$1 xmlns="http://www.w3.org/2000/svg">').replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/<svg /,'<svg xmlns:xlink="http://www.w3.org/1999/xlink" ').replace(/ (NS\d+\:)?href=/g," xlink:href=").replace(/(<image[^>]*) xlink:href=/g,"$1 href=").replace(/\n+/g," ").replace(/ /g,"\xa0").replace(/­/g,"\xad")}static svgToDataURL(e){let t=D.navigator.userAgent,n=t.indexOf("WebKit")>-1&&0>t.indexOf("Chrome");try{if(!n&&-1===e.indexOf("<foreignObject"))return L.createObjectURL(new D.Blob([e],{type:"image/svg+xml;charset-utf-16"}))}catch{}return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(e)}addButton(e){let t,i=this,r=i.chart,o=r.renderer,a=(0,n.merge)(r.options.navigation?.buttonOptions,e),l=a.onclick,s=a.menuItems,c=a.symbolSize||12;if(!1===a.enabled||!a.theme)return;let h=r.styledMode?{}:a.theme,d=()=>{};l?d=function(e){e&&e.stopPropagation(),l.call(r,e,r)}:s&&(d=function(e){e&&e.stopPropagation(),i.contextMenu(p.menuClassName,s,p.translateX||0,p.translateY||0,p.width||0,p.height||0,p),p.setState(2)}),a.text&&a.symbol?h.paddingLeft=h.paddingLeft??30:a.text||(0,n.extend)(h,{width:a.width,height:a.height,padding:0});let p=o.button(a.text||"",0,0,d,h,void 0,void 0,void 0,void 0,a.useHTML).addClass(e.className||"").attr({title:r.options.lang[a._titleKey||a.titleKey]??""});p.menuClassName=e.menuClassName||"highcharts-menu-"+i.btnCount++,a.symbol&&(t=o.symbol(a.symbol,Math.round((a.symbolX||0)-c/2),Math.round((a.symbolY||0)-c/2),c,c,{width:c,height:c}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(p),r.styledMode||t.attr({stroke:a.symbolStroke,fill:a.symbolFill,"stroke-width":a.symbolStrokeWidth||1})),p.add(i.group).align((0,n.extend)(a,{width:p.width,x:a.x??i.buttonOffset}),!0,"spacingBox"),i.buttonOffset+=((p.width||0)+(a.buttonSpacing||0))*("right"===a.align?-1:1),i.svgElements.push(p,t)}afterPrint(){let e=this.chart;if(!this.printReverseInfo)return;let{childNodes:t,origDisplay:i,resetParams:r}=this.printReverseInfo;this.moveContainers(e.renderTo),[].forEach.call(t,function(e,t){1===e.nodeType&&(e.style.display=i[t]||"")}),this.isPrinting=!1,r&&e.setSize.apply(e,r),delete this.printReverseInfo,I.printingChart=void 0,(0,n.fireEvent)(e,"afterPrint")}beforePrint(){let e=this.chart,t=R.body,i=this.options.printMaxWidth,r={childNodes:t.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,e.pointer?.reset(void 0,0),(0,n.fireEvent)(e,"beforePrint"),i&&e.chartWidth>i&&(r.resetParams=[e.options.chart.width,void 0,!1],e.setSize(i,void 0,!1)),[].forEach.call(r.childNodes,function(e,t){1===e.nodeType&&(r.origDisplay[t]=e.style.display,e.style.display="none")}),this.moveContainers(t),this.printReverseInfo=r}contextMenu(e,t,i,r,o,a,s){let c=this,h=c.chart,d=h.options.navigation,{chartWidth:p,chartHeight:u}=h,g="cache-"+e,f=Math.max(o,a),m,y=h[g];y||(c.contextMenuEl=h[g]=y=(0,n.createElement)("div",{className:e},{position:"absolute",zIndex:1e3,padding:f+"px",pointerEvents:"auto",...h.renderer.style},h.scrollablePlotArea?.fixedDiv||h.container),m=(0,n.createElement)("ul",{className:"highcharts-menu"},h.styledMode?{}:{listStyle:"none",margin:0,padding:0},y),h.styledMode||(0,n.css)(m,(0,n.extend)({MozBoxShadow:"3px 3px 10px #0008",WebkitBoxShadow:"3px 3px 10px #0008",boxShadow:"3px 3px 10px #0008"},d?.menuStyle||{})),y.hideMenu=function(){(0,n.css)(y,{display:"none"}),s&&s.setState(0),h.exporting&&(h.exporting.openMenu=!1),(0,n.css)(h.renderTo,{overflow:"hidden"}),(0,n.css)(h.container,{overflow:"hidden"}),(0,n.internalClearTimeout)(y.hideTimer),(0,n.fireEvent)(h,"exportMenuHidden")},c.events?.push((0,n.addEvent)(y,"mouseleave",function(){y.hideTimer=D.setTimeout(y.hideMenu,500)}),(0,n.addEvent)(y,"mouseenter",function(){(0,n.internalClearTimeout)(y.hideTimer)}),(0,n.addEvent)(R,"mouseup",function(t){h.pointer?.inClass(t.target,e)||y.hideMenu()}),(0,n.addEvent)(y,"click",function(){h.exporting?.openMenu&&y.hideMenu()})),t.forEach(function(e){if("string"==typeof e&&c.options.menuItemDefinitions?.[e]&&(e=c.options.menuItemDefinitions[e]),(0,n.isObject)(e,!0)){let t;e.separator?(t=(0,n.createElement)("li",{className:"highcharts-menu-item highcharts-separator",role:"separator"},void 0,m),h.styledMode||(0,n.css)(t,{border:"none",backgroundColor:"var(--highcharts-neutral-color-40)",height:"0.5px",margin:"10px 0",padding:0,listStyle:"none","pointer-events":"none"})):("viewData"===e.textKey&&c.isDataTableVisible&&(e.textKey="hideData"),t=(0,n.createElement)("li",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),y.hideMenu(),"string"!=typeof e&&e.onclick&&e.onclick.apply(h,arguments)}},void 0,m),l().setElementHTML(t,e.text||h.options.lang[e.textKey]),h.styledMode||(t.onmouseover=function(){(0,n.css)(this,d?.menuItemHoverStyle||{})},t.onmouseout=function(){(0,n.css)(this,d?.menuItemStyle||{})},(0,n.css)(t,(0,n.extend)({cursor:"pointer"},d?.menuItemStyle||{})))),c.divElements.push(t)}}),c.divElements.push(m,y),c.menuHeight=y.offsetHeight,c.menuWidth=y.offsetWidth);let x={display:"block"};i+(c.menuWidth||0)>p?x.right=p-i-o-f+"px":x.left=i-f+"px",r+a+(c.menuHeight||0)>u&&s.alignOptions?.verticalAlign!=="top"?x.bottom=u-r-f+"px":x.top=r+a-f+"px",(0,n.css)(y,x),(0,n.css)(h.renderTo,{overflow:""}),(0,n.css)(h.container,{overflow:""}),h.exporting&&(h.exporting.openMenu=!0),(0,n.fireEvent)(h,"exportMenuShown")}destroy(e){let t,i=e?e.target:this.chart,{divElements:r,events:o,svgElements:a}=this;a.forEach((e,n)=>{e&&(e.onclick=e.ontouchstart=null,i[t="cache-"+e.menuClassName]&&delete i[t],a[n]=e.destroy())}),a.length=0,this.group&&(this.group.destroy(),delete this.group),r.forEach(function(e,t){e&&((0,n.internalClearTimeout)(e.hideTimer),(0,n.removeEvent)(e,"mouseleave"),r[t]=e.onmouseout=e.onmouseover=e.ontouchstart=e.onclick=null,(0,n.discardElement)(e))}),r.length=0,o&&(o.forEach(function(e){e()}),o.length=0)}async downloadSVG(e,t){let i,r={svg:e,exportingOptions:t,exporting:this};if((0,n.fireEvent)(I.prototype,"downloadSVG",r),r.defaultPrevented)return;let{type:o,filename:a,scale:l,libURL:s}=I.prepareImageOptions(t);if("application/pdf"===o)throw Error("Offline exporting logic for PDF type is not found.");if("image/svg+xml"===o){if(void 0!==D.MSBlobBuilder){let t=new D.MSBlobBuilder;t.append(e),i=t.getBlob("image/svg+xml")}else i=I.svgToDataURL(e);y(i,a)}else{i=I.svgToDataURL(e);try{I.objectURLRevoke=!0;let e=await I.imageToDataURL(i,l,o);y(e,a)}catch(d){if("No canvas found!"===d.message)throw d;if(e.length>1e8)throw Error("Input too long");let t=R.createElement("canvas"),i=t.getContext("2d"),r=e.match(/^<svg[^>]*\s{,1000}width\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/),h=e.match(/^<svg[^>]*\s{0,1000}height\s{,1000}=\s{,1000}\"?(\d+)\"?[^>]*>/);if(i&&r&&h){let d=r[1]*l,p=h[1]*l;if(t.width=d,t.height=p,!D.canvg){var c;if(!s)throw Error("Image export requires canvg. Set exporting.libURL or preload canvg.");I.objectURLRevoke=!0,await (c=s+"canvg.js",new Promise((e,t)=>{let i=f.getElementsByTagName("head")[0],r=f.createElement("script");r.type="text/javascript",r.src=c,r.onload=()=>{e()},r.onerror=()=>{let e=`Error loading script ${c}`;(0,n.error)(e),t(Error(e))},i.appendChild(r)}))}D.canvg.Canvg.fromString(i,e).start(),y(D.navigator.msSaveOrOpenBlob?t.msToBlob():t.toDataURL(o),a)}}finally{if(I.objectURLRevoke)try{L.revokeObjectURL(i)}catch{}}}}async exportChart(e,t){if((e=(0,n.merge)(this.options,e)).local)await this.localExport(e,t||{});else{let n=await this.getSVGForExport(e,t);e.url&&await O.post(e.url,{filename:e.filename?e.filename.replace(/\//g,"-"):this.getFilename(),type:e.type,width:e.width,scale:e.scale,svg:n},e.fetchOptions)}}async fallbackToServer(e,t){!1===e.fallbackToExportServer?e.error?e.error(e,t):(0,n.error)(t?.message||28,!0,this.chart):"application/pdf"===e.type?(e.local=!1,await this.exportChart(e)):(0,n.error)(t.message,!1)}getChartHTML(e){let t=this.chart;return e&&this.inlineStyles(),this.resolveCSSVariables(),I.sanitizeDOM(t.renderer.box),t.container.querySelectorAll("canvas").forEach(function(e){let i=e.toDataURL("image/png"),r=e.parentNode,o=t.renderer.image(i,0,0,e.width,e.height);(0,n.css)(o.element,{width:e.style.width,height:e.style.height}),r.parentNode.insertBefore(o.element,r),r.remove()}),t.container.innerHTML}getFilename(){let e=this.chart.userOptions.title?.text,t=this.options.filename;return t?t.replace(/\//g,"-"):("string"==typeof e&&(t=e.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!t||t.length<5)&&(t="chart"),t)}getSVG(e,t){let i=this.chart,r,o,a=(0,n.merge)(i.options,e);a.plotOptions=(0,n.merge)(i.userOptions.plotOptions,e?.plotOptions),a.time=(0,n.merge)(i.userOptions.time,e?.time);let l=(0,n.createElement)("div",void 0,{position:"absolute",top:"-9999em",width:i.chartWidth+"px",height:i.chartHeight+"px"},R.body),s=i.renderTo.style.width,c=i.renderTo.style.height,h=a.exporting?.sourceWidth||a.chart.width||/px$/.test(s)&&parseInt(s,10)||(a.isGantt?800:600),d=a.exporting?.sourceHeight||a.chart.height||/px$/.test(c)&&parseInt(c,10)||400;(0,n.extend)(a.chart,{animation:!1,renderTo:l,forExport:!0,renderer:"SVGRenderer",width:h,height:d}),a.exporting&&(a.exporting.enabled=!1),delete a.data,a.series=[],i.series.forEach(function(e){(o=(0,n.merge)(e.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:e.visible})).isInternal||a?.series?.push(o)});let p={};i.axes.forEach(function(e){e.userOptions.internalKey||(e.userOptions.internalKey=(0,n.uniqueKey)()),a&&!e.options.isInternal&&(p[e.coll]||(p[e.coll]=!0,a[e.coll]=[]),a[e.coll].push((0,n.merge)(e.userOptions,{visible:e.visible,type:e.type,uniqueNames:e.uniqueNames})))}),a.colorAxis=i.userOptions.colorAxis;let u=t=>{e&&["xAxis","yAxis","series"].forEach(function(n){e[n]&&t.update({[n]:e[n]})}),i.axes.forEach(function(i){let r=(0,n.find)(t.axes,e=>e.options.internalKey===i.userOptions.internalKey);if(r){let t=i.getExtremes(),o=(0,n.splat)(e?.[i.coll]||{})[0],a="min"in o?o.min:t.userMin,l="max"in o?o.max:t.userMax;(void 0!==a&&a!==r.min||void 0!==l&&l!==r.max)&&r.setExtremes(a??void 0,l??void 0,!0,!1)}});let o=t.exporting;return o?.options.applyStyleSheets&&this.applyShadowDOMStyles(t),(0,n.fireEvent)(i,"getSVG",{chartCopy:t}),r=o?.getChartHTML(i.styledMode||a?.exporting?.applyStyleSheets)||"",r=I.sanitizeSVG(r,a),(0,n.fireEvent)(i,"afterGetSVG",{chartCopy:t,svg:r}),a=void 0,t.destroy(),(0,n.discardElement)(l),r};return t?new Promise(e=>new i.constructor(a||{},function(t){i.callback?.call(this,t);let r=(0,n.addEvent)(this,"render",function(){r(),e(u(this))})})):u(new i.constructor(a,i.callback))}applyShadowDOMStyles(e){let t=this.chart,i=[],r=t.container,o;for(;r&&(!(o=r.getRootNode())||"object"!=typeof o.host);)r=r.parentNode,o=null;o?.querySelectorAll("style").forEach(t=>{let n=t.cloneNode(!0);e.renderer.defs.element.appendChild(n),i.push(n)}),(0,n.addEvent)(t,"afterGetSVG",()=>{i.forEach(e=>{e.remove()})})}async getSVGForExport(e,t){let i=this.options;return await this.getSVG((0,n.merge)({chart:{borderRadius:0}},i.chartOptions,t,{exporting:{sourceWidth:e?.sourceWidth||i.sourceWidth,sourceHeight:e?.sourceHeight||i.sourceHeight}}),!0)}inlineStyles(){let e,t=I.inlineDenylist,i=I.inlineAllowlist,r={},o=(0,n.createElement)("iframe",void 0,{width:"1px",height:"1px",visibility:"hidden"},R.body),a=o.contentWindow?.document;a&&a.body.appendChild(a.createElementNS(M,"svg")),!function o(l){let s,c,h,d,p,u,g={};if(a&&1===l.nodeType&&-1===I.unstyledElements.indexOf(l.nodeName)){if(s=D.getComputedStyle(l,null),c="svg"===l.nodeName?{}:D.getComputedStyle(l.parentNode,null),!r[l.nodeName]){e=a.getElementsByTagName("svg")[0],h=a.createElementNS(l.namespaceURI,l.nodeName),e.appendChild(h);let t=D.getComputedStyle(h,null),n={};for(let e in t)e.length<1e3&&"string"==typeof t[e]&&!/^\d+$/.test(e)&&(n[e]=t[e]);r[l.nodeName]=n,"text"===l.nodeName&&delete r.text.fill,e.removeChild(h)}for(let e in s)(N||A||P||Object.hasOwnProperty.call(s,e))&&function(e,n){if(d=p=!1,i.length){for(u=i.length;u--&&!p;)p=i[u].test(n);d=!p}for("transform"===n&&"none"===e&&(d=!0),u=t.length;u--&&!d;){if(n.length>1e3)throw Error("Input too long");d=t[u].test(n)||"function"==typeof e}!d&&(c[n]!==e||"svg"===l.nodeName)&&r[l.nodeName][n]!==e&&(I.inlineToAttributes&&-1===I.inlineToAttributes.indexOf(n)?g[n]=e:e&&l.setAttribute(I.hyphenate(n),e))}(s[e],e);if((0,n.css)(l,g),"svg"===l.nodeName&&l.setAttribute("stroke-width","1px"),"text"===l.nodeName)return;[].forEach.call(l.children||l.childNodes,o)}}(this.chart.container.querySelector("svg")),e.parentNode.removeChild(e),o.parentNode.removeChild(o)}async localExport(e,t){let i=this.chart,r,o,a=null,l;if(A&&i.styledMode&&!I.inlineAllowlist.length&&I.inlineAllowlist.push(/^blockSize/,/^border/,/^caretColor/,/^color/,/^columnRule/,/^columnRuleColor/,/^cssFloat/,/^cursor/,/^fill$/,/^fillOpacity/,/^font/,/^inlineSize/,/^length/,/^lineHeight/,/^opacity/,/^outline/,/^parentRule/,/^rx$/,/^ry$/,/^stroke/,/^textAlign/,/^textAnchor/,/^textDecoration/,/^transform/,/^vectorEffect/,/^visibility/,/^x$/,/^y$/),A&&("application/pdf"===e.type||i.container.getElementsByTagName("image").length&&"image/svg+xml"!==e.type)||"application/pdf"===e.type&&[].some.call(i.container.getElementsByTagName("image"),function(e){let t=e.getAttribute("href");return""!==t&&"string"==typeof t&&0!==t.indexOf("data:")}))return void await this.fallbackToServer(e,Error("Image type not supported for this chart/browser."));let s=(0,n.addEvent)(i,"afterGetSVG",e=>{o=e.chartCopy.options,l=(r=e.chartCopy.container.cloneNode(!0))&&r.getElementsByTagName("image")||[]});try{let i;for(let n of(await this.getSVGForExport(e,t),l?Array.from(l):[]))if(a=n.getAttributeNS("http://www.w3.org/1999/xlink","href")){I.objectURLRevoke=!1;let t=await I.imageToDataURL(a,e?.scale||1,e?.type||"image/png");n.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}else n.parentNode.removeChild(n);let s=r?.querySelector("svg");s&&!e.chartOptions?.chart?.style?.fontFamily&&await I.inlineFonts(s);let c=(i=r?.innerHTML,I.sanitizeSVG(i||"",o));if(c.indexOf("<foreignObject")>-1&&"image/svg+xml"!==e.type&&(A||"application/pdf"===e.type))throw Error("Image type not supported for charts with embedded HTML");return await this.downloadSVG(c,(0,n.extend)({filename:this.getFilename()},e)),c}catch(t){await this.fallbackToServer(e,t)}finally{s()}}moveContainers(e){let t=this.chart,{scrollablePlotArea:n}=t;(n?[n.fixedDiv,n.scrollingContainer]:[t.container]).forEach(function(t){e.appendChild(t)})}print(){let e=this.chart;this.isPrinting||(I.printingChart=e,P||this.beforePrint(),setTimeout(()=>{D.focus(),D.print(),P||setTimeout(()=>{e.exporting?.afterPrint()},1e3)},1))}render(){let e=this,{chart:t,options:i}=e,r=e?.isDirty||!e?.svgElements.length;e.buttonOffset=0,e.isDirty&&e.destroy(),r&&!1!==i.enabled&&(e.events=[],e.group||(e.group=t.renderer.g("exporting-group").attr({zIndex:3}).add()),(0,n.objectEach)(i?.buttons,function(t){e.addButton(t)}),e.isDirty=!1)}resolveCSSVariables(){Array.from(this.chart.container.querySelectorAll("*")).forEach(e=>{["color","fill","stop-color","stroke"].forEach(t=>{let n=e.getAttribute(t);n?.includes("var(")&&e.setAttribute(t,getComputedStyle(e).getPropertyValue(t));let i=e.style?.[t];i?.includes("var(")&&(e.style[t]=getComputedStyle(e).getPropertyValue(t))})})}update(e,t){this.isDirty=!0,(0,n.merge)(!0,this.options,e),(t??!0)&&this.chart.redraw()}}I.inlineAllowlist=[],I.inlineDenylist=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],I.inlineToAttributes=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"],I.loadEventDeferDelay=150*!!A,I.unstyledElements=["clipPath","defs","desc"],function(e){function t(e){let t=e.exporting;t&&(t.render(),(0,n.addEvent)(e,"redraw",function(){this.exporting?.render()}),(0,n.addEvent)(e,"destroy",function(){this.exporting?.destroy()}))}function i(){let t=this;t.options.exporting&&(t.exporting=new e(t,t.options.exporting),p.compose(t).navigation.addUpdate((e,i)=>{t.exporting&&(t.exporting.isDirty=!0,(0,n.merge)(!0,t.options.navigation,e),(i??!0)&&t.redraw())}))}function r({alignTo:e,key:t,textPxLength:i}){let r=this.options.exporting,{align:o,buttonSpacing:a=0,verticalAlign:l,width:s=0}=(0,n.merge)(this.options.navigation?.buttonOptions,r?.buttons?.contextButton),c=e.width-i,h=s+a;(r?.enabled??!0)&&"title"===t&&"right"===o&&"top"===l&&c<2*h&&(c<h?e.width-=h:this.title?.alignValue!=="left"&&(e.x-=h-c/2))}e.compose=function(o,a){w.compose(a),E.compose(o),(0,n.pushUnique)(k,"Exporting")&&((0,n.extend)(c().prototype,{exportChart:async function(e,t){await this.exporting?.exportChart(e,t)},getChartHTML:function(e){return this.exporting?.getChartHTML(e)},getFilename:function(){return this.exporting?.getFilename()},getSVG:function(e){return this.exporting?.getSVG(e,!1)},print:function(){return this.exporting?.print()}}),o.prototype.callbacks.push(t),(0,n.addEvent)(o,"afterInit",i),(0,n.addEvent)(o,"layOutTitle",r),P&&D.matchMedia("print").addListener(function(t){e.printingChart&&(t.matches?e.printingChart.exporting?.beforePrint():e.printingChart.exporting?.afterPrint())}),F(v))}}(I||(I={}));let U=o();U.Exporting=I,U.HttpUtilities=U.HttpUtilities||O,U.ajax=U.HttpUtilities.ajax,U.getJSON=U.HttpUtilities.getJSON,U.post=U.HttpUtilities.post,I.compose(U.Chart,U.Renderer);let G=o();export{G as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.0.
|
|
3
|
+
* @license Highcharts JS v13.0.2 (2026-08-27)
|
|
4
4
|
* @module highcharts/modules/exporting
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
*
|
|
@@ -2482,7 +2482,7 @@ class Exporting {
|
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
2484
|
if (btnOptions.text && btnOptions.symbol) {
|
|
2485
|
-
theme.paddingLeft = (
|
|
2485
|
+
theme.paddingLeft = (theme.paddingLeft ?? 30);
|
|
2486
2486
|
}
|
|
2487
2487
|
else if (!btnOptions.text) {
|
|
2488
2488
|
(0,external_highcharts_src_js_default_namespaceObject.extend)(theme, {
|
|
@@ -2495,8 +2495,8 @@ class Exporting {
|
|
|
2495
2495
|
.button(btnOptions.text || '', 0, 0, callback, theme, void 0, void 0, void 0, void 0, btnOptions.useHTML)
|
|
2496
2496
|
.addClass(options.className || '')
|
|
2497
2497
|
.attr({
|
|
2498
|
-
title: (
|
|
2499
|
-
btnOptions.titleKey)]
|
|
2498
|
+
title: (chart.options.lang[(btnOptions._titleKey ||
|
|
2499
|
+
btnOptions.titleKey)] ?? '')
|
|
2500
2500
|
});
|
|
2501
2501
|
button.menuClassName = (options.menuClassName ||
|
|
2502
2502
|
'highcharts-menu-' + exporting.btnCount++);
|
|
@@ -2525,7 +2525,7 @@ class Exporting {
|
|
|
2525
2525
|
.add(exporting.group)
|
|
2526
2526
|
.align((0,external_highcharts_src_js_default_namespaceObject.extend)(btnOptions, {
|
|
2527
2527
|
width: button.width,
|
|
2528
|
-
x: (
|
|
2528
|
+
x: (btnOptions.x ?? exporting.buttonOffset) // #1654
|
|
2529
2529
|
}), true, 'spacingBox');
|
|
2530
2530
|
exporting.buttonOffset += (((button.width || 0) + (btnOptions.buttonSpacing || 0)) *
|
|
2531
2531
|
(btnOptions.align === 'right' ? -1 : 1));
|
|
@@ -3779,7 +3779,7 @@ class Exporting {
|
|
|
3779
3779
|
update(exportingOptions, redraw) {
|
|
3780
3780
|
this.isDirty = true;
|
|
3781
3781
|
(0,external_highcharts_src_js_default_namespaceObject.merge)(true, this.options, exportingOptions);
|
|
3782
|
-
if (
|
|
3782
|
+
if (redraw ?? true) {
|
|
3783
3783
|
this.chart.redraw();
|
|
3784
3784
|
}
|
|
3785
3785
|
}
|
|
@@ -4001,7 +4001,7 @@ Exporting.unstyledElements = [
|
|
|
4001
4001
|
if (chart.exporting) {
|
|
4002
4002
|
chart.exporting.isDirty = true;
|
|
4003
4003
|
(0,external_highcharts_src_js_default_namespaceObject.merge)(true, chart.options.navigation, options);
|
|
4004
|
-
if (
|
|
4004
|
+
if (redraw ?? true) {
|
|
4005
4005
|
chart.redraw();
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
package/esm/modules/flowmap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Highcharts JS v13.0.
|
|
2
|
+
* Highcharts JS v13.0.2 (2026-08-27)
|
|
3
3
|
* @module highcharts/modules/flowmap
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
* @requires highcharts/modules/map
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*
|
|
9
9
|
* A commercial license may be required depending on use,
|
|
10
10
|
* see www.highcharts.com/license
|
|
11
|
-
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let
|
|
11
|
+
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},e.d=(t,o)=>{if(Array.isArray(o))for(var i=0;i<o.length;){var s=o[i++],r=o[i++];e.o(t,s)?0===r&&i++:0===r?Object.defineProperty(t,s,{enumerable:!0,value:o[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:r})}else for(var s in o)e.o(o,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:o[s]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let o=t.default;var i=e.n(o);let s=t.default.SeriesRegistry;var r=e.n(s);let{seriesTypes:{mapline:{prototype:{pointClass:n}}}}=r(),a=class extends n{isValid(){let t=!!(this.options.to&&this.options.from);return[this.options.to,this.options.from].forEach(function(e){t=!!(t&&e&&((0,o.isString)(e)||(0,o.isNumber)(e[0]??e.lat)&&(0,o.isNumber)(e[1]??e.lon)))}),t}},{series:{prototype:{pointClass:l}},seriesTypes:{column:p,map:h,mapline:d}}=r();class f extends d{static getLength(t,e){return Math.sqrt(t*t+e*e)}static normalize(t,e){let o=this.getLength(t,e);return[t/o,e/o]}static markerEndPath(t,e,i,s){let r=(0,o.relativeLength)(s.width||0,this.getLength(e[0]-t[0],e[1]-t[1])),n=s.markerType||"arrow",[a,l]=this.normalize(e[0]-t[0],e[1]-t[1]),p=[];if("arrow"===n){let[o,s]=t;o-=a*r,s-=l*r,p.push(["L",o,s]),p.push(["L",i[0],i[1]]),[o,s]=e,o+=a*r,s+=l*r,p.push(["L",o,s])}if("mushroom"===n){let[o,s]=t,[n,h]=e,[d,f]=i,g=(n-o)/2+o,m=(h-s)/2+s;o-=a*r,s-=l*r,p.push(["L",o,s]),n+=a*r,h+=l*r,p.push(["Q",(d-g)*2+g,(f-m)*2+m,n,h])}return p}animate(t){let e=this.points;t||e.forEach(t=>{if(t.shapeArgs&&(0,o.isArray)(t.shapeArgs.d)&&t.shapeArgs.d.length){let e=t.shapeArgs.d,o=e[0][1],i=e[0][2];if(o&&i){let s=[];for(let t=0;t<e.length;t++){s.push([...e[t]]);for(let r=1;r<e[t].length;r++)s[t][r]=r%2?o:i}t.graphic&&(t.graphic.attr({d:s}),t.graphic.animate({d:e}))}}})}getLinkWidth(t){let e=this.options.width,i=t.options.weight||this.options.weight;if(t.options.weight=i,e&&!i)return e;let s=this.smallestWeight,r=this.greatestWeight;if(!(0,o.defined)(i)||!s||!r)return 0;let n=this.options.minWidth;return(i-s)*(this.options.maxWidth-n)/(r-s||1)+n}autoCurve(t,e,o,i,s,r){let n={x:o-t,y:i-e},a={x:(o-t)/2+t,y:(i-e)/2+e},l={x:a.x-s,y:a.y-r},p=n.x*l.x+n.y*l.y,h=Math.atan2(n.x*l.y-n.y*l.x,p),d=180*h/Math.PI;return d<0&&(d=360+d),-(.7*Math.sin(h=d*Math.PI/180))}pointAttribs(t,e){let o=h.prototype.pointAttribs.call(this,t,e);return o.fill=t.options.fillColor??t.options.color??("none"===this.options.fillColor?void 0:this.options.fillColor)??this.color,o["fill-opacity"]=t.options.fillOpacity??this.options.fillOpacity,o["stroke-width"]=t.options.lineWidth??this.options.lineWidth??1,t.options.opacity&&(o.opacity=t.options.opacity),o}translate(){this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints());let t=[],e=0,i=0;this.points.forEach(s=>{let r,n,a=this.chart,p=a.mapView,h=s.options,d=()=>{s.series.isDirty=!0},f=t=>{let e=a.get(t);if(e instanceof l&&e.plotX&&e.plotY)return(0,o.addEvent)(e,"update",d),{x:e.plotX,y:e.plotY}},g=t=>(0,o.isArray)(t)?{lon:t[0],lat:t[1]}:t;"string"==typeof h.from?r=f(h.from):"object"==typeof h.from&&p&&(r=p.lonLatToPixels(g(h.from))),"string"==typeof h.to?n=f(h.to):"object"==typeof h.to&&p&&(n=p.lonLatToPixels(g(h.to))),s.fromPos=r,s.toPos=n,r&&n&&(e+=(r.x+n.x)/2,i+=(r.y+n.y)/2),(s.options.weight??this.options.weight)&&t.push(s.options.weight??this.options.weight)}),this.smallestWeight=(0,o.arrayMin)(t),this.greatestWeight=(0,o.arrayMax)(t),this.centerOfPoints={x:e/this.points.length,y:i/this.points.length},this.points.forEach(t=>{if(!this.getLinkWidth(t)){t.shapeArgs={d:[]};return}t.fromPos&&(t.plotX=t.fromPos.x,t.plotY=t.fromPos.y),t.shapeType="path",t.shapeArgs=this.getPointShapeArgs(t),t.color=t.options.color??t.series.color})}getPointShapeArgs(t){let{fromPos:e,toPos:i}=t;if(!e||!i)return{};let s=this.getLinkWidth(t)/2,r=t.options,n=(0,o.merge)(this.options.markerEnd,r.markerEnd),a=r.growTowards??this.options.growTowards,l=e.x||0,p=e.y||0,h=i.x||0,d=i.y||0,g=r.curveFactor??this.options.curveFactor,m=n&&n.enabled&&n.height||0;if((0,o.defined)(g)||(g=this.autoCurve(l,p,h,d,this.centerOfPoints.x,this.centerOfPoints.y)),m){m=(0,o.relativeLength)(m,4*s);let t=h-l,e=d-p,i=l+(t*=.5),r=p+(e*=.5),n=t,a=i+(t=e)*g,y=r+(e=-n)*g,[c,u]=f.normalize(a-h,y-d);c*=m,u*=m,h+=c,d+=u}let y=h-l,c=d-p,u=l+(y*=.5),w=p+(c*=.5),x=y;y=c,c=-x;let[P,b]=f.normalize(y,c),L=1+.25*Math.sqrt(g*g);P*=s*L,b*=s*L;let v=u+y*g,A=w+c*g,[W,O]=f.normalize(v-l,A-p);x=W,W=O,O=-x,W*=s,O*=s;let[M,k]=f.normalize(v-h,A-d);x=M,M=-k,k=x,M*=s,k*=s,a&&(W/=s,O/=s,P/=4,b/=4);let C={d:[["M",l-W,p-O],["Q",v-P,A-b,h-M,d-k],["L",h+M,d+k],["Q",v+P,A+b,l+W,p+O],["Z"]]};if(n&&n.enabled&&C.d){let t=f.markerEndPath([h-M,d-k],[h+M,d+k],[i.x,i.y],n);C.d.splice(2,0,...t)}let E=t.options.from,T=t.options.to,j=E.lat,z=E.lon,D=T.lat,S=T.lon;return j&&z&&(t.options.from=`${+j}, ${+z}`),D&&S&&(t.options.to=`${+D}, ${+S}`),C}}f.defaultOptions=(0,o.merge)(d.defaultOptions,{animation:!0,dataLabels:{enabled:!1},fillOpacity:.5,markerEnd:{enabled:!0,height:"40%",width:"40%",markerType:"arrow"},width:1,maxWidth:25,minWidth:5,lineWidth:void 0,tooltip:{headerFormat:'<span style="font-size: 0.8em">{series.name}</span><br/>',pointFormat:"{point.options.from} → {point.options.to}: <b>{point.options.weight}</b>"}}),(0,o.extend)(f.prototype,{pointClass:a,pointArrayMap:["from","to","weight"],drawPoints:p.prototype.drawPoints,getDataColumnKeys:p.prototype.getDataColumnKeys,useMapGeometry:!0}),r().registerSeriesType("flowmap",f);let g=i();export{g as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.0.
|
|
3
|
+
* @license Highcharts JS v13.0.2 (2026-08-27)
|
|
4
4
|
* @module highcharts/modules/flowmap
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
* @requires highcharts/modules/map
|
|
@@ -102,8 +102,10 @@ class FlowMapPoint extends MapLinePoint {
|
|
|
102
102
|
[this.options.to, this.options.from]
|
|
103
103
|
.forEach(function (toOrFrom) {
|
|
104
104
|
valid = !!(valid && (toOrFrom && ((0,external_highcharts_src_js_default_namespaceObject.isString)(toOrFrom) || ( // Point id or has lat/lon coords
|
|
105
|
-
(0,external_highcharts_src_js_default_namespaceObject.isNumber)(
|
|
106
|
-
|
|
105
|
+
(0,external_highcharts_src_js_default_namespaceObject.isNumber)(toOrFrom[0] ??
|
|
106
|
+
toOrFrom.lat) &&
|
|
107
|
+
(0,external_highcharts_src_js_default_namespaceObject.isNumber)(toOrFrom[1] ??
|
|
108
|
+
toOrFrom.lon)))));
|
|
107
109
|
});
|
|
108
110
|
return valid;
|
|
109
111
|
}
|
|
@@ -300,9 +302,17 @@ class FlowMapSeries extends MapLineSeries {
|
|
|
300
302
|
*/
|
|
301
303
|
pointAttribs(point, state) {
|
|
302
304
|
const attrs = MapSeries.prototype.pointAttribs.call(this, point, state);
|
|
303
|
-
attrs.fill =
|
|
304
|
-
|
|
305
|
-
|
|
305
|
+
attrs.fill =
|
|
306
|
+
point.options.fillColor ??
|
|
307
|
+
point.options.color ??
|
|
308
|
+
(this.options.fillColor === 'none' ?
|
|
309
|
+
void 0 :
|
|
310
|
+
this.options.fillColor) ??
|
|
311
|
+
this.color;
|
|
312
|
+
attrs['fill-opacity'] =
|
|
313
|
+
point.options.fillOpacity ?? this.options.fillOpacity;
|
|
314
|
+
attrs['stroke-width'] =
|
|
315
|
+
point.options.lineWidth ?? this.options.lineWidth ?? 1;
|
|
306
316
|
if (point.options.opacity) {
|
|
307
317
|
attrs.opacity = point.options.opacity;
|
|
308
318
|
}
|
|
@@ -369,8 +379,8 @@ class FlowMapSeries extends MapLineSeries {
|
|
|
369
379
|
averageX += (fromPos.x + toPos.x) / 2;
|
|
370
380
|
averageY += (fromPos.y + toPos.y) / 2;
|
|
371
381
|
}
|
|
372
|
-
if (
|
|
373
|
-
weights.push(
|
|
382
|
+
if (point.options.weight ?? this.options.weight) {
|
|
383
|
+
weights.push(point.options.weight ?? this.options.weight);
|
|
374
384
|
}
|
|
375
385
|
});
|
|
376
386
|
this.smallestWeight = (0,external_highcharts_src_js_default_namespaceObject.arrayMin)(weights);
|
|
@@ -396,7 +406,7 @@ class FlowMapSeries extends MapLineSeries {
|
|
|
396
406
|
point.shapeArgs = this.getPointShapeArgs(point);
|
|
397
407
|
// When updating point from null to normal value, set a real color
|
|
398
408
|
// (don't keep nullColor).
|
|
399
|
-
point.color = (
|
|
409
|
+
point.color = (point.options.color ?? point.series.color);
|
|
400
410
|
});
|
|
401
411
|
}
|
|
402
412
|
getPointShapeArgs(point) {
|
|
@@ -404,8 +414,8 @@ class FlowMapSeries extends MapLineSeries {
|
|
|
404
414
|
if (!fromPos || !toPos) {
|
|
405
415
|
return {};
|
|
406
416
|
}
|
|
407
|
-
const finalWidth = this.getLinkWidth(point) / 2, pointOptions = point.options, markerEndOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(this.options.markerEnd, pointOptions.markerEnd), growTowards =
|
|
408
|
-
let toX = toPos.x || 0, toY = toPos.y || 0, curveFactor =
|
|
417
|
+
const finalWidth = this.getLinkWidth(point) / 2, pointOptions = point.options, markerEndOptions = (0,external_highcharts_src_js_default_namespaceObject.merge)(this.options.markerEnd, pointOptions.markerEnd), growTowards = pointOptions.growTowards ?? this.options.growTowards, fromX = fromPos.x || 0, fromY = fromPos.y || 0;
|
|
418
|
+
let toX = toPos.x || 0, toY = toPos.y || 0, curveFactor = pointOptions.curveFactor ?? this.options.curveFactor, offset = markerEndOptions && markerEndOptions.enabled &&
|
|
409
419
|
markerEndOptions.height || 0;
|
|
410
420
|
if (!(0,external_highcharts_src_js_default_namespaceObject.defined)(curveFactor)) { // Automate the curveFactor value.
|
|
411
421
|
curveFactor = this.autoCurve(fromX, fromY, toX, toY, this.centerOfPoints.x, this.centerOfPoints.y);
|
package/esm/modules/funnel.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Highcharts JS v13.0.
|
|
2
|
+
* Highcharts JS v13.0.2 (2026-08-27)
|
|
3
3
|
* @module highcharts/modules/funnel
|
|
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
|
-
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let a=t&&t.__esModule?()=>t.default:()=>t;return e.d(a,{a:a}),a},e.d=(t,a)=>{if(Array.isArray(a))for(var i=0;i<a.length;){var d=a[i++],s=a[i++];e.o(t,d)?0===s&&i++:0===s?Object.defineProperty(t,d,{enumerable:!0,value:a[i++]}):Object.defineProperty(t,d,{enumerable:!0,get:s})}else for(var d in a)e.o(a,d)&&!e.o(t,d)&&Object.defineProperty(t,d,{enumerable:!0,get:a[d]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let a=t.default;var i=e.n(a);let{defaultOptions:d}=i(),{noop:s}=i(),l={radius:0,scope:"stack",where:void 0},o=t.default.SeriesRegistry;var r=e.n(o);let{composed:n,noop:h}=i(),{column:p,pie:c}=r().seriesTypes,g=r().series.prototype.alignDataLabel;function u(t,e){return/%$/.test(t)?e*parseInt(t,10)/100:parseInt(t,10)}class x extends c{alignDataLabel(t,e,i,d,s){let l=t.series,o=l.options.reversed,r=t.dlBox||t.shapeArgs,{align:n,verticalAlign:h}=i,p=(0,a.splat)(i.padding||0),c=((l.options||{}).dataLabels||{}).inside,u=l.center[1],x=t.plotY||0,y=e.height??e.getBBox().height,b=l.getWidthAt((o?2*u-x:x)-r.height/2+y),f="middle"===h?(r.topWidth-r.bottomWidth)/4:(b-r.bottomWidth)/2,L=r.y,m=r.x;"middle"===h?L=r.y-r.height/2+y/2:"top"===h&&(L=r.y-r.height+y+p[0]),("top"===h&&!o||"bottom"===h&&o||"middle"===h)&&("right"===n?m=r.x-p[1%p.length]+f:"left"===n&&(m=r.x+p[3%p.length]-f)),d={x:m,y:o?L-r.height:L,width:r.bottomWidth,height:r.height},i.verticalAlign="bottom",c&&(i.distance=void 0),c&&t.visible&&g.call(l,t,e,i,d,s),c&&(!t.visible&&t.dataLabel&&(t.dataLabel.placed=!1),t.contrastColor&&e.css({color:t.contrastColor}))}drawDataLabels(){((0,a.splat)(this.options.dataLabels||{})[0].inside?p:c).prototype.drawDataLabels.call(this)}getDataLabelPosition(t,e){let a=t.plotY||0,i=t.half?1:-1,d=this.getXPos(a,!!t.half,t);return{distance:e,natural:{x:0,y:a},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:d+(e-5)*i,y:a},touchingSliceAt:{x:d+e*i,y:a}}}}translate(){var t;let e=this,i=e.chart,d=e.options,s=d.reversed,o=d.ignoreHiddenPoint,r=(t=d.borderRadius,(0,a.isObject)(t)||(t={radius:t||0}),(0,a.merge)(l,void 0,t)),n=i.plotWidth,p=i.plotHeight,c=d.center,g=u(c[0],n),x=u(c[1],p),y=u(d.width,n),b=u(d.height,p),f=u(d.neckWidth,n),L=u(d.neckHeight,p),m=x-b/2+b-L,v=e.points,M=(0,a.relativeLength)(r.radius,y),A=r.scope,W=+("left"===d.dataLabels.position),P=(t,e)=>{let a=Math.tan(t/2),i=Math.cos(H),d=Math.sin(H),l=M,o=l/a,r=Math.tan((Math.PI-t)/3.2104);return o>e&&(l=(o=e)*a),{dx:[o*i,(o-(r*=l))*i,o-r,o],dy:[o*d,(o-r)*d,o-r,o].map(t=>s?-t:t)}},C=0,k=0,O=-1,w=-1,D,I,j,H,Y,B,S,T,X,R,_;for(let t of(e.getWidthAt=function(t){let e=x-b/2;return t>m||b===L?f:f+(y-f)*(1-(t-e)/(b-L))},e.getXPos=function(t,i,d){return g+(i?-1:1)*(e.getWidthAt(s?2*x-t:t)/2+(d.dataLabel?.dataLabelPosition?.distance??(0,a.relativeLength)(this.options.dataLabels?.distance||0,y)))},e.center=[g,x,b],e.centerX=g,v))t.y&&t.isValid()&&(!o||!1!==t.visible)&&(C+=t.y,-1===O&&(O=t.index),w=t.index);for(let t of v){if(_=null,j=C?t.y/C:0,X=(B=x-b/2+k*b)+j*b,S=(Y=g-(D=e.getWidthAt(B))/2)+D,R=(T=g-(D=e.getWidthAt(X))/2)+D,(0,a.correctFloat)(B)>=m?(Y=T=g-f/2,S=R=g+f/2):X>m&&(_=X,R=(T=g-(D=e.getWidthAt(m))/2)+D,X=m),s&&(B=2*x-B,X=2*x-X,null!==_&&(_=2*x-_)),M&&("point"===A||t.index===O||t.index===w||null!==_)){let e=Math.abs(X-B),a=S-R,i=R-T,d=Math.sqrt(a*a+e*e),s=S-Y,l=P(H=Math.atan(0!==a?e/a:1/0),Math.min(s,d)/2);if(I="stack"===A&&t.index!==O?[["M",Y,B],["L",S,B]]:[["M",Y+l.dx[0],B+l.dy[0]],["C",Y+l.dx[1],B+l.dy[1],Y+l.dx[2],B,Y+l.dx[3],B],["L",S-l.dx[3],B],["C",S-l.dx[2],B,S-l.dx[1],B+l.dy[1],S-l.dx[0],B+l.dy[0]]],null!==_){let e=Math.abs(_-X),a=P(Math.PI/2,Math.min(i,e)/2);l=P(Math.PI/2+H,Math.min(d,e)/2),I.push(["L",R+l.dx[0],X-l.dy[0]],["C",R+l.dx[1],X-l.dy[1],R,X+l.dy[2],R,X+l.dy[3]]),"stack"===A&&t.index!==w?I.push(["L",R,_],["L",T,_]):I.push(["L",R,_-a.dy[3]],["C",R,_-a.dy[2],R-a.dx[2],_,R-a.dx[3],_],["L",T+a.dx[3],_],["C",T+a.dx[2],_,T,_-a.dy[2],T,_-a.dy[3]]),I.push(["L",T,X+l.dy[3]],["C",T,X+l.dy[2],T-l.dx[1],X-l.dy[1],T-l.dx[0],X-l.dy[0]])}else i>=1?(l=P(Math.PI-H,Math.min(d,i)/2),"stack"===A&&t.index!==w?I.push(["L",R,X],["L",T,X]):I.push(["L",R+l.dx[0],X-l.dy[0]],["C",R+l.dx[1],X-l.dy[1],R-l.dx[2],X,R-l.dx[3],X],["L",T+l.dx[3],X],["C",T+l.dx[2],X,T-l.dx[1],X-l.dy[1],T-l.dx[0],X-l.dy[0]])):(l=P(Math.PI-2*H,d/2),I.push(["L",T+l.dx[0],X-l.dy[0]],["C",T+l.dx[1],X-l.dy[1],T-l.dx[1],X-l.dy[1],T-l.dx[0],X-l.dy[0]]))}else I=[["M",Y,B],["L",S,B],["L",R,X]],null!==_&&I.push(["L",R,_],["L",T,_]),I.push(["L",T,X]);I.push(["Z"]),t.shapeType="path",t.shapeArgs={d:I},t.percentage=100*j,t.plotX=g,t.plotY=(B+(_||X))/2,t.tooltipPos=[g,t.plotY],t.dlBox={x:T,y:B,topWidth:S-Y,bottomWidth:R-T,height:Math.abs((
|
|
13
|
+
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let a=t&&t.__esModule?()=>t.default:()=>t;return e.d(a,{a:a}),a},e.d=(t,a)=>{if(Array.isArray(a))for(var i=0;i<a.length;){var d=a[i++],s=a[i++];e.o(t,d)?0===s&&i++:0===s?Object.defineProperty(t,d,{enumerable:!0,value:a[i++]}):Object.defineProperty(t,d,{enumerable:!0,get:s})}else for(var d in a)e.o(a,d)&&!e.o(t,d)&&Object.defineProperty(t,d,{enumerable:!0,get:a[d]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let a=t.default;var i=e.n(a);let{defaultOptions:d}=i(),{noop:s}=i(),l={radius:0,scope:"stack",where:void 0},o=t.default.SeriesRegistry;var r=e.n(o);let{composed:n,noop:h}=i(),{column:p,pie:c}=r().seriesTypes,g=r().series.prototype.alignDataLabel;function u(t,e){return/%$/.test(t)?e*parseInt(t,10)/100:parseInt(t,10)}class x extends c{alignDataLabel(t,e,i,d,s){let l=t.series,o=l.options.reversed,r=t.dlBox||t.shapeArgs,{align:n,verticalAlign:h}=i,p=(0,a.splat)(i.padding||0),c=((l.options||{}).dataLabels||{}).inside,u=l.center[1],x=t.plotY||0,y=e.height??e.getBBox().height,b=l.getWidthAt((o?2*u-x:x)-r.height/2+y),f="middle"===h?(r.topWidth-r.bottomWidth)/4:(b-r.bottomWidth)/2,L=r.y,m=r.x;"middle"===h?L=r.y-r.height/2+y/2:"top"===h&&(L=r.y-r.height+y+p[0]),("top"===h&&!o||"bottom"===h&&o||"middle"===h)&&("right"===n?m=r.x-p[1%p.length]+f:"left"===n&&(m=r.x+p[3%p.length]-f)),d={x:m,y:o?L-r.height:L,width:r.bottomWidth,height:r.height},i.verticalAlign="bottom",c&&(i.distance=void 0),c&&t.visible&&g.call(l,t,e,i,d,s),c&&(!t.visible&&t.dataLabel&&(t.dataLabel.placed=!1),t.contrastColor&&e.css({color:t.contrastColor}))}drawDataLabels(){((0,a.splat)(this.options.dataLabels||{})[0].inside?p:c).prototype.drawDataLabels.call(this)}getDataLabelPosition(t,e){let a=t.plotY||0,i=t.half?1:-1,d=this.getXPos(a,!!t.half,t);return{distance:e,natural:{x:0,y:a},computed:{},alignment:t.half?"right":"left",connectorPosition:{breakAt:{x:d+(e-5)*i,y:a},touchingSliceAt:{x:d+e*i,y:a}}}}translate(){var t;let e=this,i=e.chart,d=e.options,s=d.reversed,o=d.ignoreHiddenPoint,r=(t=d.borderRadius,(0,a.isObject)(t)||(t={radius:t||0}),(0,a.merge)(l,void 0,t)),n=i.plotWidth,p=i.plotHeight,c=d.center,g=u(c[0],n),x=u(c[1],p),y=u(d.width,n),b=u(d.height,p),f=u(d.neckWidth,n),L=u(d.neckHeight,p),m=x-b/2+b-L,v=e.points,M=(0,a.relativeLength)(r.radius,y),A=r.scope,W=+("left"===d.dataLabels.position),P=(t,e)=>{let a=Math.tan(t/2),i=Math.cos(H),d=Math.sin(H),l=M,o=l/a,r=Math.tan((Math.PI-t)/3.2104);return o>e&&(l=(o=e)*a),{dx:[o*i,(o-(r*=l))*i,o-r,o],dy:[o*d,(o-r)*d,o-r,o].map(t=>s?-t:t)}},C=0,k=0,O=-1,w=-1,D,I,j,H,Y,B,S,T,X,R,_;for(let t of(e.getWidthAt=function(t){let e=x-b/2;return t>m||b===L?f:f+(y-f)*(1-(t-e)/(b-L))},e.getXPos=function(t,i,d){return g+(i?-1:1)*(e.getWidthAt(s?2*x-t:t)/2+(d.dataLabel?.dataLabelPosition?.distance??(0,a.relativeLength)(this.options.dataLabels?.distance||0,y)))},e.center=[g,x,b],e.centerX=g,v))t.y&&t.isValid()&&(!o||!1!==t.visible)&&(C+=t.y,-1===O&&(O=t.index),w=t.index);for(let t of v){if(_=null,j=C?t.y/C:0,X=(B=x-b/2+k*b)+j*b,S=(Y=g-(D=e.getWidthAt(B))/2)+D,R=(T=g-(D=e.getWidthAt(X))/2)+D,(0,a.correctFloat)(B)>=m?(Y=T=g-f/2,S=R=g+f/2):X>m&&(_=X,R=(T=g-(D=e.getWidthAt(m))/2)+D,X=m),s&&(B=2*x-B,X=2*x-X,null!==_&&(_=2*x-_)),M&&("point"===A||t.index===O||t.index===w||null!==_)){let e=Math.abs(X-B),a=S-R,i=R-T,d=Math.sqrt(a*a+e*e),s=S-Y,l=P(H=Math.atan(0!==a?e/a:1/0),Math.min(s,d)/2);if(I="stack"===A&&t.index!==O?[["M",Y,B],["L",S,B]]:[["M",Y+l.dx[0],B+l.dy[0]],["C",Y+l.dx[1],B+l.dy[1],Y+l.dx[2],B,Y+l.dx[3],B],["L",S-l.dx[3],B],["C",S-l.dx[2],B,S-l.dx[1],B+l.dy[1],S-l.dx[0],B+l.dy[0]]],null!==_){let e=Math.abs(_-X),a=P(Math.PI/2,Math.min(i,e)/2);l=P(Math.PI/2+H,Math.min(d,e)/2),I.push(["L",R+l.dx[0],X-l.dy[0]],["C",R+l.dx[1],X-l.dy[1],R,X+l.dy[2],R,X+l.dy[3]]),"stack"===A&&t.index!==w?I.push(["L",R,_],["L",T,_]):I.push(["L",R,_-a.dy[3]],["C",R,_-a.dy[2],R-a.dx[2],_,R-a.dx[3],_],["L",T+a.dx[3],_],["C",T+a.dx[2],_,T,_-a.dy[2],T,_-a.dy[3]]),I.push(["L",T,X+l.dy[3]],["C",T,X+l.dy[2],T-l.dx[1],X-l.dy[1],T-l.dx[0],X-l.dy[0]])}else i>=1?(l=P(Math.PI-H,Math.min(d,i)/2),"stack"===A&&t.index!==w?I.push(["L",R,X],["L",T,X]):I.push(["L",R+l.dx[0],X-l.dy[0]],["C",R+l.dx[1],X-l.dy[1],R-l.dx[2],X,R-l.dx[3],X],["L",T+l.dx[3],X],["C",T+l.dx[2],X,T-l.dx[1],X-l.dy[1],T-l.dx[0],X-l.dy[0]])):(l=P(Math.PI-2*H,d/2),I.push(["L",T+l.dx[0],X-l.dy[0]],["C",T+l.dx[1],X-l.dy[1],T-l.dx[1],X-l.dy[1],T-l.dx[0],X-l.dy[0]]))}else I=[["M",Y,B],["L",S,B],["L",R,X]],null!==_&&I.push(["L",R,_],["L",T,_]),I.push(["L",T,X]);I.push(["Z"]),t.shapeType="path",t.shapeArgs={d:I},t.percentage=100*j,t.plotX=g,t.plotY=(B+(_||X))/2,t.tooltipPos=[g,t.plotY],t.dlBox={x:T,y:B,topWidth:S-Y,bottomWidth:R-T,height:Math.abs((_??X)-B),width:NaN},t.slice=h,t.half=W,t.isValid()&&(!o||!1!==t.visible)&&(k+=j)}(0,a.fireEvent)(e,"afterTranslate")}sortByAngle(t){t.sort((t,e)=>t.plotY-e.plotY)}}function y(){for(let t of this.series){let e=t.options&&t.options.dataLabels;(0,a.isArray)(e)&&(e=e[0]),t.is("pie")&&t.placeDataLabels&&e&&!e.inside&&t.placeDataLabels()}}x.defaultOptions=(0,a.merge)(c.defaultOptions,{animation:!1,borderRadius:0,center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,size:!0,dataLabels:{connectorWidth:1,verticalAlign:"middle"},states:{select:{color:"var(--highcharts-neutral-color-20)",borderColor:"var(--highcharts-neutral-color-100)"}}}),(0,a.extend)(x.prototype,{animate:h}),(x||(x={})).compose=function(t){(0,a.pushUnique)(n,"FunnelSeries")&&(0,a.addEvent)(t,"afterHideAllOverlappingLabels",y)},r().registerSeriesType("funnel",x);let b=x;class f extends b{}f.defaultOptions=(0,a.merge)(b.defaultOptions,{neckHeight:"0%",neckWidth:"0%",reversed:!0}),r().registerSeriesType("pyramid",f);let L=i();b.compose(L.Chart);let m=i();export{m as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.0.
|
|
3
|
+
* @license Highcharts JS v13.0.2 (2026-08-27)
|
|
4
4
|
* @module highcharts/modules/funnel
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
*
|
|
@@ -1084,7 +1084,7 @@ class FunnelSeries extends PieSeries {
|
|
|
1084
1084
|
y: y1,
|
|
1085
1085
|
topWidth: x2 - x1,
|
|
1086
1086
|
bottomWidth: x4 - x3,
|
|
1087
|
-
height: Math.abs((
|
|
1087
|
+
height: Math.abs((y5 ?? y3) - y1),
|
|
1088
1088
|
width: NaN
|
|
1089
1089
|
};
|
|
1090
1090
|
// Slice is a noop on funnel points
|
package/esm/modules/funnel3d.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Highcharts JS v13.0.
|
|
2
|
+
* Highcharts JS v13.0.2 (2026-08-27)
|
|
3
3
|
* @module highcharts/modules/funnel3d
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
* @requires highcharts/highcharts-3d
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
*
|
|
13
13
|
* A commercial license may be required depending on use,
|
|
14
14
|
* see www.highcharts.com/license
|
|
15
|
-
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},e.d=(t,i)=>{if(Array.isArray(i))for(var r=0;r<i.length;){var s=i[r++],o=i[r++];e.o(t,s)?0===o&&r++:0===o?Object.defineProperty(t,s,{enumerable:!0,value:i[r++]}):Object.defineProperty(t,s,{enumerable:!0,get:o})}else for(var s in i)e.o(i,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:i[s]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let i=t.default;var r=e.n(i);let s=t.default.SVGRenderer;var o=e.n(s);let n=t.default.Color;var d=e.n(n);let h=t.default.SVGElement;var a=e.n(h);let{parse:l}=d();class p extends a(){constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(t){let e=this.renderer,i=e[this.pathType+"Path"](t),r=i.zIndexes;for(let t of this.parts){let s={class:"highcharts-3d-"+t,zIndex:r[t]||0};e.styledMode&&("top"===t?s.filter="url(#highcharts-brighter)":"side"===t&&(s.filter="url(#highcharts-darker)")),this[t]=e.path(i[t]).attr(s).add(this)}this.attr({"stroke-linejoin":"round",zIndex:r.group}),this.forcedSides=i.forcedSides}singleSetterForParts(t,e,i,r,s,o){let n={},d=[null,null,r||"attr",s,o],h=i?.zIndexes;if(i){for(let e of(h?.group&&this.attr({zIndex:h.group}),Object.keys(i)))n[e]={},n[e][t]=i[e],h&&(n[e].zIndex=i.zIndexes[e]||0);d[1]=n}else n[t]=e,d[0]=n;return this.processParts.apply(this,d)}processParts(t,e,r,s,o){for(let n of this.parts)e&&(t=(0,i.pick)(e[n],!1)),!1!==t&&this[n][r](t,s,o);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(t,e,r,s){if("string"==typeof t&&void 0!==e){let i=t;(t={})[i]=e}return t.shapeArgs||(0,i.defined)(t.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](t.shapeArgs||t)):super.attr(t,void 0,r,s)}animate(t,e,r){if((0,i.defined)(t.x)&&(0,i.defined)(t.y)){let i=this.renderer[this.pathType+"Path"](t),s=i.forcedSides;this.singleSetterForParts("d",null,i,"animate",e,r),this.attr({zIndex:i.zIndexes.group}),s!==this.forcedSides&&(this.forcedSides=s,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(t,e,r);return this}fillSetter(t){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:t,top:l(t).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:l(t).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=t,this}}p.types={base:p,cuboid:p};let g=p,{parse:c}=d(),{charts:f}=r(),u=class extends g{constructor(){super(...arguments),this.mainParts=["top","bottom"],this.parts=["top","bottom","frontUpper","backUpper","frontLower","backLower","rightUpper","rightLower"],this.sideGroups=["upperGroup","lowerGroup"],this.sideParts={upperGroup:["frontUpper","backUpper","rightUpper"],lowerGroup:["frontLower","backLower","rightLower"]},this.pathType="funnel3d"}opacitySetter(t){let e=parseFloat(t),i=this.parts,r=f[this.renderer.chartIndex],s="group-opacity-"+e+"-"+r.index;if(this.parts=this.mainParts,this.singleSetterForParts("opacity",e),this.parts=i,!r.renderer.filterId){for(let t of(r.renderer.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"table",tableValues:"0 "+e}}]}]}),this.sideGroups))this[t].attr({filter:"url(#"+s+")"});if(this.renderer.styledMode)for(let t of(r.renderer.definition({tagName:"style",textContent:".highcharts-"+s+" {filter:url(#"+s+")}"}),this.sideGroups))this[t].addClass("highcharts-"+s)}return this}fillSetter(t){let e=c(t),r=e.rgba[3],s={top:c(t).brighten(.1).get(),bottom:c(t).brighten(-.2).get()};if(r<1?(e.rgba[3]=1,e=e.get("rgb"),this.attr({opacity:r})):e=t,e.linearGradient||e.radialGradient||!this.gradientForSides||(e={linearGradient:{x1:0,x2:1,y1:1,y2:1},stops:[[0,c(t).brighten(-.2).get()],[.5,t],[1,c(t).brighten(-.2).get()]]}),e.linearGradient)for(let t of this.sideGroups){let r=this[t].gradientBox,o=e.linearGradient,n=(0,i.merge)(e,{linearGradient:{x1:r.x+o.x1*r.width,y1:r.y+o.y1*r.height,x2:r.x+o.x2*r.width,y2:r.y+o.y2*r.height}});for(let e of this.sideParts[t])s[e]=n}else if((0,i.merge)(!0,s,{frontUpper:e,backUpper:e,rightUpper:e,frontLower:e,backLower:e,rightLower:e}),e.radialGradient)for(let t of this.sideGroups){let e=this[t].gradientBox,i=e.x+e.width/2,r=e.y+e.height/2,s=Math.min(e.width,e.height);for(let e of this.sideParts[t])this[e].setRadialReference([i,r,s])}if(this.singleSetterForParts("fill",null,s),this.color=this.fill=t,e.linearGradient)for(let t of[this.frontLower,this.frontUpper]){let e=t.element,i=e&&this.renderer.gradients[e.gradient];i&&"userSpaceOnUse"!==i.attr("gradientUnits")&&i.attr({gradientUnits:"userSpaceOnUse"})}return this}adjustForGradient(){let t;for(let e of this.sideGroups){let i={x:Number.MAX_VALUE,y:Number.MAX_VALUE},r={x:-Number.MAX_VALUE,y:-Number.MAX_VALUE};for(let s of this.sideParts[e])t=this[s].getBBox(!0),i={x:Math.min(i.x,t.x),y:Math.min(i.y,t.y)},r={x:Math.max(r.x,t.x+t.width),y:Math.max(r.y,t.y+t.height)};this[e].gradientBox={x:i.x,width:r.x-i.x,y:i.y,height:r.y-i.y}}}zIndexSetter(){return this.finishedOnAdd&&this.adjustForGradient(),this.renderer.Element.prototype.zIndexSetter.apply(this,arguments)}onAdd(){this.adjustForGradient(),this.finishedOnAdd=!0}},{charts:y}=r();function x(t){let e=this.element3d("funnel3d",t),i=this.styledMode,r={"stroke-width":1,stroke:"none"};for(let t of(e.upperGroup=this.g("funnel3d-upper-group").attr({zIndex:e.frontUpper.zIndex}).add(e),[e.frontUpper,e.backUpper,e.rightUpper]))i||t.attr(r),t.add(e.upperGroup);for(let t of(e.lowerGroup=this.g("funnel3d-lower-group").attr({zIndex:e.frontLower.zIndex}).add(e),[e.frontLower,e.backLower,e.rightLower]))i||t.attr(r),t.add(e.lowerGroup);return e.gradientForSides=t.gradientForSides,e}function m(t){this.getCylinderEnd||(0,i.error)("A required Highcharts module is missing: cylinder.js",!0,y[this.chartIndex]);let e=y[this.chartIndex],r=t.alphaCorrection=90-Math.abs(e.options.chart.options3d.alpha%180-90),s=this.cuboidPath.call(this,(0,i.merge)(t,{depth:t.width,width:(t.width+t.bottom.width)/2})),o=s.isTop,n=!s.isFront,d=!!t.middle,h=this.getCylinderEnd(e,(0,i.merge)(t,{x:t.x-t.width/2,z:t.z-t.width/2,alphaCorrection:r})),a=t.bottom.width,l=(0,i.merge)(t,{width:a,x:t.x-a/2,z:t.z-a/2,alphaCorrection:r}),p=this.getCylinderEnd(e,l,!0),g=a,c=l,f=p,u=p,x;d&&(g=t.middle.width,c=(0,i.merge)(t,{y:t.y+t.middle.fraction*t.height,width:g,x:t.x-g/2,z:t.z-g/2}),f=this.getCylinderEnd(e,c,!1),u=this.getCylinderEnd(e,c,!1));let m={top:h,bottom:p,frontUpper:this.getCylinderFront(h,f),zIndexes:{group:s.zIndexes.group,top:3*(0===o),bottom:3*(1===o),frontUpper:n?2:1,backUpper:n?1:2,rightUpper:n?2:1}};return m.backUpper=this.getCylinderBack(h,f),x=Math.min(g,t.width)/Math.max(g,t.width)!=1,m.rightUpper=this.getCylinderFront(this.getCylinderEnd(e,(0,i.merge)(t,{x:t.x-t.width/2,z:t.z-t.width/2,alphaCorrection:x?-r:0}),!1),this.getCylinderEnd(e,(0,i.merge)(c,{alphaCorrection:x?-r:0}),!d)),d&&(x=Math.min(g,a)/Math.max(g,a)!=1,(0,i.merge)(!0,m,{frontLower:this.getCylinderFront(u,p),backLower:this.getCylinderBack(u,p),rightLower:this.getCylinderFront(this.getCylinderEnd(e,(0,i.merge)(l,{alphaCorrection:x?-r:0}),!0),this.getCylinderEnd(e,(0,i.merge)(c,{alphaCorrection:x?-r:0}),!1)),zIndexes:{frontLower:n?2:1,backLower:n?1:2,rightLower:n?1:2}})),m}let w=t.default.SeriesRegistry;var b=e.n(w);let{seriesTypes:{column:z}}=b();class A extends z.prototype.pointClass{}(0,i.extend)(A.prototype,{shapeType:"funnel3d"});let{deg2rad:k}=r();function v(t,e,r,s){let o=e.options.chart.options3d,n=(0,i.pick)(s,!!r&&e.inverted),d={x:e.plotWidth/2,y:e.plotHeight/2,z:o.depth/2,vd:(0,i.pick)(o.depth,1)*(0,i.pick)(o.viewDistance,0)},h=e.scale3d||1,a=k*o.beta*(n?-1:1),l=k*o.alpha*(n?-1:1),p={cosA:Math.cos(l),cosB:Math.cos(-a),sinA:Math.sin(l),sinB:Math.sin(-a)};return r||(d.x+=e.plotLeft,d.y+=e.plotTop),t.map(function(t){var e,i,r;let s=(e=(n?t.y:t.x)-d.x,i=(n?t.x:t.y)-d.y,r=(t.z||0)-d.z,{x:p.cosB*e-p.sinB*r,y:-p.sinA*p.sinB*e+p.cosA*i-p.cosB*p.sinA*r,z:p.cosA*p.sinB*e+p.sinA*i+p.cosA*p.cosB*r}),o=L(s,d,d.vd);return o.x=o.x*h+d.x,o.y=o.y*h+d.y,o.z=s.z*h+d.z,{x:n?o.y:o.x,y:n?o.x:o.y,z:o.z}})}function L(t,e,i){let r=i>0&&i<1/0?i/(t.z+e.z+i):1;return{x:t.x*r,y:t.y*r}}function S(t){let e=0,i,r;for(i=0;i<t.length;i++)r=(i+1)%t.length,e+=t[i].x*t[r].y-t[r].x*t[i].y;return e/2}let{noop:C}=r(),{perspective:P}={perspective:v,perspective3D:L,pointCameraDistance:function(t,e){let r=e.options.chart.options3d,s={x:e.plotWidth/2,y:e.plotHeight/2,z:(0,i.pick)(r.depth,1)*(0,i.pick)(r.viewDistance,0)+r.depth};return Math.sqrt(Math.pow(s.x-(0,i.pick)(t.plotX,t.x),2)+Math.pow(s.y-(0,i.pick)(t.plotY,t.y),2)+Math.pow(s.z-(0,i.pick)(t.plotZ,t.z),2))},shapeArea:S,shapeArea3D:function(t,e,i){return S(v(t,e,i))}},{series:U,seriesTypes:{column:G}}=b();class M extends G{alignDataLabel(t,e,r){let s=t.dlBoxRaw,o=this.chart.inverted,n=t.plotY>(0,i.pick)(this.translatedThreshold,this.yAxis.len),d=(0,i.pick)(r.inside,!!this.options.stacking),h={x:s.x,y:s.y,height:0};r.align=(0,i.pick)(r.align,!o||d?"center":n?"right":"left"),r.verticalAlign=(0,i.pick)(r.verticalAlign,o||d?"middle":n?"top":"bottom"),"top"!==r.verticalAlign&&(h.y+=s.bottom/("bottom"===r.verticalAlign?1:2)),h.width=this.getWidthAt(h.y),this.options.reversed&&(h.width=s.fullWidth-h.width),d?h.x-=h.width/2:"left"===r.align?(r.align="right",h.x-=1.5*h.width):"right"===r.align?(r.align="left",h.x+=h.width/2):h.x-=h.width/2,t.dlBox=h,G.prototype.alignDataLabel.apply(this,arguments)}bindAxes(){U.prototype.bindAxes.apply(this,arguments),(0,i.extend)(this.xAxis.options,{gridLineWidth:0,lineWidth:0,title:void 0,tickPositions:[]}),(0,i.merge)(!0,this.yAxis.options,{gridLineWidth:0,title:void 0,labels:{enabled:!1}})}translate(){U.prototype.translate.apply(this,arguments);let t=this.chart,e=this.options,r=e.reversed,s=e.ignoreHiddenPoint,o=t.plotWidth,n=t.plotHeight,d=e.center,h=(0,i.relativeLength)(d[0],o),a=(0,i.relativeLength)(d[1],n),l=(0,i.relativeLength)(e.width,o),p=(0,i.relativeLength)(e.height,n),g=(0,i.relativeLength)(e.neckWidth,o),c=(0,i.relativeLength)(e.neckHeight,n),f=a-p/2+p-c,u=this.points,y=0,x=0,m,w,b,z,A,k,v,L,S;for(let t of(this.getWidthAt=w=function(t){return t>f||p===c?g:g+(l-g)*(1-(t-(a-p/2))/(p-c))},this.center=[h,a,p],this.centerX=h,u))s&&!1===t.visible||(y+=t.y);for(let o of u)v=null,b=y?o.y/y:0,k=(A=a-p/2+x*p)+b*p,m=w(A),L=k-A,(S={gradientForSides:(0,i.pick)(o.options.gradientForSides,e.gradientForSides),x:h,y:A,height:L,width:m,z:1,top:{width:m}}).bottom={fraction:b,width:m=w(k)},A>=f?S.isCylinder=!0:k>f&&(v=k,m=w(f),k=f,S.bottom.width=m,S.middle={fraction:L?(f-A)/L:0,width:m}),r&&(S.y=A=a+p/2-(x+b)*p,S.middle&&(S.middle.fraction=1-(L?S.middle.fraction:0)),m=S.width,S.width=S.bottom.width,S.bottom.width=m),o.shapeArgs=(0,i.extend)(o.shapeArgs,S),o.percentage=100*b,o.plotX=h,r?o.plotY=a+p/2-(x+b/2)*p:o.plotY=(A+(v||k))/2,z=P([{x:h,y:o.plotY,z:r?-(l-w(o.plotY))/2:-w(o.plotY)/2}],t,!0)[0],o.tooltipPos=[z.x,z.y],o.dlBoxRaw={x:h,width:w(o.plotY),y:A,bottom:S.height||0,fullWidth:l},s&&!1===o.visible||(x+=b)}}M.compose=function(t){let e=t.prototype;e.funnel3d||(e.Element3D.types.funnel3d=u,(0,i.extend)(e,{funnel3d:x,funnel3dPath:m}))},M.defaultOptions=(0,i.merge)(G.defaultOptions,{center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,gradientForSides:!0,animation:!1,edgeWidth:0,colorByPoint:!0,showInLegend:!1,dataLabels:{align:"right",crop:!1,inside:!1,overflow:"allow"}}),(0,i.extend)(M.prototype,{pointClass:A,translate3dShapes:C}),b().registerSeriesType("funnel3d",M),M.compose(o());let F=r();export{F as default};
|
|
15
|
+
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{if(Array.isArray(r))for(var i=0;i<r.length;){var s=r[i++],o=r[i++];e.o(t,s)?0===o&&i++:0===o?Object.defineProperty(t,s,{enumerable:!0,value:r[i++]}):Object.defineProperty(t,s,{enumerable:!0,get:o})}else for(var s in r)e.o(r,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let r=t.default;var i=e.n(r);let s=t.default.SVGRenderer;var o=e.n(s);let n=t.default.Color;var d=e.n(n);let h=t.default.SVGElement;var a=e.n(h);let{parse:l}=d();class p extends a(){constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(t){let e=this.renderer,r=e[this.pathType+"Path"](t),i=r.zIndexes;for(let t of this.parts){let s={class:"highcharts-3d-"+t,zIndex:i[t]||0};e.styledMode&&("top"===t?s.filter="url(#highcharts-brighter)":"side"===t&&(s.filter="url(#highcharts-darker)")),this[t]=e.path(r[t]).attr(s).add(this)}this.attr({"stroke-linejoin":"round",zIndex:i.group}),this.forcedSides=r.forcedSides}singleSetterForParts(t,e,r,i,s,o){let n={},d=[null,null,i||"attr",s,o],h=r?.zIndexes;if(r){for(let e of(h?.group&&this.attr({zIndex:h.group}),Object.keys(r)))n[e]={},n[e][t]=r[e],h&&(n[e].zIndex=r.zIndexes[e]||0);d[1]=n}else n[t]=e,d[0]=n;return this.processParts.apply(this,d)}processParts(t,e,r,i,s){for(let o of this.parts)e&&(t=e[o]??!1),!1!==t&&this[o][r](t,i,s);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(t,e,i,s){if("string"==typeof t&&void 0!==e){let r=t;(t={})[r]=e}return t.shapeArgs||(0,r.defined)(t.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](t.shapeArgs||t)):super.attr(t,void 0,i,s)}animate(t,e,i){if((0,r.defined)(t.x)&&(0,r.defined)(t.y)){let r=this.renderer[this.pathType+"Path"](t),s=r.forcedSides;this.singleSetterForParts("d",null,r,"animate",e,i),this.attr({zIndex:r.zIndexes.group}),s!==this.forcedSides&&(this.forcedSides=s,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(t,e,i);return this}fillSetter(t){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:t,top:l(t).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:l(t).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=t,this}}p.types={base:p,cuboid:p};let g=p,{parse:f}=d(),{charts:c}=i(),u=class extends g{constructor(){super(...arguments),this.mainParts=["top","bottom"],this.parts=["top","bottom","frontUpper","backUpper","frontLower","backLower","rightUpper","rightLower"],this.sideGroups=["upperGroup","lowerGroup"],this.sideParts={upperGroup:["frontUpper","backUpper","rightUpper"],lowerGroup:["frontLower","backLower","rightLower"]},this.pathType="funnel3d"}opacitySetter(t){let e=parseFloat(t),r=this.parts,i=c[this.renderer.chartIndex],s="group-opacity-"+e+"-"+i.index;if(this.parts=this.mainParts,this.singleSetterForParts("opacity",e),this.parts=r,!i.renderer.filterId){for(let t of(i.renderer.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"table",tableValues:"0 "+e}}]}]}),this.sideGroups))this[t].attr({filter:"url(#"+s+")"});if(this.renderer.styledMode)for(let t of(i.renderer.definition({tagName:"style",textContent:".highcharts-"+s+" {filter:url(#"+s+")}"}),this.sideGroups))this[t].addClass("highcharts-"+s)}return this}fillSetter(t){let e=f(t),i=e.rgba[3],s={top:f(t).brighten(.1).get(),bottom:f(t).brighten(-.2).get()};if(i<1?(e.rgba[3]=1,e=e.get("rgb"),this.attr({opacity:i})):e=t,e.linearGradient||e.radialGradient||!this.gradientForSides||(e={linearGradient:{x1:0,x2:1,y1:1,y2:1},stops:[[0,f(t).brighten(-.2).get()],[.5,t],[1,f(t).brighten(-.2).get()]]}),e.linearGradient)for(let t of this.sideGroups){let i=this[t].gradientBox,o=e.linearGradient,n=(0,r.merge)(e,{linearGradient:{x1:i.x+o.x1*i.width,y1:i.y+o.y1*i.height,x2:i.x+o.x2*i.width,y2:i.y+o.y2*i.height}});for(let e of this.sideParts[t])s[e]=n}else if((0,r.merge)(!0,s,{frontUpper:e,backUpper:e,rightUpper:e,frontLower:e,backLower:e,rightLower:e}),e.radialGradient)for(let t of this.sideGroups){let e=this[t].gradientBox,r=e.x+e.width/2,i=e.y+e.height/2,s=Math.min(e.width,e.height);for(let e of this.sideParts[t])this[e].setRadialReference([r,i,s])}if(this.singleSetterForParts("fill",null,s),this.color=this.fill=t,e.linearGradient)for(let t of[this.frontLower,this.frontUpper]){let e=t.element,r=e&&this.renderer.gradients[e.gradient];r&&"userSpaceOnUse"!==r.attr("gradientUnits")&&r.attr({gradientUnits:"userSpaceOnUse"})}return this}adjustForGradient(){let t;for(let e of this.sideGroups){let r={x:Number.MAX_VALUE,y:Number.MAX_VALUE},i={x:-Number.MAX_VALUE,y:-Number.MAX_VALUE};for(let s of this.sideParts[e])t=this[s].getBBox(!0),r={x:Math.min(r.x,t.x),y:Math.min(r.y,t.y)},i={x:Math.max(i.x,t.x+t.width),y:Math.max(i.y,t.y+t.height)};this[e].gradientBox={x:r.x,width:i.x-r.x,y:r.y,height:i.y-r.y}}}zIndexSetter(){return this.finishedOnAdd&&this.adjustForGradient(),this.renderer.Element.prototype.zIndexSetter.apply(this,arguments)}onAdd(){this.adjustForGradient(),this.finishedOnAdd=!0}},{charts:y}=i();function x(t){let e=this.element3d("funnel3d",t),r=this.styledMode,i={"stroke-width":1,stroke:"none"};for(let t of(e.upperGroup=this.g("funnel3d-upper-group").attr({zIndex:e.frontUpper.zIndex}).add(e),[e.frontUpper,e.backUpper,e.rightUpper]))r||t.attr(i),t.add(e.upperGroup);for(let t of(e.lowerGroup=this.g("funnel3d-lower-group").attr({zIndex:e.frontLower.zIndex}).add(e),[e.frontLower,e.backLower,e.rightLower]))r||t.attr(i),t.add(e.lowerGroup);return e.gradientForSides=t.gradientForSides,e}function m(t){this.getCylinderEnd||(0,r.error)("A required Highcharts module is missing: cylinder.js",!0,y[this.chartIndex]);let e=y[this.chartIndex],i=t.alphaCorrection=90-Math.abs(e.options.chart.options3d.alpha%180-90),s=this.cuboidPath.call(this,(0,r.merge)(t,{depth:t.width,width:(t.width+t.bottom.width)/2})),o=s.isTop,n=!s.isFront,d=!!t.middle,h=this.getCylinderEnd(e,(0,r.merge)(t,{x:t.x-t.width/2,z:t.z-t.width/2,alphaCorrection:i})),a=t.bottom.width,l=(0,r.merge)(t,{width:a,x:t.x-a/2,z:t.z-a/2,alphaCorrection:i}),p=this.getCylinderEnd(e,l,!0),g=a,f=l,c=p,u=p,x;d&&(g=t.middle.width,f=(0,r.merge)(t,{y:t.y+t.middle.fraction*t.height,width:g,x:t.x-g/2,z:t.z-g/2}),c=this.getCylinderEnd(e,f,!1),u=this.getCylinderEnd(e,f,!1));let m={top:h,bottom:p,frontUpper:this.getCylinderFront(h,c),zIndexes:{group:s.zIndexes.group,top:3*(0===o),bottom:3*(1===o),frontUpper:n?2:1,backUpper:n?1:2,rightUpper:n?2:1}};return m.backUpper=this.getCylinderBack(h,c),x=Math.min(g,t.width)/Math.max(g,t.width)!=1,m.rightUpper=this.getCylinderFront(this.getCylinderEnd(e,(0,r.merge)(t,{x:t.x-t.width/2,z:t.z-t.width/2,alphaCorrection:x?-i:0}),!1),this.getCylinderEnd(e,(0,r.merge)(f,{alphaCorrection:x?-i:0}),!d)),d&&(x=Math.min(g,a)/Math.max(g,a)!=1,(0,r.merge)(!0,m,{frontLower:this.getCylinderFront(u,p),backLower:this.getCylinderBack(u,p),rightLower:this.getCylinderFront(this.getCylinderEnd(e,(0,r.merge)(l,{alphaCorrection:x?-i:0}),!0),this.getCylinderEnd(e,(0,r.merge)(f,{alphaCorrection:x?-i:0}),!1)),zIndexes:{frontLower:n?2:1,backLower:n?1:2,rightLower:n?1:2}})),m}let w=t.default.SeriesRegistry;var b=e.n(w);let{seriesTypes:{column:z}}=b();class A extends z.prototype.pointClass{}(0,r.extend)(A.prototype,{shapeType:"funnel3d"});let{deg2rad:v}=i();function L(t,e,r,i){let s=e.options.chart.options3d,o=i??(!!r&&e.inverted),n={x:e.plotWidth/2,y:e.plotHeight/2,z:s.depth/2,vd:(s.depth??1)*(s.viewDistance??0)},d=e.scale3d||1,h=v*s.beta*(o?-1:1),a=v*s.alpha*(o?-1:1),l={cosA:Math.cos(a),cosB:Math.cos(-h),sinA:Math.sin(a),sinB:Math.sin(-h)};return r||(n.x+=e.plotLeft,n.y+=e.plotTop),t.map(function(t){var e,r,i;let s=(e=(o?t.y:t.x)-n.x,r=(o?t.x:t.y)-n.y,i=(t.z||0)-n.z,{x:l.cosB*e-l.sinB*i,y:-l.sinA*l.sinB*e+l.cosA*r-l.cosB*l.sinA*i,z:l.cosA*l.sinB*e+l.sinA*r+l.cosA*l.cosB*i}),h=S(s,n,n.vd);return h.x=h.x*d+n.x,h.y=h.y*d+n.y,h.z=s.z*d+n.z,{x:o?h.y:h.x,y:o?h.x:h.y,z:h.z}})}function S(t,e,r){let i=r>0&&r<1/0?r/(t.z+e.z+r):1;return{x:t.x*i,y:t.y*i}}function C(t){let e=0,r,i;for(r=0;r<t.length;r++)i=(r+1)%t.length,e+=t[r].x*t[i].y-t[i].x*t[r].y;return e/2}let{noop:P}=i(),{perspective:U}={perspective:L,perspective3D:S,pointCameraDistance:function(t,e){let r=e.options.chart.options3d,i={x:e.plotWidth/2,y:e.plotHeight/2,z:(r.depth??1)*(r.viewDistance??0)+r.depth};return Math.sqrt(Math.pow(i.x-(t.plotX??t.x),2)+Math.pow(i.y-(t.plotY??t.y),2)+Math.pow(i.z-(t.plotZ??t.z),2))},shapeArea:C,shapeArea3D:function(t,e,r){return C(L(t,e,r))}},{series:G,seriesTypes:{column:M}}=b();class k extends M{alignDataLabel(t,e,r){let i=t.dlBoxRaw,s=this.chart.inverted,o=t.plotY>(this.translatedThreshold??this.yAxis.len),n=r.inside??!!this.options.stacking,d={x:i.x,y:i.y,height:0};r.align=r.align??(!s||n?"center":o?"right":"left"),r.verticalAlign=r.verticalAlign??(s||n?"middle":o?"top":"bottom"),"top"!==r.verticalAlign&&(d.y+=i.bottom/("bottom"===r.verticalAlign?1:2)),d.width=this.getWidthAt(d.y),this.options.reversed&&(d.width=i.fullWidth-d.width),n?d.x-=d.width/2:"left"===r.align?(r.align="right",d.x-=1.5*d.width):"right"===r.align?(r.align="left",d.x+=d.width/2):d.x-=d.width/2,t.dlBox=d,M.prototype.alignDataLabel.apply(this,arguments)}bindAxes(){G.prototype.bindAxes.apply(this,arguments),(0,r.extend)(this.xAxis.options,{gridLineWidth:0,lineWidth:0,title:void 0,tickPositions:[]}),(0,r.merge)(!0,this.yAxis.options,{gridLineWidth:0,title:void 0,labels:{enabled:!1}})}translate(){G.prototype.translate.apply(this,arguments);let t=this.chart,e=this.options,i=e.reversed,s=e.ignoreHiddenPoint,o=t.plotWidth,n=t.plotHeight,d=e.center,h=(0,r.relativeLength)(d[0],o),a=(0,r.relativeLength)(d[1],n),l=(0,r.relativeLength)(e.width,o),p=(0,r.relativeLength)(e.height,n),g=(0,r.relativeLength)(e.neckWidth,o),f=(0,r.relativeLength)(e.neckHeight,n),c=a-p/2+p-f,u=this.points,y=0,x=0,m,w,b,z,A,v,L,S,C;for(let t of(this.getWidthAt=w=function(t){return t>c||p===f?g:g+(l-g)*(1-(t-(a-p/2))/(p-f))},this.center=[h,a,p],this.centerX=h,u))s&&!1===t.visible||(y+=t.y);for(let o of u)L=null,b=y?o.y/y:0,v=(A=a-p/2+x*p)+b*p,m=w(A),S=v-A,(C={gradientForSides:o.options.gradientForSides??e.gradientForSides,x:h,y:A,height:S,width:m,z:1,top:{width:m}}).bottom={fraction:b,width:m=w(v)},A>=c?C.isCylinder=!0:v>c&&(L=v,m=w(c),v=c,C.bottom.width=m,C.middle={fraction:S?(c-A)/S:0,width:m}),i&&(C.y=A=a+p/2-(x+b)*p,C.middle&&(C.middle.fraction=1-(S?C.middle.fraction:0)),m=C.width,C.width=C.bottom.width,C.bottom.width=m),o.shapeArgs=(0,r.extend)(o.shapeArgs,C),o.percentage=100*b,o.plotX=h,i?o.plotY=a+p/2-(x+b/2)*p:o.plotY=(A+(L||v))/2,z=U([{x:h,y:o.plotY,z:i?-(l-w(o.plotY))/2:-w(o.plotY)/2}],t,!0)[0],o.tooltipPos=[z.x,z.y],o.dlBoxRaw={x:h,width:w(o.plotY),y:A,bottom:C.height||0,fullWidth:l},s&&!1===o.visible||(x+=b)}}k.compose=function(t){let e=t.prototype;e.funnel3d||(e.Element3D.types.funnel3d=u,(0,r.extend)(e,{funnel3d:x,funnel3dPath:m}))},k.defaultOptions=(0,r.merge)(M.defaultOptions,{center:["50%","50%"],width:"90%",neckWidth:"30%",height:"100%",neckHeight:"25%",reversed:!1,gradientForSides:!0,animation:!1,edgeWidth:0,colorByPoint:!0,showInLegend:!1,dataLabels:{align:"right",crop:!1,inside:!1,overflow:"allow"}}),(0,r.extend)(k.prototype,{pointClass:A,translate3dShapes:P}),b().registerSeriesType("funnel3d",k),k.compose(o());let F=i();export{F as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-License-Identifier: LicenseRef-Highcharts
|
|
2
2
|
/**
|
|
3
|
-
* @license Highcharts JS v13.0.
|
|
3
|
+
* @license Highcharts JS v13.0.2 (2026-08-27)
|
|
4
4
|
* @module highcharts/modules/funnel3d
|
|
5
5
|
* @requires highcharts
|
|
6
6
|
* @requires highcharts/highcharts-3d
|
|
@@ -193,7 +193,7 @@ class SVGElement3D extends (external_highcharts_src_js_default_SVGElement_defaul
|
|
|
193
193
|
for (const part of elem3d.parts) {
|
|
194
194
|
// If different props for different parts
|
|
195
195
|
if (partsProps) {
|
|
196
|
-
props = (
|
|
196
|
+
props = (partsProps[part] ?? false);
|
|
197
197
|
}
|
|
198
198
|
// Only if something to set, but allow undefined
|
|
199
199
|
if (props !== false) {
|
|
@@ -918,7 +918,6 @@ class Funnel3DPoint extends ColumnSeries.prototype.pointClass {
|
|
|
918
918
|
* */
|
|
919
919
|
|
|
920
920
|
|
|
921
|
-
|
|
922
921
|
const { deg2rad } = (external_highcharts_src_js_default_default());
|
|
923
922
|
/* *
|
|
924
923
|
*
|
|
@@ -1005,11 +1004,11 @@ function perspective(points, chart, insidePlotArea, useInvertedPersp) {
|
|
|
1005
1004
|
/* The useInvertedPersp argument is used for inverted charts with
|
|
1006
1005
|
* already inverted elements, such as dataLabels or tooltip positions.
|
|
1007
1006
|
*/
|
|
1008
|
-
inverted =
|
|
1007
|
+
inverted = useInvertedPersp ?? (insidePlotArea ? chart.inverted : false), origin = {
|
|
1009
1008
|
x: chart.plotWidth / 2,
|
|
1010
1009
|
y: chart.plotHeight / 2,
|
|
1011
1010
|
z: options3d.depth / 2,
|
|
1012
|
-
vd: (
|
|
1011
|
+
vd: (options3d.depth ?? 1) * (options3d.viewDistance ?? 0)
|
|
1013
1012
|
}, scale = chart.scale3d || 1, beta = deg2rad * options3d.beta * (inverted ? -1 : 1), alpha = deg2rad * options3d.alpha * (inverted ? -1 : 1), angles = {
|
|
1014
1013
|
cosA: Math.cos(alpha),
|
|
1015
1014
|
cosB: Math.cos(-beta),
|
|
@@ -1088,13 +1087,13 @@ function pointCameraDistance(coordinates, chart) {
|
|
|
1088
1087
|
const options3d = chart.options.chart.options3d, cameraPosition = {
|
|
1089
1088
|
x: chart.plotWidth / 2,
|
|
1090
1089
|
y: chart.plotHeight / 2,
|
|
1091
|
-
z: (
|
|
1090
|
+
z: (options3d.depth ?? 1) * (options3d.viewDistance ?? 0) +
|
|
1092
1091
|
options3d.depth
|
|
1093
1092
|
},
|
|
1094
1093
|
// Added support for objects with plotX or x coordinates.
|
|
1095
|
-
distance = Math.sqrt(Math.pow(cameraPosition.x - (
|
|
1096
|
-
Math.pow(cameraPosition.y - (
|
|
1097
|
-
Math.pow(cameraPosition.z - (
|
|
1094
|
+
distance = Math.sqrt(Math.pow(cameraPosition.x - (coordinates.plotX ?? coordinates.x), 2) +
|
|
1095
|
+
Math.pow(cameraPosition.y - (coordinates.plotY ?? coordinates.y), 2) +
|
|
1096
|
+
Math.pow(cameraPosition.z - (coordinates.plotZ ?? coordinates.z), 2));
|
|
1098
1097
|
return distance;
|
|
1099
1098
|
}
|
|
1100
1099
|
/**
|
|
@@ -1211,13 +1210,14 @@ class Funnel3DSeries extends Funnel3DSeries_ColumnSeries {
|
|
|
1211
1210
|
* @private
|
|
1212
1211
|
*/
|
|
1213
1212
|
alignDataLabel(point, _dataLabel, options) {
|
|
1214
|
-
const series = this, dlBoxRaw = point.dlBoxRaw, inverted = series.chart.inverted, below = point.plotY >
|
|
1213
|
+
const series = this, dlBoxRaw = point.dlBoxRaw, inverted = series.chart.inverted, below = point.plotY >
|
|
1214
|
+
(series.translatedThreshold ?? series.yAxis.len), inside = (options.inside ?? !!series.options.stacking), dlBox = {
|
|
1215
1215
|
x: dlBoxRaw.x,
|
|
1216
1216
|
y: dlBoxRaw.y,
|
|
1217
1217
|
height: 0
|
|
1218
1218
|
};
|
|
1219
|
-
options.align =
|
|
1220
|
-
options.verticalAlign =
|
|
1219
|
+
options.align = options.align ?? (!inverted || inside ? 'center' : below ? 'right' : 'left');
|
|
1220
|
+
options.verticalAlign = options.verticalAlign ?? (inverted || inside ? 'middle' : below ? 'top' : 'bottom');
|
|
1221
1221
|
if (options.verticalAlign !== 'top') {
|
|
1222
1222
|
dlBox.y += dlBoxRaw.bottom /
|
|
1223
1223
|
(options.verticalAlign === 'bottom' ? 1 : 2);
|
|
@@ -1323,7 +1323,8 @@ class Funnel3DSeries extends Funnel3DSeries_ColumnSeries {
|
|
|
1323
1323
|
h = y3 - y1;
|
|
1324
1324
|
shapeArgs = {
|
|
1325
1325
|
// For fill setter
|
|
1326
|
-
gradientForSides:
|
|
1326
|
+
gradientForSides: point.options.gradientForSides ??
|
|
1327
|
+
options.gradientForSides,
|
|
1327
1328
|
x: centerX,
|
|
1328
1329
|
y: y1,
|
|
1329
1330
|
height: h,
|