@nativescript-community/ui-chart 2.0.7 → 2.0.10

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 +2 -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,385 @@
1
+ import { Color, ObservableArray } from '@nativescript/core';
2
+ import { Font } from '@nativescript/core/ui/styling/font';
3
+ import { DashPathEffect } from '@nativescript-community/ui-canvas';
4
+ import { Entry } from '../../data/Entry';
5
+ import { Rounding } from '../../data/DataSet';
6
+ import { AxisDependency } from '../../components/YAxis';
7
+ import { IValueFormatter } from '../../formatter/IValueFormatter';
8
+ import { ValueFormatter } from '../../formatter/ValueFormatter';
9
+ import { MPPointF } from '../../utils/MPPointF';
10
+ import { LegendForm } from '../../components/Legend';
11
+
12
+ /**
13
+ * Created by Philipp Jahoda on 21/10/15.
14
+ */
15
+ export interface IDataSet<T extends Entry> {
16
+ xProperty: string;
17
+ yProperty: string;
18
+ /** ###### ###### DATA RELATED METHODS ###### ###### */
19
+
20
+ /**
21
+ * Initializes DataSet chart data.
22
+ */
23
+ init();
24
+
25
+ /**
26
+ * returns the minimum y-value this DataSet holds
27
+ */
28
+ readonly yMin: number;
29
+
30
+ /**
31
+ * returns the maximum y-value this DataSet holds
32
+ */
33
+ readonly yMax: number;
34
+
35
+ /**
36
+ * returns the minimum x-value this DataSet holds
37
+ */
38
+ readonly xMin: number;
39
+
40
+ /**
41
+ * returns the maximum x-value this DataSet holds
42
+ */
43
+ readonly xMax: number;
44
+
45
+ /**
46
+ * Returns the number of y-values this DataSet represents -> the size of the y-values array
47
+ * -> yvals.length
48
+ */
49
+ readonly entryCount: number;
50
+
51
+ /**getEntryYValue
52
+ *
53
+ * Returns the values that belong to DataSet.
54
+ */
55
+ values: T[] | ObservableArray<T>;
56
+
57
+ /**
58
+ * Calculates the minimum and maximum x and y values (mXMin, this.mXMax, this.mYMin, this.mYMax).
59
+ */
60
+ calcMinMax();
61
+
62
+ getEntryYValue(e: T): number;
63
+
64
+ /**
65
+ * Calculates the min and max y-values from the Entry closest to the given fromX to the Entry closest to the given toX value.
66
+ * This is only needed for the autoScaleMinMax feature.
67
+ *
68
+ * @param fromX
69
+ * @param toX
70
+ */
71
+ calcMinMaxYRange(fromX: number, toX: number);
72
+
73
+ /**
74
+ * Returns the first Entry object found at the given x-value with binary
75
+ * search.
76
+ * If the no Entry at the specified x-value is found, this method
77
+ * returns the Entry at the closest x-value according to the rounding.
78
+ * INFORMATION: This method does calculations at runtime. Do
79
+ * not over-use in performance critical situations.
80
+ *
81
+ * @param xValue the x-value
82
+ * @param closestToY If there are multiple y-values for the specified x-value,
83
+ * @param rounding determine whether to round up/down/closest
84
+ * if there is no Entry matching the provided x-value
85
+ * @return
86
+ *
87
+ *
88
+ */
89
+ getEntryForXValue(xValue: number, closestToY: number, rounding?: Rounding): T;
90
+
91
+ /**
92
+ * Returns the first Entry object found at the given x-value with binary
93
+ * search.
94
+ * If the no Entry at the specified x-value is found, this method
95
+ * returns the Entry at the closest x-value according to the rounding.
96
+ * INFORMATION: This method does calculations at runtime. Do
97
+ * not over-use in performance critical situations.
98
+ *
99
+ * @param xValue the x-value
100
+ * @param closestToY If there are multiple y-values for the specified x-value,
101
+ * @param rounding determine whether to round up/down/closest
102
+ * if there is no Entry matching the provided x-value
103
+ * @return
104
+ *
105
+ *
106
+ */
107
+ getEntryAndIndexForXValue(xValue: number, closestToY: number, rounding?: Rounding): { entry: T; index: number };
108
+
109
+ /**
110
+ * Returns all Entry objects found at the given x-value with binary
111
+ * search. An empty array if no Entry object at that x-value.
112
+ * INFORMATION: This method does calculations at runtime. Do
113
+ * not over-use in performance critical situations.
114
+ *
115
+ * @param xValue
116
+ * @return
117
+ */
118
+ getEntriesForXValue(xValue: number): T[] | ObservableArray<T>;
119
+
120
+ /**
121
+ * Returns all Entry objects found at the given x-value with binary
122
+ * search. An empty array if no Entry object at that x-value.
123
+ * INFORMATION: This method does calculations at runtime. Do
124
+ * not over-use in performance critical situations.
125
+ *
126
+ * @param xValue
127
+ * @return
128
+ */
129
+ getEntriesAndIndexesForXValue(xValue: number): { entry: T; index: number }[];
130
+
131
+ /**
132
+ * Returns the Entry object found at the given index (NOT xIndex) in the values array.
133
+ *
134
+ * @param index
135
+ * @return
136
+ */
137
+ getEntryForIndex(index: number): T;
138
+
139
+ getEntryXValue(e: BaseEntry, entryIndex: number): number;
140
+
141
+ /**
142
+ * Returns the first Entry index found at the given x-value with binary
143
+ * search.
144
+ * If the no Entry at the specified x-value is found, this method
145
+ * returns the Entry at the closest x-value according to the rounding.
146
+ * INFORMATION: This method does calculations at runtime. Do
147
+ * not over-use in performance critical situations.
148
+ *
149
+ * @param xValue the x-value
150
+ * @param closestToY If there are multiple y-values for the specified x-value,
151
+ * @param rounding determine whether to round up/down/closest
152
+ * if there is no Entry matching the provided x-value
153
+ * @return
154
+ */
155
+ getEntryIndexForXValue(xValue: number, closestToY: number, rounding: Rounding): number;
156
+
157
+ /**
158
+ * Returns the position of the provided entry in the DataSets Entry array.
159
+ * Returns -1 if doesn't exist.
160
+ *
161
+ * @param e
162
+ * @return
163
+ */
164
+ getEntryIndex(e: T): number;
165
+
166
+ /**
167
+ * This method returns the actual
168
+ * index in the Entry array of the DataSet for a given xIndex. IMPORTANT: This method does
169
+ * calculations at runtime, do not over-use in performance critical
170
+ * situations.
171
+ *
172
+ * @param xIndex
173
+ * @return
174
+ */
175
+ getIndexInEntries(xIndex: number): number;
176
+
177
+ /**
178
+ * Adds an Entry to the DataSet dynamically.
179
+ * Entries are added to the end of the list.
180
+ * This will also recalculate the current minimum and maximum
181
+ * values of the DataSet and the value-sum.
182
+ *
183
+ * @param e
184
+ */
185
+ addEntry(e: T): boolean;
186
+
187
+ /**
188
+ * Adds an Entry to the DataSet dynamically.
189
+ * Entries are added to their appropriate index in the values array respective to their x-position.
190
+ * This will also recalculate the current minimum and maximum
191
+ * values of the DataSet and the value-sum.
192
+ *
193
+ * @param e
194
+ */
195
+ addEntryOrdered(e: T);
196
+
197
+ /**
198
+ * Removes the first Entry (at index 0) of this DataSet from the entries array.
199
+ * Returns true if successful, false if not.
200
+ */
201
+ removeFirst(): boolean;
202
+
203
+ /**
204
+ * Removes the last Entry (at index size-1) of this DataSet from the entries array.
205
+ * Returns true if successful, false if not.
206
+ */
207
+ removeLast(): boolean;
208
+
209
+ /**
210
+ * Removes an Entry from the DataSets entries array. This will also
211
+ * recalculate the current minimum and maximum values of the DataSet and the
212
+ * value-sum. Returns true if an Entry was removed, false if no Entry could
213
+ * be removed.
214
+ *
215
+ * @param e
216
+ */
217
+ removeEntry(e: T): boolean;
218
+
219
+ /**
220
+ * Removes the Entry object closest to the given x-value from the DataSet.
221
+ * Returns true if an Entry was removed, false if no Entry could be removed.
222
+ *
223
+ * @param xValue
224
+ */
225
+ removeEntryByXValue(xValue: number): boolean;
226
+
227
+ /**
228
+ * Removes the Entry object at the given index in the values array from the DataSet.
229
+ * Returns true if an Entry was removed, false if no Entry could be removed.
230
+ *
231
+ * @param index
232
+ * @return
233
+ */
234
+ removeEntryAtIndex(index: number): boolean;
235
+
236
+ /**
237
+ * Checks if this DataSet contains the specified Entry. Returns true if so,
238
+ * false if not. NOTE: Performance is pretty bad on this one, do not
239
+ * over-use in performance critical situations.
240
+ *
241
+ * @param entry
242
+ * @return
243
+ */
244
+ contains(entry: T): boolean;
245
+
246
+ /**
247
+ * Removes all values from this DataSet and does all necessary recalculations.
248
+ */
249
+ clear();
250
+
251
+ /** ###### ###### STYLING RELATED (& OTHER) METHODS ###### ###### */
252
+
253
+ /**
254
+ * the label string that describes the DataSet.
255
+ */
256
+ label: string;
257
+
258
+ /**
259
+ * the axis this DataSet should be plotted against.
260
+ */
261
+ axisDependency: AxisDependency;
262
+
263
+ /**
264
+ * returns all the colors that are set for this DataSet
265
+ */
266
+ colors: (string | Color)[];
267
+ color: string | Color;
268
+
269
+ /**
270
+ * Returns the color at the given index of the DataSet's color array.
271
+ * Performs a IndexOutOfBounds check by modulus.
272
+ *
273
+ * @param index
274
+ * @return
275
+ */
276
+ getColor(index?: number): string | Color;
277
+
278
+ /**
279
+ * If set to true, value highlighting is enabled which means that values can
280
+ * be highlighted programmatically or by touch gesture.
281
+ */
282
+ highlightEnabled: boolean;
283
+
284
+ /**
285
+ * Sets the formatter to be used for drawing the values inside the chart. If
286
+ * no formatter is set, the chart will automatically determine a reasonable
287
+ * formatting (concerning decimals) for all the values that are drawn inside
288
+ * the chart. Use chart.defaultValueFormatter to use the formatter
289
+ * calculated by the chart.
290
+ */
291
+ valueFormatter: IValueFormatter;
292
+
293
+ /**
294
+ * Returns true if the valueFormatter object of this DataSet is null.
295
+ */
296
+ readonly needsFormatter: boolean;
297
+
298
+ /**
299
+ * Sets the color the value-labels of this DataSet should have.
300
+ *
301
+ * @param color
302
+ */
303
+ valueTextColor: Color | string;
304
+
305
+ /**
306
+ * Sets a list of colors to be used as the colors for the drawn values.
307
+ */
308
+ valueTextColors: (Color | string)[];
309
+
310
+ /**
311
+ * Sets a Typeface for the value-labels of this DataSet.
312
+ */
313
+ valueTypeface: Font;
314
+
315
+ /**
316
+ * Sets the text-size of the value-labels of this DataSet in dp.
317
+ */
318
+ valueTextSize: number;
319
+
320
+ /**
321
+ * The form to draw for this dataset in the legend.
322
+ * <p/>
323
+ * Return `DEFAULT` to use the default legend form.
324
+ */
325
+ form: LegendForm;
326
+
327
+ /**
328
+ * The form size to draw for this dataset in the legend.
329
+ * <p/>
330
+ * Return `Float.NaN` to use the default legend form size.
331
+ */
332
+ formSize: number;
333
+
334
+ /**
335
+ * The line width for drawing the form of this dataset in the legend
336
+ * <p/>
337
+ * Return `Float.NaN` to use the default legend form line width.
338
+ */
339
+ formLineWidth: number;
340
+
341
+ /**
342
+ * The line dash path effect used for shapes that consist of lines.
343
+ * <p/>
344
+ * Return `null` to use the default legend form line dash effect.
345
+ */
346
+ formLineDashEffect: DashPathEffect;
347
+
348
+ /**
349
+ * set this to true to draw y-values on the chart.
350
+ *
351
+ * NOTE (for bar and line charts): if `maxVisibleValueCount` is reached, no values will be drawn even
352
+ * if this is enabled
353
+ * @param enabled
354
+ */
355
+ drawValuesEnabled: boolean;
356
+
357
+ /**
358
+ * Set this to true to draw y-icons on the chart.
359
+ *
360
+ * NOTE (for bar and line charts): if `maxVisibleValueCount` is reached, no icons will be drawn even
361
+ * if this is enabled
362
+ */
363
+
364
+ drawIconsEnabled: boolean;
365
+
366
+ /**
367
+ * Offset of icons drawn on the chart.
368
+ *
369
+ * For all charts except Pie and Radar it will be ordinary (x offset,y offset).
370
+ *
371
+ * For Pie and Radar chart it will be (y offset, distance from center offset); so if you want icon to be rendered under value, you should increase X component of CGPoint, and if you want icon to be rendered closet to center, you should decrease height component of CGPoint.
372
+ */
373
+ iconsOffset: MPPointF;
374
+
375
+ /**
376
+ * Set the visibility of this DataSet. If not visible, the DataSet will not
377
+ * be drawn to the chart upon refreshing it.
378
+ */
379
+ visible: boolean;
380
+
381
+ /**
382
+ * Returns the shader used for filling the area below the line.
383
+ */
384
+ fillShader: any;
385
+ }
@@ -0,0 +1,67 @@
1
+ import { Mode } from 'src/ui-chart/data/LineDataSet';
2
+ import { IFillFormatter } from 'src/ui-chart/formatter/IFillFormatter';
3
+ import { Entry } from '../../data/Entry';
4
+ import { ILineRadarDataSet } from './ILineRadarDataSet';
5
+
6
+ /**
7
+ * Created by Philpp Jahoda on 21/10/15.
8
+ */
9
+ export interface ILineDataSet extends ILineRadarDataSet<Entry> {
10
+ /**
11
+ * Returns the drawing mode for this line dataset
12
+ */
13
+ mode: Mode;
14
+
15
+ /**
16
+ * Returns the intensity of the cubic lines (the effect intensity).
17
+ * Max = 1 = very cubic, Min = 0.05f = low cubic effect, Default: 0.2f
18
+ */
19
+ cubicIntensity: number;
20
+
21
+ useColorsForFill: boolean;
22
+ useColorsForFill: boolean;
23
+
24
+ circleColors: string[] | Color[];
25
+ /**
26
+ * Returns the size of the drawn circles.
27
+ */
28
+ circleRadius: number;
29
+
30
+ /**
31
+ * Defines whether the circle are drawn in high res (better rendering but slower drawing)
32
+ */
33
+ circleHighRes: boolean;
34
+
35
+ /**
36
+ * Returns the hole radius of the drawn circles.
37
+ */
38
+ circleHoleRadius: number;
39
+
40
+ /**
41
+ * Returns true if drawing circles for this DataSet is enabled, false if not
42
+ */
43
+ drawCirclesEnabled: boolean;
44
+
45
+ /**
46
+ * Returns the color of the inner circle (the circle-hole).
47
+ */
48
+ circleHoleColor: string | Color;
49
+
50
+ /**
51
+ * Returns true if drawing the circle-holes is enabled, false if not.
52
+ */
53
+ drawCircleHoleEnabled: boolean;
54
+
55
+ /**
56
+ * Returns the DashPathEffect that is used for drawing the lines.
57
+ */
58
+ dashPathEffect: DashPathEffect;
59
+
60
+ /**
61
+ * Returns the IFillFormatter that is set for this DataSet.
62
+ */
63
+ fillFormatter: IFillFormatter;
64
+
65
+ applyFiltering(scaleX: number);
66
+ maxFilterNumber: number;
67
+ }
@@ -0,0 +1,35 @@
1
+ import { ILineScatterCandleRadarDataSet } from './ILineScatterCandleRadarDataSet';
2
+ import { Entry } from '../../data/Entry';
3
+ import { RadarEntry } from '../../data/RadarEntry';
4
+ import { ImageSource } from '@nativescript/core';
5
+
6
+ /**
7
+ * Created by Philipp Jahoda on 21/10/15.
8
+ */
9
+ export interface ILineRadarDataSet<T extends Entry> extends ILineScatterCandleRadarDataSet<T> {
10
+ /**
11
+ * Returns the color that is used for filling the line surface area.
12
+ */
13
+ fillColor: Color | string;
14
+
15
+ /**
16
+ * Returns the drawable used for filling the area below the line.
17
+ */
18
+ fillDrawable: ImageSource;
19
+
20
+ /**
21
+ * Returns the alpha value that is used for filling the line surface,
22
+ * default: 85
23
+ */
24
+ fillAlpha: number;
25
+
26
+ /**
27
+ * the stroke-width of the drawn line
28
+ */
29
+ lineWidth: number;
30
+
31
+ /**
32
+ * Rtrue if filled drawing is enabled, false if not
33
+ */
34
+ drawFilledEnabled: boolean;
35
+ }
@@ -0,0 +1,32 @@
1
+ import { PathEffect } from '@nativescript-community/ui-canvas';
2
+ import { Entry } from '../../data/Entry';
3
+ import { IBarLineScatterCandleBubbleDataSet } from './IBarLineScatterCandleBubbleDataSet';
4
+
5
+ /**
6
+ * Created by Philipp Jahoda on 21/10/15.
7
+ */
8
+ export interface ILineScatterCandleRadarDataSet<T extends Entry> extends IBarLineScatterCandleBubbleDataSet<T> {
9
+ /**
10
+ * Returns true if vertical highlight indicator lines are enabled (drawn)
11
+ * @return
12
+ */
13
+ drawVerticalHighlightIndicator: boolea;
14
+
15
+ /**
16
+ * Returns true if vertical highlight indicator lines are enabled (drawn)
17
+ * @return
18
+ */
19
+ drawHorizontalHighlightIndicator: boolean;
20
+
21
+ /**
22
+ * Returns the line-width in which highlight lines are to be drawn.
23
+ * @return
24
+ */
25
+ highlightLineWidth: number;
26
+
27
+ /**
28
+ * Returns the DashPathEffect that is used for highlighting.
29
+ * @return
30
+ */
31
+ highlightDashPathEffect: PathEffect;
32
+ }
@@ -0,0 +1,49 @@
1
+ import { IDataSet } from './IDataSet';
2
+ import { PieEntry } from '../../data/PieEntry';
3
+ import { ValuePosition } from '../../data/PieDataSet';
4
+
5
+ export interface IPieDataSet extends IDataSet<PieEntry> {
6
+ /**
7
+ * the space in pixels between the chart-slices, default 0
8
+ */
9
+ sliceSpace: number;
10
+
11
+ /**
12
+ * When enabled, slice spacing will be 0.0 when the smallest value is going to be
13
+ * smaller than the slice spacing itself.
14
+ */
15
+ automaticallyDisableSliceSpacing: boolean;
16
+
17
+ /**
18
+ * indicates the selection distance of a pie slice
19
+ */
20
+ selectionShift: number;
21
+
22
+ xValuePosition: ValuePosition;
23
+ yValuePosition: ValuePosition;
24
+ usingSliceColorAsValueLineColor: boolean;
25
+ /**
26
+ * When valuePosition is OutsideSlice, indicates line color
27
+ */
28
+ valueLineColor: Color | string;
29
+ /**
30
+ * When valuePosition is OutsideSlice, indicates line width
31
+ */
32
+ valueLineWidth: number;
33
+ /**
34
+ * When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size
35
+ */
36
+ valueLinePart1OffsetPercentage: number;
37
+ /**
38
+ * When valuePosition is OutsideSlice, indicates length of first half of the line
39
+ */
40
+ valueLinePart1Length: number;
41
+ /**
42
+ * When valuePosition is OutsideSlice, indicates length of second half of the line
43
+ */
44
+ valueLinePart2Length: number;
45
+ /**
46
+ * When valuePosition is OutsideSlice, this allows variable line length
47
+ */
48
+ valueLineVariableLength: boolean;
49
+ }
@@ -0,0 +1,21 @@
1
+ import { Color } from '@nativescript/core';
2
+ import { ILineRadarDataSet } from './ILineRadarDataSet';
3
+ import { RadarEntry } from '../../data/RadarEntry';
4
+ /**
5
+ * Created by Philipp Jahoda on 03/11/15.
6
+ */
7
+ export interface IRadarDataSet extends ILineRadarDataSet<RadarEntry> {
8
+ /// flag indicating whether highlight circle should be drawn or not
9
+ drawHighlightCircleEnabled: boolean;
10
+
11
+ highlightCircleFillColor: string | Color;
12
+
13
+ /// The stroke color for highlight circle.
14
+ /// If Utils.COLOR_NONE, the color of the dataset is taken.
15
+ highlightCircleStrokeColor: string | Color;
16
+
17
+ highlightCircleStrokeAlpha: number;
18
+ highlightCircleInnerRadius: number;
19
+ highlightCircleOuterRadius: number;
20
+ highlightCircleStrokeWidth: number;
21
+ }
@@ -0,0 +1,37 @@
1
+ import { Color } from '@nativescript/core';
2
+ import { Entry } from '../../data/Entry';
3
+ import { IShapeRenderer } from '../../renderer/scatter/IShapeRenderer';
4
+ import { ILineScatterCandleRadarDataSet } from './ILineScatterCandleRadarDataSet';
5
+ /**
6
+ * Created by philipp on 21/10/15.
7
+ */
8
+ export interface IScatterDataSet extends ILineScatterCandleRadarDataSet<Entry> {
9
+ /**
10
+ * the size the scattershape will have, in density pixels
11
+ */
12
+ scatterShapeSize: number;
13
+
14
+ /**
15
+ * Sets the ScatterShape this DataSet should be drawn with. This will search for an available IShapeRenderer and set this
16
+ * renderer for the DataSet.
17
+ */
18
+ scatterShape: ScatterShape;
19
+
20
+ /**
21
+ * Renderer responsible for rendering this DataSet, default: square
22
+ */
23
+ shapeRenderer: IShapeRenderer;
24
+
25
+ /**
26
+ * The radius of the hole in the shape (applies to Square, Circle and Triangle)
27
+ * - default: 0.0
28
+ */
29
+ scatterShapeHoleRadius: number;
30
+
31
+ /**
32
+ * Color for the hole in the shape.
33
+ * Setting to `ColorTemplate.COLOR_NONE` will behave as transparent.
34
+ * - default: ColorTemplate.COLOR_NONE
35
+ */
36
+ scatterShapeHoleColor: string | Color;
37
+ }
@@ -0,0 +1,15 @@
1
+ import { BarLineChartBase } from '../charts/BarLineChartBase';
2
+ import { Transformer } from '../utils/Transformer';
3
+ import { ViewPortHandler } from '../utils/ViewPortHandler';
4
+ import { AnimatedViewPortJob } from './AnimatedViewPortJob';
5
+ /**
6
+ * Created by Philipp Jahoda on 19/02/16.
7
+ */
8
+ export declare class AnimatedMoveViewJob extends AnimatedViewPortJob {
9
+ static getInstance(viewPortHandler: ViewPortHandler, xValue: any, yValue: any, trans: Transformer, v: BarLineChartBase<any, any, any>, xOrigin: any, yOrigin: any, duration: any): AnimatedMoveViewJob;
10
+ static recycleInstance(instance: AnimatedMoveViewJob): void;
11
+ constructor(viewPortHandler: ViewPortHandler, xValue: any, yValue: any, trans: Transformer, v: BarLineChartBase<any, any, any>, xOrigin: any, yOrigin: any, duration: any);
12
+ onAnimationUpdate(animation: any): void;
13
+ recycleSelf(): void;
14
+ instantiate(): AnimatedMoveViewJob;
15
+ }
@@ -0,0 +1,42 @@
1
+ import { ObjectPool } from '../utils/ObjectPool';
2
+ import { Utils } from '../utils/Utils';
3
+ import { AnimatedViewPortJob } from './AnimatedViewPortJob';
4
+ /**
5
+ * Created by Philipp Jahoda on 19/02/16.
6
+ */
7
+ export class AnimatedMoveViewJob extends AnimatedViewPortJob {
8
+ static getInstance(viewPortHandler, xValue, yValue, trans, v, xOrigin, yOrigin, duration) {
9
+ const result = pool.get();
10
+ result.mViewPortHandler = viewPortHandler;
11
+ result.xValue = xValue;
12
+ result.yValue = yValue;
13
+ result.transformer = trans;
14
+ result.mView = v;
15
+ result.xOrigin = xOrigin;
16
+ result.yOrigin = yOrigin;
17
+ //result.resetAnimator();
18
+ result.createAnimator(duration);
19
+ return result;
20
+ }
21
+ static recycleInstance(instance) {
22
+ pool.recycle(instance);
23
+ }
24
+ constructor(viewPortHandler, xValue, yValue, trans, v, xOrigin, yOrigin, duration) {
25
+ super(viewPortHandler, xValue, yValue, trans, v, xOrigin, yOrigin, duration);
26
+ }
27
+ onAnimationUpdate(animation) {
28
+ const pts = Utils.getTempArray(2);
29
+ pts[0] = this.xOrigin + (this.xValue - this.xOrigin) * this.phase;
30
+ pts[1] = this.yOrigin + (this.yValue - this.yOrigin) * this.phase;
31
+ this.transformer.pointValuesToPixel(pts);
32
+ this.mViewPortHandler.centerViewPort(pts, this.mView);
33
+ }
34
+ recycleSelf() {
35
+ AnimatedMoveViewJob.recycleInstance(this);
36
+ }
37
+ instantiate() {
38
+ return new AnimatedMoveViewJob(null, 0, 0, null, null, 0, 0, 0);
39
+ }
40
+ }
41
+ const pool = ObjectPool.create(4, new AnimatedMoveViewJob(null, 0, 0, null, null, 0, 0, 0)).setReplenishPercentage(0.5);
42
+ //# sourceMappingURL=AnimatedMoveViewJob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnimatedMoveViewJob.js","sourceRoot":"","sources":["../../../src/ui-chart/jobs/AnimatedMoveViewJob.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,mBAAmB;IACjD,MAAM,CAAC,WAAW,CAAC,eAAgC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAkB,EAAE,CAAkC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ;QAC1J,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC1B,MAAM,CAAC,gBAAgB,GAAG,eAAe,CAAC;QAC1C,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QACvB,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC;QAC3B,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC;QACjB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,yBAAyB;QACzB,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAChC,OAAO,MAAM,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,QAA6B;QACvD,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC3B,CAAC;IAED,YAAY,eAAgC,EAAE,MAAM,EAAE,MAAM,EAAE,KAAkB,EAAE,CAAkC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ;QAC5I,KAAK,CAAC,eAAe,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;IACjF,CAAC;IAEM,iBAAiB,CAAC,SAAS;QAC9B,MAAM,GAAG,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAClC,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAClE,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAElE,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACzC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;IAEM,WAAW;QACd,mBAAmB,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpE,CAAC;CACJ;AACD,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAsB,CAAC,EAAE,IAAI,mBAAmB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC"}