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,34 @@
|
|
|
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 Chart from '../../Core/Chart/Chart.js';
|
|
14
27
|
import U from '../../Core/Utilities.js';
|
|
15
|
-
var attr = U.attr
|
|
28
|
+
var attr = U.attr;
|
|
16
29
|
import AccessibilityComponent from '../AccessibilityComponent.js';
|
|
17
30
|
import KeyboardNavigationHandler from '../KeyboardNavigationHandler.js';
|
|
18
31
|
import ChartUtilities from '../Utils/ChartUtilities.js';
|
|
19
32
|
var getChartTitle = ChartUtilities.getChartTitle, unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
20
33
|
import HTMLUtilities from '../Utils/HTMLUtilities.js';
|
|
21
34
|
var getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
|
|
22
|
-
/*
|
|
35
|
+
/* *
|
|
36
|
+
*
|
|
37
|
+
* Functions
|
|
38
|
+
*
|
|
39
|
+
* */
|
|
40
|
+
/* eslint-disable valid-jsdoc */
|
|
23
41
|
/**
|
|
24
42
|
* Get the wrapped export button element of a chart.
|
|
25
43
|
*
|
|
@@ -30,97 +48,6 @@ var getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
|
|
|
30
48
|
function getExportMenuButtonElement(chart) {
|
|
31
49
|
return chart.exportSVGElements && chart.exportSVGElements[0];
|
|
32
50
|
}
|
|
33
|
-
/**
|
|
34
|
-
* Show the export menu and focus the first item (if exists).
|
|
35
|
-
*
|
|
36
|
-
* @private
|
|
37
|
-
* @function Highcharts.Chart#showExportMenu
|
|
38
|
-
*/
|
|
39
|
-
Chart.prototype.showExportMenu = function () {
|
|
40
|
-
var exportButton = getExportMenuButtonElement(this);
|
|
41
|
-
if (exportButton) {
|
|
42
|
-
var el = exportButton.element;
|
|
43
|
-
if (el.onclick) {
|
|
44
|
-
el.onclick(getFakeMouseEvent('click'));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @private
|
|
50
|
-
* @function Highcharts.Chart#hideExportMenu
|
|
51
|
-
*/
|
|
52
|
-
Chart.prototype.hideExportMenu = function () {
|
|
53
|
-
var chart = this, exportList = chart.exportDivElements;
|
|
54
|
-
if (exportList && chart.exportContextMenu) {
|
|
55
|
-
// Reset hover states etc.
|
|
56
|
-
exportList.forEach(function (el) {
|
|
57
|
-
if (el &&
|
|
58
|
-
el.className === 'highcharts-menu-item' &&
|
|
59
|
-
el.onmouseout) {
|
|
60
|
-
el.onmouseout(getFakeMouseEvent('mouseout'));
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
chart.highlightedExportItemIx = 0;
|
|
64
|
-
// Hide the menu div
|
|
65
|
-
chart.exportContextMenu.hideMenu();
|
|
66
|
-
// Make sure the chart has focus and can capture keyboard events
|
|
67
|
-
chart.container.focus();
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Highlight export menu item by index.
|
|
72
|
-
*
|
|
73
|
-
* @private
|
|
74
|
-
* @function Highcharts.Chart#highlightExportItem
|
|
75
|
-
*
|
|
76
|
-
* @param {number} ix
|
|
77
|
-
*
|
|
78
|
-
* @return {boolean}
|
|
79
|
-
*/
|
|
80
|
-
Chart.prototype.highlightExportItem = function (ix) {
|
|
81
|
-
var listItem = this.exportDivElements && this.exportDivElements[ix];
|
|
82
|
-
var curHighlighted = this.exportDivElements &&
|
|
83
|
-
this.exportDivElements[this.highlightedExportItemIx];
|
|
84
|
-
if (listItem &&
|
|
85
|
-
listItem.tagName === 'LI' &&
|
|
86
|
-
!(listItem.children && listItem.children.length)) {
|
|
87
|
-
// Test if we have focus support for SVG elements
|
|
88
|
-
var hasSVGFocusSupport = !!(this.renderTo.getElementsByTagName('g')[0] || {}).focus;
|
|
89
|
-
// Only focus if we can set focus back to the elements after
|
|
90
|
-
// destroying the menu (#7422)
|
|
91
|
-
if (listItem.focus && hasSVGFocusSupport) {
|
|
92
|
-
listItem.focus();
|
|
93
|
-
}
|
|
94
|
-
if (curHighlighted && curHighlighted.onmouseout) {
|
|
95
|
-
curHighlighted.onmouseout(getFakeMouseEvent('mouseout'));
|
|
96
|
-
}
|
|
97
|
-
if (listItem.onmouseover) {
|
|
98
|
-
listItem.onmouseover(getFakeMouseEvent('mouseover'));
|
|
99
|
-
}
|
|
100
|
-
this.highlightedExportItemIx = ix;
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
return false;
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* Try to highlight the last valid export menu item.
|
|
107
|
-
*
|
|
108
|
-
* @private
|
|
109
|
-
* @function Highcharts.Chart#highlightLastExportItem
|
|
110
|
-
* @return {boolean}
|
|
111
|
-
*/
|
|
112
|
-
Chart.prototype.highlightLastExportItem = function () {
|
|
113
|
-
var chart = this;
|
|
114
|
-
if (chart.exportDivElements) {
|
|
115
|
-
var i = chart.exportDivElements.length;
|
|
116
|
-
while (i--) {
|
|
117
|
-
if (chart.highlightExportItem(i)) {
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return false;
|
|
123
|
-
};
|
|
124
51
|
/**
|
|
125
52
|
* @private
|
|
126
53
|
* @param {Highcharts.Chart} chart
|
|
@@ -134,6 +61,11 @@ function exportingShouldHaveA11y(chart) {
|
|
|
134
61
|
exportButton &&
|
|
135
62
|
exportButton.element);
|
|
136
63
|
}
|
|
64
|
+
/* *
|
|
65
|
+
*
|
|
66
|
+
* Class
|
|
67
|
+
*
|
|
68
|
+
* */
|
|
137
69
|
/**
|
|
138
70
|
* The MenuComponent class
|
|
139
71
|
*
|
|
@@ -141,13 +73,21 @@ function exportingShouldHaveA11y(chart) {
|
|
|
141
73
|
* @class
|
|
142
74
|
* @name Highcharts.MenuComponent
|
|
143
75
|
*/
|
|
144
|
-
var MenuComponent = function () {
|
|
145
|
-
MenuComponent
|
|
146
|
-
|
|
76
|
+
var MenuComponent = /** @class */ (function (_super) {
|
|
77
|
+
__extends(MenuComponent, _super);
|
|
78
|
+
function MenuComponent() {
|
|
79
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
80
|
+
}
|
|
81
|
+
/* *
|
|
82
|
+
*
|
|
83
|
+
* Functions
|
|
84
|
+
*
|
|
85
|
+
* */
|
|
86
|
+
/* eslint-disable valid-jsdoc */
|
|
147
87
|
/**
|
|
148
88
|
* Init the component
|
|
149
89
|
*/
|
|
150
|
-
init
|
|
90
|
+
MenuComponent.prototype.init = function () {
|
|
151
91
|
var chart = this.chart, component = this;
|
|
152
92
|
this.addEvent(chart, 'exportMenuShown', function () {
|
|
153
93
|
component.onMenuShown();
|
|
@@ -156,22 +96,22 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
156
96
|
component.onMenuHidden();
|
|
157
97
|
});
|
|
158
98
|
this.createProxyGroup();
|
|
159
|
-
}
|
|
99
|
+
};
|
|
160
100
|
/**
|
|
161
101
|
* @private
|
|
162
102
|
*/
|
|
163
|
-
onMenuHidden
|
|
103
|
+
MenuComponent.prototype.onMenuHidden = function () {
|
|
164
104
|
var menu = this.chart.exportContextMenu;
|
|
165
105
|
if (menu) {
|
|
166
106
|
menu.setAttribute('aria-hidden', 'true');
|
|
167
107
|
}
|
|
168
108
|
this.isExportMenuShown = false;
|
|
169
109
|
this.setExportButtonExpandedState('false');
|
|
170
|
-
}
|
|
110
|
+
};
|
|
171
111
|
/**
|
|
172
112
|
* @private
|
|
173
113
|
*/
|
|
174
|
-
onMenuShown
|
|
114
|
+
MenuComponent.prototype.onMenuShown = function () {
|
|
175
115
|
var chart = this.chart, menu = chart.exportContextMenu;
|
|
176
116
|
if (menu) {
|
|
177
117
|
this.addAccessibleContextMenuAttribs();
|
|
@@ -179,28 +119,28 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
179
119
|
}
|
|
180
120
|
this.isExportMenuShown = true;
|
|
181
121
|
this.setExportButtonExpandedState('true');
|
|
182
|
-
}
|
|
122
|
+
};
|
|
183
123
|
/**
|
|
184
124
|
* @private
|
|
185
125
|
* @param {string} stateStr
|
|
186
126
|
*/
|
|
187
|
-
setExportButtonExpandedState
|
|
127
|
+
MenuComponent.prototype.setExportButtonExpandedState = function (stateStr) {
|
|
188
128
|
if (this.exportButtonProxy) {
|
|
189
129
|
this.exportButtonProxy.buttonElement.setAttribute('aria-expanded', stateStr);
|
|
190
130
|
}
|
|
191
|
-
}
|
|
131
|
+
};
|
|
192
132
|
/**
|
|
193
133
|
* Called on each render of the chart. We need to update positioning of the
|
|
194
134
|
* proxy overlay.
|
|
195
135
|
*/
|
|
196
|
-
onChartRender
|
|
136
|
+
MenuComponent.prototype.onChartRender = function () {
|
|
197
137
|
this.proxyProvider.clearGroup('chartMenu');
|
|
198
138
|
this.proxyMenuButton();
|
|
199
|
-
}
|
|
139
|
+
};
|
|
200
140
|
/**
|
|
201
141
|
* @private
|
|
202
142
|
*/
|
|
203
|
-
proxyMenuButton
|
|
143
|
+
MenuComponent.prototype.proxyMenuButton = function () {
|
|
204
144
|
var chart = this.chart;
|
|
205
145
|
var proxyProvider = this.proxyProvider;
|
|
206
146
|
var buttonEl = getExportMenuButtonElement(chart);
|
|
@@ -213,20 +153,20 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
213
153
|
'aria-expanded': false
|
|
214
154
|
});
|
|
215
155
|
}
|
|
216
|
-
}
|
|
156
|
+
};
|
|
217
157
|
/**
|
|
218
158
|
* @private
|
|
219
159
|
*/
|
|
220
|
-
createProxyGroup
|
|
160
|
+
MenuComponent.prototype.createProxyGroup = function () {
|
|
221
161
|
var chart = this.chart;
|
|
222
162
|
if (chart && this.proxyProvider) {
|
|
223
163
|
this.proxyProvider.addGroup('chartMenu', 'div');
|
|
224
164
|
}
|
|
225
|
-
}
|
|
165
|
+
};
|
|
226
166
|
/**
|
|
227
167
|
* @private
|
|
228
168
|
*/
|
|
229
|
-
addAccessibleContextMenuAttribs
|
|
169
|
+
MenuComponent.prototype.addAccessibleContextMenuAttribs = function () {
|
|
230
170
|
var chart = this.chart, exportList = chart.exportDivElements;
|
|
231
171
|
if (exportList && exportList.length) {
|
|
232
172
|
// Set tabindex on the menu items to allow focusing by script
|
|
@@ -252,12 +192,12 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
252
192
|
});
|
|
253
193
|
}
|
|
254
194
|
}
|
|
255
|
-
}
|
|
195
|
+
};
|
|
256
196
|
/**
|
|
257
197
|
* Get keyboard navigation handler for this component.
|
|
258
198
|
* @return {Highcharts.KeyboardNavigationHandler}
|
|
259
199
|
*/
|
|
260
|
-
getKeyboardNavigation
|
|
200
|
+
MenuComponent.prototype.getKeyboardNavigation = function () {
|
|
261
201
|
var keys = this.keyCodes, chart = this.chart, component = this;
|
|
262
202
|
return new KeyboardNavigationHandler(chart, {
|
|
263
203
|
keyCodeMap: [
|
|
@@ -304,13 +244,13 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
304
244
|
chart.hideExportMenu();
|
|
305
245
|
}
|
|
306
246
|
});
|
|
307
|
-
}
|
|
247
|
+
};
|
|
308
248
|
/**
|
|
309
249
|
* @private
|
|
310
250
|
* @param {Highcharts.KeyboardNavigationHandler} keyboardNavigationHandler
|
|
311
251
|
* @return {number} Response code
|
|
312
252
|
*/
|
|
313
|
-
onKbdPrevious
|
|
253
|
+
MenuComponent.prototype.onKbdPrevious = function (keyboardNavigationHandler) {
|
|
314
254
|
var chart = this.chart;
|
|
315
255
|
var a11yOptions = chart.options.accessibility;
|
|
316
256
|
var response = keyboardNavigationHandler.response;
|
|
@@ -328,13 +268,13 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
328
268
|
return response.success;
|
|
329
269
|
}
|
|
330
270
|
return response.prev;
|
|
331
|
-
}
|
|
271
|
+
};
|
|
332
272
|
/**
|
|
333
273
|
* @private
|
|
334
274
|
* @param {Highcharts.KeyboardNavigationHandler} keyboardNavigationHandler
|
|
335
275
|
* @return {number} Response code
|
|
336
276
|
*/
|
|
337
|
-
onKbdNext
|
|
277
|
+
MenuComponent.prototype.onKbdNext = function (keyboardNavigationHandler) {
|
|
338
278
|
var chart = this.chart;
|
|
339
279
|
var a11yOptions = chart.options.accessibility;
|
|
340
280
|
var response = keyboardNavigationHandler.response;
|
|
@@ -351,13 +291,13 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
351
291
|
return response.success;
|
|
352
292
|
}
|
|
353
293
|
return response.next;
|
|
354
|
-
}
|
|
294
|
+
};
|
|
355
295
|
/**
|
|
356
296
|
* @private
|
|
357
297
|
* @param {Highcharts.KeyboardNavigationHandler} keyboardNavigationHandler
|
|
358
298
|
* @return {number} Response code
|
|
359
299
|
*/
|
|
360
|
-
onKbdClick
|
|
300
|
+
MenuComponent.prototype.onKbdClick = function (keyboardNavigationHandler) {
|
|
361
301
|
var chart = this.chart;
|
|
362
302
|
var curHighlightedItem = chart.exportDivElements[chart.highlightedExportItemIx];
|
|
363
303
|
var exportButtonElement = getExportMenuButtonElement(chart).element;
|
|
@@ -369,6 +309,141 @@ extend(MenuComponent.prototype, /** @lends Highcharts.MenuComponent */ {
|
|
|
369
309
|
chart.highlightExportItem(0);
|
|
370
310
|
}
|
|
371
311
|
return keyboardNavigationHandler.response.success;
|
|
312
|
+
};
|
|
313
|
+
return MenuComponent;
|
|
314
|
+
}(AccessibilityComponent));
|
|
315
|
+
/* *
|
|
316
|
+
*
|
|
317
|
+
* Class Namespace
|
|
318
|
+
*
|
|
319
|
+
* */
|
|
320
|
+
(function (MenuComponent) {
|
|
321
|
+
/* *
|
|
322
|
+
*
|
|
323
|
+
* Declarations
|
|
324
|
+
*
|
|
325
|
+
* */
|
|
326
|
+
/* *
|
|
327
|
+
*
|
|
328
|
+
* Constants
|
|
329
|
+
*
|
|
330
|
+
* */
|
|
331
|
+
var composedClasses = [];
|
|
332
|
+
/* *
|
|
333
|
+
*
|
|
334
|
+
* Functions
|
|
335
|
+
*
|
|
336
|
+
* */
|
|
337
|
+
/* eslint-disable valid-jsdoc */
|
|
338
|
+
/**
|
|
339
|
+
* @private
|
|
340
|
+
*/
|
|
341
|
+
function compose(ChartClass) {
|
|
342
|
+
if (composedClasses.indexOf(ChartClass) === -1) {
|
|
343
|
+
composedClasses.push(ChartClass);
|
|
344
|
+
var chartProto = Chart.prototype;
|
|
345
|
+
chartProto.hideExportMenu = chartHideExportMenu;
|
|
346
|
+
chartProto.highlightExportItem = chartHighlightExportItem;
|
|
347
|
+
chartProto.highlightLastExportItem = chartHighlightLastExportItem;
|
|
348
|
+
chartProto.showExportMenu = chartShowExportMenu;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
MenuComponent.compose = compose;
|
|
352
|
+
/**
|
|
353
|
+
* Show the export menu and focus the first item (if exists).
|
|
354
|
+
*
|
|
355
|
+
* @private
|
|
356
|
+
* @function Highcharts.Chart#showExportMenu
|
|
357
|
+
*/
|
|
358
|
+
function chartShowExportMenu() {
|
|
359
|
+
var exportButton = getExportMenuButtonElement(this);
|
|
360
|
+
if (exportButton) {
|
|
361
|
+
var el = exportButton.element;
|
|
362
|
+
if (el.onclick) {
|
|
363
|
+
el.onclick(getFakeMouseEvent('click'));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @private
|
|
369
|
+
* @function Highcharts.Chart#hideExportMenu
|
|
370
|
+
*/
|
|
371
|
+
function chartHideExportMenu() {
|
|
372
|
+
var chart = this, exportList = chart.exportDivElements;
|
|
373
|
+
if (exportList && chart.exportContextMenu) {
|
|
374
|
+
// Reset hover states etc.
|
|
375
|
+
exportList.forEach(function (el) {
|
|
376
|
+
if (el &&
|
|
377
|
+
el.className === 'highcharts-menu-item' &&
|
|
378
|
+
el.onmouseout) {
|
|
379
|
+
el.onmouseout(getFakeMouseEvent('mouseout'));
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
chart.highlightedExportItemIx = 0;
|
|
383
|
+
// Hide the menu div
|
|
384
|
+
chart.exportContextMenu.hideMenu();
|
|
385
|
+
// Make sure the chart has focus and can capture keyboard events
|
|
386
|
+
chart.container.focus();
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* Highlight export menu item by index.
|
|
391
|
+
*
|
|
392
|
+
* @private
|
|
393
|
+
* @function Highcharts.Chart#highlightExportItem
|
|
394
|
+
*
|
|
395
|
+
* @param {number} ix
|
|
396
|
+
*
|
|
397
|
+
* @return {boolean}
|
|
398
|
+
*/
|
|
399
|
+
function chartHighlightExportItem(ix) {
|
|
400
|
+
var listItem = this.exportDivElements && this.exportDivElements[ix];
|
|
401
|
+
var curHighlighted = this.exportDivElements &&
|
|
402
|
+
this.exportDivElements[this.highlightedExportItemIx];
|
|
403
|
+
if (listItem &&
|
|
404
|
+
listItem.tagName === 'LI' &&
|
|
405
|
+
!(listItem.children && listItem.children.length)) {
|
|
406
|
+
// Test if we have focus support for SVG elements
|
|
407
|
+
var hasSVGFocusSupport = !!(this.renderTo.getElementsByTagName('g')[0] || {}).focus;
|
|
408
|
+
// Only focus if we can set focus back to the elements after
|
|
409
|
+
// destroying the menu (#7422)
|
|
410
|
+
if (listItem.focus && hasSVGFocusSupport) {
|
|
411
|
+
listItem.focus();
|
|
412
|
+
}
|
|
413
|
+
if (curHighlighted && curHighlighted.onmouseout) {
|
|
414
|
+
curHighlighted.onmouseout(getFakeMouseEvent('mouseout'));
|
|
415
|
+
}
|
|
416
|
+
if (listItem.onmouseover) {
|
|
417
|
+
listItem.onmouseover(getFakeMouseEvent('mouseover'));
|
|
418
|
+
}
|
|
419
|
+
this.highlightedExportItemIx = ix;
|
|
420
|
+
return true;
|
|
421
|
+
}
|
|
422
|
+
return false;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Try to highlight the last valid export menu item.
|
|
426
|
+
*
|
|
427
|
+
* @private
|
|
428
|
+
* @function Highcharts.Chart#highlightLastExportItem
|
|
429
|
+
* @return {boolean}
|
|
430
|
+
*/
|
|
431
|
+
function chartHighlightLastExportItem() {
|
|
432
|
+
var chart = this;
|
|
433
|
+
if (chart.exportDivElements) {
|
|
434
|
+
var i = chart.exportDivElements.length;
|
|
435
|
+
while (i--) {
|
|
436
|
+
if (chart.highlightExportItem(i)) {
|
|
437
|
+
return true;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
return false;
|
|
372
442
|
}
|
|
373
|
-
});
|
|
443
|
+
})(MenuComponent || (MenuComponent = {}));
|
|
444
|
+
/* *
|
|
445
|
+
*
|
|
446
|
+
* Default Export
|
|
447
|
+
*
|
|
448
|
+
* */
|
|
374
449
|
export default MenuComponent;
|