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
|
@@ -15,7 +15,7 @@ import Math3D from '../../Extensions/Math3D.js';
|
|
|
15
15
|
var perspective = Math3D.perspective;
|
|
16
16
|
import U from '../Utilities.js';
|
|
17
17
|
var addEvent = U.addEvent, pick = U.pick;
|
|
18
|
-
import '
|
|
18
|
+
import '../../Series/LineSeries.js';
|
|
19
19
|
/* eslint-disable no-invalid-this */
|
|
20
20
|
// Wrap the translate method to post-translate points into 3D perspective
|
|
21
21
|
addEvent(H.Series, 'afterTranslate', function () {
|
|
@@ -78,7 +78,7 @@ var clamp = U.clamp, css = U.css, defined = U.defined, discardElement = U.discar
|
|
|
78
78
|
* @param {number} labelHeight
|
|
79
79
|
* Height of the tooltip.
|
|
80
80
|
*
|
|
81
|
-
* @param {Highcharts.
|
|
81
|
+
* @param {Highcharts.TooltipPositionerPointObject} point
|
|
82
82
|
* Point information for positioning a tooltip.
|
|
83
83
|
*
|
|
84
84
|
* @return {Highcharts.PositionObject}
|
|
@@ -88,6 +88,7 @@ var clamp = U.clamp, css = U.css, defined = U.defined, discardElement = U.discar
|
|
|
88
88
|
* Point information for positioning a tooltip.
|
|
89
89
|
*
|
|
90
90
|
* @interface Highcharts.TooltipPositionerPointObject
|
|
91
|
+
* @extends Highcharts.Point
|
|
91
92
|
*/ /**
|
|
92
93
|
* If `tooltip.split` option is enabled and positioner is called for each of the
|
|
93
94
|
* boxes separately, this property indicates the call on the xAxis header, which
|
|
@@ -397,368 +397,6 @@ function error(code, stop, chart, params) {
|
|
|
397
397
|
error.messages = [];
|
|
398
398
|
})(error || (error = {}));
|
|
399
399
|
H.error = error;
|
|
400
|
-
/* eslint-disable no-invalid-this, valid-jsdoc */
|
|
401
|
-
/**
|
|
402
|
-
* An animator object used internally. One instance applies to one property
|
|
403
|
-
* (attribute or style prop) on one element. Animation is always initiated
|
|
404
|
-
* through {@link SVGElement#animate}.
|
|
405
|
-
*
|
|
406
|
-
* @example
|
|
407
|
-
* var rect = renderer.rect(0, 0, 10, 10).add();
|
|
408
|
-
* rect.animate({ width: 100 });
|
|
409
|
-
*
|
|
410
|
-
* @private
|
|
411
|
-
* @class
|
|
412
|
-
* @name Highcharts.Fx
|
|
413
|
-
*/
|
|
414
|
-
var Fx = /** @class */ (function () {
|
|
415
|
-
/* *
|
|
416
|
-
*
|
|
417
|
-
* Constructors
|
|
418
|
-
*
|
|
419
|
-
* */
|
|
420
|
-
/**
|
|
421
|
-
*
|
|
422
|
-
* @param {Highcharts.HTMLDOMElement|Highcharts.SVGElement} elem
|
|
423
|
-
* The element to animate.
|
|
424
|
-
*
|
|
425
|
-
* @param {Partial<Highcharts.AnimationOptionsObject>} options
|
|
426
|
-
* Animation options.
|
|
427
|
-
*
|
|
428
|
-
* @param {string} prop
|
|
429
|
-
* The single attribute or CSS property to animate.
|
|
430
|
-
*/
|
|
431
|
-
function Fx(elem, options, prop) {
|
|
432
|
-
this.options = options;
|
|
433
|
-
this.elem = elem;
|
|
434
|
-
this.prop = prop;
|
|
435
|
-
}
|
|
436
|
-
/* *
|
|
437
|
-
*
|
|
438
|
-
* Functions
|
|
439
|
-
*
|
|
440
|
-
* */
|
|
441
|
-
/**
|
|
442
|
-
* Set the current step of a path definition on SVGElement.
|
|
443
|
-
*
|
|
444
|
-
* @function Highcharts.Fx#dSetter
|
|
445
|
-
*
|
|
446
|
-
* @return {void}
|
|
447
|
-
*/
|
|
448
|
-
Fx.prototype.dSetter = function () {
|
|
449
|
-
var paths = this.paths, start = paths && paths[0], end = paths && paths[1], path = [], now = this.now || 0;
|
|
450
|
-
// Land on the final path without adjustment points appended in the ends
|
|
451
|
-
if (now === 1 || !start || !end) {
|
|
452
|
-
path = this.toD || [];
|
|
453
|
-
}
|
|
454
|
-
else if (start.length === end.length && now < 1) {
|
|
455
|
-
for (var i = 0; i < end.length; i++) {
|
|
456
|
-
// Tween between the start segment and the end segment. Start
|
|
457
|
-
// with a copy of the end segment and tween the appropriate
|
|
458
|
-
// numerics
|
|
459
|
-
var startSeg = start[i];
|
|
460
|
-
var endSeg = end[i];
|
|
461
|
-
var tweenSeg = [];
|
|
462
|
-
for (var j = 0; j < endSeg.length; j++) {
|
|
463
|
-
var startItem = startSeg[j];
|
|
464
|
-
var endItem = endSeg[j];
|
|
465
|
-
// Tween numbers
|
|
466
|
-
if (typeof startItem === 'number' &&
|
|
467
|
-
typeof endItem === 'number' &&
|
|
468
|
-
// Arc boolean flags
|
|
469
|
-
!(endSeg[0] === 'A' && (j === 4 || j === 5))) {
|
|
470
|
-
tweenSeg[j] = startItem + now * (endItem - startItem);
|
|
471
|
-
// Strings, take directly from the end segment
|
|
472
|
-
}
|
|
473
|
-
else {
|
|
474
|
-
tweenSeg[j] = endItem;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
path.push(tweenSeg);
|
|
478
|
-
}
|
|
479
|
-
// If animation is finished or length not matching, land on right value
|
|
480
|
-
}
|
|
481
|
-
else {
|
|
482
|
-
path = end;
|
|
483
|
-
}
|
|
484
|
-
this.elem.attr('d', path, void 0, true);
|
|
485
|
-
};
|
|
486
|
-
/**
|
|
487
|
-
* Update the element with the current animation step.
|
|
488
|
-
*
|
|
489
|
-
* @function Highcharts.Fx#update
|
|
490
|
-
*
|
|
491
|
-
* @return {void}
|
|
492
|
-
*/
|
|
493
|
-
Fx.prototype.update = function () {
|
|
494
|
-
var elem = this.elem, prop = this.prop, // if destroyed, it is null
|
|
495
|
-
now = this.now, step = this.options.step;
|
|
496
|
-
// Animation setter defined from outside
|
|
497
|
-
if (this[prop + 'Setter']) {
|
|
498
|
-
this[prop + 'Setter']();
|
|
499
|
-
// Other animations on SVGElement
|
|
500
|
-
}
|
|
501
|
-
else if (elem.attr) {
|
|
502
|
-
if (elem.element) {
|
|
503
|
-
elem.attr(prop, now, null, true);
|
|
504
|
-
}
|
|
505
|
-
// HTML styles, raw HTML content like container size
|
|
506
|
-
}
|
|
507
|
-
else {
|
|
508
|
-
elem.style[prop] = now + this.unit;
|
|
509
|
-
}
|
|
510
|
-
if (step) {
|
|
511
|
-
step.call(elem, now, this);
|
|
512
|
-
}
|
|
513
|
-
};
|
|
514
|
-
/**
|
|
515
|
-
* Run an animation.
|
|
516
|
-
*
|
|
517
|
-
* @function Highcharts.Fx#run
|
|
518
|
-
*
|
|
519
|
-
* @param {number} from
|
|
520
|
-
* The current value, value to start from.
|
|
521
|
-
*
|
|
522
|
-
* @param {number} to
|
|
523
|
-
* The end value, value to land on.
|
|
524
|
-
*
|
|
525
|
-
* @param {string} unit
|
|
526
|
-
* The property unit, for example `px`.
|
|
527
|
-
*
|
|
528
|
-
* @return {void}
|
|
529
|
-
*/
|
|
530
|
-
Fx.prototype.run = function (from, to, unit) {
|
|
531
|
-
var self = this, options = self.options, timer = function (gotoEnd) {
|
|
532
|
-
return timer.stopped ? false : self.step(gotoEnd);
|
|
533
|
-
}, requestAnimationFrame = win.requestAnimationFrame ||
|
|
534
|
-
function (step) {
|
|
535
|
-
setTimeout(step, 13);
|
|
536
|
-
}, step = function () {
|
|
537
|
-
for (var i = 0; i < H.timers.length; i++) {
|
|
538
|
-
if (!H.timers[i]()) {
|
|
539
|
-
H.timers.splice(i--, 1);
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
if (H.timers.length) {
|
|
543
|
-
requestAnimationFrame(step);
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
if (from === to && !this.elem['forceAnimate:' + this.prop]) {
|
|
547
|
-
delete options.curAnim[this.prop];
|
|
548
|
-
if (options.complete && Object.keys(options.curAnim).length === 0) {
|
|
549
|
-
options.complete.call(this.elem);
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
else { // #7166
|
|
553
|
-
this.startTime = +new Date();
|
|
554
|
-
this.start = from;
|
|
555
|
-
this.end = to;
|
|
556
|
-
this.unit = unit;
|
|
557
|
-
this.now = this.start;
|
|
558
|
-
this.pos = 0;
|
|
559
|
-
timer.elem = this.elem;
|
|
560
|
-
timer.prop = this.prop;
|
|
561
|
-
if (timer() && H.timers.push(timer) === 1) {
|
|
562
|
-
requestAnimationFrame(step);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
};
|
|
566
|
-
/**
|
|
567
|
-
* Run a single step in the animation.
|
|
568
|
-
*
|
|
569
|
-
* @function Highcharts.Fx#step
|
|
570
|
-
*
|
|
571
|
-
* @param {boolean} [gotoEnd]
|
|
572
|
-
* Whether to go to the endpoint of the animation after abort.
|
|
573
|
-
*
|
|
574
|
-
* @return {boolean}
|
|
575
|
-
* Returns `true` if animation continues.
|
|
576
|
-
*/
|
|
577
|
-
Fx.prototype.step = function (gotoEnd) {
|
|
578
|
-
var t = +new Date(), ret, done, options = this.options, elem = this.elem, complete = options.complete, duration = options.duration, curAnim = options.curAnim;
|
|
579
|
-
if (elem.attr && !elem.element) { // #2616, element is destroyed
|
|
580
|
-
ret = false;
|
|
581
|
-
}
|
|
582
|
-
else if (gotoEnd || t >= duration + this.startTime) {
|
|
583
|
-
this.now = this.end;
|
|
584
|
-
this.pos = 1;
|
|
585
|
-
this.update();
|
|
586
|
-
curAnim[this.prop] = true;
|
|
587
|
-
done = true;
|
|
588
|
-
objectEach(curAnim, function (val) {
|
|
589
|
-
if (val !== true) {
|
|
590
|
-
done = false;
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
if (done && complete) {
|
|
594
|
-
complete.call(elem);
|
|
595
|
-
}
|
|
596
|
-
ret = false;
|
|
597
|
-
}
|
|
598
|
-
else {
|
|
599
|
-
this.pos = options.easing((t - this.startTime) / duration);
|
|
600
|
-
this.now = this.start + ((this.end - this.start) * this.pos);
|
|
601
|
-
this.update();
|
|
602
|
-
ret = true;
|
|
603
|
-
}
|
|
604
|
-
return ret;
|
|
605
|
-
};
|
|
606
|
-
/**
|
|
607
|
-
* Prepare start and end values so that the path can be animated one to one.
|
|
608
|
-
*
|
|
609
|
-
* @function Highcharts.Fx#initPath
|
|
610
|
-
*
|
|
611
|
-
* @param {Highcharts.SVGElement} elem
|
|
612
|
-
* The SVGElement item.
|
|
613
|
-
*
|
|
614
|
-
* @param {Highcharts.SVGPathArray|undefined} fromD
|
|
615
|
-
* Starting path definition.
|
|
616
|
-
*
|
|
617
|
-
* @param {Highcharts.SVGPathArray} toD
|
|
618
|
-
* Ending path definition.
|
|
619
|
-
*
|
|
620
|
-
* @return {Array<Highcharts.SVGPathArray,Highcharts.SVGPathArray>}
|
|
621
|
-
* An array containing start and end paths in array form so that
|
|
622
|
-
* they can be animated in parallel.
|
|
623
|
-
*/
|
|
624
|
-
Fx.prototype.initPath = function (elem, fromD, toD) {
|
|
625
|
-
var shift, startX = elem.startX, endX = elem.endX, fullLength, i, start = fromD && fromD.slice(), // copy
|
|
626
|
-
end = toD.slice(), // copy
|
|
627
|
-
isArea = elem.isArea, positionFactor = isArea ? 2 : 1, reverse;
|
|
628
|
-
if (!start) {
|
|
629
|
-
return [end, end];
|
|
630
|
-
}
|
|
631
|
-
/**
|
|
632
|
-
* If shifting points, prepend a dummy point to the end path.
|
|
633
|
-
* @private
|
|
634
|
-
* @param {Highcharts.SVGPathArray} arr - array
|
|
635
|
-
* @param {Highcharts.SVGPathArray} other - array
|
|
636
|
-
* @return {void}
|
|
637
|
-
*/
|
|
638
|
-
function prepend(arr, other) {
|
|
639
|
-
while (arr.length < fullLength) {
|
|
640
|
-
// Move to, line to or curve to?
|
|
641
|
-
var moveSegment = arr[0], otherSegment = other[fullLength - arr.length];
|
|
642
|
-
if (otherSegment && moveSegment[0] === 'M') {
|
|
643
|
-
if (otherSegment[0] === 'C') {
|
|
644
|
-
arr[0] = [
|
|
645
|
-
'C',
|
|
646
|
-
moveSegment[1],
|
|
647
|
-
moveSegment[2],
|
|
648
|
-
moveSegment[1],
|
|
649
|
-
moveSegment[2],
|
|
650
|
-
moveSegment[1],
|
|
651
|
-
moveSegment[2]
|
|
652
|
-
];
|
|
653
|
-
}
|
|
654
|
-
else {
|
|
655
|
-
arr[0] = ['L', moveSegment[1], moveSegment[2]];
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
// Prepend a copy of the first point
|
|
659
|
-
arr.unshift(moveSegment);
|
|
660
|
-
// For areas, the bottom path goes back again to the left, so we
|
|
661
|
-
// need to append a copy of the last point.
|
|
662
|
-
if (isArea) {
|
|
663
|
-
arr.push(arr[arr.length - 1]);
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
/**
|
|
668
|
-
* Copy and append last point until the length matches the end length.
|
|
669
|
-
* @private
|
|
670
|
-
* @param {Highcharts.SVGPathArray} arr - array
|
|
671
|
-
* @param {Highcharts.SVGPathArray} other - array
|
|
672
|
-
* @return {void}
|
|
673
|
-
*/
|
|
674
|
-
function append(arr, other) {
|
|
675
|
-
while (arr.length < fullLength) {
|
|
676
|
-
// Pull out the slice that is going to be appended or inserted.
|
|
677
|
-
// In a line graph, the positionFactor is 1, and the last point
|
|
678
|
-
// is sliced out. In an area graph, the positionFactor is 2,
|
|
679
|
-
// causing the middle two points to be sliced out, since an area
|
|
680
|
-
// path starts at left, follows the upper path then turns and
|
|
681
|
-
// follows the bottom back.
|
|
682
|
-
var segmentToAdd = arr[arr.length / positionFactor - 1].slice();
|
|
683
|
-
// Disable the first control point of curve segments
|
|
684
|
-
if (segmentToAdd[0] === 'C') {
|
|
685
|
-
segmentToAdd[1] = segmentToAdd[5];
|
|
686
|
-
segmentToAdd[2] = segmentToAdd[6];
|
|
687
|
-
}
|
|
688
|
-
if (!isArea) {
|
|
689
|
-
arr.push(segmentToAdd);
|
|
690
|
-
}
|
|
691
|
-
else {
|
|
692
|
-
var lowerSegmentToAdd = arr[arr.length / positionFactor].slice();
|
|
693
|
-
arr.splice(arr.length / 2, 0, segmentToAdd, lowerSegmentToAdd);
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
// For sideways animation, find out how much we need to shift to get the
|
|
698
|
-
// start path Xs to match the end path Xs.
|
|
699
|
-
if (startX && endX) {
|
|
700
|
-
for (i = 0; i < startX.length; i++) {
|
|
701
|
-
// Moving left, new points coming in on right
|
|
702
|
-
if (startX[i] === endX[0]) {
|
|
703
|
-
shift = i;
|
|
704
|
-
break;
|
|
705
|
-
// Moving right
|
|
706
|
-
}
|
|
707
|
-
else if (startX[0] ===
|
|
708
|
-
endX[endX.length - startX.length + i]) {
|
|
709
|
-
shift = i;
|
|
710
|
-
reverse = true;
|
|
711
|
-
break;
|
|
712
|
-
// Fixed from the right side, "scaling" left
|
|
713
|
-
}
|
|
714
|
-
else if (startX[startX.length - 1] ===
|
|
715
|
-
endX[endX.length - startX.length + i]) {
|
|
716
|
-
shift = startX.length - i;
|
|
717
|
-
break;
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
if (typeof shift === 'undefined') {
|
|
721
|
-
start = [];
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
if (start.length && isNumber(shift)) {
|
|
725
|
-
// The common target length for the start and end array, where both
|
|
726
|
-
// arrays are padded in opposite ends
|
|
727
|
-
fullLength = end.length + shift * positionFactor;
|
|
728
|
-
if (!reverse) {
|
|
729
|
-
prepend(end, start);
|
|
730
|
-
append(start, end);
|
|
731
|
-
}
|
|
732
|
-
else {
|
|
733
|
-
prepend(start, end);
|
|
734
|
-
append(end, start);
|
|
735
|
-
}
|
|
736
|
-
}
|
|
737
|
-
return [start, end];
|
|
738
|
-
};
|
|
739
|
-
/**
|
|
740
|
-
* Handle animation of the color attributes directly.
|
|
741
|
-
*
|
|
742
|
-
* @function Highcharts.Fx#fillSetter
|
|
743
|
-
*
|
|
744
|
-
* @return {void}
|
|
745
|
-
*/
|
|
746
|
-
Fx.prototype.fillSetter = function () {
|
|
747
|
-
Fx.prototype.strokeSetter.apply(this, arguments);
|
|
748
|
-
};
|
|
749
|
-
/**
|
|
750
|
-
* Handle animation of the color attributes directly.
|
|
751
|
-
*
|
|
752
|
-
* @function Highcharts.Fx#strokeSetter
|
|
753
|
-
*
|
|
754
|
-
* @return {void}
|
|
755
|
-
*/
|
|
756
|
-
Fx.prototype.strokeSetter = function () {
|
|
757
|
-
this.elem.attr(this.prop, H.color(this.start).tweenTo(H.color(this.end), this.pos), null, true);
|
|
758
|
-
};
|
|
759
|
-
return Fx;
|
|
760
|
-
}());
|
|
761
|
-
H.Fx = Fx;
|
|
762
400
|
/* eslint-disable valid-jsdoc */
|
|
763
401
|
/**
|
|
764
402
|
* Utility function to deep merge two or more objects and return a third object.
|
|
@@ -1549,8 +1187,6 @@ var arrayMax = H.arrayMax = function arrayMax(data) {
|
|
|
1549
1187
|
*
|
|
1550
1188
|
* @param {*} [except]
|
|
1551
1189
|
* Exception, do not destroy this property, only delete it.
|
|
1552
|
-
*
|
|
1553
|
-
* @return {void}
|
|
1554
1190
|
*/
|
|
1555
1191
|
var destroyObjectProperties = H.destroyObjectProperties =
|
|
1556
1192
|
function destroyObjectProperties(obj, except) {
|
|
@@ -1571,8 +1207,6 @@ var destroyObjectProperties = H.destroyObjectProperties =
|
|
|
1571
1207
|
*
|
|
1572
1208
|
* @param {Highcharts.HTMLDOMElement} element
|
|
1573
1209
|
* The HTML node to discard.
|
|
1574
|
-
*
|
|
1575
|
-
* @return {void}
|
|
1576
1210
|
*/
|
|
1577
1211
|
var discardElement = H.discardElement = function discardElement(element) {
|
|
1578
1212
|
var garbageBin = H.garbageBin;
|
|
@@ -1603,45 +1237,6 @@ var discardElement = H.discardElement = function discardElement(element) {
|
|
|
1603
1237
|
var correctFloat = H.correctFloat = function correctFloat(num, prec) {
|
|
1604
1238
|
return parseFloat(num.toPrecision(prec || 14));
|
|
1605
1239
|
};
|
|
1606
|
-
/**
|
|
1607
|
-
* Set the global animation to either a given value, or fall back to the given
|
|
1608
|
-
* chart's animation option.
|
|
1609
|
-
*
|
|
1610
|
-
* @function Highcharts.setAnimation
|
|
1611
|
-
*
|
|
1612
|
-
* @param {boolean|Partial<Highcharts.AnimationOptionsObject>|undefined} animation
|
|
1613
|
-
* The animation object.
|
|
1614
|
-
*
|
|
1615
|
-
* @param {Highcharts.Chart} chart
|
|
1616
|
-
* The chart instance.
|
|
1617
|
-
*
|
|
1618
|
-
* @return {void}
|
|
1619
|
-
*
|
|
1620
|
-
* @todo
|
|
1621
|
-
* This function always relates to a chart, and sets a property on the renderer,
|
|
1622
|
-
* so it should be moved to the SVGRenderer.
|
|
1623
|
-
*/
|
|
1624
|
-
var setAnimation = H.setAnimation = function setAnimation(animation, chart) {
|
|
1625
|
-
chart.renderer.globalAnimation = pick(animation, chart.options.chart.animation, true);
|
|
1626
|
-
};
|
|
1627
|
-
/**
|
|
1628
|
-
* Get the animation in object form, where a disabled animation is always
|
|
1629
|
-
* returned as `{ duration: 0 }`.
|
|
1630
|
-
*
|
|
1631
|
-
* @function Highcharts.animObject
|
|
1632
|
-
*
|
|
1633
|
-
* @param {boolean|Highcharts.AnimationOptionsObject} [animation=0]
|
|
1634
|
-
* An animation setting. Can be an object with duration, complete and
|
|
1635
|
-
* easing properties, or a boolean to enable or disable.
|
|
1636
|
-
*
|
|
1637
|
-
* @return {Highcharts.AnimationOptionsObject}
|
|
1638
|
-
* An object with at least a duration property.
|
|
1639
|
-
*/
|
|
1640
|
-
var animObject = H.animObject = function animObject(animation) {
|
|
1641
|
-
return isObject(animation) ?
|
|
1642
|
-
H.merge({ duration: 500, defer: 0 }, animation) :
|
|
1643
|
-
{ duration: animation ? 500 : 0, defer: 0 };
|
|
1644
|
-
};
|
|
1645
1240
|
/**
|
|
1646
1241
|
* The time unit lookup
|
|
1647
1242
|
*
|
|
@@ -1856,39 +1451,6 @@ var getStyle = H.getStyle = function (el, prop, toInt) {
|
|
|
1856
1451
|
}
|
|
1857
1452
|
return style;
|
|
1858
1453
|
};
|
|
1859
|
-
/**
|
|
1860
|
-
* Get the defer as a number value from series animation options.
|
|
1861
|
-
*
|
|
1862
|
-
* @function Highcharts.getDeferredAnimation
|
|
1863
|
-
*
|
|
1864
|
-
* @param {Highcharts.Chart} chart
|
|
1865
|
-
* The chart instance.
|
|
1866
|
-
*
|
|
1867
|
-
* @return {number}
|
|
1868
|
-
* The numeric value.
|
|
1869
|
-
*/
|
|
1870
|
-
var getDeferredAnimation = H.getDeferredAnimation = function (chart, animation, series) {
|
|
1871
|
-
var labelAnimation = animObject(animation);
|
|
1872
|
-
var s = series ? [series] : chart.series;
|
|
1873
|
-
var defer = 0;
|
|
1874
|
-
var duration = 0;
|
|
1875
|
-
s.forEach(function (series) {
|
|
1876
|
-
var seriesAnim = animObject(series.options.animation);
|
|
1877
|
-
defer = animation && defined(animation.defer) ?
|
|
1878
|
-
labelAnimation.defer :
|
|
1879
|
-
Math.max(defer, seriesAnim.duration + seriesAnim.defer);
|
|
1880
|
-
duration = Math.min(labelAnimation.duration, seriesAnim.duration);
|
|
1881
|
-
});
|
|
1882
|
-
// Disable defer for exporting
|
|
1883
|
-
if (chart.renderer.forExport) {
|
|
1884
|
-
defer = 0;
|
|
1885
|
-
}
|
|
1886
|
-
var anim = {
|
|
1887
|
-
defer: Math.max(0, defer - duration),
|
|
1888
|
-
duration: Math.min(defer, duration)
|
|
1889
|
-
};
|
|
1890
|
-
return anim;
|
|
1891
|
-
};
|
|
1892
1454
|
/**
|
|
1893
1455
|
* Search for an item in an array.
|
|
1894
1456
|
*
|
|
@@ -1982,36 +1544,6 @@ var offset = H.offset = function offset(el) {
|
|
|
1982
1544
|
(docElem.clientLeft || 0)
|
|
1983
1545
|
};
|
|
1984
1546
|
};
|
|
1985
|
-
/**
|
|
1986
|
-
* Stop running animation.
|
|
1987
|
-
*
|
|
1988
|
-
* @function Highcharts.stop
|
|
1989
|
-
*
|
|
1990
|
-
* @param {Highcharts.SVGElement} el
|
|
1991
|
-
* The SVGElement to stop animation on.
|
|
1992
|
-
*
|
|
1993
|
-
* @param {string} [prop]
|
|
1994
|
-
* The property to stop animating. If given, the stop method will stop a
|
|
1995
|
-
* single property from animating, while others continue.
|
|
1996
|
-
*
|
|
1997
|
-
* @return {void}
|
|
1998
|
-
*
|
|
1999
|
-
* @todo
|
|
2000
|
-
* A possible extension to this would be to stop a single property, when
|
|
2001
|
-
* we want to continue animating others. Then assign the prop to the timer
|
|
2002
|
-
* in the Fx.run method, and check for the prop here. This would be an
|
|
2003
|
-
* improvement in all cases where we stop the animation from .attr. Instead of
|
|
2004
|
-
* stopping everything, we can just stop the actual attributes we're setting.
|
|
2005
|
-
*/
|
|
2006
|
-
var stop = H.stop = function (el, prop) {
|
|
2007
|
-
var i = H.timers.length;
|
|
2008
|
-
// Remove timers related to this element (#4519)
|
|
2009
|
-
while (i--) {
|
|
2010
|
-
if (H.timers[i].elem === el && (!prop || prop === H.timers[i].prop)) {
|
|
2011
|
-
H.timers[i].stopped = true; // #4667
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
};
|
|
2015
1547
|
/* eslint-disable valid-jsdoc */
|
|
2016
1548
|
/**
|
|
2017
1549
|
* Iterate over object key pairs in an object.
|
|
@@ -2377,113 +1909,6 @@ var fireEvent = H.fireEvent = function (el, type, eventArguments, defaultFunctio
|
|
|
2377
1909
|
defaultFunction.call(el, eventArguments);
|
|
2378
1910
|
}
|
|
2379
1911
|
};
|
|
2380
|
-
/**
|
|
2381
|
-
* The global animate method, which uses Fx to create individual animators.
|
|
2382
|
-
*
|
|
2383
|
-
* @function Highcharts.animate
|
|
2384
|
-
*
|
|
2385
|
-
* @param {Highcharts.HTMLDOMElement|Highcharts.SVGElement} el
|
|
2386
|
-
* The element to animate.
|
|
2387
|
-
*
|
|
2388
|
-
* @param {Highcharts.CSSObject|Highcharts.SVGAttributes} params
|
|
2389
|
-
* An object containing key-value pairs of the properties to animate.
|
|
2390
|
-
* Supports numeric as pixel-based CSS properties for HTML objects and
|
|
2391
|
-
* attributes for SVGElements.
|
|
2392
|
-
*
|
|
2393
|
-
* @param {Partial<Highcharts.AnimationOptionsObject>} [opt]
|
|
2394
|
-
* Animation options.
|
|
2395
|
-
*
|
|
2396
|
-
* @return {void}
|
|
2397
|
-
*/
|
|
2398
|
-
var animate = H.animate = function (el, params, opt) {
|
|
2399
|
-
var start, unit = '', end, fx, args;
|
|
2400
|
-
if (!isObject(opt)) { // Number or undefined/null
|
|
2401
|
-
args = arguments;
|
|
2402
|
-
opt = {
|
|
2403
|
-
duration: args[2],
|
|
2404
|
-
easing: args[3],
|
|
2405
|
-
complete: args[4]
|
|
2406
|
-
};
|
|
2407
|
-
}
|
|
2408
|
-
if (!isNumber(opt.duration)) {
|
|
2409
|
-
opt.duration = 400;
|
|
2410
|
-
}
|
|
2411
|
-
opt.easing = typeof opt.easing === 'function' ?
|
|
2412
|
-
opt.easing :
|
|
2413
|
-
(Math[opt.easing] || Math.easeInOutSine);
|
|
2414
|
-
opt.curAnim = merge(params);
|
|
2415
|
-
objectEach(params, function (val, prop) {
|
|
2416
|
-
// Stop current running animation of this property
|
|
2417
|
-
stop(el, prop);
|
|
2418
|
-
fx = new Fx(el, opt, prop);
|
|
2419
|
-
end = null;
|
|
2420
|
-
if (prop === 'd' && isArray(params.d)) {
|
|
2421
|
-
fx.paths = fx.initPath(el, el.pathArray, params.d);
|
|
2422
|
-
fx.toD = params.d;
|
|
2423
|
-
start = 0;
|
|
2424
|
-
end = 1;
|
|
2425
|
-
}
|
|
2426
|
-
else if (el.attr) {
|
|
2427
|
-
start = el.attr(prop);
|
|
2428
|
-
}
|
|
2429
|
-
else {
|
|
2430
|
-
start = parseFloat(getStyle(el, prop)) || 0;
|
|
2431
|
-
if (prop !== 'opacity') {
|
|
2432
|
-
unit = 'px';
|
|
2433
|
-
}
|
|
2434
|
-
}
|
|
2435
|
-
if (!end) {
|
|
2436
|
-
end = val;
|
|
2437
|
-
}
|
|
2438
|
-
if (end && end.match && end.match('px')) {
|
|
2439
|
-
end = end.replace(/px/g, ''); // #4351
|
|
2440
|
-
}
|
|
2441
|
-
fx.run(start, end, unit);
|
|
2442
|
-
});
|
|
2443
|
-
};
|
|
2444
|
-
/**
|
|
2445
|
-
* Factory to create new series prototypes.
|
|
2446
|
-
*
|
|
2447
|
-
* @function Highcharts.seriesType
|
|
2448
|
-
*
|
|
2449
|
-
* @param {string} type
|
|
2450
|
-
* The series type name.
|
|
2451
|
-
*
|
|
2452
|
-
* @param {string} parent
|
|
2453
|
-
* The parent series type name. Use `line` to inherit from the basic
|
|
2454
|
-
* {@link Series} object.
|
|
2455
|
-
*
|
|
2456
|
-
* @param {Highcharts.SeriesOptionsType|Highcharts.Dictionary<*>} options
|
|
2457
|
-
* The additional default options that are merged with the parent's
|
|
2458
|
-
* options.
|
|
2459
|
-
*
|
|
2460
|
-
* @param {Highcharts.Dictionary<*>} [props]
|
|
2461
|
-
* The properties (functions and primitives) to set on the new
|
|
2462
|
-
* prototype.
|
|
2463
|
-
*
|
|
2464
|
-
* @param {Highcharts.Dictionary<*>} [pointProps]
|
|
2465
|
-
* Members for a series-specific extension of the {@link Point}
|
|
2466
|
-
* prototype if needed.
|
|
2467
|
-
*
|
|
2468
|
-
* @return {Highcharts.Series}
|
|
2469
|
-
* The newly created prototype as extended from {@link Series} or its
|
|
2470
|
-
* derivatives.
|
|
2471
|
-
*/
|
|
2472
|
-
// docs: add to API + extending Highcharts
|
|
2473
|
-
var seriesType = H.seriesType = function (type, parent, options, props, pointProps) {
|
|
2474
|
-
var defaultOptions = getOptions(), seriesTypes = H.seriesTypes;
|
|
2475
|
-
// Merge the options
|
|
2476
|
-
defaultOptions.plotOptions[type] = merge(defaultOptions.plotOptions[parent], options);
|
|
2477
|
-
// Create the class
|
|
2478
|
-
seriesTypes[type] = extendClass(seriesTypes[parent] || function () { }, props);
|
|
2479
|
-
seriesTypes[type].prototype.type = type;
|
|
2480
|
-
// Create the point class if needed
|
|
2481
|
-
if (pointProps) {
|
|
2482
|
-
seriesTypes[type].prototype.pointClass =
|
|
2483
|
-
extendClass(H.Point, pointProps);
|
|
2484
|
-
}
|
|
2485
|
-
return seriesTypes[type];
|
|
2486
|
-
};
|
|
2487
1912
|
var serialMode;
|
|
2488
1913
|
/**
|
|
2489
1914
|
* Get a unique key for using in internal element id's and pointers. The key is
|
|
@@ -2625,10 +2050,7 @@ if (win.jQuery) {
|
|
|
2625
2050
|
}
|
|
2626
2051
|
// TODO use named exports when supported.
|
|
2627
2052
|
var utilitiesModule = {
|
|
2628
|
-
Fx: H.Fx,
|
|
2629
2053
|
addEvent: addEvent,
|
|
2630
|
-
animate: animate,
|
|
2631
|
-
animObject: animObject,
|
|
2632
2054
|
arrayMax: arrayMax,
|
|
2633
2055
|
arrayMin: arrayMin,
|
|
2634
2056
|
attr: attr,
|
|
@@ -2647,7 +2069,6 @@ var utilitiesModule = {
|
|
|
2647
2069
|
find: find,
|
|
2648
2070
|
fireEvent: fireEvent,
|
|
2649
2071
|
format: format,
|
|
2650
|
-
getDeferredAnimation: getDeferredAnimation,
|
|
2651
2072
|
getMagnitude: getMagnitude,
|
|
2652
2073
|
getNestedProperty: getNestedProperty,
|
|
2653
2074
|
getOptions: getOptions,
|
|
@@ -2670,12 +2091,9 @@ var utilitiesModule = {
|
|
|
2670
2091
|
pInt: pInt,
|
|
2671
2092
|
relativeLength: relativeLength,
|
|
2672
2093
|
removeEvent: removeEvent,
|
|
2673
|
-
seriesType: seriesType,
|
|
2674
|
-
setAnimation: setAnimation,
|
|
2675
2094
|
setOptions: setOptions,
|
|
2676
2095
|
splat: splat,
|
|
2677
2096
|
stableSort: stableSort,
|
|
2678
|
-
stop: stop,
|
|
2679
2097
|
syncTimeout: syncTimeout,
|
|
2680
2098
|
timeUnits: timeUnits,
|
|
2681
2099
|
uniqueKey: uniqueKey,
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
+
import A from '../../Core/Animation/AnimationUtilities.js';
|
|
12
|
+
var getDeferredAnimation = A.getDeferredAnimation;
|
|
11
13
|
import Chart from '../../Core/Chart/Chart.js';
|
|
12
14
|
var chartProto = Chart.prototype;
|
|
13
15
|
import ControllableMixin from './Mixins/ControllableMixin.js';
|
|
@@ -22,7 +24,7 @@ import H from '../../Core/Globals.js';
|
|
|
22
24
|
import MockPoint from './MockPoint.js';
|
|
23
25
|
import Pointer from '../../Core/Pointer.js';
|
|
24
26
|
import U from '../../Core/Utilities.js';
|
|
25
|
-
var addEvent = U.addEvent, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, find = U.find, fireEvent = U.fireEvent,
|
|
27
|
+
var addEvent = U.addEvent, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, find = U.find, fireEvent = U.fireEvent, merge = U.merge, pick = U.pick, splat = U.splat, wrap = U.wrap;
|
|
26
28
|
/* *********************************************************************
|
|
27
29
|
*
|
|
28
30
|
* ANNOTATION
|
|
@@ -995,7 +997,7 @@ merge(Annotation.prototype,
|
|
|
995
997
|
* Basic shape annotation
|
|
996
998
|
*
|
|
997
999
|
* @type {string}
|
|
998
|
-
* @default
|
|
1000
|
+
* @default rect
|
|
999
1001
|
* @apioption annotations.shapeOptions.type
|
|
1000
1002
|
*/
|
|
1001
1003
|
/**
|