highcharts 9.3.0 → 9.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 +5 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +130 -84
- package/es-modules/Accessibility/Components/MenuComponent.js +195 -120
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +166 -81
- package/es-modules/Accessibility/KeyboardNavigation.js +2 -1
- package/es-modules/Core/Axis/OrdinalAxis.js +0 -4
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +1 -1
- package/es-modules/Extensions/Annotations/NavigationBindings.js +23 -10
- package/es-modules/Extensions/Annotations/Popup.js +1 -1
- package/es-modules/Extensions/Boost/BoostOptions.js +2 -2
- package/es-modules/Extensions/Exporting/Exporting.js +2 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/Oldie/Oldie.js +1 -1
- package/es-modules/Extensions/Polar.js +1 -1
- package/es-modules/Maps/MapView.js +5 -5
- package/es-modules/Maps/MapViewOptionsDefault.js +4 -2
- package/es-modules/Maps/Projection.js +3 -0
- package/es-modules/Maps/Projections/EqualEarth.js +7 -7
- package/es-modules/Maps/Projections/LambertConformalConic.js +52 -0
- package/es-modules/Maps/Projections/Miller.js +5 -6
- package/es-modules/Maps/Projections/Orthographic.js +4 -4
- package/es-modules/Maps/Projections/ProjectionRegistry.js +2 -0
- package/es-modules/Maps/Projections/WebMercator.js +2 -3
- package/es-modules/Series/Map/MapSeries.js +3 -0
- package/es-modules/Series/MapLine/MapLineSeries.js +2 -0
- package/es-modules/Series/MapPoint/MapPointSeries.js +13 -11
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +23 -17
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +3 -4
- package/es-modules/Stock/StockToolsGui.js +5 -5
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +1 -1
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/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 +2 -2
- 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/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 +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/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/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/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/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/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.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/themes/avocado.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 +1 -1
- package/highcharts-3d.src.js +1 -1
- package/highcharts-gantt.js +3 -3
- package/highcharts-gantt.src.js +3 -3
- package/highcharts-more.js +2 -2
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +2 -2
- package/highcharts.d.ts +126 -9
- package/highcharts.js +3 -3
- package/highcharts.src.d.ts +126 -9
- package/highcharts.src.js +3 -3
- package/highmaps.js +655 -653
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +131 -43
- package/highstock.js +61 -61
- package/highstock.js.map +1 -1
- package/highstock.src.js +3 -7
- 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 +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.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 +1 -1
- package/indicators/dpo.src.js +1 -1
- package/indicators/ichimoku-kinko-hyo.js +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/indicators/indicators-all.js +72 -72
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +29 -24
- package/indicators/indicators.js +10 -10
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +26 -20
- 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 +1 -1
- 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 +2 -2
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +4 -5
- 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 +225 -222
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +1306 -1085
- package/modules/annotations-advanced.js +153 -152
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +26 -12
- package/modules/annotations.js +81 -80
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +26 -12
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +1 -1
- package/modules/boost-canvas.src.js +1 -1
- package/modules/boost.js +1 -1
- package/modules/boost.src.js +1 -1
- 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 +1 -1
- package/modules/coloraxis.src.js +1 -1
- 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 +1 -1
- package/modules/data.src.js +1 -1
- package/modules/datagrouping.js +1 -1
- package/modules/datagrouping.src.js +1 -1
- 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 +1 -1
- package/modules/dotplot.src.js +1 -1
- package/modules/drag-panes.js +1 -1
- package/modules/drag-panes.src.js +1 -1
- package/modules/draggable-points.js +1 -1
- package/modules/draggable-points.src.js +1 -1
- package/modules/drilldown.js +1 -1
- package/modules/drilldown.src.js +1 -1
- package/modules/dumbbell.js +1 -1
- package/modules/dumbbell.src.js +1 -1
- package/modules/export-data.js +1 -1
- package/modules/export-data.src.js +1 -1
- package/modules/exporting.js +35 -35
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +3 -3
- 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 +1 -1
- package/modules/gantt.src.js +1 -1
- package/modules/grid-axis.js +1 -1
- package/modules/grid-axis.src.js +1 -1
- package/modules/heatmap.js +1 -1
- package/modules/heatmap.src.js +1 -1
- 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 +1 -1
- package/modules/hollowcandlestick.js +1 -1
- package/modules/hollowcandlestick.src.js +1 -1
- package/modules/item-series.js +1 -1
- package/modules/item-series.src.js +1 -1
- package/modules/lollipop.js +1 -1
- package/modules/lollipop.src.js +1 -1
- package/modules/map.d.ts +2 -2
- package/modules/map.js +143 -141
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -2
- package/modules/map.src.js +129 -41
- package/modules/marker-clusters.js +1 -1
- package/modules/marker-clusters.src.js +1 -1
- package/modules/networkgraph.js +1 -1
- package/modules/networkgraph.src.js +1 -1
- package/modules/no-data-to-display.js +1 -1
- package/modules/no-data-to-display.src.js +1 -1
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +2 -2
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +2 -2
- package/modules/oldie.src.js +2 -2
- package/modules/organization.js +1 -1
- package/modules/organization.src.js +1 -1
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +1 -1
- package/modules/pareto.src.js +1 -1
- package/modules/pathfinder.js +1 -1
- package/modules/pathfinder.src.js +1 -1
- package/modules/pattern-fill.js +1 -1
- package/modules/pattern-fill.src.js +1 -1
- 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 +1 -1
- package/modules/sankey.src.js +1 -1
- package/modules/series-label.js +1 -1
- package/modules/series-label.src.js +1 -1
- package/modules/solid-gauge.js +1 -1
- package/modules/solid-gauge.src.js +1 -1
- package/modules/sonification.js +1 -1
- package/modules/sonification.src.js +1 -1
- package/modules/static-scale.js +1 -1
- package/modules/static-scale.src.js +1 -1
- package/modules/stock-tools.js +86 -84
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +30 -16
- package/modules/stock.js +90 -90
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +1 -5
- package/modules/streamgraph.js +1 -1
- package/modules/streamgraph.src.js +1 -1
- package/modules/sunburst.js +1 -1
- package/modules/sunburst.src.js +1 -1
- package/modules/tilemap.js +1 -1
- package/modules/tilemap.src.js +1 -1
- package/modules/timeline.js +1 -1
- package/modules/timeline.src.js +1 -1
- package/modules/treegrid.js +1 -1
- package/modules/treegrid.src.js +1 -1
- package/modules/treemap.js +1 -1
- package/modules/treemap.src.js +1 -1
- package/modules/variable-pie.js +1 -1
- package/modules/variable-pie.src.js +1 -1
- package/modules/variwide.js +1 -1
- package/modules/variwide.src.js +1 -1
- 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 +1 -1
- package/modules/windbarb.src.js +1 -1
- 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 +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.src.js +1 -1
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.src.js +1 -1
- package/themes/gray.js +1 -1
- package/themes/gray.src.js +1 -1
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.src.js +1 -1
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.src.js +1 -1
|
@@ -10,16 +10,33 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
+
var __extends = (this && this.__extends) || (function () {
|
|
14
|
+
var extendStatics = function (d, b) {
|
|
15
|
+
extendStatics = Object.setPrototypeOf ||
|
|
16
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18
|
+
return extendStatics(d, b);
|
|
19
|
+
};
|
|
20
|
+
return function (d, b) {
|
|
21
|
+
extendStatics(d, b);
|
|
22
|
+
function __() { this.constructor = d; }
|
|
23
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
13
26
|
import RangeSelector from '../../Extensions/RangeSelector.js';
|
|
14
27
|
import AccessibilityComponent from '../AccessibilityComponent.js';
|
|
15
28
|
import ChartUtilities from '../Utils/ChartUtilities.js';
|
|
16
29
|
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT, getAxisRangeDescription = ChartUtilities.getAxisRangeDescription;
|
|
17
30
|
import Announcer from '../Utils/Announcer.js';
|
|
18
|
-
import Chart from '../../Core/Chart/Chart.js';
|
|
19
31
|
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
|
|
20
32
|
import U from '../../Core/Utilities.js';
|
|
21
|
-
var addEvent = U.addEvent, attr = U.attr
|
|
22
|
-
/*
|
|
33
|
+
var addEvent = U.addEvent, attr = U.attr;
|
|
34
|
+
/* *
|
|
35
|
+
*
|
|
36
|
+
* Functions
|
|
37
|
+
*
|
|
38
|
+
* */
|
|
39
|
+
/* eslint-disable valid-jsdoc */
|
|
23
40
|
/**
|
|
24
41
|
* @private
|
|
25
42
|
*/
|
|
@@ -31,49 +48,11 @@ function shouldRunInputNavigation(chart) {
|
|
|
31
48
|
chart.rangeSelector.minInput &&
|
|
32
49
|
chart.rangeSelector.maxInput);
|
|
33
50
|
}
|
|
34
|
-
|
|
35
|
-
* Highlight range selector button by index.
|
|
36
|
-
*
|
|
37
|
-
* @private
|
|
38
|
-
* @function Highcharts.Chart#highlightRangeSelectorButton
|
|
51
|
+
/* *
|
|
39
52
|
*
|
|
40
|
-
*
|
|
53
|
+
* Class
|
|
41
54
|
*
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
Chart.prototype.highlightRangeSelectorButton = function (ix) {
|
|
45
|
-
var buttons = (this.rangeSelector &&
|
|
46
|
-
this.rangeSelector.buttons ||
|
|
47
|
-
[]);
|
|
48
|
-
var curHighlightedIx = this.highlightedRangeSelectorItemIx;
|
|
49
|
-
var curSelectedIx = (this.rangeSelector &&
|
|
50
|
-
this.rangeSelector.selected);
|
|
51
|
-
// Deselect old
|
|
52
|
-
if (typeof curHighlightedIx !== 'undefined' &&
|
|
53
|
-
buttons[curHighlightedIx] &&
|
|
54
|
-
curHighlightedIx !== curSelectedIx) {
|
|
55
|
-
buttons[curHighlightedIx].setState(this.oldRangeSelectorItemState || 0);
|
|
56
|
-
}
|
|
57
|
-
// Select new
|
|
58
|
-
this.highlightedRangeSelectorItemIx = ix;
|
|
59
|
-
if (buttons[ix]) {
|
|
60
|
-
this.setFocusToElement(buttons[ix].box, buttons[ix].element);
|
|
61
|
-
if (ix !== curSelectedIx) {
|
|
62
|
-
this.oldRangeSelectorItemState = buttons[ix].state;
|
|
63
|
-
buttons[ix].setState(1);
|
|
64
|
-
}
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
return false;
|
|
68
|
-
};
|
|
69
|
-
// Range selector does not have destroy-setup for class instance events - so
|
|
70
|
-
// we set it on the class and call the component from here.
|
|
71
|
-
addEvent(RangeSelector, 'afterBtnClick', function () {
|
|
72
|
-
if (this.chart.accessibility &&
|
|
73
|
-
this.chart.accessibility.components.rangeSelector) {
|
|
74
|
-
return this.chart.accessibility.components.rangeSelector.onAfterBtnClick();
|
|
75
|
-
}
|
|
76
|
-
});
|
|
55
|
+
* */
|
|
77
56
|
/**
|
|
78
57
|
* The RangeSelectorComponent class
|
|
79
58
|
*
|
|
@@ -81,21 +60,36 @@ addEvent(RangeSelector, 'afterBtnClick', function () {
|
|
|
81
60
|
* @class
|
|
82
61
|
* @name Highcharts.RangeSelectorComponent
|
|
83
62
|
*/
|
|
84
|
-
var RangeSelectorComponent = function () {
|
|
85
|
-
RangeSelectorComponent
|
|
86
|
-
|
|
63
|
+
var RangeSelectorComponent = /** @class */ (function (_super) {
|
|
64
|
+
__extends(RangeSelectorComponent, _super);
|
|
65
|
+
function RangeSelectorComponent() {
|
|
66
|
+
/* *
|
|
67
|
+
*
|
|
68
|
+
* Properties
|
|
69
|
+
*
|
|
70
|
+
* */
|
|
71
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
72
|
+
_this.announcer = void 0;
|
|
73
|
+
return _this;
|
|
74
|
+
}
|
|
75
|
+
/* *
|
|
76
|
+
*
|
|
77
|
+
* Functions
|
|
78
|
+
*
|
|
79
|
+
* */
|
|
80
|
+
/* eslint-disable valid-jsdoc */
|
|
87
81
|
/**
|
|
88
82
|
* Init the component
|
|
89
83
|
* @private
|
|
90
84
|
*/
|
|
91
|
-
init
|
|
85
|
+
RangeSelectorComponent.prototype.init = function () {
|
|
92
86
|
var chart = this.chart;
|
|
93
87
|
this.announcer = new Announcer(chart, 'polite');
|
|
94
|
-
}
|
|
88
|
+
};
|
|
95
89
|
/**
|
|
96
90
|
* Called on first render/updates to the chart, including options changes.
|
|
97
91
|
*/
|
|
98
|
-
onChartUpdate
|
|
92
|
+
RangeSelectorComponent.prototype.onChartUpdate = function () {
|
|
99
93
|
var chart = this.chart, component = this, rangeSelector = chart.rangeSelector;
|
|
100
94
|
if (!rangeSelector) {
|
|
101
95
|
return;
|
|
@@ -119,12 +113,12 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
119
113
|
}
|
|
120
114
|
});
|
|
121
115
|
}
|
|
122
|
-
}
|
|
116
|
+
};
|
|
123
117
|
/**
|
|
124
118
|
* Hide buttons from AT when showing dropdown, and vice versa.
|
|
125
119
|
* @private
|
|
126
120
|
*/
|
|
127
|
-
updateSelectorVisibility
|
|
121
|
+
RangeSelectorComponent.prototype.updateSelectorVisibility = function () {
|
|
128
122
|
var chart = this.chart;
|
|
129
123
|
var rangeSelector = chart.rangeSelector;
|
|
130
124
|
var dropdown = (rangeSelector &&
|
|
@@ -145,12 +139,12 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
145
139
|
}
|
|
146
140
|
buttons.forEach(function (btn) { return unhideChartElementFromAT(chart, btn.element); });
|
|
147
141
|
}
|
|
148
|
-
}
|
|
142
|
+
};
|
|
149
143
|
/**
|
|
150
144
|
* Set accessibility related attributes on dropdown element.
|
|
151
145
|
* @private
|
|
152
146
|
*/
|
|
153
|
-
setDropdownAttrs
|
|
147
|
+
RangeSelectorComponent.prototype.setDropdownAttrs = function () {
|
|
154
148
|
var chart = this.chart;
|
|
155
149
|
var dropdown = (chart.rangeSelector &&
|
|
156
150
|
chart.rangeSelector.dropdown);
|
|
@@ -159,34 +153,34 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
159
153
|
dropdown.setAttribute('aria-label', label);
|
|
160
154
|
dropdown.setAttribute('tabindex', -1);
|
|
161
155
|
}
|
|
162
|
-
}
|
|
156
|
+
};
|
|
163
157
|
/**
|
|
164
158
|
* @private
|
|
165
159
|
* @param {Highcharts.SVGElement} button
|
|
166
160
|
*/
|
|
167
|
-
setRangeButtonAttrs
|
|
161
|
+
RangeSelectorComponent.prototype.setRangeButtonAttrs = function (button) {
|
|
168
162
|
attr(button.element, {
|
|
169
163
|
tabindex: -1,
|
|
170
164
|
role: 'button'
|
|
171
165
|
});
|
|
172
|
-
}
|
|
166
|
+
};
|
|
173
167
|
/**
|
|
174
168
|
* @private
|
|
175
169
|
*/
|
|
176
|
-
setRangeInputAttrs
|
|
170
|
+
RangeSelectorComponent.prototype.setRangeInputAttrs = function (input, langKey) {
|
|
177
171
|
var chart = this.chart;
|
|
178
172
|
attr(input, {
|
|
179
173
|
tabindex: -1,
|
|
180
174
|
'aria-label': chart.langFormat(langKey, { chart: chart })
|
|
181
175
|
});
|
|
182
|
-
}
|
|
176
|
+
};
|
|
183
177
|
/**
|
|
184
178
|
* @private
|
|
185
179
|
* @param {Highcharts.KeyboardNavigationHandler} keyboardNavigationHandler
|
|
186
180
|
* @param {number} keyCode
|
|
187
181
|
* @return {number} Response code
|
|
188
182
|
*/
|
|
189
|
-
onButtonNavKbdArrowKey
|
|
183
|
+
RangeSelectorComponent.prototype.onButtonNavKbdArrowKey = function (keyboardNavigationHandler, keyCode) {
|
|
190
184
|
var response = keyboardNavigationHandler.response, keys = this.keyCodes, chart = this.chart, wrapAround = chart.options.accessibility
|
|
191
185
|
.keyboardNavigation.wrapAround, direction = (keyCode === keys.left || keyCode === keys.up) ? -1 : 1, didHighlight = chart.highlightRangeSelectorButton(chart.highlightedRangeSelectorItemIx + direction);
|
|
192
186
|
if (!didHighlight) {
|
|
@@ -197,34 +191,34 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
197
191
|
return response[direction > 0 ? 'next' : 'prev'];
|
|
198
192
|
}
|
|
199
193
|
return response.success;
|
|
200
|
-
}
|
|
194
|
+
};
|
|
201
195
|
/**
|
|
202
196
|
* @private
|
|
203
197
|
*/
|
|
204
|
-
onButtonNavKbdClick
|
|
198
|
+
RangeSelectorComponent.prototype.onButtonNavKbdClick = function (keyboardNavigationHandler) {
|
|
205
199
|
var response = keyboardNavigationHandler.response, chart = this.chart, wasDisabled = chart.oldRangeSelectorItemState === 3;
|
|
206
200
|
if (!wasDisabled) {
|
|
207
201
|
this.fakeClickEvent(chart.rangeSelector.buttons[chart.highlightedRangeSelectorItemIx].element);
|
|
208
202
|
}
|
|
209
203
|
return response.success;
|
|
210
|
-
}
|
|
204
|
+
};
|
|
211
205
|
/**
|
|
212
206
|
* Called whenever a range selector button has been clicked, either by
|
|
213
207
|
* mouse, touch, or kbd/voice/other.
|
|
214
208
|
* @private
|
|
215
209
|
*/
|
|
216
|
-
onAfterBtnClick
|
|
210
|
+
RangeSelectorComponent.prototype.onAfterBtnClick = function () {
|
|
217
211
|
var chart = this.chart;
|
|
218
212
|
var axisRangeDescription = getAxisRangeDescription(chart.xAxis[0]);
|
|
219
213
|
var announcement = chart.langFormat('accessibility.rangeSelector.clickButtonAnnouncement', { chart: chart, axisRangeDescription: axisRangeDescription });
|
|
220
214
|
if (announcement) {
|
|
221
215
|
this.announcer.announce(announcement);
|
|
222
216
|
}
|
|
223
|
-
}
|
|
217
|
+
};
|
|
224
218
|
/**
|
|
225
219
|
* @private
|
|
226
220
|
*/
|
|
227
|
-
onInputKbdMove
|
|
221
|
+
RangeSelectorComponent.prototype.onInputKbdMove = function (direction) {
|
|
228
222
|
var chart = this.chart;
|
|
229
223
|
var rangeSel = chart.rangeSelector;
|
|
230
224
|
var newIx = chart.highlightedInputRangeIx = (chart.highlightedInputRangeIx || 0) + direction;
|
|
@@ -242,12 +236,12 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
242
236
|
chart.setFocusToElement(svgEl, inputEl);
|
|
243
237
|
}
|
|
244
238
|
}
|
|
245
|
-
}
|
|
239
|
+
};
|
|
246
240
|
/**
|
|
247
241
|
* @private
|
|
248
242
|
* @param {number} direction
|
|
249
243
|
*/
|
|
250
|
-
onInputNavInit
|
|
244
|
+
RangeSelectorComponent.prototype.onInputNavInit = function (direction) {
|
|
251
245
|
var _this = this;
|
|
252
246
|
var component = this;
|
|
253
247
|
var chart = this.chart;
|
|
@@ -281,11 +275,11 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
281
275
|
maxRemover_1();
|
|
282
276
|
};
|
|
283
277
|
}
|
|
284
|
-
}
|
|
278
|
+
};
|
|
285
279
|
/**
|
|
286
280
|
* @private
|
|
287
281
|
*/
|
|
288
|
-
onInputNavTerminate
|
|
282
|
+
RangeSelectorComponent.prototype.onInputNavTerminate = function () {
|
|
289
283
|
var rangeSel = (this.chart.rangeSelector || {});
|
|
290
284
|
if (rangeSel.maxInput) {
|
|
291
285
|
rangeSel.hideInput('max');
|
|
@@ -297,11 +291,11 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
297
291
|
this.removeInputKeydownHandler();
|
|
298
292
|
delete this.removeInputKeydownHandler;
|
|
299
293
|
}
|
|
300
|
-
}
|
|
294
|
+
};
|
|
301
295
|
/**
|
|
302
296
|
* @private
|
|
303
297
|
*/
|
|
304
|
-
initDropdownNav
|
|
298
|
+
RangeSelectorComponent.prototype.initDropdownNav = function () {
|
|
305
299
|
var _this = this;
|
|
306
300
|
var chart = this.chart;
|
|
307
301
|
var rangeSelector = chart.rangeSelector;
|
|
@@ -325,13 +319,13 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
325
319
|
}
|
|
326
320
|
});
|
|
327
321
|
}
|
|
328
|
-
}
|
|
322
|
+
};
|
|
329
323
|
/**
|
|
330
324
|
* Get navigation for the range selector buttons.
|
|
331
325
|
* @private
|
|
332
326
|
* @return {Highcharts.KeyboardNavigationHandler} The module object.
|
|
333
327
|
*/
|
|
334
|
-
getRangeSelectorButtonNavigation
|
|
328
|
+
RangeSelectorComponent.prototype.getRangeSelectorButtonNavigation = function () {
|
|
335
329
|
var chart = this.chart;
|
|
336
330
|
var keys = this.keyCodes;
|
|
337
331
|
var component = this;
|
|
@@ -372,14 +366,14 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
372
366
|
}
|
|
373
367
|
}
|
|
374
368
|
});
|
|
375
|
-
}
|
|
369
|
+
};
|
|
376
370
|
/**
|
|
377
371
|
* Get navigation for the range selector input boxes.
|
|
378
372
|
* @private
|
|
379
373
|
* @return {Highcharts.KeyboardNavigationHandler}
|
|
380
374
|
* The module object.
|
|
381
375
|
*/
|
|
382
|
-
getRangeSelectorInputNavigation
|
|
376
|
+
RangeSelectorComponent.prototype.getRangeSelectorInputNavigation = function () {
|
|
383
377
|
var chart = this.chart;
|
|
384
378
|
var component = this;
|
|
385
379
|
return new KeyboardNavigationHandler(chart, {
|
|
@@ -394,22 +388,22 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
394
388
|
component.onInputNavTerminate();
|
|
395
389
|
}
|
|
396
390
|
});
|
|
397
|
-
}
|
|
391
|
+
};
|
|
398
392
|
/**
|
|
399
393
|
* Get keyboard navigation handlers for this component.
|
|
400
394
|
* @return {Array<Highcharts.KeyboardNavigationHandler>}
|
|
401
395
|
* List of module objects.
|
|
402
396
|
*/
|
|
403
|
-
getKeyboardNavigation
|
|
397
|
+
RangeSelectorComponent.prototype.getKeyboardNavigation = function () {
|
|
404
398
|
return [
|
|
405
399
|
this.getRangeSelectorButtonNavigation(),
|
|
406
400
|
this.getRangeSelectorInputNavigation()
|
|
407
401
|
];
|
|
408
|
-
}
|
|
402
|
+
};
|
|
409
403
|
/**
|
|
410
404
|
* Remove component traces
|
|
411
405
|
*/
|
|
412
|
-
destroy
|
|
406
|
+
RangeSelectorComponent.prototype.destroy = function () {
|
|
413
407
|
if (this.removeDropdownKeydownHandler) {
|
|
414
408
|
this.removeDropdownKeydownHandler();
|
|
415
409
|
}
|
|
@@ -419,6 +413,97 @@ extend(RangeSelectorComponent.prototype, /** @lends Highcharts.RangeSelectorComp
|
|
|
419
413
|
if (this.announcer) {
|
|
420
414
|
this.announcer.destroy();
|
|
421
415
|
}
|
|
416
|
+
};
|
|
417
|
+
return RangeSelectorComponent;
|
|
418
|
+
}(AccessibilityComponent));
|
|
419
|
+
/* *
|
|
420
|
+
*
|
|
421
|
+
* Class Namespace
|
|
422
|
+
*
|
|
423
|
+
* */
|
|
424
|
+
(function (RangeSelectorComponent) {
|
|
425
|
+
/* *
|
|
426
|
+
*
|
|
427
|
+
* Declarations
|
|
428
|
+
*
|
|
429
|
+
* */
|
|
430
|
+
/* *
|
|
431
|
+
*
|
|
432
|
+
* Constants
|
|
433
|
+
*
|
|
434
|
+
* */
|
|
435
|
+
var composedClasses = [];
|
|
436
|
+
/* *
|
|
437
|
+
*
|
|
438
|
+
* Functions
|
|
439
|
+
*
|
|
440
|
+
* */
|
|
441
|
+
/* eslint-disable valid-jsdoc */
|
|
442
|
+
/**
|
|
443
|
+
* Highlight range selector button by index.
|
|
444
|
+
*
|
|
445
|
+
* @private
|
|
446
|
+
* @function Highcharts.Chart#highlightRangeSelectorButton
|
|
447
|
+
*
|
|
448
|
+
* @param {number} ix
|
|
449
|
+
*
|
|
450
|
+
* @return {boolean}
|
|
451
|
+
*/
|
|
452
|
+
function chartHighlightRangeSelectorButton(ix) {
|
|
453
|
+
var buttons = (this.rangeSelector &&
|
|
454
|
+
this.rangeSelector.buttons ||
|
|
455
|
+
[]);
|
|
456
|
+
var curHighlightedIx = this.highlightedRangeSelectorItemIx;
|
|
457
|
+
var curSelectedIx = (this.rangeSelector &&
|
|
458
|
+
this.rangeSelector.selected);
|
|
459
|
+
// Deselect old
|
|
460
|
+
if (typeof curHighlightedIx !== 'undefined' &&
|
|
461
|
+
buttons[curHighlightedIx] &&
|
|
462
|
+
curHighlightedIx !== curSelectedIx) {
|
|
463
|
+
buttons[curHighlightedIx].setState(this.oldRangeSelectorItemState || 0);
|
|
464
|
+
}
|
|
465
|
+
// Select new
|
|
466
|
+
this.highlightedRangeSelectorItemIx = ix;
|
|
467
|
+
if (buttons[ix]) {
|
|
468
|
+
this.setFocusToElement(buttons[ix].box, buttons[ix].element);
|
|
469
|
+
if (ix !== curSelectedIx) {
|
|
470
|
+
this.oldRangeSelectorItemState = buttons[ix].state;
|
|
471
|
+
buttons[ix].setState(1);
|
|
472
|
+
}
|
|
473
|
+
return true;
|
|
474
|
+
}
|
|
475
|
+
return false;
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* @private
|
|
479
|
+
*/
|
|
480
|
+
function compose(ChartClass, RangeSelectorClass) {
|
|
481
|
+
if (composedClasses.indexOf(ChartClass) === -1) {
|
|
482
|
+
composedClasses.push(ChartClass);
|
|
483
|
+
var chartProto = ChartClass.prototype;
|
|
484
|
+
chartProto.highlightRangeSelectorButton = chartHighlightRangeSelectorButton;
|
|
485
|
+
}
|
|
486
|
+
if (composedClasses.indexOf(RangeSelectorClass) === -1) {
|
|
487
|
+
composedClasses.push(RangeSelectorClass);
|
|
488
|
+
addEvent(RangeSelector, 'afterBtnClick', rangeSelectorAfterBtnClick);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
RangeSelectorComponent.compose = compose;
|
|
492
|
+
/**
|
|
493
|
+
* Range selector does not have destroy-setup for class instance events - so
|
|
494
|
+
* we set it on the class and call the component from here.
|
|
495
|
+
* @private
|
|
496
|
+
*/
|
|
497
|
+
function rangeSelectorAfterBtnClick() {
|
|
498
|
+
if (this.chart.accessibility &&
|
|
499
|
+
this.chart.accessibility.components.rangeSelector) {
|
|
500
|
+
return this.chart.accessibility.components.rangeSelector.onAfterBtnClick();
|
|
501
|
+
}
|
|
422
502
|
}
|
|
423
|
-
});
|
|
503
|
+
})(RangeSelectorComponent || (RangeSelectorComponent = {}));
|
|
504
|
+
/* *
|
|
505
|
+
*
|
|
506
|
+
* Export Default
|
|
507
|
+
*
|
|
508
|
+
* */
|
|
424
509
|
export default RangeSelectorComponent;
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
-
import Chart from '../Core/Chart/Chart.js';
|
|
14
13
|
import H from '../Core/Globals.js';
|
|
15
14
|
var doc = H.doc, win = H.win;
|
|
15
|
+
import MenuComponent from './Components/MenuComponent.js';
|
|
16
16
|
import U from '../Core/Utilities.js';
|
|
17
17
|
var addEvent = U.addEvent, fireEvent = U.fireEvent;
|
|
18
18
|
import EventProvider from './Utils/EventProvider.js';
|
|
@@ -397,6 +397,7 @@ var KeyboardNavigation = /** @class */ (function () {
|
|
|
397
397
|
* @private
|
|
398
398
|
*/
|
|
399
399
|
function compose(ChartClass) {
|
|
400
|
+
MenuComponent.compose(ChartClass);
|
|
400
401
|
if (composedItems.indexOf(ChartClass) === -1) {
|
|
401
402
|
composedItems.push(ChartClass);
|
|
402
403
|
var chartProto = ChartClass.prototype;
|
|
@@ -827,10 +827,6 @@ var OrdinalAxis;
|
|
|
827
827
|
fakeAxis.series.push(fakeSeries);
|
|
828
828
|
series.processData.apply(fakeSeries);
|
|
829
829
|
});
|
|
830
|
-
// Apply grouping if needed.
|
|
831
|
-
axis.applyGrouping.call(fakeAxis, {
|
|
832
|
-
hasExtemesChanged: false
|
|
833
|
-
});
|
|
834
830
|
// Force to use the ordinal when points are evenly spaced
|
|
835
831
|
// (e.g. weeks), #3825.
|
|
836
832
|
if (fakeSeries.closestPointRange !== fakeSeries.basePointRange &&
|
|
@@ -40,7 +40,7 @@ var Globals;
|
|
|
40
40
|
* Constants
|
|
41
41
|
*
|
|
42
42
|
* */
|
|
43
|
-
Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '9.3.
|
|
43
|
+
Globals.SVG_NS = 'http://www.w3.org/2000/svg', Globals.product = 'Highcharts', Globals.version = '9.3.1', Globals.win = w, Globals.doc = Globals.win.document, Globals.svg = (Globals.doc &&
|
|
44
44
|
Globals.doc.createElementNS &&
|
|
45
45
|
!!Globals.doc.createElementNS(Globals.SVG_NS, 'svg').createSVGRect), Globals.userAgent = (Globals.win.navigator && Globals.win.navigator.userAgent) || '', Globals.isChrome = Globals.userAgent.indexOf('Chrome') !== -1, Globals.isFirefox = Globals.userAgent.indexOf('Firefox') !== -1, Globals.isMS = /(edge|msie|trident)/i.test(Globals.userAgent) && !Globals.win.opera, Globals.isSafari = !Globals.isChrome && Globals.userAgent.indexOf('Safari') !== -1, Globals.isTouchDevice = /(Mobile|Android|Windows Phone)/.test(Globals.userAgent), Globals.isWebKit = Globals.userAgent.indexOf('AppleWebKit') !== -1, Globals.deg2rad = Math.PI * 2 / 360, Globals.hasBidiBug = (Globals.isFirefox &&
|
|
46
46
|
parseInt(Globals.userAgent.split('Firefox/')[1], 10) < 4 // issue #38
|
|
@@ -193,7 +193,7 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
193
193
|
this.url = this.getReferenceURL();
|
|
194
194
|
// Add description
|
|
195
195
|
var desc = this.createElement('desc').add();
|
|
196
|
-
desc.element.appendChild(doc.createTextNode('Created with Highcharts 9.3.
|
|
196
|
+
desc.element.appendChild(doc.createTextNode('Created with Highcharts 9.3.1'));
|
|
197
197
|
renderer.defs = this.createElement('defs').add();
|
|
198
198
|
renderer.allowHTML = allowHTML;
|
|
199
199
|
renderer.forExport = forExport;
|
|
@@ -253,8 +253,12 @@ var NavigationBindings = /** @class */ (function () {
|
|
|
253
253
|
* Browser's click event
|
|
254
254
|
*/
|
|
255
255
|
NavigationBindings.prototype.bindingsButtonClick = function (button, events, clickEvent) {
|
|
256
|
-
var navigation = this, chart = navigation.chart;
|
|
256
|
+
var navigation = this, chart = navigation.chart, svgContainer = chart.renderer.boxWrapper;
|
|
257
|
+
var shouldEventBeFired = true;
|
|
257
258
|
if (navigation.selectedButtonElement) {
|
|
259
|
+
if (navigation.selectedButtonElement.classList === button.classList) {
|
|
260
|
+
shouldEventBeFired = false;
|
|
261
|
+
}
|
|
258
262
|
fireEvent(navigation, 'deselectButton', { button: navigation.selectedButtonElement });
|
|
259
263
|
if (navigation.nextEvent) {
|
|
260
264
|
// Remove in-progress annotations adders:
|
|
@@ -265,15 +269,24 @@ var NavigationBindings = /** @class */ (function () {
|
|
|
265
269
|
navigation.mouseMoveEvent = navigation.nextEvent = false;
|
|
266
270
|
}
|
|
267
271
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
events.init
|
|
272
|
+
if (shouldEventBeFired) {
|
|
273
|
+
navigation.selectedButton = events;
|
|
274
|
+
navigation.selectedButtonElement = button;
|
|
275
|
+
fireEvent(navigation, 'selectButton', { button: button });
|
|
276
|
+
// Call "init" event, for example to open modal window
|
|
277
|
+
if (events.init) {
|
|
278
|
+
events.init.call(navigation, button, clickEvent);
|
|
279
|
+
}
|
|
280
|
+
if (events.start || events.steps) {
|
|
281
|
+
chart.renderer.boxWrapper.addClass(PREFIX + 'draw-mode');
|
|
282
|
+
}
|
|
274
283
|
}
|
|
275
|
-
|
|
276
|
-
chart.
|
|
284
|
+
else {
|
|
285
|
+
chart.stockTools && chart.stockTools.toggleButtonAciveClass(button);
|
|
286
|
+
svgContainer.removeClass(PREFIX + 'draw-mode');
|
|
287
|
+
navigation.nextEvent = false;
|
|
288
|
+
navigation.mouseMoveEvent = false;
|
|
289
|
+
navigation.selectedButton = null;
|
|
277
290
|
}
|
|
278
291
|
};
|
|
279
292
|
/**
|
|
@@ -1076,7 +1089,7 @@ setOptions({
|
|
|
1076
1089
|
* from a different server.
|
|
1077
1090
|
*
|
|
1078
1091
|
* @type {string}
|
|
1079
|
-
* @default https://code.highcharts.com/9.3.
|
|
1092
|
+
* @default https://code.highcharts.com/9.3.1/gfx/stock-icons/
|
|
1080
1093
|
* @since 7.1.3
|
|
1081
1094
|
* @apioption navigation.iconsURL
|
|
1082
1095
|
*/
|
|
@@ -1103,7 +1103,7 @@ addEvent(NavigationBindings, 'showPopup', function (config) {
|
|
|
1103
1103
|
this.popup = new H.Popup(this.chart.container, (this.chart.options.navigation.iconsURL ||
|
|
1104
1104
|
(this.chart.options.stockTools &&
|
|
1105
1105
|
this.chart.options.stockTools.gui.iconsURL) ||
|
|
1106
|
-
'https://code.highcharts.com/9.3.
|
|
1106
|
+
'https://code.highcharts.com/9.3.1/gfx/stock-icons/'), this.chart);
|
|
1107
1107
|
}
|
|
1108
1108
|
this.popup.showForm(config.formType, this.chart, config.options, config.onSubmit);
|
|
1109
1109
|
});
|
|
@@ -739,8 +739,8 @@ var Exporting;
|
|
|
739
739
|
}));
|
|
740
740
|
}
|
|
741
741
|
});
|
|
742
|
-
//
|
|
743
|
-
var chartCopy = new
|
|
742
|
+
// Generate the chart copy
|
|
743
|
+
var chartCopy = new chart.constructor(options, chart.callback);
|
|
744
744
|
// Axis options and series options (#2022, #3900, #5982)
|
|
745
745
|
if (chartOptions) {
|
|
746
746
|
['xAxis', 'yAxis', 'series'].forEach(function (coll) {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* */
|
|
16
16
|
var OfflineExportingDefaults = {
|
|
17
|
-
libURL: 'https://code.highcharts.com/9.3.
|
|
17
|
+
libURL: 'https://code.highcharts.com/9.3.1/lib/',
|
|
18
18
|
// When offline-exporting is loaded, redefine the menu item definitions
|
|
19
19
|
// related to download.
|
|
20
20
|
menuItemDefinitions: {
|
|
@@ -36,7 +36,7 @@ var VMLRenderer, VMLElement;
|
|
|
36
36
|
* @apioption global.VMLRadialGradientURL
|
|
37
37
|
*/
|
|
38
38
|
getOptions().global.VMLRadialGradientURL =
|
|
39
|
-
'http://code.highcharts.com/9.3.
|
|
39
|
+
'http://code.highcharts.com/9.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) {
|
|
@@ -306,7 +306,7 @@ wrap(seriesTypes.line.prototype, 'getGraphPath', function (proceed, points) {
|
|
|
306
306
|
return ret;
|
|
307
307
|
});
|
|
308
308
|
var polarAnimate = function (proceed, init) {
|
|
309
|
-
var series = this, chart = this.chart, animation = this.options.animation, group = this.group, markerGroup = this.markerGroup, center = this.xAxis.center, plotLeft = chart.plotLeft, plotTop = chart.plotTop, attribs, paneInnerR, graphic, shapeArgs, r, innerR;
|
|
309
|
+
var series = this, chart = this.chart, animation = this.options.animation, group = this.group, markerGroup = this.markerGroup, center = this.xAxis && this.xAxis.center, plotLeft = chart.plotLeft, plotTop = chart.plotTop, attribs, paneInnerR, graphic, shapeArgs, r, innerR;
|
|
310
310
|
// Specific animation for polar charts
|
|
311
311
|
if (chart.polar) {
|
|
312
312
|
if (series.isRadialBar) {
|
|
@@ -13,10 +13,10 @@ import Projection from './Projection.js';
|
|
|
13
13
|
import U from '../Core/Utilities.js';
|
|
14
14
|
var addEvent = U.addEvent, clamp = U.clamp, fireEvent = U.fireEvent, isNumber = U.isNumber, merge = U.merge, pick = U.pick, relativeLength = U.relativeLength;
|
|
15
15
|
/**
|
|
16
|
-
* The world size
|
|
17
|
-
* 256 square tile to zoom level 0
|
|
16
|
+
* The world size in terms of 10k meters in the Web Mercator projection, to
|
|
17
|
+
* match a 256 square tile to zoom level 0
|
|
18
18
|
*/
|
|
19
|
-
var worldSize =
|
|
19
|
+
var worldSize = 400.979322;
|
|
20
20
|
var tileSize = 256;
|
|
21
21
|
/**
|
|
22
22
|
* The map view handles zooming and centering on the map, and various
|
|
@@ -94,11 +94,11 @@ var MapView = /** @class */ (function () {
|
|
|
94
94
|
if (_this.projection.options.name === 'Orthographic' &&
|
|
95
95
|
// ... but don't rotate if we're loading only a part of the
|
|
96
96
|
// world
|
|
97
|
-
(_this.minZoom || Infinity) <
|
|
97
|
+
(_this.minZoom || Infinity) < 3) {
|
|
98
98
|
// Empirical ratio where the globe rotates roughly the same
|
|
99
99
|
// speed as moving the pointer across the center of the
|
|
100
100
|
// projection
|
|
101
|
-
var ratio =
|
|
101
|
+
var ratio = 440 / (_this.getScale() * Math.min(chart.plotWidth, chart.plotHeight));
|
|
102
102
|
if (mouseDownRotation) {
|
|
103
103
|
var lon = (mouseDownX - chartX) * ratio -
|
|
104
104
|
mouseDownRotation[0];
|
|
@@ -59,8 +59,10 @@ var defaultOptions = {
|
|
|
59
59
|
* GeoJSON.
|
|
60
60
|
*
|
|
61
61
|
* Sub-options are:
|
|
62
|
-
* * `
|
|
63
|
-
* `Orthographic` or `WebMercator`.
|
|
62
|
+
* * `name`, which as of v9.3 can be `EqualEarth`,
|
|
63
|
+
* `LambertConformalConic`, `Miller`, `Orthographic` or `WebMercator`.
|
|
64
|
+
* * `parallels`, the standard parallels for the LambertConformalConic
|
|
65
|
+
* projection.
|
|
64
66
|
* * `rotation`, a three-axis rotation of the globe prior to projection,
|
|
65
67
|
* which in practice can be used for example to render a world map with the
|
|
66
68
|
* Americas centered (`[90, 0]`), or to rotate an orthographic projection.
|
|
@@ -52,6 +52,9 @@ var Projection = /** @class */ (function () {
|
|
|
52
52
|
this.def = name ? Projection.registry[name] : void 0;
|
|
53
53
|
var _a = this, def = _a.def, rotator = _a.rotator;
|
|
54
54
|
if (def) {
|
|
55
|
+
if (def.init) {
|
|
56
|
+
def.init(options);
|
|
57
|
+
}
|
|
55
58
|
this.maxLatitude = def.maxLatitude || 90;
|
|
56
59
|
this.hasGeoProjection = true;
|
|
57
60
|
}
|