highcharts 8.2.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/es-modules/Accessibility/Accessibility.js +3 -2
- package/es-modules/Accessibility/AccessibilityComponent.js +7 -8
- package/es-modules/Accessibility/Components/ContainerComponent.js +6 -7
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +0 -1
- package/es-modules/Accessibility/Components/RangeSelectorComponent.js +4 -4
- package/es-modules/Accessibility/Components/SeriesComponent/ForcedMarkers.js +4 -4
- package/es-modules/Accessibility/Components/SeriesComponent/NewDataAnnouncer.js +3 -2
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +4 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +8 -6
- package/es-modules/Accessibility/Components/ZoomComponent.js +7 -6
- package/es-modules/Accessibility/KeyboardNavigation.js +7 -3
- package/es-modules/Accessibility/Options/Options.js +1 -2
- package/es-modules/Accessibility/Utils/ChartUtilities.js +4 -4
- package/es-modules/Accessibility/Utils/DOMElementProvider.js +3 -3
- package/es-modules/Accessibility/Utils/HTMLUtilities.js +2 -3
- package/es-modules/Core/Animation/AnimationUtilities.js +193 -0
- package/es-modules/Core/Animation/Fx.js +378 -0
- package/es-modules/Core/Axis/Axis.js +12 -6
- package/es-modules/Core/Axis/BrokenAxis.js +4 -6
- package/es-modules/Core/Axis/ColorAxis.js +11 -10
- package/es-modules/Core/Axis/GridAxis.js +113 -57
- package/es-modules/Core/Axis/OrdinalAxis.js +4 -5
- package/es-modules/Core/Axis/PlotLineOrBand.js +11 -4
- package/es-modules/Core/Axis/StackingAxis.js +3 -1
- package/es-modules/Core/Axis/TreeGridAxis.js +52 -7
- package/es-modules/Core/Chart/Chart.js +13 -8
- package/es-modules/Core/Chart/Chart3D.js +2 -1
- package/es-modules/Core/Chart/GanttChart.js +5 -9
- package/es-modules/Core/Chart/StockChart.js +6 -7
- package/es-modules/Core/Color/Color.js +419 -0
- package/es-modules/Core/Color/ColorType.js +9 -0
- package/es-modules/Core/Dynamics.js +54 -23
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Interaction.js +9 -6
- package/es-modules/Core/Legend.js +3 -1
- package/es-modules/Core/Navigator.js +8 -4
- package/es-modules/Core/Options.js +13 -11
- package/es-modules/Core/Pointer.js +2 -2
- package/es-modules/Core/Renderer/DOMElementType.js +9 -0
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +220 -0
- package/es-modules/Core/Renderer/HTML/{HTML.js → HTMLRenderer.js} +8 -202
- package/es-modules/Core/Renderer/SVG/SVGElement.js +14 -8
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +0 -1
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +2 -3
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +5 -3
- package/es-modules/Core/Series/BaseSeries.js +157 -0
- package/es-modules/Core/Series/CartesianSeries.js +5553 -0
- package/es-modules/Core/Series/DataLabels.js +11 -9
- package/es-modules/Core/Series/Point.js +5 -3
- package/es-modules/Core/Series/Series.js +138 -5528
- package/es-modules/Core/Series/Series3D.js +1 -1
- package/es-modules/Core/Tooltip.js +2 -1
- package/es-modules/Core/Utilities.js +0 -582
- package/es-modules/Extensions/Annotations/Annotations.js +4 -2
- package/es-modules/Extensions/Annotations/Mixins/ControllableMixin.js +3 -3
- package/es-modules/Extensions/Annotations/MockPoint.js +3 -3
- package/es-modules/Extensions/Annotations/NavigationBindings.js +5 -4
- package/es-modules/Extensions/Annotations/Popup.js +1 -2
- package/es-modules/Extensions/Annotations/Types/Measure.js +0 -1
- package/es-modules/Extensions/Boost/Boost.js +3 -3
- package/es-modules/Extensions/Boost/BoostAttach.js +5 -4
- package/es-modules/Extensions/Boost/BoostInit.js +1 -1
- package/es-modules/Extensions/Boost/BoostOverrides.js +1 -1
- package/es-modules/Extensions/Boost/BoostUtils.js +1 -1
- package/es-modules/Extensions/Boost/NamedColors.js +1 -1
- package/es-modules/Extensions/Boost/WGLRenderer.js +4 -4
- package/es-modules/Extensions/Boost/WGLShader.js +1 -2
- package/es-modules/Extensions/BoostCanvas.js +9 -6
- package/es-modules/Extensions/CurrentDateIndication.js +3 -7
- package/es-modules/Extensions/Data.js +7 -9
- package/es-modules/Extensions/DataGrouping.js +3 -2
- package/es-modules/Extensions/Debugger.js +3 -2
- package/es-modules/Extensions/DownloadURL.js +5 -3
- package/es-modules/Extensions/DragPanes.js +1 -1
- package/es-modules/Extensions/DraggablePoints.js +6 -5
- package/es-modules/Extensions/Drilldown.js +24 -10
- package/es-modules/Extensions/ExportData.js +1 -2
- package/es-modules/Extensions/Exporting.js +9 -2
- package/es-modules/Extensions/MarkerClusters.js +8 -5
- package/es-modules/Extensions/NoDataToDisplay.js +13 -13
- package/es-modules/Extensions/OfflineExporting.js +14 -14
- package/es-modules/Extensions/{Oldie.js → Oldie/Oldie.js} +15 -12
- package/es-modules/{Core/Axis → Extensions/Oldie}/VMLAxis3D.js +1 -1
- package/es-modules/Extensions/Oldie/VMLRenderer3D.js +46 -0
- package/es-modules/Extensions/OverlappingDataLabels.js +4 -0
- package/es-modules/Extensions/Pane.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates.js +1 -1
- package/es-modules/Extensions/PatternFill.js +10 -7
- package/es-modules/Extensions/Polar.js +4 -2
- package/es-modules/Extensions/ScrollablePlotArea.js +3 -1
- package/es-modules/Extensions/SeriesLabel.js +4 -3
- package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js} +1 -1
- package/es-modules/{modules/sonification → Extensions/Sonification}/Earcon.js +0 -0
- package/es-modules/{modules/sonification → Extensions/Sonification}/Instrument.js +7 -2
- 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/{modules/sonification/options.js → Extensions/Sonification/Options.js} +0 -0
- package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js} +1 -1
- package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js} +10 -9
- package/es-modules/{modules/sonification → Extensions/Sonification}/Timeline.js +1 -1
- package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js} +1 -1
- package/es-modules/Extensions/Stacking.js +1 -1
- package/es-modules/Extensions/StaticScale.js +3 -3
- package/es-modules/Extensions/Themes/Avocado.js +3 -4
- package/es-modules/Extensions/Themes/DarkUnica.js +5 -7
- package/es-modules/Extensions/Themes/Gray.js +3 -4
- package/es-modules/Extensions/Themes/HighContrastDark.js +3 -4
- package/es-modules/Extensions/Themes/Sunset.js +3 -4
- package/es-modules/Gantt/Pathfinder.js +6 -0
- package/es-modules/Maps/Map.js +9 -5
- package/es-modules/Maps/MapNavigation.js +0 -1
- package/es-modules/{mixins → Mixins}/CenteredSeries.js +0 -0
- package/es-modules/{mixins → Mixins}/ColorMapSeries.js +7 -3
- package/es-modules/{mixins → Mixins}/ColorSeries.js +7 -3
- package/es-modules/{mixins → Mixins}/DerivedSeries.js +1 -1
- package/es-modules/{mixins → Mixins}/DrawPoint.js +0 -0
- package/es-modules/{mixins → Mixins}/Geometry.js +0 -0
- package/es-modules/{mixins → Mixins}/GeometryCircles.js +0 -0
- package/es-modules/{mixins → Mixins}/IndicatorRequired.js +0 -0
- package/es-modules/{mixins → Mixins}/LegendSymbol.js +0 -0
- package/es-modules/{mixins → Mixins}/MultipleLines.js +0 -0
- package/es-modules/{mixins → Mixins}/Navigation.js +0 -0
- package/es-modules/{mixins → Mixins}/NelderMead.js +0 -0
- package/es-modules/{mixins → Mixins}/Nodes.js +1 -1
- package/es-modules/{mixins → Mixins}/OnSeries.js +1 -1
- package/es-modules/{mixins → Mixins}/Polygon.js +0 -0
- package/es-modules/{mixins → Mixins}/ReduceArray.js +0 -0
- package/es-modules/{mixins → Mixins}/TreeSeries.js +1 -1
- package/es-modules/Series/AreaRangeSeries.js +57 -21
- package/es-modules/Series/AreaSeries.js +38 -6
- package/es-modules/Series/AreaSplineRangeSeries.js +44 -7
- package/es-modules/Series/AreaSplineSeries.js +43 -6
- package/es-modules/Series/BarSeries.js +2 -5
- package/es-modules/Series/BellcurveSeries.js +45 -5
- package/es-modules/Series/BoxPlotSeries.js +7 -6
- package/es-modules/Series/Bubble/BubbleLegend.js +3 -3
- package/es-modules/Series/Bubble/BubbleSeries.js +13 -11
- package/es-modules/Series/BulletSeries.js +5 -5
- package/es-modules/Series/CandlestickSeries.js +7 -6
- package/es-modules/Series/Column3DSeries.js +77 -23
- package/es-modules/Series/ColumnPyramidSeries.js +5 -6
- package/es-modules/Series/ColumnRangeSeries.js +17 -16
- package/es-modules/Series/ColumnSeries.js +18 -14
- package/es-modules/Series/CylinderSeries.js +8 -11
- package/es-modules/Series/DependencyWheelSeries.js +11 -9
- package/es-modules/Series/DotplotSeries.js +3 -11
- package/es-modules/Series/DumbbellSeries.js +11 -7
- package/es-modules/Series/ErrorBarSeries.js +3 -5
- package/es-modules/Series/FlagsSeries.js +13 -9
- package/es-modules/Series/Funnel3DSeries.js +8 -12
- package/es-modules/Series/FunnelSeries.js +6 -6
- package/es-modules/Series/GanttSeries.js +11 -12
- package/es-modules/Series/GaugeSeries.js +6 -5
- package/es-modules/Series/HeatmapSeries.js +9 -7
- package/es-modules/Series/HistogramSeries.js +6 -5
- package/es-modules/Series/ItemSeries.js +5 -5
- package/es-modules/Series/LineSeries.js +13 -0
- package/es-modules/Series/LollipopSeries.js +11 -7
- package/es-modules/Series/MapBubbleSeries.js +4 -5
- package/es-modules/Series/MapLineSeries.js +4 -6
- package/es-modules/Series/MapPointSeries.js +6 -5
- package/es-modules/Series/MapSeries.js +15 -12
- package/es-modules/Series/Networkgraph/DraggableNodes.js +8 -6
- package/es-modules/Series/Networkgraph/Layouts.js +3 -1
- package/es-modules/Series/Networkgraph/Networkgraph.js +8 -7
- package/es-modules/Series/OHLCSeries.js +4 -6
- package/es-modules/Series/OrganizationSeries.js +7 -4
- package/es-modules/Series/PackedBubbleSeries.js +10 -10
- package/es-modules/Series/ParetoSeries.js +6 -5
- package/es-modules/Series/Pie3DSeries.js +3 -2
- package/es-modules/Series/PieSeries.js +36 -10
- package/es-modules/Series/PolygonSeries.js +6 -6
- package/es-modules/Series/Pyramid3DSeries.js +3 -5
- package/es-modules/Series/SankeySeries.js +13 -12
- package/es-modules/Series/Scatter3DSeries.js +4 -6
- package/es-modules/Series/ScatterSeries.js +10 -5
- package/es-modules/Series/SolidGaugeSeries.js +7 -7
- package/es-modules/Series/SplineSeries.js +5 -3
- package/es-modules/Series/StreamgraphSeries.js +41 -5
- package/es-modules/Series/SunburstSeries.js +15 -11
- package/es-modules/Series/TilemapSeries.js +8 -6
- package/es-modules/Series/TimelineSeries.js +6 -5
- package/es-modules/Series/TreemapSeries.js +36 -50
- package/es-modules/Series/VariablePieSeries.js +9 -7
- package/es-modules/Series/VariwideSeries.js +7 -6
- package/es-modules/Series/VectorSeries.js +5 -3
- package/es-modules/Series/VennSeries.js +20 -17
- package/es-modules/Series/WaterfallSeries.js +6 -4
- package/es-modules/Series/WindbarbSeries.js +9 -6
- package/es-modules/Series/WordcloudSeries.js +11 -9
- package/es-modules/Series/XRangeSeries.js +8 -7
- package/es-modules/Stock/Indicators/ABIndicator.js +7 -7
- package/es-modules/Stock/Indicators/ADIndicator.js +4 -3
- package/es-modules/Stock/Indicators/AOIndicator.js +5 -4
- package/es-modules/Stock/Indicators/APOIndicator.js +7 -7
- package/es-modules/Stock/Indicators/ATRIndicator.js +5 -5
- package/es-modules/Stock/Indicators/AroonIndicator.js +6 -5
- package/es-modules/Stock/Indicators/AroonOscillatorIndicator.js +5 -5
- package/es-modules/Stock/Indicators/BBIndicator.js +7 -7
- package/es-modules/Stock/Indicators/CCIIndicator.js +4 -3
- package/es-modules/Stock/Indicators/CMFIndicator.js +3 -4
- package/es-modules/Stock/Indicators/ChaikinIndicator.js +9 -8
- package/es-modules/Stock/Indicators/DEMAIndicator.js +7 -7
- package/es-modules/Stock/Indicators/DPOIndicator.js +4 -3
- package/es-modules/Stock/Indicators/EMAIndicator.js +3 -3
- package/es-modules/Stock/Indicators/IKHIndicator.js +22 -19
- package/es-modules/Stock/Indicators/KeltnerChannelsIndicator.js +10 -7
- package/es-modules/Stock/Indicators/MACDIndicator.js +7 -4
- package/es-modules/Stock/Indicators/MFIIndicator.js +4 -3
- package/es-modules/Stock/Indicators/MomentumIndicator.js +4 -3
- package/es-modules/Stock/Indicators/NATRIndicator.js +4 -6
- package/es-modules/Stock/Indicators/PCIndicator.js +8 -7
- package/es-modules/Stock/Indicators/PPOIndicator.js +7 -7
- package/es-modules/Stock/Indicators/PSARIndicator.js +3 -4
- package/es-modules/Stock/Indicators/PivotPointsIndicator.js +5 -5
- package/es-modules/Stock/Indicators/PriceEnvelopesIndicator.js +5 -5
- package/es-modules/Stock/Indicators/ROCIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RSIIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RegressionIndicators.js +7 -6
- package/es-modules/Stock/Indicators/{Indicators.js → SMAIndicator.js} +9 -6
- package/es-modules/Stock/Indicators/SlowStochasticIndicator.js +6 -8
- package/es-modules/Stock/Indicators/StochasticIndicator.js +8 -8
- package/es-modules/Stock/Indicators/SupertrendIndicator.js +7 -6
- package/es-modules/Stock/Indicators/TEMAIndicator.js +7 -7
- package/es-modules/Stock/Indicators/TRIXIndicator.js +7 -7
- package/es-modules/Stock/Indicators/TrendLineIndicator.js +4 -3
- package/es-modules/Stock/Indicators/VBPIndicator.js +7 -4
- package/es-modules/Stock/Indicators/VWAPIndicator.js +4 -3
- package/es-modules/Stock/Indicators/WMAIndicator.js +4 -3
- package/es-modules/Stock/Indicators/WilliamsRIndicator.js +6 -5
- package/es-modules/Stock/Indicators/ZigzagIndicator.js +5 -7
- package/es-modules/Stock/StockToolsBindings.js +16 -2
- package/es-modules/Stock/StockToolsGui.js +9 -9
- package/es-modules/masters/highcharts-3d.src.js +1 -2
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +3 -2
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ema.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +2 -2
- package/es-modules/masters/indicators/indicators.src.js +2 -2
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/oldie-polyfills.src.js +1 -1
- package/es-modules/masters/modules/oldie.src.js +2 -2
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/overlapping-datalabels.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +2 -2
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-blue.src.js +1 -1
- package/es-modules/masters/themes/dark-green.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/gray.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/grid.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-dark.src.js +1 -1
- package/es-modules/masters/themes/high-contrast-light.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/skies.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/highcharts-3d.js +86 -89
- package/highcharts-3d.js.map +1 -1
- package/highcharts-3d.src.js +88 -149
- package/highcharts-gantt.js +729 -717
- package/highcharts-gantt.js.map +1 -1
- package/highcharts-gantt.src.js +5570 -5094
- package/highcharts-more.js +164 -163
- package/highcharts-more.js.map +1 -1
- package/highcharts-more.src.js +182 -118
- package/highcharts.d.ts +89 -159
- package/highcharts.js +537 -530
- package/highcharts.js.map +1 -1
- package/highcharts.src.d.ts +89 -159
- package/highcharts.src.js +5341 -4976
- package/highmaps.js +635 -627
- package/highmaps.js.map +1 -1
- package/highmaps.src.js +5907 -5530
- package/highstock.js +696 -689
- package/highstock.js.map +1 -1
- package/highstock.src.js +5384 -5026
- package/indicators/acceleration-bands.js +8 -8
- package/indicators/acceleration-bands.js.map +1 -1
- package/indicators/acceleration-bands.src.js +7 -7
- 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 +7 -7
- package/indicators/aroon-oscillator.js +8 -8
- package/indicators/aroon-oscillator.js.map +1 -1
- package/indicators/aroon-oscillator.src.js +6 -6
- package/indicators/aroon.js +7 -7
- package/indicators/aroon.js.map +1 -1
- package/indicators/aroon.src.js +6 -6
- 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 +7 -7
- 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 -74
- package/indicators/cmf.js +2 -2
- 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 +7 -7
- 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 +118 -118
- package/indicators/indicators-all.js.map +1 -1
- package/indicators/indicators-all.src.js +227 -230
- package/indicators/indicators.js +9 -9
- package/indicators/indicators.js.map +1 -1
- package/indicators/indicators.src.js +7 -7
- package/indicators/keltner-channels.js +8 -8
- package/indicators/keltner-channels.js.map +1 -1
- package/indicators/keltner-channels.src.js +12 -9
- 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 +7 -7
- package/indicators/price-channel.js +8 -8
- package/indicators/price-channel.js.map +1 -1
- package/indicators/price-channel.src.js +65 -65
- package/indicators/price-envelopes.js +7 -7
- package/indicators/price-envelopes.js.map +1 -1
- package/indicators/price-envelopes.src.js +6 -6
- package/indicators/psar.js +2 -2
- 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 +6 -6
- package/indicators/stochastic.js +9 -9
- package/indicators/stochastic.js.map +1 -1
- package/indicators/stochastic.src.js +66 -66
- 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 +7 -7
- 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 +7 -7
- 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 +6 -6
- 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.js +148 -147
- package/modules/accessibility.js.map +1 -1
- package/modules/accessibility.src.js +104 -96
- package/modules/annotations-advanced.js +158 -158
- package/modules/annotations-advanced.js.map +1 -1
- package/modules/annotations-advanced.src.js +15 -14
- package/modules/annotations.js +105 -105
- package/modules/annotations.js.map +1 -1
- package/modules/annotations.src.js +15 -14
- package/modules/arrow-symbols.js +1 -1
- package/modules/arrow-symbols.src.js +1 -1
- package/modules/boost-canvas.js +15 -15
- package/modules/boost-canvas.js.map +1 -1
- package/modules/boost-canvas.src.js +16 -16
- 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 +561 -14
- package/modules/broken-axis.js +12 -12
- 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 +5 -6
- package/modules/coloraxis.js +22 -21
- package/modules/coloraxis.js.map +1 -1
- package/modules/coloraxis.src.js +46 -41
- package/modules/current-date-indicator.js +4 -4
- package/modules/current-date-indicator.js.map +1 -1
- package/modules/current-date-indicator.src.js +4 -6
- package/modules/cylinder.js +8 -8
- package/modules/cylinder.js.map +1 -1
- package/modules/cylinder.src.js +18 -21
- package/modules/data.js +32 -32
- package/modules/data.js.map +1 -1
- package/modules/data.src.js +7 -11
- package/modules/datagrouping.js +17 -17
- package/modules/datagrouping.js.map +1 -1
- package/modules/datagrouping.src.js +3 -4
- package/modules/debugger.js +4 -4
- package/modules/debugger.js.map +1 -1
- package/modules/debugger.src.js +4 -4
- package/modules/dependency-wheel.js +8 -8
- package/modules/dependency-wheel.js.map +1 -1
- package/modules/dependency-wheel.src.js +9 -9
- package/modules/dotplot.js +5 -5
- package/modules/dotplot.js.map +1 -1
- package/modules/dotplot.src.js +4 -12
- package/modules/drag-panes.js +7 -7
- package/modules/drag-panes.js.map +1 -1
- package/modules/drag-panes.src.js +2 -2
- package/modules/draggable-points.js +33 -33
- package/modules/draggable-points.js.map +1 -1
- package/modules/draggable-points.src.js +6 -6
- package/modules/drilldown.js +23 -22
- package/modules/drilldown.js.map +1 -1
- package/modules/drilldown.src.js +21 -11
- package/modules/dumbbell.js +24 -20
- package/modules/dumbbell.js.map +1 -1
- package/modules/dumbbell.src.js +396 -136
- package/modules/export-data.js +21 -21
- package/modules/export-data.js.map +1 -1
- package/modules/export-data.src.js +8 -7
- package/modules/exporting.js +32 -32
- package/modules/exporting.js.map +1 -1
- package/modules/exporting.src.js +10 -3
- package/modules/full-screen.js +1 -1
- package/modules/full-screen.src.js +1 -1
- package/modules/funnel.js +9 -9
- package/modules/funnel.js.map +1 -1
- package/modules/funnel.src.js +6 -8
- package/modules/funnel3d.js +17 -17
- package/modules/funnel3d.js.map +1 -1
- package/modules/funnel3d.src.js +9 -12
- package/modules/gantt.js +194 -189
- package/modules/gantt.js.map +1 -1
- package/modules/gantt.src.js +232 -121
- package/modules/grid-axis.js +22 -19
- package/modules/grid-axis.js.map +1 -1
- package/modules/grid-axis.src.js +130 -64
- package/modules/heatmap.js +33 -33
- package/modules/heatmap.js.map +1 -1
- package/modules/heatmap.src.js +93 -84
- package/modules/histogram-bellcurve.js +10 -10
- package/modules/histogram-bellcurve.js.map +1 -1
- package/modules/histogram-bellcurve.src.js +49 -11
- package/modules/item-series.js +9 -9
- package/modules/item-series.js.map +1 -1
- package/modules/item-series.src.js +5 -6
- 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 +1431 -9
- package/modules/map.d.ts +1 -1
- package/modules/map.js +99 -99
- package/modules/map.js.map +1 -1
- package/modules/map.src.d.ts +1 -1
- package/modules/map.src.js +1421 -1409
- package/modules/marker-clusters.js +35 -35
- package/modules/marker-clusters.js.map +1 -1
- package/modules/marker-clusters.src.js +5 -5
- package/modules/networkgraph.js +47 -46
- package/modules/networkgraph.js.map +1 -1
- package/modules/networkgraph.src.js +18 -17
- 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 +15 -12
- package/modules/offline-exporting.js +15 -15
- package/modules/offline-exporting.js.map +1 -1
- package/modules/offline-exporting.src.js +20 -18
- package/modules/oldie-polyfills.js +1 -1
- package/modules/oldie-polyfills.src.js +1 -1
- package/modules/oldie.js +52 -26
- package/modules/oldie.js.map +1 -1
- package/modules/oldie.src.js +1401 -22
- package/modules/organization.js +11 -11
- package/modules/organization.js.map +1 -1
- package/modules/organization.src.js +6 -5
- package/modules/overlapping-datalabels.js +1 -1
- package/modules/overlapping-datalabels.src.js +1 -1
- package/modules/parallel-coordinates.js +1 -1
- package/modules/parallel-coordinates.src.js +1 -1
- package/modules/pareto.js +5 -5
- package/modules/pareto.js.map +1 -1
- package/modules/pareto.src.js +5 -6
- package/modules/pathfinder.js +20 -20
- package/modules/pathfinder.js.map +1 -1
- package/modules/pathfinder.src.js +7 -1
- package/modules/pattern-fill.js +13 -13
- package/modules/pattern-fill.js.map +1 -1
- package/modules/pattern-fill.src.js +10 -10
- package/modules/price-indicator.js +1 -1
- package/modules/price-indicator.src.js +1 -1
- package/modules/pyramid3d.js +3 -3
- package/modules/pyramid3d.js.map +1 -1
- package/modules/pyramid3d.src.js +3 -4
- package/modules/sankey.js +25 -25
- package/modules/sankey.js.map +1 -1
- package/modules/sankey.src.js +15 -15
- package/modules/series-label.js +17 -17
- package/modules/series-label.js.map +1 -1
- package/modules/series-label.src.js +3 -3
- package/modules/solid-gauge.js +8 -8
- package/modules/solid-gauge.js.map +1 -1
- package/modules/solid-gauge.src.js +4 -5
- package/modules/sonification.js +46 -46
- package/modules/sonification.js.map +1 -1
- package/modules/sonification.src.js +21 -16
- 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.js +142 -141
- package/modules/stock-tools.js.map +1 -1
- package/modules/stock-tools.src.js +40 -21
- package/modules/stock.js +161 -161
- package/modules/stock.js.map +1 -1
- package/modules/stock.src.js +41 -48
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.js.map +1 -1
- package/modules/streamgraph.src.js +41 -4
- package/modules/sunburst.js +51 -50
- package/modules/sunburst.js.map +1 -1
- package/modules/sunburst.src.js +134 -65
- package/modules/tilemap.js +14 -14
- package/modules/tilemap.js.map +1 -1
- package/modules/tilemap.src.js +9 -9
- package/modules/timeline.js +14 -14
- package/modules/timeline.js.map +1 -1
- package/modules/timeline.src.js +7 -8
- package/modules/treegrid.js +57 -52
- package/modules/treegrid.js.map +1 -1
- package/modules/treegrid.src.js +191 -77
- package/modules/treemap.js +35 -34
- package/modules/treemap.js.map +1 -1
- package/modules/treemap.src.js +205 -138
- package/modules/variable-pie.js +8 -8
- package/modules/variable-pie.js.map +1 -1
- package/modules/variable-pie.src.js +10 -9
- package/modules/variwide.js +8 -8
- package/modules/variwide.js.map +1 -1
- package/modules/variwide.src.js +6 -7
- package/modules/vector.js +6 -6
- package/modules/vector.js.map +1 -1
- package/modules/vector.src.js +6 -7
- package/modules/venn.js +26 -26
- package/modules/venn.js.map +1 -1
- package/modules/venn.src.js +23 -23
- package/modules/windbarb.js +11 -11
- package/modules/windbarb.js.map +1 -1
- package/modules/windbarb.src.js +8 -9
- package/modules/wordcloud.js +19 -19
- package/modules/wordcloud.js.map +1 -1
- package/modules/wordcloud.src.js +14 -14
- package/modules/xrange.js +12 -12
- package/modules/xrange.js.map +1 -1
- package/modules/xrange.src.js +8 -9
- package/package.json +1 -1
- package/themes/avocado.js +1 -1
- package/themes/avocado.js.map +1 -1
- package/themes/avocado.src.js +4 -4
- package/themes/dark-blue.js +1 -1
- package/themes/dark-blue.src.js +1 -1
- package/themes/dark-green.js +1 -1
- package/themes/dark-green.src.js +1 -1
- package/themes/dark-unica.js +1 -1
- package/themes/dark-unica.js.map +1 -1
- package/themes/dark-unica.src.js +6 -7
- package/themes/gray.js +1 -1
- package/themes/gray.js.map +1 -1
- package/themes/gray.src.js +4 -4
- package/themes/grid-light.js +1 -1
- package/themes/grid-light.src.js +1 -1
- package/themes/grid.js +1 -1
- package/themes/grid.src.js +1 -1
- package/themes/high-contrast-dark.js +1 -1
- package/themes/high-contrast-dark.js.map +1 -1
- package/themes/high-contrast-dark.src.js +4 -4
- package/themes/high-contrast-light.js +1 -1
- package/themes/high-contrast-light.src.js +1 -1
- package/themes/sand-signika.js +1 -1
- package/themes/sand-signika.src.js +1 -1
- package/themes/skies.js +1 -1
- package/themes/skies.src.js +1 -1
- package/themes/sunset.js +1 -1
- package/themes/sunset.js.map +1 -1
- package/themes/sunset.src.js +4 -4
- package/es-modules/Core/Renderer/VML/VMLRenderer3D.js +0 -37
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
*
|
|
13
13
|
* */
|
|
14
14
|
'use strict';
|
|
15
|
+
import A from '../Core/Animation/AnimationUtilities.js';
|
|
16
|
+
var animObject = A.animObject;
|
|
17
|
+
import BaseSeries from '../Core/Series/Series.js';
|
|
15
18
|
import Chart from '../Core/Chart/Chart.js';
|
|
16
19
|
import H from '../Core/Globals.js';
|
|
17
20
|
import O from '../Core/Options.js';
|
|
@@ -19,7 +22,7 @@ var defaultOptions = O.defaultOptions;
|
|
|
19
22
|
import Point from '../Core/Series/Point.js';
|
|
20
23
|
import SVGRenderer from '../Core/Renderer/SVG/SVGRenderer.js';
|
|
21
24
|
import U from '../Core/Utilities.js';
|
|
22
|
-
var addEvent = U.addEvent,
|
|
25
|
+
var addEvent = U.addEvent, defined = U.defined, error = U.error, isArray = U.isArray, isFunction = U.isFunction, isObject = U.isObject, isNumber = U.isNumber, merge = U.merge, objectEach = U.objectEach, relativeLength = U.relativeLength, syncTimeout = U.syncTimeout;
|
|
23
26
|
/**
|
|
24
27
|
* Function callback when a cluster is clicked.
|
|
25
28
|
*
|
|
@@ -33,9 +36,9 @@ var addEvent = U.addEvent, animObject = U.animObject, defined = U.defined, error
|
|
|
33
36
|
*/
|
|
34
37
|
''; // detach doclets from following code
|
|
35
38
|
/* eslint-disable no-invalid-this */
|
|
36
|
-
import '../Core/Axis/Axis.js';
|
|
37
|
-
import '../
|
|
38
|
-
var Series = H.Series, Scatter =
|
|
39
|
+
import Axis from '../Core/Axis/Axis.js';
|
|
40
|
+
import '../Series/LineSeries.js';
|
|
41
|
+
var Series = H.Series, Scatter = BaseSeries.seriesTypes.scatter, baseGeneratePoints = Series.prototype.generatePoints, stateIdCounter = 0,
|
|
39
42
|
// Points that ids are included in the oldPointsStateId array
|
|
40
43
|
// are hidden before animation. Other ones are destroyed.
|
|
41
44
|
oldPointsStateId = [];
|
|
@@ -1493,7 +1496,7 @@ addEvent(Point, 'drillToCluster', function (event) {
|
|
|
1493
1496
|
}
|
|
1494
1497
|
});
|
|
1495
1498
|
// Destroy the old tooltip after zoom.
|
|
1496
|
-
addEvent(
|
|
1499
|
+
addEvent(Axis, 'setExtremes', function () {
|
|
1497
1500
|
var chart = this.chart, animationDuration = 0, animation;
|
|
1498
1501
|
chart.series.forEach(function (series) {
|
|
1499
1502
|
if (series.markerClusterInfo) {
|
|
@@ -11,12 +11,10 @@
|
|
|
11
11
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
12
12
|
*
|
|
13
13
|
* */
|
|
14
|
-
|
|
15
|
-
import H from '../Core/Globals.js';
|
|
14
|
+
import Chart from '../Core/Chart/Chart.js';
|
|
16
15
|
import U from '../Core/Utilities.js';
|
|
17
|
-
var addEvent = U.addEvent, extend = U.extend, getOptions = U.getOptions;
|
|
18
|
-
|
|
19
|
-
var chartPrototype = H.Chart.prototype, defaultOptions = getOptions();
|
|
16
|
+
var addEvent = U.addEvent, extend = U.extend, getOptions = U.getOptions, merge = U.merge;
|
|
17
|
+
var chartPrototype = Chart.prototype, defaultOptions = getOptions();
|
|
20
18
|
// Add language option
|
|
21
19
|
extend(defaultOptions.lang,
|
|
22
20
|
/**
|
|
@@ -129,17 +127,19 @@ defaultOptions.noData = {
|
|
|
129
127
|
* @requires modules/no-data-to-display
|
|
130
128
|
*/
|
|
131
129
|
chartPrototype.showNoData = function (str) {
|
|
132
|
-
var chart = this, options = chart.options, text = str || (options && options.lang.noData), noDataOptions = options && options.noData;
|
|
133
|
-
if (
|
|
134
|
-
chart.noDataLabel
|
|
135
|
-
.
|
|
130
|
+
var chart = this, options = chart.options, text = str || (options && options.lang.noData), noDataOptions = options && (options.noData || {});
|
|
131
|
+
if (chart.renderer) { // Meaning chart is not destroyed
|
|
132
|
+
if (!chart.noDataLabel) {
|
|
133
|
+
chart.noDataLabel = chart.renderer
|
|
134
|
+
.label(text, 0, 0, void 0, void 0, void 0, noDataOptions.useHTML, void 0, 'no-data')
|
|
135
|
+
.add();
|
|
136
|
+
}
|
|
136
137
|
if (!chart.styledMode) {
|
|
137
138
|
chart.noDataLabel
|
|
138
139
|
.attr(noDataOptions.attr)
|
|
139
|
-
.css(noDataOptions.style);
|
|
140
|
+
.css(noDataOptions.style || {});
|
|
140
141
|
}
|
|
141
|
-
chart.noDataLabel.
|
|
142
|
-
chart.noDataLabel.align(extend(chart.noDataLabel.getBBox(), noDataOptions.position), false, 'plotBox');
|
|
142
|
+
chart.noDataLabel.align(extend(chart.noDataLabel.getBBox(), noDataOptions.position || {}), false, 'plotBox');
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
/**
|
|
@@ -176,7 +176,7 @@ chartPrototype.hasData = function () {
|
|
|
176
176
|
};
|
|
177
177
|
/* eslint-disable no-invalid-this */
|
|
178
178
|
// Add event listener to handle automatic show or hide no-data message.
|
|
179
|
-
addEvent(
|
|
179
|
+
addEvent(Chart, 'render', function handleNoData() {
|
|
180
180
|
if (this.hasData()) {
|
|
181
181
|
this.hideNoData();
|
|
182
182
|
}
|
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
|
-
'use strict';
|
|
13
|
-
/* global MSBlobBuilder */
|
|
14
12
|
import Chart from '../Core/Chart/Chart.js';
|
|
15
13
|
import H from '../Core/Globals.js';
|
|
16
14
|
var win = H.win, doc = H.doc;
|
|
@@ -53,7 +51,7 @@ function getScript(scriptLocation, callback) {
|
|
|
53
51
|
* @param {string} svg
|
|
54
52
|
* @return {string}
|
|
55
53
|
*/
|
|
56
|
-
|
|
54
|
+
function svgToDataUrl(svg) {
|
|
57
55
|
// Webkit and not chrome
|
|
58
56
|
var webKit = (nav.userAgent.indexOf('WebKit') > -1 &&
|
|
59
57
|
nav.userAgent.indexOf('Chrome') < 0);
|
|
@@ -71,7 +69,7 @@ H.svgToDataUrl = function (svg) {
|
|
|
71
69
|
// Ignore
|
|
72
70
|
}
|
|
73
71
|
return 'data:image/svg+xml;charset=UTF-8,' + encodeURIComponent(svg);
|
|
74
|
-
}
|
|
72
|
+
}
|
|
75
73
|
/**
|
|
76
74
|
* Get data:URL from image URL. Pass in callbacks to handle results.
|
|
77
75
|
*
|
|
@@ -106,7 +104,7 @@ H.svgToDataUrl = function (svg) {
|
|
|
106
104
|
*
|
|
107
105
|
* @return {void}
|
|
108
106
|
*/
|
|
109
|
-
|
|
107
|
+
function imageToDataUrl(imageURL, imageType, callbackArgs, scale, successCallback, taintedCallback, noCanvasSupportCallback, failedLoadCallback, finallyCallback) {
|
|
110
108
|
var img = new win.Image(), taintedHandler, loadHandler = function () {
|
|
111
109
|
setTimeout(function () {
|
|
112
110
|
var canvas = doc.createElement('canvas'), ctx = canvas.getContext && canvas.getContext('2d'), dataURL;
|
|
@@ -158,7 +156,7 @@ H.imageToDataUrl = function (imageURL, imageType, callbackArgs, scale, successCa
|
|
|
158
156
|
img.onload = loadHandler;
|
|
159
157
|
img.onerror = errorHandler;
|
|
160
158
|
img.src = imageURL;
|
|
161
|
-
}
|
|
159
|
+
}
|
|
162
160
|
/* eslint-enable valid-jsdoc */
|
|
163
161
|
/**
|
|
164
162
|
* Get data URL to an image of an SVG and call download on it options object:
|
|
@@ -191,7 +189,7 @@ H.imageToDataUrl = function (imageURL, imageType, callbackArgs, scale, successCa
|
|
|
191
189
|
*
|
|
192
190
|
* @return {void}
|
|
193
191
|
*/
|
|
194
|
-
|
|
192
|
+
function downloadSVGLocal(svg, options, failCallback, successCallback) {
|
|
195
193
|
var svgurl, blob, objectURLRevoke = true, finallyHandler, libURL = (options.libURL || getOptions().exporting.libURL), dummySVGContainer = doc.createElement('div'), imageType = options.type || 'image/png', filename = ((options.filename || 'chart') +
|
|
196
194
|
'.' +
|
|
197
195
|
(imageType === 'image/svg+xml' ? 'svg' : imageType.split('/')[1])), scale = options.scale || 1;
|
|
@@ -275,7 +273,7 @@ H.downloadSVGLocal = function (svg, options, failCallback, successCallback) {
|
|
|
275
273
|
svgurl = blob.getBlob('image/svg+xml');
|
|
276
274
|
}
|
|
277
275
|
else {
|
|
278
|
-
svgurl =
|
|
276
|
+
svgurl = svgToDataUrl(svg);
|
|
279
277
|
}
|
|
280
278
|
downloadURL(svgurl, filename);
|
|
281
279
|
if (successCallback) {
|
|
@@ -304,7 +302,7 @@ H.downloadSVGLocal = function (svg, options, failCallback, successCallback) {
|
|
|
304
302
|
}
|
|
305
303
|
else {
|
|
306
304
|
// PNG/JPEG download - create bitmap from SVG
|
|
307
|
-
svgurl =
|
|
305
|
+
svgurl = svgToDataUrl(svg);
|
|
308
306
|
finallyHandler = function () {
|
|
309
307
|
try {
|
|
310
308
|
domurl.revokeObjectURL(svgurl);
|
|
@@ -314,7 +312,7 @@ H.downloadSVGLocal = function (svg, options, failCallback, successCallback) {
|
|
|
314
312
|
}
|
|
315
313
|
};
|
|
316
314
|
// First, try to get PNG by rendering on canvas
|
|
317
|
-
|
|
315
|
+
imageToDataUrl(svgurl, imageType, {}, scale, function (imageURL) {
|
|
318
316
|
// Success
|
|
319
317
|
try {
|
|
320
318
|
downloadURL(imageURL, filename);
|
|
@@ -375,7 +373,7 @@ H.downloadSVGLocal = function (svg, options, failCallback, successCallback) {
|
|
|
375
373
|
}
|
|
376
374
|
});
|
|
377
375
|
}
|
|
378
|
-
}
|
|
376
|
+
}
|
|
379
377
|
/* eslint-disable valid-jsdoc */
|
|
380
378
|
/**
|
|
381
379
|
* Get SVG of chart prepared for client side export. This converts embedded
|
|
@@ -431,7 +429,7 @@ Chart.prototype.getSVGForLocalExport = function (options, chartOptions, failCall
|
|
|
431
429
|
el = images[i];
|
|
432
430
|
href = el.getAttributeNS('http://www.w3.org/1999/xlink', 'href');
|
|
433
431
|
if (href) {
|
|
434
|
-
|
|
432
|
+
imageToDataUrl(href, 'image/png', { imageElement: el }, options.scale, embeddedSuccess,
|
|
435
433
|
// Tainted canvas
|
|
436
434
|
failCallback,
|
|
437
435
|
// No canvas support
|
|
@@ -495,7 +493,7 @@ Chart.prototype.exportChartLocal = function (exportingOptions, chartOptions) {
|
|
|
495
493
|
'for charts with embedded HTML');
|
|
496
494
|
}
|
|
497
495
|
else {
|
|
498
|
-
|
|
496
|
+
downloadSVGLocal(svg, extend({ filename: chart.getFilename() }, options), fallbackToExportServer);
|
|
499
497
|
}
|
|
500
498
|
},
|
|
501
499
|
// Return true if the SVG contains images with external data. With the
|
|
@@ -557,7 +555,7 @@ Chart.prototype.exportChartLocal = function (exportingOptions, chartOptions) {
|
|
|
557
555
|
};
|
|
558
556
|
// Extend the default options to use the local exporter logic
|
|
559
557
|
merge(true, getOptions().exporting, {
|
|
560
|
-
libURL: 'https://code.highcharts.com/8.2.
|
|
558
|
+
libURL: 'https://code.highcharts.com/8.2.2/lib/',
|
|
561
559
|
// When offline-exporting is loaded, redefine the menu item definitions
|
|
562
560
|
// related to download.
|
|
563
561
|
menuItemDefinitions: {
|
|
@@ -593,3 +591,5 @@ merge(true, getOptions().exporting, {
|
|
|
593
591
|
}
|
|
594
592
|
}
|
|
595
593
|
});
|
|
594
|
+
// Compatibility
|
|
595
|
+
H.downloadSVGLocal = downloadSVGLocal;
|
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
-
import Chart from '
|
|
14
|
-
import Color from '
|
|
13
|
+
import Chart from '../../Core/Chart/Chart.js';
|
|
14
|
+
import Color from '../../Core/Color/Color.js';
|
|
15
15
|
var color = Color.parse;
|
|
16
|
-
import H from '
|
|
16
|
+
import H from '../../Core/Globals.js';
|
|
17
17
|
var deg2rad = H.deg2rad, doc = H.doc, noop = H.noop, svg = H.svg, win = H.win;
|
|
18
|
-
import Pointer from '
|
|
19
|
-
import SVGElement from '
|
|
20
|
-
import SVGRenderer from '
|
|
21
|
-
import U from '
|
|
22
|
-
var addEvent = U.addEvent, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, extend = U.extend, extendClass = U.extendClass, getOptions = U.getOptions, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, merge = U.merge, offset = U.offset, pick = U.pick, pInt = U.pInt, uniqueKey = U.uniqueKey;
|
|
23
|
-
|
|
18
|
+
import Pointer from '../../Core/Pointer.js';
|
|
19
|
+
import SVGElement from '../../Core/Renderer/SVG/SVGElement.js';
|
|
20
|
+
import SVGRenderer from '../../Core/Renderer/SVG/SVGRenderer3D.js';
|
|
21
|
+
import U from '../../Core/Utilities.js';
|
|
22
|
+
var addEvent = U.addEvent, createElement = U.createElement, css = U.css, defined = U.defined, discardElement = U.discardElement, erase = U.erase, extend = U.extend, extendClass = U.extendClass, getOptions = U.getOptions, isArray = U.isArray, isNumber = U.isNumber, isObject = U.isObject, merge = U.merge, offset = U.offset, pick = U.pick, pInt = U.pInt, setOptions = U.setOptions, uniqueKey = U.uniqueKey;
|
|
23
|
+
import VMLRenderer3D from './VMLRenderer3D.js';
|
|
24
|
+
var VMLRenderer, VMLElement;
|
|
24
25
|
/**
|
|
25
26
|
* Path to the pattern image required by VML browsers in order to
|
|
26
27
|
* draw radial gradients.
|
|
@@ -32,7 +33,7 @@ var VMLRenderer, VMLRendererExtension, VMLElement;
|
|
|
32
33
|
* @apioption global.VMLRadialGradientURL
|
|
33
34
|
*/
|
|
34
35
|
getOptions().global.VMLRadialGradientURL =
|
|
35
|
-
'http://code.highcharts.com/8.2.
|
|
36
|
+
'http://code.highcharts.com/8.2.2/gfx/vml-radial-gradient.png';
|
|
36
37
|
// Utilites
|
|
37
38
|
if (doc && !doc.defaultView) {
|
|
38
39
|
H.getStyle = U.getStyle = function (el, prop) {
|
|
@@ -704,7 +705,7 @@ if (!svg) {
|
|
|
704
705
|
*
|
|
705
706
|
* @augments Highcharts.SVGRenderer
|
|
706
707
|
*/
|
|
707
|
-
VMLRendererExtension = {
|
|
708
|
+
var VMLRendererExtension = {
|
|
708
709
|
Element: VMLElement,
|
|
709
710
|
isIE8: win.navigator.userAgent.indexOf('MSIE 8.0') > -1,
|
|
710
711
|
/**
|
|
@@ -1215,9 +1216,11 @@ if (!svg) {
|
|
|
1215
1216
|
H.VMLRenderer = VMLRenderer = function () {
|
|
1216
1217
|
this.init.apply(this, arguments);
|
|
1217
1218
|
};
|
|
1218
|
-
VMLRenderer.prototype = merge(SVGRenderer.prototype, VMLRendererExtension);
|
|
1219
|
+
VMLRenderer.prototype = merge(VMLRenderer.prototype, SVGRenderer.prototype, VMLRendererExtension);
|
|
1219
1220
|
// general renderer
|
|
1220
1221
|
H.Renderer = VMLRenderer;
|
|
1222
|
+
// 3D additions
|
|
1223
|
+
VMLRenderer3D.compose(VMLRenderer, SVGRenderer);
|
|
1221
1224
|
}
|
|
1222
1225
|
SVGRenderer.prototype.getSpanWidth = function (wrapper, tspan) {
|
|
1223
1226
|
var renderer = this, bBox = wrapper.getBBox(true), actualWidth = bBox.width;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
|
-
import U from '
|
|
12
|
+
import U from '../../Core/Utilities.js';
|
|
13
13
|
var addEvent = U.addEvent;
|
|
14
14
|
/* eslint-disable valid-jsdoc */
|
|
15
15
|
var VMLAxis3DAdditions = /** @class */ (function () {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2020 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* Extension to the VML Renderer
|
|
6
|
+
*
|
|
7
|
+
* License: www.highcharts.com/license
|
|
8
|
+
*
|
|
9
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
|
+
*
|
|
11
|
+
* */
|
|
12
|
+
import Axis from '../../Core/Axis/Axis.js';
|
|
13
|
+
import U from '../../Core/Utilities.js';
|
|
14
|
+
var setOptions = U.setOptions;
|
|
15
|
+
import VMLAxis3D from './VMLAxis3D.js';
|
|
16
|
+
var VMLRenderer3D = /** @class */ (function () {
|
|
17
|
+
function VMLRenderer3D() {
|
|
18
|
+
}
|
|
19
|
+
/* *
|
|
20
|
+
*
|
|
21
|
+
* Static Properties
|
|
22
|
+
*
|
|
23
|
+
* */
|
|
24
|
+
VMLRenderer3D.compose = function (vmlClass, svgClass) {
|
|
25
|
+
var svgProto = svgClass.prototype;
|
|
26
|
+
var vmlProto = vmlClass.prototype;
|
|
27
|
+
setOptions({ animate: false });
|
|
28
|
+
vmlProto.face3d = svgProto.face3d;
|
|
29
|
+
vmlProto.polyhedron = svgProto.polyhedron;
|
|
30
|
+
vmlProto.elements3d = svgProto.elements3d;
|
|
31
|
+
vmlProto.element3d = svgProto.element3d;
|
|
32
|
+
vmlProto.cuboid = svgProto.cuboid;
|
|
33
|
+
vmlProto.cuboidPath = svgProto.cuboidPath;
|
|
34
|
+
vmlProto.toLinePath = svgProto.toLinePath;
|
|
35
|
+
vmlProto.toLineSegments = svgProto.toLineSegments;
|
|
36
|
+
vmlProto.arc3d = function (shapeArgs) {
|
|
37
|
+
var result = svgProto.arc3d.call(this, shapeArgs);
|
|
38
|
+
result.css({ zIndex: result.zIndex });
|
|
39
|
+
return result;
|
|
40
|
+
};
|
|
41
|
+
vmlProto.arc3dPath = svgProto.arc3dPath;
|
|
42
|
+
VMLAxis3D.compose(Axis);
|
|
43
|
+
};
|
|
44
|
+
return VMLRenderer3D;
|
|
45
|
+
}());
|
|
46
|
+
export default VMLRenderer3D;
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
import Chart from '../Core/Chart/Chart.js';
|
|
15
15
|
import U from '../Core/Utilities.js';
|
|
16
16
|
var addEvent = U.addEvent, fireEvent = U.fireEvent, isArray = U.isArray, isNumber = U.isNumber, objectEach = U.objectEach, pick = U.pick;
|
|
17
|
+
/**
|
|
18
|
+
* Internal type
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
17
21
|
/* eslint-disable no-invalid-this */
|
|
18
22
|
// Collect potensial overlapping data labels. Stack labels probably don't need
|
|
19
23
|
// to be considered because they are usually accompanied by data labels that lie
|
|
@@ -355,7 +355,7 @@ var Pane = /** @class */ (function () {
|
|
|
355
355
|
function isInsidePane(x, y, center) {
|
|
356
356
|
return Math.sqrt(Math.pow(x - center[0], 2) + Math.pow(y - center[1], 2)) <= center[2] / 2;
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
Chart.prototype.getHoverPane = function (eventArgs) {
|
|
359
359
|
var chart = this;
|
|
360
360
|
var hoverPane;
|
|
361
361
|
if (eventArgs) {
|
|
@@ -15,7 +15,7 @@ import Chart from '../Core/Chart/Chart.js';
|
|
|
15
15
|
import H from '../Core/Globals.js';
|
|
16
16
|
import U from '../Core/Utilities.js';
|
|
17
17
|
var addEvent = U.addEvent, arrayMax = U.arrayMax, arrayMin = U.arrayMin, defined = U.defined, erase = U.erase, extend = U.extend, format = U.format, merge = U.merge, pick = U.pick, setOptions = U.setOptions, splat = U.splat, wrap = U.wrap;
|
|
18
|
-
import '../
|
|
18
|
+
import '../Series/LineSeries.js';
|
|
19
19
|
// Extensions for parallel coordinates plot.
|
|
20
20
|
var ChartProto = Chart.prototype;
|
|
21
21
|
var defaultXAxisOptions = {
|
|
@@ -11,12 +11,15 @@
|
|
|
11
11
|
*
|
|
12
12
|
* */
|
|
13
13
|
'use strict';
|
|
14
|
+
import A from '../Core/Animation/AnimationUtilities.js';
|
|
15
|
+
var animObject = A.animObject;
|
|
16
|
+
import Chart from '../Core/Chart/Chart.js';
|
|
14
17
|
import H from '../Core/Globals.js';
|
|
15
18
|
import Point from '../Core/Series/Point.js';
|
|
16
19
|
import SVGRenderer from '../Core/Renderer/SVG/SVGRenderer.js';
|
|
17
20
|
import U from '../Core/Utilities.js';
|
|
18
|
-
var addEvent = U.addEvent,
|
|
19
|
-
import '../
|
|
21
|
+
var addEvent = U.addEvent, erase = U.erase, getOptions = U.getOptions, merge = U.merge, pick = U.pick, removeEvent = U.removeEvent, wrap = U.wrap;
|
|
22
|
+
import '../Series/LineSeries.js';
|
|
20
23
|
/**
|
|
21
24
|
* Pattern options
|
|
22
25
|
*
|
|
@@ -126,7 +129,7 @@ import '../Core/Series/Series.js';
|
|
|
126
129
|
*/
|
|
127
130
|
''; // detach doclets above
|
|
128
131
|
// Add the predefined patterns
|
|
129
|
-
|
|
132
|
+
var patterns = (function () {
|
|
130
133
|
var patterns = [], colors = getOptions().colors;
|
|
131
134
|
[
|
|
132
135
|
'M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11',
|
|
@@ -432,8 +435,8 @@ addEvent(SVGRenderer, 'complexColor', function (args) {
|
|
|
432
435
|
var color = args.args[0], prop = args.args[1], element = args.args[2], chartIndex = (this.chartIndex || 0);
|
|
433
436
|
var pattern = color.pattern, value = '#343434';
|
|
434
437
|
// Handle patternIndex
|
|
435
|
-
if (typeof color.patternIndex !== 'undefined' &&
|
|
436
|
-
pattern =
|
|
438
|
+
if (typeof color.patternIndex !== 'undefined' && patterns) {
|
|
439
|
+
pattern = patterns[color.patternIndex];
|
|
437
440
|
}
|
|
438
441
|
// Skip and call default if there is no pattern
|
|
439
442
|
if (!pattern) {
|
|
@@ -488,7 +491,7 @@ addEvent(SVGRenderer, 'complexColor', function (args) {
|
|
|
488
491
|
});
|
|
489
492
|
// When animation is used, we have to recalculate pattern dimensions after
|
|
490
493
|
// resize, as the bounding boxes are not available until then.
|
|
491
|
-
addEvent(
|
|
494
|
+
addEvent(Chart, 'endResize', function () {
|
|
492
495
|
if ((this.renderer && this.renderer.defIds || []).filter(function (id) {
|
|
493
496
|
return (id &&
|
|
494
497
|
id.indexOf &&
|
|
@@ -514,7 +517,7 @@ addEvent(H.Chart, 'endResize', function () {
|
|
|
514
517
|
});
|
|
515
518
|
// Add a garbage collector to delete old patterns with autogenerated hashes that
|
|
516
519
|
// are no longer being referenced.
|
|
517
|
-
addEvent(
|
|
520
|
+
addEvent(Chart, 'redraw', function () {
|
|
518
521
|
var usedIds = {}, renderer = this.renderer,
|
|
519
522
|
// Get the autocomputed patterns - these are the ones we might delete
|
|
520
523
|
patterns = (renderer.defIds || []).filter(function (pattern) {
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
+
import A from '../Core/Animation/AnimationUtilities.js';
|
|
12
|
+
var animObject = A.animObject;
|
|
11
13
|
import Chart from '../Core/Chart/Chart.js';
|
|
12
14
|
import H from '../Core/Globals.js';
|
|
13
15
|
import Pane from './Pane.js';
|
|
14
16
|
import Pointer from '../Core/Pointer.js';
|
|
15
17
|
import SVGRenderer from '../Core/Renderer/SVG/SVGRenderer.js';
|
|
16
18
|
import U from '../Core/Utilities.js';
|
|
17
|
-
var addEvent = U.addEvent,
|
|
18
|
-
import '../
|
|
19
|
+
var addEvent = U.addEvent, defined = U.defined, find = U.find, isNumber = U.isNumber, pick = U.pick, splat = U.splat, uniqueKey = U.uniqueKey, wrap = U.wrap;
|
|
20
|
+
import '../Series/LineSeries.js';
|
|
19
21
|
// Extensions for polar charts. Additionally, much of the geometry required for
|
|
20
22
|
// polar charts is gathered in RadialAxes.js.
|
|
21
23
|
var Series = H.Series, seriesTypes = H.seriesTypes, seriesProto = Series.prototype, pointerProto = Pointer.prototype, colProto, arearangeProto;
|
|
@@ -17,10 +17,12 @@ WIP on vertical scrollable plot area (#9378). To do:
|
|
|
17
17
|
- API and demos
|
|
18
18
|
*/
|
|
19
19
|
'use strict';
|
|
20
|
+
import A from '../Core/Animation/AnimationUtilities.js';
|
|
21
|
+
var stop = A.stop;
|
|
20
22
|
import Chart from '../Core/Chart/Chart.js';
|
|
21
23
|
import H from '../Core/Globals.js';
|
|
22
24
|
import U from '../Core/Utilities.js';
|
|
23
|
-
var addEvent = U.addEvent, createElement = U.createElement, pick = U.pick
|
|
25
|
+
var addEvent = U.addEvent, createElement = U.createElement, pick = U.pick;
|
|
24
26
|
/**
|
|
25
27
|
* Options for a scrollable plot area. This feature provides a minimum size for
|
|
26
28
|
* the plot area of the chart. If the size gets smaller than this, typically
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
|
-
|
|
10
|
+
import A from '../Core/Animation/AnimationUtilities.js';
|
|
11
|
+
var animObject = A.animObject;
|
|
11
12
|
import Chart from '../Core/Chart/Chart.js';
|
|
12
13
|
import H from '../Core/Globals.js';
|
|
13
14
|
import SVGRenderer from '../Core/Renderer/SVG/SVGRenderer.js';
|
|
14
15
|
import U from '../Core/Utilities.js';
|
|
15
|
-
var addEvent = U.addEvent,
|
|
16
|
+
var addEvent = U.addEvent, extend = U.extend, fireEvent = U.fireEvent, format = U.format, isNumber = U.isNumber, pick = U.pick, setOptions = U.setOptions, syncTimeout = U.syncTimeout;
|
|
16
17
|
/**
|
|
17
18
|
* Containing the position of a box that should be avoided by labels.
|
|
18
19
|
*
|
|
@@ -44,7 +45,7 @@ var addEvent = U.addEvent, animObject = U.animObject, extend = U.extend, fireEve
|
|
|
44
45
|
* https://jsfiddle.net/highcharts/y5A37/
|
|
45
46
|
*/
|
|
46
47
|
''; // detach doclets above
|
|
47
|
-
import '../
|
|
48
|
+
import '../Series/LineSeries.js';
|
|
48
49
|
var labelDistance = 3, Series = H.Series;
|
|
49
50
|
setOptions({
|
|
50
51
|
/**
|
package/es-modules/{modules/sonification/chartSonify.js → Extensions/Sonification/ChartSonify.js}
RENAMED
|
@@ -97,7 +97,7 @@ import H from '../../Core/Globals.js';
|
|
|
97
97
|
import Point from '../../Core/Series/Point.js';
|
|
98
98
|
import U from '../../Core/Utilities.js';
|
|
99
99
|
var find = U.find, isArray = U.isArray, merge = U.merge, pick = U.pick, splat = U.splat, objectEach = U.objectEach;
|
|
100
|
-
import utilities from './
|
|
100
|
+
import utilities from './Utilities.js';
|
|
101
101
|
/**
|
|
102
102
|
* Get the relative time value of a point.
|
|
103
103
|
* @private
|
|
File without changes
|
|
@@ -151,16 +151,21 @@ Instrument.prototype.init = function (options) {
|
|
|
151
151
|
this.masterVolume = this.options.masterVolume || 0;
|
|
152
152
|
// Init the audio nodes
|
|
153
153
|
var ctx = H.audioContext;
|
|
154
|
+
// Note: Destination node can be overridden by setting
|
|
155
|
+
// Highcharts.sonification.Instrument.prototype.destinationNode.
|
|
156
|
+
// This allows for inserting an additional chain of nodes after
|
|
157
|
+
// the default processing.
|
|
158
|
+
var destination = this.destinationNode || ctx.destination;
|
|
154
159
|
this.gainNode = ctx.createGain();
|
|
155
160
|
this.setGain(0);
|
|
156
161
|
this.panNode = ctx.createStereoPanner && ctx.createStereoPanner();
|
|
157
162
|
if (this.panNode) {
|
|
158
163
|
this.setPan(0);
|
|
159
164
|
this.gainNode.connect(this.panNode);
|
|
160
|
-
this.panNode.connect(
|
|
165
|
+
this.panNode.connect(destination);
|
|
161
166
|
}
|
|
162
167
|
else {
|
|
163
|
-
this.gainNode.connect(
|
|
168
|
+
this.gainNode.connect(destination);
|
|
164
169
|
}
|
|
165
170
|
// Oscillator initialization
|
|
166
171
|
if (this.options.type === 'oscillator') {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
13
|
import Instrument from './Instrument.js';
|
|
14
|
-
import utilities from './
|
|
14
|
+
import utilities from './Utilities.js';
|
|
15
15
|
var instruments = {};
|
|
16
16
|
['sine', 'square', 'triangle', 'sawtooth'].forEach(function (waveform) {
|
|
17
17
|
// Add basic instruments
|
|
File without changes
|
|
File without changes
|
package/es-modules/{modules/sonification/pointSonify.js → Extensions/Sonification/PointSonify.js}
RENAMED
|
@@ -183,7 +183,7 @@ var error = U.error, merge = U.merge, pick = U.pick;
|
|
|
183
183
|
* @name Highcharts.PointSonifyOptionsObject#onEnd
|
|
184
184
|
* @type {Function|undefined}
|
|
185
185
|
*/
|
|
186
|
-
import utilities from './
|
|
186
|
+
import utilities from './Utilities.js';
|
|
187
187
|
// Defaults for the instrument options
|
|
188
188
|
// NOTE: Also change defaults in Highcharts.PointInstrumentOptionsObject if
|
|
189
189
|
// making changes here.
|
package/es-modules/{modules/sonification/sonification.js → Extensions/Sonification/Sonification.js}
RENAMED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
+
import Chart from '../../Core/Chart/Chart.js';
|
|
13
14
|
import H from '../../Core/Globals.js';
|
|
14
15
|
import O from '../../Core/Options.js';
|
|
15
16
|
var defaultOptions = O.defaultOptions;
|
|
@@ -17,14 +18,14 @@ import Point from '../../Core/Series/Point.js';
|
|
|
17
18
|
import U from '../../Core/Utilities.js';
|
|
18
19
|
var addEvent = U.addEvent, extend = U.extend, merge = U.merge;
|
|
19
20
|
import Instrument from './Instrument.js';
|
|
20
|
-
import instruments from './
|
|
21
|
+
import instruments from './InstrumentDefinitions.js';
|
|
21
22
|
import Earcon from './Earcon.js';
|
|
22
|
-
import pointSonifyFunctions from './
|
|
23
|
-
import chartSonifyFunctions from './
|
|
24
|
-
import utilities from './
|
|
23
|
+
import pointSonifyFunctions from './PointSonify.js';
|
|
24
|
+
import chartSonifyFunctions from './ChartSonify.js';
|
|
25
|
+
import utilities from './Utilities.js';
|
|
25
26
|
import TimelineClasses from './Timeline.js';
|
|
26
|
-
import sonificationOptions from './
|
|
27
|
-
import '../../
|
|
27
|
+
import sonificationOptions from './Options.js';
|
|
28
|
+
import '../../Series/LineSeries.js';
|
|
28
29
|
// Expose on the Highcharts object
|
|
29
30
|
/**
|
|
30
31
|
* Global classes and objects related to sonification.
|
|
@@ -97,7 +98,7 @@ merge(true, defaultOptions, sonificationOptions);
|
|
|
97
98
|
Point.prototype.sonify = pointSonifyFunctions.pointSonify;
|
|
98
99
|
Point.prototype.cancelSonify = pointSonifyFunctions.pointCancelSonify;
|
|
99
100
|
H.Series.prototype.sonify = chartSonifyFunctions.seriesSonify;
|
|
100
|
-
extend(
|
|
101
|
+
extend(Chart.prototype, {
|
|
101
102
|
sonify: chartSonifyFunctions.chartSonify,
|
|
102
103
|
pauseSonify: chartSonifyFunctions.pause,
|
|
103
104
|
resumeSonify: chartSonifyFunctions.resume,
|
|
@@ -110,11 +111,11 @@ extend(H.Chart.prototype, {
|
|
|
110
111
|
});
|
|
111
112
|
/* eslint-disable no-invalid-this */
|
|
112
113
|
// Prepare charts for sonification on init
|
|
113
|
-
addEvent(
|
|
114
|
+
addEvent(Chart, 'init', function () {
|
|
114
115
|
this.sonification = {};
|
|
115
116
|
});
|
|
116
117
|
// Update with chart/series/point updates
|
|
117
|
-
addEvent(
|
|
118
|
+
addEvent(Chart, 'update', function (e) {
|
|
118
119
|
var newOptions = e.options.sonification;
|
|
119
120
|
if (newOptions) {
|
|
120
121
|
merge(true, this.options.sonification, newOptions);
|
|
@@ -46,7 +46,7 @@ var merge = U.merge, splat = U.splat, uniqueKey = U.uniqueKey;
|
|
|
46
46
|
* @name Highcharts.TimelineEventOptionsObject#onEnd
|
|
47
47
|
* @type {Function|undefined}
|
|
48
48
|
*/
|
|
49
|
-
import utilities from './
|
|
49
|
+
import utilities from './Utilities.js';
|
|
50
50
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
51
51
|
/**
|
|
52
52
|
* The TimelineEvent class. Represents a sound event on a timeline.
|
package/es-modules/{modules/sonification/utilities.js → Extensions/Sonification/Utilities.js}
RENAMED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
12
|
'use strict';
|
|
13
|
-
import musicalFrequencies from './
|
|
13
|
+
import musicalFrequencies from './MusicalFrequencies.js';
|
|
14
14
|
import U from '../../Core/Utilities.js';
|
|
15
15
|
var clamp = U.clamp;
|
|
16
16
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
@@ -54,7 +54,7 @@ var correctFloat = U.correctFloat, defined = U.defined, destroyObjectProperties
|
|
|
54
54
|
* @type {number}
|
|
55
55
|
*/
|
|
56
56
|
''; // detached doclets above
|
|
57
|
-
import '../
|
|
57
|
+
import '../Series/LineSeries.js';
|
|
58
58
|
var Series = H.Series;
|
|
59
59
|
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
60
60
|
/**
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import
|
|
11
|
+
import Axis from '../Core/Axis/Axis.js';
|
|
12
|
+
import Chart from '../Core/Chart/Chart.js';
|
|
12
13
|
import U from '../Core/Utilities.js';
|
|
13
14
|
var addEvent = U.addEvent, defined = U.defined, isNumber = U.isNumber, pick = U.pick;
|
|
14
|
-
var Chart = H.Chart;
|
|
15
15
|
/* eslint-disable no-invalid-this */
|
|
16
16
|
/**
|
|
17
17
|
* For vertical axes only. Setting the static scale ensures that each tick unit
|
|
@@ -29,7 +29,7 @@ var Chart = H.Chart;
|
|
|
29
29
|
* @product gantt
|
|
30
30
|
* @apioption yAxis.staticScale
|
|
31
31
|
*/
|
|
32
|
-
addEvent(
|
|
32
|
+
addEvent(Axis, 'afterSetOptions', function () {
|
|
33
33
|
var chartOptions = this.chart.options && this.chart.options.chart;
|
|
34
34
|
if (!this.horiz &&
|
|
35
35
|
isNumber(this.options.staticScale) &&
|