highcharts 8.1.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bower.json +1 -1
- package/css/highcharts.css +12 -0
- package/css/highcharts.scss +12 -0
- package/css/themes/dark-unica.css +12 -0
- package/css/themes/grid-light.css +12 -0
- package/css/themes/sand-signika.css +12 -0
- package/es-modules/{modules/accessibility/a11y-i18n.js → Accessibility/A11yI18n.js} +2 -2
- package/es-modules/{modules/accessibility/accessibility.js → Accessibility/Accessibility.js} +24 -21
- package/es-modules/{modules/accessibility → Accessibility}/AccessibilityComponent.js +73 -17
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/AnnotationsA11y.js +2 -4
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/ContainerComponent.js +8 -9
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/InfoRegionsComponent.js +9 -12
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/LegendComponent.js +60 -22
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/MenuComponent.js +4 -11
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/RangeSelectorComponent.js +8 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +171 -0
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/NewDataAnnouncer.js +8 -7
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesComponent.js +5 -5
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesDescriber.js +6 -6
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/SeriesComponent/SeriesKeyboardNavigation.js +22 -20
- package/es-modules/{modules/accessibility/components → Accessibility/Components}/ZoomComponent.js +9 -8
- package/es-modules/{modules/accessibility/focusBorder.js → Accessibility/FocusBorder.js} +13 -10
- package/es-modules/{modules/accessibility/high-contrast-mode.js → Accessibility/HighContrastMode.js} +3 -2
- package/es-modules/{modules/accessibility/high-contrast-theme.js → Accessibility/HighContrastTheme.js} +0 -0
- package/es-modules/{modules/accessibility → Accessibility}/KeyboardNavigation.js +35 -22
- package/es-modules/{modules/accessibility → Accessibility}/KeyboardNavigationHandler.js +1 -1
- package/es-modules/{modules/accessibility/options/deprecatedOptions.js → Accessibility/Options/DeprecatedOptions.js} +10 -20
- package/es-modules/{modules/accessibility/options/langOptions.js → Accessibility/Options/LangOptions.js} +1 -1
- package/es-modules/{modules/accessibility/options/options.js → Accessibility/Options/Options.js} +1 -2
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/Announcer.js +2 -2
- package/es-modules/{modules/accessibility/utils/chartUtilities.js → Accessibility/Utils/ChartUtilities.js} +8 -9
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/DOMElementProvider.js +5 -5
- package/es-modules/{modules/accessibility/utils → Accessibility/Utils}/EventProvider.js +2 -2
- package/es-modules/{modules/accessibility/utils/htmlUtilities.js → Accessibility/Utils/HTMLUtilities.js} +3 -4
- package/es-modules/Core/Animation/AnimationUtilities.js +193 -0
- package/es-modules/Core/Animation/Fx.js +378 -0
- package/es-modules/{parts → Core/Axis}/Axis.js +153 -89
- package/es-modules/{parts-3d → Core/Axis}/Axis3D.js +12 -7
- package/es-modules/{modules/broken-axis.src.js → Core/Axis/BrokenAxis.js} +6 -8
- package/es-modules/{parts-map → Core/Axis}/ColorAxis.js +28 -31
- package/es-modules/{parts → Core/Axis}/DateTimeAxis.js +1 -1
- package/es-modules/{parts-gantt → Core/Axis}/GridAxis.js +136 -39
- package/es-modules/{parts-more → Core/Axis}/HiddenAxis.js +0 -0
- package/es-modules/{parts → Core/Axis}/LogarithmicAxis.js +1 -1
- package/es-modules/{parts-map → Core/Axis}/MapAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/NavigatorAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/OrdinalAxis.js +241 -224
- package/es-modules/{parts → Core/Axis}/PlotLineOrBand.js +24 -15
- package/es-modules/{parts-more → Core/Axis}/RadialAxis.js +34 -27
- package/es-modules/{parts → Core/Axis}/ScrollbarAxis.js +2 -2
- package/es-modules/{parts → Core/Axis}/StackingAxis.js +11 -2
- package/es-modules/{parts → Core/Axis}/Tick.js +14 -14
- package/es-modules/{parts-3d → Core/Axis}/Tick3D.js +1 -1
- package/es-modules/{parts-gantt → Core/Axis}/TreeGridAxis.js +81 -15
- package/es-modules/{parts-gantt → Core/Axis}/TreeGridTick.js +1 -1
- package/es-modules/{parts-3d → Core/Axis}/ZAxis.js +2 -2
- package/es-modules/{parts → Core/Chart}/Chart.js +225 -227
- package/es-modules/Core/Chart/Chart3D.js +1674 -0
- package/es-modules/{parts-gantt → Core/Chart}/GanttChart.js +13 -12
- package/es-modules/{parts → Core/Chart}/StockChart.js +26 -25
- package/es-modules/Core/Color/Color.js +419 -0
- package/es-modules/Core/Color/ColorType.js +9 -0
- package/es-modules/{parts → Core}/Color.js +1 -1
- package/es-modules/{parts → Core}/Dynamics.js +91 -61
- package/es-modules/{parts → Core}/Globals.js +9 -1
- package/es-modules/{parts → Core}/Interaction.js +27 -20
- package/es-modules/{parts → Core}/Legend.js +26 -11
- package/es-modules/{parts → Core}/MSPointer.js +2 -2
- package/es-modules/{parts → Core}/Navigator.js +24 -14
- package/es-modules/{parts → Core}/Options.js +157 -69
- package/es-modules/{parts → Core}/Pointer.js +50 -27
- package/es-modules/Core/Renderer/DOMElementType.js +9 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +220 -0
- package/es-modules/{parts/Html.js → Core/Renderer/HTML/HTMLRenderer.js} +16 -207
- package/es-modules/{parts → Core/Renderer/SVG}/SVGElement.js +186 -32
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +410 -0
- package/es-modules/{parts/SvgRenderer.js → Core/Renderer/SVG/SVGRenderer.js} +426 -886
- package/es-modules/{parts-3d/SVGRenderer.js → Core/Renderer/SVG/SVGRenderer3D.js} +31 -23
- package/es-modules/{parts → Core}/Responsive.js +24 -14
- package/es-modules/{parts → Core}/Scrollbar.js +5 -4
- package/es-modules/Core/Series/BaseSeries.js +157 -0
- package/es-modules/{parts/Series.js → Core/Series/CartesianSeries.js} +119 -55
- package/es-modules/{parts → Core/Series}/DataLabels.js +40 -36
- package/es-modules/{parts → Core/Series}/Point.js +8 -10
- package/es-modules/Core/Series/Series.js +158 -0
- package/es-modules/{parts-3d/Series.js → Core/Series/Series3D.js} +5 -3
- package/es-modules/{parts → Core}/Time.js +11 -133
- package/es-modules/{parts → Core}/Tooltip.js +30 -27
- package/es-modules/{parts → Core}/Utilities.js +103 -562
- package/es-modules/{mixins/ajax.js → Extensions/Ajax.js} +9 -4
- package/es-modules/{annotations/annotations.src.js → Extensions/Annotations/Annotations.js} +901 -709
- package/es-modules/{annotations → Extensions/Annotations}/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableCircle.js +117 -0
- package/es-modules/Extensions/Annotations/Controllables/ControllableImage.js +111 -0
- package/es-modules/{annotations/controllable → Extensions/Annotations/Controllables}/ControllableLabel.js +186 -146
- package/es-modules/{annotations/controllable → Extensions/Annotations/Controllables}/ControllablePath.js +81 -42
- package/es-modules/Extensions/Annotations/Controllables/ControllableRect.js +121 -0
- package/es-modules/{annotations/controllable/controllableMixin.js → Extensions/Annotations/Mixins/ControllableMixin.js} +8 -9
- package/es-modules/{annotations/eventEmitterMixin.js → Extensions/Annotations/Mixins/EventEmitterMixin.js} +7 -7
- package/es-modules/{annotations/controllable/markerMixin.js → Extensions/Annotations/Mixins/MarkerMixin.js} +10 -8
- package/es-modules/{annotations → Extensions/Annotations}/MockPoint.js +6 -6
- package/es-modules/{annotations/navigationBindings.js → Extensions/Annotations/NavigationBindings.js} +27 -16
- package/es-modules/{annotations/popup.js → Extensions/Annotations/Popup.js} +9 -9
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/BasicAnnotation.js +68 -20
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/CrookedLine.js +46 -19
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/ElliottWave.js +33 -12
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Fibonacci.js +54 -22
- package/es-modules/Extensions/Annotations/Types/InfinityLine.js +147 -0
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Measure.js +82 -52
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Pitchfork.js +69 -32
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/Tunnel.js +58 -30
- package/es-modules/{annotations/types → Extensions/Annotations/Types}/VerticalLine.js +64 -33
- package/es-modules/{parts-gantt → Extensions}/ArrowSymbols.js +9 -11
- package/es-modules/{modules/boost/boost.js → Extensions/Boost/Boost.js} +8 -8
- package/es-modules/{modules/boost/boost-attach.js → Extensions/Boost/BoostAttach.js} +10 -8
- package/es-modules/{modules/boost/boost-init.js → Extensions/Boost/BoostInit.js} +7 -6
- package/es-modules/{modules/boost/boost-options.js → Extensions/Boost/BoostOptions.js} +1 -1
- package/es-modules/{modules/boost/boost-overrides.js → Extensions/Boost/BoostOverrides.js} +14 -11
- package/es-modules/{modules/boost/boost-utils.js → Extensions/Boost/BoostUtils.js} +6 -6
- package/es-modules/{modules/boost/boostable-map.js → Extensions/Boost/BoostableMap.js} +1 -1
- package/es-modules/{modules/boost/boostables.js → Extensions/Boost/Boostables.js} +0 -0
- package/es-modules/{modules/boost/named-colors.js → Extensions/Boost/NamedColors.js} +1 -1
- package/es-modules/{modules/boost/wgl-renderer.js → Extensions/Boost/WGLRenderer.js} +9 -9
- package/es-modules/{modules/boost/wgl-shader.js → Extensions/Boost/WGLShader.js} +3 -4
- package/es-modules/{modules/boost/wgl-vbuffer.js → Extensions/Boost/WGLVBuffer.js} +0 -0
- package/es-modules/{modules/boost-canvas.src.js → Extensions/BoostCanvas.js} +13 -9
- package/es-modules/{parts-gantt/CurrentDateIndicator.js → Extensions/CurrentDateIndication.js} +5 -7
- package/es-modules/{modules/data.src.js → Extensions/Data.js} +14 -16
- package/es-modules/{parts → Extensions}/DataGrouping.js +12 -9
- package/es-modules/{modules/debugger.src.js → Extensions/Debugger.js} +6 -6
- package/es-modules/{mixins/download-url.js → Extensions/DownloadURL.js} +15 -7
- package/es-modules/{modules/drag-panes.src.js → Extensions/DragPanes.js} +6 -6
- package/es-modules/{modules/draggable-points.src.js → Extensions/DraggablePoints.js} +21 -32
- package/es-modules/{modules/drilldown.src.js → Extensions/Drilldown.js} +64 -43
- package/es-modules/{modules/export-data.src.js → Extensions/ExportData.js} +126 -26
- package/es-modules/{modules/exporting.src.js → Extensions/Exporting.js} +26 -12
- package/es-modules/{modules/full-screen.src.js → Extensions/FullScreen.js} +5 -3
- package/es-modules/{parts-map → Extensions}/GeoJSON.js +112 -7
- package/es-modules/{modules/marker-clusters.src.js → Extensions/MarkerClusters.js} +29 -39
- package/es-modules/{parts-3d/Math.js → Extensions/Math3D.js} +17 -9
- package/es-modules/{modules/no-data-to-display.src.js → Extensions/NoDataToDisplay.js} +14 -15
- package/es-modules/{modules/offline-exporting.src.js → Extensions/OfflineExporting.js} +39 -35
- package/es-modules/{modules/oldie.src.js → Extensions/Oldie/Oldie.js} +19 -12
- package/es-modules/{parts-3d → Extensions/Oldie}/VMLAxis3D.js +1 -1
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +46 -0
- package/es-modules/{modules/oldie-polyfills.src.js → Extensions/OldiePolyfills.js} +5 -0
- package/es-modules/{modules/overlapping-datalabels.src.js → Extensions/OverlappingDataLabels.js} +14 -13
- package/es-modules/{parts-more → Extensions}/Pane.js +13 -12
- package/es-modules/{modules/parallel-coordinates.src.js → Extensions/ParallelCoordinates.js} +140 -138
- package/es-modules/{modules/pattern-fill.src.js → Extensions/PatternFill.js} +23 -15
- package/es-modules/{parts-more → Extensions}/Polar.js +15 -12
- package/es-modules/{modules/price-indicator.src.js → Extensions/PriceIndication.js} +5 -3
- package/es-modules/{parts → Extensions}/RangeSelector.js +112 -79
- package/es-modules/{parts → Extensions}/ScrollablePlotArea.js +19 -9
- package/es-modules/{modules/series-label.src.js → Extensions/SeriesLabel.js} +14 -10
- package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js} +212 -41
- package/es-modules/{modules/sonification → Extensions/Sonification}/Earcon.js +3 -7
- package/es-modules/{modules/sonification → Extensions/Sonification}/Instrument.js +35 -11
- package/es-modules/{modules/sonification/instrumentDefinitions.js → Extensions/Sonification/InstrumentDefinitions.js} +1 -1
- package/es-modules/{modules/sonification/musicalFrequencies.js → Extensions/Sonification/MusicalFrequencies.js} +0 -0
- package/es-modules/Extensions/Sonification/Options.js +34 -0
- package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js} +43 -28
- package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js} +16 -12
- package/es-modules/{modules/sonification → Extensions/Sonification}/Timeline.js +25 -6
- package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js} +8 -5
- package/es-modules/{parts → Extensions}/Stacking.js +57 -18
- package/es-modules/{modules/static-scale.src.js → Extensions/StaticScale.js} +4 -4
- package/es-modules/{themes/avocado.js → Extensions/Themes/Avocado.js} +5 -4
- package/es-modules/{themes/dark-blue.js → Extensions/Themes/DarkBlue.js} +4 -2
- package/es-modules/{themes/dark-green.js → Extensions/Themes/DarkGreen.js} +4 -2
- package/es-modules/{themes/dark-unica.js → Extensions/Themes/DarkUnica.js} +6 -6
- package/es-modules/{themes/gray.js → Extensions/Themes/Gray.js} +5 -4
- package/es-modules/{themes/grid.js → Extensions/Themes/Grid.js} +4 -2
- package/es-modules/{themes/grid-light.js → Extensions/Themes/GridLight.js} +4 -2
- package/es-modules/{themes/high-contrast-dark.js → Extensions/Themes/HighContrastDark.js} +5 -4
- package/es-modules/{themes/high-contrast-light.js → Extensions/Themes/HighContrastLight.js} +4 -2
- package/es-modules/{themes/sand-signika.js → Extensions/Themes/SandSignika.js} +4 -2
- package/es-modules/{themes/skies.js → Extensions/Themes/Skies.js} +5 -3
- package/es-modules/{themes/sunset.js → Extensions/Themes/Sunset.js} +5 -4
- package/es-modules/{parts-gantt/Pathfinder.js → Gantt/Connection.js} +41 -284
- package/es-modules/Gantt/Pathfinder.js +816 -0
- package/es-modules/Gantt/PathfinderAlgorithms.js +659 -0
- package/es-modules/{parts-gantt → Gantt}/Tree.js +1 -1
- package/es-modules/{parts-map → Maps}/Map.js +24 -15
- package/es-modules/{parts-map → Maps}/MapNavigation.js +4 -5
- package/es-modules/{parts-map → Maps}/MapPointer.js +2 -4
- package/es-modules/{mixins/centered-series.js → Mixins/CenteredSeries.js} +7 -5
- package/es-modules/{parts-map/ColorMapSeriesMixin.js → Mixins/ColorMapSeries.js} +10 -6
- package/es-modules/{parts-map/ColorSeriesMixin.js → Mixins/ColorSeries.js} +12 -4
- package/es-modules/{mixins/derived-series.js → Mixins/DerivedSeries.js} +3 -3
- package/es-modules/{mixins/draw-point.js → Mixins/DrawPoint.js} +6 -1
- package/es-modules/{mixins/geometry.js → Mixins/Geometry.js} +0 -0
- package/es-modules/{mixins/geometry-circles.js → Mixins/GeometryCircles.js} +2 -2
- package/es-modules/{mixins/indicator-required.js → Mixins/IndicatorRequired.js} +1 -1
- package/es-modules/{mixins/legend-symbol.js → Mixins/LegendSymbol.js} +6 -10
- package/es-modules/{mixins/multipe-lines.js → Mixins/MultipleLines.js} +2 -2
- package/es-modules/{mixins/navigation.js → Mixins/Navigation.js} +0 -0
- package/es-modules/{mixins/nelder-mead.js → Mixins/NelderMead.js} +2 -2
- package/es-modules/{mixins/nodes.js → Mixins/Nodes.js} +7 -5
- package/es-modules/{mixins/on-series.js → Mixins/OnSeries.js} +3 -2
- package/es-modules/{mixins/polygon.js → Mixins/Polygon.js} +2 -2
- package/es-modules/{mixins/reduce-array.js → Mixins/ReduceArray.js} +1 -1
- package/es-modules/{mixins/tree-series.js → Mixins/TreeSeries.js} +2 -2
- package/es-modules/{parts-more → Series}/AreaRangeSeries.js +75 -38
- package/es-modules/{parts → Series}/AreaSeries.js +43 -25
- package/es-modules/{parts-more → Series}/AreaSplineRangeSeries.js +47 -10
- package/es-modules/{parts → Series}/AreaSplineSeries.js +49 -10
- package/es-modules/{parts → Series}/BarSeries.js +2 -5
- package/es-modules/{modules/bellcurve.src.js → Series/BellcurveSeries.js} +47 -7
- package/es-modules/{parts-more → Series}/BoxPlotSeries.js +18 -13
- package/es-modules/{parts-more → Series/Bubble}/BubbleLegend.js +11 -9
- package/es-modules/{parts-more → Series/Bubble}/BubbleSeries.js +25 -27
- package/es-modules/{modules/bullet.src.js → Series/BulletSeries.js} +9 -8
- package/es-modules/{parts → Series}/CandlestickSeries.js +11 -8
- package/es-modules/{parts-3d/Column.js → Series/Column3DSeries.js} +108 -28
- package/es-modules/{parts-more → Series}/ColumnPyramidSeries.js +9 -9
- package/es-modules/{parts-more → Series}/ColumnRangeSeries.js +21 -18
- package/es-modules/{parts → Series}/ColumnSeries.js +119 -41
- package/es-modules/{modules/cylinder.src.js → Series/CylinderSeries.js} +14 -14
- package/es-modules/{modules/dependency-wheel.src.js → Series/DependencyWheelSeries.js} +14 -12
- package/es-modules/{modules/dotplot.src.js → Series/DotplotSeries.js} +7 -15
- package/es-modules/{modules/dumbbell.src.js → Series/DumbbellSeries.js} +16 -10
- package/es-modules/{parts-more → Series}/ErrorBarSeries.js +8 -8
- package/es-modules/{parts → Series}/FlagsSeries.js +18 -12
- package/es-modules/{modules/funnel3d.src.js → Series/Funnel3DSeries.js} +14 -16
- package/es-modules/{modules/funnel.src.js → Series/FunnelSeries.js} +16 -14
- package/es-modules/{parts-gantt → Series}/GanttSeries.js +21 -20
- package/es-modules/{parts-more → Series}/GaugeSeries.js +14 -12
- package/es-modules/{parts-map → Series}/HeatmapSeries.js +23 -16
- package/es-modules/{modules/histogram.src.js → Series/HistogramSeries.js} +13 -9
- package/es-modules/{modules/item-series.src.js → Series/ItemSeries.js} +22 -14
- package/es-modules/Series/LineSeries.js +13 -0
- package/es-modules/{modules/lollipop.src.js → Series/LollipopSeries.js} +34 -10
- package/es-modules/{parts-map → Series}/MapBubbleSeries.js +8 -9
- package/es-modules/{parts-map → Series}/MapLineSeries.js +5 -7
- package/es-modules/{parts-map → Series}/MapPointSeries.js +9 -8
- package/es-modules/{parts-map → Series}/MapSeries.js +22 -18
- package/es-modules/{modules/networkgraph/draggable-nodes.js → Series/Networkgraph/DraggableNodes.js} +15 -30
- package/es-modules/{modules/networkgraph/integrations.js → Series/Networkgraph/Integrations.js} +1 -1
- package/es-modules/{modules/networkgraph/layouts.js → Series/Networkgraph/Layouts.js} +43 -13
- package/es-modules/{modules/networkgraph/networkgraph.src.js → Series/Networkgraph/Networkgraph.js} +29 -23
- package/es-modules/{modules/networkgraph → Series/Networkgraph}/QuadTree.js +2 -2
- package/es-modules/{parts → Series}/OHLCSeries.js +5 -7
- package/es-modules/{modules/organization.src.js → Series/OrganizationSeries.js} +10 -7
- package/es-modules/{parts-more → Series}/PackedBubbleSeries.js +104 -28
- package/es-modules/{modules/pareto.src.js → Series/ParetoSeries.js} +10 -9
- package/es-modules/{parts-3d/Pie.js → Series/Pie3DSeries.js} +5 -4
- package/es-modules/{parts → Series}/PieSeries.js +66 -31
- package/es-modules/{parts-more → Series}/PolygonSeries.js +13 -13
- package/es-modules/{modules/pyramid3d.src.js → Series/Pyramid3DSeries.js} +5 -7
- package/es-modules/{modules/sankey.src.js → Series/SankeySeries.js} +23 -21
- package/es-modules/{parts-3d/Scatter.js → Series/Scatter3DSeries.js} +10 -9
- package/es-modules/{parts → Series}/ScatterSeries.js +15 -10
- package/es-modules/{modules/solid-gauge.src.js → Series/SolidGaugeSeries.js} +112 -78
- package/es-modules/{parts → Series}/SplineSeries.js +9 -7
- package/es-modules/{modules/streamgraph.src.js → Series/StreamgraphSeries.js} +42 -6
- package/es-modules/{modules/sunburst.src.js → Series/SunburstSeries.js} +20 -13
- package/es-modules/{modules/tilemap.src.js → Series/TilemapSeries.js} +12 -9
- package/es-modules/{modules/timeline.src.js → Series/TimelineSeries.js} +16 -11
- package/es-modules/{modules/treemap.src.js → Series/TreemapSeries.js} +47 -40
- package/es-modules/{modules/variable-pie.src.js → Series/VariablePieSeries.js} +11 -8
- package/es-modules/{modules/variwide.src.js → Series/VariwideSeries.js} +12 -10
- package/es-modules/{modules/vector.src.js → Series/VectorSeries.js} +11 -7
- package/es-modules/{modules/venn.src.js → Series/VennSeries.js} +29 -20
- package/es-modules/{parts-more → Series}/WaterfallSeries.js +145 -66
- package/es-modules/{modules/windbarb.src.js → Series/WindbarbSeries.js} +13 -9
- package/es-modules/{modules/wordcloud.src.js → Series/WordcloudSeries.js} +17 -13
- package/es-modules/{modules/xrange.src.js → Series/XRangeSeries.js} +16 -12
- package/es-modules/{indicators/acceleration-bands.src.js → Stock/Indicators/ABIndicator.js} +8 -8
- package/es-modules/{indicators/accumulation-distribution.src.js → Stock/Indicators/ADIndicator.js} +5 -4
- package/es-modules/{indicators/ao.src.js → Stock/Indicators/AOIndicator.js} +6 -5
- package/es-modules/{indicators/apo.src.js → Stock/Indicators/APOIndicator.js} +8 -8
- package/es-modules/{indicators/atr.src.js → Stock/Indicators/ATRIndicator.js} +6 -6
- package/es-modules/{indicators/aroon.src.js → Stock/Indicators/AroonIndicator.js} +7 -6
- package/es-modules/{indicators/aroon-oscillator.src.js → Stock/Indicators/AroonOscillatorIndicator.js} +8 -8
- package/es-modules/{indicators/bollinger-bands.src.js → Stock/Indicators/BBIndicator.js} +8 -8
- package/es-modules/{indicators/cci.src.js → Stock/Indicators/CCIIndicator.js} +5 -4
- package/es-modules/{indicators/cmf.src.js → Stock/Indicators/CMFIndicator.js} +3 -4
- package/es-modules/{indicators/chaikin.src.js → Stock/Indicators/ChaikinIndicator.js} +10 -9
- package/es-modules/{indicators/dema.src.js → Stock/Indicators/DEMAIndicator.js} +8 -8
- package/es-modules/{indicators/dpo.src.js → Stock/Indicators/DPOIndicator.js} +5 -4
- package/es-modules/{indicators/ema.src.js → Stock/Indicators/EMAIndicator.js} +4 -4
- package/es-modules/{indicators/ichimoku-kinko-hyo.src.js → Stock/Indicators/IKHIndicator.js} +23 -20
- package/es-modules/{indicators/keltner-channels.src.js → Stock/Indicators/KeltnerChannelsIndicator.js} +11 -8
- package/es-modules/{indicators/macd.src.js → Stock/Indicators/MACDIndicator.js} +9 -6
- package/es-modules/{indicators/mfi.src.js → Stock/Indicators/MFIIndicator.js} +5 -4
- package/es-modules/{indicators/momentum.src.js → Stock/Indicators/MomentumIndicator.js} +5 -4
- package/es-modules/{indicators/natr.src.js → Stock/Indicators/NATRIndicator.js} +4 -6
- package/es-modules/{indicators/price-channel.src.js → Stock/Indicators/PCIndicator.js} +9 -8
- package/es-modules/{indicators/ppo.src.js → Stock/Indicators/PPOIndicator.js} +8 -8
- package/es-modules/{indicators/psar.src.js → Stock/Indicators/PSARIndicator.js} +3 -4
- package/es-modules/{indicators/pivot-points.src.js → Stock/Indicators/PivotPointsIndicator.js} +6 -6
- package/es-modules/{indicators/price-envelopes.src.js → Stock/Indicators/PriceEnvelopesIndicator.js} +6 -6
- package/es-modules/{indicators/roc.src.js → Stock/Indicators/ROCIndicator.js} +5 -4
- package/es-modules/{indicators/rsi.src.js → Stock/Indicators/RSIIndicator.js} +5 -4
- package/es-modules/{indicators/regressions.src.js → Stock/Indicators/RegressionIndicators.js} +8 -7
- package/es-modules/{indicators/indicators.src.js → Stock/Indicators/SMAIndicator.js} +12 -8
- package/es-modules/{indicators/slow-stochastic.src.js → Stock/Indicators/SlowStochasticIndicator.js} +6 -8
- package/es-modules/{indicators/stochastic.src.js → Stock/Indicators/StochasticIndicator.js} +9 -9
- package/es-modules/{indicators/supertrend.src.js → Stock/Indicators/SupertrendIndicator.js} +8 -7
- package/es-modules/{indicators/tema.src.js → Stock/Indicators/TEMAIndicator.js} +8 -8
- package/es-modules/{indicators/trix.src.js → Stock/Indicators/TRIXIndicator.js} +8 -8
- package/es-modules/{indicators/trendline.src.js → Stock/Indicators/TrendLineIndicator.js} +5 -4
- package/es-modules/{indicators/volume-by-price.src.js → Stock/Indicators/VBPIndicator.js} +10 -7
- package/es-modules/{indicators/vwap.src.js → Stock/Indicators/VWAPIndicator.js} +5 -4
- package/es-modules/{indicators/wma.src.js → Stock/Indicators/WMAIndicator.js} +5 -4
- package/es-modules/{indicators/williams-r.src.js → Stock/Indicators/WilliamsRIndicator.js} +7 -6
- package/es-modules/{indicators/zigzag.src.js → Stock/Indicators/ZigzagIndicator.js} +5 -7
- package/es-modules/{modules/stock-tools-bindings.js → Stock/StockToolsBindings.js} +22 -7
- package/es-modules/{modules/stock-tools-gui.js → Stock/StockToolsGui.js} +17 -17
- package/es-modules/error-messages.js +7 -2
- package/es-modules/highcharts.src.js +19853 -0
- package/es-modules/masters/highcharts-3d.src.js +11 -12
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +15 -15
- package/es-modules/masters/highcharts.src.js +28 -27
- 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 +2 -2
- package/es-modules/masters/indicators/accumulation-distribution.src.js +2 -2
- package/es-modules/masters/indicators/ao.src.js +2 -2
- package/es-modules/masters/indicators/apo.src.js +2 -2
- package/es-modules/masters/indicators/aroon-oscillator.src.js +2 -2
- package/es-modules/masters/indicators/aroon.src.js +2 -2
- package/es-modules/masters/indicators/atr.src.js +2 -2
- package/es-modules/masters/indicators/bollinger-bands.src.js +2 -2
- package/es-modules/masters/indicators/cci.src.js +2 -2
- package/es-modules/masters/indicators/chaikin.src.js +2 -2
- package/es-modules/masters/indicators/cmf.src.js +2 -2
- package/es-modules/masters/indicators/dema.src.js +2 -2
- package/es-modules/masters/indicators/dpo.src.js +2 -2
- package/es-modules/masters/indicators/ema.src.js +2 -2
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +2 -2
- package/es-modules/masters/indicators/indicators-all.src.js +41 -41
- package/es-modules/masters/indicators/indicators.src.js +2 -2
- package/es-modules/masters/indicators/keltner-channels.src.js +2 -2
- package/es-modules/masters/indicators/macd.src.js +2 -2
- package/es-modules/masters/indicators/mfi.src.js +2 -2
- package/es-modules/masters/indicators/momentum.src.js +2 -2
- package/es-modules/masters/indicators/natr.src.js +2 -2
- package/es-modules/masters/indicators/pivot-points.src.js +2 -2
- package/es-modules/masters/indicators/ppo.src.js +2 -2
- package/es-modules/masters/indicators/price-channel.src.js +2 -2
- package/es-modules/masters/indicators/price-envelopes.src.js +2 -2
- package/es-modules/masters/indicators/psar.src.js +2 -2
- package/es-modules/masters/indicators/regressions.src.js +2 -2
- package/es-modules/masters/indicators/roc.src.js +2 -2
- package/es-modules/masters/indicators/rsi.src.js +2 -2
- package/es-modules/masters/indicators/slow-stochastic.src.js +2 -2
- package/es-modules/masters/indicators/stochastic.src.js +2 -2
- package/es-modules/masters/indicators/supertrend.src.js +2 -2
- package/es-modules/masters/indicators/tema.src.js +2 -2
- package/es-modules/masters/indicators/trendline.src.js +2 -2
- package/es-modules/masters/indicators/trix.src.js +2 -2
- package/es-modules/masters/indicators/volume-by-price.src.js +2 -2
- package/es-modules/masters/indicators/vwap.src.js +2 -2
- package/es-modules/masters/indicators/williams-r.src.js +2 -2
- package/es-modules/masters/indicators/wma.src.js +2 -2
- package/es-modules/masters/indicators/zigzag.src.js +2 -2
- package/es-modules/masters/modules/accessibility.src.js +2 -2
- package/es-modules/masters/modules/annotations-advanced.src.js +13 -13
- package/es-modules/masters/modules/annotations.src.js +4 -4
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -2
- package/es-modules/masters/modules/boost-canvas.src.js +2 -2
- package/es-modules/masters/modules/boost.src.js +2 -2
- package/es-modules/masters/modules/broken-axis.src.js +2 -2
- package/es-modules/masters/modules/bullet.src.js +2 -2
- package/es-modules/masters/modules/coloraxis.src.js +2 -2
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -2
- package/es-modules/masters/modules/cylinder.src.js +2 -2
- package/es-modules/masters/modules/data.src.js +2 -2
- package/es-modules/masters/modules/datagrouping.src.js +2 -2
- package/es-modules/masters/modules/debugger.src.js +2 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +2 -2
- package/es-modules/masters/modules/dotplot.src.js +2 -2
- package/es-modules/masters/modules/drag-panes.src.js +2 -2
- package/es-modules/masters/modules/draggable-points.src.js +2 -2
- package/es-modules/masters/modules/drilldown.src.js +2 -2
- package/es-modules/masters/modules/dumbbell.src.js +2 -2
- package/es-modules/masters/modules/export-data.src.js +2 -2
- package/es-modules/masters/modules/exporting.src.js +3 -3
- package/es-modules/masters/modules/full-screen.src.js +2 -2
- package/es-modules/masters/modules/funnel.src.js +2 -2
- package/es-modules/masters/modules/funnel3d.src.js +2 -2
- package/es-modules/masters/modules/gantt.src.js +6 -6
- package/es-modules/masters/modules/grid-axis.src.js +2 -2
- package/es-modules/masters/modules/heatmap.src.js +4 -4
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -3
- package/es-modules/masters/modules/item-series.src.js +2 -2
- package/es-modules/masters/modules/lollipop.src.js +2 -2
- package/es-modules/masters/modules/map.src.js +13 -13
- package/es-modules/masters/modules/marker-clusters.src.js +2 -2
- package/es-modules/masters/modules/networkgraph.src.js +2 -2
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -2
- package/es-modules/masters/modules/offline-exporting.src.js +2 -2
- package/es-modules/masters/modules/oldie-polyfills.src.js +2 -2
- package/es-modules/masters/modules/oldie.src.js +2 -2
- package/es-modules/masters/modules/organization.src.js +2 -2
- package/es-modules/masters/modules/overlapping-datalabels.src.js +2 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -2
- package/es-modules/masters/modules/pareto.src.js +2 -2
- package/es-modules/masters/modules/pathfinder.src.js +2 -2
- package/es-modules/masters/modules/pattern-fill.src.js +2 -2
- package/es-modules/masters/modules/price-indicator.src.js +2 -2
- package/es-modules/masters/modules/pyramid3d.src.js +2 -2
- package/es-modules/masters/modules/sankey.src.js +2 -2
- package/es-modules/masters/modules/series-label.src.js +2 -2
- package/es-modules/masters/modules/solid-gauge.src.js +2 -2
- package/es-modules/masters/modules/sonification.src.js +2 -2
- package/es-modules/masters/modules/static-scale.src.js +2 -2
- package/es-modules/masters/modules/stock-tools.src.js +3 -3
- package/es-modules/masters/modules/stock.src.js +10 -10
- package/es-modules/masters/modules/streamgraph.src.js +2 -2
- package/es-modules/masters/modules/sunburst.src.js +2 -2
- package/es-modules/masters/modules/tilemap.src.js +2 -2
- package/es-modules/masters/modules/timeline.src.js +2 -2
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +2 -2
- package/es-modules/masters/modules/variable-pie.src.js +2 -2
- package/es-modules/masters/modules/variwide.src.js +2 -2
- package/es-modules/masters/modules/vector.src.js +2 -2
- package/es-modules/masters/modules/venn.src.js +2 -2
- package/es-modules/masters/modules/windbarb.src.js +2 -2
- package/es-modules/masters/modules/wordcloud.src.js +2 -2
- package/es-modules/masters/modules/xrange.src.js +2 -2
- package/es-modules/masters/themes/avocado.src.js +2 -2
- package/es-modules/masters/themes/dark-blue.src.js +2 -2
- package/es-modules/masters/themes/dark-green.src.js +2 -2
- package/es-modules/masters/themes/dark-unica.src.js +2 -2
- package/es-modules/masters/themes/gray.src.js +2 -2
- package/es-modules/masters/themes/grid-light.src.js +2 -2
- package/es-modules/masters/themes/grid.src.js +2 -2
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -2
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -2
- package/es-modules/masters/themes/sand-signika.src.js +2 -2
- package/es-modules/masters/themes/skies.src.js +2 -2
- package/es-modules/masters/themes/sunset.src.js +2 -2
- package/highcharts-3d.js +86 -88
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +1713 -1615
- package/highcharts-gantt.js +730 -697
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +11747 -10110
- package/highcharts-more.js +164 -161
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +766 -523
- package/highcharts.d.ts +7728 -1337
- package/highcharts.js +538 -515
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +7728 -1337
- package/highcharts.src.js +8517 -7691
- package/highmaps.js +636 -612
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +9151 -8209
- package/highstock.js +697 -671
- package/highstock.js.map +1 -1
- package/highstock.src.js +8919 -8049
- package/indicators/acceleration-bands.js +8 -8
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +8 -8
- package/indicators/accumulation-distribution.js +4 -4
- package/indicators/accumulation-distribution.js.map +1 -1
- package/indicators/accumulation-distribution.src.js +5 -5
- package/indicators/ao.js +5 -5
- package/indicators/ao.js.map +1 -1
- package/indicators/ao.src.js +6 -6
- package/indicators/apo.js +5 -5
- package/indicators/apo.js.map +1 -1
- package/indicators/apo.src.js +8 -9
- package/indicators/aroon-oscillator.js +8 -8
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +8 -9
- package/indicators/aroon.js +7 -7
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +7 -7
- package/indicators/atr.js +4 -4
- package/indicators/atr.js.map +1 -1
- package/indicators/atr.src.js +6 -14
- package/indicators/bollinger-bands.js +8 -8
- package/indicators/bollinger-bands.js.map +1 -1
- package/indicators/bollinger-bands.src.js +8 -8
- package/indicators/cci.js +4 -4
- package/indicators/cci.js.map +1 -1
- package/indicators/cci.src.js +5 -5
- package/indicators/chaikin.js +6 -6
- package/indicators/chaikin.js.map +1 -1
- package/indicators/chaikin.src.js +75 -75
- package/indicators/cmf.js +4 -4
- package/indicators/cmf.js.map +1 -1
- package/indicators/cmf.src.js +4 -4
- package/indicators/dema.js +5 -5
- package/indicators/dema.js.map +1 -1
- package/indicators/dema.src.js +8 -9
- package/indicators/dpo.js +4 -4
- package/indicators/dpo.js.map +1 -1
- package/indicators/dpo.src.js +5 -5
- package/indicators/ema.js +4 -4
- package/indicators/ema.js.map +1 -1
- package/indicators/ema.src.js +4 -5
- package/indicators/ichimoku-kinko-hyo.js +13 -13
- package/indicators/ichimoku-kinko-hyo.js.map +1 -1
- package/indicators/ichimoku-kinko-hyo.src.js +21 -20
- package/indicators/indicators-all.js +119 -118
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +231 -240
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +9 -9
- package/indicators/keltner-channels.js +8 -8
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +13 -10
- package/indicators/macd.js +10 -10
- package/indicators/macd.js.map +1 -1
- package/indicators/macd.src.js +8 -7
- package/indicators/mfi.js +4 -4
- package/indicators/mfi.js.map +1 -1
- package/indicators/mfi.src.js +5 -5
- package/indicators/momentum.js +4 -4
- package/indicators/momentum.js.map +1 -1
- package/indicators/momentum.src.js +5 -5
- package/indicators/natr.js +3 -3
- package/indicators/natr.js.map +1 -1
- package/indicators/natr.src.js +5 -5
- package/indicators/pivot-points.js +8 -8
- package/indicators/pivot-points.js.map +1 -1
- package/indicators/pivot-points.src.js +6 -6
- package/indicators/ppo.js +5 -5
- package/indicators/ppo.js.map +1 -1
- package/indicators/ppo.src.js +8 -9
- package/indicators/price-channel.js +8 -8
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +66 -66
- package/indicators/price-envelopes.js +6 -6
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +6 -6
- package/indicators/psar.js +3 -3
- package/indicators/psar.js.map +1 -1
- package/indicators/psar.src.js +4 -4
- package/indicators/regressions.js +6 -6
- package/indicators/regressions.js.map +1 -1
- package/indicators/regressions.src.js +8 -8
- package/indicators/roc.js +3 -3
- package/indicators/roc.js.map +1 -1
- package/indicators/roc.src.js +5 -5
- package/indicators/rsi.js +4 -4
- package/indicators/rsi.js.map +1 -1
- package/indicators/rsi.src.js +5 -5
- package/indicators/slow-stochastic.js +5 -5
- package/indicators/slow-stochastic.js.map +1 -1
- package/indicators/slow-stochastic.src.js +7 -7
- package/indicators/stochastic.js +9 -9
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +67 -67
- package/indicators/supertrend.js +9 -9
- package/indicators/supertrend.js.map +1 -1
- package/indicators/supertrend.src.js +9 -7
- package/indicators/tema.js +6 -6
- package/indicators/tema.js.map +1 -1
- package/indicators/tema.src.js +8 -9
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.js.map +1 -1
- package/indicators/trendline.src.js +5 -5
- package/indicators/trix.js +4 -4
- package/indicators/trix.js.map +1 -1
- package/indicators/trix.src.js +8 -8
- package/indicators/volume-by-price.js +13 -13
- package/indicators/volume-by-price.js.map +1 -1
- package/indicators/volume-by-price.src.js +7 -8
- package/indicators/vwap.js +4 -4
- package/indicators/vwap.js.map +1 -1
- package/indicators/vwap.src.js +5 -5
- package/indicators/williams-r.js +4 -4
- package/indicators/williams-r.js.map +1 -1
- package/indicators/williams-r.src.js +7 -7
- package/indicators/wma.js +4 -4
- package/indicators/wma.js.map +1 -1
- package/indicators/wma.src.js +5 -5
- package/indicators/zigzag.js +4 -4
- package/indicators/zigzag.js.map +1 -1
- package/indicators/zigzag.src.js +6 -7
- package/modules/accessibility.d.ts +0 -35
- package/modules/accessibility.js +171 -168
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.d.ts +0 -35
- package/modules/accessibility.src.js +369 -252
- package/modules/annotations-advanced.js +158 -136
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +1929 -1263
- package/modules/annotations.js +105 -94
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +1485 -1101
- package/modules/arrow-symbols.js +4 -4
- package/modules/arrow-symbols.js.map +1 -1
- package/modules/arrow-symbols.src.js +10 -12
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +17 -17
- package/modules/boost.d.ts +4 -0
- package/modules/boost.js +77 -64
- package/modules/boost.js.map +1 -1
- package/modules/boost.src.d.ts +4 -0
- package/modules/boost.src.js +581 -33
- package/modules/broken-axis.js +10 -10
- package/modules/broken-axis.js.map +1 -1
- package/modules/broken-axis.src.js +4 -5
- package/modules/bullet.js +6 -6
- package/modules/bullet.js.map +1 -1
- package/modules/bullet.src.js +8 -8
- package/modules/coloraxis.js +22 -21
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +67 -59
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -5
- package/modules/cylinder.js +8 -8
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +21 -23
- package/modules/data.d.ts +2 -2
- package/modules/data.js +32 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +26 -25
- package/modules/datagrouping.js +17 -17
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +6 -7
- package/modules/debugger.js +5 -5
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +13 -8
- package/modules/dependency-wheel.js +8 -8
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +10 -10
- package/modules/dotplot.js +5 -5
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +6 -14
- package/modules/drag-panes.js +10 -10
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +4 -6
- package/modules/draggable-points.js +33 -33
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +22 -35
- package/modules/drilldown.d.ts +1 -1
- package/modules/drilldown.js +23 -22
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.d.ts +1 -1
- package/modules/drilldown.src.js +66 -53
- package/modules/dumbbell.d.ts +4 -0
- package/modules/dumbbell.js +24 -9
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.d.ts +4 -0
- package/modules/dumbbell.src.js +1029 -104
- package/modules/export-data.d.ts +4 -29
- package/modules/export-data.js +21 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.d.ts +4 -29
- package/modules/export-data.src.js +155 -189
- package/modules/exporting.d.ts +2 -0
- package/modules/exporting.js +33 -33
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.d.ts +2 -0
- package/modules/exporting.src.js +40 -30
- package/modules/full-screen.js +7 -7
- package/modules/full-screen.js.map +1 -1
- package/modules/full-screen.src.js +4 -3
- package/modules/funnel.js +9 -9
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +14 -15
- package/modules/funnel3d.js +17 -17
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +12 -14
- package/modules/gantt.js +194 -183
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +2071 -1260
- package/modules/grid-axis.js +22 -19
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +149 -43
- package/modules/heatmap.js +33 -32
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +130 -114
- package/modules/histogram-bellcurve.js +10 -10
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +57 -16
- package/modules/item-series.js +9 -9
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +20 -13
- package/modules/lollipop.d.ts +20 -1
- package/modules/lollipop.js +26 -4
- package/modules/lollipop.js.map +1 -1
- package/modules/lollipop.src.d.ts +20 -1
- package/modules/lollipop.src.js +1452 -10
- package/modules/map.d.ts +2 -2
- package/modules/map.js +99 -98
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +2 -2
- package/modules/map.src.js +1442 -1326
- package/modules/marker-clusters.js +35 -36
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +31 -51
- package/modules/networkgraph.js +47 -46
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +98 -81
- 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 +17 -13
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +63 -46
- package/modules/oldie-polyfills.js +6 -6
- package/modules/oldie-polyfills.js.map +1 -1
- package/modules/oldie-polyfills.src.js +7 -2
- package/modules/oldie.js +52 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +1411 -34
- package/modules/organization.js +11 -11
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +7 -6
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +11 -11
- package/modules/parallel-coordinates.js.map +1 -1
- package/modules/parallel-coordinates.src.js +144 -136
- package/modules/pareto.js +5 -5
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +8 -9
- package/modules/pathfinder.js +31 -27
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +1589 -985
- package/modules/pattern-fill.js +13 -13
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +25 -21
- package/modules/price-indicator.js +4 -4
- package/modules/price-indicator.js.map +1 -1
- package/modules/price-indicator.src.js +5 -3
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +4 -5
- package/modules/sankey.js +25 -26
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +39 -36
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +17 -17
- package/modules/solid-gauge.js +8 -8
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +123 -91
- package/modules/sonification.d.ts +33 -16
- package/modules/sonification.js +55 -49
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.d.ts +33 -16
- package/modules/sonification.src.js +361 -115
- package/modules/static-scale.js +4 -4
- package/modules/static-scale.js.map +1 -1
- package/modules/static-scale.src.js +3 -4
- package/modules/stock-tools.d.ts +23 -1
- package/modules/stock-tools.js +150 -84
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.d.ts +23 -1
- package/modules/stock-tools.src.js +3792 -44
- package/modules/stock.js +161 -158
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +456 -412
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +42 -5
- package/modules/sunburst.js +51 -49
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +152 -52
- package/modules/tilemap.js +14 -14
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +12 -11
- package/modules/timeline.js +14 -14
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +19 -18
- package/modules/treegrid.js +57 -52
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +236 -60
- package/modules/treemap.js +35 -34
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +213 -118
- package/modules/variable-pie.js +8 -8
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +12 -10
- package/modules/variwide.js +8 -8
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +8 -8
- package/modules/vector.js +6 -6
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +9 -9
- package/modules/venn.js +26 -26
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +49 -37
- package/modules/windbarb.js +11 -11
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +11 -12
- package/modules/wordcloud.js +19 -19
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +26 -18
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +19 -20
- package/package.json +1 -1
- package/themes/avocado.js +3 -3
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +5 -4
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.js.map +1 -1
- package/themes/dark-blue.src.js +4 -3
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.js.map +1 -1
- package/themes/dark-green.src.js +4 -3
- package/themes/dark-unica.js +7 -7
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +6 -6
- package/themes/gray.js +3 -3
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +5 -4
- package/themes/grid-light.js +4 -4
- package/themes/grid-light.js.map +1 -1
- package/themes/grid-light.src.js +4 -3
- package/themes/grid.js +3 -3
- package/themes/grid.js.map +1 -1
- package/themes/grid.src.js +4 -3
- package/themes/high-contrast-dark.js +6 -6
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +5 -4
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.js.map +1 -1
- package/themes/high-contrast-light.src.js +4 -3
- package/themes/sand-signika.js +5 -5
- package/themes/sand-signika.js.map +1 -1
- package/themes/sand-signika.src.js +4 -3
- package/themes/skies.js +4 -4
- package/themes/skies.js.map +1 -1
- package/themes/skies.src.js +5 -4
- package/themes/sunset.js +3 -3
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +5 -4
- package/es-modules/annotations/controllable/ControllableCircle.js +0 -79
- package/es-modules/annotations/controllable/ControllableImage.js +0 -79
- package/es-modules/annotations/controllable/ControllableRect.js +0 -82
- package/es-modules/annotations/types/InfinityLine.js +0 -110
- package/es-modules/masters/modules/map-parser.src.js +0 -12
- package/es-modules/modules/accessibility/components/InfoRegionsComponent/AnnotationsA11y.js +0 -80
- package/es-modules/modules/accessibility/components/InfoRegionsComponent/InfoRegionsComponent.js +0 -499
- package/es-modules/modules/accessibility/components/SeriesComponent/forcedMarkers.js +0 -147
- package/es-modules/modules/map-parser.src.js +0 -365
- package/es-modules/modules/sonification/options.js +0 -36
- package/es-modules/parts-3d/Chart.js +0 -1577
- package/es-modules/parts-3d/VMLRenderer.js +0 -35
- package/es-modules/parts-gantt/PathfinderAlgorithms.js +0 -656
- package/modules/map-parser.d.ts +0 -17
- package/modules/map-parser.js +0 -17
- package/modules/map-parser.js.map +0 -1
- package/modules/map-parser.src.d.ts +0 -17
- package/modules/map-parser.src.js +0 -421
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Highcharts JS v8.
|
|
2
|
+
* @license Highcharts JS v8.2.2 (2020-10-22)
|
|
3
3
|
*
|
|
4
4
|
* Accessibility module
|
|
5
5
|
*
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
obj[path] = fn.apply(null, args);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
_registerModule(_modules, '
|
|
32
|
+
_registerModule(_modules, 'Accessibility/Utils/HTMLUtilities.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (H, U) {
|
|
33
33
|
/* *
|
|
34
34
|
*
|
|
35
35
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
42
42
|
*
|
|
43
43
|
* */
|
|
44
|
+
var doc = H.doc,
|
|
45
|
+
win = H.win;
|
|
44
46
|
var merge = U.merge;
|
|
45
|
-
var win = H.win,
|
|
46
|
-
doc = win.document;
|
|
47
47
|
/* eslint-disable valid-jsdoc */
|
|
48
48
|
/**
|
|
49
49
|
* @private
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
|
|
204
204
|
return HTMLUtilities;
|
|
205
205
|
});
|
|
206
|
-
_registerModule(_modules, '
|
|
206
|
+
_registerModule(_modules, 'Accessibility/Utils/ChartUtilities.js', [_modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Core/Utilities.js']], function (HTMLUtilities, U) {
|
|
207
207
|
/* *
|
|
208
208
|
*
|
|
209
209
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -217,7 +217,8 @@
|
|
|
217
217
|
* */
|
|
218
218
|
var stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
|
|
219
219
|
var defined = U.defined,
|
|
220
|
-
find = U.find
|
|
220
|
+
find = U.find,
|
|
221
|
+
fireEvent = U.fireEvent;
|
|
221
222
|
/* eslint-disable valid-jsdoc */
|
|
222
223
|
/**
|
|
223
224
|
* @return {string}
|
|
@@ -248,10 +249,12 @@
|
|
|
248
249
|
* The DOM element for the point.
|
|
249
250
|
*/
|
|
250
251
|
function getSeriesFirstPointElement(series) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
252
|
+
var _a,
|
|
253
|
+
_b;
|
|
254
|
+
if ((_a = series.points) === null || _a === void 0 ? void 0 : _a.length) {
|
|
255
|
+
var firstPointWithGraphic = find(series.points,
|
|
256
|
+
function (p) { return !!p.graphic; });
|
|
257
|
+
return (_b = firstPointWithGraphic === null || firstPointWithGraphic === void 0 ? void 0 : firstPointWithGraphic.graphic) === null || _b === void 0 ? void 0 : _b.element;
|
|
255
258
|
}
|
|
256
259
|
}
|
|
257
260
|
/**
|
|
@@ -275,7 +278,6 @@
|
|
|
275
278
|
* @private
|
|
276
279
|
* @param {Highcharts.Chart} chart
|
|
277
280
|
* @param {Highcharts.HTMLDOMElement|Highcharts.SVGDOMElement} element
|
|
278
|
-
* @return {void}
|
|
279
281
|
*/
|
|
280
282
|
function unhideChartElementFromAT(chart, element) {
|
|
281
283
|
element.setAttribute('aria-hidden', false);
|
|
@@ -372,7 +374,7 @@
|
|
|
372
374
|
var pos = getRelativePointAxisPosition(axis,
|
|
373
375
|
point);
|
|
374
376
|
scrollbar.updatePosition(pos - range / 2, pos + range / 2);
|
|
375
|
-
|
|
377
|
+
fireEvent(scrollbar, 'changed', {
|
|
376
378
|
from: scrollbar.from,
|
|
377
379
|
to: scrollbar.to,
|
|
378
380
|
trigger: 'scrollbar',
|
|
@@ -394,7 +396,7 @@
|
|
|
394
396
|
|
|
395
397
|
return ChartUtilities;
|
|
396
398
|
});
|
|
397
|
-
_registerModule(_modules, '
|
|
399
|
+
_registerModule(_modules, 'Accessibility/KeyboardNavigationHandler.js', [_modules['Core/Utilities.js']], function (U) {
|
|
398
400
|
/* *
|
|
399
401
|
*
|
|
400
402
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -497,107 +499,107 @@
|
|
|
497
499
|
|
|
498
500
|
return KeyboardNavigationHandler;
|
|
499
501
|
});
|
|
500
|
-
_registerModule(_modules, '
|
|
502
|
+
_registerModule(_modules, 'Accessibility/Utils/DOMElementProvider.js', [_modules['Core/Globals.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Core/Utilities.js']], function (H, HTMLUtilities, U) {
|
|
501
503
|
/* *
|
|
502
504
|
*
|
|
503
505
|
* (c) 2009-2020 Øystein Moseng
|
|
504
506
|
*
|
|
505
|
-
* Class that can keep track of
|
|
507
|
+
* Class that can keep track of elements added to DOM and clean them up on
|
|
508
|
+
* destroy.
|
|
506
509
|
*
|
|
507
510
|
* License: www.highcharts.com/license
|
|
508
511
|
*
|
|
509
512
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
510
513
|
*
|
|
511
514
|
* */
|
|
512
|
-
var
|
|
513
|
-
|
|
515
|
+
var doc = H.doc;
|
|
516
|
+
var removeElement = HTMLUtilities.removeElement;
|
|
517
|
+
var extend = U.extend;
|
|
514
518
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
515
519
|
/**
|
|
516
520
|
* @private
|
|
517
521
|
* @class
|
|
518
522
|
*/
|
|
519
|
-
var
|
|
520
|
-
this.
|
|
523
|
+
var DOMElementProvider = function () {
|
|
524
|
+
this.elements = [];
|
|
521
525
|
};
|
|
522
|
-
extend(
|
|
526
|
+
extend(DOMElementProvider.prototype, {
|
|
523
527
|
/**
|
|
524
|
-
*
|
|
525
|
-
* Same args as
|
|
528
|
+
* Create an element and keep track of it for later removal.
|
|
529
|
+
* Same args as document.createElement
|
|
526
530
|
* @private
|
|
527
|
-
* @return {Function}
|
|
528
531
|
*/
|
|
529
|
-
|
|
530
|
-
var
|
|
532
|
+
createElement: function () {
|
|
533
|
+
var el = doc.createElement.apply(doc,
|
|
531
534
|
arguments);
|
|
532
|
-
this.
|
|
533
|
-
return
|
|
535
|
+
this.elements.push(el);
|
|
536
|
+
return el;
|
|
534
537
|
},
|
|
535
538
|
/**
|
|
536
|
-
*
|
|
539
|
+
* Destroy all created elements, removing them from the DOM.
|
|
537
540
|
* @private
|
|
538
|
-
* @return {void}
|
|
539
541
|
*/
|
|
540
|
-
|
|
541
|
-
this.
|
|
542
|
-
|
|
542
|
+
destroyCreatedElements: function () {
|
|
543
|
+
this.elements.forEach(function (element) {
|
|
544
|
+
removeElement(element);
|
|
543
545
|
});
|
|
544
|
-
this.
|
|
546
|
+
this.elements = [];
|
|
545
547
|
}
|
|
546
548
|
});
|
|
547
549
|
|
|
548
|
-
return
|
|
550
|
+
return DOMElementProvider;
|
|
549
551
|
});
|
|
550
|
-
_registerModule(_modules, '
|
|
552
|
+
_registerModule(_modules, 'Accessibility/Utils/EventProvider.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (H, U) {
|
|
551
553
|
/* *
|
|
552
554
|
*
|
|
553
555
|
* (c) 2009-2020 Øystein Moseng
|
|
554
556
|
*
|
|
555
|
-
* Class that can keep track of
|
|
556
|
-
* destroy.
|
|
557
|
+
* Class that can keep track of events added, and clean them up on destroy.
|
|
557
558
|
*
|
|
558
559
|
* License: www.highcharts.com/license
|
|
559
560
|
*
|
|
560
561
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
561
562
|
*
|
|
562
563
|
* */
|
|
563
|
-
var
|
|
564
|
-
|
|
565
|
-
var removeElement = HTMLUtilities.removeElement;
|
|
564
|
+
var addEvent = U.addEvent,
|
|
565
|
+
extend = U.extend;
|
|
566
566
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
567
567
|
/**
|
|
568
568
|
* @private
|
|
569
569
|
* @class
|
|
570
570
|
*/
|
|
571
|
-
var
|
|
572
|
-
this.
|
|
571
|
+
var EventProvider = function () {
|
|
572
|
+
this.eventRemovers = [];
|
|
573
573
|
};
|
|
574
|
-
extend(
|
|
574
|
+
extend(EventProvider.prototype, {
|
|
575
575
|
/**
|
|
576
|
-
*
|
|
577
|
-
* Same args as
|
|
576
|
+
* Add an event to an element and keep track of it for later removal.
|
|
577
|
+
* Same args as Highcharts.addEvent.
|
|
578
578
|
* @private
|
|
579
|
+
* @return {Function}
|
|
579
580
|
*/
|
|
580
|
-
|
|
581
|
-
var
|
|
581
|
+
addEvent: function () {
|
|
582
|
+
var remover = addEvent.apply(H,
|
|
582
583
|
arguments);
|
|
583
|
-
this.
|
|
584
|
-
return
|
|
584
|
+
this.eventRemovers.push(remover);
|
|
585
|
+
return remover;
|
|
585
586
|
},
|
|
586
587
|
/**
|
|
587
|
-
*
|
|
588
|
+
* Remove all added events.
|
|
588
589
|
* @private
|
|
590
|
+
* @return {void}
|
|
589
591
|
*/
|
|
590
|
-
|
|
591
|
-
this.
|
|
592
|
-
|
|
592
|
+
removeAddedEvents: function () {
|
|
593
|
+
this.eventRemovers.forEach(function (remover) {
|
|
594
|
+
remover();
|
|
593
595
|
});
|
|
594
|
-
this.
|
|
596
|
+
this.eventRemovers = [];
|
|
595
597
|
}
|
|
596
598
|
});
|
|
597
599
|
|
|
598
|
-
return
|
|
600
|
+
return EventProvider;
|
|
599
601
|
});
|
|
600
|
-
_registerModule(_modules, '
|
|
602
|
+
_registerModule(_modules, 'Accessibility/AccessibilityComponent.js', [_modules['Accessibility/Utils/ChartUtilities.js'], _modules['Accessibility/Utils/DOMElementProvider.js'], _modules['Accessibility/Utils/EventProvider.js'], _modules['Core/Globals.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Core/Utilities.js']], function (ChartUtilities, DOMElementProvider, EventProvider, H, HTMLUtilities, U) {
|
|
601
603
|
/* *
|
|
602
604
|
*
|
|
603
605
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -609,14 +611,14 @@
|
|
|
609
611
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
610
612
|
*
|
|
611
613
|
* */
|
|
612
|
-
var
|
|
613
|
-
|
|
614
|
+
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
615
|
+
var doc = H.doc,
|
|
616
|
+
win = H.win;
|
|
617
|
+
var removeElement = HTMLUtilities.removeElement,
|
|
618
|
+
getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
|
|
614
619
|
var extend = U.extend,
|
|
615
620
|
fireEvent = U.fireEvent,
|
|
616
621
|
merge = U.merge;
|
|
617
|
-
var removeElement = HTMLUtilities.removeElement,
|
|
618
|
-
getFakeMouseEvent = HTMLUtilities.getFakeMouseEvent;
|
|
619
|
-
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
620
622
|
/* eslint-disable valid-jsdoc */
|
|
621
623
|
/** @lends Highcharts.AccessibilityComponent */
|
|
622
624
|
var functionsToOverrideByDerivedClasses = {
|
|
@@ -802,8 +804,7 @@
|
|
|
802
804
|
attrs = merge({
|
|
803
805
|
'aria-label': svgEl.getAttribute('aria-label')
|
|
804
806
|
},
|
|
805
|
-
attributes)
|
|
806
|
-
bBox = this.getElementPosition(posElement || svgElement);
|
|
807
|
+
attributes);
|
|
807
808
|
Object.keys(attrs).forEach(function (prop) {
|
|
808
809
|
if (attrs[prop] !== null) {
|
|
809
810
|
proxy.setAttribute(prop, attrs[prop]);
|
|
@@ -813,7 +814,8 @@
|
|
|
813
814
|
if (preClickEvent) {
|
|
814
815
|
this.addEvent(proxy, 'click', preClickEvent);
|
|
815
816
|
}
|
|
816
|
-
this.setProxyButtonStyle(proxy
|
|
817
|
+
this.setProxyButtonStyle(proxy);
|
|
818
|
+
this.updateProxyButtonPosition(proxy, posElement || svgElement);
|
|
817
819
|
this.proxyMouseEventsForButton(svgEl, proxy);
|
|
818
820
|
// Add to chart div and unhide from screen readers
|
|
819
821
|
parentGroup.appendChild(proxy);
|
|
@@ -847,10 +849,9 @@
|
|
|
847
849
|
},
|
|
848
850
|
/**
|
|
849
851
|
* @private
|
|
850
|
-
* @param {Highcharts.HTMLElement} button
|
|
851
|
-
* @param {Highcharts.BBoxObject} bBox
|
|
852
|
+
* @param {Highcharts.HTMLElement} button The proxy element.
|
|
852
853
|
*/
|
|
853
|
-
setProxyButtonStyle: function (button
|
|
854
|
+
setProxyButtonStyle: function (button) {
|
|
854
855
|
merge(true, button.style, {
|
|
855
856
|
'border-width': 0,
|
|
856
857
|
'background-color': 'transparent',
|
|
@@ -864,7 +865,17 @@
|
|
|
864
865
|
padding: 0,
|
|
865
866
|
margin: 0,
|
|
866
867
|
display: 'block',
|
|
867
|
-
position: 'absolute'
|
|
868
|
+
position: 'absolute'
|
|
869
|
+
});
|
|
870
|
+
},
|
|
871
|
+
/**
|
|
872
|
+
* @private
|
|
873
|
+
* @param {Highcharts.HTMLElement} proxy The proxy to update position of.
|
|
874
|
+
* @param {Highcharts.SVGElement} posElement The element to overlay and take position from.
|
|
875
|
+
*/
|
|
876
|
+
updateProxyButtonPosition: function (proxy, posElement) {
|
|
877
|
+
var bBox = this.getElementPosition(posElement);
|
|
878
|
+
merge(true, proxy.style, {
|
|
868
879
|
width: (bBox.width || 1) + 'px',
|
|
869
880
|
height: (bBox.height || 1) + 'px',
|
|
870
881
|
left: (bBox.x || 0) + 'px',
|
|
@@ -883,8 +894,11 @@
|
|
|
883
894
|
'click', 'touchstart', 'touchend', 'touchcancel', 'touchmove',
|
|
884
895
|
'mouseover', 'mouseenter', 'mouseleave', 'mouseout'
|
|
885
896
|
].forEach(function (evtType) {
|
|
897
|
+
var isTouchEvent = evtType.indexOf('touch') === 0;
|
|
886
898
|
component.addEvent(button, evtType, function (e) {
|
|
887
|
-
var clonedEvent =
|
|
899
|
+
var clonedEvent = isTouchEvent ?
|
|
900
|
+
component.cloneTouchEvent(e) :
|
|
901
|
+
component.cloneMouseEvent(e);
|
|
888
902
|
if (source) {
|
|
889
903
|
component.fireEventOnWrappedOrUnwrappedElement(source, clonedEvent);
|
|
890
904
|
}
|
|
@@ -914,6 +928,50 @@
|
|
|
914
928
|
}
|
|
915
929
|
return getFakeMouseEvent(e.type);
|
|
916
930
|
},
|
|
931
|
+
/**
|
|
932
|
+
* Utility function to clone a touch event for re-dispatching.
|
|
933
|
+
* @private
|
|
934
|
+
* @param {global.TouchEvent} e The event to clone.
|
|
935
|
+
* @return {global.TouchEvent} The cloned event
|
|
936
|
+
*/
|
|
937
|
+
cloneTouchEvent: function (e) {
|
|
938
|
+
var touchListToTouchArray = function (l) {
|
|
939
|
+
var touchArray = [];
|
|
940
|
+
for (var i = 0; i < l.length; ++i) {
|
|
941
|
+
var item = l.item(i);
|
|
942
|
+
if (item) {
|
|
943
|
+
touchArray.push(item);
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
return touchArray;
|
|
947
|
+
};
|
|
948
|
+
if (typeof win.TouchEvent === 'function') {
|
|
949
|
+
var newEvent = new win.TouchEvent(e.type, {
|
|
950
|
+
touches: touchListToTouchArray(e.touches),
|
|
951
|
+
targetTouches: touchListToTouchArray(e.targetTouches),
|
|
952
|
+
changedTouches: touchListToTouchArray(e.changedTouches),
|
|
953
|
+
ctrlKey: e.ctrlKey,
|
|
954
|
+
shiftKey: e.shiftKey,
|
|
955
|
+
altKey: e.altKey,
|
|
956
|
+
metaKey: e.metaKey,
|
|
957
|
+
bubbles: e.bubbles,
|
|
958
|
+
cancelable: e.cancelable,
|
|
959
|
+
composed: e.composed,
|
|
960
|
+
detail: e.detail,
|
|
961
|
+
view: e.view
|
|
962
|
+
});
|
|
963
|
+
if (e.defaultPrevented) {
|
|
964
|
+
newEvent.preventDefault();
|
|
965
|
+
}
|
|
966
|
+
return newEvent;
|
|
967
|
+
}
|
|
968
|
+
// Fallback to mouse event
|
|
969
|
+
var fakeEvt = this.cloneMouseEvent(e);
|
|
970
|
+
fakeEvt.touches = e.touches;
|
|
971
|
+
fakeEvt.changedTouches = e.changedTouches;
|
|
972
|
+
fakeEvt.targetTouches = e.targetTouches;
|
|
973
|
+
return fakeEvt;
|
|
974
|
+
},
|
|
917
975
|
/**
|
|
918
976
|
* Remove traces of the component.
|
|
919
977
|
* @private
|
|
@@ -928,7 +986,7 @@
|
|
|
928
986
|
|
|
929
987
|
return AccessibilityComponent;
|
|
930
988
|
});
|
|
931
|
-
_registerModule(_modules, '
|
|
989
|
+
_registerModule(_modules, 'Accessibility/KeyboardNavigation.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Accessibility/Utils/EventProvider.js']], function (H, U, HTMLUtilities, EventProvider) {
|
|
932
990
|
/* *
|
|
933
991
|
*
|
|
934
992
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -940,8 +998,8 @@
|
|
|
940
998
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
941
999
|
*
|
|
942
1000
|
* */
|
|
943
|
-
var
|
|
944
|
-
|
|
1001
|
+
var doc = H.doc,
|
|
1002
|
+
win = H.win;
|
|
945
1003
|
var addEvent = U.addEvent,
|
|
946
1004
|
fireEvent = U.fireEvent;
|
|
947
1005
|
var getElement = HTMLUtilities.getElement;
|
|
@@ -1004,11 +1062,17 @@
|
|
|
1004
1062
|
this.components = components;
|
|
1005
1063
|
this.modules = [];
|
|
1006
1064
|
this.currentModuleIx = 0;
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
ep.addEvent(
|
|
1010
|
-
ep.addEvent(
|
|
1011
|
-
|
|
1065
|
+
// Run an update to get all modules
|
|
1066
|
+
this.update();
|
|
1067
|
+
ep.addEvent(this.tabindexContainer, 'keydown', function (e) { return _this.onKeydown(e); });
|
|
1068
|
+
ep.addEvent(this.tabindexContainer, 'focus', function (e) { return _this.onFocus(e); });
|
|
1069
|
+
['mouseup', 'touchend'].forEach(function (eventName) {
|
|
1070
|
+
return ep.addEvent(doc, eventName, function () { return _this.onMouseUp(); });
|
|
1071
|
+
});
|
|
1072
|
+
['mousedown', 'touchstart'].forEach(function (eventName) {
|
|
1073
|
+
return ep.addEvent(chart.renderTo, eventName, function () {
|
|
1074
|
+
_this.isClickingChart = true;
|
|
1075
|
+
});
|
|
1012
1076
|
});
|
|
1013
1077
|
ep.addEvent(chart.renderTo, 'mouseover', function () {
|
|
1014
1078
|
_this.pointerIsOverChart = true;
|
|
@@ -1016,8 +1080,6 @@
|
|
|
1016
1080
|
ep.addEvent(chart.renderTo, 'mouseout', function () {
|
|
1017
1081
|
_this.pointerIsOverChart = false;
|
|
1018
1082
|
});
|
|
1019
|
-
// Run an update to get all modules
|
|
1020
|
-
this.update();
|
|
1021
1083
|
// Init first module
|
|
1022
1084
|
if (this.modules.length) {
|
|
1023
1085
|
this.modules[0].init(1);
|
|
@@ -1167,7 +1229,7 @@
|
|
|
1167
1229
|
this.exitAnchor.focus();
|
|
1168
1230
|
}
|
|
1169
1231
|
else {
|
|
1170
|
-
this.
|
|
1232
|
+
this.tabindexContainer.focus();
|
|
1171
1233
|
}
|
|
1172
1234
|
return false;
|
|
1173
1235
|
},
|
|
@@ -1198,21 +1260,32 @@
|
|
|
1198
1260
|
var a11yOptions = this.chart.options.accessibility,
|
|
1199
1261
|
keyboardOptions = a11yOptions && a11yOptions.keyboardNavigation,
|
|
1200
1262
|
shouldHaveTabindex = !(keyboardOptions && keyboardOptions.enabled === false),
|
|
1201
|
-
|
|
1202
|
-
|
|
1263
|
+
chart = this.chart,
|
|
1264
|
+
container = chart.container;
|
|
1265
|
+
var tabindexContainer;
|
|
1266
|
+
if (chart.renderTo.hasAttribute('tabindex')) {
|
|
1267
|
+
container.removeAttribute('tabindex');
|
|
1268
|
+
tabindexContainer = chart.renderTo;
|
|
1269
|
+
}
|
|
1270
|
+
else {
|
|
1271
|
+
tabindexContainer = container;
|
|
1272
|
+
}
|
|
1273
|
+
this.tabindexContainer = tabindexContainer;
|
|
1274
|
+
var curTabindex = tabindexContainer.getAttribute('tabindex');
|
|
1203
1275
|
if (shouldHaveTabindex && !curTabindex) {
|
|
1204
|
-
|
|
1276
|
+
tabindexContainer.setAttribute('tabindex', '0');
|
|
1205
1277
|
}
|
|
1206
|
-
else if (!shouldHaveTabindex
|
|
1207
|
-
container.removeAttribute('tabindex');
|
|
1278
|
+
else if (!shouldHaveTabindex) {
|
|
1279
|
+
chart.container.removeAttribute('tabindex');
|
|
1208
1280
|
}
|
|
1209
1281
|
},
|
|
1210
1282
|
/**
|
|
1211
1283
|
* @private
|
|
1212
1284
|
*/
|
|
1213
1285
|
makeElementAnExitAnchor: function (el) {
|
|
1286
|
+
var chartTabindex = this.tabindexContainer.getAttribute('tabindex') || 0;
|
|
1214
1287
|
el.setAttribute('class', 'highcharts-exit-anchor');
|
|
1215
|
-
el.setAttribute('tabindex',
|
|
1288
|
+
el.setAttribute('tabindex', chartTabindex);
|
|
1216
1289
|
el.setAttribute('aria-hidden', false);
|
|
1217
1290
|
// Handle focus
|
|
1218
1291
|
this.addExitAnchorEventsToEl(el);
|
|
@@ -1251,7 +1324,7 @@
|
|
|
1251
1324
|
chart.container.contains(e.relatedTarget)),
|
|
1252
1325
|
comingInBackwards = !(focusComesFromChart || keyboardNavigation.exiting);
|
|
1253
1326
|
if (comingInBackwards) {
|
|
1254
|
-
|
|
1327
|
+
keyboardNavigation.tabindexContainer.focus();
|
|
1255
1328
|
e.preventDefault();
|
|
1256
1329
|
// Move to last valid keyboard nav module
|
|
1257
1330
|
// Note the we don't run it, just set the index
|
|
@@ -1285,15 +1358,13 @@
|
|
|
1285
1358
|
destroy: function () {
|
|
1286
1359
|
this.removeExitAnchor();
|
|
1287
1360
|
this.eventProvider.removeAddedEvents();
|
|
1288
|
-
|
|
1289
|
-
this.chart.container.removeAttribute('tabindex');
|
|
1290
|
-
}
|
|
1361
|
+
this.chart.container.removeAttribute('tabindex');
|
|
1291
1362
|
}
|
|
1292
1363
|
};
|
|
1293
1364
|
|
|
1294
1365
|
return KeyboardNavigation;
|
|
1295
1366
|
});
|
|
1296
|
-
_registerModule(_modules, '
|
|
1367
|
+
_registerModule(_modules, 'Accessibility/Components/LegendComponent.js', [_modules['Core/Globals.js'], _modules['Core/Legend.js'], _modules['Core/Utilities.js'], _modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/KeyboardNavigationHandler.js'], _modules['Accessibility/Utils/HTMLUtilities.js']], function (H, Legend, U, AccessibilityComponent, KeyboardNavigationHandler, HTMLUtilities) {
|
|
1297
1368
|
/* *
|
|
1298
1369
|
*
|
|
1299
1370
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -1307,6 +1378,7 @@
|
|
|
1307
1378
|
* */
|
|
1308
1379
|
var addEvent = U.addEvent,
|
|
1309
1380
|
extend = U.extend,
|
|
1381
|
+
find = U.find,
|
|
1310
1382
|
fireEvent = U.fireEvent;
|
|
1311
1383
|
var stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString,
|
|
1312
1384
|
removeElement = HTMLUtilities.removeElement;
|
|
@@ -1380,9 +1452,20 @@
|
|
|
1380
1452
|
*/
|
|
1381
1453
|
init: function () {
|
|
1382
1454
|
var component = this;
|
|
1455
|
+
this.proxyElementsList = [];
|
|
1456
|
+
this.recreateProxies();
|
|
1457
|
+
// Note: Chart could create legend dynamically, so events can not be
|
|
1458
|
+
// tied to the component's chart's current legend.
|
|
1383
1459
|
this.addEvent(Legend, 'afterScroll', function () {
|
|
1384
1460
|
if (this.chart === component.chart) {
|
|
1385
|
-
component.
|
|
1461
|
+
component.updateProxiesPositions();
|
|
1462
|
+
component.updateLegendItemProxyVisibility();
|
|
1463
|
+
this.chart.highlightLegendItem(component.highlightedLegendItemIx);
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
this.addEvent(Legend, 'afterPositionItem', function (e) {
|
|
1467
|
+
if (this.chart === component.chart && this.chart.renderer) {
|
|
1468
|
+
component.updateProxyPositionForItem(e.item);
|
|
1386
1469
|
}
|
|
1387
1470
|
});
|
|
1388
1471
|
},
|
|
@@ -1410,26 +1493,52 @@
|
|
|
1410
1493
|
* of the proxy overlays.
|
|
1411
1494
|
*/
|
|
1412
1495
|
onChartRender: function () {
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
return;
|
|
1496
|
+
if (shouldDoLegendA11y(this.chart)) {
|
|
1497
|
+
this.updateProxiesPositions();
|
|
1498
|
+
}
|
|
1499
|
+
else {
|
|
1500
|
+
this.removeProxies();
|
|
1419
1501
|
}
|
|
1420
|
-
this.updateProxies();
|
|
1421
1502
|
},
|
|
1422
1503
|
/**
|
|
1423
1504
|
* @private
|
|
1424
1505
|
*/
|
|
1425
|
-
|
|
1426
|
-
|
|
1506
|
+
updateProxiesPositions: function () {
|
|
1507
|
+
for (var _i = 0, _a = this.proxyElementsList; _i < _a.length; _i++) {
|
|
1508
|
+
var _b = _a[_i],
|
|
1509
|
+
element = _b.element,
|
|
1510
|
+
posElement = _b.posElement;
|
|
1511
|
+
this.updateProxyButtonPosition(element, posElement);
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
/**
|
|
1515
|
+
* @private
|
|
1516
|
+
*/
|
|
1517
|
+
updateProxyPositionForItem: function (item) {
|
|
1518
|
+
var proxyRef = find(this.proxyElementsList,
|
|
1519
|
+
function (ref) { return ref.item === item; });
|
|
1520
|
+
if (proxyRef) {
|
|
1521
|
+
this.updateProxyButtonPosition(proxyRef.element, proxyRef.posElement);
|
|
1522
|
+
}
|
|
1523
|
+
},
|
|
1524
|
+
/**
|
|
1525
|
+
* @private
|
|
1526
|
+
*/
|
|
1527
|
+
recreateProxies: function () {
|
|
1528
|
+
this.removeProxies();
|
|
1427
1529
|
if (shouldDoLegendA11y(this.chart)) {
|
|
1428
1530
|
this.addLegendProxyGroup();
|
|
1429
1531
|
this.proxyLegendItems();
|
|
1430
1532
|
this.updateLegendItemProxyVisibility();
|
|
1431
1533
|
}
|
|
1432
1534
|
},
|
|
1535
|
+
/**
|
|
1536
|
+
* @private
|
|
1537
|
+
*/
|
|
1538
|
+
removeProxies: function () {
|
|
1539
|
+
removeElement(this.legendProxyGroup);
|
|
1540
|
+
this.proxyElementsList = [];
|
|
1541
|
+
},
|
|
1433
1542
|
/**
|
|
1434
1543
|
* @private
|
|
1435
1544
|
*/
|
|
@@ -1456,11 +1565,13 @@
|
|
|
1456
1565
|
},
|
|
1457
1566
|
/**
|
|
1458
1567
|
* @private
|
|
1459
|
-
* @param {Highcharts.BubbleLegend|
|
|
1568
|
+
* @param {Highcharts.BubbleLegend|Point|Highcharts.Series} item
|
|
1460
1569
|
*/
|
|
1461
1570
|
proxyLegendItem: function (item) {
|
|
1462
|
-
|
|
1463
|
-
|
|
1571
|
+
if (!item.legendItem || !item.legendGroup) {
|
|
1572
|
+
return;
|
|
1573
|
+
}
|
|
1574
|
+
var itemLabel = this.chart.langFormat('accessibility.legend.legendItem', {
|
|
1464
1575
|
chart: this.chart,
|
|
1465
1576
|
itemName: stripHTMLTags(item.name)
|
|
1466
1577
|
}),
|
|
@@ -1469,14 +1580,15 @@
|
|
|
1469
1580
|
'aria-pressed': !item.visible,
|
|
1470
1581
|
'aria-label': itemLabel
|
|
1471
1582
|
},
|
|
1472
|
-
//
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1583
|
+
// Considers useHTML
|
|
1584
|
+
proxyPositioningElement = item.legendGroup.div ?
|
|
1585
|
+
item.legendItem : item.legendGroup;
|
|
1586
|
+
item.a11yProxyElement = this.createProxyButton(item.legendItem, this.legendProxyGroup, attribs, proxyPositioningElement);
|
|
1587
|
+
this.proxyElementsList.push({
|
|
1588
|
+
item: item,
|
|
1589
|
+
element: item.a11yProxyElement,
|
|
1590
|
+
posElement: proxyPositioningElement
|
|
1591
|
+
});
|
|
1480
1592
|
},
|
|
1481
1593
|
/**
|
|
1482
1594
|
* Get keyboard navigation handler for this component.
|
|
@@ -1581,7 +1693,7 @@
|
|
|
1581
1693
|
|
|
1582
1694
|
return LegendComponent;
|
|
1583
1695
|
});
|
|
1584
|
-
_registerModule(_modules, '
|
|
1696
|
+
_registerModule(_modules, 'Accessibility/Components/MenuComponent.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js'], _modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/KeyboardNavigationHandler.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Accessibility/Utils/HTMLUtilities.js']], function (H, U, AccessibilityComponent, KeyboardNavigationHandler, ChartUtilities, HTMLUtilities) {
|
|
1585
1697
|
/* *
|
|
1586
1698
|
*
|
|
1587
1699
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -1850,13 +1962,6 @@
|
|
|
1850
1962
|
function () {
|
|
1851
1963
|
return component.onKbdClick(this);
|
|
1852
1964
|
}
|
|
1853
|
-
],
|
|
1854
|
-
// ESC handler
|
|
1855
|
-
[
|
|
1856
|
-
[keys.esc],
|
|
1857
|
-
function () {
|
|
1858
|
-
return this.response.prev;
|
|
1859
|
-
}
|
|
1860
1965
|
]
|
|
1861
1966
|
],
|
|
1862
1967
|
// Only run exporting navigation if exporting support exists and is
|
|
@@ -1954,7 +2059,7 @@
|
|
|
1954
2059
|
|
|
1955
2060
|
return MenuComponent;
|
|
1956
2061
|
});
|
|
1957
|
-
_registerModule(_modules, '
|
|
2062
|
+
_registerModule(_modules, 'Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js', [_modules['Core/Series/Series.js'], _modules['Core/Series/CartesianSeries.js'], _modules['Core/Chart/Chart.js'], _modules['Core/Series/Point.js'], _modules['Core/Utilities.js'], _modules['Accessibility/KeyboardNavigationHandler.js'], _modules['Accessibility/Utils/EventProvider.js'], _modules['Accessibility/Utils/ChartUtilities.js']], function (Series, CartesianSeries, Chart, Point, U, KeyboardNavigationHandler, EventProvider, ChartUtilities) {
|
|
1958
2063
|
/* *
|
|
1959
2064
|
*
|
|
1960
2065
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -1966,8 +2071,9 @@
|
|
|
1966
2071
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
1967
2072
|
*
|
|
1968
2073
|
* */
|
|
1969
|
-
var
|
|
1970
|
-
|
|
2074
|
+
var seriesTypes = Series.seriesTypes;
|
|
2075
|
+
var defined = U.defined,
|
|
2076
|
+
extend = U.extend;
|
|
1971
2077
|
var getPointFromXY = ChartUtilities.getPointFromXY,
|
|
1972
2078
|
getSeriesFromName = ChartUtilities.getSeriesFromName,
|
|
1973
2079
|
scrollToPoint = ChartUtilities.scrollToPoint;
|
|
@@ -1976,10 +2082,10 @@
|
|
|
1976
2082
|
* Set for which series types it makes sense to move to the closest point with
|
|
1977
2083
|
* up/down arrows, and which series types should just move to next series.
|
|
1978
2084
|
*/
|
|
1979
|
-
|
|
2085
|
+
CartesianSeries.prototype.keyboardMoveVertical = true;
|
|
1980
2086
|
['column', 'pie'].forEach(function (type) {
|
|
1981
|
-
if (
|
|
1982
|
-
|
|
2087
|
+
if (seriesTypes[type]) {
|
|
2088
|
+
seriesTypes[type].prototype.keyboardMoveVertical = false;
|
|
1983
2089
|
}
|
|
1984
2090
|
});
|
|
1985
2091
|
/**
|
|
@@ -2138,7 +2244,7 @@
|
|
|
2138
2244
|
* Returns highlighted point on success, false on failure (no adjacent
|
|
2139
2245
|
* point to highlight in chosen direction).
|
|
2140
2246
|
*/
|
|
2141
|
-
|
|
2247
|
+
Chart.prototype.highlightAdjacentPoint = function (next) {
|
|
2142
2248
|
var chart = this,
|
|
2143
2249
|
series = chart.series,
|
|
2144
2250
|
curPoint = chart.highlightedPoint,
|
|
@@ -2202,7 +2308,7 @@
|
|
|
2202
2308
|
*
|
|
2203
2309
|
* @return {boolean|Highcharts.Point}
|
|
2204
2310
|
*/
|
|
2205
|
-
|
|
2311
|
+
CartesianSeries.prototype.highlightFirstValidPoint = function () {
|
|
2206
2312
|
var curPoint = this.chart.highlightedPoint,
|
|
2207
2313
|
start = (curPoint && curPoint.series) === this ?
|
|
2208
2314
|
getPointIndex(curPoint) :
|
|
@@ -2234,7 +2340,7 @@
|
|
|
2234
2340
|
*
|
|
2235
2341
|
* @return {Highcharts.Point|boolean}
|
|
2236
2342
|
*/
|
|
2237
|
-
|
|
2343
|
+
Chart.prototype.highlightAdjacentSeries = function (down) {
|
|
2238
2344
|
var chart = this,
|
|
2239
2345
|
newSeries,
|
|
2240
2346
|
newPoint,
|
|
@@ -2287,7 +2393,7 @@
|
|
|
2287
2393
|
*
|
|
2288
2394
|
* @return {Highcharts.Point|boolean}
|
|
2289
2395
|
*/
|
|
2290
|
-
|
|
2396
|
+
Chart.prototype.highlightAdjacentPointVertical = function (down) {
|
|
2291
2397
|
var curPoint = this.highlightedPoint,
|
|
2292
2398
|
minDistance = Infinity,
|
|
2293
2399
|
bestPoint;
|
|
@@ -2385,7 +2491,7 @@
|
|
|
2385
2491
|
var keyboardNavigation = this,
|
|
2386
2492
|
chart = this.chart,
|
|
2387
2493
|
e = this.eventProvider = new EventProvider();
|
|
2388
|
-
e.addEvent(
|
|
2494
|
+
e.addEvent(CartesianSeries, 'destroy', function () {
|
|
2389
2495
|
return keyboardNavigation.onSeriesDestroy(this);
|
|
2390
2496
|
});
|
|
2391
2497
|
e.addEvent(chart, 'afterDrilldown', function () {
|
|
@@ -2438,16 +2544,13 @@
|
|
|
2438
2544
|
inverted = chart.inverted;
|
|
2439
2545
|
return new KeyboardNavigationHandler(chart, {
|
|
2440
2546
|
keyCodeMap: [
|
|
2441
|
-
[inverted ? [keys.up, keys.down] : [keys.left, keys.right],
|
|
2442
|
-
function (keyCode) {
|
|
2547
|
+
[inverted ? [keys.up, keys.down] : [keys.left, keys.right], function (keyCode) {
|
|
2443
2548
|
return keyboardNavigation.onKbdSideways(this, keyCode);
|
|
2444
2549
|
}],
|
|
2445
|
-
[inverted ? [keys.left, keys.right] : [keys.up, keys.down],
|
|
2446
|
-
function (keyCode) {
|
|
2550
|
+
[inverted ? [keys.left, keys.right] : [keys.up, keys.down], function (keyCode) {
|
|
2447
2551
|
return keyboardNavigation.onKbdVertical(this, keyCode);
|
|
2448
2552
|
}],
|
|
2449
|
-
[[keys.enter, keys.space],
|
|
2450
|
-
function () {
|
|
2553
|
+
[[keys.enter, keys.space], function () {
|
|
2451
2554
|
if (chart.highlightedPoint) {
|
|
2452
2555
|
chart.highlightedPoint.firePointEvent('click');
|
|
2453
2556
|
}
|
|
@@ -2573,7 +2676,7 @@
|
|
|
2573
2676
|
|
|
2574
2677
|
return SeriesKeyboardNavigation;
|
|
2575
2678
|
});
|
|
2576
|
-
_registerModule(_modules, '
|
|
2679
|
+
_registerModule(_modules, 'Accessibility/Components/AnnotationsA11y.js', [_modules['Accessibility/Utils/HTMLUtilities.js']], function (HTMLUtilities) {
|
|
2577
2680
|
/* *
|
|
2578
2681
|
*
|
|
2579
2682
|
* (c) 2009-2019 Øystein Moseng
|
|
@@ -2585,7 +2688,6 @@
|
|
|
2585
2688
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
2586
2689
|
*
|
|
2587
2690
|
* */
|
|
2588
|
-
var inArray = U.inArray;
|
|
2589
2691
|
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML,
|
|
2590
2692
|
stripHTMLTagsFromString = HTMLUtilities.stripHTMLTagsFromString;
|
|
2591
2693
|
/**
|
|
@@ -2700,8 +2802,7 @@
|
|
|
2700
2802
|
function getPointAnnotationTexts(point) {
|
|
2701
2803
|
var labels = getChartAnnotationLabels(point.series.chart);
|
|
2702
2804
|
var pointLabels = labels
|
|
2703
|
-
.filter(function (label) { return
|
|
2704
|
-
label.points) > -1; });
|
|
2805
|
+
.filter(function (label) { return label.points.indexOf(point) > -1; });
|
|
2705
2806
|
if (!pointLabels.length) {
|
|
2706
2807
|
return [];
|
|
2707
2808
|
}
|
|
@@ -2716,7 +2817,7 @@
|
|
|
2716
2817
|
|
|
2717
2818
|
return AnnotationsA11y;
|
|
2718
2819
|
});
|
|
2719
|
-
_registerModule(_modules, '
|
|
2820
|
+
_registerModule(_modules, 'Accessibility/Components/SeriesComponent/SeriesDescriber.js', [_modules['Accessibility/Components/AnnotationsA11y.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Core/Tooltip.js'], _modules['Core/Utilities.js']], function (AnnotationsA11y, ChartUtilities, HTMLUtilities, Tooltip, U) {
|
|
2720
2821
|
/* *
|
|
2721
2822
|
*
|
|
2722
2823
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -2728,20 +2829,20 @@
|
|
|
2728
2829
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
2729
2830
|
*
|
|
2730
2831
|
* */
|
|
2832
|
+
var getPointAnnotationTexts = AnnotationsA11y.getPointAnnotationTexts;
|
|
2833
|
+
var getAxisDescription = ChartUtilities.getAxisDescription,
|
|
2834
|
+
getSeriesFirstPointElement = ChartUtilities.getSeriesFirstPointElement,
|
|
2835
|
+
getSeriesA11yElement = ChartUtilities.getSeriesA11yElement,
|
|
2836
|
+
unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
2837
|
+
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML,
|
|
2838
|
+
reverseChildNodes = HTMLUtilities.reverseChildNodes,
|
|
2839
|
+
stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
|
|
2731
2840
|
var find = U.find,
|
|
2732
2841
|
format = U.format,
|
|
2733
2842
|
isNumber = U.isNumber,
|
|
2734
2843
|
numberFormat = U.numberFormat,
|
|
2735
2844
|
pick = U.pick,
|
|
2736
2845
|
defined = U.defined;
|
|
2737
|
-
var getPointAnnotationTexts = AnnotationsA11y.getPointAnnotationTexts;
|
|
2738
|
-
var escapeStringForHTML = HTMLUtilities.escapeStringForHTML,
|
|
2739
|
-
reverseChildNodes = HTMLUtilities.reverseChildNodes,
|
|
2740
|
-
stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
|
|
2741
|
-
var getAxisDescription = ChartUtilities.getAxisDescription,
|
|
2742
|
-
getSeriesFirstPointElement = ChartUtilities.getSeriesFirstPointElement,
|
|
2743
|
-
getSeriesA11yElement = ChartUtilities.getSeriesA11yElement,
|
|
2744
|
-
unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
2745
2846
|
/* eslint-disable valid-jsdoc */
|
|
2746
2847
|
/**
|
|
2747
2848
|
* @private
|
|
@@ -3170,7 +3271,7 @@
|
|
|
3170
3271
|
|
|
3171
3272
|
return SeriesDescriber;
|
|
3172
3273
|
});
|
|
3173
|
-
_registerModule(_modules, '
|
|
3274
|
+
_registerModule(_modules, 'Accessibility/Utils/Announcer.js', [_modules['Core/Globals.js'], _modules['Accessibility/Utils/DOMElementProvider.js'], _modules['Accessibility/Utils/HTMLUtilities.js']], function (H, DOMElementProvider, HTMLUtilities) {
|
|
3174
3275
|
/* *
|
|
3175
3276
|
*
|
|
3176
3277
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -3220,7 +3321,7 @@
|
|
|
3220
3321
|
|
|
3221
3322
|
return Announcer;
|
|
3222
3323
|
});
|
|
3223
|
-
_registerModule(_modules, '
|
|
3324
|
+
_registerModule(_modules, 'Accessibility/Components/SeriesComponent/NewDataAnnouncer.js', [_modules['Core/Globals.js'], _modules['Core/Series/CartesianSeries.js'], _modules['Core/Utilities.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Accessibility/Components/SeriesComponent/SeriesDescriber.js'], _modules['Accessibility/Utils/Announcer.js'], _modules['Accessibility/Utils/EventProvider.js']], function (H, CartesianSeries, U, ChartUtilities, SeriesDescriber, Announcer, EventProvider) {
|
|
3224
3325
|
/* *
|
|
3225
3326
|
*
|
|
3226
3327
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -3313,13 +3414,13 @@
|
|
|
3313
3414
|
e.addEvent(chart, 'afterDrilldown', function () {
|
|
3314
3415
|
announcer.lastAnnouncementTime = 0;
|
|
3315
3416
|
});
|
|
3316
|
-
e.addEvent(
|
|
3417
|
+
e.addEvent(CartesianSeries, 'updatedData', function () {
|
|
3317
3418
|
announcer.onSeriesUpdatedData(this);
|
|
3318
3419
|
});
|
|
3319
3420
|
e.addEvent(chart, 'afterAddSeries', function (e) {
|
|
3320
3421
|
announcer.onSeriesAdded(e.series);
|
|
3321
3422
|
});
|
|
3322
|
-
e.addEvent(
|
|
3423
|
+
e.addEvent(CartesianSeries, 'addPoint', function (e) {
|
|
3323
3424
|
announcer.onPointAdded(e.point);
|
|
3324
3425
|
});
|
|
3325
3426
|
e.addEvent(chart, 'redraw', function () {
|
|
@@ -3483,7 +3584,7 @@
|
|
|
3483
3584
|
|
|
3484
3585
|
return NewDataAnnouncer;
|
|
3485
3586
|
});
|
|
3486
|
-
_registerModule(_modules, '
|
|
3587
|
+
_registerModule(_modules, 'Accessibility/Components/SeriesComponent/ForcedMarkers.js', [_modules['Core/Series/CartesianSeries.js'], _modules['Core/Utilities.js']], function (CartesianSeries, U) {
|
|
3487
3588
|
/* *
|
|
3488
3589
|
*
|
|
3489
3590
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -3510,42 +3611,38 @@
|
|
|
3510
3611
|
/**
|
|
3511
3612
|
* @private
|
|
3512
3613
|
*/
|
|
3513
|
-
function
|
|
3514
|
-
var
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3614
|
+
function shouldForceMarkers(series) {
|
|
3615
|
+
var chart = series.chart,
|
|
3616
|
+
chartA11yEnabled = chart.options.accessibility.enabled,
|
|
3617
|
+
seriesA11yEnabled = (series.options.accessibility &&
|
|
3618
|
+
series.options.accessibility.enabled) !== false;
|
|
3619
|
+
return chartA11yEnabled && seriesA11yEnabled && isWithinDescriptionThreshold(series);
|
|
3519
3620
|
}
|
|
3520
3621
|
/**
|
|
3521
3622
|
* @private
|
|
3522
3623
|
*/
|
|
3523
|
-
function
|
|
3524
|
-
|
|
3525
|
-
seriesA11yEnabled = (series.options.accessibility &&
|
|
3526
|
-
series.options.accessibility.enabled) !== false,
|
|
3527
|
-
withinDescriptionThreshold = isWithinDescriptionThreshold(series),
|
|
3528
|
-
withinNavigationThreshold = isWithinNavigationThreshold(series);
|
|
3529
|
-
return chartA11yEnabled && seriesA11yEnabled &&
|
|
3530
|
-
(withinDescriptionThreshold || withinNavigationThreshold);
|
|
3624
|
+
function hasIndividualPointMarkerOptions(series) {
|
|
3625
|
+
return !!(series._hasPointMarkers && series.points && series.points.length);
|
|
3531
3626
|
}
|
|
3532
3627
|
/**
|
|
3533
3628
|
* @private
|
|
3534
3629
|
*/
|
|
3535
|
-
function
|
|
3630
|
+
function unforceSeriesMarkerOptions(series) {
|
|
3536
3631
|
var resetMarkerOptions = series.resetA11yMarkerOptions;
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
resetMarkerOptions.states
|
|
3544
|
-
|
|
3632
|
+
if (resetMarkerOptions) {
|
|
3633
|
+
merge(true, series.options, {
|
|
3634
|
+
marker: {
|
|
3635
|
+
enabled: resetMarkerOptions.enabled,
|
|
3636
|
+
states: {
|
|
3637
|
+
normal: {
|
|
3638
|
+
opacity: resetMarkerOptions.states &&
|
|
3639
|
+
resetMarkerOptions.states.normal &&
|
|
3640
|
+
resetMarkerOptions.states.normal.opacity
|
|
3641
|
+
}
|
|
3545
3642
|
}
|
|
3546
3643
|
}
|
|
3547
|
-
}
|
|
3548
|
-
}
|
|
3644
|
+
});
|
|
3645
|
+
}
|
|
3549
3646
|
}
|
|
3550
3647
|
/**
|
|
3551
3648
|
* @private
|
|
@@ -3573,7 +3670,7 @@
|
|
|
3573
3670
|
/**
|
|
3574
3671
|
* @private
|
|
3575
3672
|
*/
|
|
3576
|
-
function
|
|
3673
|
+
function unforcePointMarkerOptions(pointOptions) {
|
|
3577
3674
|
merge(true, pointOptions.marker, {
|
|
3578
3675
|
states: {
|
|
3579
3676
|
normal: {
|
|
@@ -3585,16 +3682,20 @@
|
|
|
3585
3682
|
/**
|
|
3586
3683
|
* @private
|
|
3587
3684
|
*/
|
|
3588
|
-
function handleForcePointMarkers(
|
|
3589
|
-
var i = points.length;
|
|
3685
|
+
function handleForcePointMarkers(series) {
|
|
3686
|
+
var i = series.points.length;
|
|
3590
3687
|
while (i--) {
|
|
3591
|
-
var
|
|
3688
|
+
var point = series.points[i];
|
|
3689
|
+
var pointOptions = point.options;
|
|
3690
|
+
delete point.hasForcedA11yMarker;
|
|
3592
3691
|
if (pointOptions.marker) {
|
|
3593
3692
|
if (pointOptions.marker.enabled) {
|
|
3594
|
-
|
|
3693
|
+
unforcePointMarkerOptions(pointOptions);
|
|
3694
|
+
point.hasForcedA11yMarker = false;
|
|
3595
3695
|
}
|
|
3596
3696
|
else {
|
|
3597
3697
|
forceZeroOpacityMarkerOptions(pointOptions);
|
|
3698
|
+
point.hasForcedA11yMarker = true;
|
|
3598
3699
|
}
|
|
3599
3700
|
}
|
|
3600
3701
|
}
|
|
@@ -3607,7 +3708,7 @@
|
|
|
3607
3708
|
* Keep track of forcing markers.
|
|
3608
3709
|
* @private
|
|
3609
3710
|
*/
|
|
3610
|
-
addEvent(
|
|
3711
|
+
addEvent(CartesianSeries, 'render', function () {
|
|
3611
3712
|
var series = this,
|
|
3612
3713
|
options = series.options;
|
|
3613
3714
|
if (shouldForceMarkers(series)) {
|
|
@@ -3615,27 +3716,50 @@
|
|
|
3615
3716
|
series.a11yMarkersForced = true;
|
|
3616
3717
|
forceZeroOpacityMarkerOptions(series.options);
|
|
3617
3718
|
}
|
|
3618
|
-
if (series
|
|
3619
|
-
handleForcePointMarkers(series
|
|
3719
|
+
if (hasIndividualPointMarkerOptions(series)) {
|
|
3720
|
+
handleForcePointMarkers(series);
|
|
3620
3721
|
}
|
|
3621
3722
|
}
|
|
3622
|
-
else if (series.a11yMarkersForced
|
|
3723
|
+
else if (series.a11yMarkersForced) {
|
|
3623
3724
|
delete series.a11yMarkersForced;
|
|
3624
|
-
|
|
3725
|
+
unforceSeriesMarkerOptions(series);
|
|
3625
3726
|
}
|
|
3626
3727
|
});
|
|
3627
3728
|
/**
|
|
3628
3729
|
* Keep track of options to reset markers to if no longer forced.
|
|
3629
3730
|
* @private
|
|
3630
3731
|
*/
|
|
3631
|
-
addEvent(
|
|
3732
|
+
addEvent(CartesianSeries, 'afterSetOptions', function (e) {
|
|
3632
3733
|
this.resetA11yMarkerOptions = merge(e.options.marker || {}, this.userOptions.marker || {});
|
|
3633
3734
|
});
|
|
3735
|
+
/**
|
|
3736
|
+
* Process marker graphics after render
|
|
3737
|
+
* @private
|
|
3738
|
+
*/
|
|
3739
|
+
addEvent(CartesianSeries, 'afterRender', function () {
|
|
3740
|
+
var series = this;
|
|
3741
|
+
// For styled mode the rendered graphic does not reflect the style
|
|
3742
|
+
// options, and we need to add/remove classes to achieve the same.
|
|
3743
|
+
if (series.chart.styledMode) {
|
|
3744
|
+
if (series.markerGroup) {
|
|
3745
|
+
series.markerGroup[series.a11yMarkersForced ? 'addClass' : 'removeClass']('highcharts-a11y-markers-hidden');
|
|
3746
|
+
}
|
|
3747
|
+
// Do we need to handle individual points?
|
|
3748
|
+
if (hasIndividualPointMarkerOptions(series)) {
|
|
3749
|
+
series.points.forEach(function (point) {
|
|
3750
|
+
if (point.graphic) {
|
|
3751
|
+
point.graphic[point.hasForcedA11yMarker ? 'addClass' : 'removeClass']('highcharts-a11y-marker-hidden');
|
|
3752
|
+
point.graphic[point.hasForcedA11yMarker === false ? 'addClass' : 'removeClass']('highcharts-a11y-marker-visible');
|
|
3753
|
+
}
|
|
3754
|
+
});
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3757
|
+
});
|
|
3634
3758
|
}
|
|
3635
3759
|
|
|
3636
3760
|
return addForceMarkersEvents;
|
|
3637
3761
|
});
|
|
3638
|
-
_registerModule(_modules, '
|
|
3762
|
+
_registerModule(_modules, 'Accessibility/Components/SeriesComponent/SeriesComponent.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js'], _modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js'], _modules['Accessibility/Components/SeriesComponent/NewDataAnnouncer.js'], _modules['Accessibility/Components/SeriesComponent/ForcedMarkers.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Accessibility/Components/SeriesComponent/SeriesDescriber.js'], _modules['Core/Tooltip.js']], function (H, U, AccessibilityComponent, SeriesKeyboardNavigation, NewDataAnnouncer, addForceMarkersEvents, ChartUtilities, SeriesDescriber, Tooltip) {
|
|
3639
3763
|
/* *
|
|
3640
3764
|
*
|
|
3641
3765
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -3737,7 +3861,7 @@
|
|
|
3737
3861
|
|
|
3738
3862
|
return SeriesComponent;
|
|
3739
3863
|
});
|
|
3740
|
-
_registerModule(_modules, '
|
|
3864
|
+
_registerModule(_modules, 'Accessibility/Components/ZoomComponent.js', [_modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Core/Globals.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Accessibility/KeyboardNavigationHandler.js'], _modules['Core/Utilities.js']], function (AccessibilityComponent, ChartUtilities, H, HTMLUtilities, KeyboardNavigationHandler, U) {
|
|
3741
3865
|
/* *
|
|
3742
3866
|
*
|
|
3743
3867
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -3749,11 +3873,12 @@
|
|
|
3749
3873
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
3750
3874
|
*
|
|
3751
3875
|
* */
|
|
3876
|
+
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
3877
|
+
var noop = H.noop;
|
|
3878
|
+
var removeElement = HTMLUtilities.removeElement,
|
|
3879
|
+
setElAttrs = HTMLUtilities.setElAttrs;
|
|
3752
3880
|
var extend = U.extend,
|
|
3753
3881
|
pick = U.pick;
|
|
3754
|
-
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
3755
|
-
var setElAttrs = HTMLUtilities.setElAttrs,
|
|
3756
|
-
removeElement = HTMLUtilities.removeElement;
|
|
3757
3882
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
3758
3883
|
/**
|
|
3759
3884
|
* @private
|
|
@@ -3797,7 +3922,7 @@
|
|
|
3797
3922
|
* @class
|
|
3798
3923
|
* @name Highcharts.ZoomComponent
|
|
3799
3924
|
*/
|
|
3800
|
-
var ZoomComponent =
|
|
3925
|
+
var ZoomComponent = noop;
|
|
3801
3926
|
ZoomComponent.prototype = new AccessibilityComponent();
|
|
3802
3927
|
extend(ZoomComponent.prototype, /** @lends Highcharts.ZoomComponent */ {
|
|
3803
3928
|
/**
|
|
@@ -4045,7 +4170,7 @@
|
|
|
4045
4170
|
|
|
4046
4171
|
return ZoomComponent;
|
|
4047
4172
|
});
|
|
4048
|
-
_registerModule(_modules, '
|
|
4173
|
+
_registerModule(_modules, 'Accessibility/Components/RangeSelectorComponent.js', [_modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Core/Globals.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Accessibility/KeyboardNavigationHandler.js'], _modules['Core/Utilities.js']], function (AccessibilityComponent, ChartUtilities, H, HTMLUtilities, KeyboardNavigationHandler, U) {
|
|
4049
4174
|
/* *
|
|
4050
4175
|
*
|
|
4051
4176
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -4057,9 +4182,9 @@
|
|
|
4057
4182
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
4058
4183
|
*
|
|
4059
4184
|
* */
|
|
4060
|
-
var extend = U.extend;
|
|
4061
4185
|
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT;
|
|
4062
4186
|
var setElAttrs = HTMLUtilities.setElAttrs;
|
|
4187
|
+
var extend = U.extend;
|
|
4063
4188
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
4064
4189
|
/**
|
|
4065
4190
|
* @private
|
|
@@ -4252,7 +4377,8 @@
|
|
|
4252
4377
|
[
|
|
4253
4378
|
[
|
|
4254
4379
|
keys.tab, keys.up, keys.down
|
|
4255
|
-
],
|
|
4380
|
+
],
|
|
4381
|
+
function (keyCode, e) {
|
|
4256
4382
|
var direction = (keyCode === keys.tab && e.shiftKey ||
|
|
4257
4383
|
keyCode === keys.up) ? -1 : 1;
|
|
4258
4384
|
return component.onInputKbdMove(this, direction);
|
|
@@ -4325,7 +4451,7 @@
|
|
|
4325
4451
|
|
|
4326
4452
|
return RangeSelectorComponent;
|
|
4327
4453
|
});
|
|
4328
|
-
_registerModule(_modules, '
|
|
4454
|
+
_registerModule(_modules, 'Accessibility/Components/InfoRegionsComponent.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js'], _modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/Utils/Announcer.js'], _modules['Accessibility/Components/AnnotationsA11y.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Accessibility/Utils/HTMLUtilities.js']], function (H, U, AccessibilityComponent, Announcer, AnnotationsA11y, ChartUtilities, HTMLUtilities) {
|
|
4329
4455
|
/* *
|
|
4330
4456
|
*
|
|
4331
4457
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -4337,7 +4463,7 @@
|
|
|
4337
4463
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
4338
4464
|
*
|
|
4339
4465
|
* */
|
|
4340
|
-
var doc = H.
|
|
4466
|
+
var doc = H.doc;
|
|
4341
4467
|
var extend = U.extend,
|
|
4342
4468
|
format = U.format,
|
|
4343
4469
|
pick = U.pick;
|
|
@@ -4679,7 +4805,7 @@
|
|
|
4679
4805
|
var chart = this.chart,
|
|
4680
4806
|
buttonText = chart.langFormat('accessibility.table.viewAsDataTableButtonText', { chart: chart,
|
|
4681
4807
|
chartTitle: getChartTitle(chart) });
|
|
4682
|
-
return '<
|
|
4808
|
+
return '<button id="' + buttonId + '">' + buttonText + '</button>';
|
|
4683
4809
|
},
|
|
4684
4810
|
/**
|
|
4685
4811
|
* @private
|
|
@@ -4722,7 +4848,7 @@
|
|
|
4722
4848
|
if (this.viewDataTableButton) {
|
|
4723
4849
|
this.viewDataTableButton.setAttribute('aria-expanded', 'true');
|
|
4724
4850
|
}
|
|
4725
|
-
e.html = e.html.replace('<table ', '<table tabindex="
|
|
4851
|
+
e.html = e.html.replace('<table ', '<table tabindex="-1" summary="' + getTableSummary(chart) + '"');
|
|
4726
4852
|
}
|
|
4727
4853
|
},
|
|
4728
4854
|
/**
|
|
@@ -4778,10 +4904,8 @@
|
|
|
4778
4904
|
var el = this.viewDataTableButton = getElement(tableButtonId), chart = this.chart, tableId = tableButtonId.replace('hc-linkto-', '');
|
|
4779
4905
|
if (el) {
|
|
4780
4906
|
setElAttrs(el, {
|
|
4781
|
-
role: 'button',
|
|
4782
4907
|
tabindex: '-1',
|
|
4783
|
-
'aria-expanded': !!getElement(tableId)
|
|
4784
|
-
href: '#' + tableId
|
|
4908
|
+
'aria-expanded': !!getElement(tableId)
|
|
4785
4909
|
});
|
|
4786
4910
|
el.onclick = chart.options.accessibility
|
|
4787
4911
|
.screenReaderSection.onViewDataTableClick ||
|
|
@@ -4932,7 +5056,7 @@
|
|
|
4932
5056
|
|
|
4933
5057
|
return InfoRegionsComponent;
|
|
4934
5058
|
});
|
|
4935
|
-
_registerModule(_modules, '
|
|
5059
|
+
_registerModule(_modules, 'Accessibility/Components/ContainerComponent.js', [_modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/Utils/ChartUtilities.js'], _modules['Core/Globals.js'], _modules['Accessibility/Utils/HTMLUtilities.js'], _modules['Core/Utilities.js']], function (AccessibilityComponent, ChartUtilities, H, HTMLUtilities, U) {
|
|
4936
5060
|
/* *
|
|
4937
5061
|
*
|
|
4938
5062
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -4944,11 +5068,11 @@
|
|
|
4944
5068
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
4945
5069
|
*
|
|
4946
5070
|
* */
|
|
4947
|
-
var doc = H.win.document;
|
|
4948
|
-
var extend = U.extend;
|
|
4949
|
-
var stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
|
|
4950
5071
|
var unhideChartElementFromAT = ChartUtilities.unhideChartElementFromAT,
|
|
4951
5072
|
getChartTitle = ChartUtilities.getChartTitle;
|
|
5073
|
+
var doc = H.doc;
|
|
5074
|
+
var stripHTMLTags = HTMLUtilities.stripHTMLTagsFromString;
|
|
5075
|
+
var extend = U.extend;
|
|
4952
5076
|
/* eslint-disable valid-jsdoc */
|
|
4953
5077
|
/**
|
|
4954
5078
|
* The ContainerComponent class
|
|
@@ -5048,7 +5172,7 @@
|
|
|
5048
5172
|
|
|
5049
5173
|
return ContainerComponent;
|
|
5050
5174
|
});
|
|
5051
|
-
_registerModule(_modules, '
|
|
5175
|
+
_registerModule(_modules, 'Accessibility/HighContrastMode.js', [_modules['Core/Globals.js']], function (H) {
|
|
5052
5176
|
/* *
|
|
5053
5177
|
*
|
|
5054
5178
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -5080,7 +5204,8 @@
|
|
|
5080
5204
|
// Test BG image for IE
|
|
5081
5205
|
if (isMS && win.getComputedStyle) {
|
|
5082
5206
|
var testDiv = doc.createElement('div');
|
|
5083
|
-
|
|
5207
|
+
var imageSrc = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';
|
|
5208
|
+
testDiv.style.backgroundImage = "url(" + imageSrc + ")"; // #13071
|
|
5084
5209
|
doc.body.appendChild(testDiv);
|
|
5085
5210
|
var bi = (testDiv.currentStyle ||
|
|
5086
5211
|
win.getComputedStyle(testDiv)).backgroundImage;
|
|
@@ -5133,7 +5258,7 @@
|
|
|
5133
5258
|
|
|
5134
5259
|
return whcm;
|
|
5135
5260
|
});
|
|
5136
|
-
_registerModule(_modules, '
|
|
5261
|
+
_registerModule(_modules, 'Accessibility/HighContrastTheme.js', [], function () {
|
|
5137
5262
|
/* *
|
|
5138
5263
|
*
|
|
5139
5264
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -5346,7 +5471,7 @@
|
|
|
5346
5471
|
|
|
5347
5472
|
return theme;
|
|
5348
5473
|
});
|
|
5349
|
-
_registerModule(_modules, '
|
|
5474
|
+
_registerModule(_modules, 'Accessibility/Options/Options.js', [], function () {
|
|
5350
5475
|
/* *
|
|
5351
5476
|
*
|
|
5352
5477
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -5424,7 +5549,7 @@
|
|
|
5424
5549
|
* [accessibility module](https://code.highcharts.com/modules/accessibility.js)
|
|
5425
5550
|
* to be loaded. For a description of the module and information
|
|
5426
5551
|
* on its features, see
|
|
5427
|
-
* [Highcharts Accessibility](https://www.highcharts.com/docs/
|
|
5552
|
+
* [Highcharts Accessibility](https://www.highcharts.com/docs/accessibility/accessibility-module).
|
|
5428
5553
|
*
|
|
5429
5554
|
* @since 5.0.0
|
|
5430
5555
|
* @requires modules/accessibility
|
|
@@ -6141,7 +6266,7 @@
|
|
|
6141
6266
|
|
|
6142
6267
|
return options;
|
|
6143
6268
|
});
|
|
6144
|
-
_registerModule(_modules, '
|
|
6269
|
+
_registerModule(_modules, 'Accessibility/Options/LangOptions.js', [], function () {
|
|
6145
6270
|
/* *
|
|
6146
6271
|
*
|
|
6147
6272
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -6248,7 +6373,7 @@
|
|
|
6248
6373
|
*/
|
|
6249
6374
|
legend: {
|
|
6250
6375
|
legendLabel: 'Toggle series visibility',
|
|
6251
|
-
legendItem: '
|
|
6376
|
+
legendItem: 'Hide {itemName}'
|
|
6252
6377
|
},
|
|
6253
6378
|
/**
|
|
6254
6379
|
* Chart and map zoom accessibility language options.
|
|
@@ -6481,7 +6606,7 @@
|
|
|
6481
6606
|
|
|
6482
6607
|
return langOptions;
|
|
6483
6608
|
});
|
|
6484
|
-
_registerModule(_modules, '
|
|
6609
|
+
_registerModule(_modules, 'Accessibility/Options/DeprecatedOptions.js', [_modules['Core/Utilities.js']], function (U) {
|
|
6485
6610
|
/* *
|
|
6486
6611
|
*
|
|
6487
6612
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -6544,19 +6669,6 @@
|
|
|
6544
6669
|
var error = U.error,
|
|
6545
6670
|
pick = U.pick;
|
|
6546
6671
|
/* eslint-disable valid-jsdoc */
|
|
6547
|
-
/**
|
|
6548
|
-
* Warn user that a deprecated option was used.
|
|
6549
|
-
* @private
|
|
6550
|
-
* @param {Highcharts.Chart} chart
|
|
6551
|
-
* @param {string} oldOption
|
|
6552
|
-
* @param {string} newOption
|
|
6553
|
-
* @return {void}
|
|
6554
|
-
*/
|
|
6555
|
-
function warn(chart, oldOption, newOption) {
|
|
6556
|
-
error('Highcharts: Deprecated option ' + oldOption +
|
|
6557
|
-
' used. This will be removed from future versions of Highcharts. Use ' +
|
|
6558
|
-
newOption + ' instead.', false, chart);
|
|
6559
|
-
}
|
|
6560
6672
|
/**
|
|
6561
6673
|
* Set a new option on a root prop, where the option is defined as an array of
|
|
6562
6674
|
* suboptions.
|
|
@@ -6594,11 +6706,13 @@
|
|
|
6594
6706
|
rootNew = getChildProp(chart.options,
|
|
6595
6707
|
rootNewAsArray);
|
|
6596
6708
|
Object.keys(mapToNewOptions).forEach(function (oldOptionKey) {
|
|
6709
|
+
var _a;
|
|
6597
6710
|
var val = rootOld[oldOptionKey];
|
|
6598
6711
|
if (typeof val !== 'undefined') {
|
|
6599
6712
|
traverseSetOption(rootNew, mapToNewOptions[oldOptionKey], val);
|
|
6600
|
-
|
|
6601
|
-
mapToNewOptions[oldOptionKey].join('.')
|
|
6713
|
+
error(32, false, chart, (_a = {},
|
|
6714
|
+
_a[rootOldAsArray.join('.') + "." + oldOptionKey] = rootNewAsArray.join('.') + "." + mapToNewOptions[oldOptionKey].join('.'),
|
|
6715
|
+
_a));
|
|
6602
6716
|
}
|
|
6603
6717
|
});
|
|
6604
6718
|
}
|
|
@@ -6609,9 +6723,10 @@
|
|
|
6609
6723
|
var chartOptions = chart.options.chart || {},
|
|
6610
6724
|
a11yOptions = chart.options.accessibility || {};
|
|
6611
6725
|
['description', 'typeDescription'].forEach(function (prop) {
|
|
6726
|
+
var _a;
|
|
6612
6727
|
if (chartOptions[prop]) {
|
|
6613
6728
|
a11yOptions[prop] = chartOptions[prop];
|
|
6614
|
-
|
|
6729
|
+
error(32, false, chart, (_a = {}, _a["chart." + prop] = "use accessibility." + prop, _a));
|
|
6615
6730
|
}
|
|
6616
6731
|
});
|
|
6617
6732
|
}
|
|
@@ -6624,7 +6739,7 @@
|
|
|
6624
6739
|
if (opts && opts.description) {
|
|
6625
6740
|
opts.accessibility = opts.accessibility || {};
|
|
6626
6741
|
opts.accessibility.description = opts.description;
|
|
6627
|
-
|
|
6742
|
+
error(32, false, chart, { 'axis.description': 'use axis.accessibility.description' });
|
|
6628
6743
|
}
|
|
6629
6744
|
});
|
|
6630
6745
|
}
|
|
@@ -6647,6 +6762,7 @@
|
|
|
6647
6762
|
chart.series.forEach(function (series) {
|
|
6648
6763
|
// Handle series wide options
|
|
6649
6764
|
Object.keys(oldToNewSeriesOptions).forEach(function (oldOption) {
|
|
6765
|
+
var _a;
|
|
6650
6766
|
var optionVal = series.options[oldOption];
|
|
6651
6767
|
if (typeof optionVal !== 'undefined') {
|
|
6652
6768
|
// Set the new option
|
|
@@ -6655,8 +6771,7 @@
|
|
|
6655
6771
|
// value, since we set enabled rather than disabled
|
|
6656
6772
|
oldOption === 'skipKeyboardNavigation' ?
|
|
6657
6773
|
!optionVal : optionVal);
|
|
6658
|
-
|
|
6659
|
-
oldToNewSeriesOptions[oldOption].join('.'));
|
|
6774
|
+
error(32, false, chart, (_a = {}, _a["series." + oldOption] = "series." + oldToNewSeriesOptions[oldOption].join('.'), _a));
|
|
6660
6775
|
}
|
|
6661
6776
|
});
|
|
6662
6777
|
});
|
|
@@ -6732,7 +6847,7 @@
|
|
|
6732
6847
|
|
|
6733
6848
|
return copyDeprecatedOptions;
|
|
6734
6849
|
});
|
|
6735
|
-
_registerModule(_modules, '
|
|
6850
|
+
_registerModule(_modules, 'Accessibility/A11yI18n.js', [_modules['Core/Globals.js'], _modules['Core/Utilities.js']], function (H, U) {
|
|
6736
6851
|
/* *
|
|
6737
6852
|
*
|
|
6738
6853
|
* Accessibility module - internationalization support
|
|
@@ -6990,7 +7105,7 @@
|
|
|
6990
7105
|
};
|
|
6991
7106
|
|
|
6992
7107
|
});
|
|
6993
|
-
_registerModule(_modules, '
|
|
7108
|
+
_registerModule(_modules, 'Accessibility/FocusBorder.js', [_modules['Core/Globals.js'], _modules['Core/Renderer/SVG/SVGElement.js'], _modules['Core/Renderer/SVG/SVGLabel.js'], _modules['Core/Utilities.js']], function (H, SVGElement, SVGLabel, U) {
|
|
6994
7109
|
/* *
|
|
6995
7110
|
*
|
|
6996
7111
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -7013,7 +7128,7 @@
|
|
|
7013
7128
|
/**
|
|
7014
7129
|
* Add hook to destroy focus border if SVG element is destroyed, unless
|
|
7015
7130
|
* hook already exists.
|
|
7016
|
-
*
|
|
7131
|
+
* @private
|
|
7017
7132
|
* @param el Element to add destroy hook to
|
|
7018
7133
|
*/
|
|
7019
7134
|
function addDestroyFocusBorderHook(el) {
|
|
@@ -7032,7 +7147,7 @@
|
|
|
7032
7147
|
/**
|
|
7033
7148
|
* Remove hook from SVG element added by addDestroyFocusBorderHook, if
|
|
7034
7149
|
* existing.
|
|
7035
|
-
*
|
|
7150
|
+
* @private
|
|
7036
7151
|
* @param el Element to remove destroy hook from
|
|
7037
7152
|
*/
|
|
7038
7153
|
function removeDestroyFocusBorderHook(el) {
|
|
@@ -7045,7 +7160,7 @@
|
|
|
7045
7160
|
/**
|
|
7046
7161
|
* Add hooks to update the focus border of an element when the element
|
|
7047
7162
|
* size/position is updated, unless already added.
|
|
7048
|
-
*
|
|
7163
|
+
* @private
|
|
7049
7164
|
* @param el Element to add update hooks to
|
|
7050
7165
|
* @param updateParams Parameters to pass through to addFocusBorder when updating.
|
|
7051
7166
|
*/
|
|
@@ -7073,7 +7188,7 @@
|
|
|
7073
7188
|
/**
|
|
7074
7189
|
* Remove hooks from SVG element added by addUpdateFocusBorderHooks, if
|
|
7075
7190
|
* existing.
|
|
7076
|
-
*
|
|
7191
|
+
* @private
|
|
7077
7192
|
* @param el Element to remove update hooks from
|
|
7078
7193
|
*/
|
|
7079
7194
|
function removeUpdateFocusBorderHooks(el) {
|
|
@@ -7095,7 +7210,7 @@
|
|
|
7095
7210
|
* Add focus border functionality to SVGElements. Draws a new rect on top of
|
|
7096
7211
|
* element around its bounding box. This is used by multiple components.
|
|
7097
7212
|
*/
|
|
7098
|
-
extend(
|
|
7213
|
+
extend(SVGElement.prototype, {
|
|
7099
7214
|
/**
|
|
7100
7215
|
* @private
|
|
7101
7216
|
* @function Highcharts.SVGElement#addFocusBorder
|
|
@@ -7145,16 +7260,17 @@
|
|
|
7145
7260
|
y: posYCorrection
|
|
7146
7261
|
};
|
|
7147
7262
|
}
|
|
7148
|
-
|
|
7263
|
+
var isLabel = this instanceof SVGLabel;
|
|
7264
|
+
if (this.element.nodeName === 'text' || isLabel) {
|
|
7149
7265
|
var isRotated = !!this.rotation,
|
|
7150
|
-
correction = !
|
|
7266
|
+
correction = !isLabel ? getTextAnchorCorrection(this) :
|
|
7151
7267
|
{
|
|
7152
7268
|
x: isRotated ? 1 : 0,
|
|
7153
7269
|
y: 0
|
|
7154
7270
|
};
|
|
7155
7271
|
borderPosX = +this.attr('x') - (bb.width * correction.x) - pad;
|
|
7156
7272
|
borderPosY = +this.attr('y') - (bb.height * correction.y) - pad;
|
|
7157
|
-
if (
|
|
7273
|
+
if (isLabel && isRotated) {
|
|
7158
7274
|
var temp = borderWidth;
|
|
7159
7275
|
borderWidth = borderHeight;
|
|
7160
7276
|
borderHeight = temp;
|
|
@@ -7250,7 +7366,7 @@
|
|
|
7250
7366
|
};
|
|
7251
7367
|
|
|
7252
7368
|
});
|
|
7253
|
-
_registerModule(_modules, '
|
|
7369
|
+
_registerModule(_modules, 'Accessibility/Accessibility.js', [_modules['Accessibility/Utils/ChartUtilities.js'], _modules['Core/Globals.js'], _modules['Accessibility/KeyboardNavigationHandler.js'], _modules['Core/Series/CartesianSeries.js'], _modules['Core/Options.js'], _modules['Core/Series/Point.js'], _modules['Core/Utilities.js'], _modules['Accessibility/AccessibilityComponent.js'], _modules['Accessibility/KeyboardNavigation.js'], _modules['Accessibility/Components/LegendComponent.js'], _modules['Accessibility/Components/MenuComponent.js'], _modules['Accessibility/Components/SeriesComponent/SeriesComponent.js'], _modules['Accessibility/Components/ZoomComponent.js'], _modules['Accessibility/Components/RangeSelectorComponent.js'], _modules['Accessibility/Components/InfoRegionsComponent.js'], _modules['Accessibility/Components/ContainerComponent.js'], _modules['Accessibility/HighContrastMode.js'], _modules['Accessibility/HighContrastTheme.js'], _modules['Accessibility/Options/Options.js'], _modules['Accessibility/Options/LangOptions.js'], _modules['Accessibility/Options/DeprecatedOptions.js']], function (ChartUtilities, H, KeyboardNavigationHandler, CartesianSeries, O, Point, U, AccessibilityComponent, KeyboardNavigation, LegendComponent, MenuComponent, SeriesComponent, ZoomComponent, RangeSelectorComponent, InfoRegionsComponent, ContainerComponent, whcm, highContrastTheme, defaultOptionsA11Y, defaultLangOptions, copyDeprecatedOptions) {
|
|
7254
7370
|
/* *
|
|
7255
7371
|
*
|
|
7256
7372
|
* (c) 2009-2020 Øystein Moseng
|
|
@@ -7262,13 +7378,14 @@
|
|
|
7262
7378
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
7263
7379
|
*
|
|
7264
7380
|
* */
|
|
7381
|
+
var doc = H.doc;
|
|
7382
|
+
var defaultOptions = O.defaultOptions;
|
|
7265
7383
|
var addEvent = U.addEvent,
|
|
7266
7384
|
extend = U.extend,
|
|
7267
7385
|
fireEvent = U.fireEvent,
|
|
7268
7386
|
merge = U.merge;
|
|
7269
|
-
var doc = H.win.document;
|
|
7270
7387
|
// Add default options
|
|
7271
|
-
merge(true,
|
|
7388
|
+
merge(true, defaultOptions, defaultOptionsA11Y, {
|
|
7272
7389
|
accessibility: {
|
|
7273
7390
|
highContrastTheme: highContrastTheme
|
|
7274
7391
|
},
|
|
@@ -7494,7 +7611,7 @@
|
|
|
7494
7611
|
});
|
|
7495
7612
|
});
|
|
7496
7613
|
['update', 'updatedData', 'remove'].forEach(function (event) {
|
|
7497
|
-
addEvent(
|
|
7614
|
+
addEvent(CartesianSeries, event, function () {
|
|
7498
7615
|
if (this.chart.accessibility) {
|
|
7499
7616
|
this.chart.a11yDirty = true;
|
|
7500
7617
|
}
|