@nativescript-community/ui-chart 2.0.7 → 2.0.11

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