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,146 @@
1
+ import { isNumOrStr as e, isWellBehavedNumber as t } from "../../utils/validate.mjs";
2
+ import { useIsPanorama as n } from "../../context/PanoramaContextProvider.mjs";
3
+ import { selectAxisScale as r } from "../../state/selectors/axisSelectors.mjs";
4
+ import { useAppDispatch as i, useAppSelector as a } from "../../state/hooks.mjs";
5
+ import { Layer as o } from "../../container/Layer.mjs";
6
+ import { Label as s } from "../../components/label/Label.mjs";
7
+ import { Rectangle as c } from "../../shape/Rectangle.mjs";
8
+ import { addArea as l, removeArea as u } from "../../state/referenceElementsSlice.mjs";
9
+ import { useClipPathId as d } from "../../chart/provideClipPathId.mjs";
10
+ import { computed as f, createVNode as p, defineComponent as m, mergeProps as h, onMounted as g, onUnmounted as _, reactive as v } from "vue";
11
+ //#region src/cartesian/reference-area/ReferenceArea.tsx
12
+ function y(e, n, r) {
13
+ let i = e(n);
14
+ if (!t(i)) return;
15
+ let a = e.bandwidth?.() ?? 0;
16
+ return r === "start" ? i : i + a;
17
+ }
18
+ function b(e) {
19
+ let t = e.range();
20
+ return Math.min(t[0], t[1]);
21
+ }
22
+ function x(e) {
23
+ let t = e.range();
24
+ return Math.max(t[0], t[1]);
25
+ }
26
+ var S = /* @__PURE__ */ m({
27
+ name: "ReferenceArea",
28
+ props: {
29
+ x1: {
30
+ type: [Number, String],
31
+ default: void 0
32
+ },
33
+ x2: {
34
+ type: [Number, String],
35
+ default: void 0
36
+ },
37
+ y1: {
38
+ type: [Number, String],
39
+ default: void 0
40
+ },
41
+ y2: {
42
+ type: [Number, String],
43
+ default: void 0
44
+ },
45
+ xAxisId: {
46
+ type: [Number, String],
47
+ default: 0
48
+ },
49
+ yAxisId: {
50
+ type: [Number, String],
51
+ default: 0
52
+ },
53
+ stroke: {
54
+ type: String,
55
+ default: "none"
56
+ },
57
+ strokeWidth: {
58
+ type: [Number, String],
59
+ default: 1
60
+ },
61
+ fill: {
62
+ type: String,
63
+ default: "#ccc"
64
+ },
65
+ fillOpacity: {
66
+ type: Number,
67
+ default: .5
68
+ },
69
+ label: {
70
+ type: [
71
+ String,
72
+ Number,
73
+ Boolean,
74
+ Object
75
+ ],
76
+ default: void 0
77
+ },
78
+ ifOverflow: {
79
+ type: String,
80
+ default: "discard"
81
+ },
82
+ className: {
83
+ type: String,
84
+ default: void 0
85
+ },
86
+ radius: {
87
+ type: [Number, Array],
88
+ default: 0
89
+ }
90
+ },
91
+ inheritAttrs: !1,
92
+ setup(t, { attrs: m }) {
93
+ let S = i(), C = n(), w = d(), T = v({
94
+ xAxisId: t.xAxisId,
95
+ yAxisId: t.yAxisId,
96
+ ifOverflow: t.ifOverflow,
97
+ x1: t.x1,
98
+ x2: t.x2,
99
+ y1: t.y1,
100
+ y2: t.y2
101
+ });
102
+ g(() => {
103
+ S(l(T));
104
+ }), _(() => {
105
+ S(u(T));
106
+ });
107
+ let E = a((e) => r(e, "xAxis", t.xAxisId, C)), D = a((e) => r(e, "yAxis", t.yAxisId, C)), O = f(() => {
108
+ let n = E.value, r = D.value;
109
+ if (!n || !r) return null;
110
+ let i = e(t.x1), a = e(t.x2), o = e(t.y1), s = e(t.y2);
111
+ if (!i && !a && !o && !s) return null;
112
+ let c = i ? y(n, t.x1, "start") : b(n), l = a ? y(n, t.x2, "end") : x(n), u = o ? y(r, t.y1, "start") : b(r), d = s ? y(r, t.y2, "end") : x(r);
113
+ return c == null || l == null || u == null || d == null ? null : {
114
+ x: Math.min(c, l),
115
+ y: Math.min(u, d),
116
+ width: Math.abs(l - c),
117
+ height: Math.abs(d - u)
118
+ };
119
+ });
120
+ return () => {
121
+ let e = O.value;
122
+ if (!e) return null;
123
+ let n = t.ifOverflow === "hidden" ? `url(#${w})` : void 0, r = {
124
+ ...m,
125
+ stroke: t.stroke,
126
+ "stroke-width": t.strokeWidth,
127
+ fill: t.fill,
128
+ "fill-opacity": t.fillOpacity
129
+ }, i = t.label, a = typeof i == "object" && i ? i : {};
130
+ return p(o, { class: ["v-charts-reference-area", t.className] }, { default: () => [p(c, h(r, {
131
+ "clip-path": n,
132
+ x: e.x,
133
+ y: e.y,
134
+ width: e.width,
135
+ height: e.height,
136
+ radius: t.radius,
137
+ class: "v-charts-reference-area-rect"
138
+ }), null), i != null && i !== !1 && p(s, h({
139
+ viewBox: e,
140
+ value: typeof i == "string" || typeof i == "number" ? i : void 0
141
+ }, a), null)] });
142
+ };
143
+ }
144
+ });
145
+ //#endregion
146
+ export { S as ReferenceArea };
@@ -0,0 +1,143 @@
1
+ import { isNumOrStr as e, isWellBehavedNumber as t } from "../../utils/validate.mjs";
2
+ import { useIsPanorama as n } from "../../context/PanoramaContextProvider.mjs";
3
+ import { selectAxisScale as r, selectXAxisSettings as i, selectYAxisSettings as a } from "../../state/selectors/axisSelectors.mjs";
4
+ import { useAppDispatch as o, useAppSelector as s } from "../../state/hooks.mjs";
5
+ import { useViewBox as c } from "../../context/chartLayoutContext.mjs";
6
+ import { Layer as l } from "../../container/Layer.mjs";
7
+ import { Label as u } from "../../components/label/Label.mjs";
8
+ import { addLine as d, removeLine as f } from "../../state/referenceElementsSlice.mjs";
9
+ import { useClipPathId as p } from "../../chart/provideClipPathId.mjs";
10
+ import { computed as m, createVNode as h, defineComponent as g, mergeProps as _, onMounted as v, onUnmounted as y, reactive as b } from "vue";
11
+ //#region src/cartesian/reference-line/ReferenceLine.tsx
12
+ function x(e, n) {
13
+ let r = e(n);
14
+ if (t(r)) return r + (e.bandwidth?.() ?? 0) / 2;
15
+ }
16
+ function S(e, t) {
17
+ let n = e.range(), r = Math.min(n[0], n[1]), i = Math.max(n[0], n[1]);
18
+ return t >= r && t <= i;
19
+ }
20
+ var C = /* @__PURE__ */ g({
21
+ name: "ReferenceLine",
22
+ props: {
23
+ x: {
24
+ type: [Number, String],
25
+ default: void 0
26
+ },
27
+ y: {
28
+ type: [Number, String],
29
+ default: void 0
30
+ },
31
+ xAxisId: {
32
+ type: [Number, String],
33
+ default: 0
34
+ },
35
+ yAxisId: {
36
+ type: [Number, String],
37
+ default: 0
38
+ },
39
+ stroke: {
40
+ type: String,
41
+ default: "#ccc"
42
+ },
43
+ strokeWidth: {
44
+ type: [Number, String],
45
+ default: 1
46
+ },
47
+ fill: {
48
+ type: String,
49
+ default: "none"
50
+ },
51
+ label: {
52
+ type: [
53
+ String,
54
+ Number,
55
+ Boolean,
56
+ Object
57
+ ],
58
+ default: void 0
59
+ },
60
+ ifOverflow: {
61
+ type: String,
62
+ default: "discard"
63
+ },
64
+ className: {
65
+ type: String,
66
+ default: void 0
67
+ }
68
+ },
69
+ inheritAttrs: !1,
70
+ setup(g, { attrs: C }) {
71
+ let w = o(), T = n(), E = p(), D = c(), O = b({
72
+ xAxisId: g.xAxisId,
73
+ yAxisId: g.yAxisId,
74
+ ifOverflow: g.ifOverflow,
75
+ x: g.x,
76
+ y: g.y
77
+ });
78
+ v(() => {
79
+ w(d(O));
80
+ }), y(() => {
81
+ w(f(O));
82
+ });
83
+ let k = s((e) => i(e, g.xAxisId)), A = s((e) => a(e, g.yAxisId)), j = s((e) => r(e, "xAxis", g.xAxisId, T)), M = s((e) => r(e, "yAxis", g.yAxisId, T)), N = m(() => {
84
+ let t = D.value, n = j.value, r = M.value;
85
+ if (!t || !n || !r) return null;
86
+ if (e(g.y)) {
87
+ let e = x(r, g.y);
88
+ if (e == null || g.ifOverflow === "discard" && !S(r, e)) return null;
89
+ let n = A.value?.orientation, i = [{
90
+ x: t.x + t.width,
91
+ y: e
92
+ }, {
93
+ x: t.x,
94
+ y: e
95
+ }];
96
+ return n === "left" ? i.reverse() : i;
97
+ }
98
+ if (e(g.x)) {
99
+ let e = x(n, g.x);
100
+ if (e == null || g.ifOverflow === "discard" && !S(n, e)) return null;
101
+ let r = k.value?.orientation, i = [{
102
+ x: e,
103
+ y: t.y + t.height
104
+ }, {
105
+ x: e,
106
+ y: t.y
107
+ }];
108
+ return r === "top" ? i.reverse() : i;
109
+ }
110
+ return null;
111
+ });
112
+ return () => {
113
+ let e = N.value;
114
+ if (!e || e.length < 2) return null;
115
+ let [n, r] = e;
116
+ if (!t(n.x) || !t(n.y) || !t(r.x) || !t(r.y)) return null;
117
+ let i = g.ifOverflow === "hidden" ? `url(#${E})` : void 0, a = {
118
+ ...C,
119
+ stroke: g.stroke,
120
+ "stroke-width": g.strokeWidth,
121
+ fill: g.fill
122
+ }, o = {
123
+ x: Math.min(n.x, r.x),
124
+ y: Math.min(n.y, r.y),
125
+ width: Math.abs(r.x - n.x),
126
+ height: Math.abs(r.y - n.y)
127
+ }, s = g.label, c = typeof s == "object" && s ? s : {};
128
+ return h(l, { class: ["v-charts-reference-line", g.className] }, { default: () => [h("line", _(a, {
129
+ "clip-path": i,
130
+ x1: n.x,
131
+ y1: n.y,
132
+ x2: r.x,
133
+ y2: r.y,
134
+ class: "v-charts-reference-line-line"
135
+ }), null), s != null && s !== !1 && h(u, _({
136
+ viewBox: o,
137
+ value: typeof s == "string" || typeof s == "number" ? s : void 0
138
+ }, c), null)] });
139
+ };
140
+ }
141
+ });
142
+ //#endregion
143
+ export { C as ReferenceLine };
@@ -0,0 +1,252 @@
1
+ import { Curve as e } from "../../shape/Curve.mjs";
2
+ import { getTooltipNameProp as t, getValueByDataKey as n } from "../../utils/chart.mjs";
3
+ import { mouseLeaveChart as r, setActiveMouseOverItemIndex as i, setMouseOverAxisIndex as a } from "../../state/tooltipSlice.mjs";
4
+ import { selectActiveTooltipDataKey as o, selectActiveTooltipIndex as s } from "../../state/selectors/tooltipSelectors.mjs";
5
+ import { useAppDispatch as c, useAppSelector as l } from "../../state/hooks.mjs";
6
+ import { Layer as u } from "../../container/Layer.mjs";
7
+ import { LabelList as d } from "../../components/label/LabelList.mjs";
8
+ import { Animate as f } from "../../animation/Animate.mjs";
9
+ import { SetTooltipEntrySettings as p } from "../../state/SetTooltipEntrySettings.mjs";
10
+ import { useSetupGraphicalItem as m } from "../../hooks/useSetupGraphicalItem.mjs";
11
+ import { useGraphicalLayerRef as h } from "../../context/graphicalLayerContext.mjs";
12
+ import { createErrorBarRegistry as g, provideErrorBarContext as _, provideErrorBarRegistry as v } from "../error-bar/ErrorBarContext.mjs";
13
+ import { useScatter as y } from "./hooks/useScatter.mjs";
14
+ import { Symbols as b } from "../../shape/Symbols.mjs";
15
+ import { getLinearRegression as x } from "../../utils/getLinearRegression.mjs";
16
+ import { Fragment as S, Teleport as C, computed as w, createVNode as T, defineComponent as E, isVNode as D, mergeProps as O, useAttrs as k } from "vue";
17
+ //#region src/cartesian/scatter/Scatter.tsx
18
+ function A(e) {
19
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !D(e);
20
+ }
21
+ var j = (e, t) => (n) => e + (t - e) * n, M = (e, t, r) => ({
22
+ x: e.cx,
23
+ y: e.cy,
24
+ value: r === "x" ? Number(e.node.x) : Number(e.node.y),
25
+ errorVal: n(e.payload, t)
26
+ }), N = /* @__PURE__ */ E({
27
+ name: "Scatter",
28
+ props: {
29
+ xAxisId: {
30
+ type: [String, Number],
31
+ default: 0
32
+ },
33
+ yAxisId: {
34
+ type: [String, Number],
35
+ default: 0
36
+ },
37
+ zAxisId: {
38
+ type: [String, Number],
39
+ default: 0
40
+ },
41
+ dataKey: {
42
+ type: [
43
+ String,
44
+ Number,
45
+ Function
46
+ ],
47
+ default: void 0
48
+ },
49
+ data: {
50
+ type: Array,
51
+ default: void 0
52
+ },
53
+ name: {
54
+ type: [String, Number],
55
+ default: void 0
56
+ },
57
+ hide: {
58
+ type: Boolean,
59
+ default: !1
60
+ },
61
+ fill: {
62
+ type: String,
63
+ default: void 0
64
+ },
65
+ shape: {
66
+ type: String,
67
+ default: "circle"
68
+ },
69
+ isAnimationActive: {
70
+ type: Boolean,
71
+ default: !0
72
+ },
73
+ line: {
74
+ type: [Boolean, Object],
75
+ default: !1
76
+ },
77
+ lineType: {
78
+ type: String,
79
+ default: "joint"
80
+ },
81
+ lineJointType: {
82
+ type: [String, Function],
83
+ default: "linear"
84
+ },
85
+ label: {
86
+ type: [Boolean, Object],
87
+ default: !1
88
+ },
89
+ legendType: {
90
+ type: String,
91
+ default: "circle"
92
+ },
93
+ tooltipType: {
94
+ type: String,
95
+ default: void 0
96
+ },
97
+ transition: {
98
+ type: Object,
99
+ default: void 0
100
+ }
101
+ },
102
+ inheritAttrs: !1,
103
+ slots: Object,
104
+ setup(n, { attrs: E, slots: D }) {
105
+ let N = g();
106
+ v(N), m(n, "scatter", {
107
+ skipTooltip: !0,
108
+ errorBars: N.errorBars
109
+ });
110
+ let { shouldRender: P, points: F } = y(n), I = h(), L = k(), R = c(), z = l(s), B = l(o);
111
+ p({
112
+ fn: (e) => ({
113
+ dataDefinedOnItem: e.points?.map((e) => e.tooltipPayload),
114
+ positions: void 0,
115
+ settings: {
116
+ stroke: e.stroke,
117
+ strokeWidth: e.strokeWidth,
118
+ fill: e.fill,
119
+ dataKey: e.dataKey,
120
+ nameKey: void 0,
121
+ name: t(e.name, e.dataKey),
122
+ hide: e.hide,
123
+ type: e.tooltipType,
124
+ color: e.fill,
125
+ unit: ""
126
+ }
127
+ }),
128
+ args: w(() => ({
129
+ points: F.value,
130
+ fill: L.fill ?? n.fill,
131
+ stroke: L.stroke,
132
+ strokeWidth: L["stroke-width"],
133
+ name: n.name,
134
+ dataKey: n.dataKey,
135
+ hide: n.hide,
136
+ tooltipType: n.tooltipType
137
+ }))
138
+ }), _({
139
+ data: F,
140
+ xAxisId: n.xAxisId,
141
+ yAxisId: n.yAxisId,
142
+ dataPointFormatter: M,
143
+ errorBarOffset: w(() => 0)
144
+ });
145
+ let V = null, H = 0, U = (e, t) => {
146
+ let r = {
147
+ activeDataKey: n.dataKey,
148
+ activeIndex: String(t),
149
+ activeCoordinate: e.tooltipPosition
150
+ };
151
+ R(a(r)), R(i(r));
152
+ }, W = () => {
153
+ R(r());
154
+ }, G = (e, t) => {
155
+ let r = z.value, i = B.value;
156
+ return e.map((e, a) => {
157
+ if (e.cx == null || e.cy == null) return null;
158
+ let o = r === String(a) && i === n.dataKey, s = {
159
+ ...t,
160
+ ...n.fill == null ? {} : { fill: n.fill },
161
+ cx: e.cx,
162
+ cy: e.cy,
163
+ size: o ? (e.size ?? 64) * 1.6 : e.size,
164
+ type: n.shape,
165
+ ...o ? {
166
+ stroke: "#fff",
167
+ "stroke-width": 2
168
+ } : {}
169
+ };
170
+ return T("g", {
171
+ class: "v-charts-scatter-symbol",
172
+ onMouseenter: () => U(e, a),
173
+ onMousemove: (t) => {
174
+ t.stopPropagation(), U(e, a);
175
+ },
176
+ onMouseleave: W
177
+ }, [b(s)]);
178
+ });
179
+ }, K = (t, r) => {
180
+ if (!n.line) return null;
181
+ let i;
182
+ if (n.lineType === "joint") i = t.map((e) => ({
183
+ x: e.cx ?? 0,
184
+ y: e.cy ?? 0
185
+ }));
186
+ else {
187
+ let { xmin: e, xmax: n, a: r, b: a } = x(t);
188
+ i = [{
189
+ x: e,
190
+ y: r * e + a
191
+ }, {
192
+ x: n,
193
+ y: r * n + a
194
+ }];
195
+ }
196
+ let a = {
197
+ fill: "none",
198
+ stroke: r.stroke ?? n.fill,
199
+ ...typeof n.line == "object" ? n.line : {},
200
+ points: i
201
+ };
202
+ return T(u, {
203
+ class: "v-charts-scatter-line",
204
+ style: { pointerEvents: "none" }
205
+ }, { default: () => [T(e, O(a, { type: n.lineJointType }), null)] });
206
+ };
207
+ return () => {
208
+ if (!P.value) return null;
209
+ let e = E, t = F.value, r = n.isAnimationActive, i;
210
+ if (r && V !== t) {
211
+ let a = V;
212
+ H++, i = T(f, {
213
+ key: H,
214
+ transition: n.transition,
215
+ isActive: r
216
+ }, { default: (n) => {
217
+ let r = n === 1 ? t : t.map((e, t) => {
218
+ let r = a && a[t];
219
+ return r ? {
220
+ ...e,
221
+ cx: e.cx == null ? void 0 : j(r.cx ?? 0, e.cx)(n),
222
+ cy: e.cy == null ? void 0 : j(r.cy ?? 0, e.cy)(n),
223
+ size: j(r.size ?? 0, e.size ?? 0)(n)
224
+ } : {
225
+ ...e,
226
+ size: j(0, e.size ?? 0)(n)
227
+ };
228
+ });
229
+ return n > 0 && (V = r), T(S, null, [K(r, e), G(r, e)]);
230
+ } });
231
+ } else V = t, i = T(S, null, [K(t, e), G(t, e)]);
232
+ let a = T(u, { class: "v-charts-scatter" }, { default: () => [
233
+ D.default?.(),
234
+ i,
235
+ n.label && (() => {
236
+ let e = t.map((e) => ({
237
+ x: e.cx ?? 0,
238
+ y: e.cy ?? 0,
239
+ width: 0,
240
+ height: 0,
241
+ value: void 0,
242
+ payload: e.payload
243
+ }));
244
+ return T(d, O(typeof n.label == "object" ? n.label : {}, { data: e }), null);
245
+ })()
246
+ ] });
247
+ return I?.value ? T(C, { to: I.value }, A(a) ? a : { default: () => [a] }) : a;
248
+ };
249
+ }
250
+ });
251
+ //#endregion
252
+ export { N as Scatter };
@@ -0,0 +1,19 @@
1
+ import { useIsPanorama as e } from "../../../context/PanoramaContextProvider.mjs";
2
+ import { useAppSelector as t } from "../../../state/hooks.mjs";
3
+ import { selectScatterPoints as n } from "../../../state/selectors/scatterSelectors.mjs";
4
+ import { computed as r } from "vue";
5
+ //#region src/cartesian/scatter/hooks/useScatter.ts
6
+ function i(i) {
7
+ let a = e(), o = r(() => ({
8
+ data: i.data,
9
+ dataKey: i.dataKey,
10
+ tooltipType: i.tooltipType,
11
+ name: i.name ?? String(i.dataKey ?? "")
12
+ })), s = t((e) => n(e, i.xAxisId ?? 0, i.yAxisId ?? 0, i.zAxisId ?? 0, o.value, a));
13
+ return {
14
+ shouldRender: r(() => !i.hide && s.value != null && s.value.length > 0),
15
+ points: s
16
+ };
17
+ }
18
+ //#endregion
19
+ export { i as useScatter };
@@ -0,0 +1,14 @@
1
+ import { selectXAxisSettings as e, selectYAxisSettings as t } from "../state/selectors/axisSelectors.mjs";
2
+ import { useAppSelector as n } from "../state/hooks.mjs";
3
+ import { computed as r } from "vue";
4
+ //#region src/cartesian/useNeedsClip.ts
5
+ function i(i, a) {
6
+ let o = n((t) => e(t, i)), s = n((e) => t(e, a)), c = r(() => o.value && o.value.allowDataOverflow), l = r(() => s.value && s.value.allowDataOverflow);
7
+ return {
8
+ needClip: r(() => c.value || l.value),
9
+ needClipX: c,
10
+ needClipY: l
11
+ };
12
+ }
13
+ //#endregion
14
+ export { i as useNeedsClip };
@@ -0,0 +1,83 @@
1
+ import { isNumber as e, isSsr as t, isVisible as n } from "../../utils/validate.mjs";
2
+ import { mathSign as r } from "../../utils/data.mjs";
3
+ import { getStringSize as i } from "../../utils/attrs.mjs";
4
+ import { getAngledTickWidth as a, getNumberIntervalTicks as o, getTickBoundaries as s } from "../../utils/tick.mjs";
5
+ import { getEquidistantTicks as c } from "../../utils/cartesian.mjs";
6
+ //#region src/cartesian/utils/get-ticks.ts
7
+ function l(e, t, r, i, a) {
8
+ let o = (i || []).slice(), s = o.length, { start: c } = t, { end: l } = t;
9
+ for (let t = s - 1; t >= 0; t--) {
10
+ let i = o[t], u, d = () => (u === void 0 && (u = r(i, t)), u);
11
+ if (t === s - 1) {
12
+ let n = e * (i.coordinate + e * d() / 2 - l);
13
+ o[t] = i = {
14
+ ...i,
15
+ tickCoord: n > 0 ? i.coordinate - n * e : i.coordinate
16
+ };
17
+ } else o[t] = i = {
18
+ ...i,
19
+ tickCoord: i.coordinate
20
+ };
21
+ n(e, i.tickCoord, d, c, l) && (l = i.tickCoord - e * (d() / 2 + a), o[t] = {
22
+ ...i,
23
+ isShow: !0
24
+ });
25
+ }
26
+ return o;
27
+ }
28
+ function u(e, t, r, i, a, o) {
29
+ let s = (i || []).slice(), c = s.length, { start: l, end: u } = t;
30
+ if (o) {
31
+ let t = i[c - 1], o = r(t, c - 1), d = e * (t.coordinate + e * o / 2 - u);
32
+ s[c - 1] = t = {
33
+ ...t,
34
+ tickCoord: d > 0 ? t.coordinate - d * e : t.coordinate
35
+ }, n(e, t.tickCoord, () => o, l, u) && (u = t.tickCoord - e * (o / 2 + a), s[c - 1] = {
36
+ ...t,
37
+ isShow: !0
38
+ });
39
+ }
40
+ let d = o ? c - 1 : c;
41
+ for (let t = 0; t < d; t++) {
42
+ let i = s[t], o, c = () => (o === void 0 && (o = r(i, t)), o);
43
+ if (t === 0) {
44
+ let n = e * (i.coordinate - e * c() / 2 - l);
45
+ s[t] = i = {
46
+ ...i,
47
+ tickCoord: n < 0 ? i.coordinate - n * e : i.coordinate
48
+ };
49
+ } else s[t] = i = {
50
+ ...i,
51
+ tickCoord: i.coordinate
52
+ };
53
+ n(e, i.tickCoord, c, l, u) && (l = i.tickCoord + e * (c() / 2 + a), s[t] = {
54
+ ...i,
55
+ isShow: !0
56
+ });
57
+ }
58
+ return s;
59
+ }
60
+ function d(n, d, f) {
61
+ let { tick: p, ticks: m, viewBox: h, minTickGap: g, orientation: _, interval: v, tickFormatter: y, unit: b, angle: x } = n;
62
+ if (!m || !m.length || !p) return [];
63
+ if (e(v) || t) return o(m, e(v) ? v : 0) ?? [];
64
+ let S = [], C = _ === "top" || _ === "bottom" ? "width" : "height", w = b && C === "width" ? i(b, {
65
+ fontSize: d,
66
+ letterSpacing: f
67
+ }) : {
68
+ width: 0,
69
+ height: 0
70
+ }, T = (e, t) => {
71
+ let n = typeof y == "function" ? y(e.value, t) : e.value;
72
+ return C === "width" ? a(i(n, {
73
+ fontSize: d,
74
+ letterSpacing: f
75
+ }), w, x) : i(n, {
76
+ fontSize: d,
77
+ letterSpacing: f
78
+ })[C];
79
+ }, E = m.length >= 2 ? r(m[1].coordinate - m[0].coordinate) : 1, D = s(h, E, C);
80
+ return v === "equidistantPreserveStart" ? c(E, D, T, m, g) : (S = v === "preserveStart" || v === "preserveStartEnd" ? u(E, D, T, m, g, v === "preserveStartEnd") : l(E, D, T, m, g), S.filter((e) => e.isShow));
81
+ }
82
+ //#endregion
83
+ export { d as getTicks };