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
|
@@ -9,18 +9,21 @@
|
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
11
|
import Axis from './Axis/Axis.js';
|
|
12
|
+
import BaseSeries from './Series/Series.js';
|
|
13
|
+
var seriesTypes = BaseSeries.seriesTypes;
|
|
12
14
|
import Chart from './Chart/Chart.js';
|
|
13
|
-
import Color from './Color.js';
|
|
15
|
+
import Color from './Color/Color.js';
|
|
14
16
|
var color = Color.parse;
|
|
15
17
|
import H from './Globals.js';
|
|
18
|
+
var hasTouch = H.hasTouch, isTouchDevice = H.isTouchDevice;
|
|
19
|
+
import LineSeries from '../Series/LineSeries.js';
|
|
16
20
|
import NavigatorAxis from './Axis/NavigatorAxis.js';
|
|
17
21
|
import O from './Options.js';
|
|
18
22
|
var defaultOptions = O.defaultOptions;
|
|
19
23
|
import Scrollbar from './Scrollbar.js';
|
|
20
24
|
import U from './Utilities.js';
|
|
21
25
|
var addEvent = U.addEvent, clamp = U.clamp, correctFloat = U.correctFloat, defined = U.defined, destroyObjectProperties = U.destroyObjectProperties, erase = U.erase, extend = U.extend, find = U.find, isArray = U.isArray, isNumber = U.isNumber, merge = U.merge, pick = U.pick, removeEvent = U.removeEvent, splat = U.splat;
|
|
22
|
-
|
|
23
|
-
var hasTouch = H.hasTouch, isTouchDevice = H.isTouchDevice, Series = H.Series, seriesTypes = H.seriesTypes, defaultSeriesType,
|
|
26
|
+
var defaultSeriesType,
|
|
24
27
|
// Finding the min or max of a set of variables where we don't know if they
|
|
25
28
|
// are defined, is a pattern that is repeated several places in Highcharts.
|
|
26
29
|
// Consider making this a global utility method.
|
|
@@ -1294,6 +1297,7 @@ var Navigator = /** @class */ (function () {
|
|
|
1294
1297
|
offset: 0,
|
|
1295
1298
|
index: yAxisIndex,
|
|
1296
1299
|
isInternal: true,
|
|
1300
|
+
reversed: pick((navigatorOptions.yAxis && navigatorOptions.yAxis.reversed), (chart.yAxis[0] && chart.yAxis[0].reversed), false),
|
|
1297
1301
|
zoomEnabled: false
|
|
1298
1302
|
}, chart.inverted ? {
|
|
1299
1303
|
width: height
|
|
@@ -1898,7 +1902,7 @@ if (!H.Navigator) {
|
|
|
1898
1902
|
}
|
|
1899
1903
|
});
|
|
1900
1904
|
// Handle updating series
|
|
1901
|
-
addEvent(
|
|
1905
|
+
addEvent(LineSeries, 'afterUpdate', function () {
|
|
1902
1906
|
if (this.chart.navigator && !this.options.isInternal) {
|
|
1903
1907
|
this.chart.navigator.setBaseSeries(null, false);
|
|
1904
1908
|
}
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
11
|
import H from './Globals.js';
|
|
12
|
+
var isTouchDevice = H.isTouchDevice, svg = H.svg;
|
|
13
|
+
import Color from './Color/Color.js';
|
|
14
|
+
var color = Color.parse;
|
|
15
|
+
import Time from './Time.js';
|
|
16
|
+
import U from './Utilities.js';
|
|
17
|
+
var merge = U.merge;
|
|
12
18
|
/**
|
|
13
19
|
* @typedef {"plotBox"|"spacingBox"} Highcharts.ButtonRelativeToValue
|
|
14
20
|
*/
|
|
@@ -175,12 +181,7 @@ import H from './Globals.js';
|
|
|
175
181
|
* @name Highcharts.ChartSelectionAxisContextObject#min
|
|
176
182
|
* @type {number}
|
|
177
183
|
*/
|
|
178
|
-
|
|
179
|
-
import Color from './Color.js';
|
|
180
|
-
var color = Color.parse;
|
|
181
|
-
import U from './Utilities.js';
|
|
182
|
-
var merge = U.merge;
|
|
183
|
-
var isTouchDevice = H.isTouchDevice, svg = H.svg;
|
|
184
|
+
''; // detach doclets above
|
|
184
185
|
/* ************************************************************************** *
|
|
185
186
|
* Handle the options *
|
|
186
187
|
* ************************************************************************** */
|
|
@@ -3438,11 +3439,12 @@ H.defaultOptions = {
|
|
|
3438
3439
|
*/
|
|
3439
3440
|
/**
|
|
3440
3441
|
* The HTML of the point's line in the tooltip. Variables are enclosed
|
|
3441
|
-
* by curly brackets. Available variables are point.x
|
|
3442
|
-
* name and series.color and other properties on the same
|
|
3443
|
-
* Furthermore, `point.y` can be extended by the
|
|
3444
|
-
* and `tooltip.valueSuffix` variables. This can
|
|
3445
|
-
* each series, which makes it a good hook for
|
|
3442
|
+
* by curly brackets. Available variables are `point.x`, `point.y`,
|
|
3443
|
+
* `series.name` and `series.color` and other properties on the same
|
|
3444
|
+
* form. Furthermore, `point.y` can be extended by the
|
|
3445
|
+
* `tooltip.valuePrefix` and `tooltip.valueSuffix` variables. This can
|
|
3446
|
+
* also be overridden for each series, which makes it a good hook for
|
|
3447
|
+
* displaying units.
|
|
3446
3448
|
*
|
|
3447
3449
|
* In styled mode, the dot is colored by a class name rather
|
|
3448
3450
|
* than the point color.
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
10
|
'use strict';
|
|
11
|
-
import Color from './Color.js';
|
|
11
|
+
import Color from './Color/Color.js';
|
|
12
12
|
var color = Color.parse;
|
|
13
13
|
import H from './Globals.js';
|
|
14
14
|
var charts = H.charts, noop = H.noop;
|
|
@@ -993,7 +993,7 @@ var Pointer = /** @class */ (function () {
|
|
|
993
993
|
}
|
|
994
994
|
// On touch devices, only proceed to trigger click if a handler is
|
|
995
995
|
// defined
|
|
996
|
-
if (hasZoom && self.initiated && !fireClickEvent) {
|
|
996
|
+
if (hasZoom && self.initiated && !fireClickEvent && e.cancelable !== false) {
|
|
997
997
|
e.preventDefault();
|
|
998
998
|
}
|
|
999
999
|
// Normalize each touch
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/* *
|
|
2
|
+
*
|
|
3
|
+
* (c) 2010-2020 Torstein Honsi
|
|
4
|
+
*
|
|
5
|
+
* License: www.highcharts.com/license
|
|
6
|
+
*
|
|
7
|
+
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
|
+
*
|
|
9
|
+
* */
|
|
10
|
+
import H from '../../Globals.js';
|
|
11
|
+
import SVGElement from '../SVG/SVGElement.js';
|
|
12
|
+
import U from '../../Utilities.js';
|
|
13
|
+
var css = U.css, defined = U.defined, extend = U.extend, pick = U.pick, pInt = U.pInt;
|
|
14
|
+
/**
|
|
15
|
+
* Element placebo
|
|
16
|
+
* @private
|
|
17
|
+
*/
|
|
18
|
+
var HTMLElement = SVGElement;
|
|
19
|
+
var isFirefox = H.isFirefox;
|
|
20
|
+
/* eslint-disable valid-jsdoc */
|
|
21
|
+
// Extend SvgElement for useHTML option.
|
|
22
|
+
extend(HTMLElement.prototype, /** @lends SVGElement.prototype */ {
|
|
23
|
+
/**
|
|
24
|
+
* Apply CSS to HTML elements. This is used in text within SVG rendering and
|
|
25
|
+
* by the VML renderer
|
|
26
|
+
*
|
|
27
|
+
* @private
|
|
28
|
+
* @function Highcharts.SVGElement#htmlCss
|
|
29
|
+
*
|
|
30
|
+
* @param {Highcharts.CSSObject} styles
|
|
31
|
+
*
|
|
32
|
+
* @return {Highcharts.SVGElement}
|
|
33
|
+
*/
|
|
34
|
+
htmlCss: function (styles) {
|
|
35
|
+
var wrapper = this, element = wrapper.element,
|
|
36
|
+
// When setting or unsetting the width style, we need to update
|
|
37
|
+
// transform (#8809)
|
|
38
|
+
isSettingWidth = (element.tagName === 'SPAN' &&
|
|
39
|
+
styles &&
|
|
40
|
+
'width' in styles), textWidth = pick(isSettingWidth && styles.width, void 0), doTransform;
|
|
41
|
+
if (isSettingWidth) {
|
|
42
|
+
delete styles.width;
|
|
43
|
+
wrapper.textWidth = textWidth;
|
|
44
|
+
doTransform = true;
|
|
45
|
+
}
|
|
46
|
+
if (styles && styles.textOverflow === 'ellipsis') {
|
|
47
|
+
styles.whiteSpace = 'nowrap';
|
|
48
|
+
styles.overflow = 'hidden';
|
|
49
|
+
}
|
|
50
|
+
wrapper.styles = extend(wrapper.styles, styles);
|
|
51
|
+
css(wrapper.element, styles);
|
|
52
|
+
// Now that all styles are applied, to the transform
|
|
53
|
+
if (doTransform) {
|
|
54
|
+
wrapper.htmlUpdateTransform();
|
|
55
|
+
}
|
|
56
|
+
return wrapper;
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* VML and useHTML method for calculating the bounding box based on offsets.
|
|
60
|
+
*
|
|
61
|
+
* @private
|
|
62
|
+
* @function Highcharts.SVGElement#htmlGetBBox
|
|
63
|
+
*
|
|
64
|
+
* @param {boolean} refresh
|
|
65
|
+
* Whether to force a fresh value from the DOM or to use the cached
|
|
66
|
+
* value.
|
|
67
|
+
*
|
|
68
|
+
* @return {Highcharts.BBoxObject}
|
|
69
|
+
* A hash containing values for x, y, width and height.
|
|
70
|
+
*/
|
|
71
|
+
htmlGetBBox: function () {
|
|
72
|
+
var wrapper = this, element = wrapper.element;
|
|
73
|
+
return {
|
|
74
|
+
x: element.offsetLeft,
|
|
75
|
+
y: element.offsetTop,
|
|
76
|
+
width: element.offsetWidth,
|
|
77
|
+
height: element.offsetHeight
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* VML override private method to update elements based on internal
|
|
82
|
+
* properties based on SVG transform.
|
|
83
|
+
*
|
|
84
|
+
* @private
|
|
85
|
+
* @function Highcharts.SVGElement#htmlUpdateTransform
|
|
86
|
+
* @return {void}
|
|
87
|
+
*/
|
|
88
|
+
htmlUpdateTransform: function () {
|
|
89
|
+
// aligning non added elements is expensive
|
|
90
|
+
if (!this.added) {
|
|
91
|
+
this.alignOnAdd = true;
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
var wrapper = this, renderer = wrapper.renderer, elem = wrapper.element, translateX = wrapper.translateX || 0, translateY = wrapper.translateY || 0, x = wrapper.x || 0, y = wrapper.y || 0, align = wrapper.textAlign || 'left', alignCorrection = {
|
|
95
|
+
left: 0, center: 0.5, right: 1
|
|
96
|
+
}[align], styles = wrapper.styles, whiteSpace = styles && styles.whiteSpace;
|
|
97
|
+
/**
|
|
98
|
+
* @private
|
|
99
|
+
* @return {number}
|
|
100
|
+
*/
|
|
101
|
+
function getTextPxLength() {
|
|
102
|
+
// Reset multiline/ellipsis in order to read width (#4928,
|
|
103
|
+
// #5417)
|
|
104
|
+
css(elem, {
|
|
105
|
+
width: '',
|
|
106
|
+
whiteSpace: whiteSpace || 'nowrap'
|
|
107
|
+
});
|
|
108
|
+
return elem.offsetWidth;
|
|
109
|
+
}
|
|
110
|
+
// apply translate
|
|
111
|
+
css(elem, {
|
|
112
|
+
marginLeft: translateX,
|
|
113
|
+
marginTop: translateY
|
|
114
|
+
});
|
|
115
|
+
if (!renderer.styledMode && wrapper.shadows) { // used in labels/tooltip
|
|
116
|
+
wrapper.shadows.forEach(function (shadow) {
|
|
117
|
+
css(shadow, {
|
|
118
|
+
marginLeft: translateX + 1,
|
|
119
|
+
marginTop: translateY + 1
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// apply inversion
|
|
124
|
+
if (wrapper.inverted) { // wrapper is a group
|
|
125
|
+
[].forEach.call(elem.childNodes, function (child) {
|
|
126
|
+
renderer.invertChild(child, elem);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (elem.tagName === 'SPAN') {
|
|
130
|
+
var rotation = wrapper.rotation, baseline, textWidth = wrapper.textWidth && pInt(wrapper.textWidth), currentTextTransform = [
|
|
131
|
+
rotation,
|
|
132
|
+
align,
|
|
133
|
+
elem.innerHTML,
|
|
134
|
+
wrapper.textWidth,
|
|
135
|
+
wrapper.textAlign
|
|
136
|
+
].join(',');
|
|
137
|
+
// Update textWidth. Use the memoized textPxLength if possible, to
|
|
138
|
+
// avoid the getTextPxLength function using elem.offsetWidth.
|
|
139
|
+
// Calling offsetWidth affects rendering time as it forces layout
|
|
140
|
+
// (#7656).
|
|
141
|
+
if (textWidth !== wrapper.oldTextWidth &&
|
|
142
|
+
((textWidth > wrapper.oldTextWidth) ||
|
|
143
|
+
(wrapper.textPxLength || getTextPxLength()) > textWidth) && (
|
|
144
|
+
// Only set the width if the text is able to word-wrap, or
|
|
145
|
+
// text-overflow is ellipsis (#9537)
|
|
146
|
+
/[ \-]/.test(elem.textContent || elem.innerText) ||
|
|
147
|
+
elem.style.textOverflow === 'ellipsis')) { // #983, #1254
|
|
148
|
+
css(elem, {
|
|
149
|
+
width: textWidth + 'px',
|
|
150
|
+
display: 'block',
|
|
151
|
+
whiteSpace: whiteSpace || 'normal' // #3331
|
|
152
|
+
});
|
|
153
|
+
wrapper.oldTextWidth = textWidth;
|
|
154
|
+
wrapper.hasBoxWidthChanged = true; // #8159
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
wrapper.hasBoxWidthChanged = false; // #8159
|
|
158
|
+
}
|
|
159
|
+
// Do the calculations and DOM access only if properties changed
|
|
160
|
+
if (currentTextTransform !== wrapper.cTT) {
|
|
161
|
+
baseline = renderer.fontMetrics(elem.style.fontSize, elem).b;
|
|
162
|
+
// Renderer specific handling of span rotation, but only if we
|
|
163
|
+
// have something to update.
|
|
164
|
+
if (defined(rotation) &&
|
|
165
|
+
((rotation !== (wrapper.oldRotation || 0)) ||
|
|
166
|
+
(align !== wrapper.oldAlign))) {
|
|
167
|
+
wrapper.setSpanRotation(rotation, alignCorrection, baseline);
|
|
168
|
+
}
|
|
169
|
+
wrapper.getSpanCorrection(
|
|
170
|
+
// Avoid elem.offsetWidth if we can, it affects rendering
|
|
171
|
+
// time heavily (#7656)
|
|
172
|
+
((!defined(rotation) && wrapper.textPxLength) || // #7920
|
|
173
|
+
elem.offsetWidth), baseline, alignCorrection, rotation, align);
|
|
174
|
+
}
|
|
175
|
+
// apply position with correction
|
|
176
|
+
css(elem, {
|
|
177
|
+
left: (x + (wrapper.xCorr || 0)) + 'px',
|
|
178
|
+
top: (y + (wrapper.yCorr || 0)) + 'px'
|
|
179
|
+
});
|
|
180
|
+
// record current text transform
|
|
181
|
+
wrapper.cTT = currentTextTransform;
|
|
182
|
+
wrapper.oldRotation = rotation;
|
|
183
|
+
wrapper.oldAlign = align;
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Set the rotation of an individual HTML span.
|
|
188
|
+
*
|
|
189
|
+
* @private
|
|
190
|
+
* @function Highcharts.SVGElement#setSpanRotation
|
|
191
|
+
* @param {number} rotation
|
|
192
|
+
* @param {number} alignCorrection
|
|
193
|
+
* @param {number} baseline
|
|
194
|
+
* @return {void}
|
|
195
|
+
*/
|
|
196
|
+
setSpanRotation: function (rotation, alignCorrection, baseline) {
|
|
197
|
+
var rotationStyle = {}, cssTransformKey = this.renderer.getTransformKey();
|
|
198
|
+
rotationStyle[cssTransformKey] = rotationStyle.transform =
|
|
199
|
+
'rotate(' + rotation + 'deg)';
|
|
200
|
+
rotationStyle[cssTransformKey + (isFirefox ? 'Origin' : '-origin')] =
|
|
201
|
+
rotationStyle.transformOrigin =
|
|
202
|
+
(alignCorrection * 100) + '% ' + baseline + 'px';
|
|
203
|
+
css(this.element, rotationStyle);
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
* Get the correction in X and Y positioning as the element is rotated.
|
|
207
|
+
*
|
|
208
|
+
* @private
|
|
209
|
+
* @function Highcharts.SVGElement#getSpanCorrection
|
|
210
|
+
* @param {number} width
|
|
211
|
+
* @param {number} baseline
|
|
212
|
+
* @param {number} alignCorrection
|
|
213
|
+
* @return {void}
|
|
214
|
+
*/
|
|
215
|
+
getSpanCorrection: function (width, baseline, alignCorrection) {
|
|
216
|
+
this.xCorr = -width * alignCorrection;
|
|
217
|
+
this.yCorr = -baseline;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
export default HTMLElement;
|
|
@@ -7,213 +7,18 @@
|
|
|
7
7
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
|
-
'use strict';
|
|
11
10
|
import H from '../../Globals.js';
|
|
11
|
+
var isFirefox = H.isFirefox, isMS = H.isMS, isWebKit = H.isWebKit, win = H.win;
|
|
12
12
|
import SVGElement from '../SVG/SVGElement.js';
|
|
13
13
|
import SVGRenderer from '../SVG/SVGRenderer.js';
|
|
14
14
|
import U from '../../Utilities.js';
|
|
15
|
-
var attr = U.attr, createElement = U.createElement,
|
|
16
|
-
|
|
15
|
+
var attr = U.attr, createElement = U.createElement, extend = U.extend, pick = U.pick;
|
|
16
|
+
/**
|
|
17
|
+
* Renderer placebo
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
var HTMLRenderer = SVGRenderer;
|
|
17
21
|
/* eslint-disable valid-jsdoc */
|
|
18
|
-
// Extend SvgElement for useHTML option.
|
|
19
|
-
extend(SVGElement.prototype, /** @lends SVGElement.prototype */ {
|
|
20
|
-
/**
|
|
21
|
-
* Apply CSS to HTML elements. This is used in text within SVG rendering and
|
|
22
|
-
* by the VML renderer
|
|
23
|
-
*
|
|
24
|
-
* @private
|
|
25
|
-
* @function Highcharts.SVGElement#htmlCss
|
|
26
|
-
*
|
|
27
|
-
* @param {Highcharts.CSSObject} styles
|
|
28
|
-
*
|
|
29
|
-
* @return {Highcharts.SVGElement}
|
|
30
|
-
*/
|
|
31
|
-
htmlCss: function (styles) {
|
|
32
|
-
var wrapper = this, element = wrapper.element,
|
|
33
|
-
// When setting or unsetting the width style, we need to update
|
|
34
|
-
// transform (#8809)
|
|
35
|
-
isSettingWidth = (element.tagName === 'SPAN' &&
|
|
36
|
-
styles &&
|
|
37
|
-
'width' in styles), textWidth = pick(isSettingWidth && styles.width, void 0), doTransform;
|
|
38
|
-
if (isSettingWidth) {
|
|
39
|
-
delete styles.width;
|
|
40
|
-
wrapper.textWidth = textWidth;
|
|
41
|
-
doTransform = true;
|
|
42
|
-
}
|
|
43
|
-
if (styles && styles.textOverflow === 'ellipsis') {
|
|
44
|
-
styles.whiteSpace = 'nowrap';
|
|
45
|
-
styles.overflow = 'hidden';
|
|
46
|
-
}
|
|
47
|
-
wrapper.styles = extend(wrapper.styles, styles);
|
|
48
|
-
css(wrapper.element, styles);
|
|
49
|
-
// Now that all styles are applied, to the transform
|
|
50
|
-
if (doTransform) {
|
|
51
|
-
wrapper.htmlUpdateTransform();
|
|
52
|
-
}
|
|
53
|
-
return wrapper;
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* VML and useHTML method for calculating the bounding box based on offsets.
|
|
57
|
-
*
|
|
58
|
-
* @private
|
|
59
|
-
* @function Highcharts.SVGElement#htmlGetBBox
|
|
60
|
-
*
|
|
61
|
-
* @param {boolean} refresh
|
|
62
|
-
* Whether to force a fresh value from the DOM or to use the cached
|
|
63
|
-
* value.
|
|
64
|
-
*
|
|
65
|
-
* @return {Highcharts.BBoxObject}
|
|
66
|
-
* A hash containing values for x, y, width and height.
|
|
67
|
-
*/
|
|
68
|
-
htmlGetBBox: function () {
|
|
69
|
-
var wrapper = this, element = wrapper.element;
|
|
70
|
-
return {
|
|
71
|
-
x: element.offsetLeft,
|
|
72
|
-
y: element.offsetTop,
|
|
73
|
-
width: element.offsetWidth,
|
|
74
|
-
height: element.offsetHeight
|
|
75
|
-
};
|
|
76
|
-
},
|
|
77
|
-
/**
|
|
78
|
-
* VML override private method to update elements based on internal
|
|
79
|
-
* properties based on SVG transform.
|
|
80
|
-
*
|
|
81
|
-
* @private
|
|
82
|
-
* @function Highcharts.SVGElement#htmlUpdateTransform
|
|
83
|
-
* @return {void}
|
|
84
|
-
*/
|
|
85
|
-
htmlUpdateTransform: function () {
|
|
86
|
-
// aligning non added elements is expensive
|
|
87
|
-
if (!this.added) {
|
|
88
|
-
this.alignOnAdd = true;
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
var wrapper = this, renderer = wrapper.renderer, elem = wrapper.element, translateX = wrapper.translateX || 0, translateY = wrapper.translateY || 0, x = wrapper.x || 0, y = wrapper.y || 0, align = wrapper.textAlign || 'left', alignCorrection = {
|
|
92
|
-
left: 0, center: 0.5, right: 1
|
|
93
|
-
}[align], styles = wrapper.styles, whiteSpace = styles && styles.whiteSpace;
|
|
94
|
-
/**
|
|
95
|
-
* @private
|
|
96
|
-
* @return {number}
|
|
97
|
-
*/
|
|
98
|
-
function getTextPxLength() {
|
|
99
|
-
// Reset multiline/ellipsis in order to read width (#4928,
|
|
100
|
-
// #5417)
|
|
101
|
-
css(elem, {
|
|
102
|
-
width: '',
|
|
103
|
-
whiteSpace: whiteSpace || 'nowrap'
|
|
104
|
-
});
|
|
105
|
-
return elem.offsetWidth;
|
|
106
|
-
}
|
|
107
|
-
// apply translate
|
|
108
|
-
css(elem, {
|
|
109
|
-
marginLeft: translateX,
|
|
110
|
-
marginTop: translateY
|
|
111
|
-
});
|
|
112
|
-
if (!renderer.styledMode && wrapper.shadows) { // used in labels/tooltip
|
|
113
|
-
wrapper.shadows.forEach(function (shadow) {
|
|
114
|
-
css(shadow, {
|
|
115
|
-
marginLeft: translateX + 1,
|
|
116
|
-
marginTop: translateY + 1
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
// apply inversion
|
|
121
|
-
if (wrapper.inverted) { // wrapper is a group
|
|
122
|
-
[].forEach.call(elem.childNodes, function (child) {
|
|
123
|
-
renderer.invertChild(child, elem);
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
if (elem.tagName === 'SPAN') {
|
|
127
|
-
var rotation = wrapper.rotation, baseline, textWidth = wrapper.textWidth && pInt(wrapper.textWidth), currentTextTransform = [
|
|
128
|
-
rotation,
|
|
129
|
-
align,
|
|
130
|
-
elem.innerHTML,
|
|
131
|
-
wrapper.textWidth,
|
|
132
|
-
wrapper.textAlign
|
|
133
|
-
].join(',');
|
|
134
|
-
// Update textWidth. Use the memoized textPxLength if possible, to
|
|
135
|
-
// avoid the getTextPxLength function using elem.offsetWidth.
|
|
136
|
-
// Calling offsetWidth affects rendering time as it forces layout
|
|
137
|
-
// (#7656).
|
|
138
|
-
if (textWidth !== wrapper.oldTextWidth &&
|
|
139
|
-
((textWidth > wrapper.oldTextWidth) ||
|
|
140
|
-
(wrapper.textPxLength || getTextPxLength()) > textWidth) && (
|
|
141
|
-
// Only set the width if the text is able to word-wrap, or
|
|
142
|
-
// text-overflow is ellipsis (#9537)
|
|
143
|
-
/[ \-]/.test(elem.textContent || elem.innerText) ||
|
|
144
|
-
elem.style.textOverflow === 'ellipsis')) { // #983, #1254
|
|
145
|
-
css(elem, {
|
|
146
|
-
width: textWidth + 'px',
|
|
147
|
-
display: 'block',
|
|
148
|
-
whiteSpace: whiteSpace || 'normal' // #3331
|
|
149
|
-
});
|
|
150
|
-
wrapper.oldTextWidth = textWidth;
|
|
151
|
-
wrapper.hasBoxWidthChanged = true; // #8159
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
wrapper.hasBoxWidthChanged = false; // #8159
|
|
155
|
-
}
|
|
156
|
-
// Do the calculations and DOM access only if properties changed
|
|
157
|
-
if (currentTextTransform !== wrapper.cTT) {
|
|
158
|
-
baseline = renderer.fontMetrics(elem.style.fontSize, elem).b;
|
|
159
|
-
// Renderer specific handling of span rotation, but only if we
|
|
160
|
-
// have something to update.
|
|
161
|
-
if (defined(rotation) &&
|
|
162
|
-
((rotation !== (wrapper.oldRotation || 0)) ||
|
|
163
|
-
(align !== wrapper.oldAlign))) {
|
|
164
|
-
wrapper.setSpanRotation(rotation, alignCorrection, baseline);
|
|
165
|
-
}
|
|
166
|
-
wrapper.getSpanCorrection(
|
|
167
|
-
// Avoid elem.offsetWidth if we can, it affects rendering
|
|
168
|
-
// time heavily (#7656)
|
|
169
|
-
((!defined(rotation) && wrapper.textPxLength) || // #7920
|
|
170
|
-
elem.offsetWidth), baseline, alignCorrection, rotation, align);
|
|
171
|
-
}
|
|
172
|
-
// apply position with correction
|
|
173
|
-
css(elem, {
|
|
174
|
-
left: (x + (wrapper.xCorr || 0)) + 'px',
|
|
175
|
-
top: (y + (wrapper.yCorr || 0)) + 'px'
|
|
176
|
-
});
|
|
177
|
-
// record current text transform
|
|
178
|
-
wrapper.cTT = currentTextTransform;
|
|
179
|
-
wrapper.oldRotation = rotation;
|
|
180
|
-
wrapper.oldAlign = align;
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
/**
|
|
184
|
-
* Set the rotation of an individual HTML span.
|
|
185
|
-
*
|
|
186
|
-
* @private
|
|
187
|
-
* @function Highcharts.SVGElement#setSpanRotation
|
|
188
|
-
* @param {number} rotation
|
|
189
|
-
* @param {number} alignCorrection
|
|
190
|
-
* @param {number} baseline
|
|
191
|
-
* @return {void}
|
|
192
|
-
*/
|
|
193
|
-
setSpanRotation: function (rotation, alignCorrection, baseline) {
|
|
194
|
-
var rotationStyle = {}, cssTransformKey = this.renderer.getTransformKey();
|
|
195
|
-
rotationStyle[cssTransformKey] = rotationStyle.transform =
|
|
196
|
-
'rotate(' + rotation + 'deg)';
|
|
197
|
-
rotationStyle[cssTransformKey + (isFirefox ? 'Origin' : '-origin')] =
|
|
198
|
-
rotationStyle.transformOrigin =
|
|
199
|
-
(alignCorrection * 100) + '% ' + baseline + 'px';
|
|
200
|
-
css(this.element, rotationStyle);
|
|
201
|
-
},
|
|
202
|
-
/**
|
|
203
|
-
* Get the correction in X and Y positioning as the element is rotated.
|
|
204
|
-
*
|
|
205
|
-
* @private
|
|
206
|
-
* @function Highcharts.SVGElement#getSpanCorrection
|
|
207
|
-
* @param {number} width
|
|
208
|
-
* @param {number} baseline
|
|
209
|
-
* @param {number} alignCorrection
|
|
210
|
-
* @return {void}
|
|
211
|
-
*/
|
|
212
|
-
getSpanCorrection: function (width, baseline, alignCorrection) {
|
|
213
|
-
this.xCorr = -width * alignCorrection;
|
|
214
|
-
this.yCorr = -baseline;
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
22
|
// Extend SvgRenderer for useHTML option.
|
|
218
23
|
extend(SVGRenderer.prototype, /** @lends SVGRenderer.prototype */ {
|
|
219
24
|
/**
|
|
@@ -425,3 +230,4 @@ extend(SVGRenderer.prototype, /** @lends SVGRenderer.prototype */ {
|
|
|
425
230
|
return wrapper;
|
|
426
231
|
}
|
|
427
232
|
});
|
|
233
|
+
export default HTMLRenderer;
|
|
@@ -7,12 +7,13 @@
|
|
|
7
7
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
import A from '../../Animation/AnimationUtilities.js';
|
|
11
|
+
var animate = A.animate, animObject = A.animObject, stop = A.stop;
|
|
12
|
+
import Color from '../../Color/Color.js';
|
|
12
13
|
import H from '../../Globals.js';
|
|
13
14
|
var deg2rad = H.deg2rad, doc = H.doc, hasTouch = H.hasTouch, isFirefox = H.isFirefox, noop = H.noop, svg = H.svg, SVG_NS = H.SVG_NS, win = H.win;
|
|
14
15
|
import U from '../../Utilities.js';
|
|
15
|
-
var
|
|
16
|
+
var attr = U.attr, createElement = U.createElement, css = U.css, defined = U.defined, erase = U.erase, extend = U.extend, fireEvent = U.fireEvent, isArray = U.isArray, isFunction = U.isFunction, isNumber = U.isNumber, isString = U.isString, merge = U.merge, objectEach = U.objectEach, pick = U.pick, pInt = U.pInt, syncTimeout = U.syncTimeout, uniqueKey = U.uniqueKey;
|
|
16
17
|
/**
|
|
17
18
|
* The horizontal alignment of an element.
|
|
18
19
|
*
|
|
@@ -1160,7 +1161,7 @@ var SVGElement = /** @class */ (function () {
|
|
|
1160
1161
|
/**
|
|
1161
1162
|
* @private
|
|
1162
1163
|
* @function Highcharts.SVGElement#fillSetter
|
|
1163
|
-
* @param {Highcharts.
|
|
1164
|
+
* @param {Highcharts.ColorType} value
|
|
1164
1165
|
* @param {string} key
|
|
1165
1166
|
* @param {Highcharts.SVGDOMElement} element
|
|
1166
1167
|
*/
|
|
@@ -1473,8 +1474,10 @@ var SVGElement = /** @class */ (function () {
|
|
|
1473
1474
|
handler.call(element, e);
|
|
1474
1475
|
}
|
|
1475
1476
|
touchEventFired = true;
|
|
1476
|
-
|
|
1477
|
-
|
|
1477
|
+
if (e.cancelable !== false) {
|
|
1478
|
+
// prevent other events from being fired. #9682
|
|
1479
|
+
e.preventDefault();
|
|
1480
|
+
}
|
|
1478
1481
|
};
|
|
1479
1482
|
element.onclick = function (e) {
|
|
1480
1483
|
// Do not call onclick handler if touch event was fired already.
|
|
@@ -1497,8 +1500,11 @@ var SVGElement = /** @class */ (function () {
|
|
|
1497
1500
|
* @param {Highcharts.SVGDOMElement} element
|
|
1498
1501
|
*/
|
|
1499
1502
|
SVGElement.prototype.opacitySetter = function (value, key, element) {
|
|
1500
|
-
|
|
1501
|
-
|
|
1503
|
+
// Round off to avoid float errors, like tests where opacity lands on
|
|
1504
|
+
// 9.86957e-06 instead of 0
|
|
1505
|
+
var opacity = Number(Number(value).toFixed(3));
|
|
1506
|
+
this.opacity = opacity;
|
|
1507
|
+
element.setAttribute(key, opacity);
|
|
1502
1508
|
};
|
|
1503
1509
|
/**
|
|
1504
1510
|
* Remove a class name from the element.
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
8
8
|
*
|
|
9
9
|
* */
|
|
10
|
-
|
|
11
|
-
import Color from '../../Color.js';
|
|
10
|
+
import Color from '../../Color/Color.js';
|
|
12
11
|
import H from '../../Globals.js';
|
|
13
12
|
import SVGElement from './SVGElement.js';
|
|
14
13
|
import SVGLabel from './SVGLabel.js';
|
|
@@ -404,7 +403,7 @@ var SVGRenderer = /** @class */ (function () {
|
|
|
404
403
|
'';
|
|
405
404
|
// Add description
|
|
406
405
|
desc = this.createElement('desc').add();
|
|
407
|
-
desc.element.appendChild(doc.createTextNode('Created with Highcharts 8.2.
|
|
406
|
+
desc.element.appendChild(doc.createTextNode('Created with Highcharts 8.2.2'));
|
|
408
407
|
renderer.defs = this.createElement('defs').add();
|
|
409
408
|
renderer.allowHTML = allowHTML;
|
|
410
409
|
renderer.forExport = forExport;
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
|
|
10
10
|
*
|
|
11
11
|
* */
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
import A from '../../Animation/AnimationUtilities.js';
|
|
13
|
+
var animObject = A.animObject;
|
|
14
|
+
import Color from '../../Color/Color.js';
|
|
14
15
|
var color = Color.parse;
|
|
15
16
|
import H from '../../Globals.js';
|
|
16
17
|
import Math3D from '../../../Extensions/Math3D.js';
|
|
@@ -18,7 +19,7 @@ var perspective = Math3D.perspective, shapeArea = Math3D.shapeArea;
|
|
|
18
19
|
import SVGElement from './SVGElement.js';
|
|
19
20
|
import SVGRenderer from './SVGRenderer.js';
|
|
20
21
|
import U from '../../Utilities.js';
|
|
21
|
-
var
|
|
22
|
+
var defined = U.defined, extend = U.extend, merge = U.merge, objectEach = U.objectEach, pick = U.pick;
|
|
22
23
|
var cos = Math.cos, PI = Math.PI, sin = Math.sin;
|
|
23
24
|
var charts = H.charts, deg2rad = H.deg2rad,
|
|
24
25
|
// internal:
|
|
@@ -880,3 +881,4 @@ SVGRenderer.prototype.arc3dPath = function (shapeArgs) {
|
|
|
880
881
|
zSide2: a2 * 0.99
|
|
881
882
|
};
|
|
882
883
|
};
|
|
884
|
+
export default SVGRenderer;
|