@nativescript-community/ui-chart 1.2.36 → 2.0.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/README.md +6 -0
- package/animation/ChartAnimator.d.ts +47 -4
- package/animation/ChartAnimator.js +49 -11
- package/animation/ChartAnimator.js.map +1 -1
- package/animation/Tween.d.ts +1 -1
- package/animation/Tween.js +4 -2
- package/animation/Tween.js.map +1 -1
- package/buffer/AbstractBuffer.d.ts +28 -3
- package/buffer/AbstractBuffer.js +22 -3
- package/buffer/AbstractBuffer.js.map +1 -1
- package/buffer/BarBuffer.d.ts +8 -12
- package/buffer/BarBuffer.js +33 -36
- package/buffer/BarBuffer.js.map +1 -1
- package/buffer/HorizontalBarBuffer.js +13 -10
- package/buffer/HorizontalBarBuffer.js.map +1 -1
- package/charts/BarChart.d.ts +70 -15
- package/charts/BarChart.js +92 -63
- package/charts/BarChart.js.map +1 -1
- package/charts/BarLineChartBase.d.ts +494 -73
- package/charts/BarLineChartBase.js +788 -407
- package/charts/BarLineChartBase.js.map +1 -1
- package/charts/BubbleChart.d.ts +11 -5
- package/charts/BubbleChart.js +10 -8
- package/charts/BubbleChart.js.map +1 -1
- package/charts/CandleStickChart.d.ts +8 -5
- package/charts/CandleStickChart.js +9 -10
- package/charts/CandleStickChart.js.map +1 -1
- package/charts/Chart.d.ts +420 -91
- package/charts/Chart.js +590 -290
- package/charts/Chart.js.map +1 -1
- package/charts/CombinedChart.d.ts +59 -29
- package/charts/CombinedChart.js +74 -67
- package/charts/CombinedChart.js.map +1 -1
- package/charts/HorizontalBarChart.d.ts +37 -7
- package/charts/HorizontalBarChart.js +97 -59
- package/charts/HorizontalBarChart.js.map +1 -1
- package/charts/LineChart.d.ts +3 -5
- package/charts/LineChart.js +6 -10
- package/charts/LineChart.js.map +1 -1
- package/charts/PieChart.d.ts +218 -64
- package/charts/PieChart.js +278 -168
- package/charts/PieChart.js.map +1 -1
- package/charts/PieRadarChartBase.d.ts +107 -18
- package/charts/PieRadarChartBase.js +156 -73
- package/charts/PieRadarChartBase.js.map +1 -1
- package/charts/RadarChart.d.ts +75 -35
- package/charts/RadarChart.js +114 -103
- package/charts/RadarChart.js.map +1 -1
- package/charts/ScatterChart.d.ts +10 -5
- package/charts/ScatterChart.js +11 -10
- package/charts/ScatterChart.js.map +1 -1
- package/components/AxisBase.d.ts +271 -101
- package/components/AxisBase.js +264 -254
- package/components/AxisBase.js.map +1 -1
- package/components/ComponentBase.d.ts +54 -19
- package/components/ComponentBase.js +60 -48
- package/components/ComponentBase.js.map +1 -1
- package/components/Description.d.ts +18 -9
- package/components/Description.js +12 -26
- package/components/Description.js.map +1 -1
- package/components/IMarker.d.ts +30 -1
- package/components/IMarker.js.map +1 -1
- package/components/Legend.d.ts +155 -58
- package/components/Legend.js +208 -172
- package/components/Legend.js.map +1 -1
- package/components/LegendEntry.d.ts +38 -0
- package/components/LegendEntry.js +34 -0
- package/components/LegendEntry.js.map +1 -1
- package/components/LimitLine.d.ts +40 -22
- package/components/LimitLine.js +44 -56
- package/components/LimitLine.js.map +1 -1
- package/components/MarkerImage.d.ts +1 -0
- package/components/MarkerImage.js +97 -0
- package/components/MarkerImage.js.map +1 -0
- package/components/XAxis.d.ts +41 -10
- package/components/XAxis.js +42 -24
- package/components/XAxis.js.map +1 -1
- package/components/YAxis.d.ts +114 -37
- package/components/YAxis.js +138 -106
- package/components/YAxis.js.map +1 -1
- package/data/BarData.d.ts +32 -4
- package/data/BarData.js +92 -24
- package/data/BarData.js.map +1 -1
- package/data/BarDataSet.d.ts +35 -18
- package/data/BarDataSet.js +42 -47
- package/data/BarDataSet.js.map +1 -1
- package/data/BarEntry.d.ts +3 -0
- package/data/BarEntry.js.map +1 -1
- package/data/BarLineScatterCandleBubbleData.d.ts +5 -0
- package/data/BarLineScatterCandleBubbleData.js +5 -0
- package/data/BarLineScatterCandleBubbleData.js.map +1 -1
- package/data/BarLineScatterCandleBubbleDataSet.d.ts +11 -3
- package/data/BarLineScatterCandleBubbleDataSet.js +11 -7
- package/data/BarLineScatterCandleBubbleDataSet.js.map +1 -1
- package/data/BaseDataSet.d.ts +129 -71
- package/data/BaseDataSet.js +146 -169
- package/data/BaseDataSet.js.map +1 -1
- package/data/BaseEntry.d.ts +3 -0
- package/data/BaseEntry.js.map +1 -1
- package/data/BubbleData.d.ts +7 -1
- package/data/BubbleData.js +8 -2
- package/data/BubbleData.js.map +1 -1
- package/data/BubbleDataSet.d.ts +7 -7
- package/data/BubbleDataSet.js +8 -15
- package/data/BubbleDataSet.js.map +1 -1
- package/data/BubbleEntry.d.ts +1 -0
- package/data/BubbleEntry.js.map +1 -1
- package/data/CandleData.js.map +1 -1
- package/data/CandleDataSet.d.ts +64 -30
- package/data/CandleDataSet.js +67 -74
- package/data/CandleDataSet.js.map +1 -1
- package/data/CandleEntry.d.ts +4 -0
- package/data/CandleEntry.js.map +1 -1
- package/data/ChartData.d.ts +273 -18
- package/data/ChartData.js +398 -93
- package/data/ChartData.js.map +1 -1
- package/data/CombinedData.d.ts +39 -12
- package/data/CombinedData.js +87 -71
- package/data/CombinedData.js.map +1 -1
- package/data/DataSet.d.ts +59 -8
- package/data/DataSet.js +114 -26
- package/data/DataSet.js.map +1 -1
- package/data/Entry.js.map +1 -1
- package/data/LineData.d.ts +5 -0
- package/data/LineData.js +5 -0
- package/data/LineData.js.map +1 -1
- package/data/LineDataSet.d.ts +80 -49
- package/data/LineDataSet.js +90 -135
- package/data/LineDataSet.js.map +1 -1
- package/data/LineRadarDataSet.d.ts +27 -17
- package/data/LineRadarDataSet.js +22 -35
- package/data/LineRadarDataSet.js.map +1 -1
- package/data/LineScatterCandleRadarDataSet.d.ts +30 -15
- package/data/LineScatterCandleRadarDataSet.js +36 -39
- package/data/LineScatterCandleRadarDataSet.js.map +1 -1
- package/data/PieData.d.ts +26 -0
- package/data/PieData.js +28 -2
- package/data/PieData.js.map +1 -1
- package/data/PieDataSet.d.ts +40 -36
- package/data/PieDataSet.js +36 -88
- package/data/PieDataSet.js.map +1 -1
- package/data/PieEntry.d.ts +3 -0
- package/data/PieEntry.js.map +1 -1
- package/data/RadarData.d.ts +10 -4
- package/data/RadarData.js +5 -6
- package/data/RadarData.js.map +1 -1
- package/data/RadarDataSet.d.ts +7 -21
- package/data/RadarDataSet.js +10 -49
- package/data/RadarDataSet.js.map +1 -1
- package/data/RadarEntry.js.map +1 -1
- package/data/ScatterData.d.ts +4 -1
- package/data/ScatterData.js +5 -2
- package/data/ScatterData.js.map +1 -1
- package/data/ScatterDataSet.d.ts +24 -14
- package/data/ScatterDataSet.js +26 -31
- package/data/ScatterDataSet.js.map +1 -1
- package/formatter/DefaultAxisValueFormatter.d.ts +17 -3
- package/formatter/DefaultAxisValueFormatter.js +12 -5
- package/formatter/DefaultAxisValueFormatter.js.map +1 -1
- package/formatter/DefaultFillFormatter.js +7 -7
- package/formatter/DefaultFillFormatter.js.map +1 -1
- package/formatter/DefaultValueFormatter.js.map +1 -1
- package/formatter/IAxisValueFormatter.d.ts +20 -2
- package/formatter/IAxisValueFormatter.js.map +1 -1
- package/formatter/IFillFormatter.d.ts +25 -0
- package/formatter/IFillFormatter.js.map +1 -1
- package/formatter/IValueFormatter.d.ts +21 -0
- package/formatter/IValueFormatter.js.map +1 -1
- package/formatter/ValueFormatter.d.ts +60 -0
- package/formatter/ValueFormatter.js +60 -0
- package/formatter/ValueFormatter.js.map +1 -1
- package/highlight/BarHighlighter.d.ts +22 -2
- package/highlight/BarHighlighter.js +43 -17
- package/highlight/BarHighlighter.js.map +1 -1
- package/highlight/ChartHighlighter.d.ts +87 -5
- package/highlight/ChartHighlighter.js +126 -23
- package/highlight/ChartHighlighter.js.map +1 -1
- package/highlight/CombinedHighlighter.d.ts +6 -0
- package/highlight/CombinedHighlighter.js +31 -16
- package/highlight/CombinedHighlighter.js.map +1 -1
- package/highlight/Highlight.d.ts +54 -1
- package/highlight/Highlight.js +5 -0
- package/highlight/Highlight.js.map +1 -1
- package/highlight/HorizontalBarHighlighter.d.ts +1 -1
- package/highlight/HorizontalBarHighlighter.js +14 -13
- package/highlight/HorizontalBarHighlighter.js.map +1 -1
- package/highlight/IHighlighter.d.ts +11 -1
- package/highlight/IHighlighter.js.map +1 -1
- package/highlight/PieHighlighter.js +2 -2
- package/highlight/PieHighlighter.js.map +1 -1
- package/highlight/PieRadarHighlighter.d.ts +12 -1
- package/highlight/PieRadarHighlighter.js +12 -4
- package/highlight/PieRadarHighlighter.js.map +1 -1
- package/highlight/RadarHighlighter.d.ts +12 -0
- package/highlight/RadarHighlighter.js +24 -10
- package/highlight/RadarHighlighter.js.map +1 -1
- package/index.d.ts +11 -0
- package/index.js +15 -0
- package/index.js.map +1 -0
- package/interfaces/dataprovider/BarDataProvider.d.ts +4 -4
- package/interfaces/dataprovider/BarLineScatterCandleBubbleDataProvider.d.ts +8 -3
- package/interfaces/dataprovider/BubbleDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/CandleDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/ChartInterface.d.ts +17 -22
- package/interfaces/dataprovider/CombinedDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/LineDataProvider.d.ts +1 -1
- package/interfaces/dataprovider/ScatterDataProvider.d.ts +1 -1
- package/interfaces/datasets/IBarDataSet.d.ts +8 -22
- package/interfaces/datasets/IBarLineScatterCandleBubbleDataSet.d.ts +1 -3
- package/interfaces/datasets/IBubbleDataSet.d.ts +3 -9
- package/interfaces/datasets/ICandleDataSet.d.ts +44 -41
- package/interfaces/datasets/IDataSet.d.ts +35 -151
- package/interfaces/datasets/ILineDataSet.d.ts +15 -54
- package/interfaces/datasets/ILineRadarDataSet.d.ts +7 -28
- package/interfaces/datasets/ILineScatterCandleRadarDataSet.d.ts +5 -4
- package/interfaces/datasets/IPieDataSet.d.ts +22 -40
- package/interfaces/datasets/IRadarDataSet.d.ts +7 -13
- package/interfaces/datasets/IScatterDataSet.d.ts +17 -16
- package/jobs/AnimatedMoveViewJob.d.ts +3 -0
- package/jobs/AnimatedMoveViewJob.js +12 -8
- package/jobs/AnimatedMoveViewJob.js.map +1 -1
- package/jobs/AnimatedViewPortJob.d.ts +7 -8
- package/jobs/AnimatedViewPortJob.js +16 -23
- package/jobs/AnimatedViewPortJob.js.map +1 -1
- package/jobs/AnimatedZoomJob.d.ts +8 -5
- package/jobs/AnimatedZoomJob.js +30 -26
- package/jobs/AnimatedZoomJob.js.map +1 -1
- package/jobs/MoveViewJob.d.ts +3 -0
- package/jobs/MoveViewJob.js +10 -7
- package/jobs/MoveViewJob.js.map +1 -1
- package/jobs/ViewPortJob.d.ts +3 -5
- package/jobs/ViewPortJob.js +5 -11
- package/jobs/ViewPortJob.js.map +1 -1
- package/jobs/ZoomJob.js +14 -14
- package/jobs/ZoomJob.js.map +1 -1
- package/listener/BarLineChartTouchListener.d.ts +82 -1
- package/listener/BarLineChartTouchListener.js +169 -67
- package/listener/BarLineChartTouchListener.js.map +1 -1
- package/listener/ChartTouchListener.d.ts +39 -5
- package/listener/ChartTouchListener.js +38 -11
- package/listener/ChartTouchListener.js.map +1 -1
- package/listener/PieRadarChartTouchListener.d.ts +56 -1
- package/listener/PieRadarChartTouchListener.js +201 -17
- package/listener/PieRadarChartTouchListener.js.map +1 -1
- package/model/GradientColor.js.map +1 -1
- package/package.json +23 -15
- package/renderer/AxisRenderer.d.ts +66 -7
- package/renderer/AxisRenderer.js +69 -21
- package/renderer/AxisRenderer.js.map +1 -1
- package/renderer/BarChartRenderer.d.ts +11 -0
- package/renderer/BarChartRenderer.js +99 -71
- package/renderer/BarChartRenderer.js.map +1 -1
- package/renderer/BarLineScatterCandleBubbleRenderer.d.ts +37 -0
- package/renderer/BarLineScatterCandleBubbleRenderer.js +36 -8
- package/renderer/BarLineScatterCandleBubbleRenderer.js.map +1 -1
- package/renderer/BubbleChartRenderer.d.ts +6 -2
- package/renderer/BubbleChartRenderer.js +51 -40
- package/renderer/BubbleChartRenderer.js.map +1 -1
- package/renderer/CandleStickChartRenderer.d.ts +1 -1
- package/renderer/CandleStickChartRenderer.js +64 -50
- package/renderer/CandleStickChartRenderer.js.map +1 -1
- package/renderer/CombinedChartRenderer.d.ts +20 -1
- package/renderer/CombinedChartRenderer.js +72 -42
- package/renderer/CombinedChartRenderer.js.map +1 -1
- package/renderer/DataRenderer.d.ts +78 -4
- package/renderer/DataRenderer.js +65 -6
- package/renderer/DataRenderer.js.map +1 -1
- package/renderer/HorizontalBarChartRenderer.d.ts +5 -2
- package/renderer/HorizontalBarChartRenderer.js +87 -66
- package/renderer/HorizontalBarChartRenderer.js.map +1 -1
- package/renderer/LegendRenderer.d.ts +32 -0
- package/renderer/LegendRenderer.js +98 -59
- package/renderer/LegendRenderer.js.map +1 -1
- package/renderer/LineChartRenderer.d.ts +38 -1
- package/renderer/LineChartRenderer.js +185 -110
- package/renderer/LineChartRenderer.js.map +1 -1
- package/renderer/LineRadarRenderer.d.ts +19 -0
- package/renderer/LineRadarRenderer.js +25 -1
- package/renderer/LineRadarRenderer.js.map +1 -1
- package/renderer/LineScatterCandleRadarRenderer.d.ts +11 -0
- package/renderer/LineScatterCandleRadarRenderer.js +26 -9
- package/renderer/LineScatterCandleRadarRenderer.js.map +1 -1
- package/renderer/PieChartRenderer.d.ts +45 -1
- package/renderer/PieChartRenderer.js +195 -122
- package/renderer/PieChartRenderer.js.map +1 -1
- package/renderer/RadarChartRenderer.d.ts +10 -0
- package/renderer/RadarChartRenderer.js +119 -77
- package/renderer/RadarChartRenderer.js.map +1 -1
- package/renderer/Renderer.d.ts +8 -0
- package/renderer/Renderer.js +5 -0
- package/renderer/Renderer.js.map +1 -1
- package/renderer/ScatterChartRenderer.d.ts +5 -5
- package/renderer/ScatterChartRenderer.js +51 -37
- package/renderer/ScatterChartRenderer.js.map +1 -1
- package/renderer/XAxisRenderer.d.ts +29 -4
- package/renderer/XAxisRenderer.js +128 -95
- package/renderer/XAxisRenderer.js.map +1 -1
- package/renderer/XAxisRendererHorizontalBarChart.d.ts +11 -0
- package/renderer/XAxisRendererHorizontalBarChart.js +75 -57
- package/renderer/XAxisRendererHorizontalBarChart.js.map +1 -1
- package/renderer/XAxisRendererRadarChart.d.ts +5 -0
- package/renderer/XAxisRendererRadarChart.js +26 -13
- package/renderer/XAxisRendererRadarChart.js.map +1 -1
- package/renderer/YAxisRenderer.d.ts +42 -5
- package/renderer/YAxisRenderer.js +126 -69
- package/renderer/YAxisRenderer.js.map +1 -1
- package/renderer/YAxisRendererHorizontalBarChart.d.ts +22 -1
- package/renderer/YAxisRendererHorizontalBarChart.js +80 -58
- package/renderer/YAxisRendererHorizontalBarChart.js.map +1 -1
- package/renderer/YAxisRendererRadarChart.js +62 -32
- package/renderer/YAxisRendererRadarChart.js.map +1 -1
- package/renderer/scatter/ChevronDownShapeRenderer.d.ts +4 -0
- package/renderer/scatter/ChevronDownShapeRenderer.js +5 -1
- package/renderer/scatter/ChevronDownShapeRenderer.js.map +1 -1
- package/renderer/scatter/ChevronUpShapeRenderer.d.ts +4 -0
- package/renderer/scatter/ChevronUpShapeRenderer.js +5 -1
- package/renderer/scatter/ChevronUpShapeRenderer.js.map +1 -1
- package/renderer/scatter/CircleShapeRenderer.d.ts +4 -0
- package/renderer/scatter/CircleShapeRenderer.js +8 -5
- package/renderer/scatter/CircleShapeRenderer.js.map +1 -1
- package/renderer/scatter/CrossShapeRenderer.d.ts +4 -0
- package/renderer/scatter/CrossShapeRenderer.js +5 -1
- package/renderer/scatter/CrossShapeRenderer.js.map +1 -1
- package/renderer/scatter/IShapeRenderer.d.ts +14 -0
- package/renderer/scatter/IShapeRenderer.js.map +1 -1
- package/renderer/scatter/SquareShapeRenderer.d.ts +4 -0
- package/renderer/scatter/SquareShapeRenderer.js +8 -5
- package/renderer/scatter/SquareShapeRenderer.js.map +1 -1
- package/renderer/scatter/TriangleShapeRenderer.d.ts +4 -0
- package/renderer/scatter/TriangleShapeRenderer.js +9 -5
- package/renderer/scatter/TriangleShapeRenderer.js.map +1 -1
- package/renderer/scatter/XShapeRenderer.d.ts +4 -0
- package/renderer/scatter/XShapeRenderer.js +5 -1
- package/renderer/scatter/XShapeRenderer.js.map +1 -1
- package/utils/ColorTemplate.d.ts +21 -1
- package/utils/ColorTemplate.js +21 -3
- package/utils/ColorTemplate.js.map +1 -1
- package/utils/HorizontalViewPortHandler.d.ts +3 -0
- package/utils/HorizontalViewPortHandler.js +3 -0
- package/utils/HorizontalViewPortHandler.js.map +1 -1
- package/utils/MPSize.d.ts +7 -0
- package/utils/ObjectPool.d.ts +56 -0
- package/utils/ObjectPool.js +66 -8
- package/utils/ObjectPool.js.map +1 -1
- package/utils/Transformer.d.ts +118 -0
- package/utils/Transformer.js +141 -7
- package/utils/Transformer.js.map +1 -1
- package/utils/TransformerHorizontalBarChart.d.ts +10 -0
- package/utils/TransformerHorizontalBarChart.js +18 -2
- package/utils/TransformerHorizontalBarChart.js.map +1 -1
- package/utils/Utils.d.ts +139 -17
- package/utils/Utils.js +185 -60
- package/utils/Utils.js.map +1 -1
- package/utils/ViewPortHandler.d.ts +234 -19
- package/utils/ViewPortHandler.js +306 -63
- package/utils/ViewPortHandler.js.map +1 -1
- package/utils/colors/colorful.js.map +1 -1
- package/utils/colors/joyful.js.map +1 -1
- package/utils/colors/liberty.js.map +1 -1
- package/utils/colors/material.js.map +1 -1
- package/utils/colors/pastel.js.map +1 -1
- package/utils/colors/vordiplom.js.map +1 -1
- package/charts/index.d.ts +0 -11
- package/charts/index.js +0 -15
- package/charts/index.js.map +0 -1
package/components/Legend.js
CHANGED
|
@@ -4,11 +4,29 @@ import { Utils } from '../utils/Utils';
|
|
|
4
4
|
import { ColorTemplate } from '../utils/ColorTemplate';
|
|
5
5
|
export var LegendForm;
|
|
6
6
|
(function (LegendForm) {
|
|
7
|
+
/**
|
|
8
|
+
* Avoid drawing a form
|
|
9
|
+
*/
|
|
7
10
|
LegendForm[LegendForm["NONE"] = 0] = "NONE";
|
|
11
|
+
/**
|
|
12
|
+
* Do not draw the a form, but leave space for it
|
|
13
|
+
*/
|
|
8
14
|
LegendForm[LegendForm["EMPTY"] = 1] = "EMPTY";
|
|
15
|
+
/**
|
|
16
|
+
* Use default (default dataset's form to the legend's form)
|
|
17
|
+
*/
|
|
9
18
|
LegendForm[LegendForm["DEFAULT"] = 2] = "DEFAULT";
|
|
19
|
+
/**
|
|
20
|
+
* Draw a square
|
|
21
|
+
*/
|
|
10
22
|
LegendForm[LegendForm["SQUARE"] = 3] = "SQUARE";
|
|
23
|
+
/**
|
|
24
|
+
* Draw a circle
|
|
25
|
+
*/
|
|
11
26
|
LegendForm[LegendForm["CIRCLE"] = 4] = "CIRCLE";
|
|
27
|
+
/**
|
|
28
|
+
* Draw a horizontal line
|
|
29
|
+
*/
|
|
12
30
|
LegendForm[LegendForm["LINE"] = 5] = "LINE";
|
|
13
31
|
})(LegendForm || (LegendForm = {}));
|
|
14
32
|
export var LegendHorizontalAlignment;
|
|
@@ -33,57 +51,127 @@ export var LegendDirection;
|
|
|
33
51
|
LegendDirection[LegendDirection["LEFT_TO_RIGHT"] = 0] = "LEFT_TO_RIGHT";
|
|
34
52
|
LegendDirection[LegendDirection["RIGHT_TO_LEFT"] = 1] = "RIGHT_TO_LEFT";
|
|
35
53
|
})(LegendDirection || (LegendDirection = {}));
|
|
54
|
+
/**
|
|
55
|
+
* Class representing the legend of the chart. The legend will contain one entry
|
|
56
|
+
* per color and DataSet. Multiple colors in one DataSet are grouped together.
|
|
57
|
+
* The legend object is NOT available before setting data to the chart.
|
|
58
|
+
*
|
|
59
|
+
|
|
60
|
+
*/
|
|
36
61
|
export class Legend extends ComponentBase {
|
|
62
|
+
/**
|
|
63
|
+
* Constructor. Provide entries for the legend.
|
|
64
|
+
*
|
|
65
|
+
* @param entries
|
|
66
|
+
*/
|
|
37
67
|
constructor(entries) {
|
|
38
68
|
super();
|
|
39
|
-
|
|
69
|
+
/**
|
|
70
|
+
* The legend entries array
|
|
71
|
+
*/
|
|
72
|
+
this.entries = [];
|
|
73
|
+
/**
|
|
74
|
+
* Are the legend labels/colors a custom value or auto calculated? If false,
|
|
75
|
+
* then it's auto, if true, then custom. default false (automatic legend)
|
|
76
|
+
*/
|
|
40
77
|
this.mIsLegendCustom = false;
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
this.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
this.
|
|
53
|
-
|
|
54
|
-
|
|
78
|
+
this.horizontalAlignment = LegendHorizontalAlignment.LEFT;
|
|
79
|
+
this.verticalAlignment = LegendVerticalAlignment.BOTTOM;
|
|
80
|
+
this.orientation = LegendOrientation.HORIZONTAL;
|
|
81
|
+
this.drawInside = false;
|
|
82
|
+
/**
|
|
83
|
+
* the text direction for the legend
|
|
84
|
+
*/
|
|
85
|
+
this.direction = LegendDirection.LEFT_TO_RIGHT;
|
|
86
|
+
/**
|
|
87
|
+
* the shape/form the legend colors are drawn in
|
|
88
|
+
*/
|
|
89
|
+
this.form = LegendForm.SQUARE;
|
|
90
|
+
/**
|
|
91
|
+
* the size of the legend forms/shapes
|
|
92
|
+
*/
|
|
93
|
+
this.formSize = 8;
|
|
94
|
+
/**
|
|
95
|
+
* the size of the legend forms/shapes
|
|
96
|
+
*/
|
|
97
|
+
this.formLineWidth = 3;
|
|
98
|
+
/**
|
|
99
|
+
* Line dash path effect used for shapes that consist of lines.
|
|
100
|
+
*/
|
|
101
|
+
this.formLineDashEffect = null;
|
|
102
|
+
/**
|
|
103
|
+
* the space between the legend entries on a horizontal axis, default 6f
|
|
104
|
+
*/
|
|
105
|
+
this.xEntrySpace = 6;
|
|
106
|
+
/**
|
|
107
|
+
* the space between the legend entries on a vertical axis, default 5f
|
|
108
|
+
*/
|
|
109
|
+
this.yEntrySpace = 0;
|
|
110
|
+
/**
|
|
111
|
+
* the space between the legend entries on a vertical axis, default 2f
|
|
112
|
+
* private float this.mYEntrySpace = 2f; /** the space between the form and the
|
|
113
|
+
* actual label/text
|
|
114
|
+
*/
|
|
115
|
+
this.formToTextSpace = 5;
|
|
116
|
+
/**
|
|
117
|
+
* the space that should be left between stacked forms
|
|
118
|
+
*/
|
|
119
|
+
this.stackSpace = 3;
|
|
120
|
+
/**
|
|
121
|
+
* The maximum relative size out of the whole chart view. / If the legend is
|
|
122
|
+
* to the right/left of the chart, then this affects the width of the
|
|
123
|
+
* legend. / If the legend is to the top/bottom of the chart, then this
|
|
124
|
+
* affects the height of the legend. / If the legend is the center of the
|
|
125
|
+
* piechart, then this defines the size of the rectangular bounds out of the
|
|
126
|
+
* size of the "hole". / default: 0.95f (95%)
|
|
127
|
+
*/
|
|
128
|
+
this.maxSizePercent = 0.95;
|
|
129
|
+
/**
|
|
130
|
+
* the total width of the legend (needed width space)
|
|
131
|
+
*/
|
|
55
132
|
this.mNeededWidth = 0;
|
|
133
|
+
/**
|
|
134
|
+
* the total height of the legend (needed height space)
|
|
135
|
+
*/
|
|
56
136
|
this.mNeededHeight = 0;
|
|
57
137
|
this.mTextHeightMax = 0;
|
|
58
138
|
this.mTextWidthMax = 0;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this.
|
|
139
|
+
/**
|
|
140
|
+
* Should the legend word wrap? / this is currently supported only for:
|
|
141
|
+
* BelowChartLeft, BelowChartRight, BelowChartCenter. / note that word
|
|
142
|
+
* wrapping a legend takes a toll on performance. / you may want to set
|
|
143
|
+
* maxSizePercent when word wrapping, to set the point where the text wraps.
|
|
144
|
+
* / default: false
|
|
145
|
+
*/
|
|
146
|
+
this.wordWrapEnabled = false;
|
|
147
|
+
this.calculatedLabelSizes = [];
|
|
148
|
+
this.calculatedLabelBreakPoints = [];
|
|
149
|
+
this.calculatedLineSizes = [];
|
|
150
|
+
this.enabled = false;
|
|
151
|
+
this.textSize = 10;
|
|
152
|
+
this.xOffset = 5;
|
|
153
|
+
this.yOffset = 5;
|
|
67
154
|
if (entries) {
|
|
68
|
-
this.
|
|
155
|
+
this.entries = entries;
|
|
69
156
|
}
|
|
70
157
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
158
|
+
/**
|
|
159
|
+
* returns the maximum length in pixels across all legend labels + formsize
|
|
160
|
+
* + formtotextspace
|
|
161
|
+
*
|
|
162
|
+
* @param p the paint object used for rendering the text
|
|
163
|
+
* @return
|
|
164
|
+
*/
|
|
77
165
|
getMaximumEntryWidth(p) {
|
|
78
166
|
let max = 0;
|
|
79
167
|
let maxFormSize = 0;
|
|
80
|
-
const formToTextSpace = this.
|
|
81
|
-
for (const entry of this.
|
|
82
|
-
const formSize = isNaN(entry.formSize) ? this.
|
|
168
|
+
const formToTextSpace = this.formToTextSpace;
|
|
169
|
+
for (const entry of this.entries) {
|
|
170
|
+
const formSize = isNaN(entry.formSize) ? this.formSize : entry.formSize;
|
|
83
171
|
if (formSize > maxFormSize)
|
|
84
172
|
maxFormSize = formSize;
|
|
85
173
|
const label = entry.label;
|
|
86
|
-
if (label
|
|
174
|
+
if (!label)
|
|
87
175
|
continue;
|
|
88
176
|
const length = Utils.calcTextWidth(p, label);
|
|
89
177
|
if (length > max)
|
|
@@ -91,11 +179,17 @@ export class Legend extends ComponentBase {
|
|
|
91
179
|
}
|
|
92
180
|
return max + maxFormSize + formToTextSpace;
|
|
93
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* returns the maximum height in pixels across all legend labels
|
|
184
|
+
*
|
|
185
|
+
* @param p the paint object used for rendering the text
|
|
186
|
+
* @return
|
|
187
|
+
*/
|
|
94
188
|
getMaximumEntryHeight(p) {
|
|
95
189
|
let max = 0;
|
|
96
|
-
for (const entry of this.
|
|
190
|
+
for (const entry of this.entries) {
|
|
97
191
|
const label = entry.label;
|
|
98
|
-
if (label
|
|
192
|
+
if (!label)
|
|
99
193
|
continue;
|
|
100
194
|
const length = Utils.calcTextHeight(p, label);
|
|
101
195
|
if (length > max)
|
|
@@ -103,145 +197,72 @@ export class Legend extends ComponentBase {
|
|
|
103
197
|
}
|
|
104
198
|
return max;
|
|
105
199
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
200
|
+
/**
|
|
201
|
+
* Entries that will be appended to the end of the auto calculated
|
|
202
|
+
* entries after calculating the legend.
|
|
203
|
+
* (if the legend has already been calculated, you will need to call notifyDataSetChanged()
|
|
204
|
+
* to let the changes take effect)
|
|
205
|
+
*/
|
|
112
206
|
setExtra(colors, labels) {
|
|
113
207
|
const entries = [];
|
|
114
208
|
for (let i = 0; i < Math.min(colors.length, labels.length); i++) {
|
|
115
209
|
const entry = new LegendEntry(labels[i], colors[i]);
|
|
116
|
-
|
|
210
|
+
// entry.formColor = colors[i];
|
|
211
|
+
// entry.label = labels[i];
|
|
212
|
+
if (entry.formColor === ColorTemplate.COLOR_SKIP || !entry.formColor)
|
|
117
213
|
entry.form = LegendForm.NONE;
|
|
118
214
|
else if (entry.formColor === ColorTemplate.COLOR_NONE)
|
|
119
215
|
entry.form = LegendForm.EMPTY;
|
|
120
216
|
entries.push(entry);
|
|
121
217
|
}
|
|
122
|
-
this.
|
|
123
|
-
}
|
|
218
|
+
this.extraEntries = entries;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Sets a custom legend's entries array.
|
|
222
|
+
* * A null label will start a group.
|
|
223
|
+
* This will disable the feature that automatically calculates the legend
|
|
224
|
+
* entries from the datasets.
|
|
225
|
+
* Call resetCustom() to re-enable automatic calculation (and then
|
|
226
|
+
* notifyDataSetChanged() is needed to auto-calculate the legend again)
|
|
227
|
+
*/
|
|
124
228
|
setCustom(entries) {
|
|
125
|
-
this.
|
|
229
|
+
this.entries = entries;
|
|
126
230
|
this.mIsLegendCustom = true;
|
|
127
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Calling this will disable the custom legend entries (set by
|
|
234
|
+
* setCustom(...)). Instead, the entries will again be calculated
|
|
235
|
+
* automatically (after notifyDataSetChanged() is called).
|
|
236
|
+
*/
|
|
128
237
|
resetCustom() {
|
|
129
238
|
this.mIsLegendCustom = false;
|
|
130
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* @return true if a custom legend entries has been set default
|
|
242
|
+
* false (automatic legend)
|
|
243
|
+
*/
|
|
131
244
|
isLegendCustom() {
|
|
132
245
|
return this.mIsLegendCustom;
|
|
133
246
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return this.mVerticalAlignment;
|
|
142
|
-
}
|
|
143
|
-
setVerticalAlignment(value) {
|
|
144
|
-
this.mVerticalAlignment = value;
|
|
145
|
-
}
|
|
146
|
-
getOrientation() {
|
|
147
|
-
return this.mOrientation;
|
|
148
|
-
}
|
|
149
|
-
setOrientation(value) {
|
|
150
|
-
this.mOrientation = value;
|
|
151
|
-
}
|
|
152
|
-
isDrawInsideEnabled() {
|
|
153
|
-
return this.mDrawInside;
|
|
154
|
-
}
|
|
155
|
-
setDrawInside(value) {
|
|
156
|
-
this.mDrawInside = value;
|
|
157
|
-
}
|
|
158
|
-
getDirection() {
|
|
159
|
-
return this.mDirection;
|
|
160
|
-
}
|
|
161
|
-
setDirection(pos) {
|
|
162
|
-
this.mDirection = pos;
|
|
163
|
-
}
|
|
164
|
-
getForm() {
|
|
165
|
-
return this.mShape;
|
|
166
|
-
}
|
|
167
|
-
setForm(shape) {
|
|
168
|
-
this.mShape = shape;
|
|
169
|
-
}
|
|
170
|
-
setFormSize(size) {
|
|
171
|
-
this.mFormSize = size;
|
|
172
|
-
}
|
|
173
|
-
getFormSize() {
|
|
174
|
-
return this.mFormSize;
|
|
175
|
-
}
|
|
176
|
-
setFormLineWidth(size) {
|
|
177
|
-
this.mFormLineWidth = size;
|
|
178
|
-
}
|
|
179
|
-
getFormLineWidth() {
|
|
180
|
-
return this.mFormLineWidth;
|
|
181
|
-
}
|
|
182
|
-
setFormLineDashEffect(dashPathEffect) {
|
|
183
|
-
this.mFormLineDashEffect = dashPathEffect;
|
|
184
|
-
}
|
|
185
|
-
getFormLineDashEffect() {
|
|
186
|
-
return this.mFormLineDashEffect;
|
|
187
|
-
}
|
|
188
|
-
getXEntrySpace() {
|
|
189
|
-
return this.mXEntrySpace;
|
|
190
|
-
}
|
|
191
|
-
setXEntrySpace(space) {
|
|
192
|
-
this.mXEntrySpace = space;
|
|
193
|
-
}
|
|
194
|
-
getYEntrySpace() {
|
|
195
|
-
return this.mYEntrySpace;
|
|
196
|
-
}
|
|
197
|
-
setYEntrySpace(space) {
|
|
198
|
-
this.mYEntrySpace = space;
|
|
199
|
-
}
|
|
200
|
-
getFormToTextSpace() {
|
|
201
|
-
return this.mFormToTextSpace;
|
|
202
|
-
}
|
|
203
|
-
setFormToTextSpace(space) {
|
|
204
|
-
this.mFormToTextSpace = space;
|
|
205
|
-
}
|
|
206
|
-
getStackSpace() {
|
|
207
|
-
return this.mStackSpace;
|
|
208
|
-
}
|
|
209
|
-
setStackSpace(space) {
|
|
210
|
-
this.mStackSpace = space;
|
|
211
|
-
}
|
|
212
|
-
setWordWrapEnabled(enabled) {
|
|
213
|
-
this.mWordWrapEnabled = enabled;
|
|
214
|
-
}
|
|
215
|
-
isWordWrapEnabled() {
|
|
216
|
-
return this.mWordWrapEnabled;
|
|
217
|
-
}
|
|
218
|
-
getMaxSizePercent() {
|
|
219
|
-
return this.mMaxSizePercent;
|
|
220
|
-
}
|
|
221
|
-
setMaxSizePercent(maxSize) {
|
|
222
|
-
this.mMaxSizePercent = maxSize;
|
|
223
|
-
}
|
|
224
|
-
getCalculatedLabelSizes() {
|
|
225
|
-
return this.mCalculatedLabelSizes;
|
|
226
|
-
}
|
|
227
|
-
getCalculatedLabelBreakPoints() {
|
|
228
|
-
return this.mCalculatedLabelBreakPoints;
|
|
229
|
-
}
|
|
230
|
-
getCalculatedLineSizes() {
|
|
231
|
-
return this.mCalculatedLineSizes;
|
|
232
|
-
}
|
|
247
|
+
/**
|
|
248
|
+
* Calculates the dimensions of the Legend. This includes the maximum width
|
|
249
|
+
* and height of a single entry, as well as the total width and height of
|
|
250
|
+
* the Legend.
|
|
251
|
+
*
|
|
252
|
+
* @param labelpaint
|
|
253
|
+
*/
|
|
233
254
|
calculateDimensions(labelpaint, viewPortHandler) {
|
|
234
|
-
const defaultFormSize = this.
|
|
235
|
-
const stackSpace = this.
|
|
236
|
-
const formToTextSpace = this.
|
|
237
|
-
const xEntrySpace = this.
|
|
238
|
-
const yEntrySpace = this.
|
|
239
|
-
const wordWrapEnabled = this.
|
|
240
|
-
const entries = this.
|
|
255
|
+
const defaultFormSize = this.formSize;
|
|
256
|
+
const stackSpace = this.stackSpace;
|
|
257
|
+
const formToTextSpace = this.formToTextSpace;
|
|
258
|
+
const xEntrySpace = this.xEntrySpace;
|
|
259
|
+
const yEntrySpace = this.yEntrySpace;
|
|
260
|
+
const wordWrapEnabled = this.wordWrapEnabled;
|
|
261
|
+
const entries = this.entries;
|
|
241
262
|
const entryCount = entries.length;
|
|
242
263
|
this.mTextWidthMax = this.getMaximumEntryWidth(labelpaint);
|
|
243
264
|
this.mTextHeightMax = this.getMaximumEntryHeight(labelpaint);
|
|
244
|
-
switch (this.
|
|
265
|
+
switch (this.orientation) {
|
|
245
266
|
case LegendOrientation.VERTICAL: {
|
|
246
267
|
let maxWidth = 0, maxHeight = 0, width = 0;
|
|
247
268
|
const labelLineHeight = Utils.getLineHeight(labelpaint);
|
|
@@ -258,7 +279,9 @@ export class Legend extends ComponentBase {
|
|
|
258
279
|
width += stackSpace;
|
|
259
280
|
width += formSize;
|
|
260
281
|
}
|
|
261
|
-
|
|
282
|
+
// grouped forms have null labels
|
|
283
|
+
if (label) {
|
|
284
|
+
// make a step to the left
|
|
262
285
|
if (drawingForm && !wasStacked)
|
|
263
286
|
width += formToTextSpace;
|
|
264
287
|
else if (wasStacked) {
|
|
@@ -286,65 +309,78 @@ export class Legend extends ComponentBase {
|
|
|
286
309
|
case LegendOrientation.HORIZONTAL: {
|
|
287
310
|
const labelLineHeight = Utils.getLineHeight(labelpaint);
|
|
288
311
|
const labelLineSpacing = Utils.getLineSpacing(labelpaint) + yEntrySpace;
|
|
289
|
-
const contentWidth = viewPortHandler.
|
|
312
|
+
const contentWidth = viewPortHandler.contentRect.width() * this.maxSizePercent;
|
|
313
|
+
// Start calculating layout
|
|
290
314
|
let maxLineWidth = 0;
|
|
291
315
|
let currentLineWidth = 0;
|
|
292
316
|
let requiredWidth = 0;
|
|
293
317
|
let stackedStartIndex = -1;
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
318
|
+
this.calculatedLabelBreakPoints = [];
|
|
319
|
+
this.calculatedLabelSizes = [];
|
|
320
|
+
this.calculatedLineSizes = [];
|
|
297
321
|
for (let i = 0; i < entryCount; i++) {
|
|
298
322
|
const e = entries[i];
|
|
299
323
|
const drawingForm = e.form !== LegendForm.NONE;
|
|
300
324
|
const formSize = isNaN(e.formSize) ? defaultFormSize : e.formSize;
|
|
301
325
|
const label = e.label;
|
|
302
|
-
this.
|
|
326
|
+
this.calculatedLabelBreakPoints.push(false);
|
|
303
327
|
if (stackedStartIndex === -1) {
|
|
328
|
+
// we are not stacking, so required width is for this label
|
|
329
|
+
// only
|
|
304
330
|
requiredWidth = 0;
|
|
305
331
|
}
|
|
306
332
|
else {
|
|
333
|
+
// add the spacing appropriate for stacked labels/forms
|
|
307
334
|
requiredWidth += stackSpace;
|
|
308
335
|
}
|
|
309
|
-
|
|
310
|
-
|
|
336
|
+
// grouped forms have null labels
|
|
337
|
+
if (label) {
|
|
338
|
+
this.calculatedLabelSizes.push(Utils.calcTextSize(labelpaint, label));
|
|
311
339
|
requiredWidth += drawingForm ? formToTextSpace + formSize : 0;
|
|
312
|
-
requiredWidth += this.
|
|
340
|
+
requiredWidth += this.calculatedLabelSizes[i].width;
|
|
313
341
|
}
|
|
314
342
|
else {
|
|
315
|
-
this.
|
|
343
|
+
this.calculatedLabelSizes.push({ x: 0, y: 0 });
|
|
316
344
|
requiredWidth += drawingForm ? formSize : 0;
|
|
317
345
|
if (stackedStartIndex === -1) {
|
|
346
|
+
// mark this index as we might want to break here later
|
|
318
347
|
stackedStartIndex = i;
|
|
319
348
|
}
|
|
320
349
|
}
|
|
321
|
-
if (label
|
|
350
|
+
if (label || i === entryCount - 1) {
|
|
322
351
|
const requiredSpacing = currentLineWidth === 0 ? 0 : xEntrySpace;
|
|
323
|
-
if (!wordWrapEnabled ||
|
|
352
|
+
if (!wordWrapEnabled || // No word wrapping, it must fit.
|
|
353
|
+
// The line is empty, it must fit
|
|
324
354
|
currentLineWidth === 0 ||
|
|
355
|
+
// It simply fits
|
|
325
356
|
contentWidth - currentLineWidth >= requiredSpacing + requiredWidth) {
|
|
357
|
+
// Expand current line
|
|
326
358
|
currentLineWidth += requiredSpacing + requiredWidth;
|
|
327
359
|
}
|
|
328
360
|
else {
|
|
329
|
-
|
|
361
|
+
// It doesn't fit, we need to wrap a line
|
|
362
|
+
// Add current line size to array
|
|
363
|
+
this.calculatedLineSizes.push({ x: currentLineWidth, y: labelLineHeight });
|
|
330
364
|
maxLineWidth = Math.max(maxLineWidth, currentLineWidth);
|
|
331
|
-
|
|
365
|
+
// Start a new line
|
|
366
|
+
this.calculatedLabelBreakPoints[stackedStartIndex > -1 ? stackedStartIndex : i] = true;
|
|
332
367
|
currentLineWidth = requiredWidth;
|
|
333
368
|
}
|
|
334
369
|
if (i === entryCount - 1) {
|
|
335
|
-
|
|
370
|
+
// Add last line size to array
|
|
371
|
+
this.calculatedLineSizes.push({ x: currentLineWidth, y: labelLineHeight });
|
|
336
372
|
maxLineWidth = Math.max(maxLineWidth, currentLineWidth);
|
|
337
373
|
}
|
|
338
374
|
}
|
|
339
|
-
stackedStartIndex = label
|
|
375
|
+
stackedStartIndex = label ? -1 : stackedStartIndex;
|
|
340
376
|
}
|
|
341
377
|
this.mNeededWidth = maxLineWidth;
|
|
342
|
-
this.mNeededHeight = labelLineHeight * this.
|
|
378
|
+
this.mNeededHeight = labelLineHeight * this.calculatedLineSizes.length + labelLineSpacing * (this.calculatedLineSizes.length === 0 ? 0 : this.calculatedLineSizes.length - 1);
|
|
343
379
|
break;
|
|
344
380
|
}
|
|
345
381
|
}
|
|
346
|
-
this.mNeededHeight += this.
|
|
347
|
-
this.mNeededWidth += this.
|
|
382
|
+
this.mNeededHeight += this.yOffset;
|
|
383
|
+
this.mNeededWidth += this.xOffset;
|
|
348
384
|
}
|
|
349
385
|
}
|
|
350
386
|
//# sourceMappingURL=Legend.js.map
|
package/components/Legend.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Legend.js","sourceRoot":"../src/","sources":["components/Legend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,CAAN,IAAY,UA8BX;AA9BD,WAAY,UAAU;IAIlB,2CAAI,CAAA;IAKJ,6CAAK,CAAA;IAKL,iDAAO,CAAA;IAKP,+CAAM,CAAA;IAKN,+CAAM,CAAA;IAKN,2CAAI,CAAA;AACR,CAAC,EA9BW,UAAU,KAAV,UAAU,QA8BrB;AAED,MAAM,CAAN,IAAY,yBAIX;AAJD,WAAY,yBAAyB;IACjC,yEAAI,CAAA;IACJ,6EAAM,CAAA;IACN,2EAAK,CAAA;AACT,CAAC,EAJW,yBAAyB,KAAzB,yBAAyB,QAIpC;AAED,MAAM,CAAN,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IAC/B,mEAAG,CAAA;IACH,yEAAM,CAAA;IACN,yEAAM,CAAA;AACV,CAAC,EAJW,uBAAuB,KAAvB,uBAAuB,QAI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B,GAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;gBAE9K,MAAM;YACV,CAAC;QACL,CAAC;QAED,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,OAAO,CAAC;IACtC,CAAC;CACJ"}
|
|
@@ -2,11 +2,49 @@ import { LegendForm } from './Legend';
|
|
|
2
2
|
import { DashPathEffect } from '@nativescript-community/ui-canvas';
|
|
3
3
|
import { Color } from '@nativescript/core/color';
|
|
4
4
|
export declare class LegendEntry {
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param label The legend entry text. A `null` label will start a group.
|
|
8
|
+
* @param form The form to draw for this entry.
|
|
9
|
+
* @param formSize Set to NaN to use the legend's default.
|
|
10
|
+
* @param formLineWidth Set to NaN to use the legend's default.
|
|
11
|
+
* @param formLineDashEffect Set to nil to use the legend's default.
|
|
12
|
+
* @param formColor The color for drawing the form.
|
|
13
|
+
*/
|
|
5
14
|
constructor(label: string, form: LegendForm, formSize?: any, formLineWidth?: any, formLineDashEffect?: DashPathEffect, formColor?: string | number | Color);
|
|
15
|
+
/**
|
|
16
|
+
* The legend entry text.
|
|
17
|
+
* A `null` label will start a group.
|
|
18
|
+
*/
|
|
6
19
|
label: string;
|
|
20
|
+
/**
|
|
21
|
+
* The form to draw for this entry.
|
|
22
|
+
*
|
|
23
|
+
* `NONE` will avoid drawing a form, and any related space.
|
|
24
|
+
* `EMPTY` will avoid drawing a form, but keep its space.
|
|
25
|
+
* `DEFAULT` will use the Legend's default.
|
|
26
|
+
*/
|
|
7
27
|
form: LegendForm;
|
|
28
|
+
/**
|
|
29
|
+
* Form size will be considered except for when .None is used
|
|
30
|
+
*
|
|
31
|
+
* Set as NaN to use the legend's default
|
|
32
|
+
*/
|
|
8
33
|
formSize: number;
|
|
34
|
+
/**
|
|
35
|
+
* Line width used for shapes that consist of lines.
|
|
36
|
+
*
|
|
37
|
+
* Set as NaN to use the legend's default
|
|
38
|
+
*/
|
|
9
39
|
formLineWidth: number;
|
|
40
|
+
/**
|
|
41
|
+
* Line dash path effect used for shapes that consist of lines.
|
|
42
|
+
*
|
|
43
|
+
* Set to null to use the legend's default
|
|
44
|
+
*/
|
|
10
45
|
formLineDashEffect: DashPathEffect;
|
|
46
|
+
/**
|
|
47
|
+
* The color for drawing the form
|
|
48
|
+
*/
|
|
11
49
|
formColor: string | number | Color;
|
|
12
50
|
}
|
|
@@ -1,10 +1,44 @@
|
|
|
1
1
|
import { LegendForm } from './Legend';
|
|
2
2
|
export class LegendEntry {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param label The legend entry text. A `null` label will start a group.
|
|
6
|
+
* @param form The form to draw for this entry.
|
|
7
|
+
* @param formSize Set to NaN to use the legend's default.
|
|
8
|
+
* @param formLineWidth Set to NaN to use the legend's default.
|
|
9
|
+
* @param formLineDashEffect Set to nil to use the legend's default.
|
|
10
|
+
* @param formColor The color for drawing the form.
|
|
11
|
+
*/
|
|
3
12
|
constructor(label, form, formSize, formLineWidth, formLineDashEffect, formColor) {
|
|
13
|
+
/**
|
|
14
|
+
* The form to draw for this entry.
|
|
15
|
+
*
|
|
16
|
+
* `NONE` will avoid drawing a form, and any related space.
|
|
17
|
+
* `EMPTY` will avoid drawing a form, but keep its space.
|
|
18
|
+
* `DEFAULT` will use the Legend's default.
|
|
19
|
+
*/
|
|
4
20
|
this.form = LegendForm.DEFAULT;
|
|
21
|
+
/**
|
|
22
|
+
* Form size will be considered except for when .None is used
|
|
23
|
+
*
|
|
24
|
+
* Set as NaN to use the legend's default
|
|
25
|
+
*/
|
|
5
26
|
this.formSize = NaN;
|
|
27
|
+
/**
|
|
28
|
+
* Line width used for shapes that consist of lines.
|
|
29
|
+
*
|
|
30
|
+
* Set as NaN to use the legend's default
|
|
31
|
+
*/
|
|
6
32
|
this.formLineWidth = NaN;
|
|
33
|
+
/**
|
|
34
|
+
* Line dash path effect used for shapes that consist of lines.
|
|
35
|
+
*
|
|
36
|
+
* Set to null to use the legend's default
|
|
37
|
+
*/
|
|
7
38
|
this.formLineDashEffect = null;
|
|
39
|
+
/**
|
|
40
|
+
* The color for drawing the form
|
|
41
|
+
*/
|
|
8
42
|
this.formColor = null;
|
|
9
43
|
this.label = label;
|
|
10
44
|
this.form = form;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LegendEntry.js","sourceRoot":"
|
|
1
|
+
{"version":3,"file":"LegendEntry.js","sourceRoot":"","sources":["../../../src/ui-chart/components/LegendEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,MAAM,OAAO,WAAW;IACpB;;;;;;;;OAQG;IACH,YAAY,KAAa,EAAE,IAAgB,EAAE,QAAS,EAAE,aAAc,EAAE,kBAAmC,EAAE,SAAmC;QAehJ;;;;;;WAMG;QACI,SAAI,GAAG,UAAU,CAAC,OAAO,CAAC;QAEjC;;;;WAIG;QACI,aAAQ,GAAG,GAAG,CAAC;QAEtB;;;;WAIG;QACI,kBAAa,GAAG,GAAG,CAAC;QAE3B;;;;WAIG;QACI,uBAAkB,GAAmB,IAAI,CAAC;QAEjD;;WAEG;QACI,cAAS,GAA4B,IAAI,CAAC;QA/C7C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;CA0CJ"}
|