highcharts 10.2.1 → 10.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/es-modules/Accessibility/Accessibility.js +1 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +9 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +36 -32
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +1 -1
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +16 -16
- package/es-modules/Accessibility/Options/LangDefaults.js +4 -0
- package/es-modules/Core/Axis/Axis.js +42 -32
- package/es-modules/Core/Axis/Axis3DComposition.js +501 -0
- package/es-modules/Core/Axis/Axis3DDefaults.js +130 -0
- package/es-modules/Core/Axis/AxisDefaults.js +20 -7
- package/es-modules/Core/Axis/Color/ColorAxis.js +46 -52
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +4 -2
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +161 -0
- package/es-modules/Core/Axis/OrdinalAxis.js +2 -1
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +1 -1
- package/es-modules/Core/Axis/RadialAxis.js +19 -5
- package/es-modules/Core/Axis/Tick.js +1 -1
- package/es-modules/Core/Axis/Tick3DComposition.js +71 -0
- package/es-modules/Core/Chart/Chart.js +16 -20
- package/es-modules/Core/Chart/Chart3D.js +4 -4
- package/es-modules/Core/Chart/ChartDefaults.js +33 -43
- package/es-modules/Core/Chart/GanttChart.js +1 -1
- package/es-modules/Core/Chart/MapChart.js +1 -1
- package/es-modules/Core/Chart/StockChart.js +11 -28
- package/es-modules/Core/{DefaultOptions.js → Defaults.js} +21 -37
- package/es-modules/Core/FormatUtilities.js +1 -1
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +114 -110
- package/es-modules/Core/Legend/LegendSymbol.js +9 -6
- package/es-modules/Core/MSPointer.js +4 -2
- package/es-modules/Core/Pointer.js +125 -75
- package/es-modules/Core/Renderer/SVG/SVGElement.js +0 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +28 -14
- package/es-modules/Core/Series/DataLabel.js +8 -5
- package/es-modules/Core/Series/Point.js +38 -22
- package/es-modules/Core/Series/Series.js +12 -9
- package/es-modules/Core/Series/SeriesDefaults.js +36 -24
- package/es-modules/Core/Series/SeriesRegistry.js +2 -2
- package/es-modules/Core/Time.js +6 -5
- package/es-modules/Core/Tooltip.js +6 -28
- package/es-modules/Core/Utilities.js +6 -8
- package/es-modules/Extensions/Annotations/Annotation.js +1 -1
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +13 -8
- package/es-modules/Extensions/Annotations/MockPoint.js +2 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +4 -5
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/Popup.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +4 -4
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +1 -1
- package/es-modules/Extensions/Boost/BoostSeries.js +11 -8
- package/es-modules/Extensions/Breadcrumbs.js +2 -2
- package/es-modules/Extensions/Data.js +2 -2
- package/es-modules/Extensions/DataGrouping/ApproximationDefaults.js +157 -0
- package/es-modules/Extensions/DataGrouping/ApproximationRegistry.js +35 -0
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +469 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +174 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +143 -0
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +479 -0
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -2
- package/es-modules/Extensions/Drilldown.js +3 -5
- package/es-modules/Extensions/ExportData/ExportData.js +31 -5
- package/es-modules/Extensions/Exporting/Exporting.js +47 -60
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +22 -24
- package/es-modules/Extensions/GeoJSON.js +3 -1
- package/es-modules/Extensions/MarkerClusters.js +1 -1
- package/es-modules/Extensions/NoDataToDisplay.js +1 -1
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +3 -3
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +1 -1
- package/es-modules/Extensions/OldiePolyfills.js +3 -1
- package/es-modules/Extensions/Pane.js +42 -5
- package/es-modules/Extensions/ParallelCoordinates.js +5 -1
- package/es-modules/Extensions/PatternFill.js +10 -10
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +2 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabelDefaults.js +4 -0
- package/es-modules/Extensions/Sonification/Sonification.js +1 -1
- package/es-modules/Extensions/Themes/Avocado.js +1 -1
- package/es-modules/Extensions/Themes/BrandDark.js +1 -1
- package/es-modules/Extensions/Themes/BrandLight.js +1 -1
- package/es-modules/Extensions/Themes/DarkBlue.js +1 -1
- package/es-modules/Extensions/Themes/DarkGreen.js +1 -1
- package/es-modules/Extensions/Themes/DarkUnica.js +1 -1
- package/es-modules/Extensions/Themes/Gray.js +1 -1
- package/es-modules/Extensions/Themes/Grid.js +1 -1
- package/es-modules/Extensions/Themes/GridLight.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastDark.js +1 -1
- package/es-modules/Extensions/Themes/HighContrastLight.js +1 -1
- package/es-modules/Extensions/Themes/SandSignika.js +1 -1
- package/es-modules/Extensions/Themes/Skies.js +1 -1
- package/es-modules/Extensions/Themes/Sunset.js +1 -1
- package/es-modules/Gantt/Connection.js +5 -5
- package/es-modules/Gantt/Pathfinder.js +6 -6
- package/es-modules/Maps/MapNavigation.js +1 -1
- package/es-modules/Maps/{MapNavigationOptionsDefault.js → MapNavigationDefaults.js} +4 -4
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -4
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +3 -5
- package/es-modules/Series/AreaRange/AreaRangePoint.js +6 -10
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +59 -48
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +4 -1
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +22 -16
- package/es-modules/Series/Bubble/BubbleLegendItem.js +17 -21
- package/es-modules/Series/Candlestick/CandlestickSeries.js +15 -175
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +179 -0
- package/es-modules/Series/Column/ColumnSeries.js +25 -506
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +487 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +40 -36
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +2 -106
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +183 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +11 -12
- package/es-modules/Series/DrawPointUtilities.js +2 -14
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +5 -4
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +19 -136
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +147 -0
- package/es-modules/Series/Flags/FlagsPoint.js +2 -3
- package/es-modules/Series/Flags/FlagsSeries.js +31 -298
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +295 -0
- package/es-modules/Series/Flags/FlagsSymbols.js +96 -71
- package/es-modules/Series/HLC/HLCPoint.js +2 -2
- package/es-modules/Series/HLC/HLCSeries.js +7 -172
- package/es-modules/Series/HLC/HLCSeriesDefaults.js +184 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +3 -0
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -20
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +78 -139
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +102 -0
- package/es-modules/Series/Item/ItemPoint.js +0 -1
- package/es-modules/Series/Item/ItemSeries.js +13 -8
- package/es-modules/Series/Line/LineSeries.js +8 -4
- package/es-modules/Series/Map/MapPoint.js +19 -1
- package/es-modules/Series/Map/MapSeries.js +7 -3
- package/es-modules/Series/MapBubble/MapBubbleSeries.js +4 -0
- package/es-modules/Series/MapPoint/MapPointPoint.js +0 -5
- package/es-modules/Series/MapPoint/MapPointSeries.js +24 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +2 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +2 -0
- package/es-modules/Series/OHLC/OHLCPoint.js +0 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +64 -160
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +151 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +0 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +96 -469
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +415 -0
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +3 -10
- package/es-modules/Series/PackedBubble/PackedBubbleSeriesDefaults.js +2 -0
- package/es-modules/Series/PathUtilities.js +74 -0
- package/es-modules/Series/Pie/PieSeries.js +2 -644
- package/es-modules/Series/Pie/PieSeriesDefaults.js +660 -0
- package/es-modules/Series/PolarComposition.js +233 -15
- package/es-modules/Series/Sankey/SankeySeries.js +27 -530
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +522 -0
- package/es-modules/Series/Scatter/ScatterSeries.js +2 -172
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +188 -0
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +12 -182
- package/es-modules/Series/SolidGauge/SolidGaugeSeriesDefaults.js +199 -0
- package/es-modules/Series/Sunburst/SunburstNode.js +34 -0
- package/es-modules/Series/Sunburst/SunburstPoint.js +2 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +3 -1
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -231
- package/es-modules/Series/Timeline/TimelineSeriesDefaults.js +248 -0
- package/es-modules/Series/TreeUtilities.js +1 -2
- package/es-modules/Series/Treegraph/TreegraphLayout.js +338 -0
- package/es-modules/Series/Treegraph/TreegraphLink.js +92 -0
- package/es-modules/Series/Treegraph/TreegraphNode.js +206 -0
- package/es-modules/Series/Treegraph/TreegraphPoint.js +175 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +510 -0
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +231 -0
- package/es-modules/Series/Treemap/TreemapNode.js +48 -0
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -1
- package/es-modules/Series/Treemap/TreemapSeries.js +29 -27
- package/es-modules/Series/Variwide/VariwideComposition.js +70 -26
- package/es-modules/Series/Variwide/VariwidePoint.js +8 -7
- package/es-modules/Series/Variwide/VariwideSeries.js +19 -14
- package/es-modules/Series/Vector/VectorSeries.js +2 -2
- package/es-modules/Series/Venn/VennSeries.js +14 -0
- package/es-modules/Series/Waterfall/WaterfallSeries.js +0 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +3 -2
- package/es-modules/Series/Wordcloud/WordcloudSeries.js +3 -0
- package/es-modules/Stock/Indicators/AO/AOIndicator.js +1 -2
- package/es-modules/Stock/Indicators/BB/BBIndicator.js +15 -4
- package/es-modules/Stock/Indicators/IKH/IKHIndicator.js +21 -18
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -2
- package/es-modules/Stock/Indicators/MACD/MACDIndicator.js +1 -2
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +0 -1
- package/es-modules/Stock/Indicators/SlowStochastic/SlowStochasticIndicator.js +3 -4
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +1 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +6 -7
- package/es-modules/{Core → Stock/Navigator}/Navigator.js +112 -686
- package/es-modules/Stock/Navigator/NavigatorComposition.js +218 -0
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +490 -0
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +44 -0
- package/es-modules/{Extensions → Stock/RangeSelector}/RangeSelector.js +154 -818
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +286 -0
- package/es-modules/Stock/RangeSelector/RangeSelectorDefaults.js +521 -0
- package/es-modules/{Core → Stock/Scrollbar}/Scrollbar.js +4 -4
- package/es-modules/{Core → Stock/Scrollbar}/ScrollbarDefaults.js +1 -1
- package/es-modules/Stock/{StockToolbar.js → StockTools/StockToolbar.js} +2 -2
- package/es-modules/Stock/{StockTools.js → StockTools/StockTools.js} +3 -3
- package/es-modules/Stock/{StockToolsBindings.js → StockTools/StockToolsBindings.js} +3 -3
- package/es-modules/Stock/{StockToolsDefaults.js → StockTools/StockToolsDefaults.js} +4 -4
- package/es-modules/Stock/{StockToolsGui.js → StockTools/StockToolsGui.js} +4 -4
- package/es-modules/Stock/{StockToolsUtilities.js → StockTools/StockToolsUtilities.js} +4 -4
- package/es-modules/masters/highcharts-3d.src.js +3 -5
- 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 +6 -6
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.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/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +11 -3
- 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/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 +9 -5
- 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 +5 -2
- 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/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.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/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.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 +4 -4
- package/es-modules/masters/modules/stock.src.js +17 -11
- 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/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +13 -0
- 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 +5 -2
- 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/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/brand-dark.src.js +1 -1
- package/es-modules/masters/themes/brand-light.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +97 -98
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +476 -449
- package/highcharts-gantt.js +811 -808
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +14619 -14112
- package/highcharts-more.d.ts +0 -8
- package/highcharts-more.js +208 -201
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.d.ts +0 -8
- package/highcharts-more.src.js +679 -289
- package/highcharts.d.ts +30739 -6156
- package/highcharts.js +590 -589
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +30739 -6156
- package/highcharts.src.js +1988 -1799
- package/highmaps.js +759 -757
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +2339 -2077
- package/highstock.js +802 -794
- package/highstock.js.map +1 -1
- package/highstock.src.js +12349 -11416
- 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 +6 -6
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +4 -3
- 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 +1 -1
- package/indicators/aroon.src.js +1 -1
- package/indicators/atr.js +1 -1
- package/indicators/atr.src.js +1 -1
- package/indicators/bollinger-bands.js +1 -1
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +16 -5
- 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.d.ts +17 -0
- package/indicators/cmo.js +1 -1
- package/indicators/cmo.src.d.ts +17 -0
- package/indicators/cmo.src.js +1 -1
- package/indicators/dema.js +1 -1
- package/indicators/dema.src.js +1 -1
- package/indicators/disparity-index.d.ts +17 -0
- package/indicators/disparity-index.js +1 -1
- package/indicators/disparity-index.src.d.ts +17 -0
- package/indicators/disparity-index.src.js +1 -1
- package/indicators/dmi.d.ts +17 -0
- package/indicators/dmi.js +1 -1
- package/indicators/dmi.src.d.ts +17 -0
- package/indicators/dmi.src.js +1 -1
- package/indicators/dpo.js +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +14 -14
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +22 -19
- package/indicators/indicators-all.js +198 -199
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +63 -57
- package/indicators/indicators.js +13 -13
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +1 -15
- package/indicators/keltner-channels.js +1 -1
- package/indicators/keltner-channels.src.js +1 -1
- package/indicators/klinger.d.ts +17 -0
- package/indicators/klinger.js +12 -12
- package/indicators/klinger.js.map +1 -1
- package/indicators/klinger.src.d.ts +17 -0
- package/indicators/klinger.src.js +4 -3
- package/indicators/macd.js +1 -1
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +4 -3
- 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.d.ts +17 -0
- package/indicators/obv.js +1 -1
- package/indicators/obv.src.d.ts +17 -0
- package/indicators/obv.src.js +1 -1
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +2 -2
- 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 +1 -1
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +6 -5
- package/indicators/stochastic.js +1 -1
- package/indicators/stochastic.src.js +1 -1
- package/indicators/supertrend.js +7 -7
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +4 -3
- 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 +17 -17
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +9 -8
- 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 +214 -213
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +991 -835
- package/modules/annotations-advanced.js +16 -16
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +29 -24
- package/modules/annotations.js +91 -91
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +29 -24
- package/modules/arc-diagram.d.ts +17 -0
- package/modules/arc-diagram.js +15 -15
- package/modules/arc-diagram.js.map +1 -1
- package/modules/arc-diagram.src.d.ts +17 -0
- package/modules/arc-diagram.src.js +6 -6
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +19 -19
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +13 -8
- package/modules/boost.js +37 -37
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.js +13 -8
- package/modules/broken-axis.js +1 -1
- package/modules/broken-axis.src.js +1 -1
- package/modules/bullet.js +1 -1
- package/modules/bullet.src.js +1 -1
- package/modules/coloraxis.js +25 -24
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +77 -58
- package/modules/current-date-indicator.js +1 -1
- package/modules/current-date-indicator.src.js +1 -1
- package/modules/cylinder.js +1 -1
- package/modules/cylinder.src.js +1 -1
- package/modules/data.js +27 -27
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +3 -3
- package/modules/datagrouping.d.ts +31 -0
- package/modules/datagrouping.js +23 -21
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.d.ts +31 -0
- package/modules/datagrouping.src.js +921 -640
- package/modules/debugger.js +3 -3
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +2 -2
- package/modules/dependency-wheel.js +12 -12
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +191 -108
- package/modules/dotplot.js +6 -6
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +10 -13
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +5 -5
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +7 -3
- package/modules/drilldown.js +37 -37
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +5 -6
- package/modules/dumbbell.js +17 -17
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +27 -22
- package/modules/export-data.js +26 -25
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +33 -6
- package/modules/exporting.js +36 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +81 -88
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +1 -1
- package/modules/funnel.src.js +1 -1
- package/modules/funnel3d.js +1 -1
- package/modules/funnel3d.src.js +1 -1
- package/modules/gantt.js +221 -219
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +12842 -12524
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +40 -40
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +80 -58
- package/modules/heikinashi.d.ts +17 -0
- package/modules/heikinashi.js +9 -8
- package/modules/heikinashi.js.map +1 -1
- package/modules/heikinashi.src.d.ts +17 -0
- package/modules/heikinashi.src.js +192 -165
- package/modules/histogram-bellcurve.js +1 -1
- package/modules/histogram-bellcurve.src.js +1 -1
- package/modules/hollowcandlestick.d.ts +17 -0
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.d.ts +17 -0
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +12 -12
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +14 -10
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.js +172 -171
- package/modules/map.js.map +1 -1
- package/modules/map.src.js +194 -121
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +2 -2
- package/modules/networkgraph.js +8 -8
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +5 -6
- package/modules/no-data-to-display.js +4 -4
- package/modules/no-data-to-display.js.map +1 -1
- package/modules/no-data-to-display.src.js +2 -2
- package/modules/offline-exporting.js +4 -4
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +7 -7
- package/modules/oldie-polyfills.js +7 -7
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +9 -7
- package/modules/oldie.js +30 -30
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +5 -5
- package/modules/organization.js +18 -16
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +659 -495
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +10 -10
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +6 -2
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +31 -31
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +19 -23
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +11 -11
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +1 -1
- package/modules/pyramid3d.src.js +1 -1
- package/modules/sankey.js +33 -32
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +571 -550
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +7 -3
- package/modules/series-on-point.d.ts +17 -0
- package/modules/series-on-point.js +1 -1
- package/modules/series-on-point.src.d.ts +17 -0
- package/modules/series-on-point.src.js +1 -1
- package/modules/solid-gauge.js +11 -10
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +220 -192
- package/modules/sonification.js +2 -2
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +2 -2
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +59 -59
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +19 -21
- package/modules/stock.d.ts +26 -6
- package/modules/stock.js +212 -205
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.d.ts +26 -6
- package/modules/stock.src.js +11361 -10617
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +75 -73
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +133 -57
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +18 -18
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +257 -233
- package/modules/treegraph.d.ts +17 -0
- package/modules/treegraph.js +44 -0
- package/modules/treegraph.js.map +1 -0
- package/modules/treegraph.src.d.ts +17 -0
- package/modules/treegraph.src.js +1829 -0
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +2 -3
- package/modules/treemap.js +54 -53
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +90 -52
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +12 -12
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +158 -106
- package/modules/vector.js +1 -1
- package/modules/vector.src.js +3 -3
- package/modules/venn.js +31 -31
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +17 -16
- package/modules/windbarb.js +15 -15
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +41 -4
- package/modules/wordcloud.js +23 -23
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +6 -15
- package/modules/xrange.js +1 -1
- package/modules/xrange.src.js +1 -1
- package/package.json +1 -1
- package/themes/avocado.js +2 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +2 -2
- package/themes/brand-dark.d.ts +22 -0
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.js.map +1 -1
- package/themes/brand-dark.src.d.ts +22 -0
- package/themes/brand-dark.src.js +2 -2
- package/themes/brand-light.d.ts +22 -0
- package/themes/brand-light.js +2 -2
- package/themes/brand-light.js.map +1 -1
- package/themes/brand-light.src.d.ts +22 -0
- package/themes/brand-light.src.js +2 -2
- package/themes/dark-blue.js +2 -2
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +2 -2
- package/themes/dark-green.js +2 -2
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +2 -2
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +2 -2
- package/themes/gray.js +2 -2
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +2 -2
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +2 -2
- package/themes/grid.js +2 -2
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +2 -2
- package/themes/high-contrast-dark.d.ts +22 -0
- package/themes/high-contrast-dark.js +2 -2
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.d.ts +22 -0
- package/themes/high-contrast-dark.src.js +2 -2
- package/themes/high-contrast-light.d.ts +22 -0
- package/themes/high-contrast-light.js +2 -2
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.d.ts +22 -0
- package/themes/high-contrast-light.src.js +2 -2
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +2 -2
- package/themes/skies.js +2 -2
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +2 -2
- package/themes/sunset.js +2 -2
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +2 -2
- package/es-modules/Core/Axis/Axis3D.js +0 -612
- package/es-modules/Core/Axis/NavigatorAxis.js +0 -159
- package/es-modules/Core/Axis/Tick3D.js +0 -68
- package/es-modules/Extensions/DataGrouping.js +0 -1177
- package/es-modules/Stock/Indicators/SMA/SMAComposition.js +0 -12
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
import AST from '../../Core/Renderer/HTML/AST.js';
|
|
14
14
|
import Chart from '../../Core/Chart/Chart.js';
|
|
15
15
|
import ChartNavigationComposition from '../../Core/Chart/ChartNavigationComposition.js';
|
|
16
|
-
import D from '../../Core/
|
|
17
|
-
var defaultOptions = D.defaultOptions;
|
|
16
|
+
import D from '../../Core/Defaults.js';
|
|
17
|
+
var defaultOptions = D.defaultOptions, setOptions = D.setOptions;
|
|
18
18
|
import ExportingDefaults from './ExportingDefaults.js';
|
|
19
19
|
import ExportingSymbols from './ExportingSymbols.js';
|
|
20
20
|
import Fullscreen from './Fullscreen.js';
|
|
@@ -42,16 +42,17 @@ var Exporting;
|
|
|
42
42
|
* */
|
|
43
43
|
var composedClasses = [];
|
|
44
44
|
// These CSS properties are not inlined. Remember camelCase.
|
|
45
|
-
var
|
|
45
|
+
var inlineDenylist = [
|
|
46
46
|
/-/,
|
|
47
47
|
/^(clipPath|cssText|d|height|width)$/,
|
|
48
48
|
/^font$/,
|
|
49
49
|
/[lL]ogical(Width|Height)$/,
|
|
50
|
+
/^parentRule$/,
|
|
50
51
|
/perspective/,
|
|
51
52
|
/TapHighlightColor/,
|
|
52
53
|
/^transition/,
|
|
53
|
-
/^length
|
|
54
|
-
//
|
|
54
|
+
/^length$/,
|
|
55
|
+
/^[0-9]+$/ // #17538
|
|
55
56
|
];
|
|
56
57
|
// These ones are translated to attributes rather than styles
|
|
57
58
|
var inlineToAttributes = [
|
|
@@ -64,7 +65,7 @@ var Exporting;
|
|
|
64
65
|
'x',
|
|
65
66
|
'y'
|
|
66
67
|
];
|
|
67
|
-
Exporting.
|
|
68
|
+
Exporting.inlineAllowlist = [];
|
|
68
69
|
var unstyledElements = [
|
|
69
70
|
'clipPath',
|
|
70
71
|
'defs',
|
|
@@ -144,7 +145,7 @@ var Exporting;
|
|
|
144
145
|
attr.stroke = pick(attr.stroke, 'none');
|
|
145
146
|
}
|
|
146
147
|
var button = renderer
|
|
147
|
-
.button(btnOptions.text, 0, 0, callback, attr)
|
|
148
|
+
.button(btnOptions.text, 0, 0, callback, attr, void 0, void 0, void 0, void 0, btnOptions.useHTML)
|
|
148
149
|
.addClass(options.className)
|
|
149
150
|
.attr({
|
|
150
151
|
title: pick(chart.options.lang[btnOptions._titleKey || btnOptions.titleKey], '')
|
|
@@ -343,6 +344,15 @@ var Exporting;
|
|
|
343
344
|
});
|
|
344
345
|
}
|
|
345
346
|
}
|
|
347
|
+
if (composedClasses.indexOf(setOptions) === -1) {
|
|
348
|
+
composedClasses.push(setOptions);
|
|
349
|
+
defaultOptions.exporting = merge(ExportingDefaults.exporting, defaultOptions.exporting);
|
|
350
|
+
defaultOptions.lang = merge(ExportingDefaults.lang, defaultOptions.lang);
|
|
351
|
+
// Buttons and menus are collected in a separate config option set
|
|
352
|
+
// called 'navigation'. This can be extended later to add control
|
|
353
|
+
// buttons like zoom and pan right click menus.
|
|
354
|
+
defaultOptions.navigation = merge(ExportingDefaults.navigation, defaultOptions.navigation);
|
|
355
|
+
}
|
|
346
356
|
}
|
|
347
357
|
Exporting.compose = compose;
|
|
348
358
|
/**
|
|
@@ -814,7 +824,7 @@ var Exporting;
|
|
|
814
824
|
* @requires modules/exporting
|
|
815
825
|
*/
|
|
816
826
|
function inlineStyles() {
|
|
817
|
-
var
|
|
827
|
+
var denylist = inlineDenylist, allowlist = Exporting.inlineAllowlist, // For IE
|
|
818
828
|
defaultStyles = {};
|
|
819
829
|
var dummySVG;
|
|
820
830
|
// Create an iframe where we read default styles without pollution from
|
|
@@ -838,11 +848,9 @@ var Exporting;
|
|
|
838
848
|
*/
|
|
839
849
|
function recurse(node) {
|
|
840
850
|
var filteredStyles = {};
|
|
841
|
-
var styles, parentStyles,
|
|
842
|
-
// cssText = '',
|
|
843
|
-
dummy, styleAttr, blacklisted, whitelisted, i;
|
|
851
|
+
var styles, parentStyles, dummy, denylisted, allowlisted, i;
|
|
844
852
|
/**
|
|
845
|
-
* Check computed styles and whether they are in the
|
|
853
|
+
* Check computed styles and whether they are in the allow/denylist
|
|
846
854
|
* for styles or atttributes.
|
|
847
855
|
* @private
|
|
848
856
|
* @param {string} val
|
|
@@ -851,27 +859,27 @@ var Exporting;
|
|
|
851
859
|
* Style property name
|
|
852
860
|
*/
|
|
853
861
|
function filterStyles(val, prop) {
|
|
854
|
-
// Check against
|
|
855
|
-
|
|
856
|
-
if (
|
|
857
|
-
// Styled mode in IE has a
|
|
858
|
-
//
|
|
859
|
-
i =
|
|
860
|
-
while (i-- && !
|
|
861
|
-
|
|
862
|
+
// Check against allowlist & denylist
|
|
863
|
+
denylisted = allowlisted = false;
|
|
864
|
+
if (allowlist.length) {
|
|
865
|
+
// Styled mode in IE has a allowlist instead. Exclude all
|
|
866
|
+
// props not in this list.
|
|
867
|
+
i = allowlist.length;
|
|
868
|
+
while (i-- && !allowlisted) {
|
|
869
|
+
allowlisted = allowlist[i].test(prop);
|
|
862
870
|
}
|
|
863
|
-
|
|
871
|
+
denylisted = !allowlisted;
|
|
864
872
|
}
|
|
865
873
|
// Explicitly remove empty transforms
|
|
866
874
|
if (prop === 'transform' && val === 'none') {
|
|
867
|
-
|
|
875
|
+
denylisted = true;
|
|
868
876
|
}
|
|
869
|
-
i =
|
|
870
|
-
while (i-- && !
|
|
871
|
-
|
|
877
|
+
i = denylist.length;
|
|
878
|
+
while (i-- && !denylisted) {
|
|
879
|
+
denylisted = (denylist[i].test(prop) ||
|
|
872
880
|
typeof val === 'function');
|
|
873
881
|
}
|
|
874
|
-
if (!
|
|
882
|
+
if (!denylisted) {
|
|
875
883
|
// If parent node has the same style, it gets inherited, no
|
|
876
884
|
// need to inline it. Top-level props should be diffed
|
|
877
885
|
// against parent (#7687).
|
|
@@ -886,7 +894,7 @@ var Exporting;
|
|
|
886
894
|
}
|
|
887
895
|
// Styles
|
|
888
896
|
}
|
|
889
|
-
else
|
|
897
|
+
else {
|
|
890
898
|
filteredStyles[prop] = val;
|
|
891
899
|
}
|
|
892
900
|
}
|
|
@@ -912,8 +920,16 @@ var Exporting;
|
|
|
912
920
|
dummySVG = iframeDoc.getElementsByTagName('svg')[0];
|
|
913
921
|
dummy = iframeDoc.createElementNS(node.namespaceURI, node.nodeName);
|
|
914
922
|
dummySVG.appendChild(dummy);
|
|
915
|
-
//
|
|
916
|
-
|
|
923
|
+
// Get the defaults into a standard object (simple merge
|
|
924
|
+
// won't do)
|
|
925
|
+
var s = win.getComputedStyle(dummy, null), defaults = {};
|
|
926
|
+
for (var key in s) {
|
|
927
|
+
if (typeof s[key] === 'string' &&
|
|
928
|
+
!/^[0-9]+$/.test(key)) {
|
|
929
|
+
defaults[key] = s[key];
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
defaultStyles[node.nodeName] = defaults;
|
|
917
933
|
// Remove default fill, otherwise text disappears when
|
|
918
934
|
// exported
|
|
919
935
|
if (node.nodeName === 'text') {
|
|
@@ -934,15 +950,6 @@ var Exporting;
|
|
|
934
950
|
}
|
|
935
951
|
}
|
|
936
952
|
// Apply styles
|
|
937
|
-
/*
|
|
938
|
-
if (cssText) {
|
|
939
|
-
styleAttr = node.getAttribute('style');
|
|
940
|
-
node.setAttribute(
|
|
941
|
-
'style',
|
|
942
|
-
(styleAttr ? styleAttr + ';' : '') + cssText
|
|
943
|
-
);
|
|
944
|
-
}
|
|
945
|
-
*/
|
|
946
953
|
css(node, filteredStyles);
|
|
947
954
|
// Set default stroke width (needed at least for IE)
|
|
948
955
|
if (node.nodeName === 'svg') {
|
|
@@ -1143,26 +1150,6 @@ var Exporting;
|
|
|
1143
1150
|
return svg;
|
|
1144
1151
|
}
|
|
1145
1152
|
})(Exporting || (Exporting = {}));
|
|
1146
|
-
/* *
|
|
1147
|
-
*
|
|
1148
|
-
* Registry
|
|
1149
|
-
*
|
|
1150
|
-
* */
|
|
1151
|
-
defaultOptions.exporting = merge(ExportingDefaults.exporting, defaultOptions.exporting);
|
|
1152
|
-
defaultOptions.lang = merge(ExportingDefaults.lang, defaultOptions.lang);
|
|
1153
|
-
// Buttons and menus are collected in a separate config option set called
|
|
1154
|
-
// 'navigation'. This can be extended later to add control buttons like
|
|
1155
|
-
// zoom and pan right click menus.
|
|
1156
|
-
/**
|
|
1157
|
-
* A collection of options for buttons and menus appearing in the exporting
|
|
1158
|
-
* module or in Stock Tools.
|
|
1159
|
-
*
|
|
1160
|
-
* @requires modules/exporting
|
|
1161
|
-
* @optionparent navigation
|
|
1162
|
-
*
|
|
1163
|
-
* @private
|
|
1164
|
-
*/
|
|
1165
|
-
defaultOptions.navigation = merge(ExportingDefaults.navigation, defaultOptions.navigation);
|
|
1166
1153
|
/* *
|
|
1167
1154
|
*
|
|
1168
1155
|
* Default Export
|
|
@@ -1180,7 +1167,7 @@ export default Exporting;
|
|
|
1180
1167
|
*
|
|
1181
1168
|
* @callback Highcharts.ExportingAfterPrintCallbackFunction
|
|
1182
1169
|
*
|
|
1183
|
-
* @param {Highcharts.Chart}
|
|
1170
|
+
* @param {Highcharts.Chart} this
|
|
1184
1171
|
* The chart on which the event occured.
|
|
1185
1172
|
*
|
|
1186
1173
|
* @param {global.Event} event
|
|
@@ -1192,7 +1179,7 @@ export default Exporting;
|
|
|
1192
1179
|
*
|
|
1193
1180
|
* @callback Highcharts.ExportingBeforePrintCallbackFunction
|
|
1194
1181
|
*
|
|
1195
|
-
* @param {Highcharts.Chart}
|
|
1182
|
+
* @param {Highcharts.Chart} this
|
|
1196
1183
|
* The chart on which the event occured.
|
|
1197
1184
|
*
|
|
1198
1185
|
* @param {global.Event} event
|
|
@@ -503,8 +503,6 @@ var lang = {
|
|
|
503
503
|
* in full screen.
|
|
504
504
|
*
|
|
505
505
|
* @since 8.0.1
|
|
506
|
-
*
|
|
507
|
-
* @private
|
|
508
506
|
*/
|
|
509
507
|
viewFullscreen: 'View in full screen',
|
|
510
508
|
/**
|
|
@@ -512,8 +510,6 @@ var lang = {
|
|
|
512
510
|
* from full screen.
|
|
513
511
|
*
|
|
514
512
|
* @since 8.0.1
|
|
515
|
-
*
|
|
516
|
-
* @private
|
|
517
513
|
*/
|
|
518
514
|
exitFullscreen: 'Exit from full screen',
|
|
519
515
|
/**
|
|
@@ -521,8 +517,6 @@ var lang = {
|
|
|
521
517
|
*
|
|
522
518
|
* @since 3.0.1
|
|
523
519
|
* @requires modules/exporting
|
|
524
|
-
*
|
|
525
|
-
* @private
|
|
526
520
|
*/
|
|
527
521
|
printChart: 'Print chart',
|
|
528
522
|
/**
|
|
@@ -530,8 +524,6 @@ var lang = {
|
|
|
530
524
|
*
|
|
531
525
|
* @since 2.0
|
|
532
526
|
* @requires modules/exporting
|
|
533
|
-
*
|
|
534
|
-
* @private
|
|
535
527
|
*/
|
|
536
528
|
downloadPNG: 'Download PNG image',
|
|
537
529
|
/**
|
|
@@ -539,8 +531,6 @@ var lang = {
|
|
|
539
531
|
*
|
|
540
532
|
* @since 2.0
|
|
541
533
|
* @requires modules/exporting
|
|
542
|
-
*
|
|
543
|
-
* @private
|
|
544
534
|
*/
|
|
545
535
|
downloadJPEG: 'Download JPEG image',
|
|
546
536
|
/**
|
|
@@ -548,8 +538,6 @@ var lang = {
|
|
|
548
538
|
*
|
|
549
539
|
* @since 2.0
|
|
550
540
|
* @requires modules/exporting
|
|
551
|
-
*
|
|
552
|
-
* @private
|
|
553
541
|
*/
|
|
554
542
|
downloadPDF: 'Download PDF document',
|
|
555
543
|
/**
|
|
@@ -557,8 +545,6 @@ var lang = {
|
|
|
557
545
|
*
|
|
558
546
|
* @since 2.0
|
|
559
547
|
* @requires modules/exporting
|
|
560
|
-
*
|
|
561
|
-
* @private
|
|
562
548
|
*/
|
|
563
549
|
downloadSVG: 'Download SVG vector image',
|
|
564
550
|
/**
|
|
@@ -567,11 +553,16 @@ var lang = {
|
|
|
567
553
|
*
|
|
568
554
|
* @since 3.0
|
|
569
555
|
* @requires modules/exporting
|
|
570
|
-
*
|
|
571
|
-
* @private
|
|
572
556
|
*/
|
|
573
557
|
contextButtonTitle: 'Chart context menu'
|
|
574
558
|
};
|
|
559
|
+
/**
|
|
560
|
+
* A collection of options for buttons and menus appearing in the exporting
|
|
561
|
+
* module or in Stock Tools.
|
|
562
|
+
*
|
|
563
|
+
* @requires modules/exporting
|
|
564
|
+
* @optionparent navigation
|
|
565
|
+
*/
|
|
575
566
|
var navigation = {
|
|
576
567
|
/**
|
|
577
568
|
* A collection of options for buttons appearing in the exporting
|
|
@@ -581,8 +572,6 @@ var navigation = {
|
|
|
581
572
|
* `.highcharts-contextbutton` and `.highcharts-button-symbol` classes.
|
|
582
573
|
*
|
|
583
574
|
* @requires modules/exporting
|
|
584
|
-
*
|
|
585
|
-
* @private
|
|
586
575
|
*/
|
|
587
576
|
buttonOptions: {
|
|
588
577
|
/**
|
|
@@ -653,6 +642,8 @@ var navigation = {
|
|
|
653
642
|
*
|
|
654
643
|
* @sample highcharts/exporting/buttons-text/
|
|
655
644
|
* Full text button
|
|
645
|
+
* @sample highcharts/exporting/buttons-text-usehtml/
|
|
646
|
+
* Icon using CSS font in text
|
|
656
647
|
* @sample highcharts/exporting/buttons-text-symbol/
|
|
657
648
|
* Combined symbol and text
|
|
658
649
|
*
|
|
@@ -661,6 +652,18 @@ var navigation = {
|
|
|
661
652
|
* @since 3.0
|
|
662
653
|
* @apioption navigation.buttonOptions.text
|
|
663
654
|
*/
|
|
655
|
+
/**
|
|
656
|
+
* Whether to use HTML for rendering the button. HTML allows for things
|
|
657
|
+
* like inline CSS or image-based icons.
|
|
658
|
+
*
|
|
659
|
+
* @sample highcharts/exporting/buttons-text-usehtml/
|
|
660
|
+
* Icon using CSS font in text
|
|
661
|
+
*
|
|
662
|
+
* @type boolean
|
|
663
|
+
* @default false
|
|
664
|
+
* @since 10.3.0
|
|
665
|
+
* @apioption navigation.buttonOptions.useHTML
|
|
666
|
+
*/
|
|
664
667
|
/**
|
|
665
668
|
* The vertical offset of the button's position relative to its
|
|
666
669
|
* `verticalAlign`.
|
|
@@ -745,6 +748,7 @@ var navigation = {
|
|
|
745
748
|
*/
|
|
746
749
|
/**
|
|
747
750
|
* Default stroke for the buttons.
|
|
751
|
+
*
|
|
748
752
|
* @type {Highcharts.ColorString}
|
|
749
753
|
* @default none
|
|
750
754
|
* @apioption navigation.buttonOptions.theme.stroke
|
|
@@ -768,8 +772,6 @@ var navigation = {
|
|
|
768
772
|
* @type {Highcharts.CSSObject}
|
|
769
773
|
* @default {"border": "1px solid #999999", "background": "#ffffff", "padding": "5px 0"}
|
|
770
774
|
* @since 2.0
|
|
771
|
-
*
|
|
772
|
-
* @private
|
|
773
775
|
*/
|
|
774
776
|
menuStyle: {
|
|
775
777
|
/** @ignore-option */
|
|
@@ -794,8 +796,6 @@ var navigation = {
|
|
|
794
796
|
* @type {Highcharts.CSSObject}
|
|
795
797
|
* @default {"padding": "0.5em 1em", "color": "#333333", "background": "none", "fontSize": "11px/14px", "transition": "background 250ms, color 250ms"}
|
|
796
798
|
* @since 2.0
|
|
797
|
-
*
|
|
798
|
-
* @private
|
|
799
799
|
*/
|
|
800
800
|
menuItemStyle: {
|
|
801
801
|
/** @ignore-option */
|
|
@@ -823,8 +823,6 @@ var navigation = {
|
|
|
823
823
|
* @type {Highcharts.CSSObject}
|
|
824
824
|
* @default {"background": "#335cad", "color": "#ffffff"}
|
|
825
825
|
* @since 2.0
|
|
826
|
-
*
|
|
827
|
-
* @private
|
|
828
826
|
*/
|
|
829
827
|
menuItemHoverStyle: {
|
|
830
828
|
/** @ignore-option */
|
|
@@ -413,8 +413,10 @@ function geojson(json, hType, series) {
|
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
if (pointOptions) {
|
|
416
|
-
var name_1 = properties && (properties.name || properties.NAME);
|
|
416
|
+
var name_1 = properties && (properties.name || properties.NAME), lon = properties && properties.lon, lat = properties && properties.lat;
|
|
417
417
|
mapData.push(extend(pointOptions, {
|
|
418
|
+
lat: typeof lat === 'number' ? lat : void 0,
|
|
419
|
+
lon: typeof lon === 'number' ? lon : void 0,
|
|
418
420
|
name: typeof name_1 === 'string' ? name_1 : void 0,
|
|
419
421
|
/**
|
|
420
422
|
* In Highcharts Maps, when data is loaded from GeoJSON, the
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import A from '../Core/Animation/AnimationUtilities.js';
|
|
16
16
|
var animObject = A.animObject;
|
|
17
17
|
import Chart from '../Core/Chart/Chart.js';
|
|
18
|
-
import D from '../Core/
|
|
18
|
+
import D from '../Core/Defaults.js';
|
|
19
19
|
var defaultOptions = D.defaultOptions;
|
|
20
20
|
import Point from '../Core/Series/Point.js';
|
|
21
21
|
import Series from '../Core/Series/Series.js';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* */
|
|
14
14
|
import AST from '../Core/Renderer/HTML/AST.js';
|
|
15
15
|
import Chart from '../Core/Chart/Chart.js';
|
|
16
|
-
import D from '../Core/
|
|
16
|
+
import D from '../Core/Defaults.js';
|
|
17
17
|
var getOptions = D.getOptions;
|
|
18
18
|
import U from '../Core/Utilities.js';
|
|
19
19
|
var addEvent = U.addEvent, extend = U.extend;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
'use strict';
|
|
14
14
|
import AST from '../../Core/Renderer/HTML/AST.js';
|
|
15
15
|
import Chart from '../../Core/Chart/Chart.js';
|
|
16
|
-
import D from '../../Core/
|
|
16
|
+
import D from '../../Core/Defaults.js';
|
|
17
17
|
var defaultOptions = D.defaultOptions;
|
|
18
18
|
import DownloadURL from '../DownloadURL.js';
|
|
19
19
|
var downloadURL = DownloadURL.downloadURL;
|
|
@@ -414,11 +414,11 @@ var OfflineExporting;
|
|
|
414
414
|
href.indexOf('data:') !== 0);
|
|
415
415
|
});
|
|
416
416
|
};
|
|
417
|
-
// If we are on IE and in styled mode, add
|
|
417
|
+
// If we are on IE and in styled mode, add an allowlist to the renderer
|
|
418
418
|
// for inline styles that we want to pass through. There are so many
|
|
419
|
-
// styles by default in IE that we don't want to
|
|
420
|
-
if (H.isMS && chart.styledMode && !Exporting.
|
|
421
|
-
Exporting.
|
|
419
|
+
// styles by default in IE that we don't want to denylist them all.
|
|
420
|
+
if (H.isMS && chart.styledMode && !Exporting.inlineAllowlist.length) {
|
|
421
|
+
Exporting.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$/);
|
|
422
422
|
}
|
|
423
423
|
// Always fall back on:
|
|
424
424
|
// - MS browsers: Embedded images JPEG/PNG, or any PDF
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* */
|
|
16
16
|
var OfflineExportingDefaults = {
|
|
17
|
-
libURL: 'https://code.highcharts.com/10.
|
|
17
|
+
libURL: 'https://code.highcharts.com/10.3.1/lib/',
|
|
18
18
|
// When offline-exporting is loaded, redefine the menu item definitions
|
|
19
19
|
// related to download.
|
|
20
20
|
menuItemDefinitions: {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
import Chart from '../../Core/Chart/Chart.js';
|
|
14
14
|
import Color from '../../Core/Color/Color.js';
|
|
15
15
|
var color = Color.parse;
|
|
16
|
+
import D from '../../Core/Defaults.js';
|
|
17
|
+
var getOptions = D.getOptions;
|
|
16
18
|
import H from '../../Core/Globals.js';
|
|
17
19
|
var deg2rad = H.deg2rad, doc = H.doc, noop = H.noop, svg = H.svg, win = H.win;
|
|
18
|
-
import D from '../../Core/DefaultOptions.js';
|
|
19
|
-
var getOptions = D.getOptions;
|
|
20
20
|
import Pointer from '../../Core/Pointer.js';
|
|
21
21
|
import RendererRegistry from '../../Core/Renderer/RendererRegistry.js';
|
|
22
22
|
import SVGElement from '../../Core/Renderer/SVG/SVGElement.js';
|
|
@@ -36,7 +36,7 @@ var VMLRenderer, VMLElement;
|
|
|
36
36
|
* @apioption global.VMLRadialGradientURL
|
|
37
37
|
*/
|
|
38
38
|
getOptions().global.VMLRadialGradientURL =
|
|
39
|
-
'http://code.highcharts.com/10.
|
|
39
|
+
'http://code.highcharts.com/10.3.1/gfx/vml-radial-gradient.png';
|
|
40
40
|
// Utilites
|
|
41
41
|
if (doc && !doc.defaultView) {
|
|
42
42
|
H.getStyle = U.getStyle = function getStyle(el, prop) {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
13
|
import Axis from '../../Core/Axis/Axis.js';
|
|
14
|
-
import D from '../../Core/
|
|
14
|
+
import D from '../../Core/Defaults.js';
|
|
15
15
|
var setOptions = D.setOptions;
|
|
16
16
|
import VMLAxis3D from './VMLAxis3D.js';
|
|
17
17
|
var VMLRenderer3D = /** @class */ (function () {
|
|
@@ -140,7 +140,7 @@ if (!Object.keys) {
|
|
|
140
140
|
// Copyright: Eike Send https://eike.se/nd
|
|
141
141
|
// License: MIT License
|
|
142
142
|
if (!document.getElementsByClassName) {
|
|
143
|
-
|
|
143
|
+
var getElementsByClassNamePolyfill = function (search) {
|
|
144
144
|
var d = document, elements, pattern, i, results = [];
|
|
145
145
|
if (d.querySelectorAll) { // IE8
|
|
146
146
|
return d.querySelectorAll('.' + search);
|
|
@@ -164,4 +164,6 @@ if (!document.getElementsByClassName) {
|
|
|
164
164
|
}
|
|
165
165
|
return results;
|
|
166
166
|
};
|
|
167
|
+
document.getElementsByClassName = getElementsByClassNamePolyfill;
|
|
168
|
+
Element.prototype.getElementsByClassName = getElementsByClassNamePolyfill;
|
|
167
169
|
}
|
|
@@ -13,7 +13,7 @@ import CU from '../Series/CenteredUtilities.js';
|
|
|
13
13
|
import H from '../Core/Globals.js';
|
|
14
14
|
import Pointer from '../Core/Pointer.js';
|
|
15
15
|
import U from '../Core/Utilities.js';
|
|
16
|
-
var addEvent = U.addEvent, extend = U.extend, merge = U.merge, pick = U.pick, splat = U.splat;
|
|
16
|
+
var addEvent = U.addEvent, correctFloat = U.correctFloat, defined = U.defined, extend = U.extend, merge = U.merge, pick = U.pick, splat = U.splat;
|
|
17
17
|
/**
|
|
18
18
|
* @typedef {"arc"|"circle"|"solid"} Highcharts.PaneBackgroundShapeValue
|
|
19
19
|
*/
|
|
@@ -348,18 +348,49 @@ var Pane = /** @class */ (function () {
|
|
|
348
348
|
* Element's x coordinate
|
|
349
349
|
* @param {number} y
|
|
350
350
|
* Element's y coordinate
|
|
351
|
+
* @param {Array<number>} inverted
|
|
352
|
+
* `Chart.inverted` param
|
|
351
353
|
* @param {Array<number>} center
|
|
352
354
|
* Pane's center (x, y) and diameter
|
|
355
|
+
* @param {number} startAngle
|
|
356
|
+
* Pane's normalized start angle in radians (<-PI, PI>)
|
|
357
|
+
* @param {number} endAngle
|
|
358
|
+
* Pane's normalized end angle in radians (<-PI, PI>)
|
|
353
359
|
*/
|
|
354
|
-
function isInsidePane(x, y, center) {
|
|
355
|
-
|
|
360
|
+
function isInsidePane(x, y, center, startAngle, endAngle) {
|
|
361
|
+
var insideSlice = true;
|
|
362
|
+
var cx = center[0], cy = center[1];
|
|
363
|
+
var distance = Math.sqrt(Math.pow(x - cx, 2) + Math.pow(y - cy, 2));
|
|
364
|
+
if (defined(startAngle) && defined(endAngle)) {
|
|
365
|
+
// Round angle to N-decimals to avoid numeric errors
|
|
366
|
+
var angle = Math.atan2(correctFloat(y - cy, 8), correctFloat(x - cx, 8));
|
|
367
|
+
// Ignore full circle panes:
|
|
368
|
+
if (endAngle !== startAngle) {
|
|
369
|
+
// If normalized start angle is bigger than normalized end,
|
|
370
|
+
// it means angles have different signs. In such situation we
|
|
371
|
+
// check the <-PI, startAngle> and <endAngle, PI> ranges.
|
|
372
|
+
if (startAngle > endAngle) {
|
|
373
|
+
insideSlice = (angle >= startAngle &&
|
|
374
|
+
angle <= Math.PI) || (angle <= endAngle &&
|
|
375
|
+
angle >= -Math.PI);
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
// In this case, we simple check if angle is within the
|
|
379
|
+
// <startAngle, endAngle> range
|
|
380
|
+
insideSlice = angle >= startAngle &&
|
|
381
|
+
angle <= correctFloat(endAngle, 8);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
// Round up radius because x and y values are rounded
|
|
386
|
+
return distance <= Math.ceil(center[2] / 2) && insideSlice;
|
|
356
387
|
}
|
|
357
388
|
Chart.prototype.getHoverPane = function (eventArgs) {
|
|
358
389
|
var chart = this;
|
|
359
390
|
var hoverPane;
|
|
360
391
|
if (eventArgs) {
|
|
361
392
|
chart.pane.forEach(function (pane) {
|
|
362
|
-
var
|
|
393
|
+
var x = eventArgs.chartX - chart.plotLeft, y = eventArgs.chartY - chart.plotTop;
|
|
363
394
|
if (isInsidePane(x, y, pane.center)) {
|
|
364
395
|
hoverPane = pane;
|
|
365
396
|
}
|
|
@@ -367,10 +398,16 @@ Chart.prototype.getHoverPane = function (eventArgs) {
|
|
|
367
398
|
}
|
|
368
399
|
return hoverPane;
|
|
369
400
|
};
|
|
401
|
+
// Check if (x, y) position is within pane for polar
|
|
370
402
|
addEvent(Chart, 'afterIsInsidePlot', function (e) {
|
|
403
|
+
var _a;
|
|
371
404
|
var chart = this;
|
|
372
405
|
if (chart.polar) {
|
|
373
|
-
e.
|
|
406
|
+
var x_1 = e.x - (e.options.paneCoordinates ? chart.plotLeft : 0), y_1 = e.y - (e.options.paneCoordinates ? chart.plotTop : 0);
|
|
407
|
+
if (e.options.inverted) {
|
|
408
|
+
_a = [y_1, x_1], x_1 = _a[0], y_1 = _a[1];
|
|
409
|
+
}
|
|
410
|
+
e.isInsidePlot = chart.pane.some(function (pane) { return isInsidePane(x_1, y_1, pane.center, pane.axis && pane.axis.normalizedStartAngleRad, pane.axis && pane.axis.normalizedEndAngleRad); });
|
|
374
411
|
}
|
|
375
412
|
});
|
|
376
413
|
addEvent(Pointer, 'beforeGetHoverData', function (eventArgs) {
|
|
@@ -15,7 +15,7 @@ import Chart from '../Core/Chart/Chart.js';
|
|
|
15
15
|
import F from '../Core/FormatUtilities.js';
|
|
16
16
|
var format = F.format;
|
|
17
17
|
import H from '../Core/Globals.js';
|
|
18
|
-
import D from '../Core/
|
|
18
|
+
import D from '../Core/Defaults.js';
|
|
19
19
|
var setOptions = D.setOptions;
|
|
20
20
|
import Series from '../Core/Series/Series.js';
|
|
21
21
|
import U from '../Core/Utilities.js';
|
|
@@ -247,6 +247,10 @@ addEvent(Series, 'afterTranslate', function () {
|
|
|
247
247
|
point.clientX = point.plotX;
|
|
248
248
|
point.plotY = chart.yAxis[i]
|
|
249
249
|
.translate(point.y, false, true, void 0, true);
|
|
250
|
+
// Range series (#15752)
|
|
251
|
+
if (isNumber(point.high)) {
|
|
252
|
+
point.plotHigh = chart.yAxis[i].translate(point.high, false, true, void 0, true);
|
|
253
|
+
}
|
|
250
254
|
if (typeof lastPlotX !== 'undefined') {
|
|
251
255
|
closestPointRangePx = Math.min(closestPointRangePx, Math.abs(point.plotX - lastPlotX));
|
|
252
256
|
}
|
|
@@ -15,7 +15,7 @@ import A from '../Core/Animation/AnimationUtilities.js';
|
|
|
15
15
|
var animObject = A.animObject;
|
|
16
16
|
import Chart from '../Core/Chart/Chart.js';
|
|
17
17
|
import H from '../Core/Globals.js';
|
|
18
|
-
import D from '../Core/
|
|
18
|
+
import D from '../Core/Defaults.js';
|
|
19
19
|
var getOptions = D.getOptions;
|
|
20
20
|
import Point from '../Core/Series/Point.js';
|
|
21
21
|
import Series from '../Core/Series/Series.js';
|
|
@@ -489,11 +489,11 @@ addEvent(Chart, 'redraw', function () {
|
|
|
489
489
|
*/ /**
|
|
490
490
|
* Background color for the pattern if a `path` is set (not images).
|
|
491
491
|
* @name Highcharts.PatternOptionsObject#backgroundColor
|
|
492
|
-
* @type {Highcharts.ColorString}
|
|
492
|
+
* @type {Highcharts.ColorString|undefined}
|
|
493
493
|
*/ /**
|
|
494
494
|
* URL to an image to use as the pattern.
|
|
495
495
|
* @name Highcharts.PatternOptionsObject#image
|
|
496
|
-
* @type {string}
|
|
496
|
+
* @type {string|undefined}
|
|
497
497
|
*/ /**
|
|
498
498
|
* Width of the pattern. For images this is automatically set to the width of
|
|
499
499
|
* the element bounding box if not supplied. For non-image patterns the default
|
|
@@ -501,17 +501,17 @@ addEvent(Chart, 'redraw', function () {
|
|
|
501
501
|
* box dynamically is only supported for patterns with an automatically
|
|
502
502
|
* calculated ID.
|
|
503
503
|
* @name Highcharts.PatternOptionsObject#width
|
|
504
|
-
* @type {number}
|
|
504
|
+
* @type {number|undefined}
|
|
505
505
|
*/ /**
|
|
506
506
|
* Analogous to pattern.width.
|
|
507
507
|
* @name Highcharts.PatternOptionsObject#height
|
|
508
|
-
* @type {number}
|
|
508
|
+
* @type {number|undefined}
|
|
509
509
|
*/ /**
|
|
510
510
|
* For automatically calculated width and height on images, it is possible to
|
|
511
511
|
* set an aspect ratio. The image will be zoomed to fill the bounding box,
|
|
512
512
|
* maintaining the aspect ratio defined.
|
|
513
513
|
* @name Highcharts.PatternOptionsObject#aspectRatio
|
|
514
|
-
* @type {number}
|
|
514
|
+
* @type {number|undefined}
|
|
515
515
|
*/ /**
|
|
516
516
|
* Horizontal offset of the pattern. Defaults to 0.
|
|
517
517
|
* @name Highcharts.PatternOptionsObject#x
|
|
@@ -526,20 +526,20 @@ addEvent(Chart, 'redraw', function () {
|
|
|
526
526
|
* attributes like `path.stroke` and `path.fill`. If a path is supplied for the
|
|
527
527
|
* pattern, the `image` property is ignored.
|
|
528
528
|
* @name Highcharts.PatternOptionsObject#path
|
|
529
|
-
* @type {string|Highcharts.SVGAttributes}
|
|
529
|
+
* @type {string|Highcharts.SVGAttributes|undefined}
|
|
530
530
|
*/ /**
|
|
531
531
|
* SVG `patternTransform` to apply to the entire pattern.
|
|
532
532
|
* @name Highcharts.PatternOptionsObject#patternTransform
|
|
533
|
-
* @type {string}
|
|
533
|
+
* @type {string|undefined}
|
|
534
534
|
* @see [patternTransform demo](https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/series/pattern-fill-transform)
|
|
535
535
|
*/ /**
|
|
536
536
|
* Pattern color, used as default path stroke.
|
|
537
537
|
* @name Highcharts.PatternOptionsObject#color
|
|
538
|
-
* @type {Highcharts.ColorString}
|
|
538
|
+
* @type {Highcharts.ColorString|undefined}
|
|
539
539
|
*/ /**
|
|
540
540
|
* Opacity of the pattern as a float value from 0 to 1.
|
|
541
541
|
* @name Highcharts.PatternOptionsObject#opacity
|
|
542
|
-
* @type {number}
|
|
542
|
+
* @type {number|undefined}
|
|
543
543
|
*/ /**
|
|
544
544
|
* ID to assign to the pattern. This is automatically computed if not added, and
|
|
545
545
|
* identical patterns are reused. To refer to an existing pattern for a
|