@amcharts/amcharts5 5.2.49 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.internal/charts/flow/Chord.js +151 -199
- package/.internal/charts/flow/Chord.js.map +1 -1
- package/.internal/charts/flow/ChordDirected.js +46 -66
- package/.internal/charts/flow/ChordDirected.js.map +1 -1
- package/.internal/charts/flow/ChordLink.js +32 -42
- package/.internal/charts/flow/ChordLink.js.map +1 -1
- package/.internal/charts/flow/ChordLinkDirected.js +17 -29
- package/.internal/charts/flow/ChordLinkDirected.js.map +1 -1
- package/.internal/charts/flow/ChordNodes.js +70 -86
- package/.internal/charts/flow/ChordNodes.js.map +1 -1
- package/.internal/charts/flow/ChordNonRibbon.js +63 -91
- package/.internal/charts/flow/ChordNonRibbon.js.map +1 -1
- package/.internal/charts/flow/Flow.js +289 -356
- package/.internal/charts/flow/Flow.js.map +1 -1
- package/.internal/charts/flow/FlowDefaultTheme.js +187 -199
- package/.internal/charts/flow/FlowDefaultTheme.js.map +1 -1
- package/.internal/charts/flow/FlowLink.js +34 -49
- package/.internal/charts/flow/FlowLink.js.map +1 -1
- package/.internal/charts/flow/FlowNode.js +17 -22
- package/.internal/charts/flow/FlowNode.js.map +1 -1
- package/.internal/charts/flow/FlowNodes.js +141 -202
- package/.internal/charts/flow/FlowNodes.js.map +1 -1
- package/.internal/charts/flow/Sankey.js +165 -203
- package/.internal/charts/flow/Sankey.js.map +1 -1
- package/.internal/charts/flow/SankeyLink.js +207 -229
- package/.internal/charts/flow/SankeyLink.js.map +1 -1
- package/.internal/charts/flow/SankeyNodes.js +70 -90
- package/.internal/charts/flow/SankeyNodes.js.map +1 -1
- package/.internal/charts/funnel/FunnelSeries.js +353 -447
- package/.internal/charts/funnel/FunnelSeries.js.map +1 -1
- package/.internal/charts/funnel/FunnelSlice.js +96 -117
- package/.internal/charts/funnel/FunnelSlice.js.map +1 -1
- package/.internal/charts/funnel/PictorialStackedSeries.js +59 -79
- package/.internal/charts/funnel/PictorialStackedSeries.js.map +1 -1
- package/.internal/charts/funnel/PyramidSeries.js +106 -122
- package/.internal/charts/funnel/PyramidSeries.js.map +1 -1
- package/.internal/charts/funnel/SlicedChart.js +17 -29
- package/.internal/charts/funnel/SlicedChart.js.map +1 -1
- package/.internal/charts/hierarchy/BreadcrumbBar.js +69 -96
- package/.internal/charts/hierarchy/BreadcrumbBar.js.map +1 -1
- package/.internal/charts/hierarchy/ForceDirected.js +255 -370
- package/.internal/charts/hierarchy/ForceDirected.js.map +1 -1
- package/.internal/charts/hierarchy/Hierarchy.js +476 -640
- package/.internal/charts/hierarchy/Hierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js +337 -349
- package/.internal/charts/hierarchy/HierarchyDefaultTheme.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyLink.js +43 -61
- package/.internal/charts/hierarchy/HierarchyLink.js.map +1 -1
- package/.internal/charts/hierarchy/HierarchyNode.js +57 -74
- package/.internal/charts/hierarchy/HierarchyNode.js.map +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchy.js +229 -323
- package/.internal/charts/hierarchy/LinkedHierarchy.js.map +1 -1
- package/.internal/charts/hierarchy/LinkedHierarchyNode.js +48 -80
- package/.internal/charts/hierarchy/LinkedHierarchyNode.js.map +1 -1
- package/.internal/charts/hierarchy/Pack.js +105 -147
- package/.internal/charts/hierarchy/Pack.js.map +1 -1
- package/.internal/charts/hierarchy/Partition.js +183 -230
- package/.internal/charts/hierarchy/Partition.js.map +1 -1
- package/.internal/charts/hierarchy/Sunburst.js +259 -323
- package/.internal/charts/hierarchy/Sunburst.js.map +1 -1
- package/.internal/charts/hierarchy/Tree.js +49 -69
- package/.internal/charts/hierarchy/Tree.js.map +1 -1
- package/.internal/charts/hierarchy/Treemap.js +168 -209
- package/.internal/charts/hierarchy/Treemap.js.map +1 -1
- package/.internal/charts/map/GraticuleSeries.js +49 -70
- package/.internal/charts/map/GraticuleSeries.js.map +1 -1
- package/.internal/charts/map/MapChart.js +587 -751
- package/.internal/charts/map/MapChart.js.map +1 -1
- package/.internal/charts/map/MapChartDefaultTheme.js +98 -110
- package/.internal/charts/map/MapChartDefaultTheme.js.map +1 -1
- package/.internal/charts/map/MapLine.js +165 -196
- package/.internal/charts/map/MapLine.js.map +1 -1
- package/.internal/charts/map/MapLineSeries.js +130 -197
- package/.internal/charts/map/MapLineSeries.js.map +1 -1
- package/.internal/charts/map/MapPointSeries.d.ts +7 -2
- package/.internal/charts/map/MapPointSeries.d.ts.map +1 -1
- package/.internal/charts/map/MapPointSeries.js +265 -342
- package/.internal/charts/map/MapPointSeries.js.map +1 -1
- package/.internal/charts/map/MapPolygon.js +86 -122
- package/.internal/charts/map/MapPolygon.js.map +1 -1
- package/.internal/charts/map/MapPolygonSeries.d.ts +6 -1
- package/.internal/charts/map/MapPolygonSeries.d.ts.map +1 -1
- package/.internal/charts/map/MapPolygonSeries.js +110 -170
- package/.internal/charts/map/MapPolygonSeries.js.map +1 -1
- package/.internal/charts/map/MapSeries.d.ts +9 -3
- package/.internal/charts/map/MapSeries.d.ts.map +1 -1
- package/.internal/charts/map/MapSeries.js +212 -303
- package/.internal/charts/map/MapSeries.js.map +1 -1
- package/.internal/charts/map/MapUtils.js +19 -19
- package/.internal/charts/map/MapUtils.js.map +1 -1
- package/.internal/charts/map/ZoomControl.js +52 -67
- package/.internal/charts/map/ZoomControl.js.map +1 -1
- package/.internal/charts/percent/PercentChart.js +23 -40
- package/.internal/charts/percent/PercentChart.js.map +1 -1
- package/.internal/charts/percent/PercentDefaultTheme.js +196 -208
- package/.internal/charts/percent/PercentDefaultTheme.js.map +1 -1
- package/.internal/charts/percent/PercentSeries.js +378 -549
- package/.internal/charts/percent/PercentSeries.js.map +1 -1
- package/.internal/charts/pie/PieChart.js +85 -110
- package/.internal/charts/pie/PieChart.js.map +1 -1
- package/.internal/charts/pie/PieSeries.js +175 -232
- package/.internal/charts/pie/PieSeries.js.map +1 -1
- package/.internal/charts/radar/AxisRendererCircular.js +219 -307
- package/.internal/charts/radar/AxisRendererCircular.js.map +1 -1
- package/.internal/charts/radar/AxisRendererRadial.js +188 -276
- package/.internal/charts/radar/AxisRendererRadial.js.map +1 -1
- package/.internal/charts/radar/ClockHand.js +89 -104
- package/.internal/charts/radar/ClockHand.js.map +1 -1
- package/.internal/charts/radar/RadarChart.js +142 -201
- package/.internal/charts/radar/RadarChart.js.map +1 -1
- package/.internal/charts/radar/RadarColumnSeries.js +118 -170
- package/.internal/charts/radar/RadarColumnSeries.js.map +1 -1
- package/.internal/charts/radar/RadarCursor.js +147 -220
- package/.internal/charts/radar/RadarCursor.js.map +1 -1
- package/.internal/charts/radar/RadarDefaultTheme.js +85 -97
- package/.internal/charts/radar/RadarDefaultTheme.js.map +1 -1
- package/.internal/charts/radar/RadarLineSeries.js +71 -113
- package/.internal/charts/radar/RadarLineSeries.js.map +1 -1
- package/.internal/charts/radar/SmoothedRadarLineSeries.js +33 -55
- package/.internal/charts/radar/SmoothedRadarLineSeries.js.map +1 -1
- package/.internal/charts/stock/PanelControls.js +49 -60
- package/.internal/charts/stock/PanelControls.js.map +1 -1
- package/.internal/charts/stock/SettingsModal.js +321 -393
- package/.internal/charts/stock/SettingsModal.js.map +1 -1
- package/.internal/charts/stock/StockChart.d.ts.map +1 -1
- package/.internal/charts/stock/StockChart.js +466 -568
- package/.internal/charts/stock/StockChart.js.map +1 -1
- package/.internal/charts/stock/StockChartDefaultTheme.d.ts.map +1 -1
- package/.internal/charts/stock/StockChartDefaultTheme.js +1162 -1162
- package/.internal/charts/stock/StockChartDefaultTheme.js.map +1 -1
- package/.internal/charts/stock/StockLegend.js +65 -91
- package/.internal/charts/stock/StockLegend.js.map +1 -1
- package/.internal/charts/stock/StockPanel.js +87 -119
- package/.internal/charts/stock/StockPanel.js.map +1 -1
- package/.internal/charts/stock/drawing/AverageSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/AverageSeries.js +48 -60
- package/.internal/charts/stock/drawing/AverageSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/CalloutSeries.d.ts +7 -2
- package/.internal/charts/stock/drawing/CalloutSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/CalloutSeries.js +90 -95
- package/.internal/charts/stock/drawing/CalloutSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/DoodleSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/DoodleSeries.js +82 -122
- package/.internal/charts/stock/drawing/DoodleSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/DrawingSeries.d.ts +5 -3
- package/.internal/charts/stock/drawing/DrawingSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/DrawingSeries.js +519 -712
- package/.internal/charts/stock/drawing/DrawingSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/EllipseSeries.d.ts +3 -0
- package/.internal/charts/stock/drawing/EllipseSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/EllipseSeries.js +258 -307
- package/.internal/charts/stock/drawing/EllipseSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/FibonacciSeries.d.ts +2 -3
- package/.internal/charts/stock/drawing/FibonacciSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/FibonacciSeries.js +189 -250
- package/.internal/charts/stock/drawing/FibonacciSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/FibonacciTimezoneSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/FibonacciTimezoneSeries.js +108 -103
- package/.internal/charts/stock/drawing/FibonacciTimezoneSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalLineSeries.d.ts +4 -2
- package/.internal/charts/stock/drawing/HorizontalLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalLineSeries.js +64 -84
- package/.internal/charts/stock/drawing/HorizontalLineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalRaySeries.d.ts +2 -1
- package/.internal/charts/stock/drawing/HorizontalRaySeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/HorizontalRaySeries.js +57 -92
- package/.internal/charts/stock/drawing/HorizontalRaySeries.js.map +1 -1
- package/.internal/charts/stock/drawing/IconSeries.d.ts +2 -4
- package/.internal/charts/stock/drawing/IconSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/IconSeries.js +112 -112
- package/.internal/charts/stock/drawing/IconSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/LabelSeries.d.ts +5 -2
- package/.internal/charts/stock/drawing/LabelSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/LabelSeries.js +151 -172
- package/.internal/charts/stock/drawing/LabelSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/PolylineSeries.d.ts +1 -0
- package/.internal/charts/stock/drawing/PolylineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/PolylineSeries.js +101 -122
- package/.internal/charts/stock/drawing/PolylineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/QuadrantLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/QuadrantLineSeries.js +115 -149
- package/.internal/charts/stock/drawing/QuadrantLineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/RectangleSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/RectangleSeries.js +117 -155
- package/.internal/charts/stock/drawing/RectangleSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/RegressionSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/RegressionSeries.js +64 -82
- package/.internal/charts/stock/drawing/RegressionSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/SimpleLineSeries.d.ts +6 -2
- package/.internal/charts/stock/drawing/SimpleLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/SimpleLineSeries.js +233 -303
- package/.internal/charts/stock/drawing/SimpleLineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/TrendLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/TrendLineSeries.js +40 -57
- package/.internal/charts/stock/drawing/TrendLineSeries.js.map +1 -1
- package/.internal/charts/stock/drawing/VerticalLineSeries.d.ts +3 -1
- package/.internal/charts/stock/drawing/VerticalLineSeries.d.ts.map +1 -1
- package/.internal/charts/stock/drawing/VerticalLineSeries.js +63 -79
- package/.internal/charts/stock/drawing/VerticalLineSeries.js.map +1 -1
- package/.internal/charts/stock/indicators/AccumulationDistribution.js +68 -88
- package/.internal/charts/stock/indicators/AccumulationDistribution.js.map +1 -1
- package/.internal/charts/stock/indicators/AccumulativeSwingIndex.js +107 -127
- package/.internal/charts/stock/indicators/AccumulativeSwingIndex.js.map +1 -1
- package/.internal/charts/stock/indicators/Aroon.js +85 -110
- package/.internal/charts/stock/indicators/Aroon.js.map +1 -1
- package/.internal/charts/stock/indicators/AwesomeOscillator.js +68 -88
- package/.internal/charts/stock/indicators/AwesomeOscillator.js.map +1 -1
- package/.internal/charts/stock/indicators/BollingerBands.js +109 -135
- package/.internal/charts/stock/indicators/BollingerBands.js.map +1 -1
- package/.internal/charts/stock/indicators/ChaikinMoneyFlow.js +77 -97
- package/.internal/charts/stock/indicators/ChaikinMoneyFlow.js.map +1 -1
- package/.internal/charts/stock/indicators/ChaikinOscillator.js +75 -95
- package/.internal/charts/stock/indicators/ChaikinOscillator.js.map +1 -1
- package/.internal/charts/stock/indicators/ChartIndicator.js +86 -102
- package/.internal/charts/stock/indicators/ChartIndicator.js.map +1 -1
- package/.internal/charts/stock/indicators/CommodityChannelIndex.js +136 -161
- package/.internal/charts/stock/indicators/CommodityChannelIndex.js.map +1 -1
- package/.internal/charts/stock/indicators/DisparityIndex.js +69 -89
- package/.internal/charts/stock/indicators/DisparityIndex.js.map +1 -1
- package/.internal/charts/stock/indicators/Indicator.d.ts +1 -2
- package/.internal/charts/stock/indicators/Indicator.d.ts.map +1 -1
- package/.internal/charts/stock/indicators/Indicator.js +286 -383
- package/.internal/charts/stock/indicators/Indicator.js.map +1 -1
- package/.internal/charts/stock/indicators/MACD.js +129 -159
- package/.internal/charts/stock/indicators/MACD.js.map +1 -1
- package/.internal/charts/stock/indicators/MedianPrice.js +56 -71
- package/.internal/charts/stock/indicators/MedianPrice.js.map +1 -1
- package/.internal/charts/stock/indicators/MovingAverage.js +95 -115
- package/.internal/charts/stock/indicators/MovingAverage.js.map +1 -1
- package/.internal/charts/stock/indicators/MovingAverageDeviation.js +93 -118
- package/.internal/charts/stock/indicators/MovingAverageDeviation.js.map +1 -1
- package/.internal/charts/stock/indicators/MovingAverageEnvelope.js +114 -144
- package/.internal/charts/stock/indicators/MovingAverageEnvelope.js.map +1 -1
- package/.internal/charts/stock/indicators/OnBalanceVolume.js +65 -85
- package/.internal/charts/stock/indicators/OnBalanceVolume.js.map +1 -1
- package/.internal/charts/stock/indicators/RelativeStrengthIndex.js +162 -187
- package/.internal/charts/stock/indicators/RelativeStrengthIndex.js.map +1 -1
- package/.internal/charts/stock/indicators/StandardDeviation.js +56 -72
- package/.internal/charts/stock/indicators/StandardDeviation.js.map +1 -1
- package/.internal/charts/stock/indicators/StochasticOscillator.js +142 -173
- package/.internal/charts/stock/indicators/StochasticOscillator.js.map +1 -1
- package/.internal/charts/stock/indicators/Trix.js +90 -120
- package/.internal/charts/stock/indicators/Trix.js.map +1 -1
- package/.internal/charts/stock/indicators/TypicalPrice.js +56 -71
- package/.internal/charts/stock/indicators/TypicalPrice.js.map +1 -1
- package/.internal/charts/stock/indicators/VWAP.js +78 -98
- package/.internal/charts/stock/indicators/VWAP.js.map +1 -1
- package/.internal/charts/stock/indicators/Volume.js +55 -75
- package/.internal/charts/stock/indicators/Volume.js.map +1 -1
- package/.internal/charts/stock/indicators/WilliamsR.js +138 -163
- package/.internal/charts/stock/indicators/WilliamsR.js.map +1 -1
- package/.internal/charts/stock/indicators/ZigZag.js +141 -161
- package/.internal/charts/stock/indicators/ZigZag.js.map +1 -1
- package/.internal/charts/stock/toolbar/ColorControl.js +78 -101
- package/.internal/charts/stock/toolbar/ColorControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/ComparisonControl.js +16 -28
- package/.internal/charts/stock/toolbar/ComparisonControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/DateRangeSelector.js +1157 -345
- package/.internal/charts/stock/toolbar/DateRangeSelector.js.map +1 -1
- package/.internal/charts/stock/toolbar/DrawingControl.d.ts +26 -0
- package/.internal/charts/stock/toolbar/DrawingControl.d.ts.map +1 -1
- package/.internal/charts/stock/toolbar/DrawingControl.js +754 -709
- package/.internal/charts/stock/toolbar/DrawingControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/DrawingToolControl.js +80 -119
- package/.internal/charts/stock/toolbar/DrawingToolControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/Dropdown.js +102 -150
- package/.internal/charts/stock/toolbar/Dropdown.js.map +1 -1
- package/.internal/charts/stock/toolbar/DropdownColors.js +92 -141
- package/.internal/charts/stock/toolbar/DropdownColors.js.map +1 -1
- package/.internal/charts/stock/toolbar/DropdownList.js +186 -249
- package/.internal/charts/stock/toolbar/DropdownList.js.map +1 -1
- package/.internal/charts/stock/toolbar/DropdownListControl.js +117 -150
- package/.internal/charts/stock/toolbar/DropdownListControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/IconControl.js +81 -120
- package/.internal/charts/stock/toolbar/IconControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.d.ts +23 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.d.ts.map +1 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.js +352 -297
- package/.internal/charts/stock/toolbar/IndicatorControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/IntervalControl.js +16 -28
- package/.internal/charts/stock/toolbar/IntervalControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/PeriodSelector.js +141 -189
- package/.internal/charts/stock/toolbar/PeriodSelector.js.map +1 -1
- package/.internal/charts/stock/toolbar/ResetControl.js +26 -44
- package/.internal/charts/stock/toolbar/ResetControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/SeriesTypeControl.js +14 -21
- package/.internal/charts/stock/toolbar/SeriesTypeControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/SettingsControl.js +97 -140
- package/.internal/charts/stock/toolbar/SettingsControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/StockControl.js +114 -177
- package/.internal/charts/stock/toolbar/StockControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/StockIcons.js +67 -81
- package/.internal/charts/stock/toolbar/StockIcons.js.map +1 -1
- package/.internal/charts/stock/toolbar/StockToolbar.js +63 -94
- package/.internal/charts/stock/toolbar/StockToolbar.js.map +1 -1
- package/.internal/charts/stock/toolbar/StockToolbarCSS.js +11 -11
- package/.internal/charts/stock/toolbar/StockToolbarCSS.js.map +1 -1
- package/.internal/charts/venn/Venn.js +276 -373
- package/.internal/charts/venn/Venn.js.map +1 -1
- package/.internal/charts/venn/VennDefaultTheme.js +18 -30
- package/.internal/charts/venn/VennDefaultTheme.js.map +1 -1
- package/.internal/charts/wordcloud/WordCloud.js +381 -452
- package/.internal/charts/wordcloud/WordCloud.js.map +1 -1
- package/.internal/charts/wordcloud/WordCloudDefaultTheme.js +35 -48
- package/.internal/charts/wordcloud/WordCloudDefaultTheme.js.map +1 -1
- package/.internal/charts/xy/XYChart.js +956 -1136
- package/.internal/charts/xy/XYChart.js.map +1 -1
- package/.internal/charts/xy/XYChartDefaultTheme.d.ts.map +1 -1
- package/.internal/charts/xy/XYChartDefaultTheme.js +597 -604
- package/.internal/charts/xy/XYChartDefaultTheme.js.map +1 -1
- package/.internal/charts/xy/XYChartScrollbar.js +78 -95
- package/.internal/charts/xy/XYChartScrollbar.js.map +1 -1
- package/.internal/charts/xy/XYCursor.d.ts.map +1 -1
- package/.internal/charts/xy/XYCursor.js +468 -608
- package/.internal/charts/xy/XYCursor.js.map +1 -1
- package/.internal/charts/xy/axes/Axis.d.ts +0 -2
- package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/Axis.js +509 -726
- package/.internal/charts/xy/axes/Axis.js.map +1 -1
- package/.internal/charts/xy/axes/AxisBullet.js +30 -40
- package/.internal/charts/xy/axes/AxisBullet.js.map +1 -1
- package/.internal/charts/xy/axes/AxisLabel.js +17 -22
- package/.internal/charts/xy/axes/AxisLabel.js.map +1 -1
- package/.internal/charts/xy/axes/AxisLabelRadial.js +17 -22
- package/.internal/charts/xy/axes/AxisLabelRadial.js.map +1 -1
- package/.internal/charts/xy/axes/AxisRenderer.js +186 -302
- package/.internal/charts/xy/axes/AxisRenderer.js.map +1 -1
- package/.internal/charts/xy/axes/AxisRendererX.js +308 -400
- package/.internal/charts/xy/axes/AxisRendererX.js.map +1 -1
- package/.internal/charts/xy/axes/AxisRendererY.js +319 -421
- package/.internal/charts/xy/axes/AxisRendererY.js.map +1 -1
- package/.internal/charts/xy/axes/AxisTick.js +17 -22
- package/.internal/charts/xy/axes/AxisTick.js.map +1 -1
- package/.internal/charts/xy/axes/CategoryAxis.js +312 -454
- package/.internal/charts/xy/axes/CategoryAxis.js.map +1 -1
- package/.internal/charts/xy/axes/CategoryDateAxis.js +136 -167
- package/.internal/charts/xy/axes/CategoryDateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/DateAxis.js +579 -758
- package/.internal/charts/xy/axes/DateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/DurationAxis.js +92 -128
- package/.internal/charts/xy/axes/DurationAxis.js.map +1 -1
- package/.internal/charts/xy/axes/GaplessDateAxis.js +207 -254
- package/.internal/charts/xy/axes/GaplessDateAxis.js.map +1 -1
- package/.internal/charts/xy/axes/Grid.js +19 -31
- package/.internal/charts/xy/axes/Grid.js.map +1 -1
- package/.internal/charts/xy/axes/ValueAxis.js +848 -1041
- package/.internal/charts/xy/axes/ValueAxis.js.map +1 -1
- package/.internal/charts/xy/series/BaseColumnSeries.js +480 -576
- package/.internal/charts/xy/series/BaseColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/Candlestick.js +27 -44
- package/.internal/charts/xy/series/Candlestick.js.map +1 -1
- package/.internal/charts/xy/series/CandlestickSeries.js +114 -140
- package/.internal/charts/xy/series/CandlestickSeries.js.map +1 -1
- package/.internal/charts/xy/series/ColumnSeries.js +33 -49
- package/.internal/charts/xy/series/ColumnSeries.js.map +1 -1
- package/.internal/charts/xy/series/LineSeries.js +447 -548
- package/.internal/charts/xy/series/LineSeries.js.map +1 -1
- package/.internal/charts/xy/series/OHLC.js +36 -48
- package/.internal/charts/xy/series/OHLC.js.map +1 -1
- package/.internal/charts/xy/series/OHLCSeries.js +32 -48
- package/.internal/charts/xy/series/OHLCSeries.js.map +1 -1
- package/.internal/charts/xy/series/SmoothedXLineSeries.js +23 -40
- package/.internal/charts/xy/series/SmoothedXLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/SmoothedXYLineSeries.js +23 -40
- package/.internal/charts/xy/series/SmoothedXYLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/SmoothedYLineSeries.js +23 -40
- package/.internal/charts/xy/series/SmoothedYLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/StepLineSeries.js +114 -131
- package/.internal/charts/xy/series/StepLineSeries.js.map +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/XYSeries.js +939 -1222
- package/.internal/charts/xy/series/XYSeries.js.map +1 -1
- package/.internal/core/Classes.d.ts +11 -7
- package/.internal/core/Classes.d.ts.map +1 -1
- package/.internal/core/Classes.js.map +1 -1
- package/.internal/core/Registry.d.ts.map +1 -1
- package/.internal/core/Registry.js +6 -8
- package/.internal/core/Registry.js.map +1 -1
- package/.internal/core/Root.d.ts +20 -0
- package/.internal/core/Root.d.ts.map +1 -1
- package/.internal/core/Root.js +1006 -1241
- package/.internal/core/Root.js.map +1 -1
- package/.internal/core/Theme.js +38 -67
- package/.internal/core/Theme.js.map +1 -1
- package/.internal/core/render/Bullet.js +34 -49
- package/.internal/core/render/Bullet.js.map +1 -1
- package/.internal/core/render/Button.js +47 -64
- package/.internal/core/render/Button.js.map +1 -1
- package/.internal/core/render/Chart.js +20 -25
- package/.internal/core/render/Chart.js.map +1 -1
- package/.internal/core/render/Circle.js +24 -41
- package/.internal/core/render/Circle.js.map +1 -1
- package/.internal/core/render/Component.js +239 -384
- package/.internal/core/render/Component.js.map +1 -1
- package/.internal/core/render/Container.d.ts.map +1 -1
- package/.internal/core/render/Container.js +444 -548
- package/.internal/core/render/Container.js.map +1 -1
- package/.internal/core/render/Ellipse.js +24 -41
- package/.internal/core/render/Ellipse.js.map +1 -1
- package/.internal/core/render/Graphics.d.ts.map +1 -1
- package/.internal/core/render/Graphics.js +197 -215
- package/.internal/core/render/Graphics.js.map +1 -1
- package/.internal/core/render/GridLayout.js +102 -125
- package/.internal/core/render/GridLayout.js.map +1 -1
- package/.internal/core/render/HeatLegend.js +129 -154
- package/.internal/core/render/HeatLegend.js.map +1 -1
- package/.internal/core/render/HorizontalLayout.js +79 -91
- package/.internal/core/render/HorizontalLayout.js.map +1 -1
- package/.internal/core/render/Label.js +109 -150
- package/.internal/core/render/Label.js.map +1 -1
- package/.internal/core/render/Layout.js +14 -21
- package/.internal/core/render/Layout.js.map +1 -1
- package/.internal/core/render/Legend.js +230 -282
- package/.internal/core/render/Legend.js.map +1 -1
- package/.internal/core/render/Line.js +37 -54
- package/.internal/core/render/Line.js.map +1 -1
- package/.internal/core/render/MonotoneXTension.js +58 -85
- package/.internal/core/render/MonotoneXTension.js.map +1 -1
- package/.internal/core/render/MonotoneYTension.js +59 -88
- package/.internal/core/render/MonotoneYTension.js.map +1 -1
- package/.internal/core/render/Picture.js +92 -113
- package/.internal/core/render/Picture.js.map +1 -1
- package/.internal/core/render/PointedRectangle.js +94 -111
- package/.internal/core/render/PointedRectangle.js.map +1 -1
- package/.internal/core/render/RadialLabel.js +119 -158
- package/.internal/core/render/RadialLabel.js.map +1 -1
- package/.internal/core/render/RadialText.js +47 -62
- package/.internal/core/render/RadialText.js.map +1 -1
- package/.internal/core/render/Rectangle.js +31 -58
- package/.internal/core/render/Rectangle.js.map +1 -1
- package/.internal/core/render/RoundedRectangle.js +55 -72
- package/.internal/core/render/RoundedRectangle.js.map +1 -1
- package/.internal/core/render/Scrollbar.js +292 -349
- package/.internal/core/render/Scrollbar.js.map +1 -1
- package/.internal/core/render/SerialChart.js +64 -85
- package/.internal/core/render/SerialChart.js.map +1 -1
- package/.internal/core/render/Series.js +472 -660
- package/.internal/core/render/Series.js.map +1 -1
- package/.internal/core/render/Slice.js +83 -103
- package/.internal/core/render/Slice.js.map +1 -1
- package/.internal/core/render/Slider.js +25 -42
- package/.internal/core/render/Slider.js.map +1 -1
- package/.internal/core/render/Sprite.d.ts +17 -1
- package/.internal/core/render/Sprite.d.ts.map +1 -1
- package/.internal/core/render/Sprite.js +1307 -1777
- package/.internal/core/render/Sprite.js.map +1 -1
- package/.internal/core/render/SpriteResizer.js +157 -199
- package/.internal/core/render/SpriteResizer.js.map +1 -1
- package/.internal/core/render/Star.js +37 -54
- package/.internal/core/render/Star.js.map +1 -1
- package/.internal/core/render/Text.d.ts.map +1 -1
- package/.internal/core/render/Text.js +145 -182
- package/.internal/core/render/Text.js.map +1 -1
- package/.internal/core/render/Tick.js +14 -21
- package/.internal/core/render/Tick.js.map +1 -1
- package/.internal/core/render/Tooltip.d.ts +0 -1
- package/.internal/core/render/Tooltip.d.ts.map +1 -1
- package/.internal/core/render/Tooltip.js +272 -333
- package/.internal/core/render/Tooltip.js.map +1 -1
- package/.internal/core/render/Triangle.js +38 -65
- package/.internal/core/render/Triangle.js.map +1 -1
- package/.internal/core/render/VerticalLayout.js +79 -91
- package/.internal/core/render/VerticalLayout.js.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.d.ts +2 -2
- package/.internal/core/render/backend/CanvasRenderer.d.ts.map +1 -1
- package/.internal/core/render/backend/CanvasRenderer.js +2806 -3721
- package/.internal/core/render/backend/CanvasRenderer.js.map +1 -1
- package/.internal/core/render/backend/Renderer.d.ts +1 -0
- package/.internal/core/render/backend/Renderer.d.ts.map +1 -1
- package/.internal/core/render/backend/Renderer.js.map +1 -1
- package/.internal/core/render/gradients/Gradient.js +45 -72
- package/.internal/core/render/gradients/Gradient.js.map +1 -1
- package/.internal/core/render/gradients/LinearGradient.js +53 -65
- package/.internal/core/render/gradients/LinearGradient.js.map +1 -1
- package/.internal/core/render/gradients/RadialGradient.js +69 -81
- package/.internal/core/render/gradients/RadialGradient.js.map +1 -1
- package/.internal/core/render/patterns/CirclePattern.js +64 -81
- package/.internal/core/render/patterns/CirclePattern.js.map +1 -1
- package/.internal/core/render/patterns/LinePattern.js +49 -66
- package/.internal/core/render/patterns/LinePattern.js.map +1 -1
- package/.internal/core/render/patterns/PathPattern.js +72 -89
- package/.internal/core/render/patterns/PathPattern.js.map +1 -1
- package/.internal/core/render/patterns/Pattern.js +54 -83
- package/.internal/core/render/patterns/Pattern.js.map +1 -1
- package/.internal/core/render/patterns/PicturePattern.js +69 -90
- package/.internal/core/render/patterns/PicturePattern.js.map +1 -1
- package/.internal/core/render/patterns/RectanglePattern.js +65 -82
- package/.internal/core/render/patterns/RectanglePattern.js.map +1 -1
- package/.internal/core/util/Animation.js +102 -151
- package/.internal/core/util/Animation.js.map +1 -1
- package/.internal/core/util/Array.js +48 -49
- package/.internal/core/util/Array.js.map +1 -1
- package/.internal/core/util/AsyncPending.js +15 -15
- package/.internal/core/util/AsyncPending.js.map +1 -1
- package/.internal/core/util/Benchmark.js +37 -55
- package/.internal/core/util/Benchmark.js.map +1 -1
- package/.internal/core/util/Children.js +42 -67
- package/.internal/core/util/Children.js.map +1 -1
- package/.internal/core/util/Color.js +110 -206
- package/.internal/core/util/Color.js.map +1 -1
- package/.internal/core/util/ColorSet.js +73 -110
- package/.internal/core/util/ColorSet.js.map +1 -1
- package/.internal/core/util/Counter.js +13 -25
- package/.internal/core/util/Counter.js.map +1 -1
- package/.internal/core/util/Data.js +28 -70
- package/.internal/core/util/Data.js.map +1 -1
- package/.internal/core/util/DataParser.js +145 -178
- package/.internal/core/util/DataParser.js.map +1 -1
- package/.internal/core/util/DataProcessor.js +89 -144
- package/.internal/core/util/DataProcessor.js.map +1 -1
- package/.internal/core/util/DateFormatter.d.ts.map +1 -1
- package/.internal/core/util/DateFormatter.js +795 -901
- package/.internal/core/util/DateFormatter.js.map +1 -1
- package/.internal/core/util/Disposer.js +82 -159
- package/.internal/core/util/Disposer.js.map +1 -1
- package/.internal/core/util/Draw.js +27 -27
- package/.internal/core/util/Draw.js.map +1 -1
- package/.internal/core/util/DurationFormatter.js +343 -409
- package/.internal/core/util/DurationFormatter.js.map +1 -1
- package/.internal/core/util/Ease.js +6 -6
- package/.internal/core/util/Entity.d.ts +5 -1
- package/.internal/core/util/Entity.d.ts.map +1 -1
- package/.internal/core/util/Entity.js +869 -1442
- package/.internal/core/util/Entity.js.map +1 -1
- package/.internal/core/util/EventDispatcher.js +216 -346
- package/.internal/core/util/EventDispatcher.js.map +1 -1
- package/.internal/core/util/InterfaceColors.js +14 -21
- package/.internal/core/util/InterfaceColors.js.map +1 -1
- package/.internal/core/util/Language.js +63 -123
- package/.internal/core/util/Language.js.map +1 -1
- package/.internal/core/util/List.js +244 -441
- package/.internal/core/util/List.js.map +1 -1
- package/.internal/core/util/Math.js +35 -35
- package/.internal/core/util/Math.js.map +1 -1
- package/.internal/core/util/Matrix.js +56 -95
- package/.internal/core/util/Matrix.js.map +1 -1
- package/.internal/core/util/Modal.js +103 -147
- package/.internal/core/util/Modal.js.map +1 -1
- package/.internal/core/util/Net.js +19 -19
- package/.internal/core/util/Net.js.map +1 -1
- package/.internal/core/util/NumberFormatter.js +393 -442
- package/.internal/core/util/NumberFormatter.js.map +1 -1
- package/.internal/core/util/Object.js +4 -4
- package/.internal/core/util/Object.js.map +1 -1
- package/.internal/core/util/Order.js +5 -5
- package/.internal/core/util/Order.js.map +1 -1
- package/.internal/core/util/Percent.js +65 -90
- package/.internal/core/util/Percent.js.map +1 -1
- package/.internal/core/util/PopulateString.js +28 -28
- package/.internal/core/util/PopulateString.js.map +1 -1
- package/.internal/core/util/ResizeSensor.js +76 -116
- package/.internal/core/util/ResizeSensor.js.map +1 -1
- package/.internal/core/util/States.js +116 -188
- package/.internal/core/util/States.js.map +1 -1
- package/.internal/core/util/Template.js +203 -364
- package/.internal/core/util/Template.js.map +1 -1
- package/.internal/core/util/TextFormatter.js +148 -184
- package/.internal/core/util/TextFormatter.js.map +1 -1
- package/.internal/core/util/Throttler.js +18 -26
- package/.internal/core/util/Throttler.js.map +1 -1
- package/.internal/core/util/Time.d.ts.map +1 -1
- package/.internal/core/util/Time.js +61 -63
- package/.internal/core/util/Time.js.map +1 -1
- package/.internal/core/util/Timezone.js +35 -57
- package/.internal/core/util/Timezone.js.map +1 -1
- package/.internal/core/util/Type.js +12 -12
- package/.internal/core/util/Type.js.map +1 -1
- package/.internal/core/util/Utils.d.ts +17 -0
- package/.internal/core/util/Utils.d.ts.map +1 -1
- package/.internal/core/util/Utils.js +166 -182
- package/.internal/core/util/Utils.js.map +1 -1
- package/.internal/core/util/Value.js +14 -30
- package/.internal/core/util/Value.js.map +1 -1
- package/.internal/plugins/exporting/Annotator.js +139 -265
- package/.internal/plugins/exporting/Annotator.js.map +1 -1
- package/.internal/plugins/exporting/Exporting.js +1216 -1614
- package/.internal/plugins/exporting/Exporting.js.map +1 -1
- package/.internal/plugins/exporting/ExportingCSS.js +5 -5
- package/.internal/plugins/exporting/ExportingCSS.js.map +1 -1
- package/.internal/plugins/exporting/ExportingMenu.js +337 -405
- package/.internal/plugins/exporting/ExportingMenu.js.map +1 -1
- package/.internal/plugins/json/Classes-script.d.ts +16 -0
- package/.internal/plugins/json/Classes-script.d.ts.map +1 -1
- package/.internal/plugins/json/Classes-script.js +202 -194
- package/.internal/plugins/json/Classes-script.js.map +1 -1
- package/.internal/plugins/json/Classes.d.ts +16 -0
- package/.internal/plugins/json/Classes.d.ts.map +1 -1
- package/.internal/plugins/json/Classes.js +202 -194
- package/.internal/plugins/json/Classes.js.map +1 -1
- package/.internal/plugins/json/Json.d.ts +42 -2
- package/.internal/plugins/json/Json.d.ts.map +1 -1
- package/.internal/plugins/json/Json.js +391 -278
- package/.internal/plugins/json/Json.js.map +1 -1
- package/.internal/plugins/json/Serializer.d.ts +62 -0
- package/.internal/plugins/json/Serializer.d.ts.map +1 -0
- package/.internal/plugins/json/Serializer.js +137 -0
- package/.internal/plugins/json/Serializer.js.map +1 -0
- package/.internal/plugins/sliceGrouper/SliceGrouper.js +159 -202
- package/.internal/plugins/sliceGrouper/SliceGrouper.js.map +1 -1
- package/.internal/themes/AnimatedTheme.js +20 -32
- package/.internal/themes/AnimatedTheme.js.map +1 -1
- package/.internal/themes/DarkTheme.js +28 -40
- package/.internal/themes/DarkTheme.js.map +1 -1
- package/.internal/themes/DatavizTheme.js +12 -24
- package/.internal/themes/DatavizTheme.js.map +1 -1
- package/.internal/themes/DefaultTheme.d.ts.map +1 -1
- package/.internal/themes/DefaultTheme.js +803 -813
- package/.internal/themes/DefaultTheme.js.map +1 -1
- package/.internal/themes/FrozenTheme.js +19 -31
- package/.internal/themes/FrozenTheme.js.map +1 -1
- package/.internal/themes/KellyTheme.js +31 -43
- package/.internal/themes/KellyTheme.js.map +1 -1
- package/.internal/themes/MaterialTheme.js +28 -40
- package/.internal/themes/MaterialTheme.js.map +1 -1
- package/.internal/themes/MicrochartTheme.js +67 -79
- package/.internal/themes/MicrochartTheme.js.map +1 -1
- package/.internal/themes/MoonriseTheme.js +19 -31
- package/.internal/themes/MoonriseTheme.js.map +1 -1
- package/.internal/themes/ResponsiveTheme.js +613 -790
- package/.internal/themes/ResponsiveTheme.js.map +1 -1
- package/.internal/themes/SpiritedTheme.js +19 -31
- package/.internal/themes/SpiritedTheme.js.map +1 -1
- package/CHANGELOG.md +28 -0
- package/examples/javascript/flow-chord/package.json +1 -1
- package/examples/javascript/flow-chord-directed/package.json +1 -1
- package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/javascript/flow-sankey/package.json +1 -1
- package/examples/javascript/gauge/package.json +1 -1
- package/examples/javascript/gauge-bands/index.js +3 -1
- package/examples/javascript/gauge-bands/package.json +1 -1
- package/examples/javascript/hierarchy-force-directed/package.json +1 -1
- package/examples/javascript/hierarchy-pack/package.json +1 -1
- package/examples/javascript/hierarchy-partition/package.json +1 -1
- package/examples/javascript/hierarchy-sunburst/package.json +1 -1
- package/examples/javascript/hierarchy-tree/package.json +1 -1
- package/examples/javascript/hierarchy-treemap/package.json +1 -1
- package/examples/javascript/jest/package.json +1 -1
- package/examples/javascript/{json → json-pie}/README.md +0 -0
- package/examples/javascript/{json → json-pie}/index.css +0 -0
- package/examples/javascript/json-pie/index.html +12 -0
- package/examples/javascript/json-pie/index.js +77 -0
- package/examples/javascript/json-pie/package.json +16 -0
- package/examples/javascript/{json → json-pie}/webpack.config.js +0 -0
- package/examples/{typescript/json → javascript/json-xy}/README.md +0 -0
- package/examples/{typescript/json → javascript/json-xy}/index.css +0 -0
- package/examples/{typescript/json → javascript/json-xy}/index.html +1 -1
- package/examples/javascript/json-xy/index.js +203 -0
- package/examples/javascript/{json → json-xy}/package.json +2 -2
- package/examples/javascript/json-xy/webpack.config.js +38 -0
- package/examples/javascript/map-animating-along-lines/package.json +1 -1
- package/examples/javascript/map-day-and-night/package.json +1 -1
- package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/javascript/map-with-bubbles/package.json +1 -1
- package/examples/javascript/map-zoom-to-country/package.json +1 -1
- package/examples/javascript/misc-40-charts/package.json +1 -1
- package/examples/javascript/misc-microchart-grid/package.json +1 -1
- package/examples/javascript/pie-chart/package.json +1 -1
- package/examples/javascript/pie-donut-chart/package.json +1 -1
- package/examples/javascript/pie-variable-radius/package.json +1 -1
- package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
- package/examples/javascript/radar-heat-map/index.js +33 -33
- package/examples/javascript/radar-heat-map/package.json +1 -1
- package/examples/javascript/radar-line/package.json +1 -1
- package/examples/javascript/radar-time-line/package.json +1 -1
- package/examples/javascript/sliced-funnel/package.json +1 -1
- package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/javascript/sliced-pyramid/package.json +1 -1
- package/examples/javascript/stock-chart/package.json +1 -1
- package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
- package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
- package/examples/javascript/stock-chart-intraday/package.json +1 -1
- package/examples/javascript/stock-chart-live/package.json +1 -1
- package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/javascript/venn-diagram/package.json +1 -1
- package/examples/javascript/wordcloud-with-data/package.json +1 -1
- package/examples/javascript/wordcloud-with-text/package.json +1 -1
- package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/javascript/xy-bubble/package.json +1 -1
- package/examples/javascript/xy-candlestick/package.json +1 -1
- package/examples/javascript/xy-clustered-column/package.json +1 -1
- package/examples/javascript/xy-column/package.json +1 -1
- package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/javascript/xy-data-grouping/package.json +1 -1
- package/examples/javascript/xy-draggable-range/package.json +1 -1
- package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/javascript/xy-dumbbell plot/package.json +1 -1
- package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/javascript/xy-line/package.json +1 -1
- package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/javascript/xy-live-data/package.json +1 -1
- package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/javascript/xy-ohlc/package.json +1 -1
- package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/javascript/xy-smoothed-line/package.json +1 -1
- package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/javascript/xy-stacked-column/package.json +1 -1
- package/examples/javascript/xy-stacked-step/package.json +1 -1
- package/examples/javascript/xy-stock/package.json +1 -1
- package/examples/javascript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/flow-chord/package.json +1 -1
- package/examples/typescript/flow-chord/tsconfig.json +1 -1
- package/examples/typescript/flow-chord-directed/package.json +1 -1
- package/examples/typescript/flow-chord-directed/tsconfig.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/tsconfig.json +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/flow-sankey/tsconfig.json +1 -1
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge/tsconfig.json +1 -1
- package/examples/typescript/gauge-bands/index.ts +3 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/gauge-bands/tsconfig.json +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/tsconfig.json +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-pack/tsconfig.json +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-partition/tsconfig.json +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/tsconfig.json +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-tree/tsconfig.json +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/tsconfig.json +1 -1
- package/examples/typescript/jest/package.json +1 -1
- package/examples/typescript/jest/tsconfig.json +1 -1
- package/examples/typescript/json-pie/README.md +6 -0
- package/examples/typescript/json-pie/index.css +11 -0
- package/examples/typescript/json-pie/index.html +12 -0
- package/examples/typescript/json-pie/index.ts +77 -0
- package/examples/typescript/json-pie/package.json +18 -0
- package/examples/typescript/{json → json-pie}/tsconfig.json +1 -1
- package/examples/typescript/{json → json-pie}/webpack.config.js +0 -0
- package/examples/typescript/json-xy/README.md +6 -0
- package/examples/typescript/json-xy/index.css +11 -0
- package/examples/{javascript/json → typescript/json-xy}/index.html +1 -1
- package/examples/typescript/json-xy/index.ts +203 -0
- package/examples/typescript/{json → json-xy}/package.json +2 -2
- package/examples/typescript/json-xy/tsconfig.json +12 -0
- package/examples/typescript/json-xy/webpack.config.js +45 -0
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/tsconfig.json +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-day-and-night/tsconfig.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/tsconfig.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/tsconfig.json +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/tsconfig.json +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/tsconfig.json +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-40-charts/tsconfig.json +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/tsconfig.json +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-chart/tsconfig.json +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/tsconfig.json +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/pie-variable-radius/tsconfig.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/tsconfig.json +1 -1
- package/examples/typescript/radar-heat-map/index.ts +33 -33
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-heat-map/tsconfig.json +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-line/tsconfig.json +1 -1
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/radar-time-line/tsconfig.json +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-funnel/tsconfig.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/tsconfig.json +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/sliced-pyramid/tsconfig.json +1 -1
- package/examples/typescript/stock-chart/package.json +1 -1
- package/examples/typescript/stock-chart/tsconfig.json +1 -1
- package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/typescript/stock-chart-comparing-stocks/tsconfig.json +1 -1
- package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
- package/examples/typescript/stock-chart-data-granularity/tsconfig.json +1 -1
- package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
- package/examples/typescript/stock-chart-data-grouping/tsconfig.json +1 -1
- package/examples/typescript/stock-chart-intraday/package.json +1 -1
- package/examples/typescript/stock-chart-intraday/tsconfig.json +1 -1
- package/examples/typescript/stock-chart-live/package.json +1 -1
- package/examples/typescript/stock-chart-live/tsconfig.json +1 -1
- package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/typescript/stock-chart-volume-separate-panel/tsconfig.json +1 -1
- package/examples/typescript/venn-diagram/package.json +1 -1
- package/examples/typescript/venn-diagram/tsconfig.json +1 -1
- package/examples/typescript/wordcloud-with-data/package.json +1 -1
- package/examples/typescript/wordcloud-with-data/tsconfig.json +1 -1
- package/examples/typescript/wordcloud-with-text/package.json +1 -1
- package/examples/typescript/wordcloud-with-text/tsconfig.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/tsconfig.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/tsconfig.json +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-bubble/tsconfig.json +1 -1
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-candlestick/tsconfig.json +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-clustered-column/tsconfig.json +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-column/tsconfig.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/tsconfig.json +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-data-grouping/tsconfig.json +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-draggable-range/tsconfig.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/tsconfig.json +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/tsconfig.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/tsconfig.json +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line/tsconfig.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/tsconfig.json +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-live-data/tsconfig.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/tsconfig.json +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-ohlc/tsconfig.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/tsconfig.json +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/tsconfig.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/tsconfig.json +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/tsconfig.json +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stacked-step/tsconfig.json +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock/tsconfig.json +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/tsconfig.json +1 -1
- package/locales/ar.js +1 -1
- package/locales/bg_BG.js +1 -1
- package/locales/bs_BA.js +1 -1
- package/locales/ca_ES.js +1 -1
- package/locales/cs_CZ.js +1 -1
- package/locales/da_DK.js +1 -1
- package/locales/el_GR.js +1 -1
- package/locales/en.js +1 -1
- package/locales/en_CA.js +1 -1
- package/locales/en_US.js +1 -1
- package/locales/et_EE.js +1 -1
- package/locales/fi_FI.js +1 -1
- package/locales/fr_FR.js +1 -1
- package/locales/he_IL.js +1 -1
- package/locales/hi_IN.js +1 -1
- package/locales/hr_HR.js +1 -1
- package/locales/hu_HU.js +1 -1
- package/locales/id_ID.js +1 -1
- package/locales/ja_JP.js +1 -1
- package/locales/ko_KR.js +1 -1
- package/locales/lv_LV.js +1 -1
- package/locales/nb_NO.js +1 -1
- package/locales/nl_NL.js +1 -1
- package/locales/pl_PL.js +1 -1
- package/locales/ro_RO.js +1 -1
- package/locales/sr_RS.js +1 -1
- package/locales/th_TH.js +1 -1
- package/locales/tr_TR.js +1 -1
- package/locales/vi_VN.js +1 -1
- package/locales/zh_Hans.js +1 -1
- package/locales/zh_Hant.js +1 -1
- package/package.json +1 -1
- package/plugins/json.d.ts +1 -0
- package/plugins/json.d.ts.map +1 -1
- package/plugins/json.js +1 -0
- package/plugins/json.js.map +1 -1
- package/examples/javascript/json/index.js +0 -206
- package/examples/typescript/json/index.ts +0 -206
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { Container } from "../../core/render/Container";
|
|
3
2
|
import { p100 } from "../../core/util/Percent";
|
|
4
3
|
import { Graphics } from "../../core/render/Graphics";
|
|
@@ -15,20 +14,19 @@ import * as $object from "../../core/util/Object";
|
|
|
15
14
|
* @see {@link https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/} for more info
|
|
16
15
|
* @important
|
|
17
16
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
+
export class XYCursor extends Container {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
22
20
|
/**
|
|
23
21
|
* A [[Grid]] elment that used for horizontal line of the cursor crosshair.
|
|
24
22
|
*
|
|
25
23
|
* @default Grid.new()
|
|
26
24
|
*/
|
|
27
|
-
Object.defineProperty(
|
|
25
|
+
Object.defineProperty(this, "lineX", {
|
|
28
26
|
enumerable: true,
|
|
29
27
|
configurable: true,
|
|
30
28
|
writable: true,
|
|
31
|
-
value:
|
|
29
|
+
value: this.children.push(Grid.new(this._root, {
|
|
32
30
|
themeTags: ["x"]
|
|
33
31
|
}))
|
|
34
32
|
});
|
|
@@ -37,11 +35,11 @@ var XYCursor = /** @class */ (function (_super) {
|
|
|
37
35
|
*
|
|
38
36
|
* @default Grid.new()
|
|
39
37
|
*/
|
|
40
|
-
Object.defineProperty(
|
|
38
|
+
Object.defineProperty(this, "lineY", {
|
|
41
39
|
enumerable: true,
|
|
42
40
|
configurable: true,
|
|
43
41
|
writable: true,
|
|
44
|
-
value:
|
|
42
|
+
value: this.children.push(Grid.new(this._root, {
|
|
45
43
|
themeTags: ["y"]
|
|
46
44
|
}))
|
|
47
45
|
});
|
|
@@ -50,33 +48,33 @@ var XYCursor = /** @class */ (function (_super) {
|
|
|
50
48
|
*
|
|
51
49
|
* @default Graphics.new()
|
|
52
50
|
*/
|
|
53
|
-
Object.defineProperty(
|
|
51
|
+
Object.defineProperty(this, "selection", {
|
|
54
52
|
enumerable: true,
|
|
55
53
|
configurable: true,
|
|
56
54
|
writable: true,
|
|
57
|
-
value:
|
|
55
|
+
value: this.children.push(Graphics.new(this._root, {
|
|
58
56
|
themeTags: ["selection", "cursor"], layer: 30
|
|
59
57
|
}))
|
|
60
58
|
});
|
|
61
|
-
Object.defineProperty(
|
|
59
|
+
Object.defineProperty(this, "_movePoint", {
|
|
62
60
|
enumerable: true,
|
|
63
61
|
configurable: true,
|
|
64
62
|
writable: true,
|
|
65
63
|
value: void 0
|
|
66
64
|
});
|
|
67
|
-
Object.defineProperty(
|
|
65
|
+
Object.defineProperty(this, "_lastPoint", {
|
|
68
66
|
enumerable: true,
|
|
69
67
|
configurable: true,
|
|
70
68
|
writable: true,
|
|
71
69
|
value: { x: 0, y: 0 }
|
|
72
70
|
});
|
|
73
|
-
Object.defineProperty(
|
|
71
|
+
Object.defineProperty(this, "_tooltipX", {
|
|
74
72
|
enumerable: true,
|
|
75
73
|
configurable: true,
|
|
76
74
|
writable: true,
|
|
77
75
|
value: false
|
|
78
76
|
});
|
|
79
|
-
Object.defineProperty(
|
|
77
|
+
Object.defineProperty(this, "_tooltipY", {
|
|
80
78
|
enumerable: true,
|
|
81
79
|
configurable: true,
|
|
82
80
|
writable: true,
|
|
@@ -85,443 +83,343 @@ var XYCursor = /** @class */ (function (_super) {
|
|
|
85
83
|
/**
|
|
86
84
|
* A chart cursor is attached to.
|
|
87
85
|
*/
|
|
88
|
-
Object.defineProperty(
|
|
86
|
+
Object.defineProperty(this, "chart", {
|
|
89
87
|
enumerable: true,
|
|
90
88
|
configurable: true,
|
|
91
89
|
writable: true,
|
|
92
90
|
value: void 0
|
|
93
91
|
});
|
|
94
|
-
Object.defineProperty(
|
|
92
|
+
Object.defineProperty(this, "_toX", {
|
|
95
93
|
enumerable: true,
|
|
96
94
|
configurable: true,
|
|
97
95
|
writable: true,
|
|
98
96
|
value: void 0
|
|
99
97
|
});
|
|
100
|
-
Object.defineProperty(
|
|
98
|
+
Object.defineProperty(this, "_toY", {
|
|
101
99
|
enumerable: true,
|
|
102
100
|
configurable: true,
|
|
103
101
|
writable: true,
|
|
104
102
|
value: void 0
|
|
105
103
|
});
|
|
106
|
-
return _this;
|
|
107
104
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
this.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
this.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
this.lineY.events.on("blur", function (ev) { return _this._handleLineBlur(ev.target); });
|
|
133
|
-
if ($utils.supports("keyboardevents")) {
|
|
134
|
-
this._disposers.push($utils.addEventListener(document, "keydown", function (ev) {
|
|
135
|
-
_this._handleLineMove(ev.keyCode);
|
|
136
|
-
}));
|
|
137
|
-
}
|
|
105
|
+
_afterNew() {
|
|
106
|
+
this._settings.themeTags = $utils.mergeTags(this._settings.themeTags, ["xy", "cursor"]);
|
|
107
|
+
super._afterNew();
|
|
108
|
+
this.setAll({ "width": p100, height: p100, isMeasured: true, position: "absolute" });
|
|
109
|
+
this.states.create("hidden", { visible: true, opacity: 0 });
|
|
110
|
+
this._drawLines();
|
|
111
|
+
this.setPrivateRaw("visible", false);
|
|
112
|
+
this._disposers.push(this.setTimeout(() => {
|
|
113
|
+
this.setPrivate("visible", true);
|
|
114
|
+
}, 500));
|
|
115
|
+
this._disposers.push(this.lineX.events.on("positionchanged", () => {
|
|
116
|
+
this._handleXLine();
|
|
117
|
+
}));
|
|
118
|
+
this._disposers.push(this.lineY.events.on("positionchanged", () => {
|
|
119
|
+
this._handleYLine();
|
|
120
|
+
}));
|
|
121
|
+
this._disposers.push(this.lineX.events.on("focus", (ev) => this._handleLineFocus(ev.target)));
|
|
122
|
+
this._disposers.push(this.lineX.events.on("blur", (ev) => this._handleLineBlur(ev.target)));
|
|
123
|
+
this._disposers.push(this.lineY.events.on("focus", (ev) => this._handleLineFocus(ev.target)));
|
|
124
|
+
this._disposers.push(this.lineY.events.on("blur", (ev) => this._handleLineBlur(ev.target)));
|
|
125
|
+
if ($utils.supports("keyboardevents")) {
|
|
126
|
+
this._disposers.push($utils.addEventListener(document, "keydown", (ev) => {
|
|
127
|
+
this._handleLineMove(ev.keyCode);
|
|
128
|
+
}));
|
|
138
129
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
value: function () {
|
|
145
|
-
var chart = this.chart;
|
|
146
|
-
if (chart) {
|
|
147
|
-
chart.plotContainer._display.cancelTouch = this.get("behavior") != "none" ? true : false;
|
|
148
|
-
}
|
|
130
|
+
}
|
|
131
|
+
_setUpTouch() {
|
|
132
|
+
const chart = this.chart;
|
|
133
|
+
if (chart) {
|
|
134
|
+
chart.plotContainer._display.cancelTouch = this.get("behavior") != "none" ? true : false;
|
|
149
135
|
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
var position = 0;
|
|
184
|
-
var increment = 0.1;
|
|
185
|
-
var chart = this.chart;
|
|
186
|
-
if (this._root.focused(this.lineX)) {
|
|
187
|
-
if (chart && chart.xAxes.length) {
|
|
188
|
-
increment = chart.xAxes.getIndex(0).getCellWidthPosition();
|
|
189
|
-
}
|
|
190
|
-
position = this.getPrivate("positionX", 0);
|
|
191
|
-
dir = "positionX";
|
|
192
|
-
if (keyCode == 37) {
|
|
193
|
-
position -= increment;
|
|
194
|
-
}
|
|
195
|
-
else if (keyCode == 39) {
|
|
196
|
-
position += increment;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
else if (this._root.focused(this.lineY)) {
|
|
200
|
-
if (chart && chart.yAxes.length) {
|
|
201
|
-
increment = chart.yAxes.getIndex(0).getCellWidthPosition();
|
|
202
|
-
}
|
|
203
|
-
position = this.getPrivate("positionY", 0);
|
|
204
|
-
dir = "positionY";
|
|
205
|
-
if (keyCode == 38) {
|
|
206
|
-
position -= increment;
|
|
207
|
-
}
|
|
208
|
-
else if (keyCode == 40) {
|
|
209
|
-
position += increment;
|
|
210
|
-
}
|
|
136
|
+
}
|
|
137
|
+
_handleXLine() {
|
|
138
|
+
let x = this.lineX.x();
|
|
139
|
+
let visible = true;
|
|
140
|
+
if (x < 0 || x > this.width()) {
|
|
141
|
+
visible = false;
|
|
142
|
+
}
|
|
143
|
+
this.lineX.setPrivate("visible", visible);
|
|
144
|
+
}
|
|
145
|
+
_handleYLine() {
|
|
146
|
+
let y = this.lineY.y();
|
|
147
|
+
let visible = true;
|
|
148
|
+
if (y < 0 || y > this.height()) {
|
|
149
|
+
visible = false;
|
|
150
|
+
}
|
|
151
|
+
this.lineY.setPrivate("visible", visible);
|
|
152
|
+
}
|
|
153
|
+
_handleLineMove(keyCode) {
|
|
154
|
+
let dir = "";
|
|
155
|
+
let position = 0;
|
|
156
|
+
let increment = 0.1;
|
|
157
|
+
const chart = this.chart;
|
|
158
|
+
if (this._root.focused(this.lineX)) {
|
|
159
|
+
if (chart && chart.xAxes.length) {
|
|
160
|
+
increment = chart.xAxes.getIndex(0).getCellWidthPosition();
|
|
161
|
+
}
|
|
162
|
+
position = this.getPrivate("positionX", 0);
|
|
163
|
+
dir = "positionX";
|
|
164
|
+
if (keyCode == 37) {
|
|
165
|
+
position -= increment;
|
|
166
|
+
}
|
|
167
|
+
else if (keyCode == 39) {
|
|
168
|
+
position += increment;
|
|
211
169
|
}
|
|
212
|
-
|
|
213
|
-
|
|
170
|
+
}
|
|
171
|
+
else if (this._root.focused(this.lineY)) {
|
|
172
|
+
if (chart && chart.yAxes.length) {
|
|
173
|
+
increment = chart.yAxes.getIndex(0).getCellWidthPosition();
|
|
214
174
|
}
|
|
215
|
-
|
|
216
|
-
|
|
175
|
+
position = this.getPrivate("positionY", 0);
|
|
176
|
+
dir = "positionY";
|
|
177
|
+
if (keyCode == 38) {
|
|
178
|
+
position -= increment;
|
|
217
179
|
}
|
|
218
|
-
if (
|
|
219
|
-
|
|
180
|
+
else if (keyCode == 40) {
|
|
181
|
+
position += increment;
|
|
220
182
|
}
|
|
221
183
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
enumerable: false,
|
|
225
|
-
configurable: true,
|
|
226
|
-
writable: true,
|
|
227
|
-
value: function (_line) {
|
|
228
|
-
this.setAll({
|
|
229
|
-
positionX: this.getPrivate("positionX"),
|
|
230
|
-
positionY: this.getPrivate("positionY"),
|
|
231
|
-
alwaysShow: true
|
|
232
|
-
});
|
|
184
|
+
if (position < 0) {
|
|
185
|
+
position = 0;
|
|
233
186
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
enumerable: false,
|
|
237
|
-
configurable: true,
|
|
238
|
-
writable: true,
|
|
239
|
-
value: function (_line) {
|
|
240
|
-
this.setAll({
|
|
241
|
-
positionX: undefined,
|
|
242
|
-
positionY: undefined,
|
|
243
|
-
alwaysShow: false
|
|
244
|
-
});
|
|
187
|
+
else if (position > 1) {
|
|
188
|
+
position = 1;
|
|
245
189
|
}
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
enumerable: false,
|
|
249
|
-
configurable: true,
|
|
250
|
-
writable: true,
|
|
251
|
-
value: function () {
|
|
252
|
-
var _this = this;
|
|
253
|
-
_super.prototype._prepareChildren.call(this);
|
|
254
|
-
if (this.isDirty("xAxis")) {
|
|
255
|
-
this._tooltipX = false;
|
|
256
|
-
var xAxis = this.get("xAxis");
|
|
257
|
-
if (xAxis) {
|
|
258
|
-
var tooltip_1 = xAxis.get("tooltip");
|
|
259
|
-
if (tooltip_1) {
|
|
260
|
-
this._tooltipX = true;
|
|
261
|
-
tooltip_1.on("pointTo", function () {
|
|
262
|
-
_this._updateXLine(tooltip_1);
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
if (this.isDirty("yAxis")) {
|
|
268
|
-
this._tooltipY = false;
|
|
269
|
-
var yAxis = this.get("yAxis");
|
|
270
|
-
if (yAxis) {
|
|
271
|
-
var tooltip_2 = yAxis.get("tooltip");
|
|
272
|
-
if (tooltip_2) {
|
|
273
|
-
this._tooltipY = true;
|
|
274
|
-
tooltip_2.on("pointTo", function () {
|
|
275
|
-
_this._updateYLine(tooltip_2);
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
}
|
|
190
|
+
if (dir != "") {
|
|
191
|
+
this.set(dir, position);
|
|
280
192
|
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
193
|
+
}
|
|
194
|
+
_handleLineFocus(_line) {
|
|
195
|
+
this.setAll({
|
|
196
|
+
positionX: this.getPrivate("positionX"),
|
|
197
|
+
positionY: this.getPrivate("positionY"),
|
|
198
|
+
alwaysShow: true
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
_handleLineBlur(_line) {
|
|
202
|
+
this.setAll({
|
|
203
|
+
positionX: undefined,
|
|
204
|
+
positionY: undefined,
|
|
205
|
+
alwaysShow: false
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
_prepareChildren() {
|
|
209
|
+
super._prepareChildren();
|
|
210
|
+
if (this.isDirty("xAxis")) {
|
|
211
|
+
this._tooltipX = false;
|
|
212
|
+
const xAxis = this.get("xAxis");
|
|
213
|
+
if (xAxis) {
|
|
214
|
+
const tooltip = xAxis.get("tooltip");
|
|
215
|
+
if (tooltip) {
|
|
216
|
+
this._tooltipX = true;
|
|
217
|
+
this._disposers.push(tooltip.on("pointTo", () => {
|
|
218
|
+
this._updateXLine(tooltip);
|
|
219
|
+
}));
|
|
298
220
|
}
|
|
299
|
-
chart._otherCharts = otherCharts_1;
|
|
300
221
|
}
|
|
301
222
|
}
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
var positionY = this.get("positionY");
|
|
313
|
-
if (positionX == null && positionY == null) {
|
|
314
|
-
this.hide(0);
|
|
315
|
-
}
|
|
316
|
-
else {
|
|
317
|
-
this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0)));
|
|
318
|
-
this.handleMove();
|
|
223
|
+
if (this.isDirty("yAxis")) {
|
|
224
|
+
this._tooltipY = false;
|
|
225
|
+
const yAxis = this.get("yAxis");
|
|
226
|
+
if (yAxis) {
|
|
227
|
+
const tooltip = yAxis.get("tooltip");
|
|
228
|
+
if (tooltip) {
|
|
229
|
+
this._tooltipY = true;
|
|
230
|
+
this._disposers.push(tooltip.on("pointTo", () => {
|
|
231
|
+
this._updateYLine(tooltip);
|
|
232
|
+
}));
|
|
319
233
|
}
|
|
320
234
|
}
|
|
321
235
|
}
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
236
|
+
}
|
|
237
|
+
_handleSyncWith() {
|
|
238
|
+
const chart = this.chart;
|
|
239
|
+
if (chart) {
|
|
240
|
+
const syncWith = this.get("syncWith");
|
|
241
|
+
const otherCharts = [];
|
|
242
|
+
if (syncWith) {
|
|
243
|
+
$array.each(syncWith, (cursor) => {
|
|
244
|
+
const chart = cursor.chart;
|
|
245
|
+
if (chart) {
|
|
246
|
+
otherCharts.push(chart);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
332
249
|
}
|
|
250
|
+
chart._otherCharts = otherCharts;
|
|
333
251
|
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
if (
|
|
342
|
-
this.
|
|
343
|
-
|
|
252
|
+
}
|
|
253
|
+
_updateChildren() {
|
|
254
|
+
super._updateChildren();
|
|
255
|
+
this._handleSyncWith();
|
|
256
|
+
if (this.isDirty("positionX") || this.isDirty("positionY")) {
|
|
257
|
+
const positionX = this.get("positionX");
|
|
258
|
+
const positionY = this.get("positionY");
|
|
259
|
+
if (positionX == null && positionY == null) {
|
|
260
|
+
this.hide(0);
|
|
261
|
+
}
|
|
262
|
+
else {
|
|
263
|
+
this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0)));
|
|
264
|
+
this.handleMove();
|
|
344
265
|
}
|
|
345
266
|
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
var _this = this;
|
|
353
|
-
this.lineX.set("draw", function (display) {
|
|
354
|
-
display.moveTo(0, 0);
|
|
355
|
-
display.lineTo(0, _this.height());
|
|
356
|
-
});
|
|
357
|
-
this.lineY.set("draw", function (display) {
|
|
358
|
-
display.moveTo(0, 0);
|
|
359
|
-
display.lineTo(_this.width(), 0);
|
|
360
|
-
});
|
|
267
|
+
}
|
|
268
|
+
_updateXLine(tooltip) {
|
|
269
|
+
let x = $math.round(this._display.toLocal(tooltip.get("pointTo", { x: 0, y: 0 })).x, 2);
|
|
270
|
+
if (this._toX != x) {
|
|
271
|
+
this.lineX.animate({ key: "x", to: x, duration: tooltip.get("animationDuration", 0), easing: tooltip.get("animationEasing") });
|
|
272
|
+
this._toX = x;
|
|
361
273
|
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
this._disposers.push(plotContainer.events.on("pointerdown", function (event) {
|
|
390
|
-
_this._handleCursorDown(event.originalEvent);
|
|
391
|
-
}));
|
|
392
|
-
this._disposers.push(plotContainer.events.on("globalpointerup", function (event) {
|
|
393
|
-
_this._handleCursorUp(event.originalEvent);
|
|
394
|
-
if (!event.native && !_this.isHidden()) {
|
|
395
|
-
_this._handleMove(event.originalEvent);
|
|
274
|
+
}
|
|
275
|
+
_updateYLine(tooltip) {
|
|
276
|
+
let y = $math.round(this._display.toLocal(tooltip.get("pointTo", { x: 0, y: 0 })).y, 2);
|
|
277
|
+
if (this._toY != y) {
|
|
278
|
+
this.lineY.animate({ key: "y", to: y, duration: tooltip.get("animationDuration", 0), easing: tooltip.get("animationEasing") });
|
|
279
|
+
this._toY = y;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
_drawLines() {
|
|
283
|
+
this.lineX.set("draw", (display) => {
|
|
284
|
+
display.moveTo(0, 0);
|
|
285
|
+
display.lineTo(0, this.height());
|
|
286
|
+
});
|
|
287
|
+
this.lineY.set("draw", (display) => {
|
|
288
|
+
display.moveTo(0, 0);
|
|
289
|
+
display.lineTo(this.width(), 0);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
_setChart(chart) {
|
|
293
|
+
this.chart = chart;
|
|
294
|
+
this._handleSyncWith();
|
|
295
|
+
const plotContainer = chart.plotContainer;
|
|
296
|
+
this.events.on("boundschanged", () => {
|
|
297
|
+
this._disposers.push(this.setTimeout(() => {
|
|
298
|
+
if (this.get("alwaysShow")) {
|
|
299
|
+
this._movePoint = this.toGlobal(this._getPoint(this.get("positionX", 0), this.get("positionY", 0)));
|
|
300
|
+
this.handleMove();
|
|
396
301
|
}
|
|
397
|
-
}));
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
302
|
+
}, 50));
|
|
303
|
+
});
|
|
304
|
+
//this._display.interactive = true;
|
|
305
|
+
if ($utils.supports("touchevents")) {
|
|
306
|
+
this._disposers.push(plotContainer.events.on("click", (event) => {
|
|
307
|
+
if ($utils.isTouchEvent(event.originalEvent)) {
|
|
308
|
+
this._handleMove(event.originalEvent);
|
|
405
309
|
}
|
|
406
|
-
_this._handleMove(event.originalEvent);
|
|
407
310
|
}));
|
|
408
|
-
|
|
409
|
-
if (parent) {
|
|
410
|
-
parent.children.moveValue(this.selection);
|
|
411
|
-
}
|
|
311
|
+
this._setUpTouch();
|
|
412
312
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
313
|
+
this._disposers.push(plotContainer.events.on("pointerdown", (event) => {
|
|
314
|
+
this._handleCursorDown(event.originalEvent);
|
|
315
|
+
}));
|
|
316
|
+
this._disposers.push(plotContainer.events.on("globalpointerup", (event) => {
|
|
317
|
+
this._handleCursorUp(event.originalEvent);
|
|
318
|
+
if (!event.native && !this.isHidden()) {
|
|
319
|
+
this._handleMove(event.originalEvent);
|
|
320
|
+
}
|
|
321
|
+
}));
|
|
322
|
+
this._disposers.push(plotContainer.events.on("globalpointermove", (event) => {
|
|
323
|
+
if (!this.get("syncWith")) {
|
|
324
|
+
if ($object.keys(plotContainer._downPoints).length == 0 && !event.native && this.isHidden()) {
|
|
325
|
+
// Ignore mouse movement if it originates on outside element and
|
|
326
|
+
// we're not dragging.
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
422
329
|
}
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
330
|
+
this._handleMove(event.originalEvent);
|
|
331
|
+
}));
|
|
332
|
+
const parent = this.parent;
|
|
333
|
+
if (parent) {
|
|
334
|
+
parent.children.moveValue(this.selection);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
_inPlot(point) {
|
|
338
|
+
const chart = this.chart;
|
|
339
|
+
if (chart) {
|
|
340
|
+
return chart.inPlot(point);
|
|
341
|
+
}
|
|
342
|
+
return false;
|
|
343
|
+
}
|
|
344
|
+
_handleCursorDown(event) {
|
|
345
|
+
const rootPoint = this._root.documentPointToRoot({ x: event.clientX, y: event.clientY });
|
|
346
|
+
let local = this._display.toLocal(rootPoint);
|
|
347
|
+
const chart = this.chart;
|
|
348
|
+
this.selection.set("draw", () => { });
|
|
349
|
+
if (chart && this._inPlot(local)) {
|
|
350
|
+
this._downPoint = local;
|
|
351
|
+
if (this.get("behavior") != "none") {
|
|
352
|
+
this.selection.show();
|
|
353
|
+
const type = "selectstarted";
|
|
354
|
+
if (this.events.isEnabled(type)) {
|
|
355
|
+
this.events.dispatch(type, { type: type, target: this });
|
|
443
356
|
}
|
|
444
|
-
var positionX = this._getPosition(local).x;
|
|
445
|
-
var positionY = this._getPosition(local).y;
|
|
446
|
-
this.setPrivate("downPositionX", positionX);
|
|
447
|
-
this.setPrivate("downPositionY", positionY);
|
|
448
357
|
}
|
|
358
|
+
let positionX = this._getPosition(local).x;
|
|
359
|
+
let positionY = this._getPosition(local).y;
|
|
360
|
+
this.setPrivate("downPositionX", positionX);
|
|
361
|
+
this.setPrivate("downPositionY", positionY);
|
|
449
362
|
}
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
var dispatch = false;
|
|
469
|
-
if (behavior === "zoomX" || behavior === "zoomXY" || behavior === "selectX" || behavior === "selectXY") {
|
|
470
|
-
if (Math.abs(local.x - downPoint.x) > moveThreshold) {
|
|
471
|
-
dispatch = true;
|
|
472
|
-
}
|
|
363
|
+
}
|
|
364
|
+
_handleCursorUp(event) {
|
|
365
|
+
// TODO: handle multitouch
|
|
366
|
+
if (this._downPoint) {
|
|
367
|
+
const behavior = this.get("behavior", "none");
|
|
368
|
+
if (behavior != "none") {
|
|
369
|
+
if (behavior.charAt(0) === "z") {
|
|
370
|
+
this.selection.hide();
|
|
371
|
+
}
|
|
372
|
+
const rootPoint = this._root.documentPointToRoot({ x: event.clientX, y: event.clientY });
|
|
373
|
+
let local = this._display.toLocal(rootPoint);
|
|
374
|
+
const downPoint = this._downPoint;
|
|
375
|
+
const moveThreshold = this.get("moveThreshold", 1);
|
|
376
|
+
if (local && downPoint) {
|
|
377
|
+
let dispatch = false;
|
|
378
|
+
if (behavior === "zoomX" || behavior === "zoomXY" || behavior === "selectX" || behavior === "selectXY") {
|
|
379
|
+
if (Math.abs(local.x - downPoint.x) > moveThreshold) {
|
|
380
|
+
dispatch = true;
|
|
473
381
|
}
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
382
|
+
}
|
|
383
|
+
if (behavior === "zoomY" || behavior === "zoomXY" || behavior === "selectY" || behavior === "selectXY") {
|
|
384
|
+
if (Math.abs(local.y - downPoint.y) > moveThreshold) {
|
|
385
|
+
dispatch = true;
|
|
478
386
|
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
387
|
+
}
|
|
388
|
+
if (dispatch) {
|
|
389
|
+
const type = "selectended";
|
|
390
|
+
if (this.events.isEnabled(type)) {
|
|
391
|
+
this.events.dispatch(type, { type: type, target: this });
|
|
484
392
|
}
|
|
485
393
|
}
|
|
486
394
|
}
|
|
487
395
|
}
|
|
488
|
-
this._downPoint = undefined;
|
|
489
|
-
}
|
|
490
|
-
});
|
|
491
|
-
Object.defineProperty(XYCursor.prototype, "_handleMove", {
|
|
492
|
-
enumerable: false,
|
|
493
|
-
configurable: true,
|
|
494
|
-
writable: true,
|
|
495
|
-
value: function (event) {
|
|
496
|
-
if (this.getPrivate("visible")) {
|
|
497
|
-
var chart = this.chart;
|
|
498
|
-
if (chart && $object.keys(chart.plotContainer._downPoints).length > 1) {
|
|
499
|
-
this.set("forceHidden", true);
|
|
500
|
-
return;
|
|
501
|
-
}
|
|
502
|
-
else {
|
|
503
|
-
this.set("forceHidden", false);
|
|
504
|
-
}
|
|
505
|
-
// TODO: handle multitouch
|
|
506
|
-
var rootPoint = this._root.documentPointToRoot({ x: event.clientX, y: event.clientY });
|
|
507
|
-
var lastPoint = this._lastPoint;
|
|
508
|
-
if (Math.round(lastPoint.x) === Math.round(rootPoint.x) && Math.round(lastPoint.y) === Math.round(rootPoint.y)) {
|
|
509
|
-
return;
|
|
510
|
-
}
|
|
511
|
-
this._lastPoint = rootPoint;
|
|
512
|
-
this.setPrivate("lastPoint", rootPoint);
|
|
513
|
-
this.handleMove({ x: rootPoint.x, y: rootPoint.y });
|
|
514
|
-
}
|
|
515
396
|
}
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
397
|
+
this._downPoint = undefined;
|
|
398
|
+
}
|
|
399
|
+
_handleMove(event) {
|
|
400
|
+
if (this.getPrivate("visible")) {
|
|
401
|
+
const chart = this.chart;
|
|
402
|
+
if (chart && $object.keys(chart.plotContainer._downPoints).length > 1) {
|
|
403
|
+
this.set("forceHidden", true);
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
this.set("forceHidden", false);
|
|
408
|
+
}
|
|
409
|
+
// TODO: handle multitouch
|
|
410
|
+
const rootPoint = this._root.documentPointToRoot({ x: event.clientX, y: event.clientY });
|
|
411
|
+
const lastPoint = this._lastPoint;
|
|
412
|
+
if (Math.round(lastPoint.x) === Math.round(rootPoint.x) && Math.round(lastPoint.y) === Math.round(rootPoint.y)) {
|
|
413
|
+
return;
|
|
414
|
+
}
|
|
415
|
+
this._lastPoint = rootPoint;
|
|
416
|
+
this.setPrivate("lastPoint", rootPoint);
|
|
417
|
+
this.handleMove({ x: rootPoint.x, y: rootPoint.y });
|
|
523
418
|
}
|
|
524
|
-
}
|
|
419
|
+
}
|
|
420
|
+
_getPosition(point) {
|
|
421
|
+
return { x: point.x / this.width(), y: point.y / this.height() };
|
|
422
|
+
}
|
|
525
423
|
/**
|
|
526
424
|
* Moves the cursor to X/Y coordinates within chart container (`point`).
|
|
527
425
|
*
|
|
@@ -531,225 +429,187 @@ var XYCursor = /** @class */ (function (_super) {
|
|
|
531
429
|
* @param point X/Y to move cursor to
|
|
532
430
|
* @param skipEvent Do not fire "cursormoved" event
|
|
533
431
|
*/
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
this.show();
|
|
554
|
-
var behavior = this.get("behavior", "");
|
|
555
|
-
if (behavior.charAt(0) == "z") {
|
|
556
|
-
this.selection.set("draw", function () { });
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
var x = local.x;
|
|
560
|
-
var y = local.y;
|
|
561
|
-
var xyPos = this._getPosition(local);
|
|
562
|
-
this.setPrivate("point", local);
|
|
563
|
-
var snapToSeries_1 = this.get("snapToSeries");
|
|
564
|
-
if (this._downPoint) {
|
|
565
|
-
snapToSeries_1 = undefined;
|
|
432
|
+
handleMove(point, skipEvent) {
|
|
433
|
+
if (!point) {
|
|
434
|
+
point = this._movePoint;
|
|
435
|
+
}
|
|
436
|
+
const alwaysShow = this.get("alwaysShow");
|
|
437
|
+
if (!point) {
|
|
438
|
+
this.hide(0);
|
|
439
|
+
return;
|
|
440
|
+
}
|
|
441
|
+
this._movePoint = point;
|
|
442
|
+
let local = this._display.toLocal(point);
|
|
443
|
+
let chart = this.chart;
|
|
444
|
+
if (chart && this._inPlot(local)) {
|
|
445
|
+
chart._movePoint = point;
|
|
446
|
+
if (this.isHidden()) {
|
|
447
|
+
this.show();
|
|
448
|
+
const behavior = this.get("behavior", "");
|
|
449
|
+
if (behavior.charAt(0) == "z") {
|
|
450
|
+
this.selection.set("draw", () => { });
|
|
566
451
|
}
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
452
|
+
}
|
|
453
|
+
let x = local.x;
|
|
454
|
+
let y = local.y;
|
|
455
|
+
let xyPos = this._getPosition(local);
|
|
456
|
+
this.setPrivate("point", local);
|
|
457
|
+
let snapToSeries = this.get("snapToSeries");
|
|
458
|
+
if (this._downPoint) {
|
|
459
|
+
snapToSeries = undefined;
|
|
460
|
+
}
|
|
461
|
+
let userPositionX = this.get("positionX");
|
|
462
|
+
let positionX = xyPos.x;
|
|
463
|
+
if ($type.isNumber(userPositionX)) {
|
|
464
|
+
positionX = userPositionX;
|
|
465
|
+
}
|
|
466
|
+
let userPositionY = this.get("positionY");
|
|
467
|
+
let positionY = xyPos.y;
|
|
468
|
+
if ($type.isNumber(userPositionY)) {
|
|
469
|
+
positionY = userPositionY;
|
|
470
|
+
}
|
|
471
|
+
this.setPrivate("positionX", positionX);
|
|
472
|
+
this.setPrivate("positionY", positionY);
|
|
473
|
+
const xy = this._getPoint(positionX, positionY);
|
|
474
|
+
x = xy.x;
|
|
475
|
+
y = xy.y;
|
|
476
|
+
chart.xAxes.each((axis) => {
|
|
477
|
+
axis._handleCursorPosition(positionX, snapToSeries);
|
|
478
|
+
if (alwaysShow) {
|
|
479
|
+
axis.handleCursorShow();
|
|
571
480
|
}
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
481
|
+
});
|
|
482
|
+
chart.yAxes.each((axis) => {
|
|
483
|
+
axis._handleCursorPosition(positionY, snapToSeries);
|
|
484
|
+
if (alwaysShow) {
|
|
485
|
+
axis.handleCursorShow();
|
|
576
486
|
}
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
axis._handleCursorPosition(positionX_1, snapToSeries_1);
|
|
584
|
-
if (alwaysShow) {
|
|
585
|
-
axis.handleCursorShow();
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
chart.yAxes.each(function (axis) {
|
|
589
|
-
axis._handleCursorPosition(positionY_1, snapToSeries_1);
|
|
590
|
-
if (alwaysShow) {
|
|
591
|
-
axis.handleCursorShow();
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
if (!skipEvent) {
|
|
595
|
-
chart._handleCursorPosition();
|
|
596
|
-
var type = "cursormoved";
|
|
597
|
-
if (this.events.isEnabled(type)) {
|
|
598
|
-
this.events.dispatch(type, { type: type, target: this });
|
|
599
|
-
}
|
|
487
|
+
});
|
|
488
|
+
if (!skipEvent) {
|
|
489
|
+
chart._handleCursorPosition();
|
|
490
|
+
const type = "cursormoved";
|
|
491
|
+
if (this.events.isEnabled(type)) {
|
|
492
|
+
this.events.dispatch(type, { type: type, target: this });
|
|
600
493
|
}
|
|
601
|
-
this._updateLines(x, y);
|
|
602
|
-
chart.arrangeTooltips();
|
|
603
494
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
495
|
+
this._updateLines(x, y);
|
|
496
|
+
chart.arrangeTooltips();
|
|
497
|
+
}
|
|
498
|
+
else if (!this._downPoint) {
|
|
499
|
+
if (!alwaysShow) {
|
|
500
|
+
this.hide(0);
|
|
501
|
+
const type = "cursorhidden";
|
|
502
|
+
if (this.events.isEnabled(type)) {
|
|
503
|
+
this.events.dispatch(type, { type: type, target: this });
|
|
611
504
|
}
|
|
612
505
|
}
|
|
613
|
-
if (this._downPoint && this.get("behavior") != "none") {
|
|
614
|
-
this._updateSelection(local);
|
|
615
|
-
}
|
|
616
506
|
}
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
enumerable: false,
|
|
620
|
-
configurable: true,
|
|
621
|
-
writable: true,
|
|
622
|
-
value: function (positionX, positionY) {
|
|
623
|
-
return { x: this.width() * positionX, y: this.height() * positionY };
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
Object.defineProperty(XYCursor.prototype, "_updateLines", {
|
|
627
|
-
enumerable: false,
|
|
628
|
-
configurable: true,
|
|
629
|
-
writable: true,
|
|
630
|
-
value: function (x, y) {
|
|
631
|
-
if (!this._tooltipX) {
|
|
632
|
-
this.lineX.set("x", x);
|
|
633
|
-
}
|
|
634
|
-
if (!this._tooltipY) {
|
|
635
|
-
this.lineY.set("y", y);
|
|
636
|
-
}
|
|
637
|
-
this._drawLines();
|
|
638
|
-
}
|
|
639
|
-
});
|
|
640
|
-
Object.defineProperty(XYCursor.prototype, "_updateSelection", {
|
|
641
|
-
enumerable: false,
|
|
642
|
-
configurable: true,
|
|
643
|
-
writable: true,
|
|
644
|
-
value: function (point) {
|
|
645
|
-
var _this = this;
|
|
646
|
-
var selection = this.selection;
|
|
647
|
-
var behavior = this.get("behavior");
|
|
648
|
-
var w = this.width();
|
|
649
|
-
var h = this.height();
|
|
650
|
-
if (point.x < 0) {
|
|
651
|
-
point.x = 0;
|
|
652
|
-
}
|
|
653
|
-
if (point.x > w) {
|
|
654
|
-
point.x = w;
|
|
655
|
-
}
|
|
656
|
-
if (point.y < 0) {
|
|
657
|
-
point.y = 0;
|
|
658
|
-
}
|
|
659
|
-
if (point.y > h) {
|
|
660
|
-
point.y = h;
|
|
661
|
-
}
|
|
662
|
-
selection.set("draw", function (display) {
|
|
663
|
-
var downPoint = _this._downPoint;
|
|
664
|
-
if (downPoint) {
|
|
665
|
-
if (behavior === "zoomXY" || behavior === "selectXY") {
|
|
666
|
-
display.moveTo(downPoint.x, downPoint.y);
|
|
667
|
-
display.lineTo(downPoint.x, point.y);
|
|
668
|
-
display.lineTo(point.x, point.y);
|
|
669
|
-
display.lineTo(point.x, downPoint.y);
|
|
670
|
-
display.lineTo(downPoint.x, downPoint.y);
|
|
671
|
-
}
|
|
672
|
-
else if (behavior === "zoomX" || behavior === "selectX") {
|
|
673
|
-
display.moveTo(downPoint.x, 0);
|
|
674
|
-
display.lineTo(downPoint.x, h);
|
|
675
|
-
display.lineTo(point.x, h);
|
|
676
|
-
display.lineTo(point.x, 0);
|
|
677
|
-
display.lineTo(downPoint.x, 0);
|
|
678
|
-
}
|
|
679
|
-
else if (behavior === "zoomY" || behavior === "selectY") {
|
|
680
|
-
display.moveTo(0, downPoint.y);
|
|
681
|
-
display.lineTo(w, downPoint.y);
|
|
682
|
-
display.lineTo(w, point.y);
|
|
683
|
-
display.lineTo(0, point.y);
|
|
684
|
-
display.lineTo(0, downPoint.y);
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
});
|
|
507
|
+
if (this._downPoint && this.get("behavior") != "none") {
|
|
508
|
+
this._updateSelection(local);
|
|
688
509
|
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
510
|
+
}
|
|
511
|
+
_getPoint(positionX, positionY) {
|
|
512
|
+
return { x: this.width() * positionX, y: this.height() * positionY };
|
|
513
|
+
}
|
|
514
|
+
_updateLines(x, y) {
|
|
515
|
+
if (!this._tooltipX) {
|
|
516
|
+
this.lineX.set("x", x);
|
|
517
|
+
}
|
|
518
|
+
if (!this._tooltipY) {
|
|
519
|
+
this.lineY.set("y", y);
|
|
520
|
+
}
|
|
521
|
+
this._drawLines();
|
|
522
|
+
}
|
|
523
|
+
_updateSelection(point) {
|
|
524
|
+
const selection = this.selection;
|
|
525
|
+
const behavior = this.get("behavior");
|
|
526
|
+
const w = this.width();
|
|
527
|
+
const h = this.height();
|
|
528
|
+
if (point.x < 0) {
|
|
529
|
+
point.x = 0;
|
|
530
|
+
}
|
|
531
|
+
if (point.x > w) {
|
|
532
|
+
point.x = w;
|
|
533
|
+
}
|
|
534
|
+
if (point.y < 0) {
|
|
535
|
+
point.y = 0;
|
|
536
|
+
}
|
|
537
|
+
if (point.y > h) {
|
|
538
|
+
point.y = h;
|
|
539
|
+
}
|
|
540
|
+
selection.set("draw", (display) => {
|
|
541
|
+
const downPoint = this._downPoint;
|
|
542
|
+
if (downPoint) {
|
|
543
|
+
if (behavior === "zoomXY" || behavior === "selectXY") {
|
|
544
|
+
display.moveTo(downPoint.x, downPoint.y);
|
|
545
|
+
display.lineTo(downPoint.x, point.y);
|
|
546
|
+
display.lineTo(point.x, point.y);
|
|
547
|
+
display.lineTo(point.x, downPoint.y);
|
|
548
|
+
display.lineTo(downPoint.x, downPoint.y);
|
|
707
549
|
}
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
axis.handleCursorShow();
|
|
722
|
-
});
|
|
723
|
-
chart.yAxes.each(function (axis) {
|
|
724
|
-
axis.handleCursorShow();
|
|
725
|
-
});
|
|
550
|
+
else if (behavior === "zoomX" || behavior === "selectX") {
|
|
551
|
+
display.moveTo(downPoint.x, 0);
|
|
552
|
+
display.lineTo(downPoint.x, h);
|
|
553
|
+
display.lineTo(point.x, h);
|
|
554
|
+
display.lineTo(point.x, 0);
|
|
555
|
+
display.lineTo(downPoint.x, 0);
|
|
556
|
+
}
|
|
557
|
+
else if (behavior === "zoomY" || behavior === "selectY") {
|
|
558
|
+
display.moveTo(0, downPoint.y);
|
|
559
|
+
display.lineTo(w, downPoint.y);
|
|
560
|
+
display.lineTo(w, point.y);
|
|
561
|
+
display.lineTo(0, point.y);
|
|
562
|
+
display.lineTo(0, downPoint.y);
|
|
726
563
|
}
|
|
727
564
|
}
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
_onHide() {
|
|
568
|
+
if (this.isHidden()) {
|
|
569
|
+
let chart = this.chart;
|
|
570
|
+
if (chart) {
|
|
571
|
+
chart.xAxes.each((axis) => {
|
|
572
|
+
axis.handleCursorHide();
|
|
573
|
+
});
|
|
574
|
+
chart.yAxes.each((axis) => {
|
|
575
|
+
axis.handleCursorHide();
|
|
576
|
+
});
|
|
577
|
+
chart.series.each((series) => {
|
|
578
|
+
series.handleCursorHide();
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
super._onHide();
|
|
583
|
+
}
|
|
584
|
+
_onShow() {
|
|
585
|
+
if (!this.isHidden()) {
|
|
586
|
+
let chart = this.chart;
|
|
587
|
+
if (chart) {
|
|
588
|
+
chart.xAxes.each((axis) => {
|
|
589
|
+
axis.handleCursorShow();
|
|
590
|
+
});
|
|
591
|
+
chart.yAxes.each((axis) => {
|
|
592
|
+
axis.handleCursorShow();
|
|
593
|
+
});
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
super._onShow();
|
|
597
|
+
}
|
|
598
|
+
_dispose() {
|
|
599
|
+
super._dispose();
|
|
600
|
+
this.selection.dispose();
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
Object.defineProperty(XYCursor, "className", {
|
|
604
|
+
enumerable: true,
|
|
605
|
+
configurable: true,
|
|
606
|
+
writable: true,
|
|
607
|
+
value: "XYCursor"
|
|
608
|
+
});
|
|
609
|
+
Object.defineProperty(XYCursor, "classNames", {
|
|
610
|
+
enumerable: true,
|
|
611
|
+
configurable: true,
|
|
612
|
+
writable: true,
|
|
613
|
+
value: Container.classNames.concat([XYCursor.className])
|
|
614
|
+
});
|
|
755
615
|
//# sourceMappingURL=XYCursor.js.map
|