vccs 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (459) hide show
  1. package/LICENSE +21 -0
  2. package/dist/animation/Animate.d.ts +72 -0
  3. package/dist/cartesian/GraphicalItemClipPath.d.ts +31 -0
  4. package/dist/cartesian/area/ActivePoints.d.ts +77 -0
  5. package/dist/cartesian/area/Area.d.ts +17 -0
  6. package/dist/cartesian/area/ClipRect.d.ts +1 -0
  7. package/dist/cartesian/area/RenderArea.d.ts +16 -0
  8. package/dist/cartesian/area/__stories__/config.d.ts +31 -0
  9. package/dist/cartesian/area/hooks/useArea.d.ts +27 -0
  10. package/dist/cartesian/area/index.d.ts +2 -0
  11. package/dist/cartesian/area/type.d.ts +173 -0
  12. package/dist/cartesian/area/utils.d.ts +19 -0
  13. package/dist/cartesian/axis/XAxis.d.ts +189 -0
  14. package/dist/cartesian/axis/YAxis.d.ts +192 -0
  15. package/dist/cartesian/axis/index.d.ts +2 -0
  16. package/dist/cartesian/axis/type.d.ts +57 -0
  17. package/dist/cartesian/bar/Bar.d.ts +2 -0
  18. package/dist/cartesian/bar/components/BarBackground.d.ts +1 -0
  19. package/dist/cartesian/bar/components/BarRectangles.d.ts +1 -0
  20. package/dist/cartesian/bar/hooks/useBar.d.ts +23 -0
  21. package/dist/cartesian/bar/index.d.ts +1 -0
  22. package/dist/cartesian/bar/type.d.ts +166 -0
  23. package/dist/cartesian/bar/utils.d.ts +31 -0
  24. package/dist/cartesian/brush/Brush.d.ts +2 -0
  25. package/dist/cartesian/brush/components/Background.d.ts +15 -0
  26. package/dist/cartesian/brush/components/BrushText.d.ts +27 -0
  27. package/dist/cartesian/brush/components/Panorama.d.ts +65 -0
  28. package/dist/cartesian/brush/components/Slide.d.ts +20 -0
  29. package/dist/cartesian/brush/components/Traveller.d.ts +13 -0
  30. package/dist/cartesian/brush/components/TravellerLayer.d.ts +22 -0
  31. package/dist/cartesian/brush/hooks/useBrushHandlers.d.ts +25 -0
  32. package/dist/cartesian/brush/hooks/useBrushSetting.d.ts +6 -0
  33. package/dist/cartesian/brush/hooks/useBrushState.d.ts +29 -0
  34. package/dist/cartesian/brush/index.d.ts +2 -0
  35. package/dist/cartesian/brush/type.d.ts +103 -0
  36. package/dist/cartesian/brush/utils.d.ts +15 -0
  37. package/dist/cartesian/cartesian-axis/CartesianAxis.d.ts +209 -0
  38. package/dist/cartesian/cartesian-axis/const.d.ts +24 -0
  39. package/dist/cartesian/cartesian-axis/index.d.ts +1 -0
  40. package/dist/cartesian/cartesian-axis/use-axis-line.d.ts +7 -0
  41. package/dist/cartesian/cartesian-grid/Background.d.ts +18 -0
  42. package/dist/cartesian/cartesian-grid/CartesianGrid.d.ts +75 -0
  43. package/dist/cartesian/cartesian-grid/HorizontalGridLines.d.ts +37 -0
  44. package/dist/cartesian/cartesian-grid/HorizontalStripes.d.ts +20 -0
  45. package/dist/cartesian/cartesian-grid/VerticalGridLines.d.ts +26 -0
  46. package/dist/cartesian/cartesian-grid/VerticalStripes.d.ts +20 -0
  47. package/dist/cartesian/cartesian-grid/const.d.ts +6 -0
  48. package/dist/cartesian/cartesian-grid/index.d.ts +1 -0
  49. package/dist/cartesian/cartesian-grid/type.d.ts +145 -0
  50. package/dist/cartesian/cartesian-grid/utils.d.ts +5 -0
  51. package/dist/cartesian/error-bar/ErrorBar.d.ts +68 -0
  52. package/dist/cartesian/error-bar/ErrorBarContext.d.ts +27 -0
  53. package/dist/cartesian/error-bar/index.d.ts +2 -0
  54. package/dist/cartesian/funnel/index.d.ts +0 -0
  55. package/dist/cartesian/funnel/type.d.ts +37 -0
  56. package/dist/cartesian/funnel/utils.d.ts +12 -0
  57. package/dist/cartesian/index.d.ts +11 -0
  58. package/dist/cartesian/line/ActivePoints.d.ts +77 -0
  59. package/dist/cartesian/line/Line.d.ts +87 -0
  60. package/dist/cartesian/line/StaticLine.d.ts +16 -0
  61. package/dist/cartesian/line/hooks/useLine.d.ts +28 -0
  62. package/dist/cartesian/line/index.d.ts +3 -0
  63. package/dist/cartesian/line/type.d.ts +180 -0
  64. package/dist/cartesian/line/utils.d.ts +13 -0
  65. package/dist/cartesian/reference-area/ReferenceArea.d.ts +191 -0
  66. package/dist/cartesian/reference-area/index.d.ts +1 -0
  67. package/dist/cartesian/reference-line/ReferenceLine.d.ts +139 -0
  68. package/dist/cartesian/reference-line/index.d.ts +1 -0
  69. package/dist/cartesian/scatter/Scatter.d.ts +165 -0
  70. package/dist/cartesian/scatter/hooks/useScatter.d.ts +18 -0
  71. package/dist/cartesian/scatter/index.d.ts +1 -0
  72. package/dist/cartesian/type.d.ts +21 -0
  73. package/dist/cartesian/useNeedsClip.d.ts +6 -0
  74. package/dist/cartesian/utils/get-ticks.d.ts +16 -0
  75. package/dist/cartesian/z-axis/ZAxis.d.ts +81 -0
  76. package/dist/cartesian/z-axis/index.d.ts +1 -0
  77. package/dist/chart/AreaChart.d.ts +1 -0
  78. package/dist/chart/BarChart.d.ts +1 -0
  79. package/dist/chart/ComposedChart.d.ts +1 -0
  80. package/dist/chart/LegendPortalContext.d.ts +3 -0
  81. package/dist/chart/LineChart.d.ts +1 -0
  82. package/dist/chart/PieChart.d.ts +1 -0
  83. package/dist/chart/RadarChart.d.ts +1 -0
  84. package/dist/chart/RadialBarChart.d.ts +1 -0
  85. package/dist/chart/RechartsWrapper.d.ts +99 -0
  86. package/dist/chart/ScatterChart.d.ts +1 -0
  87. package/dist/chart/Surface.d.ts +40 -0
  88. package/dist/chart/TooltipPortalContext.d.ts +2 -0
  89. package/dist/chart/const.d.ts +6 -0
  90. package/dist/chart/generateCategoricalChart.d.ts +118 -0
  91. package/dist/chart/index.d.ts +8 -0
  92. package/dist/chart/provideClipPathId.d.ts +12 -0
  93. package/dist/components/Cell.d.ts +18 -0
  94. package/dist/components/DefaultLegendContent.d.ts +18 -0
  95. package/dist/components/Text.d.ts +149 -0
  96. package/dist/components/Tooltip.d.ts +250 -0
  97. package/dist/components/index.d.ts +4 -0
  98. package/dist/components/label/Label.d.ts +81 -0
  99. package/dist/components/label/LabelList.d.ts +63 -0
  100. package/dist/components/label/index.d.ts +2 -0
  101. package/dist/components/label/types.d.ts +88 -0
  102. package/dist/components/label/utils.d.ts +24 -0
  103. package/dist/components/legend/Legend.d.ts +4 -0
  104. package/dist/components/legend/LegendSymbol.d.ts +27 -0
  105. package/dist/components/legend/hooks/useLegend.d.ts +19 -0
  106. package/dist/components/legend/hooks/useLegendContent.d.ts +36 -0
  107. package/dist/components/legend/index.d.ts +2 -0
  108. package/dist/components/legend/type.d.ts +54 -0
  109. package/dist/components/legend/utils.d.ts +18 -0
  110. package/dist/components/types.d.ts +9 -0
  111. package/dist/components/utils.d.ts +4 -0
  112. package/dist/container/ClipPath.d.ts +12 -0
  113. package/dist/container/Layer.d.ts +2 -0
  114. package/dist/container/ResponsiveContainer.d.ts +50 -0
  115. package/dist/container/RootSurface.d.ts +17 -0
  116. package/dist/container/Surface.d.ts +25 -0
  117. package/dist/container/index.d.ts +1 -0
  118. package/dist/container/useSizeContext.d.ts +11 -0
  119. package/dist/context/ChartDataContextProvider.d.ts +17 -0
  120. package/dist/context/PanoramaContextProvider.d.ts +22 -0
  121. package/dist/context/accessibilityContext.d.ts +1 -0
  122. package/dist/context/cartesianLabelListContext.d.ts +3 -0
  123. package/dist/context/chartLayoutContext.d.ts +8 -0
  124. package/dist/context/cursorLayerContext.d.ts +2 -0
  125. package/dist/context/graphicalLayerContext.d.ts +2 -0
  126. package/dist/context/labelLayerContext.d.ts +2 -0
  127. package/dist/context/polarLabelViewBoxContext.d.ts +4 -0
  128. package/dist/context/useTooltipAxis.d.ts +2 -0
  129. package/dist/es/animation/Animate.mjs +63 -0
  130. package/dist/es/cartesian/GraphicalItemClipPath.mjs +36 -0
  131. package/dist/es/cartesian/area/ActivePoints.mjs +74 -0
  132. package/dist/es/cartesian/area/Area.mjs +41 -0
  133. package/dist/es/cartesian/area/ClipRect.mjs +104 -0
  134. package/dist/es/cartesian/area/RenderArea.mjs +151 -0
  135. package/dist/es/cartesian/area/hooks/useArea.mjs +57 -0
  136. package/dist/es/cartesian/area/type.mjs +136 -0
  137. package/dist/es/cartesian/area/utils.mjs +59 -0
  138. package/dist/es/cartesian/axis/XAxis.mjs +189 -0
  139. package/dist/es/cartesian/axis/YAxis.mjs +181 -0
  140. package/dist/es/cartesian/bar/Bar.mjs +89 -0
  141. package/dist/es/cartesian/bar/components/BarBackground.mjs +29 -0
  142. package/dist/es/cartesian/bar/components/BarRectangles.mjs +106 -0
  143. package/dist/es/cartesian/bar/hooks/useBar.mjs +41 -0
  144. package/dist/es/cartesian/bar/type.mjs +131 -0
  145. package/dist/es/cartesian/bar/utils.mjs +84 -0
  146. package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +246 -0
  147. package/dist/es/cartesian/cartesian-grid/Background.mjs +30 -0
  148. package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +155 -0
  149. package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +49 -0
  150. package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
  151. package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +44 -0
  152. package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
  153. package/dist/es/cartesian/cartesian-grid/const.mjs +29 -0
  154. package/dist/es/cartesian/cartesian-grid/utils.mjs +17 -0
  155. package/dist/es/cartesian/error-bar/ErrorBar.mjs +115 -0
  156. package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +19 -0
  157. package/dist/es/cartesian/line/ActivePoints.mjs +75 -0
  158. package/dist/es/cartesian/line/Line.mjs +46 -0
  159. package/dist/es/cartesian/line/StaticLine.mjs +148 -0
  160. package/dist/es/cartesian/line/hooks/useLine.mjs +53 -0
  161. package/dist/es/cartesian/line/type.mjs +112 -0
  162. package/dist/es/cartesian/line/utils.mjs +33 -0
  163. package/dist/es/cartesian/reference-area/ReferenceArea.mjs +146 -0
  164. package/dist/es/cartesian/reference-line/ReferenceLine.mjs +143 -0
  165. package/dist/es/cartesian/scatter/Scatter.mjs +252 -0
  166. package/dist/es/cartesian/scatter/hooks/useScatter.mjs +19 -0
  167. package/dist/es/cartesian/useNeedsClip.mjs +14 -0
  168. package/dist/es/cartesian/utils/get-ticks.mjs +83 -0
  169. package/dist/es/cartesian/z-axis/ZAxis.mjs +70 -0
  170. package/dist/es/chart/AreaChart.mjs +9 -0
  171. package/dist/es/chart/BarChart.mjs +10 -0
  172. package/dist/es/chart/ComposedChart.mjs +10 -0
  173. package/dist/es/chart/LegendPortalContext.mjs +5 -0
  174. package/dist/es/chart/LineChart.mjs +10 -0
  175. package/dist/es/chart/PieChart.mjs +16 -0
  176. package/dist/es/chart/RadarChart.mjs +16 -0
  177. package/dist/es/chart/RadialBarChart.mjs +16 -0
  178. package/dist/es/chart/RechartsWrapper.mjs +137 -0
  179. package/dist/es/chart/ScatterChart.mjs +10 -0
  180. package/dist/es/chart/Surface.mjs +5 -0
  181. package/dist/es/chart/Surface.vue_vue_type_script_setup_true_lang.mjs +66 -0
  182. package/dist/es/chart/TooltipPortalContext.mjs +5 -0
  183. package/dist/es/chart/const.mjs +7 -0
  184. package/dist/es/chart/generateCategoricalChart.mjs +166 -0
  185. package/dist/es/chart/provideClipPathId.mjs +10 -0
  186. package/dist/es/components/Cell.mjs +11 -0
  187. package/dist/es/components/Text.mjs +5 -0
  188. package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +154 -0
  189. package/dist/es/components/Tooltip.mjs +388 -0
  190. package/dist/es/components/label/Label.mjs +36 -0
  191. package/dist/es/components/label/LabelList.mjs +49 -0
  192. package/dist/es/components/label/types.mjs +35 -0
  193. package/dist/es/components/label/utils.mjs +233 -0
  194. package/dist/es/components/legend/Legend.mjs +82 -0
  195. package/dist/es/components/legend/LegendSymbol.mjs +60 -0
  196. package/dist/es/components/legend/hooks/useLegend.mjs +52 -0
  197. package/dist/es/components/legend/hooks/useLegendContent.mjs +47 -0
  198. package/dist/es/components/legend/type.mjs +41 -0
  199. package/dist/es/components/legend/utils.mjs +17 -0
  200. package/dist/es/components/utils.mjs +31 -0
  201. package/dist/es/container/ClipPath.mjs +25 -0
  202. package/dist/es/container/Layer.mjs +12 -0
  203. package/dist/es/container/ResponsiveContainer.mjs +5 -0
  204. package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +112 -0
  205. package/dist/es/container/Surface.mjs +58 -0
  206. package/dist/es/container/useSizeContext.mjs +5 -0
  207. package/dist/es/context/ChartDataContextProvider.mjs +21 -0
  208. package/dist/es/context/PanoramaContextProvider.mjs +19 -0
  209. package/dist/es/context/accessibilityContext.mjs +5 -0
  210. package/dist/es/context/cartesianLabelListContext.mjs +5 -0
  211. package/dist/es/context/chartLayoutContext.mjs +46 -0
  212. package/dist/es/context/cursorLayerContext.mjs +5 -0
  213. package/dist/es/context/graphicalLayerContext.mjs +5 -0
  214. package/dist/es/context/labelLayerContext.mjs +5 -0
  215. package/dist/es/context/polarLabelViewBoxContext.mjs +8 -0
  216. package/dist/es/context/useTooltipAxis.mjs +15 -0
  217. package/dist/es/events/useChartSynchronisation.mjs +88 -0
  218. package/dist/es/hooks/useSetupGraphicalItem.mjs +57 -0
  219. package/dist/es/index.mjs +42 -0
  220. package/dist/es/polar/pie/Pie.mjs +145 -0
  221. package/dist/es/polar/pie/type.mjs +97 -0
  222. package/dist/es/polar/radar/PolarAngleAxis.mjs +161 -0
  223. package/dist/es/polar/radar/PolarGrid.mjs +102 -0
  224. package/dist/es/polar/radar/PolarRadiusAxis.mjs +137 -0
  225. package/dist/es/polar/radar/Radar.mjs +248 -0
  226. package/dist/es/polar/radial-bar/RadialBar.mjs +176 -0
  227. package/dist/es/polar/radial-bar/type.mjs +97 -0
  228. package/dist/es/shape/Cross.mjs +15 -0
  229. package/dist/es/shape/Curve.mjs +60 -0
  230. package/dist/es/shape/Dot.mjs +23 -0
  231. package/dist/es/shape/Rectangle.mjs +68 -0
  232. package/dist/es/shape/Sector.mjs +128 -0
  233. package/dist/es/shape/Symbols.mjs +41 -0
  234. package/dist/es/state/ReportChartProps.mjs +63 -0
  235. package/dist/es/state/ReportMainChartProps.mjs +41 -0
  236. package/dist/es/state/ReportPolarOptions.mjs +55 -0
  237. package/dist/es/state/SetGraphicalItem.mjs +34 -0
  238. package/dist/es/state/SetLegendPayload.mjs +16 -0
  239. package/dist/es/state/SetTooltipEntrySettings.mjs +17 -0
  240. package/dist/es/state/brushSlice.mjs +22 -0
  241. package/dist/es/state/cartesianAxisSlice.mjs +33 -0
  242. package/dist/es/state/chartDataSlice.mjs +28 -0
  243. package/dist/es/state/externalEventsMiddleware.mjs +20 -0
  244. package/dist/es/state/graphicalItemsSlice.mjs +43 -0
  245. package/dist/es/state/hooks.mjs +5 -0
  246. package/dist/es/state/keyboardEventsMiddleware.mjs +55 -0
  247. package/dist/es/state/layoutSlice.mjs +33 -0
  248. package/dist/es/state/legendSlice.mjs +35 -0
  249. package/dist/es/state/mouseEventsMiddleware.mjs +34 -0
  250. package/dist/es/state/optionsSlice.mjs +22 -0
  251. package/dist/es/state/polarAxisSlice.mjs +26 -0
  252. package/dist/es/state/polarOptionsSlice.mjs +11 -0
  253. package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +6 -0
  254. package/dist/es/state/referenceElementsSlice.mjs +34 -0
  255. package/dist/es/state/rootPropsSlice.mjs +21 -0
  256. package/dist/es/state/selectors/areaSelectors.mjs +67 -0
  257. package/dist/es/state/selectors/axisSelectors.mjs +693 -0
  258. package/dist/es/state/selectors/barSelectors.mjs +178 -0
  259. package/dist/es/state/selectors/brushSelectors.mjs +17 -0
  260. package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +8 -0
  261. package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +34 -0
  262. package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +6 -0
  263. package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +19 -0
  264. package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +32 -0
  265. package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +9 -0
  266. package/dist/es/state/selectors/common.mjs +4 -0
  267. package/dist/es/state/selectors/containerSelectors.mjs +4 -0
  268. package/dist/es/state/selectors/dataSelectors.mjs +16 -0
  269. package/dist/es/state/selectors/legendSelectors.mjs +9 -0
  270. package/dist/es/state/selectors/lineSelectors.mjs +57 -0
  271. package/dist/es/state/selectors/pickAxisId.mjs +4 -0
  272. package/dist/es/state/selectors/pickAxisType.mjs +4 -0
  273. package/dist/es/state/selectors/pieSelectors.mjs +97 -0
  274. package/dist/es/state/selectors/polarAxisSelectors.mjs +148 -0
  275. package/dist/es/state/selectors/polarGridSelectors.mjs +17 -0
  276. package/dist/es/state/selectors/polarScaleSelectors.mjs +52 -0
  277. package/dist/es/state/selectors/polarSelectors.mjs +64 -0
  278. package/dist/es/state/selectors/radarSelectors.mjs +113 -0
  279. package/dist/es/state/selectors/radialBarSelectors.mjs +212 -0
  280. package/dist/es/state/selectors/rootPropsSelectors.mjs +8 -0
  281. package/dist/es/state/selectors/scatterSelectors.mjs +118 -0
  282. package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +18 -0
  283. package/dist/es/state/selectors/selectAllAxes.mjs +5 -0
  284. package/dist/es/state/selectors/selectChartOffset.mjs +60 -0
  285. package/dist/es/state/selectors/selectChartOffsetInternal.mjs +55 -0
  286. package/dist/es/state/selectors/selectTooltipEventType.mjs +21 -0
  287. package/dist/es/state/selectors/selectTooltipPayloadSearcher.mjs +6 -0
  288. package/dist/es/state/selectors/selectTooltipSettings.mjs +4 -0
  289. package/dist/es/state/selectors/selectTooltipState.mjs +4 -0
  290. package/dist/es/state/selectors/selectors.mjs +85 -0
  291. package/dist/es/state/selectors/tooltipSelectors.mjs +220 -0
  292. package/dist/es/state/selectors/touchSelectors.mjs +16 -0
  293. package/dist/es/state/store.mjs +55 -0
  294. package/dist/es/state/tooltipSlice.mjs +75 -0
  295. package/dist/es/state/touchEventsMiddleware.mjs +38 -0
  296. package/dist/es/state/utils/useReportScale.mjs +16 -0
  297. package/dist/es/synchronisation/syncSelectors.mjs +6 -0
  298. package/dist/es/synchronisation/useChartSynchronisation.mjs +24 -0
  299. package/dist/es/types/event.mjs +4 -0
  300. package/dist/es/utils/ReduceCSSCalc.mjs +82 -0
  301. package/dist/es/utils/VueUtils.mjs +18 -0
  302. package/dist/es/utils/attrs.mjs +52 -0
  303. package/dist/es/utils/cartesian.mjs +22 -0
  304. package/dist/es/utils/chart.mjs +265 -0
  305. package/dist/es/utils/const.mjs +4 -0
  306. package/dist/es/utils/createContext.mjs +12 -0
  307. package/dist/es/utils/data-utils.mjs +12 -0
  308. package/dist/es/utils/data.mjs +27 -0
  309. package/dist/es/utils/events.mjs +5 -0
  310. package/dist/es/utils/getLinearRegression.mjs +17 -0
  311. package/dist/es/utils/grid.mjs +8 -0
  312. package/dist/es/utils/isDomainSpecifiedByUser.mjs +65 -0
  313. package/dist/es/utils/legend.mjs +18 -0
  314. package/dist/es/utils/log.mjs +11 -0
  315. package/dist/es/utils/payload/getUniqPayload.mjs +7 -0
  316. package/dist/es/utils/polar.mjs +52 -0
  317. package/dist/es/utils/props.mjs +14 -0
  318. package/dist/es/utils/resolveDefaultProps.mjs +7 -0
  319. package/dist/es/utils/scale/getNiceTickValues.mjs +59 -0
  320. package/dist/es/utils/scale/utils/arithmetic.mjs +24 -0
  321. package/dist/es/utils/scale/utils/utils.mjs +34 -0
  322. package/dist/es/utils/style.mjs +19 -0
  323. package/dist/es/utils/tick.mjs +31 -0
  324. package/dist/es/utils/tooltip/translate.mjs +59 -0
  325. package/dist/es/utils/validate.mjs +31 -0
  326. package/dist/events/useChartSynchronisation.d.ts +8 -0
  327. package/dist/hooks/useSetupGraphicalItem.d.ts +7 -0
  328. package/dist/index.d.ts +6 -0
  329. package/dist/polar/index.d.ts +3 -0
  330. package/dist/polar/pie/Pie.d.ts +2 -0
  331. package/dist/polar/pie/index.d.ts +2 -0
  332. package/dist/polar/pie/type.d.ts +88 -0
  333. package/dist/polar/radar/PolarAngleAxis.d.ts +145 -0
  334. package/dist/polar/radar/PolarGrid.d.ts +77 -0
  335. package/dist/polar/radar/PolarRadiusAxis.d.ts +125 -0
  336. package/dist/polar/radar/Radar.d.ts +160 -0
  337. package/dist/polar/radar/index.d.ts +4 -0
  338. package/dist/polar/radial-bar/RadialBar.d.ts +2 -0
  339. package/dist/polar/radial-bar/index.d.ts +2 -0
  340. package/dist/polar/radial-bar/type.d.ts +96 -0
  341. package/dist/shape/Cross.d.ts +10 -0
  342. package/dist/shape/Curve.d.ts +42 -0
  343. package/dist/shape/Dot.d.ts +18 -0
  344. package/dist/shape/Rectangle.d.ts +33 -0
  345. package/dist/shape/Sector.d.ts +48 -0
  346. package/dist/shape/Symbols.d.ts +15 -0
  347. package/dist/shape/index.d.ts +8 -0
  348. package/dist/shape/types.d.ts +20 -0
  349. package/dist/state/ReportBar.d.ts +1 -0
  350. package/dist/state/ReportChartProps.d.ts +88 -0
  351. package/dist/state/ReportMainChartProps.d.ts +37 -0
  352. package/dist/state/ReportPolarOptions.d.ts +59 -0
  353. package/dist/state/SetGraphicalItem.d.ts +9 -0
  354. package/dist/state/SetLegendPayload.d.ts +3 -0
  355. package/dist/state/SetTooltipEntrySettings.d.ts +8 -0
  356. package/dist/state/brushSlice.d.ts +18 -0
  357. package/dist/state/cartesianAxisSlice.d.ts +88 -0
  358. package/dist/state/chartDataSlice.d.ts +44 -0
  359. package/dist/state/externalEventsMiddleware.d.ts +17 -0
  360. package/dist/state/graphicalItemsSlice.d.ts +108 -0
  361. package/dist/state/hooks.d.ts +54 -0
  362. package/dist/state/keyboardEventsMiddleware.d.ts +3 -0
  363. package/dist/state/layoutSlice.d.ts +15 -0
  364. package/dist/state/legendSlice.d.ts +26 -0
  365. package/dist/state/mouseEventsMiddleware.d.ts +5 -0
  366. package/dist/state/optionsSlice.d.ts +27 -0
  367. package/dist/state/polarAxisSlice.d.ts +10 -0
  368. package/dist/state/polarOptionsSlice.d.ts +10 -0
  369. package/dist/state/reduxDevtoolsJsonStringifyReplacer.d.ts +1 -0
  370. package/dist/state/referenceElementsSlice.d.ts +40 -0
  371. package/dist/state/rootPropsSlice.d.ts +26 -0
  372. package/dist/state/selectors/areaSelectors.d.ts +24 -0
  373. package/dist/state/selectors/axisSelectors.d.ts +1828 -0
  374. package/dist/state/selectors/barSelectors.d.ts +944 -0
  375. package/dist/state/selectors/brushSelectors.d.ts +10 -0
  376. package/dist/state/selectors/combiners/combineActiveLabel.d.ts +3 -0
  377. package/dist/state/selectors/combiners/combineActiveTooltipIndex.d.ts +5 -0
  378. package/dist/state/selectors/combiners/combineAxisRangeWithReverse.d.ts +3 -0
  379. package/dist/state/selectors/combiners/combineCoordinateForDefaultIndex.d.ts +3 -0
  380. package/dist/state/selectors/combiners/combineTooltipInteractionState.d.ts +3 -0
  381. package/dist/state/selectors/combiners/combineTooltipPayloadConfigurations.d.ts +3 -0
  382. package/dist/state/selectors/common.d.ts +2 -0
  383. package/dist/state/selectors/containerSelectors.d.ts +6 -0
  384. package/dist/state/selectors/dataSelectors.d.ts +23 -0
  385. package/dist/state/selectors/funnelSelectors.d.ts +69 -0
  386. package/dist/state/selectors/legendSelectors.d.ts +7 -0
  387. package/dist/state/selectors/lineSelectors.d.ts +123 -0
  388. package/dist/state/selectors/pickAxisId.d.ts +3 -0
  389. package/dist/state/selectors/pickAxisType.d.ts +2 -0
  390. package/dist/state/selectors/pieSelectors.d.ts +55 -0
  391. package/dist/state/selectors/polarAxisSelectors.d.ts +49 -0
  392. package/dist/state/selectors/polarGridSelectors.d.ts +118 -0
  393. package/dist/state/selectors/polarScaleSelectors.d.ts +9 -0
  394. package/dist/state/selectors/polarSelectors.d.ts +70 -0
  395. package/dist/state/selectors/radarSelectors.d.ts +76 -0
  396. package/dist/state/selectors/radialBarSelectors.d.ts +61 -0
  397. package/dist/state/selectors/rootPropsSelectors.d.ts +11 -0
  398. package/dist/state/selectors/scatterSelectors.d.ts +21 -0
  399. package/dist/state/selectors/selectActivePropsFromChartPointer.d.ts +382 -0
  400. package/dist/state/selectors/selectAllAxes.d.ts +4 -0
  401. package/dist/state/selectors/selectChartOffset.d.ts +116 -0
  402. package/dist/state/selectors/selectChartOffsetInternal.d.ts +9 -0
  403. package/dist/state/selectors/selectTooltipEventType.d.ts +8 -0
  404. package/dist/state/selectors/selectTooltipPayloadSearcher.d.ts +3 -0
  405. package/dist/state/selectors/selectTooltipSettings.d.ts +3 -0
  406. package/dist/state/selectors/selectTooltipState.d.ts +3 -0
  407. package/dist/state/selectors/selectors.d.ts +184 -0
  408. package/dist/state/selectors/tooltipSelectors.d.ts +581 -0
  409. package/dist/state/selectors/touchSelectors.d.ts +4 -0
  410. package/dist/state/store.d.ts +74 -0
  411. package/dist/state/tooltipSlice.d.ts +204 -0
  412. package/dist/state/touchEventsMiddleware.d.ts +2 -0
  413. package/dist/state/utils/useReportScale.d.ts +1 -0
  414. package/dist/synchronisation/syncSelectors.d.ts +3 -0
  415. package/dist/synchronisation/useChartSynchronisation.d.ts +11 -0
  416. package/dist/types/area.d.ts +8 -0
  417. package/dist/types/axis.d.ts +127 -0
  418. package/dist/types/bar.d.ts +51 -0
  419. package/dist/types/categorical.d.ts +36 -0
  420. package/dist/types/common.d.ts +129 -0
  421. package/dist/types/event.d.ts +16 -0
  422. package/dist/types/index.d.ts +4 -0
  423. package/dist/types/legend.d.ts +1 -0
  424. package/dist/types/offset.d.ts +8 -0
  425. package/dist/types/radar.d.ts +28 -0
  426. package/dist/types/scale.d.ts +11 -0
  427. package/dist/types/tick.d.ts +55 -0
  428. package/dist/types/tooltip.d.ts +33 -0
  429. package/dist/utils/ReduceCSSCalc.d.ts +2 -0
  430. package/dist/utils/VueUtils.d.ts +11 -0
  431. package/dist/utils/attrs.d.ts +46 -0
  432. package/dist/utils/cartesian.d.ts +20 -0
  433. package/dist/utils/chart.d.ts +99 -0
  434. package/dist/utils/const.d.ts +30 -0
  435. package/dist/utils/context.d.ts +8 -0
  436. package/dist/utils/createContext.d.ts +8 -0
  437. package/dist/utils/data-utils.d.ts +4 -0
  438. package/dist/utils/data.d.ts +13 -0
  439. package/dist/utils/events.d.ts +12 -0
  440. package/dist/utils/getLinearRegression.d.ts +15 -0
  441. package/dist/utils/getRelativeCoordinate.d.ts +11 -0
  442. package/dist/utils/grid.d.ts +37 -0
  443. package/dist/utils/index.d.ts +4 -0
  444. package/dist/utils/isDomainSpecifiedByUser.d.ts +47 -0
  445. package/dist/utils/legend.d.ts +3 -0
  446. package/dist/utils/log.d.ts +1 -0
  447. package/dist/utils/payload/getUniqPayload.d.ts +4 -0
  448. package/dist/utils/polar.d.ts +21 -0
  449. package/dist/utils/props.d.ts +15 -0
  450. package/dist/utils/resolveDefaultProps.d.ts +52 -0
  451. package/dist/utils/scale/getNiceTickValues.d.ts +61 -0
  452. package/dist/utils/scale/utils/arithmetic.d.ts +50 -0
  453. package/dist/utils/scale/utils/utils.d.ts +9 -0
  454. package/dist/utils/style.d.ts +12 -0
  455. package/dist/utils/tick.d.ts +19 -0
  456. package/dist/utils/tooltip/translate.d.ts +47 -0
  457. package/dist/utils/types.d.ts +14 -0
  458. package/dist/utils/validate.d.ts +25 -0
  459. package/package.json +27 -10
@@ -0,0 +1,246 @@
1
+ import { isNumber as e } from "../../utils/validate.mjs";
2
+ import { filterProps as t } from "../../utils/VueUtils.mjs";
3
+ import { Layer as n } from "../../container/Layer.mjs";
4
+ import r from "../../components/Text.mjs";
5
+ import { Label as i } from "../../components/label/Label.mjs";
6
+ import { getTicks as a } from "../utils/get-ticks.mjs";
7
+ import { createVNode as o, defineComponent as s, mergeProps as c, reactive as l } from "vue";
8
+ import { get as u } from "es-toolkit/compat";
9
+ //#region src/cartesian/cartesian-axis/CartesianAxis.tsx
10
+ var d = /* @__PURE__ */ s({
11
+ name: "CartesianAxis",
12
+ props: {
13
+ x: {
14
+ type: Number,
15
+ default: 0
16
+ },
17
+ y: {
18
+ type: Number,
19
+ default: 0
20
+ },
21
+ width: {
22
+ type: Number,
23
+ default: 0
24
+ },
25
+ height: {
26
+ type: Number,
27
+ default: 0
28
+ },
29
+ unit: [String, Number],
30
+ orientation: {
31
+ type: String,
32
+ default: "bottom"
33
+ },
34
+ viewBox: {
35
+ type: Object,
36
+ default: () => ({
37
+ x: 0,
38
+ y: 0,
39
+ width: 0,
40
+ height: 0
41
+ })
42
+ },
43
+ tick: {
44
+ type: Boolean,
45
+ default: !0
46
+ },
47
+ axisLine: {
48
+ type: [Boolean, Object],
49
+ default: () => !0
50
+ },
51
+ tickLine: {
52
+ type: [Boolean, Object],
53
+ default: () => !0
54
+ },
55
+ mirror: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ tickMargin: {
60
+ type: Number,
61
+ default: 2
62
+ },
63
+ hide: Boolean,
64
+ label: null,
65
+ minTickGap: {
66
+ type: Number,
67
+ default: 5
68
+ },
69
+ ticks: {
70
+ type: Array,
71
+ default: () => []
72
+ },
73
+ tickSize: {
74
+ type: Number,
75
+ default: 6
76
+ },
77
+ tickFormatter: Function,
78
+ interval: {
79
+ type: [String, Number],
80
+ default: "preserveEnd"
81
+ },
82
+ angle: Number,
83
+ scale: { type: [Function] },
84
+ stroke: {
85
+ type: String,
86
+ default: "#666"
87
+ }
88
+ },
89
+ inheritAttrs: !1,
90
+ setup(s, { attrs: d, slots: f }) {
91
+ let p = l({
92
+ fontSize: "",
93
+ letterSpacing: ""
94
+ }), m = (t) => {
95
+ let { x: n, y: r, width: i, height: a, orientation: o, tickSize: c, mirror: l, tickMargin: u } = s, d, f, p, m, h, g, _ = l ? -1 : 1, v = t.tickSize || c, y = e(t.tickCoord) ? t.tickCoord : t.coordinate;
96
+ switch (o) {
97
+ case "top":
98
+ d = f = t.coordinate, m = r + +!l * a, p = m - _ * v, g = p - _ * u, h = y;
99
+ break;
100
+ case "left":
101
+ p = m = t.coordinate, f = n + +!l * i, d = f - _ * v, h = d - _ * u, g = y;
102
+ break;
103
+ case "right":
104
+ p = m = t.coordinate, f = n + +l * i, d = f + _ * v, h = d + _ * u, g = y;
105
+ break;
106
+ default:
107
+ d = f = t.coordinate, m = r + +l * a, p = m + _ * v, g = p + _ * u, h = y;
108
+ break;
109
+ }
110
+ return {
111
+ line: {
112
+ x1: d,
113
+ y1: p,
114
+ x2: f,
115
+ y2: m
116
+ },
117
+ tick: {
118
+ x: h,
119
+ y: g
120
+ }
121
+ };
122
+ }, h = () => {
123
+ let { orientation: e, mirror: t } = s, n;
124
+ switch (e) {
125
+ case "left":
126
+ n = t ? "start" : "end";
127
+ break;
128
+ case "right":
129
+ n = t ? "end" : "start";
130
+ break;
131
+ default:
132
+ n = "middle";
133
+ break;
134
+ }
135
+ return n;
136
+ }, g = () => {
137
+ let { orientation: e, mirror: t } = s;
138
+ switch (e) {
139
+ case "left":
140
+ case "right": return "middle";
141
+ case "top": return t ? "start" : "end";
142
+ default: return t ? "end" : "start";
143
+ }
144
+ }, _ = () => {
145
+ let { x: e, y: n, width: r, height: i, orientation: a, mirror: l, axisLine: d } = s, f = {
146
+ ...t(s, !1),
147
+ ...t(d, !1),
148
+ fill: "none",
149
+ x1: 0,
150
+ y1: 0,
151
+ x2: 0,
152
+ y2: 0
153
+ };
154
+ if (a === "top" || a === "bottom") {
155
+ let t = +(a === "top" && !l || a === "bottom" && l);
156
+ f = {
157
+ ...f,
158
+ x1: e,
159
+ y1: n + t * i,
160
+ x2: e + r,
161
+ y2: n + t * i
162
+ };
163
+ } else {
164
+ let t = +(a === "left" && !l || a === "right" && l);
165
+ f = {
166
+ ...f,
167
+ x1: e + t * r,
168
+ y1: n,
169
+ x2: e + t * r,
170
+ y2: n + i
171
+ };
172
+ }
173
+ return o("line", c(f, { class: ["v-charts-cartesian-axis-line", u(d, "class")] }), null);
174
+ };
175
+ function v(e, t) {
176
+ return o(r, c(e, {
177
+ class: ["v-charts-cartesian-axis-tick-value", e.class],
178
+ value: t
179
+ }), null);
180
+ }
181
+ let y = (e, r, i) => {
182
+ let { tickLine: s, stroke: l, tick: d, tickFormatter: p, unit: _ } = e, y = a(e, r, i), b = h(), x = g(), S = t(e, !1), C = t(d, !1), w = {
183
+ ...S,
184
+ fill: "none",
185
+ ...t(s, !1)
186
+ }, T = y.map((e, t) => {
187
+ let { line: r, tick: i } = m(e), a = {
188
+ textAnchor: b,
189
+ verticalAnchor: x,
190
+ ...S,
191
+ stroke: "none",
192
+ fill: l,
193
+ ...C,
194
+ ...i,
195
+ index: t,
196
+ payload: e,
197
+ visibleTicksCount: y.length,
198
+ tickFormatter: p
199
+ };
200
+ return o(n, {
201
+ class: "v-charts-cartesian-axis-tick",
202
+ key: `tick-${e.value}-${e.coordinate}-${e.tickCoord}`
203
+ }, { default: () => [s && o("line", c(w, r, { class: ["v-charts-cartesian-axis-tick-line", u(s, "class")] }), null), d && (f.tick ? f.tick({
204
+ ...a,
205
+ value: e.value
206
+ }) : v(a, `${typeof p == "function" ? p(e.value, t) : e.value}${_ || ""}`))] });
207
+ });
208
+ return T.length > 0 ? o("g", { class: "v-charts-cartesian-axis-ticks" }, [T]) : null;
209
+ }, b = () => {
210
+ let { label: e, x: t, y: n, width: r, height: a } = s;
211
+ if (!e) return null;
212
+ let l = {
213
+ x: t,
214
+ y: n,
215
+ width: r,
216
+ height: a
217
+ };
218
+ return typeof e == "string" || typeof e == "number" ? o(i, {
219
+ value: e,
220
+ viewBox: l
221
+ }, null) : typeof e == "object" ? o(i, c(e, { viewBox: l }), null) : null;
222
+ };
223
+ return () => {
224
+ let { axisLine: e, width: t, height: r, hide: i } = s;
225
+ return i || t != null && t <= 0 || r != null && r <= 0 ? null : o(n, {
226
+ class: ["v-charts-cartesian-axis", d.class],
227
+ ref: (e) => {
228
+ let t = e?.$el;
229
+ if (t) {
230
+ let e = t?.getElementsByClassName("v-charts-cartesian-axis-tick-value")[0];
231
+ if (e) {
232
+ let t = window.getComputedStyle(e).fontSize, n = window.getComputedStyle(e).letterSpacing;
233
+ (t !== p.fontSize || n !== p.letterSpacing) && (p.fontSize = window.getComputedStyle(e).fontSize, p.letterSpacing = window.getComputedStyle(e).letterSpacing);
234
+ }
235
+ }
236
+ }
237
+ }, { default: () => [
238
+ e && _(),
239
+ y(s, p.fontSize, p.letterSpacing),
240
+ b()
241
+ ] });
242
+ };
243
+ }
244
+ });
245
+ //#endregion
246
+ export { d as CartesianAxis };
@@ -0,0 +1,30 @@
1
+ import { createVNode as e, defineComponent as t } from "vue";
2
+ //#region src/cartesian/cartesian-grid/Background.tsx
3
+ var n = /* @__PURE__ */ t({
4
+ name: "Background",
5
+ inheritAttrs: !1,
6
+ props: {
7
+ fill: String,
8
+ fillOpacity: Number,
9
+ x: Number,
10
+ y: Number,
11
+ width: Number,
12
+ height: Number,
13
+ ry: Number
14
+ },
15
+ setup(t) {
16
+ return () => !t.fill || t.fill === "none" ? null : e("rect", {
17
+ x: t.x,
18
+ y: t.y,
19
+ ry: t.ry,
20
+ width: t.width,
21
+ height: t.height,
22
+ stroke: "none",
23
+ fill: t.fill,
24
+ "fill-opacity": t.fillOpacity,
25
+ class: "v-charts-cartesian-grid-bg"
26
+ }, null);
27
+ }
28
+ });
29
+ //#endregion
30
+ export { n as default };
@@ -0,0 +1,155 @@
1
+ import { isNumber as e } from "../../utils/validate.mjs";
2
+ import { warn as t } from "../../utils/log.mjs";
3
+ import { useIsPanorama as n } from "../../context/PanoramaContextProvider.mjs";
4
+ import { getTicksOfAxis as r } from "../../utils/chart.mjs";
5
+ import { selectAxisPropsNeededForCartesianGridTicksGenerator as i } from "../../state/selectors/axisSelectors.mjs";
6
+ import { useAppSelector as a } from "../../state/hooks.mjs";
7
+ import { useChartHeight as o, useChartWidth as s, useOffset as c } from "../../context/chartLayoutContext.mjs";
8
+ import { CartesianAxisDefaultProps as l } from "./const.mjs";
9
+ import { getTicks as u } from "../utils/get-ticks.mjs";
10
+ import { CartesianAxis as d } from "../cartesian-axis/CartesianAxis.mjs";
11
+ import { resolveDefaultProps as f } from "../../utils/resolveDefaultProps.mjs";
12
+ import { getCoordinatesOfGrid as p } from "../../utils/grid.mjs";
13
+ import m from "./Background.mjs";
14
+ import h from "./HorizontalStripes.mjs";
15
+ import g from "./VerticalStripes.mjs";
16
+ import _ from "./HorizontalGridLines.mjs";
17
+ import v from "./VerticalGridLines.mjs";
18
+ import { createVNode as y, defineComponent as b, mergeProps as x } from "vue";
19
+ //#region src/cartesian/cartesian-grid/CartesianGrid.tsx
20
+ var S = ({ yAxis: e, width: t, height: n, offset: i }, a) => p(u({
21
+ ...l,
22
+ ...e,
23
+ ticks: r(e, !0),
24
+ viewBox: {
25
+ x: 0,
26
+ y: 0,
27
+ width: t,
28
+ height: n
29
+ }
30
+ }), i.top, i.top + i.height, a), C = ({ xAxis: e, width: t, height: n, offset: i }, a) => p(u({
31
+ ...d.defaultProps,
32
+ ...e,
33
+ ticks: r(e, !0),
34
+ viewBox: {
35
+ x: 0,
36
+ y: 0,
37
+ width: t,
38
+ height: n
39
+ }
40
+ }), i.left, i.left + i.width, a), w = {
41
+ horizontal: !0,
42
+ vertical: !0,
43
+ horizontalPoints: [],
44
+ verticalPoints: [],
45
+ stroke: "#ccc",
46
+ fill: "none",
47
+ verticalFill: [],
48
+ horizontalFill: [],
49
+ xAxisId: 0,
50
+ yAxisId: 0
51
+ }, T = /* @__PURE__ */ b({
52
+ name: "CartesianGrid",
53
+ inheritAttrs: !1,
54
+ props: {
55
+ xAxisId: {
56
+ type: [String, Number],
57
+ default: 0
58
+ },
59
+ yAxisId: {
60
+ type: [String, Number],
61
+ default: 0
62
+ },
63
+ x: Number,
64
+ y: Number,
65
+ width: Number,
66
+ height: Number,
67
+ syncWithTicks: {
68
+ type: Boolean,
69
+ default: void 0
70
+ },
71
+ horizontal: {
72
+ type: [Boolean, Object],
73
+ default: !0
74
+ },
75
+ vertical: {
76
+ type: [Boolean, Object],
77
+ default: !0
78
+ },
79
+ horizontalPoints: Array,
80
+ verticalPoints: Array,
81
+ horizontalValues: Array,
82
+ verticalValues: Array,
83
+ fill: String,
84
+ fillOpacity: Number,
85
+ ry: Number,
86
+ verticalCoordinatesGenerator: Function,
87
+ horizontalCoordinatesGenerator: Function
88
+ },
89
+ setup(r, { attrs: l, slots: u }) {
90
+ let d = s(), p = o(), b = c(), T = n(), E = a((e) => i(e, "xAxis", r.xAxisId, T)), D = a((e) => i(e, "yAxis", r.yAxisId, T));
91
+ return () => {
92
+ let n = {
93
+ ...f({
94
+ ...r,
95
+ ...l
96
+ }, w),
97
+ x: e(r.x) ? r.x : b.value.left,
98
+ y: e(r.y) ? r.y : b.value.top,
99
+ width: e(r.width) ? r.width : b.value.width,
100
+ height: e(r.height) ? r.height : b.value.height
101
+ }, { x: i, y: a, width: o, height: s, syncWithTicks: c, horizontalValues: T, verticalValues: O } = n, k = n.verticalCoordinatesGenerator || C, A = n.horizontalCoordinatesGenerator || S, { horizontalPoints: j, verticalPoints: M } = n;
102
+ if ((!j || !j.length) && typeof A == "function") {
103
+ let e = T && T.length, n = A({
104
+ yAxis: D.value ? {
105
+ ...D.value,
106
+ ticks: e ? T : D.value?.ticks
107
+ } : void 0,
108
+ width: d.value,
109
+ height: p.value,
110
+ offset: b.value
111
+ }, e ? !0 : c);
112
+ t(Array.isArray(n), `horizontalCoordinatesGenerator should return Array but instead it returned [${typeof n}]`), Array.isArray(n) && (j = n);
113
+ }
114
+ if ((!M || !M.length) && typeof k == "function") {
115
+ let e = O && O.length, n = k({
116
+ xAxis: E.value ? {
117
+ ...E.value,
118
+ ticks: e ? O : E.value?.ticks
119
+ } : void 0,
120
+ width: d.value,
121
+ height: p.value,
122
+ offset: b.value
123
+ }, e ? !0 : c);
124
+ t(Array.isArray(n), `verticalCoordinatesGenerator should return Array but instead it returned [${typeof n}]`), Array.isArray(n) && (M = n);
125
+ }
126
+ return !e(o) || o <= 0 || !e(s) || s <= 0 || !e(i) || i !== +i || !e(a) || a !== +a ? null : y("g", { class: "v-charts-cartesian-grid" }, [
127
+ y(m, {
128
+ fill: n.fill,
129
+ fillOpacity: n.fillOpacity,
130
+ x: n.x,
131
+ y: n.y,
132
+ width: n.width,
133
+ height: n.height,
134
+ ry: n.ry
135
+ }, null),
136
+ y(h, x(n, { horizontalPoints: j }), null),
137
+ y(g, x(n, { verticalPoints: M }), null),
138
+ y(_, x(n, {
139
+ offset: b.value,
140
+ horizontalPoints: j,
141
+ xAxis: E.value,
142
+ yAxis: D.value
143
+ }), { default: () => [u.horizontal ? { horizontal: u.horizontal } : void 0] }),
144
+ y(v, x(n, {
145
+ offset: b,
146
+ verticalPoints: M,
147
+ xAxis: E,
148
+ yAxis: D
149
+ }), { default: () => [u.vertical ? { vertical: u.vertical } : void 0] })
150
+ ]);
151
+ };
152
+ }
153
+ });
154
+ //#endregion
155
+ export { T as CartesianGrid };
@@ -0,0 +1,49 @@
1
+ import { renderLineItem as e } from "./utils.mjs";
2
+ import { createVNode as t, defineComponent as n } from "vue";
3
+ //#region src/cartesian/cartesian-grid/HorizontalGridLines.tsx
4
+ var r = /* @__PURE__ */ n({
5
+ name: "HorizontalGridLines",
6
+ inheritAttrs: !1,
7
+ props: {
8
+ x: Number,
9
+ width: Number,
10
+ horizontal: [Boolean, Object],
11
+ horizontalPoints: Array,
12
+ xAxisId: {
13
+ type: [String, Number],
14
+ default: 0
15
+ },
16
+ yAxisId: {
17
+ type: [String, Number],
18
+ default: 0
19
+ },
20
+ offset: Object,
21
+ xAxis: Object,
22
+ yAxis: Object
23
+ },
24
+ setup(n, { attrs: r, slots: i }) {
25
+ return () => {
26
+ let { x: a, width: o, horizontal: s = !0, horizontalPoints: c } = n;
27
+ if (!s || !c || !c.length) return null;
28
+ let { xAxisId: l, yAxisId: u, ...d } = {
29
+ ...n,
30
+ ...r
31
+ };
32
+ return t("g", { class: "v-charts-cartesian-grid-horizontal" }, [c.map((t, n) => {
33
+ let c = {
34
+ ...d,
35
+ ...r,
36
+ x1: a,
37
+ y1: t,
38
+ x2: a + o,
39
+ y2: t,
40
+ key: `line-${n}`,
41
+ index: n
42
+ };
43
+ return e(i.horizontal, s, c);
44
+ })]);
45
+ };
46
+ }
47
+ });
48
+ //#endregion
49
+ export { r as default };
@@ -0,0 +1,43 @@
1
+ import { createVNode as e, defineComponent as t } from "vue";
2
+ //#region src/cartesian/cartesian-grid/HorizontalStripes.tsx
3
+ var n = /* @__PURE__ */ t({
4
+ name: "HorizontalStripes",
5
+ inheritAttrs: !1,
6
+ props: {
7
+ horizontalFill: Array,
8
+ fillOpacity: Number,
9
+ x: Number,
10
+ y: Number,
11
+ width: Number,
12
+ height: Number,
13
+ horizontalPoints: Array,
14
+ horizontal: [Boolean, Object]
15
+ },
16
+ setup(t) {
17
+ return () => {
18
+ let { horizontalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, horizontalPoints: c, horizontal: l = !0 } = t;
19
+ if (!l || !n || !n.length) return null;
20
+ let u = c?.map((e) => Math.round(e + a - a)).sort((e, t) => e - t);
21
+ a !== u?.[0] && u?.unshift(0);
22
+ let d = u?.map((t, c) => {
23
+ let l = u[c + 1] ? u[c + 1] - t : a + s - t;
24
+ if (l <= 0) return null;
25
+ let d = c % n.length;
26
+ return e("rect", {
27
+ key: `react-${c}`,
28
+ y: t,
29
+ x: i,
30
+ height: l,
31
+ width: o,
32
+ stroke: "none",
33
+ fill: n[d],
34
+ "fill-opacity": r,
35
+ class: "v-charts-cartesian-grid-bg"
36
+ }, null);
37
+ });
38
+ return e("g", { class: "v-charts-cartesian-gridstripes-horizontal" }, [d]);
39
+ };
40
+ }
41
+ });
42
+ //#endregion
43
+ export { n as default };
@@ -0,0 +1,44 @@
1
+ import { renderLineItem as e } from "./utils.mjs";
2
+ import { createVNode as t, defineComponent as n } from "vue";
3
+ //#region src/cartesian/cartesian-grid/VerticalGridLines.tsx
4
+ var r = /* @__PURE__ */ n({
5
+ name: "VerticalGridLines",
6
+ inheritAttrs: !1,
7
+ props: {
8
+ x: Number,
9
+ y: Number,
10
+ width: Number,
11
+ height: Number,
12
+ verticalPoints: Array,
13
+ xAxisId: [String, Number],
14
+ yAxisId: [String, Number],
15
+ offset: Object,
16
+ xAxis: Object,
17
+ yAxis: Object,
18
+ vertical: [Boolean, Object]
19
+ },
20
+ setup(n, { attrs: r, slots: i }) {
21
+ return () => {
22
+ let { y: a, height: o, vertical: s = !0, verticalPoints: c } = n;
23
+ if (!s || !c || !c.length) return null;
24
+ let { xAxisId: l, yAxisId: u, ...d } = {
25
+ ...n,
26
+ ...r
27
+ };
28
+ return t("g", { class: "v-charts-cartesian-grid-vertical" }, [c.map((t, n) => {
29
+ let r = {
30
+ ...d,
31
+ x1: t,
32
+ y1: a,
33
+ x2: t,
34
+ y2: a + o,
35
+ key: `line-${n}`,
36
+ index: n
37
+ };
38
+ return e(i.vertical, s, r);
39
+ })]);
40
+ };
41
+ }
42
+ });
43
+ //#endregion
44
+ export { r as default };
@@ -0,0 +1,43 @@
1
+ import { createVNode as e, defineComponent as t } from "vue";
2
+ //#region src/cartesian/cartesian-grid/VerticalStripes.tsx
3
+ var n = /* @__PURE__ */ t({
4
+ name: "VerticalStripes",
5
+ inheritAttrs: !1,
6
+ props: {
7
+ verticalFill: Array,
8
+ fillOpacity: Number,
9
+ x: Number,
10
+ y: Number,
11
+ width: Number,
12
+ height: Number,
13
+ verticalPoints: Array,
14
+ vertical: [Boolean, Object]
15
+ },
16
+ setup(t) {
17
+ return () => {
18
+ let { verticalFill: n, fillOpacity: r, x: i, y: a, width: o, height: s, verticalPoints: c, vertical: l = !0 } = t;
19
+ if (!l || !n || !n.length) return null;
20
+ let u = c?.map((e) => Math.round(e + i - i)).sort((e, t) => e - t);
21
+ i !== u?.[0] && u?.unshift(0);
22
+ let d = u?.map((t, c) => {
23
+ let l = u[c + 1] ? u[c + 1] - t : i + o - t;
24
+ if (l <= 0) return null;
25
+ let d = c % n.length;
26
+ return e("rect", {
27
+ key: `react-${c}`,
28
+ x: t,
29
+ y: a,
30
+ width: l,
31
+ height: s,
32
+ stroke: "none",
33
+ fill: n[d],
34
+ "fill-opacity": r,
35
+ class: "v-charts-cartesian-grid-bg"
36
+ }, null);
37
+ });
38
+ return e("g", { class: "v-charts-cartesian-gridstripes-vertical" }, [d]);
39
+ };
40
+ }
41
+ });
42
+ //#endregion
43
+ export { n as default };
@@ -0,0 +1,29 @@
1
+ //#region src/cartesian/cartesian-grid/const.ts
2
+ var e = {
3
+ x: 0,
4
+ y: 0,
5
+ width: 0,
6
+ height: 0,
7
+ viewBox: {
8
+ x: 0,
9
+ y: 0,
10
+ width: 0,
11
+ height: 0
12
+ },
13
+ orientation: "bottom",
14
+ ticks: [],
15
+ stroke: "#666",
16
+ tickLine: !0,
17
+ axisLine: !0,
18
+ mirror: !1,
19
+ minTickGap: 5,
20
+ tickSize: 6,
21
+ tickMargin: 2,
22
+ interval: "preserveEnd"
23
+ }, t = ["viewBox"], n = ["points", "pathLength"], r = {
24
+ svg: t,
25
+ polygon: n,
26
+ polyline: n
27
+ }, i = /* @__PURE__ */ "aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.class.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.stroke-dasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle".split(".");
28
+ //#endregion
29
+ export { e as CartesianAxisDefaultProps, r as FilteredElementKeyMap, i as SVGElementPropKeys };
@@ -0,0 +1,17 @@
1
+ import { filterProps as e } from "../../utils/VueUtils.mjs";
2
+ import { createVNode as t, mergeProps as n } from "vue";
3
+ //#region src/cartesian/cartesian-grid/utils.tsx
4
+ function r(r, i, a) {
5
+ if (r) return r(a);
6
+ let { x1: o, y1: s, x2: c, y2: l, key: u, ...d } = { ...a }, { offset: f, ...p } = e(d, !1);
7
+ return t("line", n(p, {
8
+ x1: o,
9
+ y1: s,
10
+ x2: c,
11
+ y2: l,
12
+ fill: "none",
13
+ key: u
14
+ }), null);
15
+ }
16
+ //#endregion
17
+ export { r as renderLineItem };