highcharts 11.3.0 → 11.4.0
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/README.md +1 -1
- package/bower.json +1 -1
- package/css/annotations/popup.css +27 -19
- package/css/stocktools/gui.css +19 -7
- package/es-modules/Accessibility/A11yI18n.js +4 -6
- package/es-modules/Accessibility/Accessibility.js +8 -6
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +11 -6
- package/es-modules/Accessibility/Components/LegendComponent.js +4 -4
- package/es-modules/Accessibility/Components/MenuComponent.js +3 -6
- package/es-modules/Accessibility/Components/NavigatorComponent.js +6 -3
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -7
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +18 -3
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +5 -3
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +4 -4
- package/es-modules/Accessibility/FocusBorder.js +5 -5
- package/es-modules/Accessibility/HighContrastMode.js +22 -13
- package/es-modules/Accessibility/HighContrastTheme.js +2 -6
- package/es-modules/Accessibility/KeyboardNavigation.js +17 -8
- package/es-modules/Accessibility/Options/A11yDefaults.js +11 -1
- package/es-modules/Accessibility/ProxyElement.js +4 -4
- package/es-modules/Accessibility/ProxyProvider.js +8 -2
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +8 -0
- package/es-modules/Accessibility/Utils/EventProvider.js +9 -0
- package/es-modules/Core/Animation/Fx.js +3 -3
- package/es-modules/Core/Axis/Axis.js +43 -97
- package/es-modules/Core/Axis/Axis3DComposition.js +5 -5
- package/es-modules/Core/Axis/Axis3DDefaults.js +1 -1
- package/es-modules/Core/Axis/AxisDefaults.js +18 -7
- package/es-modules/Core/Axis/BrokenAxis.js +4 -6
- package/es-modules/Core/Axis/Color/ColorAxis.js +2 -1
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -5
- package/es-modules/Core/Axis/DateTimeAxis.js +3 -5
- package/es-modules/Core/Axis/GridAxis.js +7 -7
- package/es-modules/Core/Axis/LogarithmicAxis.js +2 -4
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +26 -22
- package/es-modules/Core/Axis/OrdinalAxis.js +97 -53
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -3
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js +4 -5
- package/es-modules/Core/Axis/RadialAxis.js +5 -5
- package/es-modules/Core/Axis/ScrollbarAxis.js +2 -2
- package/es-modules/Core/Axis/Stacking/StackItem.js +8 -4
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +3 -5
- package/es-modules/Core/Axis/Tick.js +16 -7
- package/es-modules/Core/Axis/Tick3DComposition.js +2 -2
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +4 -8
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -6
- package/es-modules/Core/Axis/WaterfallAxis.js +3 -3
- package/es-modules/Core/Axis/ZAxis.js +6 -11
- package/es-modules/Core/Chart/Chart.js +201 -176
- package/es-modules/Core/Chart/Chart3D.js +1 -1
- package/es-modules/Core/Chart/ChartDefaults.js +7 -0
- package/es-modules/Core/Chart/GanttChart.js +2 -2
- package/es-modules/Core/Chart/MapChart.js +12 -2
- package/es-modules/Core/Chart/StockChart.js +12 -11
- package/es-modules/Core/Color/Color.js +3 -3
- package/es-modules/Core/Color/Palettes.js +2 -2
- package/es-modules/Core/Defaults.js +18 -15
- package/es-modules/Core/Geometry/CircleUtilities.js +3 -3
- package/es-modules/Core/Globals.js +2 -2
- package/es-modules/Core/HttpUtilities.js +4 -4
- package/es-modules/Core/Legend/Legend.js +6 -6
- package/es-modules/Core/MSPointer.js +7 -7
- package/es-modules/Core/Pointer.js +230 -245
- package/es-modules/Core/Renderer/HTML/AST.js +1 -1
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +213 -26
- package/es-modules/Core/Renderer/RendererUtilities.js +1 -1
- package/es-modules/Core/Renderer/SVG/SVGElement.js +85 -52
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +14 -11
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +17 -14
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +8 -7
- package/es-modules/Core/Renderer/SVG/Symbols.js +1 -1
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +5 -6
- package/es-modules/Core/Series/DataLabel.js +70 -90
- package/es-modules/Core/Series/DataSeriesComposition.js +1 -1
- package/es-modules/Core/Series/DataSeriesConverter.js +2 -2
- package/es-modules/Core/Series/Point.js +48 -40
- package/es-modules/Core/Series/Series.js +61 -51
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Series/SeriesRegistry.js +10 -2
- package/es-modules/Core/Templating.js +1 -1
- package/es-modules/Core/Time.js +12 -7
- package/es-modules/Core/Tooltip.js +19 -17
- package/es-modules/Core/Utilities.js +54 -26
- package/es-modules/Data/Connectors/CSVConnector.js +2 -2
- package/es-modules/Data/Connectors/DataConnector.js +4 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/Connectors/HTMLTableConnector.js +2 -2
- package/es-modules/Data/Connectors/JSONConnector.js +3 -5
- package/es-modules/Data/Converters/CSVConverter.js +1 -3
- package/es-modules/Data/Converters/DataConverter.js +8 -2
- package/es-modules/Data/Converters/HTMLTableConverter.js +1 -3
- package/es-modules/Data/Converters/JSONConverter.js +1 -0
- package/es-modules/Data/DataTable.js +1 -2
- package/es-modules/Data/Formula/FormulaProcessor.js +4 -2
- package/es-modules/Data/Modifiers/DataModifier.js +15 -3
- package/es-modules/Extensions/Annotations/Annotation.js +6 -7
- package/es-modules/Extensions/Annotations/AnnotationChart.js +4 -5
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/ControlTarget.js +1 -1
- package/es-modules/Extensions/Annotations/Controllables/Controllable.js +7 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableEllipse.js +3 -3
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +8 -9
- package/es-modules/Extensions/Annotations/Controllables/ControllablePath.js +3 -4
- package/es-modules/Extensions/Annotations/EventEmitter.js +6 -6
- package/es-modules/Extensions/Annotations/NavigationBindings.js +29 -18
- package/es-modules/Extensions/Annotations/NavigationBindingsDefaults.js +6 -6
- package/es-modules/Extensions/Annotations/Popup/Popup.js +1 -1
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +10 -6
- package/es-modules/Extensions/Annotations/Popup/PopupComposition.js +2 -2
- package/es-modules/Extensions/Annotations/Popup/PopupIndicators.js +31 -31
- package/es-modules/Extensions/Annotations/Popup/PopupTabs.js +1 -1
- package/es-modules/Extensions/Annotations/Types/BasicAnnotation.js +14 -11
- package/es-modules/Extensions/Annotations/Types/FibonacciTimeZones.js +1 -1
- package/es-modules/Extensions/Annotations/Types/Measure.js +1 -1
- package/es-modules/Extensions/ArrowSymbols.js +7 -13
- package/es-modules/Extensions/Boost/Boost.js +39 -7
- package/es-modules/Extensions/Boost/BoostChart.js +4 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +58 -13
- package/es-modules/Extensions/Boost/WGLRenderer.js +3 -3
- package/es-modules/Extensions/Boost/WGLVertexBuffer.js +1 -1
- package/es-modules/Extensions/BoostCanvas.js +5 -4
- package/es-modules/Extensions/BorderRadius.js +5 -4
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +9 -9
- package/es-modules/Extensions/CurrentDateIndication.js +1 -1
- package/es-modules/Extensions/Data.js +11 -11
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +8 -9
- package/es-modules/Extensions/DataGrouping/DataGroupingDefaults.js +1 -1
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +6 -7
- package/es-modules/Extensions/Debugger/Debugger.js +1 -1
- package/es-modules/Extensions/Debugger/ErrorMessages.js +2 -2
- package/es-modules/Extensions/DragPanes/AxisResizer.js +13 -16
- package/es-modules/Extensions/DragPanes/DragPanes.js +2 -4
- package/es-modules/Extensions/DraggablePoints/DragDropDefaults.js +2 -1
- package/es-modules/Extensions/DraggablePoints/DragDropUtilities.js +1 -1
- package/es-modules/Extensions/DraggablePoints/DraggableChart.js +4 -4
- package/es-modules/Extensions/DraggablePoints/DraggablePoints.js +8 -9
- package/es-modules/Extensions/Drilldown/Drilldown.js +11 -9
- package/es-modules/Extensions/Drilldown/DrilldownSeries.js +5 -6
- package/es-modules/Extensions/ExportData/ExportData.js +27 -18
- package/es-modules/Extensions/Exporting/Exporting.js +25 -20
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +1 -1
- package/es-modules/Extensions/Exporting/Fullscreen.js +5 -10
- package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +26 -21
- package/es-modules/Extensions/MarkerClusters/MarkerClusterSymbols.js +2 -12
- package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +3 -3
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +51 -161
- package/es-modules/Extensions/NoDataToDisplay/NoDataToDisplay.js +3 -5
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +5 -6
- package/es-modules/Extensions/OfflineExporting/OfflineExportingDefaults.js +1 -1
- package/es-modules/Extensions/OverlappingDataLabels.js +21 -49
- package/es-modules/Extensions/Pane/PaneComposition.js +3 -5
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -4
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +5 -6
- package/es-modules/Extensions/ParallelCoordinates/ParallelSeries.js +1 -1
- package/es-modules/Extensions/PatternFill.js +19 -22
- package/es-modules/Extensions/PriceIndication.js +1 -1
- package/es-modules/Extensions/ScrollablePlotArea.js +218 -292
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +26 -18
- package/es-modules/Extensions/Sonification/Options.js +1 -0
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +2 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +3 -3
- package/es-modules/Extensions/StaticScale.js +3 -5
- package/es-modules/Gantt/Legacy.js +1 -1
- package/es-modules/Gantt/Pathfinder.js +2 -2
- package/es-modules/Gantt/PathfinderComposition.js +3 -5
- package/es-modules/Gantt/Tree.js +3 -3
- package/es-modules/Maps/GeoJSONComposition.js +20 -13
- package/es-modules/Maps/MapNavigation.js +2 -2
- package/es-modules/Maps/MapPointer.js +3 -19
- package/es-modules/Maps/MapSymbols.js +3 -9
- package/es-modules/Maps/MapView.js +134 -74
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +5 -4
- package/es-modules/Series/Area/AreaSeries.js +2 -4
- package/es-modules/Series/Area3D/Area3DSeries.js +1 -1
- package/es-modules/Series/AreaRange/AreaRangePoint.js +2 -2
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +2 -3
- package/es-modules/Series/AreaSpline/AreaSplineSeries.js +1 -1
- package/es-modules/Series/Bar/BarSeries.js +1 -1
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +1 -1
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +4 -0
- package/es-modules/Series/Bubble/BubbleLegendComposition.js +1 -1
- package/es-modules/Series/Bubble/BubbleLegendDefaults.js +2 -2
- package/es-modules/Series/Bubble/BubbleLegendItem.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +1 -1
- package/es-modules/Series/Bullet/BulletSeriesDefaults.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeries.js +2 -2
- package/es-modules/Series/Candlestick/CandlestickSeriesDefaults.js +1 -5
- package/es-modules/Series/ColorMapComposition.js +1 -1
- package/es-modules/Series/Column/ColumnDataLabel.js +2 -2
- package/es-modules/Series/Column/ColumnSeries.js +20 -22
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +1 -1
- package/es-modules/Series/Column3D/Column3DComposition.js +1 -1
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderComposition.js +9 -9
- package/es-modules/Series/DataModifyComposition.js +5 -5
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +3 -2
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesDefaults.js +1 -1
- package/es-modules/Series/DragNodesComposition.js +7 -7
- package/es-modules/Series/DrawPointUtilities.js +0 -2
- package/es-modules/Series/Dumbbell/DumbbellSeriesDefaults.js +1 -1
- package/es-modules/Series/Funnel/FunnelSeries.js +1 -1
- package/es-modules/Series/Funnel3D/Funnel3DComposition.js +6 -6
- package/es-modules/Series/Funnel3D/Funnel3DSeriesDefaults.js +2 -2
- package/es-modules/Series/Funnel3D/SVGElement3DFunnel.js +1 -1
- package/es-modules/Series/Gantt/GanttSeries.js +0 -1
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +5 -5
- package/es-modules/Series/GraphLayoutComposition.js +1 -1
- package/es-modules/Series/Heatmap/HeatmapSeries.js +2 -2
- package/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js +1 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiPoint.js +3 -1
- package/es-modules/Series/HeikinAshi/HeikinAshiSeries.js +3 -3
- package/es-modules/Series/HeikinAshi/HeikinAshiSeriesDefaults.js +1 -1
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +2 -2
- package/es-modules/Series/Item/ItemSeries.js +1 -1
- package/es-modules/Series/Line/LineSeries.js +1 -1
- package/es-modules/Series/Lollipop/LollipopSeries.js +3 -1
- package/es-modules/Series/Map/MapPoint.js +5 -1
- package/es-modules/Series/Map/MapSeries.js +32 -7
- package/es-modules/Series/Map/MapSeriesDefaults.js +5 -3
- package/es-modules/Series/Networkgraph/EulerIntegration.js +5 -5
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +4 -4
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +5 -5
- package/es-modules/Series/Networkgraph/QuadTree.js +1 -1
- package/es-modules/Series/Networkgraph/QuadTreeNode.js +1 -1
- package/es-modules/Series/Networkgraph/VerletIntegration.js +9 -9
- package/es-modules/Series/NodesComposition.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -1
- package/es-modules/Series/OHLC/OHLCSeriesDefaults.js +1 -1
- package/es-modules/Series/OnSeriesComposition.js +1 -1
- package/es-modules/Series/Organization/OrganizationPoint.js +1 -1
- package/es-modules/Series/Organization/OrganizationSeries.js +22 -10
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +15 -2
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -5
- package/es-modules/Series/PackedBubble/PackedBubblePoint.js +1 -1
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +6 -10
- package/es-modules/Series/Pictorial/PictorialSeries.js +2 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +1 -1
- package/es-modules/Series/Pie/PieSeries.js +10 -1
- package/es-modules/Series/Pie/PieSeriesDefaults.js +1 -1
- package/es-modules/Series/Pie3D/Pie3DSeries.js +2 -2
- package/es-modules/Series/PolarComposition.js +22 -20
- package/es-modules/Series/Sankey/SankeyColumnComposition.js +1 -1
- package/es-modules/Series/Sankey/SankeySeries.js +8 -8
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +57 -13
- package/es-modules/Series/SeriesOnPointComposition.js +3 -3
- package/es-modules/Series/Spline/SplineSeries.js +1 -1
- package/es-modules/Series/Sunburst/SunburstPoint.js +1 -1
- package/es-modules/Series/Sunburst/SunburstSeries.js +2 -7
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +3 -3
- package/es-modules/Series/Sunburst/SunburstUtilities.js +1 -1
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +23 -25
- package/es-modules/Series/Tilemap/TilemapSeries.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +2 -2
- package/es-modules/Series/TreeUtilities.js +23 -1
- package/es-modules/Series/Treegraph/TreegraphLayout.js +7 -11
- package/es-modules/Series/Treegraph/TreegraphPoint.js +1 -0
- package/es-modules/Series/Treegraph/TreegraphSeries.js +8 -8
- package/es-modules/Series/Treegraph/TreegraphSeriesDefaults.js +39 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +4 -2
- package/es-modules/Series/Treemap/TreemapUtilities.js +0 -7
- package/es-modules/Series/Variwide/VariwideComposition.js +6 -2
- package/es-modules/Series/Variwide/VariwideSeries.js +1 -1
- package/es-modules/Series/Venn/VennSeries.js +4 -4
- package/es-modules/Series/Venn/VennUtils.js +5 -6
- package/es-modules/Series/Waterfall/WaterfallSeriesDefaults.js +1 -1
- package/es-modules/Series/Windbarb/WindbarbSeries.js +1 -1
- package/es-modules/Series/Wordcloud/WordcloudUtils.js +6 -4
- package/es-modules/Series/XRange/XRangePoint.js +2 -2
- package/es-modules/Series/XRange/XRangeSeries.js +1 -1
- package/es-modules/Shared/BaseForm.js +1 -1
- package/es-modules/Stock/Indicators/AD/ADIndicator.js +3 -1
- package/es-modules/Stock/Indicators/APO/APOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMF/CMFIndicator.js +1 -1
- package/es-modules/Stock/Indicators/CMO/CMOIndicator.js +2 -2
- package/es-modules/Stock/Indicators/Chaikin/ChaikinIndicator.js +1 -1
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Klinger/KlingerIndicator.js +1 -1
- package/es-modules/Stock/Indicators/LinearRegression/LinearRegressionIndicator.js +7 -7
- package/es-modules/Stock/Indicators/MultipleLinesComposition.js +9 -9
- package/es-modules/Stock/Indicators/OBV/OBVIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PPO/PPOIndicator.js +1 -1
- package/es-modules/Stock/Indicators/PivotPoints/PivotPointsIndicator.js +2 -2
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Supertrend/SupertrendIndicator.js +16 -17
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +4 -5
- package/es-modules/Stock/Indicators/WilliamsR/WilliamsRIndicator.js +1 -1
- package/es-modules/Stock/Indicators/Zigzag/ZigzagIndicator.js +5 -5
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +188 -0
- package/es-modules/Stock/Navigator/Navigator.js +42 -27
- package/es-modules/Stock/Navigator/NavigatorComposition.js +10 -149
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +16 -2
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +334 -0
- package/es-modules/Stock/Navigator/StandaloneNavigatorDefaults.js +64 -0
- package/es-modules/Stock/RangeSelector/RangeSelector.js +28 -16
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +2 -2
- package/es-modules/Stock/Scrollbar/Scrollbar.js +10 -10
- package/es-modules/Stock/Scrollbar/ScrollbarDefaults.js +1 -3
- package/es-modules/Stock/StockTools/StockToolbar.js +6 -5
- package/es-modules/Stock/StockTools/StockTools.js +10 -13
- package/es-modules/Stock/StockTools/StockToolsBindings.js +35 -35
- package/es-modules/Stock/StockTools/StockToolsDefaults.js +2 -1
- package/es-modules/Stock/StockTools/StockToolsGui.js +7 -8
- package/es-modules/Stock/StockTools/StockToolsUtilities.js +8 -9
- package/es-modules/Stock/Utilities/StockUtilities.js +41 -0
- package/es-modules/masters/highcharts-3d.src.js +2 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +2 -1
- package/es-modules/masters/highcharts.src.js +41 -40
- 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 +3 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +3 -1
- package/es-modules/masters/indicators/ao.src.js +3 -1
- package/es-modules/masters/indicators/apo.src.js +3 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +3 -1
- package/es-modules/masters/indicators/aroon.src.js +3 -1
- package/es-modules/masters/indicators/atr.src.js +3 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +3 -1
- package/es-modules/masters/indicators/cci.src.js +3 -1
- package/es-modules/masters/indicators/chaikin.src.js +3 -1
- package/es-modules/masters/indicators/cmf.src.js +3 -1
- package/es-modules/masters/indicators/cmo.src.js +3 -1
- package/es-modules/masters/indicators/dema.src.js +3 -1
- package/es-modules/masters/indicators/disparity-index.src.js +3 -1
- package/es-modules/masters/indicators/dmi.src.js +3 -1
- package/es-modules/masters/indicators/dpo.src.js +3 -1
- package/es-modules/masters/indicators/ema.src.js +2 -0
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +3 -1
- package/es-modules/masters/indicators/indicators-all.src.js +3 -1
- package/es-modules/masters/indicators/indicators.src.js +7 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +3 -1
- package/es-modules/masters/indicators/klinger.src.js +3 -1
- package/es-modules/masters/indicators/macd.src.js +3 -1
- package/es-modules/masters/indicators/mfi.src.js +3 -1
- package/es-modules/masters/indicators/momentum.src.js +3 -1
- package/es-modules/masters/indicators/natr.src.js +3 -1
- package/es-modules/masters/indicators/obv.src.js +3 -1
- package/es-modules/masters/indicators/pivot-points.src.js +3 -1
- package/es-modules/masters/indicators/ppo.src.js +3 -1
- package/es-modules/masters/indicators/price-channel.src.js +3 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +3 -1
- package/es-modules/masters/indicators/psar.src.js +3 -1
- package/es-modules/masters/indicators/regressions.src.js +3 -1
- package/es-modules/masters/indicators/roc.src.js +3 -1
- package/es-modules/masters/indicators/rsi.src.js +3 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +3 -1
- package/es-modules/masters/indicators/stochastic.src.js +3 -1
- package/es-modules/masters/indicators/supertrend.src.js +3 -1
- package/es-modules/masters/indicators/tema.src.js +3 -1
- package/es-modules/masters/indicators/trendline.src.js +3 -1
- package/es-modules/masters/indicators/trix.src.js +3 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +3 -1
- package/es-modules/masters/indicators/vwap.src.js +3 -1
- package/es-modules/masters/indicators/williams-r.src.js +3 -1
- package/es-modules/masters/indicators/wma.src.js +3 -1
- package/es-modules/masters/indicators/zigzag.src.js +3 -1
- package/es-modules/masters/modules/accessibility.src.js +4 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +3 -5
- package/es-modules/masters/modules/annotations.src.js +6 -3
- package/es-modules/masters/modules/arc-diagram.src.js +3 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +2 -1
- package/es-modules/masters/modules/boost-canvas.src.js +2 -1
- package/es-modules/masters/modules/boost.src.js +3 -2
- package/es-modules/masters/modules/broken-axis.src.js +4 -3
- package/es-modules/masters/modules/bullet.src.js +3 -1
- package/es-modules/masters/modules/coloraxis.src.js +4 -3
- package/es-modules/masters/modules/current-date-indicator.src.js +2 -1
- package/es-modules/masters/modules/cylinder.src.js +3 -1
- package/es-modules/masters/modules/data-tools.src.js +9 -8
- package/es-modules/masters/modules/data.src.js +9 -8
- package/es-modules/masters/modules/datagrouping.src.js +7 -5
- package/es-modules/masters/modules/debugger.src.js +3 -2
- package/es-modules/masters/modules/dependency-wheel.src.js +3 -1
- package/es-modules/masters/modules/dotplot.src.js +3 -1
- package/es-modules/masters/modules/drag-panes.src.js +2 -1
- package/es-modules/masters/modules/draggable-points.src.js +2 -1
- package/es-modules/masters/modules/drilldown.src.js +3 -2
- package/es-modules/masters/modules/dumbbell.src.js +3 -1
- package/es-modules/masters/modules/export-data.src.js +5 -4
- package/es-modules/masters/modules/exporting.src.js +6 -5
- package/es-modules/masters/modules/flowmap.src.js +3 -1
- package/es-modules/masters/modules/full-screen.src.js +4 -3
- package/es-modules/masters/modules/funnel.src.js +2 -1
- package/es-modules/masters/modules/funnel3d.src.js +4 -3
- package/es-modules/masters/modules/gantt.src.js +15 -17
- package/es-modules/masters/modules/geoheatmap.src.js +3 -1
- package/es-modules/masters/modules/grid-axis.src.js +2 -1
- package/es-modules/masters/modules/heatmap.src.js +3 -5
- package/es-modules/masters/modules/heikinashi.src.js +2 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +3 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +3 -1
- package/es-modules/masters/modules/item-series.src.js +3 -1
- package/es-modules/masters/modules/lollipop.src.js +3 -1
- package/es-modules/masters/modules/map.src.js +15 -10
- package/es-modules/masters/modules/marker-clusters.src.js +2 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +4 -2
- package/es-modules/masters/modules/navigator.src.d.ts +1 -0
- package/es-modules/masters/modules/navigator.src.js +19 -0
- package/es-modules/masters/modules/networkgraph.src.js +2 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +2 -1
- package/es-modules/masters/modules/offline-exporting.src.js +4 -3
- package/es-modules/masters/modules/organization.src.js +3 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +4 -2
- package/es-modules/masters/modules/parallel-coordinates.src.js +2 -1
- package/es-modules/masters/modules/pareto.src.js +3 -1
- package/es-modules/masters/modules/pathfinder.src.js +4 -3
- package/es-modules/masters/modules/pattern-fill.src.js +2 -1
- package/es-modules/masters/modules/pictorial.src.js +3 -1
- package/es-modules/masters/modules/price-indicator.src.js +2 -1
- package/es-modules/masters/modules/pyramid3d.src.js +3 -1
- package/es-modules/masters/modules/sankey.src.js +3 -1
- package/es-modules/masters/modules/series-label.src.js +2 -1
- package/es-modules/masters/modules/series-on-point.src.js +2 -1
- package/es-modules/masters/modules/solid-gauge.src.js +3 -1
- package/es-modules/masters/modules/sonification.src.js +2 -1
- package/es-modules/masters/modules/static-scale.src.js +2 -1
- package/es-modules/masters/modules/stock-tools.src.js +5 -3
- package/es-modules/masters/modules/stock.src.js +20 -15
- package/es-modules/masters/modules/streamgraph.src.js +3 -1
- package/es-modules/masters/modules/sunburst.src.js +4 -3
- package/es-modules/masters/modules/tiledwebmap.src.js +5 -4
- package/es-modules/masters/modules/tilemap.src.js +2 -1
- package/es-modules/masters/modules/timeline.src.js +3 -1
- package/es-modules/masters/modules/treegraph.src.js +3 -1
- package/es-modules/masters/modules/treegrid.src.js +2 -2
- package/es-modules/masters/modules/treemap.src.js +5 -4
- package/es-modules/masters/modules/variable-pie.src.js +3 -1
- package/es-modules/masters/modules/variwide.src.js +2 -1
- package/es-modules/masters/modules/vector.src.js +3 -1
- package/es-modules/masters/modules/venn.src.js +3 -1
- package/es-modules/masters/modules/windbarb.src.js +3 -1
- package/es-modules/masters/modules/wordcloud.src.js +3 -1
- package/es-modules/masters/modules/xrange.src.js +2 -1
- package/es-modules/masters/standalone-navigator.src.js +13 -0
- package/es-modules/masters/themes/avocado.src.js +2 -1
- package/es-modules/masters/themes/brand-dark.src.js +2 -1
- package/es-modules/masters/themes/brand-light.src.js +2 -1
- package/es-modules/masters/themes/dark-blue.src.js +2 -1
- package/es-modules/masters/themes/dark-green.src.js +2 -1
- package/es-modules/masters/themes/dark-unica.src.js +2 -1
- package/es-modules/masters/themes/gray.src.js +2 -1
- package/es-modules/masters/themes/grid-light.src.js +2 -1
- package/es-modules/masters/themes/grid.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +2 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +2 -1
- package/es-modules/masters/themes/sand-signika.src.js +2 -1
- package/es-modules/masters/themes/skies.src.js +2 -1
- package/es-modules/masters/themes/sunset.src.js +2 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -0
- package/globals.d.ts +9 -0
- package/globals.src.d.ts +9 -0
- package/highcharts-3d.js +3 -3
- package/highcharts-3d.src.js +32 -33
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +5703 -5639
- package/highcharts-more.d.ts +4 -0
- package/highcharts-more.js +3 -3
- package/highcharts-more.src.d.ts +4 -0
- package/highcharts-more.src.js +88 -87
- package/highcharts.d.ts +834 -5365
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +834 -5365
- package/highcharts.src.js +1583 -1682
- package/highmaps.js +4 -4
- package/highmaps.src.js +1837 -1835
- package/highstock.js +4 -4
- package/highstock.src.js +12488 -12510
- package/indicators/acceleration-bands.js +3 -3
- package/indicators/acceleration-bands.src.js +12 -11
- package/indicators/accumulation-distribution.js +3 -3
- package/indicators/accumulation-distribution.src.js +6 -3
- package/indicators/ao.js +3 -3
- package/indicators/ao.src.js +3 -2
- package/indicators/apo.js +3 -3
- package/indicators/apo.src.js +4 -3
- package/indicators/aroon-oscillator.js +3 -3
- package/indicators/aroon-oscillator.src.js +12 -11
- package/indicators/aroon.js +3 -3
- package/indicators/aroon.src.js +13 -12
- package/indicators/atr.js +3 -3
- package/indicators/atr.src.js +3 -2
- package/indicators/bollinger-bands.js +3 -3
- package/indicators/bollinger-bands.src.js +12 -11
- package/indicators/cci.js +3 -3
- package/indicators/cci.src.js +3 -2
- package/indicators/chaikin.js +3 -3
- package/indicators/chaikin.src.js +7 -4
- package/indicators/cmf.js +3 -3
- package/indicators/cmf.src.js +4 -3
- package/indicators/cmo.js +3 -3
- package/indicators/cmo.src.js +5 -4
- package/indicators/dema.js +3 -3
- package/indicators/dema.src.js +3 -2
- package/indicators/disparity-index.js +3 -3
- package/indicators/disparity-index.src.js +3 -2
- package/indicators/dmi.js +3 -3
- package/indicators/dmi.src.js +12 -11
- package/indicators/dpo.js +3 -3
- package/indicators/dpo.src.js +4 -3
- package/indicators/ema.js +1 -1
- package/indicators/ema.src.js +2 -1
- package/indicators/ichimoku-kinko-hyo.js +3 -3
- package/indicators/ichimoku-kinko-hyo.src.js +3 -2
- package/indicators/indicators-all.js +3 -3
- package/indicators/indicators-all.src.js +63 -60
- package/indicators/indicators.js +3 -3
- package/indicators/indicators.src.js +286 -3
- package/indicators/keltner-channels.js +3 -3
- package/indicators/keltner-channels.src.js +12 -11
- package/indicators/klinger.js +3 -3
- package/indicators/klinger.src.js +13 -12
- package/indicators/macd.js +3 -3
- package/indicators/macd.src.js +3 -2
- package/indicators/mfi.js +3 -3
- package/indicators/mfi.src.js +3 -2
- package/indicators/momentum.js +3 -3
- package/indicators/momentum.src.js +3 -2
- package/indicators/natr.js +3 -3
- package/indicators/natr.src.js +3 -2
- package/indicators/obv.js +3 -3
- package/indicators/obv.src.js +4 -3
- package/indicators/pivot-points.js +3 -3
- package/indicators/pivot-points.src.js +5 -4
- package/indicators/ppo.js +3 -3
- package/indicators/ppo.src.js +4 -3
- package/indicators/price-channel.js +3 -3
- package/indicators/price-channel.src.js +12 -11
- package/indicators/price-envelopes.js +3 -3
- package/indicators/price-envelopes.src.js +12 -11
- package/indicators/psar.js +3 -3
- package/indicators/psar.src.js +3 -2
- package/indicators/regressions.js +3 -3
- package/indicators/regressions.src.js +10 -9
- package/indicators/roc.js +3 -3
- package/indicators/roc.src.js +3 -2
- package/indicators/rsi.js +3 -3
- package/indicators/rsi.src.js +3 -2
- package/indicators/slow-stochastic.js +3 -3
- package/indicators/slow-stochastic.src.js +3 -2
- package/indicators/stochastic.js +3 -3
- package/indicators/stochastic.src.js +12 -11
- package/indicators/supertrend.js +3 -3
- package/indicators/supertrend.src.js +20 -19
- package/indicators/tema.js +3 -3
- package/indicators/tema.src.js +3 -2
- package/indicators/trendline.js +3 -3
- package/indicators/trendline.src.js +3 -2
- package/indicators/trix.js +3 -3
- package/indicators/trix.src.js +3 -2
- package/indicators/volume-by-price.js +3 -3
- package/indicators/volume-by-price.src.js +8 -7
- package/indicators/vwap.js +3 -3
- package/indicators/vwap.src.js +3 -2
- package/indicators/williams-r.js +3 -3
- package/indicators/williams-r.src.js +4 -3
- package/indicators/wma.js +3 -3
- package/indicators/wma.src.js +3 -2
- package/indicators/zigzag.js +3 -3
- package/indicators/zigzag.src.js +8 -7
- package/lib/svg2pdf.js +7 -7
- package/lib/svg2pdf.src.js +185 -150
- package/modules/accessibility.js +3 -3
- package/modules/accessibility.src.js +664 -2793
- package/modules/annotations-advanced.d.ts +3 -0
- package/modules/annotations-advanced.js +3 -3
- package/modules/annotations-advanced.src.d.ts +3 -0
- package/modules/annotations-advanced.src.js +2949 -2920
- package/modules/annotations.d.ts +0 -3
- package/modules/annotations.js +3 -3
- package/modules/annotations.src.d.ts +0 -3
- package/modules/annotations.src.js +2926 -2905
- package/modules/arc-diagram.js +3 -3
- package/modules/arc-diagram.src.js +8 -6
- package/modules/arrow-symbols.js +3 -3
- package/modules/arrow-symbols.src.js +10 -13
- package/modules/boost-canvas.js +3 -3
- package/modules/boost-canvas.src.js +73 -26
- package/modules/boost.js +3 -3
- package/modules/boost.src.js +108 -30
- package/modules/broken-axis.js +3 -3
- package/modules/broken-axis.src.js +9 -9
- package/modules/bullet.js +3 -3
- package/modules/bullet.src.js +5 -4
- package/modules/coloraxis.js +3 -3
- package/modules/coloraxis.src.js +10 -9
- package/modules/current-date-indicator.js +3 -3
- package/modules/current-date-indicator.src.js +3 -2
- package/modules/cylinder.js +3 -3
- package/modules/cylinder.src.js +12 -11
- package/modules/data-tools.js +3 -3
- package/modules/data-tools.src.js +53 -36
- package/modules/data.d.ts +2 -2
- package/modules/data.js +3 -3
- package/modules/data.src.d.ts +2 -2
- package/modules/data.src.js +24 -23
- package/modules/datagrouping.js +3 -3
- package/modules/datagrouping.src.js +25 -23
- package/modules/debugger.js +3 -3
- package/modules/debugger.src.js +6 -5
- package/modules/dependency-wheel.js +3 -3
- package/modules/dependency-wheel.src.js +7 -5
- package/modules/dotplot.js +3 -3
- package/modules/dotplot.src.js +3 -2
- package/modules/drag-panes.js +3 -3
- package/modules/drag-panes.src.js +19 -21
- package/modules/draggable-points.js +3 -3
- package/modules/draggable-points.src.js +18 -16
- package/modules/drilldown.js +3 -3
- package/modules/drilldown.src.js +29 -26
- package/modules/dumbbell.js +3 -3
- package/modules/dumbbell.src.js +5 -4
- package/modules/export-data.js +3 -3
- package/modules/export-data.src.js +33 -22
- package/modules/exporting.d.ts +1 -1
- package/modules/exporting.js +3 -3
- package/modules/exporting.src.d.ts +1 -1
- package/modules/exporting.src.js +40 -39
- package/modules/flowmap.js +3 -3
- package/modules/flowmap.src.js +3 -2
- package/modules/full-screen.js +3 -3
- package/modules/full-screen.src.js +9 -13
- package/modules/funnel.js +3 -3
- package/modules/funnel.src.js +3 -2
- package/modules/funnel3d.js +3 -3
- package/modules/funnel3d.src.js +12 -12
- package/modules/gantt.d.ts +3 -4
- package/modules/gantt.js +3 -3
- package/modules/gantt.src.d.ts +3 -4
- package/modules/gantt.src.js +4165 -4002
- package/modules/geoheatmap.js +3 -3
- package/modules/geoheatmap.src.js +8 -7
- package/modules/grid-axis.js +3 -3
- package/modules/grid-axis.src.js +9 -8
- package/modules/heatmap.d.ts +2 -2
- package/modules/heatmap.js +3 -3
- package/modules/heatmap.src.d.ts +2 -2
- package/modules/heatmap.src.js +21 -15
- package/modules/heikinashi.js +3 -3
- package/modules/heikinashi.src.js +9 -6
- package/modules/histogram-bellcurve.js +3 -3
- package/modules/histogram-bellcurve.src.js +4 -3
- package/modules/hollowcandlestick.js +3 -3
- package/modules/hollowcandlestick.src.js +5 -4
- package/modules/item-series.js +3 -3
- package/modules/item-series.src.js +4 -3
- package/modules/lollipop.js +3 -3
- package/modules/lollipop.src.js +6 -3
- package/modules/map.d.ts +22 -1
- package/modules/map.js +3 -3
- package/modules/map.src.d.ts +22 -1
- package/modules/map.src.js +256 -155
- package/modules/marker-clusters.js +3 -3
- package/modules/marker-clusters.src.js +35 -37
- package/modules/mouse-wheel-zoom.js +3 -3
- package/modules/mouse-wheel-zoom.src.js +55 -163
- package/modules/navigator.d.ts +148 -0
- package/modules/navigator.js +9 -0
- package/modules/navigator.src.d.ts +148 -0
- package/modules/navigator.src.js +3921 -0
- package/modules/networkgraph.d.ts +2 -2
- package/modules/networkgraph.js +3 -3
- package/modules/networkgraph.src.d.ts +2 -2
- package/modules/networkgraph.src.js +36 -35
- package/modules/no-data-to-display.js +3 -3
- package/modules/no-data-to-display.src.js +6 -6
- package/modules/offline-exporting.js +3 -3
- package/modules/offline-exporting.src.js +10 -10
- package/modules/organization.js +3 -3
- package/modules/organization.src.js +41 -15
- package/modules/overlapping-datalabels.js +3 -3
- package/modules/overlapping-datalabels.src.js +4 -2
- package/modules/parallel-coordinates.js +3 -3
- package/modules/parallel-coordinates.src.js +12 -12
- package/modules/pareto.js +3 -3
- package/modules/pareto.src.js +3 -2
- package/modules/pathfinder.js +3 -3
- package/modules/pathfinder.src.js +18 -22
- package/modules/pattern-fill.js +3 -3
- package/modules/pattern-fill.src.js +22 -23
- package/modules/pictorial.js +3 -3
- package/modules/pictorial.src.js +25 -26
- package/modules/price-indicator.js +3 -3
- package/modules/price-indicator.src.js +3 -2
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.src.js +3 -2
- package/modules/sankey.js +3 -3
- package/modules/sankey.src.js +93 -26
- package/modules/series-label.js +3 -3
- package/modules/series-label.src.js +28 -19
- package/modules/series-on-point.js +3 -3
- package/modules/series-on-point.src.js +5 -4
- package/modules/solid-gauge.js +3 -3
- package/modules/solid-gauge.src.js +3 -2
- package/modules/sonification.d.ts +2 -2
- package/modules/sonification.js +3 -3
- package/modules/sonification.src.d.ts +2 -2
- package/modules/sonification.src.js +8 -6
- package/modules/static-scale.js +3 -3
- package/modules/static-scale.src.js +6 -6
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +109 -96
- package/modules/stock.d.ts +1 -1
- package/modules/stock.js +3 -3
- package/modules/stock.src.d.ts +1 -1
- package/modules/stock.src.js +10762 -10685
- package/modules/streamgraph.js +3 -3
- package/modules/streamgraph.src.js +3 -2
- package/modules/sunburst.js +3 -3
- package/modules/sunburst.src.js +50 -37
- package/modules/tiledwebmap.js +4 -4
- package/modules/tiledwebmap.src.js +28 -29
- package/modules/tilemap.js +3 -3
- package/modules/tilemap.src.js +4 -3
- package/modules/timeline.js +3 -3
- package/modules/timeline.src.js +5 -4
- package/modules/treegraph.js +3 -3
- package/modules/treegraph.src.js +58 -23
- package/modules/treegrid.js +3 -3
- package/modules/treegrid.src.js +49 -33
- package/modules/treemap.js +3 -3
- package/modules/treemap.src.js +44 -26
- package/modules/variable-pie.js +3 -3
- package/modules/variable-pie.src.js +3 -2
- package/modules/variwide.js +3 -3
- package/modules/variwide.src.js +9 -4
- package/modules/vector.js +3 -3
- package/modules/vector.src.js +3 -2
- package/modules/venn.js +3 -3
- package/modules/venn.src.js +16 -17
- package/modules/windbarb.js +3 -3
- package/modules/windbarb.src.js +5 -4
- package/modules/wordcloud.js +3 -3
- package/modules/wordcloud.src.js +10 -8
- package/modules/xrange.js +3 -3
- package/modules/xrange.src.js +5 -4
- package/package.json +1 -1
- package/standalone-navigator.js +2 -0
- package/standalone-navigator.src.js +49402 -0
- package/themes/avocado.js +3 -3
- package/themes/avocado.src.js +2 -1
- package/themes/brand-dark.js +3 -3
- package/themes/brand-dark.src.js +2 -1
- package/themes/brand-light.js +3 -3
- package/themes/brand-light.src.js +2 -1
- package/themes/dark-blue.js +3 -3
- package/themes/dark-blue.src.js +2 -1
- package/themes/dark-green.js +3 -3
- package/themes/dark-green.src.js +2 -1
- package/themes/dark-unica.js +3 -3
- package/themes/dark-unica.src.js +2 -1
- package/themes/gray.js +3 -3
- package/themes/gray.src.js +2 -1
- package/themes/grid-light.js +3 -3
- package/themes/grid-light.src.js +2 -1
- package/themes/grid.js +3 -3
- package/themes/grid.src.js +2 -1
- package/themes/high-contrast-dark.js +3 -3
- package/themes/high-contrast-dark.src.js +2 -1
- package/themes/high-contrast-light.js +3 -3
- package/themes/high-contrast-light.src.js +2 -1
- package/themes/sand-signika.js +3 -3
- package/themes/sand-signika.src.js +2 -1
- package/themes/skies.js +3 -3
- package/themes/skies.src.js +2 -1
- package/themes/sunset.js +3 -3
- package/themes/sunset.src.js +2 -1
- package/es-modules/Core/Renderer/HTML/HTMLRenderer.js +0 -259
- package/lib/canvg.js +0 -8
|
@@ -12,7 +12,7 @@ const { defined } = U;
|
|
|
12
12
|
* */
|
|
13
13
|
/**
|
|
14
14
|
* A basic type of an annotation. It allows to add custom labels
|
|
15
|
-
* or shapes. The items
|
|
15
|
+
* or shapes. The items can be tied to points, axis coordinates
|
|
16
16
|
* or chart pixel coordinates.
|
|
17
17
|
*
|
|
18
18
|
* @sample highcharts/annotations/basic/
|
|
@@ -140,7 +140,7 @@ const AnnotationDefaults = {
|
|
|
140
140
|
*/
|
|
141
141
|
borderColor: "#000000" /* Palette.neutralColor100 */,
|
|
142
142
|
/**
|
|
143
|
-
* The border radius in pixels for the
|
|
143
|
+
* The border radius in pixels for the annotation's label.
|
|
144
144
|
*
|
|
145
145
|
* @sample highcharts/annotations/label-presentation/
|
|
146
146
|
* Set labels graphic options
|
|
@@ -479,7 +479,7 @@ const AnnotationDefaults = {
|
|
|
479
479
|
*/
|
|
480
480
|
/**
|
|
481
481
|
* The type of the shape.
|
|
482
|
-
*
|
|
482
|
+
* Available options are circle, rect and ellipse.
|
|
483
483
|
*
|
|
484
484
|
* @sample highcharts/annotations/shape/
|
|
485
485
|
* Basic shape annotation
|
|
@@ -590,7 +590,7 @@ const AnnotationDefaults = {
|
|
|
590
590
|
*/
|
|
591
591
|
/**
|
|
592
592
|
* Event callback when annotation is updated (e.g. drag and
|
|
593
|
-
*
|
|
593
|
+
* dropped or resized by control points).
|
|
594
594
|
*
|
|
595
595
|
* @type {Highcharts.EventCallbackFunction<Highcharts.Annotation>}
|
|
596
596
|
* @since 7.1.0
|
|
@@ -44,7 +44,7 @@ class ControlPoint extends EventEmitter {
|
|
|
44
44
|
constructor(chart, target, options, index) {
|
|
45
45
|
super();
|
|
46
46
|
/**
|
|
47
|
-
* List of events for `
|
|
47
|
+
* List of events for `annotation.options.events` that should not be
|
|
48
48
|
* added to `annotation.graphic` but to the `annotation`.
|
|
49
49
|
* @private
|
|
50
50
|
* @name Highcharts.AnnotationControlPoint#nonDOMEvents
|
|
@@ -137,7 +137,7 @@ export default ControlPoint;
|
|
|
137
137
|
*
|
|
138
138
|
* */
|
|
139
139
|
/**
|
|
140
|
-
* Callback to modify annotation's
|
|
140
|
+
* Callback to modify annotation's positioner controls.
|
|
141
141
|
*
|
|
142
142
|
* @callback Highcharts.AnnotationControlPointPositionerFunction
|
|
143
143
|
* @param {Highcharts.AnnotationControlPoint} this
|
|
@@ -43,7 +43,9 @@ class Controllable {
|
|
|
43
43
|
* Redirect attr usage on the controllable graphic element.
|
|
44
44
|
* @private
|
|
45
45
|
*/
|
|
46
|
-
attr(
|
|
46
|
+
attr(
|
|
47
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
48
|
+
..._args) {
|
|
47
49
|
this.graphic.attr.apply(this.graphic, arguments);
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
@@ -106,7 +108,9 @@ class Controllable {
|
|
|
106
108
|
* Render a controllable.
|
|
107
109
|
* @private
|
|
108
110
|
*/
|
|
109
|
-
render(
|
|
111
|
+
render(
|
|
112
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
113
|
+
_parentGroup) {
|
|
110
114
|
this.renderControlPoints();
|
|
111
115
|
}
|
|
112
116
|
/**
|
|
@@ -210,7 +214,7 @@ export default Controllable;
|
|
|
210
214
|
*
|
|
211
215
|
* */
|
|
212
216
|
/**
|
|
213
|
-
* An object which
|
|
217
|
+
* An object which denotes a controllable's anchor positions - relative and
|
|
214
218
|
* absolute.
|
|
215
219
|
*
|
|
216
220
|
* @private
|
|
@@ -101,8 +101,8 @@ class ControllableEllipse extends Controllable {
|
|
|
101
101
|
(point2.x - point1.x) * (point2.x - point1.x));
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* The
|
|
105
|
-
* parameters
|
|
104
|
+
* The function calculates the svg attributes of the ellipse, and returns
|
|
105
|
+
* all parameters necessary to draw the ellipse.
|
|
106
106
|
* @private
|
|
107
107
|
* @param position
|
|
108
108
|
* Absolute position of the first point in points array
|
|
@@ -149,7 +149,7 @@ class ControllableEllipse extends Controllable {
|
|
|
149
149
|
* Redraw the element
|
|
150
150
|
* @private
|
|
151
151
|
* @param animation
|
|
152
|
-
* Display an
|
|
152
|
+
* Display an animation
|
|
153
153
|
*/
|
|
154
154
|
redraw(animation) {
|
|
155
155
|
if (this.graphic) {
|
|
@@ -7,11 +7,9 @@
|
|
|
7
7
|
import Controllable from './Controllable.js';
|
|
8
8
|
import F from '../../../Core/Templating.js';
|
|
9
9
|
const { format } = F;
|
|
10
|
-
import H from '../../../Core/Globals.js';
|
|
11
|
-
const { composed } = H;
|
|
12
10
|
import MockPoint from '../MockPoint.js';
|
|
13
11
|
import U from '../../../Core/Utilities.js';
|
|
14
|
-
const { extend, isNumber, pick
|
|
12
|
+
const { extend, isNumber, pick } = U;
|
|
15
13
|
/* *
|
|
16
14
|
*
|
|
17
15
|
* Functions
|
|
@@ -119,10 +117,8 @@ class ControllableLabel extends Controllable {
|
|
|
119
117
|
};
|
|
120
118
|
}
|
|
121
119
|
static compose(SVGRendererClass) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
svgRendererProto.symbols.connector = symbolConnector;
|
|
125
|
-
}
|
|
120
|
+
const symbols = SVGRendererClass.prototype.symbols;
|
|
121
|
+
symbols.connector = symbolConnector;
|
|
126
122
|
}
|
|
127
123
|
/**
|
|
128
124
|
* Returns new alignment options for a label if the label is outside the
|
|
@@ -289,7 +285,9 @@ class ControllableLabel extends Controllable {
|
|
|
289
285
|
* For a controllable label, we need to subtract translation from
|
|
290
286
|
* options.
|
|
291
287
|
*/
|
|
292
|
-
anchor(
|
|
288
|
+
anchor(
|
|
289
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
290
|
+
_point) {
|
|
293
291
|
const anchor = super.anchor.apply(this, arguments), x = this.options.x || 0, y = this.options.y || 0;
|
|
294
292
|
anchor.absolutePosition.x -= x;
|
|
295
293
|
anchor.absolutePosition.y -= y;
|
|
@@ -310,7 +308,8 @@ class ControllableLabel extends Controllable {
|
|
|
310
308
|
itemPosition = tooltip.getPosition.call({
|
|
311
309
|
chart,
|
|
312
310
|
distance: pick(itemOptions.distance, 16),
|
|
313
|
-
getPlayingField: tooltip.getPlayingField
|
|
311
|
+
getPlayingField: tooltip.getPlayingField,
|
|
312
|
+
pointer: tooltip.pointer
|
|
314
313
|
}, width, height, {
|
|
315
314
|
plotX: anchorRelativePosition.x,
|
|
316
315
|
plotY: anchorRelativePosition.y,
|
|
@@ -8,9 +8,8 @@ import Controllable from './Controllable.js';
|
|
|
8
8
|
import ControllableDefaults from './ControllableDefaults.js';
|
|
9
9
|
const { defaultMarkers } = ControllableDefaults;
|
|
10
10
|
import H from '../../../Core/Globals.js';
|
|
11
|
-
const { composed } = H;
|
|
12
11
|
import U from '../../../Core/Utilities.js';
|
|
13
|
-
const { addEvent, defined, extend, merge,
|
|
12
|
+
const { addEvent, defined, extend, merge, uniqueKey } = U;
|
|
14
13
|
/* *
|
|
15
14
|
*
|
|
16
15
|
* Constants
|
|
@@ -106,8 +105,8 @@ class ControllablePath extends Controllable {
|
|
|
106
105
|
*
|
|
107
106
|
* */
|
|
108
107
|
static compose(ChartClass, SVGRendererClass) {
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
const svgRendererProto = SVGRendererClass.prototype;
|
|
109
|
+
if (!svgRendererProto.addMarker) {
|
|
111
110
|
addEvent(ChartClass, 'afterGetContainer', onChartAfterGetContainer);
|
|
112
111
|
svgRendererProto.addMarker = svgRendererAddMarker;
|
|
113
112
|
}
|
|
@@ -46,7 +46,7 @@ class EventEmitter {
|
|
|
46
46
|
objectEach(emitter.options.events, (event, type) => {
|
|
47
47
|
const eventHandler = function (e) {
|
|
48
48
|
if (type !== 'click' || !emitter.cancelClick) {
|
|
49
|
-
event.call(emitter, emitter.chart.pointer
|
|
49
|
+
event.call(emitter, emitter.chart.pointer?.normalize(e), emitter.target);
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
if ((emitter.nonDOMEvents || []).indexOf(type) === -1) {
|
|
@@ -181,20 +181,20 @@ class EventEmitter {
|
|
|
181
181
|
// Using experimental property on event object to check if event was
|
|
182
182
|
// created by touch on screen on hybrid device (#18122)
|
|
183
183
|
firesTouchEvents = (e?.sourceCapabilities?.firesTouchEvents) || false;
|
|
184
|
-
e = pointer
|
|
184
|
+
e = pointer?.normalize(e) || e;
|
|
185
185
|
let prevChartX = e.chartX, prevChartY = e.chartY;
|
|
186
186
|
emitter.cancelClick = false;
|
|
187
187
|
emitter.chart.hasDraggedAnnotation = true;
|
|
188
188
|
emitter.removeDrag = addEvent(doc, isTouchDevice || firesTouchEvents ? 'touchmove' : 'mousemove', function (e) {
|
|
189
189
|
emitter.hasDragged = true;
|
|
190
|
-
e = pointer
|
|
190
|
+
e = pointer?.normalize(e) || e;
|
|
191
191
|
e.prevChartX = prevChartX;
|
|
192
192
|
e.prevChartY = prevChartY;
|
|
193
193
|
fireEvent(emitter, 'drag', e);
|
|
194
194
|
prevChartX = e.chartX;
|
|
195
195
|
prevChartY = e.chartY;
|
|
196
196
|
}, isTouchDevice || firesTouchEvents ? { passive: false } : void 0);
|
|
197
|
-
emitter.removeMouseUp = addEvent(doc, isTouchDevice || firesTouchEvents ? 'touchend' : 'mouseup', function (
|
|
197
|
+
emitter.removeMouseUp = addEvent(doc, isTouchDevice || firesTouchEvents ? 'touchend' : 'mouseup', function () {
|
|
198
198
|
// Sometimes the target is the annotation and sometimes its the
|
|
199
199
|
// controllable
|
|
200
200
|
const annotation = pick(emitter.target && emitter.target.annotation, emitter.target);
|
|
@@ -208,13 +208,13 @@ class EventEmitter {
|
|
|
208
208
|
// ControlPoints vs Annotation:
|
|
209
209
|
fireEvent(pick(annotation, // #15952
|
|
210
210
|
emitter), 'afterUpdate');
|
|
211
|
-
emitter.onMouseUp(
|
|
211
|
+
emitter.onMouseUp();
|
|
212
212
|
}, isTouchDevice || firesTouchEvents ? { passive: false } : void 0);
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
215
|
* Mouse up handler.
|
|
216
216
|
*/
|
|
217
|
-
onMouseUp(
|
|
217
|
+
onMouseUp() {
|
|
218
218
|
const chart = this.chart, annotation = this.target || this, annotationsOptions = chart.options.annotations, index = chart.annotations.indexOf(annotation);
|
|
219
219
|
this.removeDocEvents();
|
|
220
220
|
annotationsOptions[index] = annotation.options;
|
|
@@ -17,7 +17,7 @@ import H from '../../Core/Globals.js';
|
|
|
17
17
|
const { composed, doc, win } = H;
|
|
18
18
|
import NavigationBindingDefaults from './NavigationBindingsDefaults.js';
|
|
19
19
|
import NBU from './NavigationBindingsUtilities.js';
|
|
20
|
-
const { getFieldType } = NBU;
|
|
20
|
+
const { getAssignedAxis, getFieldType } = NBU;
|
|
21
21
|
import U from '../../Core/Utilities.js';
|
|
22
22
|
const { addEvent, attr, defined, fireEvent, isArray, isFunction, isNumber, isObject, merge, objectEach, pick, pushUnique } = U;
|
|
23
23
|
/* *
|
|
@@ -93,7 +93,7 @@ function onChartRender() {
|
|
|
93
93
|
this.navigationBindings.container[0]) {
|
|
94
94
|
const container = this.navigationBindings.container[0];
|
|
95
95
|
objectEach(navigationBindings.boundClassNames, (value, key) => {
|
|
96
|
-
// Get the HTML element
|
|
96
|
+
// Get the HTML element corresponding to the className taken
|
|
97
97
|
// from StockToolsBindings.
|
|
98
98
|
const buttonNode = container.querySelectorAll('.' + key);
|
|
99
99
|
if (buttonNode) {
|
|
@@ -224,7 +224,7 @@ class NavigationBindings {
|
|
|
224
224
|
*
|
|
225
225
|
* */
|
|
226
226
|
static compose(AnnotationClass, ChartClass) {
|
|
227
|
-
if (pushUnique(composed,
|
|
227
|
+
if (pushUnique(composed, 'NavigationBindings')) {
|
|
228
228
|
addEvent(AnnotationClass, 'remove', onAnnotationRemove);
|
|
229
229
|
// Basic shapes:
|
|
230
230
|
selectableAnnotation(AnnotationClass);
|
|
@@ -261,8 +261,15 @@ class NavigationBindings {
|
|
|
261
261
|
* Functions
|
|
262
262
|
*
|
|
263
263
|
* */
|
|
264
|
+
getCoords(e) {
|
|
265
|
+
const coords = this.chart.pointer?.getCoordinates(e);
|
|
266
|
+
return [
|
|
267
|
+
coords && getAssignedAxis(coords.xAxis),
|
|
268
|
+
coords && getAssignedAxis(coords.yAxis)
|
|
269
|
+
];
|
|
270
|
+
}
|
|
264
271
|
/**
|
|
265
|
-
*
|
|
272
|
+
* Init all events connected to NavigationBindings.
|
|
266
273
|
*
|
|
267
274
|
* @private
|
|
268
275
|
* @function Highcharts.NavigationBindings#initEvents
|
|
@@ -317,7 +324,7 @@ class NavigationBindings {
|
|
|
317
324
|
});
|
|
318
325
|
}
|
|
319
326
|
/**
|
|
320
|
-
* Hook for click on a button, method
|
|
327
|
+
* Hook for click on a button, method selects/unselects buttons,
|
|
321
328
|
* then calls `bindings.init` callback.
|
|
322
329
|
*
|
|
323
330
|
* @private
|
|
@@ -497,19 +504,23 @@ class NavigationBindings {
|
|
|
497
504
|
if (value !== 'undefined') {
|
|
498
505
|
let parent = config;
|
|
499
506
|
path.forEach((name, index) => {
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
507
|
+
if (name !== '__proto__' && name !== 'constructor') {
|
|
508
|
+
const nextName = pick(path[index + 1], '');
|
|
509
|
+
if (pathLength === index) {
|
|
510
|
+
// Last index, put value:
|
|
511
|
+
parent[name] = value;
|
|
512
|
+
}
|
|
513
|
+
else if (!parent[name]) {
|
|
514
|
+
// Create middle property:
|
|
515
|
+
parent[name] = nextName.match(/\d/g) ?
|
|
516
|
+
[] :
|
|
517
|
+
{};
|
|
518
|
+
parent = parent[name];
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
// Jump into next property
|
|
522
|
+
parent = parent[name];
|
|
523
|
+
}
|
|
513
524
|
}
|
|
514
525
|
});
|
|
515
526
|
}
|
|
@@ -122,7 +122,7 @@ const navigation = {
|
|
|
122
122
|
className: 'highcharts-circle-annotation',
|
|
123
123
|
/** @ignore-option */
|
|
124
124
|
start: function (e) {
|
|
125
|
-
const coords = this.chart.pointer
|
|
125
|
+
const coords = this.chart.pointer?.getCoordinates(e), coordsX = coords && getAssignedAxis(coords.xAxis), coordsY = coords && getAssignedAxis(coords.yAxis), navigation = this.chart.options.navigation;
|
|
126
126
|
// Exit if clicked out of axes area
|
|
127
127
|
if (!coordsX || !coordsY) {
|
|
128
128
|
return;
|
|
@@ -176,7 +176,7 @@ const navigation = {
|
|
|
176
176
|
ellipseAnnotation: {
|
|
177
177
|
className: 'highcharts-ellipse-annotation',
|
|
178
178
|
start: function (e) {
|
|
179
|
-
const coords = this.chart.pointer
|
|
179
|
+
const coords = this.chart.pointer?.getCoordinates(e), coordsX = coords && getAssignedAxis(coords.xAxis), coordsY = coords && getAssignedAxis(coords.yAxis), navigation = this.chart.options.navigation;
|
|
180
180
|
if (!coordsX || !coordsY) {
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
@@ -226,7 +226,7 @@ const navigation = {
|
|
|
226
226
|
className: 'highcharts-rectangle-annotation',
|
|
227
227
|
/** @ignore-option */
|
|
228
228
|
start: function (e) {
|
|
229
|
-
const coords = this.chart.pointer
|
|
229
|
+
const coords = this.chart.pointer?.getCoordinates(e), coordsX = coords && getAssignedAxis(coords.xAxis), coordsY = coords && getAssignedAxis(coords.yAxis);
|
|
230
230
|
// Exit if clicked out of axes area
|
|
231
231
|
if (!coordsX || !coordsY) {
|
|
232
232
|
return;
|
|
@@ -255,7 +255,7 @@ const navigation = {
|
|
|
255
255
|
steps: [
|
|
256
256
|
function (e, annotation) {
|
|
257
257
|
const shapes = annotation.options.shapes, points = ((shapes && shapes[0] && shapes[0].points) ||
|
|
258
|
-
[]), coords = this.chart.pointer
|
|
258
|
+
[]), coords = this.chart.pointer?.getCoordinates(e), coordsX = coords && getAssignedAxis(coords.xAxis), coordsY = coords && getAssignedAxis(coords.yAxis);
|
|
259
259
|
if (coordsX && coordsY) {
|
|
260
260
|
const x = coordsX.value, y = coordsY.value;
|
|
261
261
|
// Top right point
|
|
@@ -285,7 +285,7 @@ const navigation = {
|
|
|
285
285
|
className: 'highcharts-label-annotation',
|
|
286
286
|
/** @ignore-option */
|
|
287
287
|
start: function (e) {
|
|
288
|
-
const coords = this.chart.pointer
|
|
288
|
+
const coords = this.chart.pointer?.getCoordinates(e), coordsX = coords && getAssignedAxis(coords.xAxis), coordsY = coords && getAssignedAxis(coords.yAxis), navigation = this.chart.options.navigation;
|
|
289
289
|
// Exit if clicked out of axes area
|
|
290
290
|
if (!coordsX || !coordsY) {
|
|
291
291
|
return;
|
|
@@ -319,7 +319,7 @@ const navigation = {
|
|
|
319
319
|
* from a different server.
|
|
320
320
|
*
|
|
321
321
|
* @type {string}
|
|
322
|
-
* @default https://code.highcharts.com
|
|
322
|
+
* @default https://code.highcharts.com/@product.version@/gfx/stock-icons/
|
|
323
323
|
* @since 7.1.3
|
|
324
324
|
* @apioption navigation.iconsURL
|
|
325
325
|
*/
|
|
@@ -113,7 +113,7 @@ class Popup extends BaseForm {
|
|
|
113
113
|
* @private
|
|
114
114
|
*
|
|
115
115
|
* @param {string} option
|
|
116
|
-
* Chain of fields i.e params.styles.fontSize
|
|
116
|
+
* Chain of fields i.e params.styles.fontSize separated by the dot.
|
|
117
117
|
*
|
|
118
118
|
* @param {string} indicatorType
|
|
119
119
|
* Type of the indicator i.e. sma, ema...
|
|
@@ -73,22 +73,26 @@ function addToolbar(chart, options, callback) {
|
|
|
73
73
|
popupDiv.style.top = chart.plotTop + 10 + 'px';
|
|
74
74
|
}
|
|
75
75
|
// create label
|
|
76
|
-
createElement('
|
|
76
|
+
let label = createElement('p', {
|
|
77
|
+
className: 'highcharts-annotation-label'
|
|
78
|
+
}, void 0, popupDiv);
|
|
79
|
+
label.setAttribute('aria-label', 'Annotation type');
|
|
80
|
+
label.appendChild(doc.createTextNode(pick(
|
|
77
81
|
// Advanced annotations:
|
|
78
82
|
lang[options.langKey] || options.langKey,
|
|
79
83
|
// Basic shapes:
|
|
80
84
|
options.shapes && options.shapes[0].type, '')));
|
|
81
85
|
// add buttons
|
|
82
|
-
let button = this.addButton(popupDiv, lang.
|
|
83
|
-
button.className += ' highcharts-annotation-remove-button';
|
|
84
|
-
button.style['background-image'] = 'url(' +
|
|
85
|
-
this.iconsURL + 'destroy.svg)';
|
|
86
|
-
button = this.addButton(popupDiv, lang.editButton || 'Edit', 'edit', popupDiv, () => {
|
|
86
|
+
let button = this.addButton(popupDiv, lang.editButton || 'Edit', 'edit', popupDiv, () => {
|
|
87
87
|
showForm.call(this, 'annotation-edit', chart, options, callback);
|
|
88
88
|
});
|
|
89
89
|
button.className += ' highcharts-annotation-edit-button';
|
|
90
90
|
button.style['background-image'] = 'url(' +
|
|
91
91
|
this.iconsURL + 'edit.svg)';
|
|
92
|
+
button = this.addButton(popupDiv, lang.removeButton || 'Remove', 'remove', popupDiv, callback);
|
|
93
|
+
button.className += ' highcharts-annotation-remove-button';
|
|
94
|
+
button.style['background-image'] = 'url(' +
|
|
95
|
+
this.iconsURL + 'destroy.svg)';
|
|
92
96
|
}
|
|
93
97
|
/**
|
|
94
98
|
* Create annotation's form fields.
|
|
@@ -24,7 +24,7 @@ const { addEvent, pushUnique, wrap } = U;
|
|
|
24
24
|
* @private
|
|
25
25
|
*/
|
|
26
26
|
function compose(NagivationBindingsClass, PointerClass) {
|
|
27
|
-
if (pushUnique(composed,
|
|
27
|
+
if (pushUnique(composed, 'Popup')) {
|
|
28
28
|
addEvent(NagivationBindingsClass, 'closePopup', onNavigationBindingsClosePopup);
|
|
29
29
|
addEvent(NagivationBindingsClass, 'showPopup', onNavigationBindingsShowPopup);
|
|
30
30
|
wrap(PointerClass.prototype, 'onContainerMouseDown', wrapPointerOnContainerMouserDown);
|
|
@@ -47,7 +47,7 @@ function onNavigationBindingsShowPopup(config) {
|
|
|
47
47
|
this.popup = new Popup(this.chart.container, (this.chart.options.navigation.iconsURL ||
|
|
48
48
|
(this.chart.options.stockTools &&
|
|
49
49
|
this.chart.options.stockTools.gui.iconsURL) ||
|
|
50
|
-
'https://code.highcharts.com
|
|
50
|
+
'https://code.highcharts.com/@product.version@/gfx/stock-icons/'), this.chart);
|
|
51
51
|
}
|
|
52
52
|
this.popup.showForm(config.formType, this.chart, config.options, config.onSubmit);
|
|
53
53
|
}
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
import AST from '../../../Core/Renderer/HTML/AST.js';
|
|
14
14
|
import H from '../../../Core/Globals.js';
|
|
15
15
|
const { doc } = H;
|
|
16
|
-
import NU from '../NavigationBindingsUtilities.js';
|
|
17
|
-
const { annotationsFieldsTypes } = NU;
|
|
18
16
|
import SeriesRegistry from '../../../Core/Series/SeriesRegistry.js';
|
|
19
17
|
const { seriesTypes } = SeriesRegistry;
|
|
20
18
|
import U from '../../../Core/Utilities.js';
|
|
@@ -165,6 +163,22 @@ function addFormFields(chart, series, seriesType, rhsColWrapper) {
|
|
|
165
163
|
* For the first iteration, it's an empty string.
|
|
166
164
|
*/
|
|
167
165
|
function addIndicatorList(chart, parentDiv, listType, filter) {
|
|
166
|
+
function selectIndicator(series, indicatorType) {
|
|
167
|
+
const button = rhsColWrapper.parentNode
|
|
168
|
+
.children[1];
|
|
169
|
+
addFormFields.call(popup, chart, series, indicatorType, rhsColWrapper);
|
|
170
|
+
if (button) {
|
|
171
|
+
button.style.display = 'block';
|
|
172
|
+
}
|
|
173
|
+
// add hidden input with series.id
|
|
174
|
+
if (isEdit && series.options) {
|
|
175
|
+
createElement('input', {
|
|
176
|
+
type: 'hidden',
|
|
177
|
+
name: 'highcharts-id-' + indicatorType,
|
|
178
|
+
value: series.options.id
|
|
179
|
+
}, void 0, rhsColWrapper).setAttribute('highcharts-data-series-id', series.options.id);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
168
182
|
const popup = this, lang = popup.lang, lhsCol = parentDiv.querySelectorAll('.highcharts-popup-lhs-col')[0], rhsCol = parentDiv.querySelectorAll('.highcharts-popup-rhs-col')[0], isEdit = listType === 'edit', series = (isEdit ?
|
|
169
183
|
chart.series : // EDIT mode
|
|
170
184
|
chart.options.plotOptions || {} // ADD mode
|
|
@@ -181,7 +195,7 @@ function addIndicatorList(chart, parentDiv, listType, filter) {
|
|
|
181
195
|
else if (isArray(series)) {
|
|
182
196
|
filteredSeriesArray = filterSeriesArray.call(this, series);
|
|
183
197
|
}
|
|
184
|
-
// Sort indicators
|
|
198
|
+
// Sort indicators alphabetically.
|
|
185
199
|
stableSort(filteredSeriesArray, (a, b) => {
|
|
186
200
|
const seriesAName = a.indicatorFullName.toLowerCase(), seriesBName = b.indicatorFullName.toLowerCase();
|
|
187
201
|
return (seriesAName < seriesBName) ?
|
|
@@ -202,29 +216,20 @@ function addIndicatorList(chart, parentDiv, listType, filter) {
|
|
|
202
216
|
item = createElement('li', {
|
|
203
217
|
className: 'highcharts-indicator-list'
|
|
204
218
|
}, void 0, indicatorList);
|
|
205
|
-
|
|
219
|
+
let btn = createElement('button', {
|
|
220
|
+
className: 'highcharts-indicator-list-item',
|
|
221
|
+
textContent: indicatorFullName
|
|
222
|
+
}, void 0, item);
|
|
206
223
|
['click', 'touchstart'].forEach((eventName) => {
|
|
207
|
-
addEvent(
|
|
208
|
-
|
|
209
|
-
.children[1];
|
|
210
|
-
addFormFields.call(popup, chart, series, indicatorType, rhsColWrapper);
|
|
211
|
-
if (button) {
|
|
212
|
-
button.style.display = 'block';
|
|
213
|
-
}
|
|
214
|
-
// add hidden input with series.id
|
|
215
|
-
if (isEdit && series.options) {
|
|
216
|
-
createElement('input', {
|
|
217
|
-
type: 'hidden',
|
|
218
|
-
name: 'highcharts-id-' + indicatorType,
|
|
219
|
-
value: series.options.id
|
|
220
|
-
}, void 0, rhsColWrapper).setAttribute('highcharts-data-series-id', series.options.id);
|
|
221
|
-
}
|
|
224
|
+
addEvent(btn, eventName, function () {
|
|
225
|
+
selectIndicator(series, indicatorType);
|
|
222
226
|
});
|
|
223
227
|
});
|
|
224
228
|
});
|
|
225
229
|
// select first item from the list
|
|
226
|
-
if (
|
|
227
|
-
|
|
230
|
+
if (filteredSeriesArray.length > 0) {
|
|
231
|
+
let { series, indicatorType } = filteredSeriesArray[0];
|
|
232
|
+
selectIndicator(series, indicatorType);
|
|
228
233
|
}
|
|
229
234
|
else if (!isEdit) {
|
|
230
235
|
AST.setElementHTML(rhsColWrapper.parentNode.children[0], lang.noFilterMatch || '');
|
|
@@ -233,7 +238,7 @@ function addIndicatorList(chart, parentDiv, listType, filter) {
|
|
|
233
238
|
}
|
|
234
239
|
}
|
|
235
240
|
/**
|
|
236
|
-
*
|
|
241
|
+
* Recurrent function which lists all fields, from params object and
|
|
237
242
|
* create them as inputs. Each input has unique `data-name` attribute,
|
|
238
243
|
* which keeps chain of fields i.e params.styles.fontSize.
|
|
239
244
|
* @private
|
|
@@ -254,11 +259,6 @@ function addParamInputs(chart, parentNode, fields, type, parentDiv) {
|
|
|
254
259
|
}
|
|
255
260
|
const addInput = this.addInput;
|
|
256
261
|
objectEach(fields, (value, fieldName) => {
|
|
257
|
-
const predefinedType = annotationsFieldsTypes[fieldName];
|
|
258
|
-
let fieldType = type;
|
|
259
|
-
if (predefinedType) {
|
|
260
|
-
fieldType = predefinedType;
|
|
261
|
-
}
|
|
262
262
|
// create name like params.styles.fontSize
|
|
263
263
|
const parentFullName = parentNode + '.' + fieldName;
|
|
264
264
|
if (defined(value) && // skip if field is unnecessary, #15362
|
|
@@ -322,7 +322,7 @@ function addSearchBox(chart, parentDiv) {
|
|
|
322
322
|
input.classList.add('highcharts-input-search-indicators');
|
|
323
323
|
button.classList.add('clear-filter-button');
|
|
324
324
|
// Add input change events.
|
|
325
|
-
addEvent(input, 'input', function (
|
|
325
|
+
addEvent(input, 'input', function () {
|
|
326
326
|
handleInputChange(this.value);
|
|
327
327
|
// Show clear filter button.
|
|
328
328
|
if (this.value.length) {
|
|
@@ -338,7 +338,7 @@ function addSearchBox(chart, parentDiv) {
|
|
|
338
338
|
// Clear the input.
|
|
339
339
|
input.value = '';
|
|
340
340
|
handleInputChange('');
|
|
341
|
-
// Hide clear filter button- no longer
|
|
341
|
+
// Hide clear filter button- no longer necessary.
|
|
342
342
|
button.style.display = 'none';
|
|
343
343
|
});
|
|
344
344
|
});
|
|
@@ -450,7 +450,7 @@ function addSelectionOptions(chart, optionName, selectBox, indicatorType, parame
|
|
|
450
450
|
* Returns array of filtered series based on filter string.
|
|
451
451
|
*/
|
|
452
452
|
function filterSeries(series, filter) {
|
|
453
|
-
const popup = this,
|
|
453
|
+
const popup = this, lang = popup.chart && popup.chart.options.lang, indicatorAliases = lang &&
|
|
454
454
|
lang.navigation &&
|
|
455
455
|
lang.navigation.popup &&
|
|
456
456
|
lang.navigation.popup.indicatorAliases, filteredSeriesArray = [];
|
|
@@ -582,7 +582,7 @@ function getNameType(series, indicatorType) {
|
|
|
582
582
|
* Default value in dropdown.
|
|
583
583
|
*/
|
|
584
584
|
function listAllSeries(indicatorType, optionName, chart, parentDiv, currentSeries, selectedOption) {
|
|
585
|
-
const popup = this
|
|
585
|
+
const popup = this;
|
|
586
586
|
// Won't work without the chart.
|
|
587
587
|
if (!chart) {
|
|
588
588
|
return;
|
|
@@ -48,7 +48,7 @@ function addMenuItem(tabName, disableTab) {
|
|
|
48
48
|
className += ' highcharts-tab-disabled';
|
|
49
49
|
}
|
|
50
50
|
// tab 1
|
|
51
|
-
const menuItem = createElement('
|
|
51
|
+
const menuItem = createElement('button', {
|
|
52
52
|
className
|
|
53
53
|
}, void 0, popupDiv);
|
|
54
54
|
menuItem.appendChild(doc.createTextNode(lang[tabName + 'Button'] || tabName));
|
|
@@ -33,7 +33,7 @@ class BasicAnnotation extends Annotation {
|
|
|
33
33
|
delete options.labelOptions;
|
|
34
34
|
const type = options.shapes[0].type;
|
|
35
35
|
// The rectangle is rendered as a path, whereas other basic shapes
|
|
36
|
-
// are rendered as their
|
|
36
|
+
// are rendered as their respective SVG shapes.
|
|
37
37
|
if (type && type !== 'path') {
|
|
38
38
|
this.basicType = type;
|
|
39
39
|
}
|
|
@@ -119,16 +119,19 @@ BasicAnnotation.basicControlPoints = {
|
|
|
119
119
|
},
|
|
120
120
|
events: {
|
|
121
121
|
drag: function (e, target) {
|
|
122
|
-
const annotation = target.annotation, coords = this.chart.pointer
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
const annotation = target.annotation, coords = this.chart.pointer?.getCoordinates(e), points = target.options.points, shapes = annotation.userOptions.shapes, xAxisIndex = annotation.clipXAxis?.index || 0, yAxisIndex = annotation.clipYAxis?.index || 0;
|
|
123
|
+
if (coords) {
|
|
124
|
+
const x = coords.xAxis[xAxisIndex].value, y = coords.yAxis[yAxisIndex].value;
|
|
125
|
+
// Top right point
|
|
126
|
+
points[1].x = x;
|
|
127
|
+
// Bottom right point (cursor position)
|
|
128
|
+
points[2].x = x;
|
|
129
|
+
points[2].y = y;
|
|
130
|
+
// Bottom left
|
|
131
|
+
points[3].y = y;
|
|
132
|
+
if (shapes && shapes[0]) {
|
|
133
|
+
shapes[0].points = target.options.points;
|
|
134
|
+
}
|
|
132
135
|
}
|
|
133
136
|
annotation.redraw(false);
|
|
134
137
|
}
|
|
@@ -95,7 +95,7 @@ class FibonacciTimeZones extends CrookedLine {
|
|
|
95
95
|
edgePoint(1, 0, correctedFibb),
|
|
96
96
|
edgePoint(0, 1, correctedFibb)
|
|
97
97
|
];
|
|
98
|
-
// Calculate
|
|
98
|
+
// Calculate fibonacci
|
|
99
99
|
nextFibb = fibb + nextFibb;
|
|
100
100
|
fibb = nextFibb - fibb;
|
|
101
101
|
// Save the second line for the control point
|
|
@@ -692,7 +692,7 @@ Measure.prototype.defaultOptions = merge(Annotation.prototype.defaultOptions,
|
|
|
692
692
|
*
|
|
693
693
|
* <td>`this.min`</td>
|
|
694
694
|
*
|
|
695
|
-
* <td>The
|
|
695
|
+
* <td>The minimum value of the points in the selected
|
|
696
696
|
* range.</td>
|
|
697
697
|
*
|
|
698
698
|
* </tr>
|