@nativescript-community/ui-chart 2.0.5 → 2.0.7
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/package.json +3 -3
- package/animation/ChartAnimator.d.ts +0 -61
- package/animation/ChartAnimator.js +0 -95
- package/animation/ChartAnimator.js.map +0 -1
- package/animation/Tween.d.ts +0 -4
- package/animation/Tween.js +0 -25
- package/animation/Tween.js.map +0 -1
- package/buffer/AbstractBuffer.d.ts +0 -40
- package/buffer/AbstractBuffer.js +0 -49
- package/buffer/AbstractBuffer.js.map +0 -1
- package/buffer/BarBuffer.d.ts +0 -15
- package/buffer/BarBuffer.js +0 -109
- package/buffer/BarBuffer.js.map +0 -1
- package/buffer/HorizontalBarBuffer.d.ts +0 -6
- package/buffer/HorizontalBarBuffer.js +0 -81
- package/buffer/HorizontalBarBuffer.js.map +0 -1
- package/charts/BarChart.d.ts +0 -94
- package/charts/BarChart.js +0 -141
- package/charts/BarChart.js.map +0 -1
- package/charts/BarLineChartBase.d.ts +0 -592
- package/charts/BarLineChartBase.js +0 -1253
- package/charts/BarLineChartBase.js.map +0 -1
- package/charts/BubbleChart.d.ts +0 -27
- package/charts/BubbleChart.js +0 -20
- package/charts/BubbleChart.js.map +0 -1
- package/charts/CandleStickChart.d.ts +0 -29
- package/charts/CandleStickChart.js +0 -19
- package/charts/CandleStickChart.js.map +0 -1
- package/charts/Chart.d.ts +0 -491
- package/charts/Chart.js +0 -778
- package/charts/Chart.js.map +0 -1
- package/charts/CombinedChart.d.ts +0 -78
- package/charts/CombinedChart.js +0 -119
- package/charts/CombinedChart.js.map +0 -1
- package/charts/HorizontalBarChart.d.ts +0 -54
- package/charts/HorizontalBarChart.js +0 -180
- package/charts/HorizontalBarChart.js.map +0 -1
- package/charts/LineChart.d.ts +0 -20
- package/charts/LineChart.js +0 -19
- package/charts/LineChart.js.map +0 -1
- package/charts/PieChart.d.ts +0 -249
- package/charts/PieChart.js +0 -468
- package/charts/PieChart.js.map +0 -1
- package/charts/PieRadarChartBase.d.ts +0 -130
- package/charts/PieRadarChartBase.js +0 -360
- package/charts/PieRadarChartBase.js.map +0 -1
- package/charts/RadarChart.d.ts +0 -101
- package/charts/RadarChart.js +0 -181
- package/charts/RadarChart.js.map +0 -1
- package/charts/ScatterChart.d.ts +0 -36
- package/charts/ScatterChart.js +0 -31
- package/charts/ScatterChart.js.map +0 -1
- package/charts/index.d.ts +0 -9
- package/charts/index.js +0 -10
- package/charts/index.js.map +0 -1
- package/components/AxisBase.d.ts +0 -299
- package/components/AxisBase.js +0 -351
- package/components/AxisBase.js.map +0 -1
- package/components/ComponentBase.d.ts +0 -60
- package/components/ComponentBase.js +0 -77
- package/components/ComponentBase.js.map +0 -1
- package/components/Description.d.ts +0 -22
- package/components/Description.js +0 -21
- package/components/Description.js.map +0 -1
- package/components/IMarker.d.ts +0 -39
- package/components/IMarker.js +0 -2
- package/components/IMarker.js.map +0 -1
- package/components/Legend.d.ts +0 -198
- package/components/Legend.js +0 -386
- package/components/Legend.js.map +0 -1
- package/components/LegendEntry.d.ts +0 -50
- package/components/LegendEntry.js +0 -51
- package/components/LegendEntry.js.map +0 -1
- package/components/LimitLine.d.ts +0 -55
- package/components/LimitLine.js +0 -62
- package/components/LimitLine.js.map +0 -1
- package/components/MarkerImage.d.ts +0 -1
- package/components/MarkerImage.js +0 -97
- package/components/MarkerImage.js.map +0 -1
- package/components/XAxis.d.ts +0 -55
- package/components/XAxis.js +0 -59
- package/components/XAxis.js.map +0 -1
- package/components/YAxis.d.ts +0 -135
- package/components/YAxis.js +0 -205
- package/components/YAxis.js.map +0 -1
- package/data/BarData.d.ts +0 -38
- package/data/BarData.js +0 -122
- package/data/BarData.js.map +0 -1
- package/data/BarDataSet.d.ts +0 -47
- package/data/BarDataSet.js +0 -109
- package/data/BarDataSet.js.map +0 -1
- package/data/BarEntry.d.ts +0 -11
- package/data/BarEntry.js +0 -2
- package/data/BarEntry.js.map +0 -1
- package/data/BarLineScatterCandleBubbleData.d.ts +0 -10
- package/data/BarLineScatterCandleBubbleData.js +0 -9
- package/data/BarLineScatterCandleBubbleData.js.map +0 -1
- package/data/BarLineScatterCandleBubbleDataSet.d.ts +0 -17
- package/data/BarLineScatterCandleBubbleDataSet.js +0 -18
- package/data/BarLineScatterCandleBubbleDataSet.js.map +0 -1
- package/data/BaseDataSet.d.ts +0 -180
- package/data/BaseDataSet.js +0 -220
- package/data/BaseDataSet.js.map +0 -1
- package/data/BaseEntry.d.ts +0 -10
- package/data/BaseEntry.js +0 -2
- package/data/BaseEntry.js.map +0 -1
- package/data/BubbleData.d.ts +0 -12
- package/data/BubbleData.js +0 -15
- package/data/BubbleData.js.map +0 -1
- package/data/BubbleDataSet.d.ts +0 -18
- package/data/BubbleDataSet.js +0 -36
- package/data/BubbleDataSet.js.map +0 -1
- package/data/BubbleEntry.d.ts +0 -5
- package/data/BubbleEntry.js +0 -2
- package/data/BubbleEntry.js.map +0 -1
- package/data/CandleData.d.ts +0 -5
- package/data/CandleData.js +0 -4
- package/data/CandleData.js.map +0 -1
- package/data/CandleDataSet.d.ts +0 -76
- package/data/CandleDataSet.js +0 -116
- package/data/CandleDataSet.js.map +0 -1
- package/data/CandleEntry.d.ts +0 -11
- package/data/CandleEntry.js +0 -2
- package/data/CandleEntry.js.map +0 -1
- package/data/ChartData.d.ts +0 -320
- package/data/ChartData.js +0 -702
- package/data/ChartData.js.map +0 -1
- package/data/CombinedData.d.ts +0 -61
- package/data/CombinedData.js +0 -153
- package/data/CombinedData.js.map +0 -1
- package/data/DataSet.d.ts +0 -98
- package/data/DataSet.js +0 -424
- package/data/DataSet.js.map +0 -1
- package/data/Entry.d.ts +0 -3
- package/data/Entry.js +0 -2
- package/data/Entry.js.map +0 -1
- package/data/LineData.d.ts +0 -10
- package/data/LineData.js +0 -9
- package/data/LineData.js.map +0 -1
- package/data/LineDataSet.d.ts +0 -106
- package/data/LineDataSet.js +0 -153
- package/data/LineDataSet.js.map +0 -1
- package/data/LineRadarDataSet.d.ts +0 -32
- package/data/LineRadarDataSet.js +0 -29
- package/data/LineRadarDataSet.js.map +0 -1
- package/data/LineScatterCandleRadarDataSet.d.ts +0 -36
- package/data/LineScatterCandleRadarDataSet.js +0 -44
- package/data/LineScatterCandleRadarDataSet.js.map +0 -1
- package/data/PieData.d.ts +0 -39
- package/data/PieData.js +0 -55
- package/data/PieData.js.map +0 -1
- package/data/PieDataSet.d.ts +0 -52
- package/data/PieDataSet.js +0 -54
- package/data/PieDataSet.js.map +0 -1
- package/data/PieEntry.d.ts +0 -7
- package/data/PieEntry.js +0 -2
- package/data/PieEntry.js.map +0 -1
- package/data/RadarData.d.ts +0 -17
- package/data/RadarData.js +0 -15
- package/data/RadarData.js.map +0 -1
- package/data/RadarDataSet.d.ts +0 -14
- package/data/RadarDataSet.js +0 -20
- package/data/RadarDataSet.js.map +0 -1
- package/data/RadarEntry.d.ts +0 -3
- package/data/RadarEntry.js +0 -2
- package/data/RadarEntry.js.map +0 -1
- package/data/ScatterData.d.ts +0 -9
- package/data/ScatterData.js +0 -17
- package/data/ScatterData.js.map +0 -1
- package/data/ScatterDataSet.d.ts +0 -40
- package/data/ScatterDataSet.js +0 -61
- package/data/ScatterDataSet.js.map +0 -1
- package/formatter/DefaultAxisValueFormatter.d.ts +0 -23
- package/formatter/DefaultAxisValueFormatter.js +0 -30
- package/formatter/DefaultAxisValueFormatter.js.map +0 -1
- package/formatter/DefaultFillFormatter.d.ts +0 -6
- package/formatter/DefaultFillFormatter.js +0 -29
- package/formatter/DefaultFillFormatter.js.map +0 -1
- package/formatter/DefaultValueFormatter.d.ts +0 -3
- package/formatter/DefaultValueFormatter.js +0 -4
- package/formatter/DefaultValueFormatter.js.map +0 -1
- package/formatter/IAxisValueFormatter.d.ts +0 -23
- package/formatter/IAxisValueFormatter.js +0 -2
- package/formatter/IAxisValueFormatter.js.map +0 -1
- package/formatter/IFillFormatter.d.ts +0 -30
- package/formatter/IFillFormatter.js +0 -2
- package/formatter/IFillFormatter.js.map +0 -1
- package/formatter/IValueFormatter.d.ts +0 -25
- package/formatter/IValueFormatter.js +0 -2
- package/formatter/IValueFormatter.js.map +0 -1
- package/formatter/ValueFormatter.d.ts +0 -81
- package/formatter/ValueFormatter.js +0 -90
- package/formatter/ValueFormatter.js.map +0 -1
- package/highlight/BarHighlighter.d.ts +0 -33
- package/highlight/BarHighlighter.js +0 -89
- package/highlight/BarHighlighter.js.map +0 -1
- package/highlight/ChartHighlighter.d.ts +0 -102
- package/highlight/ChartHighlighter.js +0 -220
- package/highlight/ChartHighlighter.js.map +0 -1
- package/highlight/CombinedHighlighter.d.ts +0 -17
- package/highlight/CombinedHighlighter.js +0 -59
- package/highlight/CombinedHighlighter.js.map +0 -1
- package/highlight/Highlight.d.ts +0 -69
- package/highlight/Highlight.js +0 -8
- package/highlight/Highlight.js.map +0 -1
- package/highlight/HorizontalBarHighlighter.d.ts +0 -10
- package/highlight/HorizontalBarHighlighter.js +0 -54
- package/highlight/HorizontalBarHighlighter.js.map +0 -1
- package/highlight/IHighlighter.d.ts +0 -15
- package/highlight/IHighlighter.js +0 -2
- package/highlight/IHighlighter.js.map +0 -1
- package/highlight/PieHighlighter.d.ts +0 -9
- package/highlight/PieHighlighter.js +0 -21
- package/highlight/PieHighlighter.js.map +0 -1
- package/highlight/PieRadarHighlighter.d.ts +0 -25
- package/highlight/PieRadarHighlighter.js +0 -33
- package/highlight/PieRadarHighlighter.js.map +0 -1
- package/highlight/RadarHighlighter.d.ts +0 -20
- package/highlight/RadarHighlighter.js +0 -59
- package/highlight/RadarHighlighter.js.map +0 -1
- package/index.d.ts +0 -11
- package/index.js +0 -15
- package/index.js.map +0 -1
- package/interfaces/dataprovider/BarDataProvider.d.ts +0 -9
- package/interfaces/dataprovider/BarLineScatterCandleBubbleDataProvider.d.ts +0 -19
- package/interfaces/dataprovider/BubbleDataProvider.d.ts +0 -6
- package/interfaces/dataprovider/CandleDataProvider.d.ts +0 -6
- package/interfaces/dataprovider/ChartInterface.d.ts +0 -60
- package/interfaces/dataprovider/CombinedDataProvider.d.ts +0 -13
- package/interfaces/dataprovider/LineDataProvider.d.ts +0 -9
- package/interfaces/dataprovider/ScatterDataProvider.d.ts +0 -6
- package/interfaces/datasets/IBarDataSet.d.ts +0 -47
- package/interfaces/datasets/IBarLineScatterCandleBubbleDataSet.d.ts +0 -12
- package/interfaces/datasets/IBubbleDataSet.d.ts +0 -19
- package/interfaces/datasets/ICandleDataSet.d.ts +0 -81
- package/interfaces/datasets/IDataSet.d.ts +0 -385
- package/interfaces/datasets/ILineDataSet.d.ts +0 -67
- package/interfaces/datasets/ILineRadarDataSet.d.ts +0 -35
- package/interfaces/datasets/ILineScatterCandleRadarDataSet.d.ts +0 -32
- package/interfaces/datasets/IPieDataSet.d.ts +0 -49
- package/interfaces/datasets/IRadarDataSet.d.ts +0 -21
- package/interfaces/datasets/IScatterDataSet.d.ts +0 -37
- package/jobs/AnimatedMoveViewJob.d.ts +0 -15
- package/jobs/AnimatedMoveViewJob.js +0 -42
- package/jobs/AnimatedMoveViewJob.js.map +0 -1
- package/jobs/AnimatedViewPortJob.d.ts +0 -31
- package/jobs/AnimatedViewPortJob.js +0 -52
- package/jobs/AnimatedViewPortJob.js.map +0 -1
- package/jobs/AnimatedZoomJob.d.ts +0 -23
- package/jobs/AnimatedZoomJob.js +0 -63
- package/jobs/AnimatedZoomJob.js.map +0 -1
- package/jobs/MoveViewJob.d.ts +0 -14
- package/jobs/MoveViewJob.js +0 -36
- package/jobs/MoveViewJob.js.map +0 -1
- package/jobs/ViewPortJob.d.ts +0 -13
- package/jobs/ViewPortJob.js +0 -14
- package/jobs/ViewPortJob.js.map +0 -1
- package/jobs/ZoomJob.d.ts +0 -15
- package/jobs/ZoomJob.js +0 -48
- package/jobs/ZoomJob.js.map +0 -1
- package/listener/BarLineChartTouchListener.d.ts +0 -187
- package/listener/BarLineChartTouchListener.js +0 -544
- package/listener/BarLineChartTouchListener.js.map +0 -1
- package/listener/ChartTouchListener.d.ts +0 -69
- package/listener/ChartTouchListener.js +0 -81
- package/listener/ChartTouchListener.js.map +0 -1
- package/listener/PieRadarChartTouchListener.d.ts +0 -100
- package/listener/PieRadarChartTouchListener.js +0 -282
- package/listener/PieRadarChartTouchListener.js.map +0 -1
- package/model/GradientColor.d.ts +0 -9
- package/model/GradientColor.js +0 -19
- package/model/GradientColor.js.map +0 -1
- package/renderer/AxisRenderer.d.ts +0 -101
- package/renderer/AxisRenderer.js +0 -219
- package/renderer/AxisRenderer.js.map +0 -1
- package/renderer/BarChartRenderer.d.ts +0 -40
- package/renderer/BarChartRenderer.js +0 -366
- package/renderer/BarChartRenderer.js.map +0 -1
- package/renderer/BarLineScatterCandleBubbleRenderer.d.ts +0 -57
- package/renderer/BarLineScatterCandleBubbleRenderer.js +0 -63
- package/renderer/BarLineScatterCandleBubbleRenderer.js.map +0 -1
- package/renderer/BubbleChartRenderer.d.ts +0 -22
- package/renderer/BubbleChartRenderer.js +0 -204
- package/renderer/BubbleChartRenderer.js.map +0 -1
- package/renderer/CandleStickChartRenderer.d.ts +0 -18
- package/renderer/CandleStickChartRenderer.js +0 -268
- package/renderer/CandleStickChartRenderer.js.map +0 -1
- package/renderer/CombinedChartRenderer.d.ts +0 -40
- package/renderer/CombinedChartRenderer.js +0 -133
- package/renderer/CombinedChartRenderer.js.map +0 -1
- package/renderer/DataRenderer.d.ts +0 -103
- package/renderer/DataRenderer.js +0 -110
- package/renderer/DataRenderer.js.map +0 -1
- package/renderer/HorizontalBarChartRenderer.d.ts +0 -20
- package/renderer/HorizontalBarChartRenderer.js +0 -303
- package/renderer/HorizontalBarChartRenderer.js.map +0 -1
- package/renderer/LegendRenderer.d.ts +0 -54
- package/renderer/LegendRenderer.js +0 -340
- package/renderer/LegendRenderer.js.map +0 -1
- package/renderer/LineChartRenderer.d.ts +0 -100
- package/renderer/LineChartRenderer.js +0 -766
- package/renderer/LineChartRenderer.js.map +0 -1
- package/renderer/LineRadarRenderer.d.ts +0 -30
- package/renderer/LineRadarRenderer.js +0 -85
- package/renderer/LineRadarRenderer.js.map +0 -1
- package/renderer/LineScatterCandleRadarRenderer.d.ts +0 -20
- package/renderer/LineScatterCandleRadarRenderer.js +0 -45
- package/renderer/LineScatterCandleRadarRenderer.js.map +0 -1
- package/renderer/PieChartRenderer.d.ts +0 -86
- package/renderer/PieChartRenderer.js +0 -718
- package/renderer/PieChartRenderer.js.map +0 -1
- package/renderer/RadarChartRenderer.d.ts +0 -33
- package/renderer/RadarChartRenderer.js +0 -290
- package/renderer/RadarChartRenderer.js.map +0 -1
- package/renderer/Renderer.d.ts +0 -13
- package/renderer/Renderer.js +0 -11
- package/renderer/Renderer.js.map +0 -1
- package/renderer/ScatterChartRenderer.d.ts +0 -16
- package/renderer/ScatterChartRenderer.js +0 -147
- package/renderer/ScatterChartRenderer.js.map +0 -1
- package/renderer/XAxisRenderer.d.ts +0 -58
- package/renderer/XAxisRenderer.js +0 -458
- package/renderer/XAxisRenderer.js.map +0 -1
- package/renderer/XAxisRendererHorizontalBarChart.d.ts +0 -31
- package/renderer/XAxisRendererHorizontalBarChart.js +0 -271
- package/renderer/XAxisRendererHorizontalBarChart.js.map +0 -1
- package/renderer/XAxisRendererRadarChart.d.ts +0 -17
- package/renderer/XAxisRendererRadarChart.js +0 -51
- package/renderer/XAxisRendererRadarChart.js.map +0 -1
- package/renderer/YAxisRenderer.d.ts +0 -60
- package/renderer/YAxisRenderer.js +0 -379
- package/renderer/YAxisRenderer.js.map +0 -1
- package/renderer/YAxisRendererHorizontalBarChart.d.ts +0 -33
- package/renderer/YAxisRendererHorizontalBarChart.js +0 -250
- package/renderer/YAxisRendererHorizontalBarChart.js.map +0 -1
- package/renderer/YAxisRendererRadarChart.d.ts +0 -14
- package/renderer/YAxisRendererRadarChart.js +0 -180
- package/renderer/YAxisRendererRadarChart.js.map +0 -1
- package/renderer/scatter/ChevronDownShapeRenderer.d.ts +0 -11
- package/renderer/scatter/ChevronDownShapeRenderer.js +0 -15
- package/renderer/scatter/ChevronDownShapeRenderer.js.map +0 -1
- package/renderer/scatter/ChevronUpShapeRenderer.d.ts +0 -11
- package/renderer/scatter/ChevronUpShapeRenderer.js +0 -15
- package/renderer/scatter/ChevronUpShapeRenderer.js.map +0 -1
- package/renderer/scatter/CircleShapeRenderer.d.ts +0 -11
- package/renderer/scatter/CircleShapeRenderer.js +0 -31
- package/renderer/scatter/CircleShapeRenderer.js.map +0 -1
- package/renderer/scatter/CrossShapeRenderer.d.ts +0 -11
- package/renderer/scatter/CrossShapeRenderer.js +0 -15
- package/renderer/scatter/CrossShapeRenderer.js.map +0 -1
- package/renderer/scatter/IShapeRenderer.d.ts +0 -20
- package/renderer/scatter/IShapeRenderer.js +0 -2
- package/renderer/scatter/IShapeRenderer.js.map +0 -1
- package/renderer/scatter/SquareShapeRenderer.d.ts +0 -11
- package/renderer/scatter/SquareShapeRenderer.js +0 -31
- package/renderer/scatter/SquareShapeRenderer.js.map +0 -1
- package/renderer/scatter/TriangleShapeRenderer.d.ts +0 -12
- package/renderer/scatter/TriangleShapeRenderer.js +0 -43
- package/renderer/scatter/TriangleShapeRenderer.js.map +0 -1
- package/renderer/scatter/XShapeRenderer.d.ts +0 -11
- package/renderer/scatter/XShapeRenderer.js +0 -15
- package/renderer/scatter/XShapeRenderer.js.map +0 -1
- package/utils/ColorTemplate.d.ts +0 -34
- package/utils/ColorTemplate.js +0 -51
- package/utils/ColorTemplate.js.map +0 -1
- package/utils/HorizontalViewPortHandler.d.ts +0 -6
- package/utils/HorizontalViewPortHandler.js +0 -7
- package/utils/HorizontalViewPortHandler.js.map +0 -1
- package/utils/MPPointD.d.ts +0 -5
- package/utils/MPPointF.d.ts +0 -7
- package/utils/MPSize.d.ts +0 -7
- package/utils/ObjectPool.d.ts +0 -81
- package/utils/ObjectPool.js +0 -183
- package/utils/ObjectPool.js.map +0 -1
- package/utils/Transformer.d.ts +0 -175
- package/utils/Transformer.js +0 -356
- package/utils/Transformer.js.map +0 -1
- package/utils/TransformerHorizontalBarChart.d.ts +0 -14
- package/utils/TransformerHorizontalBarChart.js +0 -30
- package/utils/TransformerHorizontalBarChart.js.map +0 -1
- package/utils/Utils.d.ts +0 -203
- package/utils/Utils.js +0 -653
- package/utils/Utils.js.map +0 -1
- package/utils/ViewPortHandler.d.ts +0 -299
- package/utils/ViewPortHandler.js +0 -580
- package/utils/ViewPortHandler.js.map +0 -1
- package/utils/colors/colorful.d.ts +0 -1
- package/utils/colors/colorful.js +0 -2
- package/utils/colors/colorful.js.map +0 -1
- package/utils/colors/joyful.d.ts +0 -1
- package/utils/colors/joyful.js +0 -2
- package/utils/colors/joyful.js.map +0 -1
- package/utils/colors/liberty.d.ts +0 -1
- package/utils/colors/liberty.js +0 -2
- package/utils/colors/liberty.js.map +0 -1
- package/utils/colors/material.d.ts +0 -1
- package/utils/colors/material.js +0 -2
- package/utils/colors/material.js.map +0 -1
- package/utils/colors/pastel.d.ts +0 -1
- package/utils/colors/pastel.js +0 -2
- package/utils/colors/pastel.js.map +0 -1
- package/utils/colors/vordiplom.d.ts +0 -1
- package/utils/colors/vordiplom.js +0 -2
- package/utils/colors/vordiplom.js.map +0 -1
package/utils/ViewPortHandler.js
DELETED
|
@@ -1,580 +0,0 @@
|
|
|
1
|
-
import { Matrix, RectF } from '@nativescript-community/ui-canvas';
|
|
2
|
-
import { Utils } from './Utils';
|
|
3
|
-
const EPSILON = 0.0001;
|
|
4
|
-
/**
|
|
5
|
-
* Class that contains information about the charts current viewport settings, including offsets, scale & translation
|
|
6
|
-
* levels, ...
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
*/
|
|
10
|
-
export class ViewPortHandler {
|
|
11
|
-
constructor() {
|
|
12
|
-
/**
|
|
13
|
-
* matrix used for touch events
|
|
14
|
-
*/
|
|
15
|
-
this.mMatrixTouch = new Matrix();
|
|
16
|
-
/**
|
|
17
|
-
* this rectangle defines the area in which graph values can be drawn
|
|
18
|
-
*/
|
|
19
|
-
this.contentRect = new RectF(0, 0, 0, 0);
|
|
20
|
-
this.chartRect = new RectF(0, 0, 0, 0);
|
|
21
|
-
this.chartWidth = 0;
|
|
22
|
-
this.chartHeight = 0;
|
|
23
|
-
/**
|
|
24
|
-
* minimum scale value on the y-axis
|
|
25
|
-
*/
|
|
26
|
-
this.mMinScaleY = 1;
|
|
27
|
-
/**
|
|
28
|
-
* maximum scale value on the y-axis
|
|
29
|
-
*/
|
|
30
|
-
this.mMaxScaleY = Infinity;
|
|
31
|
-
/**
|
|
32
|
-
* minimum scale value on the x-axis
|
|
33
|
-
*/
|
|
34
|
-
this.mMinScaleX = 1;
|
|
35
|
-
/**
|
|
36
|
-
* maximum scale value on the x-axis
|
|
37
|
-
*/
|
|
38
|
-
this.mMaxScaleX = Infinity;
|
|
39
|
-
/**
|
|
40
|
-
* contains the current scale factor of the x-axis
|
|
41
|
-
*/
|
|
42
|
-
this.mScaleX = 1;
|
|
43
|
-
/**
|
|
44
|
-
* contains the current scale factor of the y-axis
|
|
45
|
-
*/
|
|
46
|
-
this.mScaleY = 1;
|
|
47
|
-
/**
|
|
48
|
-
* current translation (drag distance) on the x-axis
|
|
49
|
-
*/
|
|
50
|
-
this.mTransX = 0;
|
|
51
|
-
/**
|
|
52
|
-
* current translation (drag distance) on the y-axis
|
|
53
|
-
*/
|
|
54
|
-
this.mTransY = 0;
|
|
55
|
-
/**
|
|
56
|
-
* offset that allows the chart to be dragged over its bounds on the x-axis
|
|
57
|
-
*/
|
|
58
|
-
this.mTransOffsetX = 0;
|
|
59
|
-
/**
|
|
60
|
-
* offset that allows the chart to be dragged over its bounds on the x-axis
|
|
61
|
-
*/
|
|
62
|
-
this.mTransOffsetY = 0;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Sets the width and height of the chart.
|
|
66
|
-
*
|
|
67
|
-
* @param width
|
|
68
|
-
* @param height
|
|
69
|
-
*/
|
|
70
|
-
setChartDimens(width, height) {
|
|
71
|
-
const offsetLeft = this.offsetLeft;
|
|
72
|
-
const offsetTop = this.offsetTop;
|
|
73
|
-
const offsetRight = this.offsetRight;
|
|
74
|
-
const offsetBottom = this.offsetBottom;
|
|
75
|
-
this.chartHeight = Math.round(height);
|
|
76
|
-
this.chartWidth = Math.round(width);
|
|
77
|
-
this.chartRect.set(0, 0, this.chartWidth, this.chartHeight);
|
|
78
|
-
this.restrainViewPort(offsetLeft, offsetTop, offsetRight, offsetBottom);
|
|
79
|
-
}
|
|
80
|
-
get hasChartDimens() {
|
|
81
|
-
if (this.chartHeight > 0 && this.chartWidth > 0)
|
|
82
|
-
return true;
|
|
83
|
-
else
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
restrainViewPort(offsetLeft, offsetTop, offsetRight, offsetBottom) {
|
|
87
|
-
this.contentRect.set(offsetLeft, offsetTop, this.chartWidth - offsetRight, this.chartHeight - offsetBottom);
|
|
88
|
-
}
|
|
89
|
-
get offsetLeft() {
|
|
90
|
-
return this.contentRect.left;
|
|
91
|
-
}
|
|
92
|
-
get offsetRight() {
|
|
93
|
-
return this.chartWidth - this.contentRect.right;
|
|
94
|
-
}
|
|
95
|
-
get offsetTop() {
|
|
96
|
-
return this.contentRect.top;
|
|
97
|
-
}
|
|
98
|
-
get offsetBottom() {
|
|
99
|
-
return this.chartHeight - this.contentRect.bottom;
|
|
100
|
-
}
|
|
101
|
-
get contentTop() {
|
|
102
|
-
return this.contentRect.top;
|
|
103
|
-
}
|
|
104
|
-
get contentLeft() {
|
|
105
|
-
return this.contentRect.left;
|
|
106
|
-
}
|
|
107
|
-
get contentRight() {
|
|
108
|
-
return this.contentRect.right;
|
|
109
|
-
}
|
|
110
|
-
get contentBottom() {
|
|
111
|
-
return this.contentRect.bottom;
|
|
112
|
-
}
|
|
113
|
-
get contentCenter() {
|
|
114
|
-
return { x: this.contentRect.centerX(), y: this.contentRect.centerY() };
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Returns the smallest extension of the content rect (width or height).
|
|
118
|
-
*/
|
|
119
|
-
get smallestContentExtension() {
|
|
120
|
-
return Math.min(this.contentRect.width(), this.contentRect.height());
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* ################ ################ ################ ################
|
|
124
|
-
*/
|
|
125
|
-
/** CODE BELOW THIS RELATED TO SCALING AND GESTURES */
|
|
126
|
-
/**
|
|
127
|
-
* Zooms in by 1.4f, x and y are the coordinates (in pixels) of the zoom
|
|
128
|
-
* center.
|
|
129
|
-
*
|
|
130
|
-
* @param x
|
|
131
|
-
* @param y
|
|
132
|
-
*/
|
|
133
|
-
zoomIn(x, y, outputMatrix) {
|
|
134
|
-
if (!outputMatrix) {
|
|
135
|
-
outputMatrix = new Matrix();
|
|
136
|
-
}
|
|
137
|
-
outputMatrix.reset();
|
|
138
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
139
|
-
outputMatrix.postScale(1.4, 1.4, x, y);
|
|
140
|
-
return outputMatrix;
|
|
141
|
-
}
|
|
142
|
-
zoomOut(x, y, outputMatrix) {
|
|
143
|
-
if (!outputMatrix) {
|
|
144
|
-
outputMatrix = new Matrix();
|
|
145
|
-
}
|
|
146
|
-
outputMatrix.reset();
|
|
147
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
148
|
-
outputMatrix.postScale(0.7, 0.7, x, y);
|
|
149
|
-
return outputMatrix;
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Zooms out to original size.
|
|
153
|
-
* @param outputMatrix
|
|
154
|
-
*/
|
|
155
|
-
resetZoom(outputMatrix) {
|
|
156
|
-
outputMatrix.reset();
|
|
157
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
158
|
-
outputMatrix.postScale(1, 1, 0, 0);
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Post-scales by the specified scale factors.
|
|
162
|
-
*
|
|
163
|
-
* @param scaleX
|
|
164
|
-
* @param scaleY
|
|
165
|
-
* @return
|
|
166
|
-
*/
|
|
167
|
-
zoom(scaleX, scaleY, outputMatrix) {
|
|
168
|
-
if (!outputMatrix) {
|
|
169
|
-
outputMatrix = new Matrix();
|
|
170
|
-
}
|
|
171
|
-
outputMatrix.reset();
|
|
172
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
173
|
-
outputMatrix.postScale(scaleX, scaleY);
|
|
174
|
-
return outputMatrix;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Post-scales by the specified scale factors. x and y is pivot.
|
|
178
|
-
*
|
|
179
|
-
* @param scaleX
|
|
180
|
-
* @param scaleY
|
|
181
|
-
* @param x
|
|
182
|
-
* @param y
|
|
183
|
-
* @return
|
|
184
|
-
*/
|
|
185
|
-
zoomAtPosition(scaleX, scaleY, x, y, outputMatrix) {
|
|
186
|
-
if (!outputMatrix) {
|
|
187
|
-
outputMatrix = new Matrix();
|
|
188
|
-
}
|
|
189
|
-
outputMatrix.reset();
|
|
190
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
191
|
-
outputMatrix.postScale(scaleX, scaleY, x, y);
|
|
192
|
-
return outputMatrix;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Sets the scale factor to the specified values.
|
|
196
|
-
*
|
|
197
|
-
* @param scaleX
|
|
198
|
-
* @param scaleY
|
|
199
|
-
* @return
|
|
200
|
-
*/
|
|
201
|
-
setZoom(scaleX, scaleY, outputMatrix) {
|
|
202
|
-
if (!outputMatrix) {
|
|
203
|
-
outputMatrix = new Matrix();
|
|
204
|
-
}
|
|
205
|
-
outputMatrix.reset();
|
|
206
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
207
|
-
outputMatrix.setScale(scaleX, scaleY);
|
|
208
|
-
return outputMatrix;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Sets the scale factor to the specified values. x and y is pivot.
|
|
212
|
-
*
|
|
213
|
-
* @param scaleX
|
|
214
|
-
* @param scaleY
|
|
215
|
-
* @param x
|
|
216
|
-
* @param y
|
|
217
|
-
* @return
|
|
218
|
-
*/
|
|
219
|
-
setZoomAtPosition(scaleX, scaleY, x, y) {
|
|
220
|
-
const save = new Matrix();
|
|
221
|
-
save.set(this.mMatrixTouch);
|
|
222
|
-
save.setScale(scaleX, scaleY, x, y);
|
|
223
|
-
return save;
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Resets all zooming and dragging and makes the chart fit exactly it's
|
|
227
|
-
* bounds. Output Matrix is available for those who wish to cache the object.
|
|
228
|
-
*/
|
|
229
|
-
fitScreen(outputMatrix) {
|
|
230
|
-
if (!outputMatrix) {
|
|
231
|
-
outputMatrix = new Matrix();
|
|
232
|
-
}
|
|
233
|
-
this.mMinScaleX = 1;
|
|
234
|
-
this.mMinScaleY = 1;
|
|
235
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
236
|
-
const vals = Utils.getTempArray(9);
|
|
237
|
-
for (let i = 0; i < 9; i++) {
|
|
238
|
-
vals[i] = 0;
|
|
239
|
-
}
|
|
240
|
-
outputMatrix.getValues(vals);
|
|
241
|
-
// reset all translations and scaling
|
|
242
|
-
vals[Matrix.MTRANS_X] = 0;
|
|
243
|
-
vals[Matrix.MTRANS_Y] = 0;
|
|
244
|
-
vals[Matrix.MSCALE_X] = 1;
|
|
245
|
-
vals[Matrix.MSCALE_Y] = 1;
|
|
246
|
-
outputMatrix.setValues(vals);
|
|
247
|
-
return outputMatrix;
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Post-translates to the specified points. Output matrix allows for caching objects.
|
|
251
|
-
*
|
|
252
|
-
* @param transformedPts
|
|
253
|
-
* @return
|
|
254
|
-
*/
|
|
255
|
-
translate(transformedPts, outputMatrix) {
|
|
256
|
-
if (!outputMatrix) {
|
|
257
|
-
outputMatrix = Utils.getTempMatrix();
|
|
258
|
-
}
|
|
259
|
-
outputMatrix.reset();
|
|
260
|
-
outputMatrix.set(this.mMatrixTouch);
|
|
261
|
-
const x = transformedPts[0] - this.offsetLeft;
|
|
262
|
-
const y = transformedPts[1] - this.offsetTop;
|
|
263
|
-
outputMatrix.postTranslate(-x, -y);
|
|
264
|
-
return outputMatrix;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Centers the viewport around the specified position (x-index and y-value)
|
|
268
|
-
* in the chart. Centering the viewport outside the bounds of the chart is
|
|
269
|
-
* not possible. Makes most sense in combination with the
|
|
270
|
-
* setScaleMinima(...) method.
|
|
271
|
-
*
|
|
272
|
-
* @param transformedPts the position to center view viewport to
|
|
273
|
-
* @param view
|
|
274
|
-
* @return save
|
|
275
|
-
*/
|
|
276
|
-
centerViewPort(transformedPts, view) {
|
|
277
|
-
const save = Utils.getTempMatrix();
|
|
278
|
-
save.reset();
|
|
279
|
-
save.set(this.mMatrixTouch);
|
|
280
|
-
const x = transformedPts[0] - this.offsetLeft;
|
|
281
|
-
const y = transformedPts[1] - this.offsetTop;
|
|
282
|
-
save.postTranslate(-x, -y);
|
|
283
|
-
this.refresh(save, view, true);
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* call this method to refresh the graph with a given matrix
|
|
287
|
-
*
|
|
288
|
-
* @param newMatrix
|
|
289
|
-
* @return
|
|
290
|
-
*/
|
|
291
|
-
refresh(newMatrix, chart, invalidate) {
|
|
292
|
-
this.mMatrixTouch.set(newMatrix);
|
|
293
|
-
// make sure scale and translation are within their bounds
|
|
294
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
295
|
-
if (invalidate)
|
|
296
|
-
chart.invalidate();
|
|
297
|
-
newMatrix.set(this.mMatrixTouch);
|
|
298
|
-
return newMatrix;
|
|
299
|
-
}
|
|
300
|
-
setScale(scaleX, scaleY) {
|
|
301
|
-
if (!this.mMatrixBuffer) {
|
|
302
|
-
this.mMatrixBuffer = Utils.createArrayBuffer(9);
|
|
303
|
-
}
|
|
304
|
-
const matrixBuffer = this.mMatrixBuffer;
|
|
305
|
-
this.mMatrixTouch.getValues(matrixBuffer);
|
|
306
|
-
const curTransX = matrixBuffer[Matrix.MTRANS_X];
|
|
307
|
-
const curTransY = matrixBuffer[Matrix.MTRANS_Y];
|
|
308
|
-
// min scale-x is 1
|
|
309
|
-
this.mScaleX = Math.min(Math.max(this.mMinScaleX, scaleX), this.mMaxScaleX);
|
|
310
|
-
// min scale-y is 1
|
|
311
|
-
this.mScaleY = Math.min(Math.max(this.mMinScaleY, scaleY), this.mMaxScaleY);
|
|
312
|
-
let width = 0;
|
|
313
|
-
let height = 0;
|
|
314
|
-
if (this.contentRect) {
|
|
315
|
-
width = this.contentRect.width();
|
|
316
|
-
height = this.contentRect.height();
|
|
317
|
-
}
|
|
318
|
-
const maxTransX = -width * (this.mScaleX - 1);
|
|
319
|
-
this.mTransX = Math.min(Math.max(curTransX, maxTransX - this.mTransOffsetX), this.mTransOffsetX);
|
|
320
|
-
const maxTransY = height * (this.mScaleY - 1);
|
|
321
|
-
this.mTransY = Math.max(Math.min(curTransY, maxTransY + this.mTransOffsetY), -this.mTransOffsetY);
|
|
322
|
-
matrixBuffer[Matrix.MTRANS_X] = this.mTransX;
|
|
323
|
-
matrixBuffer[Matrix.MSCALE_X] = this.mScaleX;
|
|
324
|
-
matrixBuffer[Matrix.MTRANS_Y] = this.mTransY;
|
|
325
|
-
matrixBuffer[Matrix.MSCALE_Y] = this.mScaleY;
|
|
326
|
-
this.mMatrixTouch.setValues(matrixBuffer);
|
|
327
|
-
}
|
|
328
|
-
get scaleX() {
|
|
329
|
-
const matrixBuffer = this.mMatrixBuffer;
|
|
330
|
-
this.mMatrixTouch.getValues(matrixBuffer);
|
|
331
|
-
return matrixBuffer[Matrix.MSCALE_X];
|
|
332
|
-
}
|
|
333
|
-
get scaleY() {
|
|
334
|
-
const matrixBuffer = this.mMatrixBuffer;
|
|
335
|
-
this.mMatrixTouch.getValues(matrixBuffer);
|
|
336
|
-
return matrixBuffer[Matrix.MSCALE_Y];
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* limits the maximum scale and X translation of the given matrix
|
|
340
|
-
*
|
|
341
|
-
* @param matrix
|
|
342
|
-
*/
|
|
343
|
-
limitTransAndScale(matrix, content) {
|
|
344
|
-
if (!this.mMatrixBuffer) {
|
|
345
|
-
this.mMatrixBuffer = Utils.createArrayBuffer(9);
|
|
346
|
-
}
|
|
347
|
-
const matrixBuffer = this.mMatrixBuffer;
|
|
348
|
-
matrix.getValues(matrixBuffer);
|
|
349
|
-
const curTransX = matrixBuffer[Matrix.MTRANS_X];
|
|
350
|
-
const curScaleX = matrixBuffer[Matrix.MSCALE_X];
|
|
351
|
-
const curTransY = matrixBuffer[Matrix.MTRANS_Y];
|
|
352
|
-
const curScaleY = matrixBuffer[Matrix.MSCALE_Y];
|
|
353
|
-
// min scale-x is 1
|
|
354
|
-
this.mScaleX = Math.min(Math.max(this.mMinScaleX, curScaleX), this.mMaxScaleX);
|
|
355
|
-
// min scale-y is 1
|
|
356
|
-
this.mScaleY = Math.min(Math.max(this.mMinScaleY, curScaleY), this.mMaxScaleY);
|
|
357
|
-
let width = 0;
|
|
358
|
-
let height = 0;
|
|
359
|
-
if (content) {
|
|
360
|
-
width = content.width();
|
|
361
|
-
height = content.height();
|
|
362
|
-
}
|
|
363
|
-
const maxTransX = -width * (this.mScaleX - 1);
|
|
364
|
-
this.mTransX = Math.min(Math.max(curTransX, maxTransX - this.mTransOffsetX), this.mTransOffsetX);
|
|
365
|
-
const maxTransY = height * (this.mScaleY - 1);
|
|
366
|
-
this.mTransY = Math.max(Math.min(curTransY, maxTransY + this.mTransOffsetY), -this.mTransOffsetY);
|
|
367
|
-
matrixBuffer[Matrix.MTRANS_X] = this.mTransX;
|
|
368
|
-
matrixBuffer[Matrix.MSCALE_X] = this.mScaleX;
|
|
369
|
-
matrixBuffer[Matrix.MTRANS_Y] = this.mTransY;
|
|
370
|
-
matrixBuffer[Matrix.MSCALE_Y] = this.mScaleY;
|
|
371
|
-
matrix.setValues(matrixBuffer);
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* Sets the minimum scale factor for the x-axis
|
|
375
|
-
*
|
|
376
|
-
* @param xScale
|
|
377
|
-
*/
|
|
378
|
-
setMinimumScaleX(xScale) {
|
|
379
|
-
if (xScale < 1)
|
|
380
|
-
xScale = 1;
|
|
381
|
-
this.mMinScaleX = xScale;
|
|
382
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Sets the maximum scale factor for the x-axis
|
|
386
|
-
*
|
|
387
|
-
* @param xScale
|
|
388
|
-
*/
|
|
389
|
-
setMaximumScaleX(xScale) {
|
|
390
|
-
if (xScale === 0)
|
|
391
|
-
xScale = Infinity;
|
|
392
|
-
this.mMaxScaleX = xScale;
|
|
393
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Sets the minimum and maximum scale factors for the x-axis
|
|
397
|
-
*
|
|
398
|
-
* @param minScaleX
|
|
399
|
-
* @param maxScaleX
|
|
400
|
-
*/
|
|
401
|
-
setMinMaxScaleX(minScaleX, maxScaleX) {
|
|
402
|
-
if (minScaleX < 1)
|
|
403
|
-
minScaleX = 1;
|
|
404
|
-
if (maxScaleX === 0)
|
|
405
|
-
maxScaleX = Infinity;
|
|
406
|
-
this.mMinScaleX = minScaleX;
|
|
407
|
-
this.mMaxScaleX = maxScaleX;
|
|
408
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
409
|
-
}
|
|
410
|
-
/**
|
|
411
|
-
* Sets the minimum scale factor for the y-axis
|
|
412
|
-
*
|
|
413
|
-
* @param yScale
|
|
414
|
-
*/
|
|
415
|
-
setMinimumScaleY(yScale) {
|
|
416
|
-
if (yScale < 1)
|
|
417
|
-
yScale = 1;
|
|
418
|
-
this.mMinScaleY = yScale;
|
|
419
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* Sets the maximum scale factor for the y-axis
|
|
423
|
-
*
|
|
424
|
-
* @param yScale
|
|
425
|
-
*/
|
|
426
|
-
setMaximumScaleY(yScale) {
|
|
427
|
-
if (yScale === 0)
|
|
428
|
-
yScale = Infinity;
|
|
429
|
-
this.mMaxScaleY = yScale;
|
|
430
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
431
|
-
}
|
|
432
|
-
setMinMaxScaleY(minScaleY, maxScaleY) {
|
|
433
|
-
if (minScaleY < 1)
|
|
434
|
-
minScaleY = 1;
|
|
435
|
-
if (maxScaleY === 0)
|
|
436
|
-
maxScaleY = Infinity;
|
|
437
|
-
this.mMinScaleY = minScaleY;
|
|
438
|
-
this.mMaxScaleY = maxScaleY;
|
|
439
|
-
this.limitTransAndScale(this.mMatrixTouch, this.contentRect);
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Returns the charts-touch matrix used for translation and scale on touch.
|
|
443
|
-
*/
|
|
444
|
-
getMatrixTouch() {
|
|
445
|
-
return this.mMatrixTouch;
|
|
446
|
-
}
|
|
447
|
-
/**
|
|
448
|
-
* ################ ################ ################ ################
|
|
449
|
-
*/
|
|
450
|
-
/**
|
|
451
|
-
* BELOW METHODS FOR BOUNDS CHECK
|
|
452
|
-
*/
|
|
453
|
-
isInBoundsX(x) {
|
|
454
|
-
return this.isInBoundsLeft(x) && this.isInBoundsRight(x);
|
|
455
|
-
}
|
|
456
|
-
isInBoundsY(y) {
|
|
457
|
-
return this.isInBoundsTop(y) && this.isInBoundsBottom(y);
|
|
458
|
-
}
|
|
459
|
-
isInBounds(x, y) {
|
|
460
|
-
return this.isInBoundsX(x) && this.isInBoundsY(y);
|
|
461
|
-
}
|
|
462
|
-
isInBoundsLeft(x) {
|
|
463
|
-
return this.contentRect.left - (x + 1) <= EPSILON;
|
|
464
|
-
}
|
|
465
|
-
isInBoundsRight(x) {
|
|
466
|
-
x = (x * 100) / 100;
|
|
467
|
-
return this.contentRect.right - (x - 1) >= -EPSILON;
|
|
468
|
-
}
|
|
469
|
-
isInBoundsTop(y) {
|
|
470
|
-
return this.contentRect.top - y <= EPSILON;
|
|
471
|
-
}
|
|
472
|
-
isInBoundsBottom(y) {
|
|
473
|
-
y = (y * 100) / 100;
|
|
474
|
-
return this.contentRect.bottom - y >= -EPSILON;
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* returns the current x-scale factor
|
|
478
|
-
*/
|
|
479
|
-
getScaleX() {
|
|
480
|
-
return this.mScaleX;
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* returns the current y-scale factor
|
|
484
|
-
*/
|
|
485
|
-
getScaleY() {
|
|
486
|
-
return this.mScaleY;
|
|
487
|
-
}
|
|
488
|
-
getMinScaleX() {
|
|
489
|
-
return this.mMinScaleX;
|
|
490
|
-
}
|
|
491
|
-
getMaxScaleX() {
|
|
492
|
-
return this.mMaxScaleX;
|
|
493
|
-
}
|
|
494
|
-
getMinScaleY() {
|
|
495
|
-
return this.mMinScaleY;
|
|
496
|
-
}
|
|
497
|
-
getMaxScaleY() {
|
|
498
|
-
return this.mMaxScaleY;
|
|
499
|
-
}
|
|
500
|
-
/**
|
|
501
|
-
* Returns the translation (drag / pan) distance on the x-axis
|
|
502
|
-
*/
|
|
503
|
-
getTransX() {
|
|
504
|
-
return this.mTransX;
|
|
505
|
-
}
|
|
506
|
-
/**
|
|
507
|
-
* Returns the translation (drag / pan) distance on the y-axis
|
|
508
|
-
*/
|
|
509
|
-
getTransY() {
|
|
510
|
-
return this.mTransY;
|
|
511
|
-
}
|
|
512
|
-
/**
|
|
513
|
-
* if the chart is fully zoomed out, return true
|
|
514
|
-
*/
|
|
515
|
-
isFullyZoomedOut() {
|
|
516
|
-
return this.isFullyZoomedOutX() && this.isFullyZoomedOutY();
|
|
517
|
-
}
|
|
518
|
-
/**
|
|
519
|
-
* Returns true if the chart is fully zoomed out on it's y-axis (vertical).
|
|
520
|
-
*/
|
|
521
|
-
isFullyZoomedOutY() {
|
|
522
|
-
return !(this.mScaleY > this.mMinScaleY || this.mMinScaleY > 1);
|
|
523
|
-
}
|
|
524
|
-
/**
|
|
525
|
-
* Returns true if the chart is fully zoomed out on it's x-axis
|
|
526
|
-
* (horizontal).
|
|
527
|
-
*/
|
|
528
|
-
isFullyZoomedOutX() {
|
|
529
|
-
return !(this.mScaleX > this.mMinScaleX || this.mMinScaleX > 1);
|
|
530
|
-
}
|
|
531
|
-
/**
|
|
532
|
-
* Set an offset in dp that allows the user to drag the chart over it's
|
|
533
|
-
* bounds on the x-axis.
|
|
534
|
-
*
|
|
535
|
-
* @param offset
|
|
536
|
-
*/
|
|
537
|
-
setDragOffsetX(offset) {
|
|
538
|
-
this.mTransOffsetX = offset;
|
|
539
|
-
}
|
|
540
|
-
/**
|
|
541
|
-
* Set an offset in dp that allows the user to drag the chart over it's
|
|
542
|
-
* bounds on the y-axis.
|
|
543
|
-
*
|
|
544
|
-
* @param offset
|
|
545
|
-
*/
|
|
546
|
-
setDragOffsetY(offset) {
|
|
547
|
-
this.mTransOffsetY = offset;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Returns true if both drag offsets (x and y) are zero or smaller.
|
|
551
|
-
*/
|
|
552
|
-
hasNoDragOffset() {
|
|
553
|
-
return this.mTransOffsetX === 0 && this.mTransOffsetY === 0;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* Returns true if the chart is not yet fully zoomed out on the x-axis
|
|
557
|
-
*/
|
|
558
|
-
canZoomOutMoreX() {
|
|
559
|
-
return this.mScaleX > this.mMinScaleX;
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* Returns true if the chart is not yet fully zoomed in on the x-axis
|
|
563
|
-
*/
|
|
564
|
-
canZoomInMoreX() {
|
|
565
|
-
return this.mScaleX < this.mMaxScaleX;
|
|
566
|
-
}
|
|
567
|
-
/**
|
|
568
|
-
* Returns true if the chart is not yet fully zoomed out on the y-axis
|
|
569
|
-
*/
|
|
570
|
-
canZoomOutMoreY() {
|
|
571
|
-
return this.mScaleY > this.mMinScaleY;
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* Returns true if the chart is not yet fully zoomed in on the y-axis
|
|
575
|
-
*/
|
|
576
|
-
canZoomInMoreY() {
|
|
577
|
-
return this.mScaleY < this.mMaxScaleY;
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
//# sourceMappingURL=ViewPortHandler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ViewPortHandler.js","sourceRoot":"","sources":["../../../src/ui-chart/utils/ViewPortHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAQ,KAAK,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,OAAO,GAAG,MAAM,CAAC;AAEvB;;;;;GAKG;AACH,MAAM,OAAO,eAAe;IAA5B;QACI;;WAEG;QACI,iBAAY,GAAG,IAAI,MAAM,EAAE,CAAC;QAEnC;;WAEG;QACM,gBAAW,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACpC,cAAS,GAAG,IAAI,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QAE3C,eAAU,GAAG,CAAC,CAAC;QACf,gBAAW,GAAG,CAAC,CAAC;QAOhB;;WAEG;QACK,eAAU,GAAG,CAAC,CAAC;QAEvB;;WAEG;QACK,eAAU,GAAG,QAAQ,CAAC;QAE9B;;WAEG;QACK,eAAU,GAAG,CAAC,CAAC;QAEvB;;WAEG;QACK,eAAU,GAAG,QAAQ,CAAC;QAE9B;;WAEG;QACK,YAAO,GAAG,CAAC,CAAC;QAEpB;;WAEG;QACK,YAAO,GAAG,CAAC,CAAC;QAEpB;;WAEG;QACK,YAAO,GAAG,CAAC,CAAC;QAEpB;;WAEG;QACK,YAAO,GAAG,CAAC,CAAC;QAEpB;;WAEG;QACK,kBAAa,GAA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,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACI,cAAc,CAAC,MAAM;QACxB,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC;IAChC,CAAC;IAED;;OAEG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,aAAa,KAAK,CAAC,IAAI,IAAI,CAAC,aAAa,KAAK,CAAC,CAAC;IAChE,CAAC;IAED;;OAEG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACI,cAAc;QACjB,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACI,eAAe;QAClB,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;IAC1C,CAAC;IAED;;OAEG;IACI,cAAc;QACjB,OAAO,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;IAC1C,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: string[];
|
package/utils/colors/colorful.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colorful.js","sourceRoot":"","sources":["../../../../src/ui-chart/utils/colors/colorful.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,CAAC"}
|
package/utils/colors/joyful.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: string[];
|
package/utils/colors/joyful.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"joyful.js","sourceRoot":"","sources":["../../../../src/ui-chart/utils/colors/joyful.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: string[];
|
package/utils/colors/liberty.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"liberty.js","sourceRoot":"","sources":["../../../../src/ui-chart/utils/colors/liberty.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,mBAAmB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: string[];
|
package/utils/colors/material.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"material.js","sourceRoot":"","sources":["../../../../src/ui-chart/utils/colors/material.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC"}
|
package/utils/colors/pastel.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: string[];
|
package/utils/colors/pastel.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pastel.js","sourceRoot":"","sources":["../../../../src/ui-chart/utils/colors/pastel.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,kBAAkB,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vordiplom.js","sourceRoot":"","sources":["../../../../src/ui-chart/utils/colors/vordiplom.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,CAAC,CAAC"}
|