@nativescript-community/ui-chart 1.2.35 → 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.
Files changed (375) hide show
  1. package/README.md +6 -0
  2. package/animation/ChartAnimator.d.ts +47 -4
  3. package/animation/ChartAnimator.js +49 -11
  4. package/animation/ChartAnimator.js.map +1 -1
  5. package/animation/Tween.d.ts +1 -1
  6. package/animation/Tween.js +4 -2
  7. package/animation/Tween.js.map +1 -1
  8. package/buffer/AbstractBuffer.d.ts +28 -3
  9. package/buffer/AbstractBuffer.js +22 -3
  10. package/buffer/AbstractBuffer.js.map +1 -1
  11. package/buffer/BarBuffer.d.ts +8 -12
  12. package/buffer/BarBuffer.js +33 -36
  13. package/buffer/BarBuffer.js.map +1 -1
  14. package/buffer/HorizontalBarBuffer.js +13 -10
  15. package/buffer/HorizontalBarBuffer.js.map +1 -1
  16. package/charts/BarChart.d.ts +70 -15
  17. package/charts/BarChart.js +92 -63
  18. package/charts/BarChart.js.map +1 -1
  19. package/charts/BarLineChartBase.d.ts +494 -73
  20. package/charts/BarLineChartBase.js +788 -407
  21. package/charts/BarLineChartBase.js.map +1 -1
  22. package/charts/BubbleChart.d.ts +11 -5
  23. package/charts/BubbleChart.js +10 -8
  24. package/charts/BubbleChart.js.map +1 -1
  25. package/charts/CandleStickChart.d.ts +8 -5
  26. package/charts/CandleStickChart.js +9 -10
  27. package/charts/CandleStickChart.js.map +1 -1
  28. package/charts/Chart.d.ts +424 -92
  29. package/charts/Chart.js +590 -290
  30. package/charts/Chart.js.map +1 -1
  31. package/charts/CombinedChart.d.ts +59 -29
  32. package/charts/CombinedChart.js +74 -67
  33. package/charts/CombinedChart.js.map +1 -1
  34. package/charts/HorizontalBarChart.d.ts +37 -7
  35. package/charts/HorizontalBarChart.js +97 -59
  36. package/charts/HorizontalBarChart.js.map +1 -1
  37. package/charts/LineChart.d.ts +3 -5
  38. package/charts/LineChart.js +6 -10
  39. package/charts/LineChart.js.map +1 -1
  40. package/charts/PieChart.d.ts +218 -64
  41. package/charts/PieChart.js +278 -168
  42. package/charts/PieChart.js.map +1 -1
  43. package/charts/PieRadarChartBase.d.ts +107 -18
  44. package/charts/PieRadarChartBase.js +156 -73
  45. package/charts/PieRadarChartBase.js.map +1 -1
  46. package/charts/RadarChart.d.ts +75 -35
  47. package/charts/RadarChart.js +114 -103
  48. package/charts/RadarChart.js.map +1 -1
  49. package/charts/ScatterChart.d.ts +10 -5
  50. package/charts/ScatterChart.js +11 -10
  51. package/charts/ScatterChart.js.map +1 -1
  52. package/components/AxisBase.d.ts +271 -101
  53. package/components/AxisBase.js +264 -254
  54. package/components/AxisBase.js.map +1 -1
  55. package/components/ComponentBase.d.ts +54 -19
  56. package/components/ComponentBase.js +60 -48
  57. package/components/ComponentBase.js.map +1 -1
  58. package/components/Description.d.ts +18 -9
  59. package/components/Description.js +12 -26
  60. package/components/Description.js.map +1 -1
  61. package/components/IMarker.d.ts +30 -1
  62. package/components/IMarker.js.map +1 -1
  63. package/components/Legend.d.ts +155 -58
  64. package/components/Legend.js +208 -172
  65. package/components/Legend.js.map +1 -1
  66. package/components/LegendEntry.d.ts +38 -0
  67. package/components/LegendEntry.js +34 -0
  68. package/components/LegendEntry.js.map +1 -1
  69. package/components/LimitLine.d.ts +40 -22
  70. package/components/LimitLine.js +44 -56
  71. package/components/LimitLine.js.map +1 -1
  72. package/components/MarkerImage.d.ts +1 -0
  73. package/components/MarkerImage.js +97 -0
  74. package/components/MarkerImage.js.map +1 -0
  75. package/components/XAxis.d.ts +41 -10
  76. package/components/XAxis.js +42 -24
  77. package/components/XAxis.js.map +1 -1
  78. package/components/YAxis.d.ts +114 -37
  79. package/components/YAxis.js +138 -106
  80. package/components/YAxis.js.map +1 -1
  81. package/data/BarData.d.ts +32 -4
  82. package/data/BarData.js +92 -24
  83. package/data/BarData.js.map +1 -1
  84. package/data/BarDataSet.d.ts +35 -18
  85. package/data/BarDataSet.js +42 -47
  86. package/data/BarDataSet.js.map +1 -1
  87. package/data/BarEntry.d.ts +3 -0
  88. package/data/BarEntry.js.map +1 -1
  89. package/data/BarLineScatterCandleBubbleData.d.ts +5 -0
  90. package/data/BarLineScatterCandleBubbleData.js +5 -0
  91. package/data/BarLineScatterCandleBubbleData.js.map +1 -1
  92. package/data/BarLineScatterCandleBubbleDataSet.d.ts +11 -3
  93. package/data/BarLineScatterCandleBubbleDataSet.js +11 -7
  94. package/data/BarLineScatterCandleBubbleDataSet.js.map +1 -1
  95. package/data/BaseDataSet.d.ts +129 -71
  96. package/data/BaseDataSet.js +146 -169
  97. package/data/BaseDataSet.js.map +1 -1
  98. package/data/BaseEntry.d.ts +3 -0
  99. package/data/BaseEntry.js.map +1 -1
  100. package/data/BubbleData.d.ts +7 -1
  101. package/data/BubbleData.js +8 -2
  102. package/data/BubbleData.js.map +1 -1
  103. package/data/BubbleDataSet.d.ts +7 -7
  104. package/data/BubbleDataSet.js +8 -15
  105. package/data/BubbleDataSet.js.map +1 -1
  106. package/data/BubbleEntry.d.ts +1 -0
  107. package/data/BubbleEntry.js.map +1 -1
  108. package/data/CandleData.js.map +1 -1
  109. package/data/CandleDataSet.d.ts +64 -30
  110. package/data/CandleDataSet.js +67 -74
  111. package/data/CandleDataSet.js.map +1 -1
  112. package/data/CandleEntry.d.ts +4 -0
  113. package/data/CandleEntry.js.map +1 -1
  114. package/data/ChartData.d.ts +273 -18
  115. package/data/ChartData.js +398 -93
  116. package/data/ChartData.js.map +1 -1
  117. package/data/CombinedData.d.ts +39 -12
  118. package/data/CombinedData.js +87 -71
  119. package/data/CombinedData.js.map +1 -1
  120. package/data/DataSet.d.ts +59 -8
  121. package/data/DataSet.js +114 -26
  122. package/data/DataSet.js.map +1 -1
  123. package/data/Entry.js.map +1 -1
  124. package/data/LineData.d.ts +5 -0
  125. package/data/LineData.js +5 -0
  126. package/data/LineData.js.map +1 -1
  127. package/data/LineDataSet.d.ts +80 -49
  128. package/data/LineDataSet.js +90 -135
  129. package/data/LineDataSet.js.map +1 -1
  130. package/data/LineRadarDataSet.d.ts +27 -17
  131. package/data/LineRadarDataSet.js +22 -35
  132. package/data/LineRadarDataSet.js.map +1 -1
  133. package/data/LineScatterCandleRadarDataSet.d.ts +30 -15
  134. package/data/LineScatterCandleRadarDataSet.js +36 -39
  135. package/data/LineScatterCandleRadarDataSet.js.map +1 -1
  136. package/data/PieData.d.ts +26 -0
  137. package/data/PieData.js +28 -2
  138. package/data/PieData.js.map +1 -1
  139. package/data/PieDataSet.d.ts +40 -36
  140. package/data/PieDataSet.js +36 -88
  141. package/data/PieDataSet.js.map +1 -1
  142. package/data/PieEntry.d.ts +3 -0
  143. package/data/PieEntry.js.map +1 -1
  144. package/data/RadarData.d.ts +10 -4
  145. package/data/RadarData.js +5 -6
  146. package/data/RadarData.js.map +1 -1
  147. package/data/RadarDataSet.d.ts +7 -21
  148. package/data/RadarDataSet.js +10 -49
  149. package/data/RadarDataSet.js.map +1 -1
  150. package/data/RadarEntry.js.map +1 -1
  151. package/data/ScatterData.d.ts +4 -1
  152. package/data/ScatterData.js +5 -2
  153. package/data/ScatterData.js.map +1 -1
  154. package/data/ScatterDataSet.d.ts +24 -14
  155. package/data/ScatterDataSet.js +26 -31
  156. package/data/ScatterDataSet.js.map +1 -1
  157. package/formatter/DefaultAxisValueFormatter.d.ts +17 -3
  158. package/formatter/DefaultAxisValueFormatter.js +12 -5
  159. package/formatter/DefaultAxisValueFormatter.js.map +1 -1
  160. package/formatter/DefaultFillFormatter.js +7 -7
  161. package/formatter/DefaultFillFormatter.js.map +1 -1
  162. package/formatter/DefaultValueFormatter.js.map +1 -1
  163. package/formatter/IAxisValueFormatter.d.ts +20 -2
  164. package/formatter/IAxisValueFormatter.js.map +1 -1
  165. package/formatter/IFillFormatter.d.ts +25 -0
  166. package/formatter/IFillFormatter.js.map +1 -1
  167. package/formatter/IValueFormatter.d.ts +21 -0
  168. package/formatter/IValueFormatter.js.map +1 -1
  169. package/formatter/ValueFormatter.d.ts +60 -0
  170. package/formatter/ValueFormatter.js +60 -0
  171. package/formatter/ValueFormatter.js.map +1 -1
  172. package/highlight/BarHighlighter.d.ts +22 -2
  173. package/highlight/BarHighlighter.js +43 -17
  174. package/highlight/BarHighlighter.js.map +1 -1
  175. package/highlight/ChartHighlighter.d.ts +87 -5
  176. package/highlight/ChartHighlighter.js +126 -23
  177. package/highlight/ChartHighlighter.js.map +1 -1
  178. package/highlight/CombinedHighlighter.d.ts +6 -0
  179. package/highlight/CombinedHighlighter.js +31 -16
  180. package/highlight/CombinedHighlighter.js.map +1 -1
  181. package/highlight/Highlight.d.ts +54 -1
  182. package/highlight/Highlight.js +5 -0
  183. package/highlight/Highlight.js.map +1 -1
  184. package/highlight/HorizontalBarHighlighter.d.ts +1 -1
  185. package/highlight/HorizontalBarHighlighter.js +14 -13
  186. package/highlight/HorizontalBarHighlighter.js.map +1 -1
  187. package/highlight/IHighlighter.d.ts +11 -1
  188. package/highlight/IHighlighter.js.map +1 -1
  189. package/highlight/PieHighlighter.js +2 -2
  190. package/highlight/PieHighlighter.js.map +1 -1
  191. package/highlight/PieRadarHighlighter.d.ts +12 -1
  192. package/highlight/PieRadarHighlighter.js +12 -4
  193. package/highlight/PieRadarHighlighter.js.map +1 -1
  194. package/highlight/RadarHighlighter.d.ts +12 -0
  195. package/highlight/RadarHighlighter.js +24 -10
  196. package/highlight/RadarHighlighter.js.map +1 -1
  197. package/index.d.ts +11 -0
  198. package/index.js +15 -0
  199. package/index.js.map +1 -0
  200. package/interfaces/dataprovider/BarDataProvider.d.ts +4 -4
  201. package/interfaces/dataprovider/BarLineScatterCandleBubbleDataProvider.d.ts +8 -3
  202. package/interfaces/dataprovider/BubbleDataProvider.d.ts +1 -1
  203. package/interfaces/dataprovider/CandleDataProvider.d.ts +1 -1
  204. package/interfaces/dataprovider/ChartInterface.d.ts +17 -22
  205. package/interfaces/dataprovider/CombinedDataProvider.d.ts +1 -1
  206. package/interfaces/dataprovider/LineDataProvider.d.ts +1 -1
  207. package/interfaces/dataprovider/ScatterDataProvider.d.ts +1 -1
  208. package/interfaces/datasets/IBarDataSet.d.ts +8 -22
  209. package/interfaces/datasets/IBarLineScatterCandleBubbleDataSet.d.ts +1 -3
  210. package/interfaces/datasets/IBubbleDataSet.d.ts +3 -9
  211. package/interfaces/datasets/ICandleDataSet.d.ts +44 -41
  212. package/interfaces/datasets/IDataSet.d.ts +35 -151
  213. package/interfaces/datasets/ILineDataSet.d.ts +15 -54
  214. package/interfaces/datasets/ILineRadarDataSet.d.ts +7 -28
  215. package/interfaces/datasets/ILineScatterCandleRadarDataSet.d.ts +5 -4
  216. package/interfaces/datasets/IPieDataSet.d.ts +22 -40
  217. package/interfaces/datasets/IRadarDataSet.d.ts +7 -13
  218. package/interfaces/datasets/IScatterDataSet.d.ts +17 -16
  219. package/jobs/AnimatedMoveViewJob.d.ts +3 -0
  220. package/jobs/AnimatedMoveViewJob.js +12 -8
  221. package/jobs/AnimatedMoveViewJob.js.map +1 -1
  222. package/jobs/AnimatedViewPortJob.d.ts +7 -8
  223. package/jobs/AnimatedViewPortJob.js +16 -23
  224. package/jobs/AnimatedViewPortJob.js.map +1 -1
  225. package/jobs/AnimatedZoomJob.d.ts +8 -5
  226. package/jobs/AnimatedZoomJob.js +30 -26
  227. package/jobs/AnimatedZoomJob.js.map +1 -1
  228. package/jobs/MoveViewJob.d.ts +3 -0
  229. package/jobs/MoveViewJob.js +10 -7
  230. package/jobs/MoveViewJob.js.map +1 -1
  231. package/jobs/ViewPortJob.d.ts +3 -5
  232. package/jobs/ViewPortJob.js +5 -11
  233. package/jobs/ViewPortJob.js.map +1 -1
  234. package/jobs/ZoomJob.js +14 -14
  235. package/jobs/ZoomJob.js.map +1 -1
  236. package/listener/BarLineChartTouchListener.d.ts +83 -1
  237. package/listener/BarLineChartTouchListener.js +169 -67
  238. package/listener/BarLineChartTouchListener.js.map +1 -1
  239. package/listener/ChartTouchListener.d.ts +39 -5
  240. package/listener/ChartTouchListener.js +38 -11
  241. package/listener/ChartTouchListener.js.map +1 -1
  242. package/listener/PieRadarChartTouchListener.d.ts +81 -1
  243. package/listener/PieRadarChartTouchListener.js +212 -16
  244. package/listener/PieRadarChartTouchListener.js.map +1 -1
  245. package/model/GradientColor.js.map +1 -1
  246. package/package.json +23 -15
  247. package/renderer/AxisRenderer.d.ts +66 -7
  248. package/renderer/AxisRenderer.js +69 -21
  249. package/renderer/AxisRenderer.js.map +1 -1
  250. package/renderer/BarChartRenderer.d.ts +11 -0
  251. package/renderer/BarChartRenderer.js +99 -71
  252. package/renderer/BarChartRenderer.js.map +1 -1
  253. package/renderer/BarLineScatterCandleBubbleRenderer.d.ts +37 -0
  254. package/renderer/BarLineScatterCandleBubbleRenderer.js +36 -8
  255. package/renderer/BarLineScatterCandleBubbleRenderer.js.map +1 -1
  256. package/renderer/BubbleChartRenderer.d.ts +6 -2
  257. package/renderer/BubbleChartRenderer.js +51 -40
  258. package/renderer/BubbleChartRenderer.js.map +1 -1
  259. package/renderer/CandleStickChartRenderer.d.ts +1 -1
  260. package/renderer/CandleStickChartRenderer.js +64 -50
  261. package/renderer/CandleStickChartRenderer.js.map +1 -1
  262. package/renderer/CombinedChartRenderer.d.ts +20 -1
  263. package/renderer/CombinedChartRenderer.js +72 -42
  264. package/renderer/CombinedChartRenderer.js.map +1 -1
  265. package/renderer/DataRenderer.d.ts +78 -4
  266. package/renderer/DataRenderer.js +65 -6
  267. package/renderer/DataRenderer.js.map +1 -1
  268. package/renderer/HorizontalBarChartRenderer.d.ts +5 -2
  269. package/renderer/HorizontalBarChartRenderer.js +87 -66
  270. package/renderer/HorizontalBarChartRenderer.js.map +1 -1
  271. package/renderer/LegendRenderer.d.ts +32 -0
  272. package/renderer/LegendRenderer.js +98 -59
  273. package/renderer/LegendRenderer.js.map +1 -1
  274. package/renderer/LineChartRenderer.d.ts +38 -1
  275. package/renderer/LineChartRenderer.js +185 -110
  276. package/renderer/LineChartRenderer.js.map +1 -1
  277. package/renderer/LineRadarRenderer.d.ts +19 -0
  278. package/renderer/LineRadarRenderer.js +25 -1
  279. package/renderer/LineRadarRenderer.js.map +1 -1
  280. package/renderer/LineScatterCandleRadarRenderer.d.ts +11 -0
  281. package/renderer/LineScatterCandleRadarRenderer.js +26 -9
  282. package/renderer/LineScatterCandleRadarRenderer.js.map +1 -1
  283. package/renderer/PieChartRenderer.d.ts +45 -1
  284. package/renderer/PieChartRenderer.js +195 -122
  285. package/renderer/PieChartRenderer.js.map +1 -1
  286. package/renderer/RadarChartRenderer.d.ts +10 -0
  287. package/renderer/RadarChartRenderer.js +119 -77
  288. package/renderer/RadarChartRenderer.js.map +1 -1
  289. package/renderer/Renderer.d.ts +8 -0
  290. package/renderer/Renderer.js +5 -0
  291. package/renderer/Renderer.js.map +1 -1
  292. package/renderer/ScatterChartRenderer.d.ts +5 -5
  293. package/renderer/ScatterChartRenderer.js +51 -37
  294. package/renderer/ScatterChartRenderer.js.map +1 -1
  295. package/renderer/XAxisRenderer.d.ts +29 -4
  296. package/renderer/XAxisRenderer.js +128 -95
  297. package/renderer/XAxisRenderer.js.map +1 -1
  298. package/renderer/XAxisRendererHorizontalBarChart.d.ts +11 -0
  299. package/renderer/XAxisRendererHorizontalBarChart.js +75 -57
  300. package/renderer/XAxisRendererHorizontalBarChart.js.map +1 -1
  301. package/renderer/XAxisRendererRadarChart.d.ts +5 -0
  302. package/renderer/XAxisRendererRadarChart.js +26 -13
  303. package/renderer/XAxisRendererRadarChart.js.map +1 -1
  304. package/renderer/YAxisRenderer.d.ts +42 -5
  305. package/renderer/YAxisRenderer.js +126 -69
  306. package/renderer/YAxisRenderer.js.map +1 -1
  307. package/renderer/YAxisRendererHorizontalBarChart.d.ts +22 -1
  308. package/renderer/YAxisRendererHorizontalBarChart.js +80 -58
  309. package/renderer/YAxisRendererHorizontalBarChart.js.map +1 -1
  310. package/renderer/YAxisRendererRadarChart.js +62 -32
  311. package/renderer/YAxisRendererRadarChart.js.map +1 -1
  312. package/renderer/scatter/ChevronDownShapeRenderer.d.ts +4 -0
  313. package/renderer/scatter/ChevronDownShapeRenderer.js +5 -1
  314. package/renderer/scatter/ChevronDownShapeRenderer.js.map +1 -1
  315. package/renderer/scatter/ChevronUpShapeRenderer.d.ts +4 -0
  316. package/renderer/scatter/ChevronUpShapeRenderer.js +5 -1
  317. package/renderer/scatter/ChevronUpShapeRenderer.js.map +1 -1
  318. package/renderer/scatter/CircleShapeRenderer.d.ts +4 -0
  319. package/renderer/scatter/CircleShapeRenderer.js +8 -5
  320. package/renderer/scatter/CircleShapeRenderer.js.map +1 -1
  321. package/renderer/scatter/CrossShapeRenderer.d.ts +4 -0
  322. package/renderer/scatter/CrossShapeRenderer.js +5 -1
  323. package/renderer/scatter/CrossShapeRenderer.js.map +1 -1
  324. package/renderer/scatter/IShapeRenderer.d.ts +14 -0
  325. package/renderer/scatter/IShapeRenderer.js.map +1 -1
  326. package/renderer/scatter/SquareShapeRenderer.d.ts +4 -0
  327. package/renderer/scatter/SquareShapeRenderer.js +8 -5
  328. package/renderer/scatter/SquareShapeRenderer.js.map +1 -1
  329. package/renderer/scatter/TriangleShapeRenderer.d.ts +4 -0
  330. package/renderer/scatter/TriangleShapeRenderer.js +9 -5
  331. package/renderer/scatter/TriangleShapeRenderer.js.map +1 -1
  332. package/renderer/scatter/XShapeRenderer.d.ts +4 -0
  333. package/renderer/scatter/XShapeRenderer.js +5 -1
  334. package/renderer/scatter/XShapeRenderer.js.map +1 -1
  335. package/utils/ColorTemplate.d.ts +21 -1
  336. package/utils/ColorTemplate.js +21 -3
  337. package/utils/ColorTemplate.js.map +1 -1
  338. package/utils/HorizontalViewPortHandler.d.ts +3 -0
  339. package/utils/HorizontalViewPortHandler.js +3 -0
  340. package/utils/HorizontalViewPortHandler.js.map +1 -1
  341. package/utils/MPSize.d.ts +7 -0
  342. package/utils/ObjectPool.d.ts +56 -0
  343. package/utils/ObjectPool.js +66 -8
  344. package/utils/ObjectPool.js.map +1 -1
  345. package/utils/Transformer.d.ts +118 -0
  346. package/utils/Transformer.js +141 -7
  347. package/utils/Transformer.js.map +1 -1
  348. package/utils/TransformerHorizontalBarChart.d.ts +10 -0
  349. package/utils/TransformerHorizontalBarChart.js +18 -2
  350. package/utils/TransformerHorizontalBarChart.js.map +1 -1
  351. package/utils/Utils.d.ts +139 -17
  352. package/utils/Utils.js +185 -60
  353. package/utils/Utils.js.map +1 -1
  354. package/utils/ViewPortHandler.d.ts +234 -19
  355. package/utils/ViewPortHandler.js +306 -63
  356. package/utils/ViewPortHandler.js.map +1 -1
  357. package/utils/colors/colorful.js.map +1 -1
  358. package/utils/colors/joyful.js.map +1 -1
  359. package/utils/colors/liberty.js.map +1 -1
  360. package/utils/colors/material.js.map +1 -1
  361. package/utils/colors/pastel.js.map +1 -1
  362. package/utils/colors/vordiplom.js.map +1 -1
  363. package/animation/ChartAnimator2.d.ts +0 -18
  364. package/animation/ChartAnimator2.js +0 -69
  365. package/animation/ChartAnimator2.js.map +0 -1
  366. package/charts/index.d.ts +0 -11
  367. package/charts/index.js +0 -15
  368. package/charts/index.js.map +0 -1
  369. package/utils/Curve.d.ts +0 -12
  370. package/utils/Curve.js +0 -156
  371. package/utils/Curve.js.map +0 -1
  372. package/utils/MPPointD.js +0 -1
  373. package/utils/MPPointD.js.map +0 -1
  374. package/utils/MPPointF.js +0 -1
  375. package/utils/MPPointF.js.map +0 -1
@@ -11,35 +11,93 @@ import { XAxisRenderer } from '../renderer/XAxisRenderer';
11
11
  import { YAxisRenderer } from '../renderer/YAxisRenderer';
12
12
  import { Transformer } from '../utils/Transformer';
13
13
  import { Chart } from './Chart';
14
+ import { IDataSet } from '../interfaces/datasets/IDataSet';
14
15
  export declare abstract class BarLineChartBase<U extends Entry, D extends IBarLineScatterCandleBubbleDataSet<U>, T extends BarLineScatterCandleBubbleData<U, D>> extends Chart<U, D, T> implements BarLineScatterCandleBubbleDataProvider {
15
- protected mChartTouchListener: BarLineChartTouchListener;
16
- protected mMaxVisibleCount: number;
17
- protected mAutoScaleMinMaxEnabled: boolean;
18
- protected mPinchZoomEnabled: boolean;
16
+ chartTouchListener: BarLineChartTouchListener;
17
+ /**
18
+ * the maximum number of entries to which values will be drawn
19
+ * (entry numbers greater than this value will cause value-labels to disappear)
20
+ */
21
+ maxVisibleValueCount: number;
22
+ /**
23
+ * flag that indicates if auto scaling on the y axis is enabled
24
+ */
25
+ autoScaleMinMaxEnabled: boolean;
26
+ /**
27
+ * flag that indicates if pinch-zoom is enabled. if true, both x and y axis
28
+ * can be scaled with 2 fingers, if false, x and y axis can be scaled
29
+ * separately
30
+ */
31
+ pinchZoomEnabled: boolean;
32
+ /**
33
+ * flag that indicates if double tap zoom is enabled or not
34
+ */
19
35
  protected mDoubleTapToZoomEnabled: boolean;
36
+ /**
37
+ * flag that indicates if highlighting per dragging over a fully zoomed out
38
+ * chart is enabled
39
+ */
20
40
  protected mHighlightPerDragEnabled: boolean;
41
+ /**
42
+ * flag that indicates zoomed pan gesture should only work with 2 pointers
43
+ */
21
44
  zoomedPanWith2Pointers: boolean;
22
- private mDragXEnabled;
23
- private mDragYEnabled;
24
- e: any;
45
+ /**
46
+ * if true, dragging is enabled for the chart
47
+ */
48
+ dragXEnabled: boolean;
49
+ dragYEnabled: boolean;
25
50
  private mScaleXEnabled;
26
51
  private mScaleYEnabled;
52
+ /**
53
+ * palet object for the (by default) lightgrey background of the grid
54
+ */
27
55
  protected mGridBackgroundPaint: Paint;
28
56
  protected mBorderPaint: Paint;
29
- protected mDrawGridBackground: boolean;
30
- protected mDrawBorders: boolean;
31
- protected mClipValuesToContent: boolean;
32
- protected mClipDataToContent: boolean;
33
- protected mDrawHighlight: boolean;
34
- protected mMinOffset: number;
35
- protected mKeepPositionOnRotation: boolean;
36
- protected mAxisLeft: YAxis;
37
- protected mAxisRight: YAxis;
38
- protected mAxisRendererLeft: YAxisRenderer;
39
- protected mAxisRendererRight: YAxisRenderer;
40
- protected mLeftAxisTransformer: Transformer;
41
- protected mRightAxisTransformer: Transformer;
42
- protected mXAxisRenderer: XAxisRenderer;
57
+ /**
58
+ * flag indicating if the grid background should be drawn or not
59
+ */
60
+ drawGridBackgroundEnabled: boolean;
61
+ drawBorders: boolean;
62
+ clipValuesToContent: boolean;
63
+ clipDataToContent: boolean;
64
+ drawHighlight: boolean;
65
+ /**
66
+ * Sets the minimum offset (padding) around the chart, defaults to 15
67
+ */
68
+ minOffset: number;
69
+ /**
70
+ * flag indicating if the chart should stay at the same position after a rotation. Default is false.
71
+ */
72
+ keepPositionOnRotation: boolean;
73
+ /**
74
+ * the listener for user drawing on the chart
75
+ */
76
+ /**
77
+ * the object representing the labels on the left y-axis
78
+ */
79
+ mAxisLeft: YAxis;
80
+ /**
81
+ * the object representing the labels on the right y-axis
82
+ */
83
+ mAxisRight: YAxis;
84
+ /**
85
+ * axis renderer for the left axis.
86
+ *
87
+ */
88
+ rendererLeftYAxis: YAxisRenderer;
89
+ /**
90
+ * axis renderer for the right axis.
91
+ *
92
+ */
93
+ rendererRightYAxis: YAxisRenderer;
94
+ /**
95
+ * axis renderer for the x axis.
96
+ *
97
+ */
98
+ rendererXAxis: XAxisRenderer;
99
+ protected leftAxisTransformer: Transformer;
100
+ protected rightAxisTransformer: Transformer;
43
101
  protected init(): void;
44
102
  get gridBackgroundPaint(): Paint;
45
103
  get borderPaint(): Paint;
@@ -47,123 +105,486 @@ export declare abstract class BarLineChartBase<U extends Entry, D extends IBarLi
47
105
  private totalTime;
48
106
  private drawCycles;
49
107
  onDraw(canvas: Canvas): void;
108
+ /**
109
+ * RESET PERFORMANCE TRACKING FIELDS
110
+ */
50
111
  resetTracking(): void;
51
112
  protected prepareValuePxMatrix(): void;
52
113
  protected prepareOffsetMatrix(): void;
53
114
  notifyDataSetChanged(): void;
115
+ /**
116
+ * Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view.
117
+ */
54
118
  protected autoScale(): void;
55
119
  protected calcMinMax(): void;
56
120
  protected calculateLegendOffsets(offsets: any): void;
57
121
  calculateOffsets(force?: boolean): void;
122
+ /**
123
+ * draws the grid background
124
+ */
58
125
  protected drawGridBackground(c: Canvas): void;
126
+ /**
127
+ * Returns the Transformer class that contains all matrices and is
128
+ * responsible for transforming values into pixels on the screen and
129
+ * backwards.
130
+ */
59
131
  getTransformer(which?: AxisDependency): Transformer;
132
+ get transformer(): Transformer;
133
+ /**
134
+ * ################ ################ ################ ################
135
+ */
136
+ /**
137
+ * CODE BELOW THIS RELATED TO SCALING AND GESTURES AND MODIFICATION OF THE
138
+ * VIEWPORT
139
+ */
60
140
  protected mZoomMatrixBuffer: Matrix;
141
+ /**
142
+ * Zooms in by 1.4f, into the charts center.
143
+ */
61
144
  zoomIn(): void;
145
+ /**
146
+ * Zooms out by 0.7f, from the charts center.
147
+ */
62
148
  zoomOut(): void;
149
+ /**
150
+ * Zooms out to original size.
151
+ */
63
152
  resetZoom(): void;
153
+ /**
154
+ * Zooms in or out by the given scale factor. x and y are the coordinates
155
+ * (in pixels) of the zoom center.
156
+ *
157
+ * @param scaleX if < 1 --> zoom out, if > 1 --> zoom in
158
+ * @param scaleY if < 1 --> zoom out, if > 1 --> zoom in
159
+ * @param x
160
+ * @param y
161
+ */
64
162
  zoom(scaleX: any, scaleY: any, x: any, y: any): void;
163
+ /**
164
+ * Zooms in or out by the given scale factor.
165
+ * x and y are the values (NOT PIXELS) of the zoom center..
166
+ *
167
+ * @param scaleX
168
+ * @param scaleY
169
+ * @param xValue
170
+ * @param yValue
171
+ * @param axis the axis relative to which the zoom should take place
172
+ */
65
173
  zoomAtValue(scaleX: any, scaleY: any, xValue: any, yValue: any, axis: any): void;
174
+ /**
175
+ * Zooms to the center of the chart with the given scale factor.
176
+ *
177
+ * @param scaleX
178
+ * @param scaleY
179
+ */
66
180
  zoomToCenter(scaleX: any, scaleY: any): void;
181
+ /**
182
+ * Zooms by the specified scale factor to the specified values on the specified axis.
183
+ *
184
+ * @param scaleX
185
+ * @param scaleY
186
+ * @param xValue
187
+ * @param yValue
188
+ * @param axis
189
+ * @param duration
190
+ */
67
191
  zoomAndCenterAnimated(scaleX: any, scaleY: any, xValue: any, yValue: any, axis: any, duration: any): void;
192
+ /**
193
+ * Zooms by the specified scale factor to the specified values on the specified axis.
194
+ *
195
+ * @param scaleX
196
+ * @param scaleY
197
+ * @param xValue
198
+ * @param yValue
199
+ * @param axis
200
+ */
68
201
  zoomAndCenter(scaleX: any, scaleY: any, xValue: any, yValue: any, axis: any): void;
69
202
  protected mFitScreenMatrixBuffer: Matrix;
203
+ /**
204
+ * Resets all zooming and dragging and makes the chart fit exactly it's
205
+ * bounds.
206
+ */
70
207
  fitScreen(): void;
208
+ /**
209
+ * Sets the minimum scale factor value to which can be zoomed out. 1 =
210
+ * fitScreen
211
+ *
212
+ * @param scaleX
213
+ * @param scaleY
214
+ */
71
215
  setScaleMinima(scaleX: any, scaleY: any): void;
72
- setVisibleXRangeMaximum(maxXRange: any): void;
73
- setVisibleXRangeMinimum(minXRange: any): void;
216
+ /**
217
+ * Sets the scale factor. 1 =
218
+ * fitScreen
219
+ *
220
+ * @param scaleX
221
+ * @param scaleY
222
+ */
223
+ setScale(scaleX: any, scaleY: any): void;
224
+ /**
225
+ * Sets the size of the area (range on the x-axis) that should be maximum
226
+ * visible at once (no further zooming out allowed). If this is e.g. set to
227
+ * 10, no more than a range of 10 on the x-axis can be viewed at once without
228
+ * scrolling.
229
+ *
230
+ * @param maxXRange The maximum visible range of x-values.
231
+ */
232
+ set visibleXRangeMaximum(maxXRange: any);
233
+ /**
234
+ * Sets the size of the area (range on the x-axis) that should be minimum
235
+ * visible at once (no further zooming in allowed). If this is e.g. set to
236
+ * 10, no less than a range of 10 on the x-axis can be viewed at once without
237
+ * scrolling.
238
+ *
239
+ * @param minXRange The minimum visible range of x-values.
240
+ */
241
+ set visibleXRangeMinimum(minXRange: any);
242
+ /**
243
+ * Limits the maximum and minimum x range that can be visible by pinching and zooming. e.g. minRange=10, maxRange=100 the
244
+ * smallest range to be displayed at once is 10, and no more than a range of 100 values can be viewed at once without
245
+ * scrolling
246
+ *
247
+ * @param minXRange
248
+ * @param maxXRange
249
+ */
74
250
  setVisibleXRange(minXRange: any, maxXRange: any): void;
251
+ /**
252
+ * Sets the size of the area (range on the y-axis) that should be maximum
253
+ * visible at once.
254
+ *
255
+ * @param maxYRange the maximum visible range on the y-axis
256
+ * @param axis the axis for which this limit should apply
257
+ */
75
258
  setVisibleYRangeMaximum(maxYRange: any, axis: any): void;
259
+ /**
260
+ * Sets the size of the area (range on the y-axis) that should be minimum visible at once, no further zooming in possible.
261
+ *
262
+ * @param minYRange
263
+ * @param axis the axis for which this limit should apply
264
+ */
76
265
  setVisibleYRangeMinimum(minYRange: any, axis: any): void;
266
+ /**
267
+ * Limits the maximum and minimum y range that can be visible by pinching and zooming.
268
+ *
269
+ * @param minYRange
270
+ * @param maxYRange
271
+ * @param axis
272
+ */
77
273
  setVisibleYRange(minYRange: any, maxYRange: any, axis: any): void;
274
+ /**
275
+ * Moves the left side of the current viewport to the specified x-position.
276
+ * This also refreshes the chart by calling invalidate().
277
+ *
278
+ * @param xValue
279
+ */
78
280
  moveViewToX(xValue: any): void;
281
+ /**
282
+ * This will move the left side of the current viewport to the specified
283
+ * x-value on the x-axis, and center the viewport to the specified y value on the y-axis.
284
+ * This also refreshes the chart by calling invalidate().
285
+ *
286
+ * @param xValue
287
+ * @param yValue
288
+ * @param axis - which axis should be used as a reference for the y-axis
289
+ */
79
290
  moveViewTo(xValue: any, yValue: any, axis: any): void;
291
+ /**
292
+ * This will move the left side of the current viewport to the specified x-value
293
+ * and center the viewport to the y value animated.
294
+ * This also refreshes the chart by calling invalidate().
295
+ *
296
+ * @param xValue
297
+ * @param yValue
298
+ * @param axis
299
+ * @param duration the duration of the animation in milliseconds
300
+ */
80
301
  moveViewToAnimated(xValue: any, yValue: any, axis: any, duration: any): void;
302
+ /**
303
+ * Centers the viewport to the specified y value on the y-axis.
304
+ * This also refreshes the chart by calling invalidate().
305
+ *
306
+ * @param yValue
307
+ * @param axis - which axis should be used as a reference for the y-axis
308
+ */
81
309
  centerViewToY(yValue: any, axis: any): void;
310
+ /**
311
+ * This will move the center of the current viewport to the specified
312
+ * x and y value.
313
+ * This also refreshes the chart by calling invalidate().
314
+ *
315
+ * @param xValue
316
+ * @param yValue
317
+ * @param axis - which axis should be used as a reference for the y axis
318
+ */
82
319
  centerViewTo(xValue: any, yValue: any, axis: any): void;
320
+ /**
321
+ * This will move the center of the current viewport to the specified
322
+ * x and y value animated.
323
+ *
324
+ * @param xValue
325
+ * @param yValue
326
+ * @param axis
327
+ * @param duration the duration of the animation in milliseconds
328
+ */
83
329
  centerViewToAnimated(xValue: any, yValue: any, axis: any, duration: any): void;
330
+ /**
331
+ * flag that indicates if a custom viewport offset has been set
332
+ */
84
333
  private mCustomViewPortEnabled;
334
+ /**
335
+ * Sets custom offsets for the current ViewPort (the offsets on the sides of
336
+ * the actual chart window). Setting this will prevent the chart from
337
+ * automatically calculating it's offsets. Use resetViewPortOffsets() to
338
+ * undo this. ONLY USE THIS WHEN YOU KNOW WHAT YOU ARE DOING, else use
339
+ * setExtraOffsets(...).
340
+ *
341
+ * @param left
342
+ * @param top
343
+ * @param right
344
+ * @param bottom
345
+ */
85
346
  setViewPortOffsets(left: any, top: any, right: any, bottom: any): void;
347
+ /**
348
+ * Resets all custom offsets set via setViewPortOffsets(...) method. Allows
349
+ * the chart to again calculate all offsets automatically.
350
+ */
86
351
  resetViewPortOffsets(): void;
352
+ /**
353
+ * ################ ################ ################ ################
354
+ */
355
+ /** CODE BELOW IS GETTERS AND SETTERS */
356
+ /**
357
+ * Returns the range of the specified axis.
358
+ *
359
+ * @param axis
360
+ * @return
361
+ */
87
362
  protected getAxisRange(axis: any): number;
88
- protected mGetPositionBuffer: any[];
89
- setMaxVisibleValueCount(count: any): void;
90
- getMaxVisibleCount(): number;
91
- setHighlightPerDragEnabled(enabled: any): void;
92
- isHighlightPerDragEnabled(): boolean;
93
- setGridBackgroundColor(color: any): void;
94
- setDragEnabled(enabled: any): void;
95
- isDragEnabled(): boolean;
96
- setDragXEnabled(enabled: any): void;
97
- isDragXEnabled(): boolean;
98
- setDragYEnabled(enabled: any): void;
99
- isDragYEnabled(): boolean;
100
- setScaleEnabled(enabled: any): void;
101
- setScaleXEnabled(enabled: any): void;
102
- setScaleYEnabled(enabled: any): void;
103
- isScaleXEnabled(): boolean;
104
- isScaleYEnabled(): boolean;
105
- setDoubleTapToZoomEnabled(enabled: any): void;
106
- setHighlightPerTapEnabled(enabled: any): void;
107
- isDoubleTapToZoomEnabled(): boolean;
108
- setDrawGridBackground(enabled: any): void;
109
- setDrawBorders(enabled: any): void;
110
- isDrawBordersEnabled(): boolean;
111
- setClipValuesToContent(enabled: any): void;
112
- isClipValuesToContentEnabled(): boolean;
113
- setClipDataToContent(enabled: any): void;
114
- isClipDataToContentEnabled(): boolean;
363
+ /**
364
+ * Returns a recyclable MPPointF instance.
365
+ * Returns the position (in pixels) the provided Entry has inside the chart
366
+ * view or null, if the provided Entry is null.
367
+ *
368
+ * @param e
369
+ * @return
370
+ */
371
+ getPosition(e: U, axis: any): {
372
+ x: number;
373
+ y: number;
374
+ };
375
+ /**
376
+ * Set this to true to allow highlighting per dragging over the chart
377
+ * surface when it is fully zoomed out. Default: true
378
+ *
379
+ * @param enabled
380
+ */
381
+ set highlightPerDragEnabled(enabled: boolean);
382
+ get highlightPerDragEnabled(): boolean;
383
+ /**
384
+ * Sets the color for the background of the chart-drawing area (everything
385
+ * behind the grid lines).
386
+ *
387
+ * @param color
388
+ */
389
+ set gridBackgroundColor(color: any);
390
+ /**
391
+ * Set this to true to enable dragging (moving the chart with the finger)
392
+ * for the chart (this does not effect scaling).
393
+ *
394
+ * @param enabled
395
+ */
396
+ set dragEnabled(enabled: boolean);
397
+ /**
398
+ * Returns true if dragging is enabled for the chart, false if not.
399
+ */
400
+ get dragEnabled(): boolean;
401
+ /**
402
+ * Set this to true to enable scaling (zooming in and out by gesture) for
403
+ * the chart (this does not effect dragging) on both X- and Y-Axis.
404
+ *
405
+ * @param enabled
406
+ */
407
+ set scaleEnabled(enabled: any);
408
+ set scaleXEnabled(enabled: boolean);
409
+ get scaleXEnabled(): boolean;
410
+ set scaleYEnabled(enabled: boolean);
411
+ get scaleYEnabled(): boolean;
412
+ /**
413
+ * Set this to true to enable zooming in by double-tap on the chart.
414
+ * Default: enabled
415
+ *
416
+ * @param enabled
417
+ */
418
+ set doubleTapToZoomEnabled(enabled: boolean);
419
+ /**
420
+ * Returns true if zooming via double-tap is enabled false if not.
421
+ */
422
+ get doubleTapToZoomEnabled(): boolean;
423
+ set highlightPerTapEnabled(enabled: boolean);
424
+ get highlightPerTapEnabled(): boolean;
425
+ /**
426
+ * wheter to highlight drawing will be clipped to contentRect,
427
+ * otherwise they can bleed outside the content rect.
428
+ */
115
429
  clipHighlightToContent: boolean;
116
- setDrawHighlight(enabled: any): void;
117
- isDrawHighlightEnabled(): boolean;
430
+ /**
431
+ * Sets the width of the border lines in dp.
432
+ *
433
+ * @param width
434
+ */
118
435
  setBorderWidth(width: any): void;
436
+ /**
437
+ * Sets the color of the chart border lines.
438
+ *
439
+ * @param color
440
+ */
119
441
  setBorderColor(color: any): void;
120
- getMinOffset(): number;
121
- setMinOffset(minOffset: any): void;
122
- isKeepPositionOnRotation(): boolean;
123
- setKeepPositionOnRotation(keepPositionOnRotation: any): void;
442
+ /**
443
+ * Returns a recyclable MPPointD instance
444
+ * Returns the x and y values in the chart at the given touch point
445
+ * (encapsulated in a MPPointD). This method transforms pixel coordinates to
446
+ * coordinates / values in the chart. This is the opposite method to
447
+ * getPixelForValues(...).
448
+ *
449
+ * @param x
450
+ * @param y
451
+ * @return
452
+ */
124
453
  getValuesByTouchPoint(x: any, y: any, axis: any): any;
454
+ /**
455
+ * Returns a recyclable MPPointD instance
456
+ * Transforms the given chart values into pixels. This is the opposite
457
+ * method to getValuesByTouchPoint(...).
458
+ *
459
+ * @param x
460
+ * @param y
461
+ * @return
462
+ */
125
463
  getPixelForValues(x: any, y: any, axis: any): {
126
464
  x: number;
127
465
  y: number;
128
466
  };
467
+ /**
468
+ * Returns a recyclable MPPointD instance
469
+ * Transforms the given chart values into pixels. This is the opposite
470
+ * method to getValuesByTouchPoint(...).
471
+ *
472
+ * @param set
473
+ * @param entry
474
+ * @param entry
475
+ * @return
476
+ */
477
+ getPixelForEntry(set: IDataSet<Entry>, entry: Entry, index: any): {
478
+ x: number;
479
+ y: number;
480
+ };
481
+ /**
482
+ * returns the Entry object displayed at the touched position of the chart
483
+ *
484
+ * @param x
485
+ * @param y
486
+ * @return
487
+ */
129
488
  getEntryByTouchPoint(x: any, y: any): Entry;
489
+ /**
490
+ * returns the DataSet object displayed at the touched position of the chart
491
+ *
492
+ * @param x
493
+ * @param y
494
+ * @return
495
+ */
130
496
  getDataSetByTouchPoint(x: any, y: any): D;
497
+ /**
498
+ * buffer for storing lowest visible x point
499
+ */
131
500
  protected posForGetLowestVisibleX: {
132
501
  x: number;
133
502
  y: number;
134
503
  };
135
- getLowestVisibleX(): number;
504
+ /**
505
+ * Returns the lowest x-index (value on the x-axis) that is still visible on
506
+ * the chart.
507
+ */
508
+ get lowestVisibleX(): number;
509
+ /**
510
+ * buffer for storing highest visible x point
511
+ */
136
512
  protected posForGetHighestVisibleX: {
137
513
  x: number;
138
514
  y: number;
139
515
  };
140
- getHighestVisibleX(): number;
516
+ /**
517
+ * Returns the highest x-index (value on the x-axis) that is still visible
518
+ * on the chart.
519
+ */
520
+ get highestVisibleX(): number;
521
+ /**
522
+ * Returns the range visible on the x-axis.
523
+ */
141
524
  getVisibleXRange(): number;
525
+ /**
526
+ * returns the current x-scale factor
527
+ */
142
528
  getScaleX(): number;
529
+ /**
530
+ * returns the current y-scale factor
531
+ */
143
532
  getScaleY(): number;
533
+ /**
534
+ * if the chart is fully zoomed out, return true
535
+ */
144
536
  isFullyZoomedOut(): boolean;
537
+ /**
538
+ * Returns the left y-axis object. In the horizontal bar-chart, this is the
539
+ * top axis.
540
+ */
541
+ get leftAxis(): YAxis;
542
+ /**
543
+ * @deprecated use leftAxis
544
+ */
145
545
  get axisLeft(): YAxis;
546
+ /**
547
+ * Returns the right y-axis object. In the horizontal bar-chart, this is the
548
+ * bottom axis.
549
+ */
550
+ get rightAxis(): YAxis;
551
+ /**
552
+ * @deprecated use rightAxis
553
+ */
146
554
  get axisRight(): YAxis;
147
- getAxisLeft(): YAxis;
148
- getAxisRight(): YAxis;
555
+ /**
556
+ * Returns the y-axis object to the corresponding AxisDependency. In the
557
+ * horizontal bar-chart, LEFT == top, RIGHT == BOTTOM
558
+ *
559
+ * @param axis
560
+ * @return
561
+ */
149
562
  getAxis(axis: any): YAxis;
150
563
  isInverted(axis: any): boolean;
151
- setPinchZoom(enabled: any): void;
152
- isPinchZoomEnabled(): boolean;
564
+ /**
565
+ * Set an offset in dp that allows the user to drag the chart over it's
566
+ * bounds on the x-axis.
567
+ *
568
+ * @param offset
569
+ */
153
570
  setDragOffsetX(offset: any): void;
571
+ /**
572
+ * Set an offset in dp that allows the user to drag the chart over it's
573
+ * bounds on the y-axis.
574
+ *
575
+ * @param offset
576
+ */
154
577
  setDragOffsetY(offset: any): void;
578
+ /**
579
+ * Returns true if both drag offsets (x and y) are zero or smaller.
580
+ */
155
581
  hasNoDragOffset(): boolean;
156
- getRendererXAxis(): XAxisRenderer;
157
- setXAxisRenderer(xAxisRenderer: any): void;
158
- getRendererLeftYAxis(): YAxisRenderer;
159
- setRendererLeftYAxis(rendererLeftYAxis: any): void;
160
- getRendererRightYAxis(): YAxisRenderer;
161
- setRendererRightYAxis(rendererRightYAxis: any): void;
162
- getYChartMax(): number;
163
- getYChartMin(): number;
164
- isAnyAxisInverted(): boolean;
165
- setAutoScaleMinMaxEnabled(enabled: any): void;
166
- isAutoScaleMinMaxEnabled(): boolean;
582
+ get yChartMax(): number;
583
+ get yChartMin(): number;
584
+ /**
585
+ * Returns true if either the left or the right or both axes are inverted.
586
+ */
587
+ get anyAxisInverted(): boolean;
167
588
  protected mOnSizeChangedBuffer: import("@nativescript-community/arraybuffers").TypedArray;
168
589
  onSizeChanged(w: number, h: number, oldw: number, oldh: number): void;
169
590
  addEventListener(arg: string | GestureTypes, callback: (data: EventData) => void, thisArg?: any): void;