react-native-chart-kit 7.0.0-next.1 → 7.0.0-next.2

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 (428) hide show
  1. package/README.md +8 -7
  2. package/dist/v2/core/data/index.d.ts +3 -0
  3. package/dist/v2/core/data/index.d.ts.map +1 -0
  4. package/dist/v2/core/data/index.js +1 -0
  5. package/dist/v2/core/data/normalize.d.ts +8 -0
  6. package/dist/v2/core/data/normalize.d.ts.map +1 -0
  7. package/dist/v2/core/data/normalize.js +229 -0
  8. package/dist/v2/core/data/normalizeValues.d.ts +16 -0
  9. package/dist/v2/core/data/normalizeValues.d.ts.map +1 -0
  10. package/dist/v2/core/data/normalizeValues.js +96 -0
  11. package/dist/v2/core/data/types.d.ts +161 -0
  12. package/dist/v2/core/data/types.d.ts.map +1 -0
  13. package/dist/v2/core/data/types.js +1 -0
  14. package/dist/v2/core/geometry/areaPath.d.ts +3 -0
  15. package/dist/v2/core/geometry/areaPath.d.ts.map +1 -0
  16. package/dist/v2/core/geometry/areaPath.js +36 -0
  17. package/dist/v2/core/geometry/barRects.d.ts +44 -0
  18. package/dist/v2/core/geometry/barRects.d.ts.map +1 -0
  19. package/dist/v2/core/geometry/barRects.js +201 -0
  20. package/dist/v2/core/geometry/contributionHeatmap.d.ts +49 -0
  21. package/dist/v2/core/geometry/contributionHeatmap.d.ts.map +1 -0
  22. package/dist/v2/core/geometry/contributionHeatmap.js +107 -0
  23. package/dist/v2/core/geometry/horizontalBarRects.d.ts +27 -0
  24. package/dist/v2/core/geometry/horizontalBarRects.d.ts.map +1 -0
  25. package/dist/v2/core/geometry/horizontalBarRects.js +202 -0
  26. package/dist/v2/core/geometry/index.d.ts +12 -0
  27. package/dist/v2/core/geometry/index.d.ts.map +1 -0
  28. package/dist/v2/core/geometry/index.js +11 -0
  29. package/dist/v2/core/geometry/lineDecimation.d.ts +8 -0
  30. package/dist/v2/core/geometry/lineDecimation.d.ts.map +1 -0
  31. package/dist/v2/core/geometry/lineDecimation.js +110 -0
  32. package/dist/v2/core/geometry/linePath.d.ts +5 -0
  33. package/dist/v2/core/geometry/linePath.d.ts.map +1 -0
  34. package/dist/v2/core/geometry/linePath.js +98 -0
  35. package/dist/v2/core/geometry/lineSeries.d.ts +29 -0
  36. package/dist/v2/core/geometry/lineSeries.d.ts.map +1 -0
  37. package/dist/v2/core/geometry/lineSeries.js +51 -0
  38. package/dist/v2/core/geometry/path.d.ts +6 -0
  39. package/dist/v2/core/geometry/path.d.ts.map +1 -0
  40. package/dist/v2/core/geometry/path.js +24 -0
  41. package/dist/v2/core/geometry/pieArcs.d.ts +29 -0
  42. package/dist/v2/core/geometry/pieArcs.d.ts.map +1 -0
  43. package/dist/v2/core/geometry/pieArcs.js +142 -0
  44. package/dist/v2/core/geometry/progressRings.d.ts +30 -0
  45. package/dist/v2/core/geometry/progressRings.d.ts.map +1 -0
  46. package/dist/v2/core/geometry/progressRings.js +104 -0
  47. package/dist/v2/core/geometry/types.d.ts +32 -0
  48. package/dist/v2/core/geometry/types.d.ts.map +1 -0
  49. package/dist/v2/core/geometry/types.js +1 -0
  50. package/dist/v2/core/index.d.ts +6 -0
  51. package/dist/v2/core/index.d.ts.map +1 -0
  52. package/dist/v2/core/index.js +6 -0
  53. package/dist/v2/core/interaction/index.d.ts +5 -0
  54. package/dist/v2/core/interaction/index.d.ts.map +1 -0
  55. package/dist/v2/core/interaction/index.js +2 -0
  56. package/dist/v2/core/interaction/viewport.d.ts +71 -0
  57. package/dist/v2/core/interaction/viewport.d.ts.map +1 -0
  58. package/dist/v2/core/interaction/viewport.js +216 -0
  59. package/dist/v2/core/interaction/viewportTransform.d.ts +17 -0
  60. package/dist/v2/core/interaction/viewportTransform.d.ts.map +1 -0
  61. package/dist/v2/core/interaction/viewportTransform.js +70 -0
  62. package/dist/v2/core/layout/autoPadding.d.ts +3 -0
  63. package/dist/v2/core/layout/autoPadding.d.ts.map +1 -0
  64. package/dist/v2/core/layout/autoPadding.js +33 -0
  65. package/dist/v2/core/layout/chartBox.d.ts +5 -0
  66. package/dist/v2/core/layout/chartBox.d.ts.map +1 -0
  67. package/dist/v2/core/layout/chartBox.js +22 -0
  68. package/dist/v2/core/layout/debugLayout.d.ts +3 -0
  69. package/dist/v2/core/layout/debugLayout.d.ts.map +1 -0
  70. package/dist/v2/core/layout/debugLayout.js +20 -0
  71. package/dist/v2/core/layout/index.d.ts +8 -0
  72. package/dist/v2/core/layout/index.d.ts.map +1 -0
  73. package/dist/v2/core/layout/index.js +6 -0
  74. package/dist/v2/core/layout/labelCollision.d.ts +3 -0
  75. package/dist/v2/core/layout/labelCollision.d.ts.map +1 -0
  76. package/dist/v2/core/layout/labelCollision.js +90 -0
  77. package/dist/v2/core/layout/legendLayout.d.ts +3 -0
  78. package/dist/v2/core/layout/legendLayout.d.ts.map +1 -0
  79. package/dist/v2/core/layout/legendLayout.js +39 -0
  80. package/dist/v2/core/layout/tooltipPlacement.d.ts +3 -0
  81. package/dist/v2/core/layout/tooltipPlacement.d.ts.map +1 -0
  82. package/dist/v2/core/layout/tooltipPlacement.js +76 -0
  83. package/dist/v2/core/layout/types.d.ts +114 -0
  84. package/dist/v2/core/layout/types.d.ts.map +1 -0
  85. package/dist/v2/core/layout/types.js +1 -0
  86. package/dist/v2/core/scales/band.d.ts +15 -0
  87. package/dist/v2/core/scales/band.d.ts.map +1 -0
  88. package/dist/v2/core/scales/band.js +34 -0
  89. package/dist/v2/core/scales/domain.d.ts +6 -0
  90. package/dist/v2/core/scales/domain.d.ts.map +1 -0
  91. package/dist/v2/core/scales/domain.js +109 -0
  92. package/dist/v2/core/scales/index.d.ts +7 -0
  93. package/dist/v2/core/scales/index.d.ts.map +1 -0
  94. package/dist/v2/core/scales/index.js +5 -0
  95. package/dist/v2/core/scales/linear.d.ts +8 -0
  96. package/dist/v2/core/scales/linear.d.ts.map +1 -0
  97. package/dist/v2/core/scales/linear.js +22 -0
  98. package/dist/v2/core/scales/ticks.d.ts +4 -0
  99. package/dist/v2/core/scales/ticks.d.ts.map +1 -0
  100. package/dist/v2/core/scales/ticks.js +111 -0
  101. package/dist/v2/core/scales/time.d.ts +8 -0
  102. package/dist/v2/core/scales/time.d.ts.map +1 -0
  103. package/dist/v2/core/scales/time.js +23 -0
  104. package/dist/v2/core/scales/types.d.ts +46 -0
  105. package/dist/v2/core/scales/types.d.ts.map +1 -0
  106. package/dist/v2/core/scales/types.js +1 -0
  107. package/dist/v2/index.d.ts +1 -0
  108. package/dist/v2/index.js +1 -0
  109. package/dist/v2/react-native/charts/bar/BarChart.d.ts +6 -0
  110. package/dist/v2/react-native/charts/bar/BarChart.d.ts.map +1 -0
  111. package/dist/v2/react-native/charts/bar/BarChart.js +198 -0
  112. package/dist/v2/react-native/charts/bar/BarChartSurface.d.ts +36 -0
  113. package/dist/v2/react-native/charts/bar/BarChartSurface.d.ts.map +1 -0
  114. package/dist/v2/react-native/charts/bar/BarChartSurface.js +126 -0
  115. package/dist/v2/react-native/charts/bar/StackedBarChart.d.ts +4 -0
  116. package/dist/v2/react-native/charts/bar/StackedBarChart.d.ts.map +1 -0
  117. package/dist/v2/react-native/charts/bar/StackedBarChart.js +9 -0
  118. package/dist/v2/react-native/charts/bar/accessibility.d.ts +31 -0
  119. package/dist/v2/react-native/charts/bar/accessibility.d.ts.map +1 -0
  120. package/dist/v2/react-native/charts/bar/accessibility.js +87 -0
  121. package/dist/v2/react-native/charts/bar/interaction.d.ts +18 -0
  122. package/dist/v2/react-native/charts/bar/interaction.d.ts.map +1 -0
  123. package/dist/v2/react-native/charts/bar/interaction.js +62 -0
  124. package/dist/v2/react-native/charts/bar/model.d.ts +3 -0
  125. package/dist/v2/react-native/charts/bar/model.d.ts.map +1 -0
  126. package/dist/v2/react-native/charts/bar/model.js +326 -0
  127. package/dist/v2/react-native/charts/bar/modelUtils.d.ts +27 -0
  128. package/dist/v2/react-native/charts/bar/modelUtils.d.ts.map +1 -0
  129. package/dist/v2/react-native/charts/bar/modelUtils.js +58 -0
  130. package/dist/v2/react-native/charts/bar/options.d.ts +7 -0
  131. package/dist/v2/react-native/charts/bar/options.d.ts.map +1 -0
  132. package/dist/v2/react-native/charts/bar/options.js +49 -0
  133. package/dist/v2/react-native/charts/bar/rendererSafety.d.ts +12 -0
  134. package/dist/v2/react-native/charts/bar/rendererSafety.d.ts.map +1 -0
  135. package/dist/v2/react-native/charts/bar/rendererSafety.js +31 -0
  136. package/dist/v2/react-native/charts/bar/selectionAnimation.d.ts +42 -0
  137. package/dist/v2/react-native/charts/bar/selectionAnimation.d.ts.map +1 -0
  138. package/dist/v2/react-native/charts/bar/selectionAnimation.js +158 -0
  139. package/dist/v2/react-native/charts/bar/stackedCompat.d.ts +55 -0
  140. package/dist/v2/react-native/charts/bar/stackedCompat.d.ts.map +1 -0
  141. package/dist/v2/react-native/charts/bar/stackedCompat.js +105 -0
  142. package/dist/v2/react-native/charts/bar/tooltip.d.ts +11 -0
  143. package/dist/v2/react-native/charts/bar/tooltip.d.ts.map +1 -0
  144. package/dist/v2/react-native/charts/bar/tooltip.js +15 -0
  145. package/dist/v2/react-native/charts/bar/tooltipModel.d.ts +33 -0
  146. package/dist/v2/react-native/charts/bar/tooltipModel.d.ts.map +1 -0
  147. package/dist/v2/react-native/charts/bar/tooltipModel.js +40 -0
  148. package/dist/v2/react-native/charts/bar/tooltipPlacement.d.ts +9 -0
  149. package/dist/v2/react-native/charts/bar/tooltipPlacement.d.ts.map +1 -0
  150. package/dist/v2/react-native/charts/bar/tooltipPlacement.js +9 -0
  151. package/dist/v2/react-native/charts/bar/types.d.ts +211 -0
  152. package/dist/v2/react-native/charts/bar/types.d.ts.map +1 -0
  153. package/dist/v2/react-native/charts/bar/types.js +1 -0
  154. package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.d.ts +10 -0
  155. package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.d.ts.map +1 -0
  156. package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.js +87 -0
  157. package/dist/v2/react-native/charts/bar/viewport.d.ts +20 -0
  158. package/dist/v2/react-native/charts/bar/viewport.d.ts.map +1 -0
  159. package/dist/v2/react-native/charts/bar/viewport.js +47 -0
  160. package/dist/v2/react-native/charts/contribution/ContributionGraph.d.ts +13 -0
  161. package/dist/v2/react-native/charts/contribution/ContributionGraph.d.ts.map +1 -0
  162. package/dist/v2/react-native/charts/contribution/ContributionGraph.js +65 -0
  163. package/dist/v2/react-native/charts/contribution/accessibility.d.ts +25 -0
  164. package/dist/v2/react-native/charts/contribution/accessibility.d.ts.map +1 -0
  165. package/dist/v2/react-native/charts/contribution/accessibility.js +50 -0
  166. package/dist/v2/react-native/charts/contribution/model.d.ts +17 -0
  167. package/dist/v2/react-native/charts/contribution/model.d.ts.map +1 -0
  168. package/dist/v2/react-native/charts/contribution/model.js +102 -0
  169. package/dist/v2/react-native/charts/contribution/types.d.ts +50 -0
  170. package/dist/v2/react-native/charts/contribution/types.d.ts.map +1 -0
  171. package/dist/v2/react-native/charts/contribution/types.js +1 -0
  172. package/dist/v2/react-native/charts/line/AreaChart.d.ts +3 -0
  173. package/dist/v2/react-native/charts/line/AreaChart.d.ts.map +1 -0
  174. package/dist/v2/react-native/charts/line/AreaChart.js +3 -0
  175. package/dist/v2/react-native/charts/line/ChartSurface.d.ts +16 -0
  176. package/dist/v2/react-native/charts/line/ChartSurface.d.ts.map +1 -0
  177. package/dist/v2/react-native/charts/line/ChartSurface.js +151 -0
  178. package/dist/v2/react-native/charts/line/LineChart.d.ts +6 -0
  179. package/dist/v2/react-native/charts/line/LineChart.d.ts.map +1 -0
  180. package/dist/v2/react-native/charts/line/LineChart.js +294 -0
  181. package/dist/v2/react-native/charts/line/StickyYAxis.d.ts +15 -0
  182. package/dist/v2/react-native/charts/line/StickyYAxis.d.ts.map +1 -0
  183. package/dist/v2/react-native/charts/line/StickyYAxis.js +26 -0
  184. package/dist/v2/react-native/charts/line/accessibility.d.ts +34 -0
  185. package/dist/v2/react-native/charts/line/accessibility.d.ts.map +1 -0
  186. package/dist/v2/react-native/charts/line/accessibility.js +103 -0
  187. package/dist/v2/react-native/charts/line/axisLabels.d.ts +37 -0
  188. package/dist/v2/react-native/charts/line/axisLabels.d.ts.map +1 -0
  189. package/dist/v2/react-native/charts/line/axisLabels.js +55 -0
  190. package/dist/v2/react-native/charts/line/debugLayout.d.ts +26 -0
  191. package/dist/v2/react-native/charts/line/debugLayout.d.ts.map +1 -0
  192. package/dist/v2/react-native/charts/line/debugLayout.js +77 -0
  193. package/dist/v2/react-native/charts/line/debugOverlay.d.ts +9 -0
  194. package/dist/v2/react-native/charts/line/debugOverlay.d.ts.map +1 -0
  195. package/dist/v2/react-native/charts/line/debugOverlay.js +30 -0
  196. package/dist/v2/react-native/charts/line/defaultTooltip.d.ts +3 -0
  197. package/dist/v2/react-native/charts/line/defaultTooltip.d.ts.map +1 -0
  198. package/dist/v2/react-native/charts/line/defaultTooltip.js +17 -0
  199. package/dist/v2/react-native/charts/line/interaction.d.ts +82 -0
  200. package/dist/v2/react-native/charts/line/interaction.d.ts.map +1 -0
  201. package/dist/v2/react-native/charts/line/interaction.js +94 -0
  202. package/dist/v2/react-native/charts/line/legend.d.ts +35 -0
  203. package/dist/v2/react-native/charts/line/legend.d.ts.map +1 -0
  204. package/dist/v2/react-native/charts/line/legend.js +95 -0
  205. package/dist/v2/react-native/charts/line/markers.d.ts +11 -0
  206. package/dist/v2/react-native/charts/line/markers.d.ts.map +1 -0
  207. package/dist/v2/react-native/charts/line/markers.js +52 -0
  208. package/dist/v2/react-native/charts/line/options.d.ts +172 -0
  209. package/dist/v2/react-native/charts/line/options.d.ts.map +1 -0
  210. package/dist/v2/react-native/charts/line/options.js +168 -0
  211. package/dist/v2/react-native/charts/line/outsidePressSurfaces.d.ts +15 -0
  212. package/dist/v2/react-native/charts/line/outsidePressSurfaces.d.ts.map +1 -0
  213. package/dist/v2/react-native/charts/line/outsidePressSurfaces.js +37 -0
  214. package/dist/v2/react-native/charts/line/overviewProps.d.ts +45 -0
  215. package/dist/v2/react-native/charts/line/overviewProps.d.ts.map +1 -0
  216. package/dist/v2/react-native/charts/line/overviewProps.js +4 -0
  217. package/dist/v2/react-native/charts/line/rangeSelector.d.ts +19 -0
  218. package/dist/v2/react-native/charts/line/rangeSelector.d.ts.map +1 -0
  219. package/dist/v2/react-native/charts/line/rangeSelector.js +176 -0
  220. package/dist/v2/react-native/charts/line/rangeSelectorConfig.d.ts +38 -0
  221. package/dist/v2/react-native/charts/line/rangeSelectorConfig.d.ts.map +1 -0
  222. package/dist/v2/react-native/charts/line/rangeSelectorConfig.js +41 -0
  223. package/dist/v2/react-native/charts/line/referenceLabelPlacement.d.ts +21 -0
  224. package/dist/v2/react-native/charts/line/referenceLabelPlacement.d.ts.map +1 -0
  225. package/dist/v2/react-native/charts/line/referenceLabelPlacement.js +113 -0
  226. package/dist/v2/react-native/charts/line/references.d.ts +62 -0
  227. package/dist/v2/react-native/charts/line/references.d.ts.map +1 -0
  228. package/dist/v2/react-native/charts/line/references.js +156 -0
  229. package/dist/v2/react-native/charts/line/renderer.d.ts +4 -0
  230. package/dist/v2/react-native/charts/line/renderer.d.ts.map +1 -0
  231. package/dist/v2/react-native/charts/line/renderer.js +23 -0
  232. package/dist/v2/react-native/charts/line/responders.d.ts +13 -0
  233. package/dist/v2/react-native/charts/line/responders.d.ts.map +1 -0
  234. package/dist/v2/react-native/charts/line/responders.js +59 -0
  235. package/dist/v2/react-native/charts/line/selection.d.ts +31 -0
  236. package/dist/v2/react-native/charts/line/selection.d.ts.map +1 -0
  237. package/dist/v2/react-native/charts/line/selection.js +26 -0
  238. package/dist/v2/react-native/charts/line/seriesInput.d.ts +4 -0
  239. package/dist/v2/react-native/charts/line/seriesInput.d.ts.map +1 -0
  240. package/dist/v2/react-native/charts/line/seriesInput.js +13 -0
  241. package/dist/v2/react-native/charts/line/seriesStyles.d.ts +20 -0
  242. package/dist/v2/react-native/charts/line/seriesStyles.d.ts.map +1 -0
  243. package/dist/v2/react-native/charts/line/seriesStyles.js +33 -0
  244. package/dist/v2/react-native/charts/line/stickyYAxisLayout.d.ts +6 -0
  245. package/dist/v2/react-native/charts/line/stickyYAxisLayout.d.ts.map +1 -0
  246. package/dist/v2/react-native/charts/line/stickyYAxisLayout.js +2 -0
  247. package/dist/v2/react-native/charts/line/text.d.ts +7 -0
  248. package/dist/v2/react-native/charts/line/text.d.ts.map +1 -0
  249. package/dist/v2/react-native/charts/line/text.js +7 -0
  250. package/dist/v2/react-native/charts/line/thresholdRendering.d.ts +28 -0
  251. package/dist/v2/react-native/charts/line/thresholdRendering.d.ts.map +1 -0
  252. package/dist/v2/react-native/charts/line/thresholdRendering.js +145 -0
  253. package/dist/v2/react-native/charts/line/tooltip.d.ts +70 -0
  254. package/dist/v2/react-native/charts/line/tooltip.d.ts.map +1 -0
  255. package/dist/v2/react-native/charts/line/tooltip.js +87 -0
  256. package/dist/v2/react-native/charts/line/types.d.ts +371 -0
  257. package/dist/v2/react-native/charts/line/types.d.ts.map +1 -0
  258. package/dist/v2/react-native/charts/line/types.js +1 -0
  259. package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.d.ts +13 -0
  260. package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.d.ts.map +1 -0
  261. package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.js +84 -0
  262. package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.d.ts +5 -0
  263. package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.d.ts.map +1 -0
  264. package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.js +141 -0
  265. package/dist/v2/react-native/charts/line/useChartModel.d.ts +103 -0
  266. package/dist/v2/react-native/charts/line/useChartModel.d.ts.map +1 -0
  267. package/dist/v2/react-native/charts/line/useChartModel.js +367 -0
  268. package/dist/v2/react-native/charts/line/useDebugLayout.d.ts +16 -0
  269. package/dist/v2/react-native/charts/line/useDebugLayout.d.ts.map +1 -0
  270. package/dist/v2/react-native/charts/line/useDebugLayout.js +35 -0
  271. package/dist/v2/react-native/charts/line/utils.d.ts +10 -0
  272. package/dist/v2/react-native/charts/line/utils.d.ts.map +1 -0
  273. package/dist/v2/react-native/charts/line/utils.js +40 -0
  274. package/dist/v2/react-native/charts/line/viewportInteraction.d.ts +3 -0
  275. package/dist/v2/react-native/charts/line/viewportInteraction.d.ts.map +1 -0
  276. package/dist/v2/react-native/charts/line/viewportInteraction.js +1 -0
  277. package/dist/v2/react-native/charts/line/viewportInteractionConfig.d.ts +3 -0
  278. package/dist/v2/react-native/charts/line/viewportInteractionConfig.d.ts.map +1 -0
  279. package/dist/v2/react-native/charts/line/viewportInteractionConfig.js +1 -0
  280. package/dist/v2/react-native/charts/line/viewportPinchZoom.d.ts +2 -0
  281. package/dist/v2/react-native/charts/line/viewportPinchZoom.d.ts.map +1 -0
  282. package/dist/v2/react-native/charts/line/viewportPinchZoom.js +1 -0
  283. package/dist/v2/react-native/charts/line/xLabelCandidates.d.ts +13 -0
  284. package/dist/v2/react-native/charts/line/xLabelCandidates.d.ts.map +1 -0
  285. package/dist/v2/react-native/charts/line/xLabelCandidates.js +23 -0
  286. package/dist/v2/react-native/charts/line/xLabels.d.ts +39 -0
  287. package/dist/v2/react-native/charts/line/xLabels.d.ts.map +1 -0
  288. package/dist/v2/react-native/charts/line/xLabels.js +289 -0
  289. package/dist/v2/react-native/charts/line/xScale.d.ts +6 -0
  290. package/dist/v2/react-native/charts/line/xScale.d.ts.map +1 -0
  291. package/dist/v2/react-native/charts/line/xScale.js +25 -0
  292. package/dist/v2/react-native/charts/line/yAxisModel.d.ts +29 -0
  293. package/dist/v2/react-native/charts/line/yAxisModel.d.ts.map +1 -0
  294. package/dist/v2/react-native/charts/line/yAxisModel.js +39 -0
  295. package/dist/v2/react-native/charts/pie/PieChart.d.ts +7 -0
  296. package/dist/v2/react-native/charts/pie/PieChart.d.ts.map +1 -0
  297. package/dist/v2/react-native/charts/pie/PieChart.js +244 -0
  298. package/dist/v2/react-native/charts/pie/accessibility.d.ts +28 -0
  299. package/dist/v2/react-native/charts/pie/accessibility.d.ts.map +1 -0
  300. package/dist/v2/react-native/charts/pie/accessibility.js +49 -0
  301. package/dist/v2/react-native/charts/pie/activeSlice.d.ts +15 -0
  302. package/dist/v2/react-native/charts/pie/activeSlice.d.ts.map +1 -0
  303. package/dist/v2/react-native/charts/pie/activeSlice.js +26 -0
  304. package/dist/v2/react-native/charts/pie/arcLabels.d.ts +32 -0
  305. package/dist/v2/react-native/charts/pie/arcLabels.d.ts.map +1 -0
  306. package/dist/v2/react-native/charts/pie/arcLabels.js +191 -0
  307. package/dist/v2/react-native/charts/pie/interaction.d.ts +26 -0
  308. package/dist/v2/react-native/charts/pie/interaction.d.ts.map +1 -0
  309. package/dist/v2/react-native/charts/pie/interaction.js +66 -0
  310. package/dist/v2/react-native/charts/pie/model.d.ts +15 -0
  311. package/dist/v2/react-native/charts/pie/model.d.ts.map +1 -0
  312. package/dist/v2/react-native/charts/pie/model.js +157 -0
  313. package/dist/v2/react-native/charts/pie/selectionAnimation.d.ts +33 -0
  314. package/dist/v2/react-native/charts/pie/selectionAnimation.d.ts.map +1 -0
  315. package/dist/v2/react-native/charts/pie/selectionAnimation.js +121 -0
  316. package/dist/v2/react-native/charts/pie/sliceSeparator.d.ts +7 -0
  317. package/dist/v2/react-native/charts/pie/sliceSeparator.d.ts.map +1 -0
  318. package/dist/v2/react-native/charts/pie/sliceSeparator.js +26 -0
  319. package/dist/v2/react-native/charts/pie/slices.d.ts +20 -0
  320. package/dist/v2/react-native/charts/pie/slices.d.ts.map +1 -0
  321. package/dist/v2/react-native/charts/pie/slices.js +54 -0
  322. package/dist/v2/react-native/charts/pie/types.d.ts +165 -0
  323. package/dist/v2/react-native/charts/pie/types.d.ts.map +1 -0
  324. package/dist/v2/react-native/charts/pie/types.js +1 -0
  325. package/dist/v2/react-native/charts/progress/ProgressChart.d.ts +7 -0
  326. package/dist/v2/react-native/charts/progress/ProgressChart.d.ts.map +1 -0
  327. package/dist/v2/react-native/charts/progress/ProgressChart.js +111 -0
  328. package/dist/v2/react-native/charts/progress/accessibility.d.ts +26 -0
  329. package/dist/v2/react-native/charts/progress/accessibility.d.ts.map +1 -0
  330. package/dist/v2/react-native/charts/progress/accessibility.js +71 -0
  331. package/dist/v2/react-native/charts/progress/animation.d.ts +36 -0
  332. package/dist/v2/react-native/charts/progress/animation.d.ts.map +1 -0
  333. package/dist/v2/react-native/charts/progress/animation.js +103 -0
  334. package/dist/v2/react-native/charts/progress/model.d.ts +14 -0
  335. package/dist/v2/react-native/charts/progress/model.d.ts.map +1 -0
  336. package/dist/v2/react-native/charts/progress/model.js +133 -0
  337. package/dist/v2/react-native/charts/progress/types.d.ts +72 -0
  338. package/dist/v2/react-native/charts/progress/types.d.ts.map +1 -0
  339. package/dist/v2/react-native/charts/progress/types.js +1 -0
  340. package/dist/v2/react-native/index.d.ts +24 -0
  341. package/dist/v2/react-native/index.d.ts.map +1 -0
  342. package/dist/v2/react-native/index.js +14 -0
  343. package/dist/v2/react-native/selection/ChartSelectionProvider.d.ts +27 -0
  344. package/dist/v2/react-native/selection/ChartSelectionProvider.d.ts.map +1 -0
  345. package/dist/v2/react-native/selection/ChartSelectionProvider.js +92 -0
  346. package/dist/v2/react-native/selection/index.d.ts +2 -0
  347. package/dist/v2/react-native/selection/index.d.ts.map +1 -0
  348. package/dist/v2/react-native/selection/index.js +1 -0
  349. package/dist/v2/react-native/selection/scope.d.ts +16 -0
  350. package/dist/v2/react-native/selection/scope.d.ts.map +1 -0
  351. package/dist/v2/react-native/selection/scope.js +18 -0
  352. package/dist/v2/react-native/theme/index.d.ts +4 -0
  353. package/dist/v2/react-native/theme/index.d.ts.map +1 -0
  354. package/dist/v2/react-native/theme/index.js +2 -0
  355. package/dist/v2/react-native/theme/presets.d.ts +84 -0
  356. package/dist/v2/react-native/theme/presets.d.ts.map +1 -0
  357. package/dist/v2/react-native/theme/presets.js +298 -0
  358. package/dist/v2/react-native/theme/provider.d.ts +20 -0
  359. package/dist/v2/react-native/theme/provider.d.ts.map +1 -0
  360. package/dist/v2/react-native/theme/provider.js +27 -0
  361. package/dist/v2/react-native/viewport/bounds.d.ts +7 -0
  362. package/dist/v2/react-native/viewport/bounds.d.ts.map +1 -0
  363. package/dist/v2/react-native/viewport/bounds.js +7 -0
  364. package/dist/v2/react-native/viewport/config.d.ts +13 -0
  365. package/dist/v2/react-native/viewport/config.d.ts.map +1 -0
  366. package/dist/v2/react-native/viewport/config.js +64 -0
  367. package/dist/v2/react-native/viewport/pan.d.ts +23 -0
  368. package/dist/v2/react-native/viewport/pan.d.ts.map +1 -0
  369. package/dist/v2/react-native/viewport/pan.js +110 -0
  370. package/dist/v2/react-native/viewport/panResponder.d.ts +14 -0
  371. package/dist/v2/react-native/viewport/panResponder.d.ts.map +1 -0
  372. package/dist/v2/react-native/viewport/panResponder.js +115 -0
  373. package/dist/v2/react-native/viewport/pinchZoom.d.ts +17 -0
  374. package/dist/v2/react-native/viewport/pinchZoom.d.ts.map +1 -0
  375. package/dist/v2/react-native/viewport/pinchZoom.js +131 -0
  376. package/dist/v2/react-native/viewport/types.d.ts +55 -0
  377. package/dist/v2/react-native/viewport/types.d.ts.map +1 -0
  378. package/dist/v2/react-native/viewport/types.js +1 -0
  379. package/dist/v2/svg-renderer/capabilities.d.ts +3 -0
  380. package/dist/v2/svg-renderer/capabilities.d.ts.map +1 -0
  381. package/dist/v2/svg-renderer/capabilities.js +12 -0
  382. package/dist/v2/svg-renderer/clipPath.d.ts +4 -0
  383. package/dist/v2/svg-renderer/clipPath.d.ts.map +1 -0
  384. package/dist/v2/svg-renderer/clipPath.js +35 -0
  385. package/dist/v2/svg-renderer/defs.d.ts +6 -0
  386. package/dist/v2/svg-renderer/defs.d.ts.map +1 -0
  387. package/dist/v2/svg-renderer/defs.js +18 -0
  388. package/dist/v2/svg-renderer/ensureConsole.d.ts +4 -0
  389. package/dist/v2/svg-renderer/ensureConsole.d.ts.map +1 -0
  390. package/dist/v2/svg-renderer/ensureConsole.js +54 -0
  391. package/dist/v2/svg-renderer/hitRegions.d.ts +3 -0
  392. package/dist/v2/svg-renderer/hitRegions.d.ts.map +1 -0
  393. package/dist/v2/svg-renderer/hitRegions.js +6 -0
  394. package/dist/v2/svg-renderer/index.d.ts +14 -0
  395. package/dist/v2/svg-renderer/index.d.ts.map +1 -0
  396. package/dist/v2/svg-renderer/index.js +13 -0
  397. package/dist/v2/svg-renderer/layerOrder.d.ts +19 -0
  398. package/dist/v2/svg-renderer/layerOrder.d.ts.map +1 -0
  399. package/dist/v2/svg-renderer/layerOrder.js +18 -0
  400. package/dist/v2/svg-renderer/layers.d.ts +3 -0
  401. package/dist/v2/svg-renderer/layers.d.ts.map +1 -0
  402. package/dist/v2/svg-renderer/layers.js +4 -0
  403. package/dist/v2/svg-renderer/primitives.d.ts +12 -0
  404. package/dist/v2/svg-renderer/primitives.d.ts.map +1 -0
  405. package/dist/v2/svg-renderer/primitives.js +13 -0
  406. package/dist/v2/svg-renderer/renderer.d.ts +4 -0
  407. package/dist/v2/svg-renderer/renderer.d.ts.map +1 -0
  408. package/dist/v2/svg-renderer/renderer.js +24 -0
  409. package/dist/v2/svg-renderer/symbolGeometry.d.ts +6 -0
  410. package/dist/v2/svg-renderer/symbolGeometry.d.ts.map +1 -0
  411. package/dist/v2/svg-renderer/symbolGeometry.js +10 -0
  412. package/dist/v2/svg-renderer/symbols.d.ts +3 -0
  413. package/dist/v2/svg-renderer/symbols.d.ts.map +1 -0
  414. package/dist/v2/svg-renderer/symbols.js +23 -0
  415. package/dist/v2/svg-renderer/testIds.d.ts +2 -0
  416. package/dist/v2/svg-renderer/testIds.d.ts.map +1 -0
  417. package/dist/v2/svg-renderer/testIds.js +10 -0
  418. package/dist/v2/svg-renderer/textMeasurement.d.ts +4 -0
  419. package/dist/v2/svg-renderer/textMeasurement.d.ts.map +1 -0
  420. package/dist/v2/svg-renderer/textMeasurement.js +37 -0
  421. package/dist/v2/svg-renderer/types.d.ts +134 -0
  422. package/dist/v2/svg-renderer/types.d.ts.map +1 -0
  423. package/dist/v2/svg-renderer/types.js +1 -0
  424. package/package.json +39 -48
  425. package/v2/index.d.ts +1 -0
  426. package/v2/index.js +1 -0
  427. package/v2/package.json +6 -0
  428. package/scripts/chartkit-codemod.mjs +0 -256
@@ -0,0 +1,115 @@
1
+ /* eslint-disable react-hooks/refs -- PanResponder stores callbacks during creation; refs keep gesture state outside render. */
2
+ import { useMemo, useRef } from "react";
3
+ import { PanResponder } from "react-native";
4
+ import { resolveChartViewportWindowFromPanDelta } from "../../core/index";
5
+ import { getChartViewportPanDeltaPoints, resolveChartViewportInteractionConfig } from "./config";
6
+ const isSameViewportWindow = (first, second) => first.startIndex === second.startIndex && first.endIndex === second.endIndex;
7
+ const emitViewportChange = ({ nextWindow, onViewportChange }) => {
8
+ onViewportChange?.({
9
+ viewport: {
10
+ startIndex: nextWindow.startIndex,
11
+ endIndex: nextWindow.endIndex
12
+ },
13
+ startIndex: nextWindow.startIndex,
14
+ endIndex: nextWindow.endIndex,
15
+ visibleCount: nextWindow.visibleCount,
16
+ itemCount: nextWindow.itemCount,
17
+ isWindowed: nextWindow.isWindowed,
18
+ source: "mainPlot",
19
+ interaction: "pan"
20
+ });
21
+ };
22
+ export const useChartViewportPanResponder = ({ dataLength, enabled, onPress, onViewportChange, plotBounds, preventBrowserSelection, viewportInteraction, viewportWindow }) => {
23
+ const panStateRef = useRef(undefined);
24
+ return useMemo(() => {
25
+ const config = resolveChartViewportInteractionConfig(viewportInteraction);
26
+ const canPan = enabled &&
27
+ config.pan &&
28
+ onViewportChange !== undefined &&
29
+ dataLength > viewportWindow.visibleCount &&
30
+ viewportWindow.visibleCount > 0 &&
31
+ plotBounds.width > 0;
32
+ const isEnabled = canPan || onPress !== undefined;
33
+ const startPan = () => {
34
+ panStateRef.current = {
35
+ didPan: false,
36
+ lastWindow: viewportWindow,
37
+ startWindow: viewportWindow
38
+ };
39
+ config.onGestureStart?.({ interaction: "pan" });
40
+ };
41
+ const updatePan = (gestureState) => {
42
+ const panState = panStateRef.current;
43
+ if (!canPan || !panState) {
44
+ return;
45
+ }
46
+ if (Math.abs(gestureState.dx) < config.minPanDistance) {
47
+ return;
48
+ }
49
+ const deltaPoints = getChartViewportPanDeltaPoints({
50
+ currentLocationX: gestureState.dx,
51
+ plotWidth: plotBounds.width,
52
+ startLocationX: 0,
53
+ visibleCount: panState.startWindow.visibleCount
54
+ });
55
+ if (deltaPoints === 0) {
56
+ return;
57
+ }
58
+ const nextWindow = resolveChartViewportWindowFromPanDelta({
59
+ currentWindow: panState.startWindow,
60
+ deltaPoints,
61
+ itemCount: dataLength
62
+ });
63
+ if (isSameViewportWindow(nextWindow, panState.lastWindow)) {
64
+ return;
65
+ }
66
+ panStateRef.current = {
67
+ ...panState,
68
+ didPan: true,
69
+ lastWindow: nextWindow
70
+ };
71
+ emitViewportChange({ nextWindow, onViewportChange });
72
+ };
73
+ const endPan = (event) => {
74
+ const didPan = panStateRef.current?.didPan ?? false;
75
+ if (panStateRef.current) {
76
+ panStateRef.current = undefined;
77
+ config.onGestureEnd?.({ interaction: "pan" });
78
+ }
79
+ if (!didPan) {
80
+ onPress?.(event);
81
+ }
82
+ };
83
+ return PanResponder.create({
84
+ onMoveShouldSetPanResponder: (_event, gestureState) => canPan && Math.abs(gestureState.dx) >= config.minPanDistance,
85
+ onPanResponderGrant: (event) => {
86
+ preventBrowserSelection(event);
87
+ if (canPan) {
88
+ startPan();
89
+ }
90
+ },
91
+ onPanResponderMove: (event, gestureState) => {
92
+ preventBrowserSelection(event);
93
+ updatePan(gestureState);
94
+ },
95
+ onPanResponderRelease: endPan,
96
+ onPanResponderTerminate: () => {
97
+ if (panStateRef.current) {
98
+ panStateRef.current = undefined;
99
+ config.onGestureEnd?.({ interaction: "pan" });
100
+ }
101
+ },
102
+ onShouldBlockNativeResponder: () => canPan && config.lockParentScroll,
103
+ onStartShouldSetPanResponder: () => isEnabled
104
+ });
105
+ }, [
106
+ dataLength,
107
+ enabled,
108
+ onPress,
109
+ onViewportChange,
110
+ plotBounds.width,
111
+ preventBrowserSelection,
112
+ viewportInteraction,
113
+ viewportWindow
114
+ ]);
115
+ };
@@ -0,0 +1,17 @@
1
+ import { type ReactNode } from "react";
2
+ import type { PanResponderInstance } from "react-native";
3
+ import { type ResolvedChartViewportWindow } from "../../core/index";
4
+ import type { ChartViewportBounds, ChartViewportChangeEvent, ChartViewportInteractionConfig } from "./types";
5
+ export declare const useChartViewportPinchZoom: ({ dataLength, enabled, onViewportChange, plotBounds, viewportInteraction, viewportWindow }: {
6
+ dataLength: number;
7
+ enabled: boolean;
8
+ onViewportChange: ((event: ChartViewportChangeEvent) => void) | undefined;
9
+ plotBounds: ChartViewportBounds;
10
+ viewportInteraction: boolean | ChartViewportInteractionConfig | undefined;
11
+ viewportWindow: ResolvedChartViewportWindow;
12
+ }) => PanResponderInstance | undefined;
13
+ export declare const ChartViewportGesture: ({ children, gesture }: {
14
+ children: ReactNode;
15
+ gesture: PanResponderInstance | undefined;
16
+ }) => import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=pinchZoom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pinchZoom.d.ts","sourceRoot":"","sources":["../../src/viewport/pinchZoom.tsx"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,KAAK,EAAyB,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,EAEL,KAAK,2BAA2B,EACjC,MAAM,iBAAiB,CAAC;AAMzB,OAAO,KAAK,EACV,mBAAmB,EACnB,wBAAwB,EACxB,8BAA8B,EAC/B,MAAM,SAAS,CAAC;AA2FjB,eAAO,MAAM,yBAAyB,GAAI,4FAOvC;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,CAAC,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC1E,UAAU,EAAE,mBAAmB,CAAC;IAChC,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,GAAG,SAAS,CAAC;IAC1E,cAAc,EAAE,2BAA2B,CAAC;CAC7C,KAAG,oBAAoB,GAAG,SA2F1B,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,uBAGlC;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAC3C,4CAOE,CAAC"}
@@ -0,0 +1,131 @@
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /* eslint-disable react-hooks/refs -- PanResponder stores callbacks during creation; refs keep active pinch state stable across controlled viewport rerenders. */
3
+ import { useMemo, useRef } from "react";
4
+ import { PanResponder, View } from "react-native";
5
+ import { resolveChartViewportWindowFromZoom } from "../../core/index";
6
+ import { getChartViewportPinchZoomFactor, resolveChartViewportInteractionConfig } from "./config";
7
+ const minPinchDistance = 4;
8
+ const isSameViewportWindow = (first, second) => first.startIndex === second.startIndex && first.endIndex === second.endIndex;
9
+ const getTouches = (event) => event.nativeEvent.touches
10
+ .map((touch) => ({
11
+ locationX: touch.locationX,
12
+ locationY: touch.locationY
13
+ }))
14
+ .filter((touch) => Number.isFinite(touch.locationX) && Number.isFinite(touch.locationY));
15
+ const getPinchMetrics = (event) => {
16
+ const [first, second] = getTouches(event);
17
+ if (!first || !second)
18
+ return undefined;
19
+ const dx = second.locationX - first.locationX;
20
+ const dy = second.locationY - first.locationY;
21
+ return {
22
+ distance: Math.hypot(dx, dy),
23
+ focalX: (first.locationX + second.locationX) / 2
24
+ };
25
+ };
26
+ const getAnchorIndex = ({ focalX, plotBounds, viewportWindow }) => {
27
+ if (!Number.isFinite(focalX) || plotBounds.width <= 0) {
28
+ return undefined;
29
+ }
30
+ const plotX = Math.min(Math.max(focalX - plotBounds.x, 0), plotBounds.width);
31
+ const ratio = plotX / plotBounds.width;
32
+ return (viewportWindow.startIndex +
33
+ Math.max(0, viewportWindow.visibleCount - 1) * ratio);
34
+ };
35
+ const emitViewportChange = ({ nextWindow, onViewportChange }) => {
36
+ onViewportChange?.({
37
+ viewport: {
38
+ startIndex: nextWindow.startIndex,
39
+ endIndex: nextWindow.endIndex
40
+ },
41
+ startIndex: nextWindow.startIndex,
42
+ endIndex: nextWindow.endIndex,
43
+ visibleCount: nextWindow.visibleCount,
44
+ itemCount: nextWindow.itemCount,
45
+ isWindowed: nextWindow.isWindowed,
46
+ source: "mainPlot",
47
+ interaction: "pinchZoom"
48
+ });
49
+ };
50
+ export const useChartViewportPinchZoom = ({ dataLength, enabled, onViewportChange, plotBounds, viewportInteraction, viewportWindow }) => {
51
+ const pinchStateRef = useRef(undefined);
52
+ return useMemo(() => {
53
+ const config = resolveChartViewportInteractionConfig(viewportInteraction);
54
+ const canPinch = enabled &&
55
+ config.pinchZoom &&
56
+ onViewportChange !== undefined &&
57
+ dataLength > 1 &&
58
+ viewportWindow.visibleCount > 0 &&
59
+ plotBounds.width > 0;
60
+ if (!canPinch)
61
+ return undefined;
62
+ const startPinch = (event) => {
63
+ const metrics = getPinchMetrics(event);
64
+ if (!metrics || metrics.distance < minPinchDistance)
65
+ return;
66
+ pinchStateRef.current = {
67
+ lastWindow: viewportWindow,
68
+ startDistance: metrics.distance,
69
+ startFocalX: metrics.focalX,
70
+ startWindow: viewportWindow
71
+ };
72
+ config.onGestureStart?.({ interaction: "pinchZoom" });
73
+ };
74
+ const updatePinch = (event) => {
75
+ if (!pinchStateRef.current)
76
+ startPinch(event);
77
+ const pinchState = pinchStateRef.current;
78
+ const metrics = getPinchMetrics(event);
79
+ if (!pinchState || !metrics || metrics.distance < minPinchDistance) {
80
+ return;
81
+ }
82
+ const nextWindow = resolveChartViewportWindowFromZoom({
83
+ anchorIndex: getAnchorIndex({
84
+ focalX: pinchState.startFocalX,
85
+ plotBounds,
86
+ viewportWindow: pinchState.startWindow
87
+ }),
88
+ currentWindow: pinchState.startWindow,
89
+ itemCount: dataLength,
90
+ maxVisibleCount: config.maxVisiblePoints,
91
+ minVisibleCount: config.minVisiblePoints,
92
+ zoomFactor: getChartViewportPinchZoomFactor({
93
+ scale: metrics.distance / pinchState.startDistance,
94
+ sensitivity: config.pinchSensitivity
95
+ })
96
+ });
97
+ if (isSameViewportWindow(nextWindow, pinchState.lastWindow))
98
+ return;
99
+ pinchStateRef.current = {
100
+ ...pinchState,
101
+ lastWindow: nextWindow
102
+ };
103
+ emitViewportChange({ nextWindow, onViewportChange });
104
+ };
105
+ const endPinch = () => {
106
+ if (!pinchStateRef.current)
107
+ return;
108
+ pinchStateRef.current = undefined;
109
+ config.onGestureEnd?.({ interaction: "pinchZoom" });
110
+ };
111
+ const hasTwoTouches = (event) => getTouches(event).length >= 2;
112
+ return PanResponder.create({
113
+ onMoveShouldSetPanResponderCapture: (event) => canPinch && hasTwoTouches(event),
114
+ onPanResponderGrant: startPinch,
115
+ onPanResponderMove: updatePinch,
116
+ onPanResponderRelease: endPinch,
117
+ onPanResponderTerminate: endPinch,
118
+ onPanResponderTerminationRequest: () => !pinchStateRef.current,
119
+ onShouldBlockNativeResponder: () => config.lockParentScroll,
120
+ onStartShouldSetPanResponderCapture: (event) => canPinch && hasTwoTouches(event)
121
+ });
122
+ }, [
123
+ dataLength,
124
+ enabled,
125
+ onViewportChange,
126
+ plotBounds,
127
+ viewportInteraction,
128
+ viewportWindow
129
+ ]);
130
+ };
131
+ export const ChartViewportGesture = ({ children, gesture }) => gesture ? (_jsx(View, { collapsable: false, ...gesture.panHandlers, children: children })) : (_jsx(_Fragment, { children: children }));
@@ -0,0 +1,55 @@
1
+ import type { ChartViewportInitialIndex, ResolvedChartViewportWindow } from "../../core/index";
2
+ export type ChartViewportConfig = {
3
+ endIndex?: number;
4
+ initialIndex?: ChartViewportInitialIndex;
5
+ startIndex?: number;
6
+ visiblePoints?: number;
7
+ };
8
+ export type ChartViewportBounds = {
9
+ height: number;
10
+ width: number;
11
+ x: number;
12
+ y: number;
13
+ };
14
+ export type ChartViewportInteractionType = "pan" | "pinchZoom";
15
+ export type ChartViewportInteractionGestureEvent = {
16
+ interaction: ChartViewportInteractionType;
17
+ };
18
+ export type ChartViewportInteractionConfig = {
19
+ lockParentScroll?: boolean;
20
+ maxVisiblePoints?: number;
21
+ minPanDistance?: number;
22
+ minVisiblePoints?: number;
23
+ onGestureEnd?: (event: ChartViewportInteractionGestureEvent) => void;
24
+ onGestureStart?: (event: ChartViewportInteractionGestureEvent) => void;
25
+ pan?: boolean;
26
+ pinchSensitivity?: number;
27
+ pinchZoom?: boolean;
28
+ };
29
+ export type ChartViewportChangeEvent = {
30
+ endIndex: number;
31
+ interaction: ChartViewportInteractionType;
32
+ isWindowed: boolean;
33
+ itemCount: number;
34
+ source: "mainPlot";
35
+ startIndex: number;
36
+ viewport: ChartViewportConfig;
37
+ visibleCount: number;
38
+ };
39
+ export type ResolvedChartViewportInteractionConfig = {
40
+ lockParentScroll: boolean;
41
+ maxVisiblePoints: number | undefined;
42
+ minPanDistance: number;
43
+ minVisiblePoints: number;
44
+ onGestureEnd: ChartViewportInteractionConfig["onGestureEnd"] | undefined;
45
+ onGestureStart: ChartViewportInteractionConfig["onGestureStart"] | undefined;
46
+ pan: boolean;
47
+ pinchSensitivity: number;
48
+ pinchZoom: boolean;
49
+ };
50
+ export type ChartViewportPanState = {
51
+ lastWindow: ResolvedChartViewportWindow;
52
+ startLocationX: number;
53
+ startWindow: ResolvedChartViewportWindow;
54
+ };
55
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/viewport/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,yBAAyB,CAAC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,KAAK,GAAG,WAAW,CAAC;AAE/D,MAAM,MAAM,oCAAoC,GAAG;IACjD,WAAW,EAAE,4BAA4B,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,oCAAoC,KAAK,IAAI,CAAC;IACrE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,oCAAoC,KAAK,IAAI,CAAC;IACvE,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,4BAA4B,CAAC;IAC1C,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,YAAY,EAAE,8BAA8B,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IACzE,cAAc,EAAE,8BAA8B,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;IAC7E,GAAG,EAAE,OAAO,CAAC;IACb,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,2BAA2B,CAAC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,2BAA2B,CAAC;CAC1C,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { SvgRendererCapabilities, SvgRendererOptions } from "./types";
2
+ export declare const createSvgRendererCapabilities: (options?: SvgRendererOptions) => SvgRendererCapabilities;
3
+ //# sourceMappingURL=capabilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../src/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3E,eAAO,MAAM,6BAA6B,GACxC,UAAS,kBAAuB,KAC/B,uBAWD,CAAC"}
@@ -0,0 +1,12 @@
1
+ export const createSvgRendererCapabilities = (options = {}) => ({
2
+ animation: "reactNative",
3
+ clipPaths: true,
4
+ gradients: true,
5
+ hitRegions: true,
6
+ layers: true,
7
+ shadows: false,
8
+ symbols: true,
9
+ testIds: true,
10
+ textMeasurement: options.measureText ? "custom" : "fallback",
11
+ ...options.capabilities
12
+ });
@@ -0,0 +1,4 @@
1
+ import type { SvgClipPolicy, SvgClipPolicyInput } from "./types";
2
+ export declare const createClipPathRef: (id: string) => string;
3
+ export declare const resolveSvgClipPolicy: ({ enabled, id, inset, x, y, width, height }: SvgClipPolicyInput) => SvgClipPolicy;
4
+ //# sourceMappingURL=clipPath.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clipPath.d.ts","sourceRoot":"","sources":["../src/clipPath.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAc,MAAM,SAAS,CAAC;AAE7E,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,KAAG,MAAuB,CAAC;AAoBvE,eAAO,MAAM,oBAAoB,GAAI,6CAQlC,kBAAkB,KAAG,aAmBvB,CAAC"}
@@ -0,0 +1,35 @@
1
+ export const createClipPathRef = (id) => `url(#${id})`;
2
+ const resolveSpacing = (spacing) => {
3
+ if (typeof spacing === "number") {
4
+ return {
5
+ bottom: spacing,
6
+ left: spacing,
7
+ right: spacing,
8
+ top: spacing
9
+ };
10
+ }
11
+ return {
12
+ bottom: spacing?.bottom ?? 0,
13
+ left: spacing?.left ?? 0,
14
+ right: spacing?.right ?? 0,
15
+ top: spacing?.top ?? 0
16
+ };
17
+ };
18
+ export const resolveSvgClipPolicy = ({ enabled = true, id, inset, x, y, width, height }) => {
19
+ if (!enabled) {
20
+ return { enabled: false };
21
+ }
22
+ const spacing = resolveSpacing(inset);
23
+ const clipRect = {
24
+ height: Math.max(0, height - spacing.top - spacing.bottom),
25
+ id,
26
+ width: Math.max(0, width - spacing.left - spacing.right),
27
+ x: x + spacing.left,
28
+ y: y + spacing.top
29
+ };
30
+ return {
31
+ clipPath: createClipPathRef(id),
32
+ clipRect,
33
+ enabled: true
34
+ };
35
+ };
@@ -0,0 +1,6 @@
1
+ import "./ensureConsole";
2
+ import type { SvgClipRectProps, SvgLinearGradientDefProps } from "./types";
3
+ export { createClipPathRef } from "./clipPath";
4
+ export declare const SvgClipRect: ({ id, x, y, width, height }: SvgClipRectProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const SvgLinearGradientDef: ({ stops, ...props }: SvgLinearGradientDefProps) => import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=defs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../src/defs.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAIzB,OAAO,KAAK,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAE3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,WAAW,GAAI,6BAA6B,gBAAgB,4CAIxE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,qBAGlC,yBAAyB,4CAkB3B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "./ensureConsole";
3
+ import { ClipPath, LinearGradient, Rect, Stop } from "react-native-svg";
4
+ export { createClipPathRef } from "./clipPath";
5
+ export const SvgClipRect = ({ id, x, y, width, height }) => (_jsx(ClipPath, { id: id, children: _jsx(Rect, { x: x, y: y, width: width, height: height }) }));
6
+ export const SvgLinearGradientDef = ({ stops, ...props }) => (_jsx(LinearGradient, { ...props, children: stops.map((stop, index) => {
7
+ const stopProps = stop.opacity === undefined
8
+ ? {
9
+ offset: stop.offset,
10
+ stopColor: stop.color
11
+ }
12
+ : {
13
+ offset: stop.offset,
14
+ stopColor: stop.color,
15
+ stopOpacity: stop.opacity
16
+ };
17
+ return _jsx(Stop, { ...stopProps }, `${stop.offset}-${index}`);
18
+ }) }));
@@ -0,0 +1,4 @@
1
+ type RuntimeConsole = Record<string, unknown>;
2
+ export declare function ensureRuntimeConsole(): RuntimeConsole;
3
+ export {};
4
+ //# sourceMappingURL=ensureConsole.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureConsole.d.ts","sourceRoot":"","sources":["../src/ensureConsole.ts"],"names":[],"mappings":"AAAA,KAAK,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AA4C9C,wBAAgB,oBAAoB,mBA0BnC"}
@@ -0,0 +1,54 @@
1
+ const noop = () => undefined;
2
+ const consoleMethods = [
3
+ "debug",
4
+ "error",
5
+ "info",
6
+ "log",
7
+ "trace",
8
+ "warn"
9
+ ];
10
+ function getRuntimeRoots() {
11
+ const roots = [];
12
+ const addRoot = (value) => {
13
+ if (value && typeof value === "object") {
14
+ const root = value;
15
+ if (!roots.includes(root)) {
16
+ roots.push(root);
17
+ }
18
+ }
19
+ };
20
+ addRoot(globalThis);
21
+ addRoot(globalThis.global);
22
+ try {
23
+ if (typeof global !== "undefined") {
24
+ addRoot(global);
25
+ }
26
+ }
27
+ catch {
28
+ // Some embedded runtimes expose only globalThis.
29
+ }
30
+ return roots;
31
+ }
32
+ export function ensureRuntimeConsole() {
33
+ const roots = getRuntimeRoots();
34
+ const runtimeConsole = roots
35
+ .map((root) => root.console)
36
+ .find((value) => value && typeof value === "object") ?? {};
37
+ for (const root of roots) {
38
+ root.console = runtimeConsole;
39
+ }
40
+ for (const method of consoleMethods) {
41
+ if (typeof runtimeConsole[method] !== "function") {
42
+ runtimeConsole[method] = noop;
43
+ }
44
+ }
45
+ if (typeof runtimeConsole.assert !== "function") {
46
+ runtimeConsole.assert = (condition, ...messages) => {
47
+ if (!condition) {
48
+ runtimeConsole.error(...messages);
49
+ }
50
+ };
51
+ }
52
+ return runtimeConsole;
53
+ }
54
+ ensureRuntimeConsole();
@@ -0,0 +1,3 @@
1
+ import type { SvgHitRegionProps, SvgRectProps } from "./types";
2
+ export declare const createSvgHitRegionProps: ({ disabled, fill, fillOpacity, pointerEvents, ...props }: SvgHitRegionProps) => SvgRectProps;
3
+ //# sourceMappingURL=hitRegions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hitRegions.d.ts","sourceRoot":"","sources":["../src/hitRegions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,uBAAuB,GAAI,0DAMrC,iBAAiB,KAAG,YAKrB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export const createSvgHitRegionProps = ({ disabled = false, fill = "#000", fillOpacity = 0.001, pointerEvents, ...props }) => ({
2
+ ...props,
3
+ fill,
4
+ fillOpacity,
5
+ pointerEvents: pointerEvents ?? (disabled ? "none" : "auto")
6
+ });
@@ -0,0 +1,14 @@
1
+ export * from "./capabilities";
2
+ export * from "./clipPath";
3
+ export * from "./defs";
4
+ export * from "./hitRegions";
5
+ export * from "./layerOrder";
6
+ export * from "./layers";
7
+ export * from "./primitives";
8
+ export * from "./renderer";
9
+ export * from "./symbolGeometry";
10
+ export * from "./symbols";
11
+ export * from "./testIds";
12
+ export * from "./textMeasurement";
13
+ export * from "./types";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,13 @@
1
+ export * from "./capabilities";
2
+ export * from "./clipPath";
3
+ export * from "./defs";
4
+ export * from "./hitRegions";
5
+ export * from "./layerOrder";
6
+ export * from "./layers";
7
+ export * from "./primitives";
8
+ export * from "./renderer";
9
+ export * from "./symbolGeometry";
10
+ export * from "./symbols";
11
+ export * from "./testIds";
12
+ export * from "./textMeasurement";
13
+ export * from "./types";
@@ -0,0 +1,19 @@
1
+ export declare const chartRenderLayers: {
2
+ readonly background: 0;
3
+ readonly plot: 10;
4
+ readonly grid: 20;
5
+ readonly axes: 30;
6
+ readonly referenceBands: 35;
7
+ readonly dataArea: 40;
8
+ readonly data: 50;
9
+ readonly referenceLines: 55;
10
+ readonly markers: 60;
11
+ readonly referenceLabels: 65;
12
+ readonly overlays: 70;
13
+ readonly interaction: 80;
14
+ readonly debug: 90;
15
+ };
16
+ export type ChartRenderLayerName = keyof typeof chartRenderLayers;
17
+ export declare const chartRenderLayerOrder: ChartRenderLayerName[];
18
+ export declare const getChartRenderLayerTestId: (name: ChartRenderLayerName) => string;
19
+ //# sourceMappingURL=layerOrder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layerOrder.d.ts","sourceRoot":"","sources":["../src/layerOrder.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAcpB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AAElE,eAAO,MAAM,qBAAqB,EAE7B,oBAAoB,EAAE,CAAC;AAE5B,eAAO,MAAM,yBAAyB,GAAI,MAAM,oBAAoB,WAC9B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { createSvgTestId } from "./testIds";
2
+ export const chartRenderLayers = {
3
+ background: 0,
4
+ plot: 10,
5
+ grid: 20,
6
+ axes: 30,
7
+ referenceBands: 35,
8
+ dataArea: 40,
9
+ data: 50,
10
+ referenceLines: 55,
11
+ markers: 60,
12
+ referenceLabels: 65,
13
+ overlays: 70,
14
+ interaction: 80,
15
+ debug: 90
16
+ };
17
+ export const chartRenderLayerOrder = Object.keys(chartRenderLayers);
18
+ export const getChartRenderLayerTestId = (name) => createSvgTestId("chart-layer", name);
@@ -0,0 +1,3 @@
1
+ import type { SvgLayerProps } from "./types";
2
+ export declare const SvgLayer: ({ children, name, testID, ...props }: SvgLayerProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=layers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layers.d.ts","sourceRoot":"","sources":["../src/layers.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,QAAQ,GAAI,sCAKtB,aAAa,4CAIf,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { SvgGroup } from "./primitives";
3
+ import { getChartRenderLayerTestId } from "./layerOrder";
4
+ export const SvgLayer = ({ children, name, testID, ...props }) => (_jsx(SvgGroup, { testID: testID ?? getChartRenderLayerTestId(name), ...props, children: children }));
@@ -0,0 +1,12 @@
1
+ import "./ensureConsole";
2
+ import type { SvgCircleProps, SvgDefsProps, SvgGroupProps, SvgHitRegionProps, SvgLineProps, SvgPathProps, SvgRectProps, SvgSurfaceProps, SvgTextProps } from "./types";
3
+ export declare const SvgSurface: ({ children, width, height, ...props }: SvgSurfaceProps) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const SvgGroup: ({ children, ...props }: SvgGroupProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const SvgPath: (props: SvgPathProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SvgRect: (props: SvgRectProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const SvgHitRegion: (props: SvgHitRegionProps) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const SvgCircle: (props: SvgCircleProps) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const SvgText: ({ children, ...props }: SvgTextProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const SvgLine: (props: SvgLineProps) => import("react/jsx-runtime").JSX.Element;
11
+ export declare const SvgDefs: ({ children }: SvgDefsProps) => import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=primitives.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.tsx"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,CAAC;AAKzB,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,UAAU,GAAI,uCAKxB,eAAe,4CASjB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,wBAAwB,aAAa,4CAE7D,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CAAwB,CAAC;AACpE,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CAAwB,CAAC;AACpE,eAAO,MAAM,YAAY,GAAI,OAAO,iBAAiB,4CAEpD,CAAC;AACF,eAAO,MAAM,SAAS,GAAI,OAAO,cAAc,4CAA0B,CAAC;AAC1E,eAAO,MAAM,OAAO,GAAI,wBAAwB,YAAY,4CAE3D,CAAC;AACF,eAAO,MAAM,OAAO,GAAI,OAAO,YAAY,4CAAwB,CAAC;AACpE,eAAO,MAAM,OAAO,GAAI,cAAc,YAAY,4CAA4B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import "./ensureConsole";
3
+ import Svg, { Circle, Defs, G, Line, Path, Rect, Text } from "react-native-svg";
4
+ import { createSvgHitRegionProps } from "./hitRegions";
5
+ export const SvgSurface = ({ children, width, height, ...props }) => (_jsx(Svg, { width: width, height: height, viewBox: `0 0 ${width} ${height}`, ...props, children: children }));
6
+ export const SvgGroup = ({ children, ...props }) => (_jsx(G, { ...props, children: children }));
7
+ export const SvgPath = (props) => _jsx(Path, { ...props });
8
+ export const SvgRect = (props) => _jsx(Rect, { ...props });
9
+ export const SvgHitRegion = (props) => (_jsx(Rect, { ...createSvgHitRegionProps(props) }));
10
+ export const SvgCircle = (props) => _jsx(Circle, { ...props });
11
+ export const SvgText = ({ children, ...props }) => (_jsx(Text, { ...props, children: children }));
12
+ export const SvgLine = (props) => _jsx(Line, { ...props });
13
+ export const SvgDefs = ({ children }) => _jsx(Defs, { children: children });
@@ -0,0 +1,4 @@
1
+ import type { SvgRenderer, SvgRendererOptions } from "./types";
2
+ export declare const createSvgRenderer: (options?: SvgRendererOptions) => SvgRenderer;
3
+ export declare const svgRenderer: SvgRenderer;
4
+ //# sourceMappingURL=renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE/D,eAAO,MAAM,iBAAiB,GAC5B,UAAS,kBAAuB,KAC/B,WAiBD,CAAC;AAEH,eAAO,MAAM,WAAW,aAAsB,CAAC"}