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.
- package/LICENSE +21 -0
- package/dist/animation/Animate.d.ts +72 -0
- package/dist/cartesian/GraphicalItemClipPath.d.ts +31 -0
- package/dist/cartesian/area/ActivePoints.d.ts +77 -0
- package/dist/cartesian/area/Area.d.ts +17 -0
- package/dist/cartesian/area/ClipRect.d.ts +1 -0
- package/dist/cartesian/area/RenderArea.d.ts +16 -0
- package/dist/cartesian/area/__stories__/config.d.ts +31 -0
- package/dist/cartesian/area/hooks/useArea.d.ts +27 -0
- package/dist/cartesian/area/index.d.ts +2 -0
- package/dist/cartesian/area/type.d.ts +173 -0
- package/dist/cartesian/area/utils.d.ts +19 -0
- package/dist/cartesian/axis/XAxis.d.ts +189 -0
- package/dist/cartesian/axis/YAxis.d.ts +192 -0
- package/dist/cartesian/axis/index.d.ts +2 -0
- package/dist/cartesian/axis/type.d.ts +57 -0
- package/dist/cartesian/bar/Bar.d.ts +2 -0
- package/dist/cartesian/bar/components/BarBackground.d.ts +1 -0
- package/dist/cartesian/bar/components/BarRectangles.d.ts +1 -0
- package/dist/cartesian/bar/hooks/useBar.d.ts +23 -0
- package/dist/cartesian/bar/index.d.ts +1 -0
- package/dist/cartesian/bar/type.d.ts +166 -0
- package/dist/cartesian/bar/utils.d.ts +31 -0
- package/dist/cartesian/brush/Brush.d.ts +2 -0
- package/dist/cartesian/brush/components/Background.d.ts +15 -0
- package/dist/cartesian/brush/components/BrushText.d.ts +27 -0
- package/dist/cartesian/brush/components/Panorama.d.ts +65 -0
- package/dist/cartesian/brush/components/Slide.d.ts +20 -0
- package/dist/cartesian/brush/components/Traveller.d.ts +13 -0
- package/dist/cartesian/brush/components/TravellerLayer.d.ts +22 -0
- package/dist/cartesian/brush/hooks/useBrushHandlers.d.ts +25 -0
- package/dist/cartesian/brush/hooks/useBrushSetting.d.ts +6 -0
- package/dist/cartesian/brush/hooks/useBrushState.d.ts +29 -0
- package/dist/cartesian/brush/index.d.ts +2 -0
- package/dist/cartesian/brush/type.d.ts +103 -0
- package/dist/cartesian/brush/utils.d.ts +15 -0
- package/dist/cartesian/cartesian-axis/CartesianAxis.d.ts +209 -0
- package/dist/cartesian/cartesian-axis/const.d.ts +24 -0
- package/dist/cartesian/cartesian-axis/index.d.ts +1 -0
- package/dist/cartesian/cartesian-axis/use-axis-line.d.ts +7 -0
- package/dist/cartesian/cartesian-grid/Background.d.ts +18 -0
- package/dist/cartesian/cartesian-grid/CartesianGrid.d.ts +75 -0
- package/dist/cartesian/cartesian-grid/HorizontalGridLines.d.ts +37 -0
- package/dist/cartesian/cartesian-grid/HorizontalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/VerticalGridLines.d.ts +26 -0
- package/dist/cartesian/cartesian-grid/VerticalStripes.d.ts +20 -0
- package/dist/cartesian/cartesian-grid/const.d.ts +6 -0
- package/dist/cartesian/cartesian-grid/index.d.ts +1 -0
- package/dist/cartesian/cartesian-grid/type.d.ts +145 -0
- package/dist/cartesian/cartesian-grid/utils.d.ts +5 -0
- package/dist/cartesian/error-bar/ErrorBar.d.ts +68 -0
- package/dist/cartesian/error-bar/ErrorBarContext.d.ts +27 -0
- package/dist/cartesian/error-bar/index.d.ts +2 -0
- package/dist/cartesian/funnel/index.d.ts +0 -0
- package/dist/cartesian/funnel/type.d.ts +37 -0
- package/dist/cartesian/funnel/utils.d.ts +12 -0
- package/dist/cartesian/index.d.ts +11 -0
- package/dist/cartesian/line/ActivePoints.d.ts +77 -0
- package/dist/cartesian/line/Line.d.ts +87 -0
- package/dist/cartesian/line/StaticLine.d.ts +16 -0
- package/dist/cartesian/line/hooks/useLine.d.ts +28 -0
- package/dist/cartesian/line/index.d.ts +3 -0
- package/dist/cartesian/line/type.d.ts +180 -0
- package/dist/cartesian/line/utils.d.ts +13 -0
- package/dist/cartesian/reference-area/ReferenceArea.d.ts +191 -0
- package/dist/cartesian/reference-area/index.d.ts +1 -0
- package/dist/cartesian/reference-line/ReferenceLine.d.ts +139 -0
- package/dist/cartesian/reference-line/index.d.ts +1 -0
- package/dist/cartesian/scatter/Scatter.d.ts +165 -0
- package/dist/cartesian/scatter/hooks/useScatter.d.ts +18 -0
- package/dist/cartesian/scatter/index.d.ts +1 -0
- package/dist/cartesian/type.d.ts +21 -0
- package/dist/cartesian/useNeedsClip.d.ts +6 -0
- package/dist/cartesian/utils/get-ticks.d.ts +16 -0
- package/dist/cartesian/z-axis/ZAxis.d.ts +81 -0
- package/dist/cartesian/z-axis/index.d.ts +1 -0
- package/dist/chart/AreaChart.d.ts +1 -0
- package/dist/chart/BarChart.d.ts +1 -0
- package/dist/chart/ComposedChart.d.ts +1 -0
- package/dist/chart/LegendPortalContext.d.ts +3 -0
- package/dist/chart/LineChart.d.ts +1 -0
- package/dist/chart/PieChart.d.ts +1 -0
- package/dist/chart/RadarChart.d.ts +1 -0
- package/dist/chart/RadialBarChart.d.ts +1 -0
- package/dist/chart/RechartsWrapper.d.ts +99 -0
- package/dist/chart/ScatterChart.d.ts +1 -0
- package/dist/chart/Surface.d.ts +40 -0
- package/dist/chart/TooltipPortalContext.d.ts +2 -0
- package/dist/chart/const.d.ts +6 -0
- package/dist/chart/generateCategoricalChart.d.ts +118 -0
- package/dist/chart/index.d.ts +8 -0
- package/dist/chart/provideClipPathId.d.ts +12 -0
- package/dist/components/Cell.d.ts +18 -0
- package/dist/components/DefaultLegendContent.d.ts +18 -0
- package/dist/components/Text.d.ts +149 -0
- package/dist/components/Tooltip.d.ts +250 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/label/Label.d.ts +81 -0
- package/dist/components/label/LabelList.d.ts +63 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/types.d.ts +88 -0
- package/dist/components/label/utils.d.ts +24 -0
- package/dist/components/legend/Legend.d.ts +4 -0
- package/dist/components/legend/LegendSymbol.d.ts +27 -0
- package/dist/components/legend/hooks/useLegend.d.ts +19 -0
- package/dist/components/legend/hooks/useLegendContent.d.ts +36 -0
- package/dist/components/legend/index.d.ts +2 -0
- package/dist/components/legend/type.d.ts +54 -0
- package/dist/components/legend/utils.d.ts +18 -0
- package/dist/components/types.d.ts +9 -0
- package/dist/components/utils.d.ts +4 -0
- package/dist/container/ClipPath.d.ts +12 -0
- package/dist/container/Layer.d.ts +2 -0
- package/dist/container/ResponsiveContainer.d.ts +50 -0
- package/dist/container/RootSurface.d.ts +17 -0
- package/dist/container/Surface.d.ts +25 -0
- package/dist/container/index.d.ts +1 -0
- package/dist/container/useSizeContext.d.ts +11 -0
- package/dist/context/ChartDataContextProvider.d.ts +17 -0
- package/dist/context/PanoramaContextProvider.d.ts +22 -0
- package/dist/context/accessibilityContext.d.ts +1 -0
- package/dist/context/cartesianLabelListContext.d.ts +3 -0
- package/dist/context/chartLayoutContext.d.ts +8 -0
- package/dist/context/cursorLayerContext.d.ts +2 -0
- package/dist/context/graphicalLayerContext.d.ts +2 -0
- package/dist/context/labelLayerContext.d.ts +2 -0
- package/dist/context/polarLabelViewBoxContext.d.ts +4 -0
- package/dist/context/useTooltipAxis.d.ts +2 -0
- package/dist/es/animation/Animate.mjs +63 -0
- package/dist/es/cartesian/GraphicalItemClipPath.mjs +36 -0
- package/dist/es/cartesian/area/ActivePoints.mjs +74 -0
- package/dist/es/cartesian/area/Area.mjs +41 -0
- package/dist/es/cartesian/area/ClipRect.mjs +104 -0
- package/dist/es/cartesian/area/RenderArea.mjs +151 -0
- package/dist/es/cartesian/area/hooks/useArea.mjs +57 -0
- package/dist/es/cartesian/area/type.mjs +136 -0
- package/dist/es/cartesian/area/utils.mjs +59 -0
- package/dist/es/cartesian/axis/XAxis.mjs +189 -0
- package/dist/es/cartesian/axis/YAxis.mjs +181 -0
- package/dist/es/cartesian/bar/Bar.mjs +89 -0
- package/dist/es/cartesian/bar/components/BarBackground.mjs +29 -0
- package/dist/es/cartesian/bar/components/BarRectangles.mjs +106 -0
- package/dist/es/cartesian/bar/hooks/useBar.mjs +41 -0
- package/dist/es/cartesian/bar/type.mjs +131 -0
- package/dist/es/cartesian/bar/utils.mjs +84 -0
- package/dist/es/cartesian/cartesian-axis/CartesianAxis.mjs +246 -0
- package/dist/es/cartesian/cartesian-grid/Background.mjs +30 -0
- package/dist/es/cartesian/cartesian-grid/CartesianGrid.mjs +155 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalGridLines.mjs +49 -0
- package/dist/es/cartesian/cartesian-grid/HorizontalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/VerticalGridLines.mjs +44 -0
- package/dist/es/cartesian/cartesian-grid/VerticalStripes.mjs +43 -0
- package/dist/es/cartesian/cartesian-grid/const.mjs +29 -0
- package/dist/es/cartesian/cartesian-grid/utils.mjs +17 -0
- package/dist/es/cartesian/error-bar/ErrorBar.mjs +115 -0
- package/dist/es/cartesian/error-bar/ErrorBarContext.mjs +19 -0
- package/dist/es/cartesian/line/ActivePoints.mjs +75 -0
- package/dist/es/cartesian/line/Line.mjs +46 -0
- package/dist/es/cartesian/line/StaticLine.mjs +148 -0
- package/dist/es/cartesian/line/hooks/useLine.mjs +53 -0
- package/dist/es/cartesian/line/type.mjs +112 -0
- package/dist/es/cartesian/line/utils.mjs +33 -0
- package/dist/es/cartesian/reference-area/ReferenceArea.mjs +146 -0
- package/dist/es/cartesian/reference-line/ReferenceLine.mjs +143 -0
- package/dist/es/cartesian/scatter/Scatter.mjs +252 -0
- package/dist/es/cartesian/scatter/hooks/useScatter.mjs +19 -0
- package/dist/es/cartesian/useNeedsClip.mjs +14 -0
- package/dist/es/cartesian/utils/get-ticks.mjs +83 -0
- package/dist/es/cartesian/z-axis/ZAxis.mjs +70 -0
- package/dist/es/chart/AreaChart.mjs +9 -0
- package/dist/es/chart/BarChart.mjs +10 -0
- package/dist/es/chart/ComposedChart.mjs +10 -0
- package/dist/es/chart/LegendPortalContext.mjs +5 -0
- package/dist/es/chart/LineChart.mjs +10 -0
- package/dist/es/chart/PieChart.mjs +16 -0
- package/dist/es/chart/RadarChart.mjs +16 -0
- package/dist/es/chart/RadialBarChart.mjs +16 -0
- package/dist/es/chart/RechartsWrapper.mjs +137 -0
- package/dist/es/chart/ScatterChart.mjs +10 -0
- package/dist/es/chart/Surface.mjs +5 -0
- package/dist/es/chart/Surface.vue_vue_type_script_setup_true_lang.mjs +66 -0
- package/dist/es/chart/TooltipPortalContext.mjs +5 -0
- package/dist/es/chart/const.mjs +7 -0
- package/dist/es/chart/generateCategoricalChart.mjs +166 -0
- package/dist/es/chart/provideClipPathId.mjs +10 -0
- package/dist/es/components/Cell.mjs +11 -0
- package/dist/es/components/Text.mjs +5 -0
- package/dist/es/components/Text.vue_vue_type_script_setup_true_lang.mjs +154 -0
- package/dist/es/components/Tooltip.mjs +388 -0
- package/dist/es/components/label/Label.mjs +36 -0
- package/dist/es/components/label/LabelList.mjs +49 -0
- package/dist/es/components/label/types.mjs +35 -0
- package/dist/es/components/label/utils.mjs +233 -0
- package/dist/es/components/legend/Legend.mjs +82 -0
- package/dist/es/components/legend/LegendSymbol.mjs +60 -0
- package/dist/es/components/legend/hooks/useLegend.mjs +52 -0
- package/dist/es/components/legend/hooks/useLegendContent.mjs +47 -0
- package/dist/es/components/legend/type.mjs +41 -0
- package/dist/es/components/legend/utils.mjs +17 -0
- package/dist/es/components/utils.mjs +31 -0
- package/dist/es/container/ClipPath.mjs +25 -0
- package/dist/es/container/Layer.mjs +12 -0
- package/dist/es/container/ResponsiveContainer.mjs +5 -0
- package/dist/es/container/ResponsiveContainer.vue_vue_type_script_setup_true_lang.mjs +112 -0
- package/dist/es/container/Surface.mjs +58 -0
- package/dist/es/container/useSizeContext.mjs +5 -0
- package/dist/es/context/ChartDataContextProvider.mjs +21 -0
- package/dist/es/context/PanoramaContextProvider.mjs +19 -0
- package/dist/es/context/accessibilityContext.mjs +5 -0
- package/dist/es/context/cartesianLabelListContext.mjs +5 -0
- package/dist/es/context/chartLayoutContext.mjs +46 -0
- package/dist/es/context/cursorLayerContext.mjs +5 -0
- package/dist/es/context/graphicalLayerContext.mjs +5 -0
- package/dist/es/context/labelLayerContext.mjs +5 -0
- package/dist/es/context/polarLabelViewBoxContext.mjs +8 -0
- package/dist/es/context/useTooltipAxis.mjs +15 -0
- package/dist/es/events/useChartSynchronisation.mjs +88 -0
- package/dist/es/hooks/useSetupGraphicalItem.mjs +57 -0
- package/dist/es/index.mjs +42 -0
- package/dist/es/polar/pie/Pie.mjs +145 -0
- package/dist/es/polar/pie/type.mjs +97 -0
- package/dist/es/polar/radar/PolarAngleAxis.mjs +161 -0
- package/dist/es/polar/radar/PolarGrid.mjs +102 -0
- package/dist/es/polar/radar/PolarRadiusAxis.mjs +137 -0
- package/dist/es/polar/radar/Radar.mjs +248 -0
- package/dist/es/polar/radial-bar/RadialBar.mjs +176 -0
- package/dist/es/polar/radial-bar/type.mjs +97 -0
- package/dist/es/shape/Cross.mjs +15 -0
- package/dist/es/shape/Curve.mjs +60 -0
- package/dist/es/shape/Dot.mjs +23 -0
- package/dist/es/shape/Rectangle.mjs +68 -0
- package/dist/es/shape/Sector.mjs +128 -0
- package/dist/es/shape/Symbols.mjs +41 -0
- package/dist/es/state/ReportChartProps.mjs +63 -0
- package/dist/es/state/ReportMainChartProps.mjs +41 -0
- package/dist/es/state/ReportPolarOptions.mjs +55 -0
- package/dist/es/state/SetGraphicalItem.mjs +34 -0
- package/dist/es/state/SetLegendPayload.mjs +16 -0
- package/dist/es/state/SetTooltipEntrySettings.mjs +17 -0
- package/dist/es/state/brushSlice.mjs +22 -0
- package/dist/es/state/cartesianAxisSlice.mjs +33 -0
- package/dist/es/state/chartDataSlice.mjs +28 -0
- package/dist/es/state/externalEventsMiddleware.mjs +20 -0
- package/dist/es/state/graphicalItemsSlice.mjs +43 -0
- package/dist/es/state/hooks.mjs +5 -0
- package/dist/es/state/keyboardEventsMiddleware.mjs +55 -0
- package/dist/es/state/layoutSlice.mjs +33 -0
- package/dist/es/state/legendSlice.mjs +35 -0
- package/dist/es/state/mouseEventsMiddleware.mjs +34 -0
- package/dist/es/state/optionsSlice.mjs +22 -0
- package/dist/es/state/polarAxisSlice.mjs +26 -0
- package/dist/es/state/polarOptionsSlice.mjs +11 -0
- package/dist/es/state/reduxDevtoolsJsonStringifyReplacer.mjs +6 -0
- package/dist/es/state/referenceElementsSlice.mjs +34 -0
- package/dist/es/state/rootPropsSlice.mjs +21 -0
- package/dist/es/state/selectors/areaSelectors.mjs +67 -0
- package/dist/es/state/selectors/axisSelectors.mjs +693 -0
- package/dist/es/state/selectors/barSelectors.mjs +178 -0
- package/dist/es/state/selectors/brushSelectors.mjs +17 -0
- package/dist/es/state/selectors/combiners/combineActiveLabel.mjs +8 -0
- package/dist/es/state/selectors/combiners/combineActiveTooltipIndex.mjs +34 -0
- package/dist/es/state/selectors/combiners/combineAxisRangeWithReverse.mjs +6 -0
- package/dist/es/state/selectors/combiners/combineCoordinateForDefaultIndex.mjs +19 -0
- package/dist/es/state/selectors/combiners/combineTooltipInteractionState.mjs +32 -0
- package/dist/es/state/selectors/combiners/combineTooltipPayloadConfigurations.mjs +9 -0
- package/dist/es/state/selectors/common.mjs +4 -0
- package/dist/es/state/selectors/containerSelectors.mjs +4 -0
- package/dist/es/state/selectors/dataSelectors.mjs +16 -0
- package/dist/es/state/selectors/legendSelectors.mjs +9 -0
- package/dist/es/state/selectors/lineSelectors.mjs +57 -0
- package/dist/es/state/selectors/pickAxisId.mjs +4 -0
- package/dist/es/state/selectors/pickAxisType.mjs +4 -0
- package/dist/es/state/selectors/pieSelectors.mjs +97 -0
- package/dist/es/state/selectors/polarAxisSelectors.mjs +148 -0
- package/dist/es/state/selectors/polarGridSelectors.mjs +17 -0
- package/dist/es/state/selectors/polarScaleSelectors.mjs +52 -0
- package/dist/es/state/selectors/polarSelectors.mjs +64 -0
- package/dist/es/state/selectors/radarSelectors.mjs +113 -0
- package/dist/es/state/selectors/radialBarSelectors.mjs +212 -0
- package/dist/es/state/selectors/rootPropsSelectors.mjs +8 -0
- package/dist/es/state/selectors/scatterSelectors.mjs +118 -0
- package/dist/es/state/selectors/selectActivePropsFromChartPointer.mjs +18 -0
- package/dist/es/state/selectors/selectAllAxes.mjs +5 -0
- package/dist/es/state/selectors/selectChartOffset.mjs +60 -0
- package/dist/es/state/selectors/selectChartOffsetInternal.mjs +55 -0
- package/dist/es/state/selectors/selectTooltipEventType.mjs +21 -0
- package/dist/es/state/selectors/selectTooltipPayloadSearcher.mjs +6 -0
- package/dist/es/state/selectors/selectTooltipSettings.mjs +4 -0
- package/dist/es/state/selectors/selectTooltipState.mjs +4 -0
- package/dist/es/state/selectors/selectors.mjs +85 -0
- package/dist/es/state/selectors/tooltipSelectors.mjs +220 -0
- package/dist/es/state/selectors/touchSelectors.mjs +16 -0
- package/dist/es/state/store.mjs +55 -0
- package/dist/es/state/tooltipSlice.mjs +75 -0
- package/dist/es/state/touchEventsMiddleware.mjs +38 -0
- package/dist/es/state/utils/useReportScale.mjs +16 -0
- package/dist/es/synchronisation/syncSelectors.mjs +6 -0
- package/dist/es/synchronisation/useChartSynchronisation.mjs +24 -0
- package/dist/es/types/event.mjs +4 -0
- package/dist/es/utils/ReduceCSSCalc.mjs +82 -0
- package/dist/es/utils/VueUtils.mjs +18 -0
- package/dist/es/utils/attrs.mjs +52 -0
- package/dist/es/utils/cartesian.mjs +22 -0
- package/dist/es/utils/chart.mjs +265 -0
- package/dist/es/utils/const.mjs +4 -0
- package/dist/es/utils/createContext.mjs +12 -0
- package/dist/es/utils/data-utils.mjs +12 -0
- package/dist/es/utils/data.mjs +27 -0
- package/dist/es/utils/events.mjs +5 -0
- package/dist/es/utils/getLinearRegression.mjs +17 -0
- package/dist/es/utils/grid.mjs +8 -0
- package/dist/es/utils/isDomainSpecifiedByUser.mjs +65 -0
- package/dist/es/utils/legend.mjs +18 -0
- package/dist/es/utils/log.mjs +11 -0
- package/dist/es/utils/payload/getUniqPayload.mjs +7 -0
- package/dist/es/utils/polar.mjs +52 -0
- package/dist/es/utils/props.mjs +14 -0
- package/dist/es/utils/resolveDefaultProps.mjs +7 -0
- package/dist/es/utils/scale/getNiceTickValues.mjs +59 -0
- package/dist/es/utils/scale/utils/arithmetic.mjs +24 -0
- package/dist/es/utils/scale/utils/utils.mjs +34 -0
- package/dist/es/utils/style.mjs +19 -0
- package/dist/es/utils/tick.mjs +31 -0
- package/dist/es/utils/tooltip/translate.mjs +59 -0
- package/dist/es/utils/validate.mjs +31 -0
- package/dist/events/useChartSynchronisation.d.ts +8 -0
- package/dist/hooks/useSetupGraphicalItem.d.ts +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/polar/index.d.ts +3 -0
- package/dist/polar/pie/Pie.d.ts +2 -0
- package/dist/polar/pie/index.d.ts +2 -0
- package/dist/polar/pie/type.d.ts +88 -0
- package/dist/polar/radar/PolarAngleAxis.d.ts +145 -0
- package/dist/polar/radar/PolarGrid.d.ts +77 -0
- package/dist/polar/radar/PolarRadiusAxis.d.ts +125 -0
- package/dist/polar/radar/Radar.d.ts +160 -0
- package/dist/polar/radar/index.d.ts +4 -0
- package/dist/polar/radial-bar/RadialBar.d.ts +2 -0
- package/dist/polar/radial-bar/index.d.ts +2 -0
- package/dist/polar/radial-bar/type.d.ts +96 -0
- package/dist/shape/Cross.d.ts +10 -0
- package/dist/shape/Curve.d.ts +42 -0
- package/dist/shape/Dot.d.ts +18 -0
- package/dist/shape/Rectangle.d.ts +33 -0
- package/dist/shape/Sector.d.ts +48 -0
- package/dist/shape/Symbols.d.ts +15 -0
- package/dist/shape/index.d.ts +8 -0
- package/dist/shape/types.d.ts +20 -0
- package/dist/state/ReportBar.d.ts +1 -0
- package/dist/state/ReportChartProps.d.ts +88 -0
- package/dist/state/ReportMainChartProps.d.ts +37 -0
- package/dist/state/ReportPolarOptions.d.ts +59 -0
- package/dist/state/SetGraphicalItem.d.ts +9 -0
- package/dist/state/SetLegendPayload.d.ts +3 -0
- package/dist/state/SetTooltipEntrySettings.d.ts +8 -0
- package/dist/state/brushSlice.d.ts +18 -0
- package/dist/state/cartesianAxisSlice.d.ts +88 -0
- package/dist/state/chartDataSlice.d.ts +44 -0
- package/dist/state/externalEventsMiddleware.d.ts +17 -0
- package/dist/state/graphicalItemsSlice.d.ts +108 -0
- package/dist/state/hooks.d.ts +54 -0
- package/dist/state/keyboardEventsMiddleware.d.ts +3 -0
- package/dist/state/layoutSlice.d.ts +15 -0
- package/dist/state/legendSlice.d.ts +26 -0
- package/dist/state/mouseEventsMiddleware.d.ts +5 -0
- package/dist/state/optionsSlice.d.ts +27 -0
- package/dist/state/polarAxisSlice.d.ts +10 -0
- package/dist/state/polarOptionsSlice.d.ts +10 -0
- package/dist/state/reduxDevtoolsJsonStringifyReplacer.d.ts +1 -0
- package/dist/state/referenceElementsSlice.d.ts +40 -0
- package/dist/state/rootPropsSlice.d.ts +26 -0
- package/dist/state/selectors/areaSelectors.d.ts +24 -0
- package/dist/state/selectors/axisSelectors.d.ts +1828 -0
- package/dist/state/selectors/barSelectors.d.ts +944 -0
- package/dist/state/selectors/brushSelectors.d.ts +10 -0
- package/dist/state/selectors/combiners/combineActiveLabel.d.ts +3 -0
- package/dist/state/selectors/combiners/combineActiveTooltipIndex.d.ts +5 -0
- package/dist/state/selectors/combiners/combineAxisRangeWithReverse.d.ts +3 -0
- package/dist/state/selectors/combiners/combineCoordinateForDefaultIndex.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipInteractionState.d.ts +3 -0
- package/dist/state/selectors/combiners/combineTooltipPayloadConfigurations.d.ts +3 -0
- package/dist/state/selectors/common.d.ts +2 -0
- package/dist/state/selectors/containerSelectors.d.ts +6 -0
- package/dist/state/selectors/dataSelectors.d.ts +23 -0
- package/dist/state/selectors/funnelSelectors.d.ts +69 -0
- package/dist/state/selectors/legendSelectors.d.ts +7 -0
- package/dist/state/selectors/lineSelectors.d.ts +123 -0
- package/dist/state/selectors/pickAxisId.d.ts +3 -0
- package/dist/state/selectors/pickAxisType.d.ts +2 -0
- package/dist/state/selectors/pieSelectors.d.ts +55 -0
- package/dist/state/selectors/polarAxisSelectors.d.ts +49 -0
- package/dist/state/selectors/polarGridSelectors.d.ts +118 -0
- package/dist/state/selectors/polarScaleSelectors.d.ts +9 -0
- package/dist/state/selectors/polarSelectors.d.ts +70 -0
- package/dist/state/selectors/radarSelectors.d.ts +76 -0
- package/dist/state/selectors/radialBarSelectors.d.ts +61 -0
- package/dist/state/selectors/rootPropsSelectors.d.ts +11 -0
- package/dist/state/selectors/scatterSelectors.d.ts +21 -0
- package/dist/state/selectors/selectActivePropsFromChartPointer.d.ts +382 -0
- package/dist/state/selectors/selectAllAxes.d.ts +4 -0
- package/dist/state/selectors/selectChartOffset.d.ts +116 -0
- package/dist/state/selectors/selectChartOffsetInternal.d.ts +9 -0
- package/dist/state/selectors/selectTooltipEventType.d.ts +8 -0
- package/dist/state/selectors/selectTooltipPayloadSearcher.d.ts +3 -0
- package/dist/state/selectors/selectTooltipSettings.d.ts +3 -0
- package/dist/state/selectors/selectTooltipState.d.ts +3 -0
- package/dist/state/selectors/selectors.d.ts +184 -0
- package/dist/state/selectors/tooltipSelectors.d.ts +581 -0
- package/dist/state/selectors/touchSelectors.d.ts +4 -0
- package/dist/state/store.d.ts +74 -0
- package/dist/state/tooltipSlice.d.ts +204 -0
- package/dist/state/touchEventsMiddleware.d.ts +2 -0
- package/dist/state/utils/useReportScale.d.ts +1 -0
- package/dist/synchronisation/syncSelectors.d.ts +3 -0
- package/dist/synchronisation/useChartSynchronisation.d.ts +11 -0
- package/dist/types/area.d.ts +8 -0
- package/dist/types/axis.d.ts +127 -0
- package/dist/types/bar.d.ts +51 -0
- package/dist/types/categorical.d.ts +36 -0
- package/dist/types/common.d.ts +129 -0
- package/dist/types/event.d.ts +16 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/legend.d.ts +1 -0
- package/dist/types/offset.d.ts +8 -0
- package/dist/types/radar.d.ts +28 -0
- package/dist/types/scale.d.ts +11 -0
- package/dist/types/tick.d.ts +55 -0
- package/dist/types/tooltip.d.ts +33 -0
- package/dist/utils/ReduceCSSCalc.d.ts +2 -0
- package/dist/utils/VueUtils.d.ts +11 -0
- package/dist/utils/attrs.d.ts +46 -0
- package/dist/utils/cartesian.d.ts +20 -0
- package/dist/utils/chart.d.ts +99 -0
- package/dist/utils/const.d.ts +30 -0
- package/dist/utils/context.d.ts +8 -0
- package/dist/utils/createContext.d.ts +8 -0
- package/dist/utils/data-utils.d.ts +4 -0
- package/dist/utils/data.d.ts +13 -0
- package/dist/utils/events.d.ts +12 -0
- package/dist/utils/getLinearRegression.d.ts +15 -0
- package/dist/utils/getRelativeCoordinate.d.ts +11 -0
- package/dist/utils/grid.d.ts +37 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/isDomainSpecifiedByUser.d.ts +47 -0
- package/dist/utils/legend.d.ts +3 -0
- package/dist/utils/log.d.ts +1 -0
- package/dist/utils/payload/getUniqPayload.d.ts +4 -0
- package/dist/utils/polar.d.ts +21 -0
- package/dist/utils/props.d.ts +15 -0
- package/dist/utils/resolveDefaultProps.d.ts +52 -0
- package/dist/utils/scale/getNiceTickValues.d.ts +61 -0
- package/dist/utils/scale/utils/arithmetic.d.ts +50 -0
- package/dist/utils/scale/utils/utils.d.ts +9 -0
- package/dist/utils/style.d.ts +12 -0
- package/dist/utils/tick.d.ts +19 -0
- package/dist/utils/tooltip/translate.d.ts +47 -0
- package/dist/utils/types.d.ts +14 -0
- package/dist/utils/validate.d.ts +25 -0
- package/package.json +27 -10
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
import { isCategoricalAxis as e, isNan as t, isNumOrStr as n, isNumber as r, isWellBehavedNumber as i } from "../../utils/validate.mjs";
|
|
2
|
+
import { selectChartDataWithIndexes as a, selectChartDataWithIndexesIfNotInPanorama as o } from "./dataSelectors.mjs";
|
|
3
|
+
import { selectChartHeight as s, selectChartWidth as c } from "./containerSelectors.mjs";
|
|
4
|
+
import { selectAllXAxes as l, selectAllYAxes as u } from "./selectAllAxes.mjs";
|
|
5
|
+
import { selectChartOffset as d } from "./selectChartOffset.mjs";
|
|
6
|
+
import { selectBrushDimensions as f, selectBrushSettings as p } from "./brushSelectors.mjs";
|
|
7
|
+
import { selectBarCategoryGap as ee, selectChartName as m, selectStackOffsetType as h } from "./rootPropsSelectors.mjs";
|
|
8
|
+
import { combineAxisRangeWithReverse as g } from "./combiners/combineAxisRangeWithReverse.mjs";
|
|
9
|
+
import { getPercentValue as te, hasDuplicate as ne, mathSign as re } from "../../utils/data.mjs";
|
|
10
|
+
import { selectChartLayout as _ } from "./common.mjs";
|
|
11
|
+
import { selectAngleAxis as ie, selectAngleAxisRange as ae, selectRadiusAxis as oe, selectRadiusAxisRange as se } from "./polarAxisSelectors.mjs";
|
|
12
|
+
import { pickAxisType as v } from "./pickAxisType.mjs";
|
|
13
|
+
import { pickAxisId as y } from "./pickAxisId.mjs";
|
|
14
|
+
import { checkDomainOfScale as ce, getDomainOfStackGroups as le, getStackedData as ue, getValueByDataKey as b } from "../../utils/chart.mjs";
|
|
15
|
+
import { isWellFormedNumberDomain as de, numericalDomainSpecifiedWithoutRequiringData as fe, parseNumericalUserDomain as pe } from "../../utils/isDomainSpecifiedByUser.mjs";
|
|
16
|
+
import { getNiceTickValues as me, getTickValuesFixedDomain as he } from "../../utils/scale/getNiceTickValues.mjs";
|
|
17
|
+
import { createSelector as x } from "@reduxjs/toolkit";
|
|
18
|
+
import { range as ge, upperFirst as _e } from "lodash-es";
|
|
19
|
+
import * as S from "victory-vendor/d3-scale";
|
|
20
|
+
//#region src/state/selectors/axisSelectors.ts
|
|
21
|
+
var C = [0, "auto"], ve = {
|
|
22
|
+
allowDataOverflow: !1,
|
|
23
|
+
allowDecimals: !0,
|
|
24
|
+
allowDuplicatedCategory: !0,
|
|
25
|
+
angle: 0,
|
|
26
|
+
dataKey: void 0,
|
|
27
|
+
domain: void 0,
|
|
28
|
+
height: 30,
|
|
29
|
+
hide: !0,
|
|
30
|
+
id: void 0,
|
|
31
|
+
includeHidden: !1,
|
|
32
|
+
interval: "preserveEnd",
|
|
33
|
+
minTickGap: 5,
|
|
34
|
+
mirror: !1,
|
|
35
|
+
name: void 0,
|
|
36
|
+
orientation: "bottom",
|
|
37
|
+
padding: {
|
|
38
|
+
left: 0,
|
|
39
|
+
right: 0
|
|
40
|
+
},
|
|
41
|
+
reversed: !1,
|
|
42
|
+
scale: "auto",
|
|
43
|
+
tick: !0,
|
|
44
|
+
tickCount: 5,
|
|
45
|
+
tickFormatter: void 0,
|
|
46
|
+
ticks: void 0,
|
|
47
|
+
type: "category",
|
|
48
|
+
unit: void 0
|
|
49
|
+
};
|
|
50
|
+
function w(e, t) {
|
|
51
|
+
return e.cartesianAxis.xAxis[t] ?? ve;
|
|
52
|
+
}
|
|
53
|
+
var ye = {
|
|
54
|
+
allowDataOverflow: !1,
|
|
55
|
+
allowDecimals: !0,
|
|
56
|
+
allowDuplicatedCategory: !0,
|
|
57
|
+
angle: 0,
|
|
58
|
+
dataKey: void 0,
|
|
59
|
+
domain: C,
|
|
60
|
+
hide: !0,
|
|
61
|
+
id: void 0,
|
|
62
|
+
includeHidden: !1,
|
|
63
|
+
interval: "preserveEnd",
|
|
64
|
+
minTickGap: 5,
|
|
65
|
+
mirror: !1,
|
|
66
|
+
name: void 0,
|
|
67
|
+
orientation: "left",
|
|
68
|
+
padding: {
|
|
69
|
+
top: 0,
|
|
70
|
+
bottom: 0
|
|
71
|
+
},
|
|
72
|
+
reversed: !1,
|
|
73
|
+
scale: "auto",
|
|
74
|
+
tick: !0,
|
|
75
|
+
tickCount: 5,
|
|
76
|
+
tickFormatter: void 0,
|
|
77
|
+
ticks: void 0,
|
|
78
|
+
type: "number",
|
|
79
|
+
unit: void 0,
|
|
80
|
+
width: 60
|
|
81
|
+
};
|
|
82
|
+
function T(e, t) {
|
|
83
|
+
return e.cartesianAxis.yAxis[t] ?? ye;
|
|
84
|
+
}
|
|
85
|
+
var be = {
|
|
86
|
+
domain: [0, "auto"],
|
|
87
|
+
includeHidden: !1,
|
|
88
|
+
reversed: !1,
|
|
89
|
+
allowDataOverflow: !1,
|
|
90
|
+
allowDuplicatedCategory: !1,
|
|
91
|
+
dataKey: void 0,
|
|
92
|
+
id: void 0,
|
|
93
|
+
name: "",
|
|
94
|
+
range: [64, 64],
|
|
95
|
+
scale: "auto",
|
|
96
|
+
type: "number",
|
|
97
|
+
unit: ""
|
|
98
|
+
};
|
|
99
|
+
function E(e, t) {
|
|
100
|
+
return e.cartesianAxis.zAxis[t] ?? be;
|
|
101
|
+
}
|
|
102
|
+
function D(e, t, n) {
|
|
103
|
+
switch (t) {
|
|
104
|
+
case "xAxis": return w(e, n);
|
|
105
|
+
case "yAxis": return T(e, n);
|
|
106
|
+
case "zAxis": return E(e, n);
|
|
107
|
+
case "angleAxis": return ie(e, n);
|
|
108
|
+
case "radiusAxis": return oe(e, n);
|
|
109
|
+
default: throw Error(`Unexpected axis type: ${t}`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function xe(e, t, n) {
|
|
113
|
+
switch (t) {
|
|
114
|
+
case "xAxis": return w(e, n);
|
|
115
|
+
case "yAxis": return T(e, n);
|
|
116
|
+
default: throw Error(`Unexpected axis type: ${t}`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function O(e, t, n = 0) {
|
|
120
|
+
switch (t) {
|
|
121
|
+
case "xAxis": return w(e, n);
|
|
122
|
+
case "yAxis": return T(e, n);
|
|
123
|
+
case "angleAxis": return ie(e, n);
|
|
124
|
+
case "radiusAxis": return oe(e, n);
|
|
125
|
+
default: throw Error(`Unexpected axis type: ${t}`);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function k(e) {
|
|
129
|
+
return e.graphicalItems.cartesianItems.some((e) => e.type === "bar") || e.graphicalItems.polarItems.some((e) => e.type === "radialBar");
|
|
130
|
+
}
|
|
131
|
+
function A(e, t) {
|
|
132
|
+
return (n) => {
|
|
133
|
+
switch (e) {
|
|
134
|
+
case "xAxis": return "xAxisId" in n && n.xAxisId === t;
|
|
135
|
+
case "yAxis": return "yAxisId" in n && n.yAxisId === t;
|
|
136
|
+
case "zAxis": return "zAxisId" in n && n.zAxisId === t;
|
|
137
|
+
case "angleAxis": return "angleAxisId" in n && n.angleAxisId === t;
|
|
138
|
+
case "radiusAxis": return "radiusAxisId" in n && n.radiusAxisId === t;
|
|
139
|
+
default: return !1;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function j(e) {
|
|
144
|
+
return e.graphicalItems.cartesianItems;
|
|
145
|
+
}
|
|
146
|
+
var Se = x([v, y], A);
|
|
147
|
+
function M(e, t, n) {
|
|
148
|
+
return e.filter(n).filter((e) => t?.includeHidden === !0 ? !0 : !e.hide);
|
|
149
|
+
}
|
|
150
|
+
var N = x([
|
|
151
|
+
j,
|
|
152
|
+
D,
|
|
153
|
+
Se
|
|
154
|
+
], M);
|
|
155
|
+
function P(e) {
|
|
156
|
+
return e.filter((e) => e.stackId === void 0);
|
|
157
|
+
}
|
|
158
|
+
var Ce = x([N], P);
|
|
159
|
+
function F(e) {
|
|
160
|
+
return e.map((e) => e.data).filter(Boolean).flat(1);
|
|
161
|
+
}
|
|
162
|
+
var we = x([N], F);
|
|
163
|
+
function Te(e, { chartData: t = [], dataStartIndex: n, dataEndIndex: r }) {
|
|
164
|
+
return e.length > 0 ? e : t.slice(n, r + 1);
|
|
165
|
+
}
|
|
166
|
+
var I = x([we, o], Te);
|
|
167
|
+
function Ee(e, t, n) {
|
|
168
|
+
return t?.dataKey == null ? n.length > 0 ? n.map((e) => e.dataKey).flatMap((t) => e.map((e) => ({ value: b(e, t) }))) : e.map((e) => ({ value: e })) : e.map((e) => ({ value: b(e, t.dataKey) }));
|
|
169
|
+
}
|
|
170
|
+
var L = x([
|
|
171
|
+
I,
|
|
172
|
+
D,
|
|
173
|
+
N
|
|
174
|
+
], Ee);
|
|
175
|
+
function De(e, t) {
|
|
176
|
+
switch (e) {
|
|
177
|
+
case "xAxis": return t.direction === "x";
|
|
178
|
+
case "yAxis": return t.direction === "y";
|
|
179
|
+
default: return !1;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
function R(e) {
|
|
183
|
+
return e.filter((e) => n(e) || e instanceof Date).map(Number).filter((e) => t(e) === !1);
|
|
184
|
+
}
|
|
185
|
+
function Oe(e, n, r) {
|
|
186
|
+
return !r || typeof n != "number" || t(n) || !r.length ? [] : R(r.flatMap((t) => {
|
|
187
|
+
let r = b(e, t.dataKey), a, o;
|
|
188
|
+
if (Array.isArray(r) ? [a, o] = r : a = o = r, !(!i(a) || !i(o))) return [n - a, n + o];
|
|
189
|
+
}));
|
|
190
|
+
}
|
|
191
|
+
function ke(e, t, n) {
|
|
192
|
+
let r = t.reduce((e, t) => t.stackId == null ? e : (e[t.stackId] ?? (e[t.stackId] = []), e[t.stackId].push(t), e), {});
|
|
193
|
+
return Object.fromEntries(Object.entries(r).map(([t, r]) => [t, {
|
|
194
|
+
stackedData: ue(e, r.map((e) => e.dataKey), n),
|
|
195
|
+
graphicalItems: r
|
|
196
|
+
}]));
|
|
197
|
+
}
|
|
198
|
+
var Ae = x([
|
|
199
|
+
I,
|
|
200
|
+
N,
|
|
201
|
+
h
|
|
202
|
+
], ke);
|
|
203
|
+
function je(e, { dataStartIndex: t, dataEndIndex: n }, r) {
|
|
204
|
+
if (r === "zAxis") return;
|
|
205
|
+
let i = le(e, t, n);
|
|
206
|
+
if (!(i != null && i[0] === 0 && i[1] === 0)) return i;
|
|
207
|
+
}
|
|
208
|
+
var Me = x([
|
|
209
|
+
Ae,
|
|
210
|
+
a,
|
|
211
|
+
v
|
|
212
|
+
], je);
|
|
213
|
+
function Ne(e, t, n, r) {
|
|
214
|
+
return n.length > 0 ? e.flatMap((e) => n.flatMap((n) => {
|
|
215
|
+
let i = n.errorBars?.filter((e) => De(r, e)), a = b(e, t.dataKey || n.dataKey);
|
|
216
|
+
return {
|
|
217
|
+
value: a,
|
|
218
|
+
errorDomain: Oe(e, a, i)
|
|
219
|
+
};
|
|
220
|
+
})).filter(Boolean) : t?.dataKey == null ? e.map((e) => ({
|
|
221
|
+
value: e,
|
|
222
|
+
errorDomain: []
|
|
223
|
+
})) : e.map((e) => ({
|
|
224
|
+
value: b(e, t.dataKey),
|
|
225
|
+
errorDomain: []
|
|
226
|
+
}));
|
|
227
|
+
}
|
|
228
|
+
var Pe = x(I, D, Ce, v, Ne);
|
|
229
|
+
function Fe(e) {
|
|
230
|
+
let { value: t } = e;
|
|
231
|
+
if (n(t) || t instanceof Date) return t;
|
|
232
|
+
}
|
|
233
|
+
function Ie(e) {
|
|
234
|
+
let t = R(e.flatMap((e) => [e.value, e.errorDomain]).flat(1));
|
|
235
|
+
if (t.length !== 0) return [Math.min(...t), Math.max(...t)];
|
|
236
|
+
}
|
|
237
|
+
function Le(e, t, n) {
|
|
238
|
+
let r = e.map(Fe).filter((e) => e != null);
|
|
239
|
+
return n && (t.dataKey == null || t.allowDuplicatedCategory && ne(r)) ? ge(0, e.length) : t.allowDuplicatedCategory ? r : Array.from(new Set(r));
|
|
240
|
+
}
|
|
241
|
+
function z(e) {
|
|
242
|
+
if (e == null || !("domain" in e)) return C;
|
|
243
|
+
if (e.domain != null) return e.domain;
|
|
244
|
+
if (e.ticks != null) {
|
|
245
|
+
if (e.type === "number") {
|
|
246
|
+
let t = R(e.ticks);
|
|
247
|
+
return [Math.min(...t), Math.max(...t)];
|
|
248
|
+
}
|
|
249
|
+
if (e.type === "category") return e.ticks.map(String);
|
|
250
|
+
}
|
|
251
|
+
return e?.domain ?? C;
|
|
252
|
+
}
|
|
253
|
+
function B(...e) {
|
|
254
|
+
let t = e.filter(Boolean);
|
|
255
|
+
if (t.length === 0) return;
|
|
256
|
+
let n = t.flat().filter(r);
|
|
257
|
+
return [Math.min(...n), Math.max(...n)];
|
|
258
|
+
}
|
|
259
|
+
function Re(e) {
|
|
260
|
+
return e.referenceElements.dots;
|
|
261
|
+
}
|
|
262
|
+
function V(e, t, n) {
|
|
263
|
+
return e.filter((e) => e.ifOverflow === "extendDomain").filter((e) => t === "xAxis" ? e.xAxisId === n : e.yAxisId === n);
|
|
264
|
+
}
|
|
265
|
+
var ze = x([
|
|
266
|
+
Re,
|
|
267
|
+
v,
|
|
268
|
+
y
|
|
269
|
+
], V);
|
|
270
|
+
function Be(e) {
|
|
271
|
+
return e.referenceElements.areas;
|
|
272
|
+
}
|
|
273
|
+
var Ve = x([
|
|
274
|
+
Be,
|
|
275
|
+
v,
|
|
276
|
+
y
|
|
277
|
+
], V);
|
|
278
|
+
function He(e) {
|
|
279
|
+
return e.referenceElements.lines;
|
|
280
|
+
}
|
|
281
|
+
var Ue = x([
|
|
282
|
+
He,
|
|
283
|
+
v,
|
|
284
|
+
y
|
|
285
|
+
], V);
|
|
286
|
+
function H(e, t) {
|
|
287
|
+
let n = R(e.map((e) => t === "xAxis" ? e.x : e.y));
|
|
288
|
+
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
|
|
289
|
+
}
|
|
290
|
+
var We = x(ze, v, H);
|
|
291
|
+
function Ge(e, t) {
|
|
292
|
+
let n = R(e.flatMap((e) => [t === "xAxis" ? e.x1 : e.y1, t === "xAxis" ? e.x2 : e.y2]));
|
|
293
|
+
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
|
|
294
|
+
}
|
|
295
|
+
var Ke = x([Ve, v], Ge);
|
|
296
|
+
function qe(e, t) {
|
|
297
|
+
let n = R(e.map((e) => t === "xAxis" ? e.x : e.y));
|
|
298
|
+
if (n.length !== 0) return [Math.min(...n), Math.max(...n)];
|
|
299
|
+
}
|
|
300
|
+
var Je = x(We, x(Ue, v, qe), Ke, (e, t, n) => B(e, n, t)), Ye = x([D], z);
|
|
301
|
+
function Xe(e, t, n, r, i) {
|
|
302
|
+
return fe(t, e.allowDataOverflow) ?? pe(t, B(n, i, Ie(r)), e.allowDataOverflow);
|
|
303
|
+
}
|
|
304
|
+
var Ze = x([
|
|
305
|
+
D,
|
|
306
|
+
Ye,
|
|
307
|
+
Me,
|
|
308
|
+
Pe,
|
|
309
|
+
Je
|
|
310
|
+
], Xe), Qe = [0, 1];
|
|
311
|
+
function $e(t, n, r, i, a, o, s) {
|
|
312
|
+
if ((t == null || r == null || r.length === 0) && s === void 0) return;
|
|
313
|
+
let { dataKey: c, type: l } = t, u = e(n, o);
|
|
314
|
+
if (u && c == null) {
|
|
315
|
+
let e = Array.isArray(t.domain) ? t.domain.length : 0;
|
|
316
|
+
return ge(0, Math.max(r.length, e));
|
|
317
|
+
}
|
|
318
|
+
return l === "category" ? Le(i, t, u) : a === "expand" ? Qe : s;
|
|
319
|
+
}
|
|
320
|
+
var U = x([
|
|
321
|
+
D,
|
|
322
|
+
_,
|
|
323
|
+
I,
|
|
324
|
+
L,
|
|
325
|
+
h,
|
|
326
|
+
v,
|
|
327
|
+
Ze
|
|
328
|
+
], $e);
|
|
329
|
+
function et(e, t, n) {
|
|
330
|
+
if (e == null) return;
|
|
331
|
+
let { scale: r, type: i } = e;
|
|
332
|
+
if (r === "auto") return i === "category" && n && (n.includes("LineChart") || n.includes("AreaChart") || n.includes("ComposedChart") && !t) ? "point" : i === "category" ? "band" : "linear";
|
|
333
|
+
if (typeof r == "string") {
|
|
334
|
+
let e = `scale${_e(r)}`;
|
|
335
|
+
return e in S ? e : "point";
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
var W = x([
|
|
339
|
+
D,
|
|
340
|
+
k,
|
|
341
|
+
m
|
|
342
|
+
], et);
|
|
343
|
+
function tt(e) {
|
|
344
|
+
if (e == null) return;
|
|
345
|
+
if (e in S) return S[e]();
|
|
346
|
+
let t = `scale${_e(e)}`;
|
|
347
|
+
if (t in S) return S[t]();
|
|
348
|
+
}
|
|
349
|
+
function G(e, t, n, r) {
|
|
350
|
+
if (n == null || r == null) return;
|
|
351
|
+
if (typeof e.scale == "function") return e.scale.copy().domain(n).range(r);
|
|
352
|
+
let i = tt(t);
|
|
353
|
+
if (i == null) return;
|
|
354
|
+
let a = i.domain(n).range(r);
|
|
355
|
+
return ce(a), a;
|
|
356
|
+
}
|
|
357
|
+
function nt(e, t, n) {
|
|
358
|
+
let r = z(t);
|
|
359
|
+
if (!(n !== "auto" && n !== "linear")) {
|
|
360
|
+
if (t != null && t.tickCount && Array.isArray(r) && (r[0] === "auto" || r[1] === "auto") && de(e)) return me(e, t.tickCount, t.allowDecimals);
|
|
361
|
+
if (t != null && t.tickCount && t.type === "number" && e != null) return he(e, t.tickCount, t.allowDecimals);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
var K = x([
|
|
365
|
+
U,
|
|
366
|
+
O,
|
|
367
|
+
W
|
|
368
|
+
], nt);
|
|
369
|
+
function rt(e, t, n, r) {
|
|
370
|
+
if (r !== "angleAxis" && e?.type === "number" && de(t) && Array.isArray(n) && n.length > 0) {
|
|
371
|
+
let e = t[0], r = n[0], i = t[1], a = n[n.length - 1];
|
|
372
|
+
return [Math.min(e, r), Math.max(i, a)];
|
|
373
|
+
}
|
|
374
|
+
return t;
|
|
375
|
+
}
|
|
376
|
+
var it = x([
|
|
377
|
+
D,
|
|
378
|
+
U,
|
|
379
|
+
K,
|
|
380
|
+
v
|
|
381
|
+
], rt), at = x(x(L, D, (e, t) => {
|
|
382
|
+
if (!t || t.type !== "number") return;
|
|
383
|
+
let n = Infinity, r = Array.from(R(e.map((e) => e.value))).sort((e, t) => e - t);
|
|
384
|
+
if (r.length < 2) return Infinity;
|
|
385
|
+
let i = r[r.length - 1] - r[0];
|
|
386
|
+
if (i === 0) return Infinity;
|
|
387
|
+
for (let e = 0; e < r.length - 1; e++) {
|
|
388
|
+
let t = r[e + 1] - r[e];
|
|
389
|
+
n = Math.min(n, t);
|
|
390
|
+
}
|
|
391
|
+
return n / i;
|
|
392
|
+
}), _, ee, d, (e, t, n, r) => r, (e, t, n, r, a) => {
|
|
393
|
+
if (!i(e)) return 0;
|
|
394
|
+
let o = t === "vertical" ? r.height : r.width;
|
|
395
|
+
if (a === "gap") return e * o / 2;
|
|
396
|
+
if (a === "no-gap") {
|
|
397
|
+
let t = te(n, e * o), r = e * o / 2;
|
|
398
|
+
return r - t - (r - t) / o * t;
|
|
399
|
+
}
|
|
400
|
+
return 0;
|
|
401
|
+
}), ot = (e, t) => {
|
|
402
|
+
let n = w(e, t);
|
|
403
|
+
return n == null || typeof n.padding != "string" ? 0 : at(e, "xAxis", t, n.padding);
|
|
404
|
+
}, st = (e, t) => {
|
|
405
|
+
let n = T(e, t);
|
|
406
|
+
return n == null || typeof n.padding != "string" ? 0 : at(e, "yAxis", t, n.padding);
|
|
407
|
+
}, ct = x(w, ot, (e, t) => {
|
|
408
|
+
if (e == null) return {
|
|
409
|
+
left: 0,
|
|
410
|
+
right: 0
|
|
411
|
+
};
|
|
412
|
+
let { padding: n } = e;
|
|
413
|
+
return typeof n == "string" ? {
|
|
414
|
+
left: t,
|
|
415
|
+
right: t
|
|
416
|
+
} : {
|
|
417
|
+
left: (n.left ?? 0) + t,
|
|
418
|
+
right: (n.right ?? 0) + t
|
|
419
|
+
};
|
|
420
|
+
}), lt = x(T, st, (e, t) => {
|
|
421
|
+
if (e == null) return {
|
|
422
|
+
top: 0,
|
|
423
|
+
bottom: 0
|
|
424
|
+
};
|
|
425
|
+
let { padding: n } = e;
|
|
426
|
+
return typeof n == "string" ? {
|
|
427
|
+
top: t,
|
|
428
|
+
bottom: t
|
|
429
|
+
} : {
|
|
430
|
+
top: (n.top ?? 0) + t,
|
|
431
|
+
bottom: (n.bottom ?? 0) + t
|
|
432
|
+
};
|
|
433
|
+
}), ut = x([
|
|
434
|
+
d,
|
|
435
|
+
ct,
|
|
436
|
+
f,
|
|
437
|
+
p,
|
|
438
|
+
(e, t, n) => n
|
|
439
|
+
], (e, t, n, { padding: r }, i) => i ? [r.left, n.width - r.right] : [e.left + t.left, e.left + e.width - t.right]), dt = x([
|
|
440
|
+
d,
|
|
441
|
+
_,
|
|
442
|
+
lt,
|
|
443
|
+
f,
|
|
444
|
+
p,
|
|
445
|
+
(e, t, n) => n
|
|
446
|
+
], (e, t, n, r, { padding: i }, a) => a ? [r.height - i.bottom, i.top] : t === "horizontal" ? [e.top + e.height - n.bottom, e.top + n.top] : [e.top + n.top, e.top + e.height - n.bottom]);
|
|
447
|
+
function q(e, t, n, r) {
|
|
448
|
+
switch (t) {
|
|
449
|
+
case "xAxis": return ut(e, n, r);
|
|
450
|
+
case "yAxis": return dt(e, n, r);
|
|
451
|
+
case "zAxis": return E(e, n)?.range;
|
|
452
|
+
case "angleAxis": return ae(e);
|
|
453
|
+
case "radiusAxis": return se(e, n);
|
|
454
|
+
default: return;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
var ft = x([D, q], g), J = x([
|
|
458
|
+
D,
|
|
459
|
+
W,
|
|
460
|
+
it,
|
|
461
|
+
ft
|
|
462
|
+
], G);
|
|
463
|
+
x(N, v, (e, t) => e.flatMap((e) => e.errorBars ?? []).filter((e) => De(t, e)));
|
|
464
|
+
function pt(e, t) {
|
|
465
|
+
return e.id < t.id ? -1 : e.id > t.id ? 1 : 0;
|
|
466
|
+
}
|
|
467
|
+
var Y = (e, t) => t, X = (e, t, n) => n, mt = x(l, Y, X, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(pt)), ht = x(u, Y, X, (e, t, n) => e.filter((e) => e.orientation === t).filter((e) => e.mirror === n).sort(pt));
|
|
468
|
+
function gt(e, t) {
|
|
469
|
+
return {
|
|
470
|
+
width: e.width,
|
|
471
|
+
height: t.height
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
function _t(e, t) {
|
|
475
|
+
return {
|
|
476
|
+
width: t.width,
|
|
477
|
+
height: e.height
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
var vt = x(d, w, gt);
|
|
481
|
+
function yt(e, t, n) {
|
|
482
|
+
switch (t) {
|
|
483
|
+
case "top": return e.top;
|
|
484
|
+
case "bottom": return n - e.bottom;
|
|
485
|
+
default: return 0;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
function bt(e, t, n) {
|
|
489
|
+
switch (t) {
|
|
490
|
+
case "left": return e.left;
|
|
491
|
+
case "right": return n - e.right;
|
|
492
|
+
default: return 0;
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
var xt = x(s, d, mt, Y, X, (e, t, n, r, i) => {
|
|
496
|
+
let a = {}, o;
|
|
497
|
+
return n.forEach((n) => {
|
|
498
|
+
let s = gt(t, n);
|
|
499
|
+
o ??= yt(t, r, e);
|
|
500
|
+
let c = r === "top" && !i || r === "bottom" && i;
|
|
501
|
+
a[n.id] = o - Number(c) * s.height, o += (c ? -1 : 1) * s.height;
|
|
502
|
+
}), a;
|
|
503
|
+
}), St = x(c, d, ht, Y, X, (e, t, n, r, i) => {
|
|
504
|
+
let a = {}, o;
|
|
505
|
+
return n.forEach((n) => {
|
|
506
|
+
let s = _t(t, n);
|
|
507
|
+
o ??= bt(t, r, e);
|
|
508
|
+
let c = r === "left" && !i || r === "right" && i;
|
|
509
|
+
a[n.id] = o - Number(c) * s.width, o += (c ? -1 : 1) * s.width;
|
|
510
|
+
}), a;
|
|
511
|
+
});
|
|
512
|
+
function Ct(e, t) {
|
|
513
|
+
let n = d(e), r = w(e, t);
|
|
514
|
+
if (r == null) return;
|
|
515
|
+
let i = xt(e, r.orientation, r.mirror)[t];
|
|
516
|
+
return i == null ? {
|
|
517
|
+
x: n.left,
|
|
518
|
+
y: 0
|
|
519
|
+
} : {
|
|
520
|
+
x: n.left,
|
|
521
|
+
y: i
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
function wt(e, t) {
|
|
525
|
+
let n = d(e), r = T(e, t);
|
|
526
|
+
if (r == null) return;
|
|
527
|
+
let i = St(e, r.orientation, r.mirror)[t];
|
|
528
|
+
return i == null ? {
|
|
529
|
+
x: 0,
|
|
530
|
+
y: n.top
|
|
531
|
+
} : {
|
|
532
|
+
x: i,
|
|
533
|
+
y: n.top
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
var Tt = x(d, T, (e, t) => ({
|
|
537
|
+
width: t.width,
|
|
538
|
+
height: e.height
|
|
539
|
+
}));
|
|
540
|
+
function Et(e, t, n) {
|
|
541
|
+
switch (t) {
|
|
542
|
+
case "xAxis": return vt(e, n).width;
|
|
543
|
+
case "yAxis": return Tt(e, n).height;
|
|
544
|
+
default: return;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
function Dt(t, n, r, i) {
|
|
548
|
+
if (r == null) return;
|
|
549
|
+
let { allowDuplicatedCategory: a, type: o, dataKey: s } = r, c = e(t, i), l = n.map((e) => e.value);
|
|
550
|
+
if (s && c && o === "category" && a && ne(l)) return l;
|
|
551
|
+
}
|
|
552
|
+
var Z = x([
|
|
553
|
+
_,
|
|
554
|
+
L,
|
|
555
|
+
D,
|
|
556
|
+
v
|
|
557
|
+
], Dt);
|
|
558
|
+
function Ot(t, n, r, i) {
|
|
559
|
+
if (r == null || r.dataKey == null) return;
|
|
560
|
+
let { type: a, scale: o } = r;
|
|
561
|
+
if (e(t, i) && (a === "number" || o !== "auto")) return n.map((e) => e.value);
|
|
562
|
+
}
|
|
563
|
+
var Q = x([
|
|
564
|
+
_,
|
|
565
|
+
L,
|
|
566
|
+
O,
|
|
567
|
+
v
|
|
568
|
+
], Ot), kt = x([
|
|
569
|
+
_,
|
|
570
|
+
xe,
|
|
571
|
+
W,
|
|
572
|
+
J,
|
|
573
|
+
Z,
|
|
574
|
+
Q,
|
|
575
|
+
q,
|
|
576
|
+
K,
|
|
577
|
+
v
|
|
578
|
+
], (t, n, r, i, a, o, s, c, l) => {
|
|
579
|
+
if (n == null) return null;
|
|
580
|
+
let u = e(t, l);
|
|
581
|
+
return {
|
|
582
|
+
angle: n.angle,
|
|
583
|
+
interval: n.interval,
|
|
584
|
+
minTickGap: n.minTickGap,
|
|
585
|
+
orientation: n.orientation,
|
|
586
|
+
tick: n.tick,
|
|
587
|
+
tickCount: n.tickCount,
|
|
588
|
+
tickFormatter: n.tickFormatter,
|
|
589
|
+
ticks: n.ticks,
|
|
590
|
+
type: n.type,
|
|
591
|
+
unit: n.unit,
|
|
592
|
+
axisType: l,
|
|
593
|
+
categoricalDomain: o,
|
|
594
|
+
duplicateDomain: a,
|
|
595
|
+
isCategorical: u,
|
|
596
|
+
niceTicks: c,
|
|
597
|
+
range: s,
|
|
598
|
+
realScaleType: r,
|
|
599
|
+
scale: i
|
|
600
|
+
};
|
|
601
|
+
});
|
|
602
|
+
function At(n, r, i, a, o, s, c, l, u) {
|
|
603
|
+
if (r == null || a == null) return;
|
|
604
|
+
let d = e(n, u), { type: f, ticks: p, tickCount: ee } = r, m = i === "scaleBand" ? a.bandwidth() / 2 : 2, h = f === "category" && a.bandwidth ? a.bandwidth() / m : 0;
|
|
605
|
+
h = u === "angleAxis" && s?.length >= 2 ? re(s[0] - s[1]) * 2 * h : h;
|
|
606
|
+
let g = p || o;
|
|
607
|
+
return g ? g.map((e, t) => ({
|
|
608
|
+
index: t,
|
|
609
|
+
coordinate: a(c ? c.indexOf(e) : e) + h,
|
|
610
|
+
value: e,
|
|
611
|
+
offset: h
|
|
612
|
+
})).filter((e) => !t(e.coordinate)) : d && l ? l.map((e, t) => ({
|
|
613
|
+
coordinate: a(e) + h,
|
|
614
|
+
value: e,
|
|
615
|
+
index: t,
|
|
616
|
+
offset: h
|
|
617
|
+
})) : a.ticks ? a.ticks(ee).map((e) => ({
|
|
618
|
+
coordinate: a(e) + h,
|
|
619
|
+
value: e,
|
|
620
|
+
offset: h
|
|
621
|
+
})) : a.domain().map((e, t) => ({
|
|
622
|
+
coordinate: a(e) + h,
|
|
623
|
+
value: c ? c[e] : e,
|
|
624
|
+
index: t,
|
|
625
|
+
offset: h
|
|
626
|
+
}));
|
|
627
|
+
}
|
|
628
|
+
var jt = x([
|
|
629
|
+
_,
|
|
630
|
+
O,
|
|
631
|
+
W,
|
|
632
|
+
J,
|
|
633
|
+
K,
|
|
634
|
+
q,
|
|
635
|
+
Z,
|
|
636
|
+
Q,
|
|
637
|
+
v
|
|
638
|
+
], At);
|
|
639
|
+
function $(t, n, r, i, a, o, s) {
|
|
640
|
+
if (n == null || r == null || i == null || i[0] === i[1]) return null;
|
|
641
|
+
let c = e(t, s), { tickCount: l } = n, u = 0;
|
|
642
|
+
return u = s === "angleAxis" && i?.length >= 2 ? re(i[0] - i[1]) * 2 * u : u, c && o ? o.map((e, t) => ({
|
|
643
|
+
coordinate: r(e) + u,
|
|
644
|
+
value: e,
|
|
645
|
+
index: t,
|
|
646
|
+
offset: u
|
|
647
|
+
})) : r.ticks ? r.ticks(l).map((e) => ({
|
|
648
|
+
coordinate: r(e) + u,
|
|
649
|
+
value: e,
|
|
650
|
+
offset: u
|
|
651
|
+
})) : r.domain().map((e, t) => ({
|
|
652
|
+
coordinate: r(e) + u,
|
|
653
|
+
value: a ? a[e] : e,
|
|
654
|
+
index: t,
|
|
655
|
+
offset: u
|
|
656
|
+
}));
|
|
657
|
+
}
|
|
658
|
+
var Mt = x([
|
|
659
|
+
_,
|
|
660
|
+
O,
|
|
661
|
+
J,
|
|
662
|
+
q,
|
|
663
|
+
Z,
|
|
664
|
+
Q,
|
|
665
|
+
v
|
|
666
|
+
], $), Nt = x(D, J, (e, t) => {
|
|
667
|
+
if (!(e == null || t == null)) return {
|
|
668
|
+
...e,
|
|
669
|
+
scale: t
|
|
670
|
+
};
|
|
671
|
+
}), Pt = x((e, t, n) => E(e, n), x([
|
|
672
|
+
D,
|
|
673
|
+
W,
|
|
674
|
+
U,
|
|
675
|
+
ft
|
|
676
|
+
], G), (e, t) => {
|
|
677
|
+
if (!(e == null || t == null)) return {
|
|
678
|
+
...e,
|
|
679
|
+
scale: t
|
|
680
|
+
};
|
|
681
|
+
}), Ft = x([
|
|
682
|
+
_,
|
|
683
|
+
l,
|
|
684
|
+
u
|
|
685
|
+
], (e, t, n) => {
|
|
686
|
+
switch (e) {
|
|
687
|
+
case "horizontal": return t.some((e) => e.reversed) ? "right-to-left" : "left-to-right";
|
|
688
|
+
case "vertical": return n.some((e) => e.reversed) ? "bottom-to-top" : "top-to-bottom";
|
|
689
|
+
default: return;
|
|
690
|
+
}
|
|
691
|
+
});
|
|
692
|
+
//#endregion
|
|
693
|
+
export { Ne as combineAppliedNumericalValuesIncludingErrorValues, Ee as combineAppliedValues, Ge as combineAreasDomain, $e as combineAxisDomain, rt as combineAxisDomainWithNiceTicks, At as combineAxisTicks, Ot as combineCategoricalDomain, Te as combineDisplayedData, je as combineDomainOfStackGroups, H as combineDotsDomain, Dt as combineDuplicateDomain, $ as combineGraphicalItemTicks, F as combineGraphicalItemsData, M as combineGraphicalItemsSettings, qe as combineLinesDomain, nt as combineNiceTicks, Xe as combineNumericalDomain, et as combineRealScaleType, G as combineScaleFunction, ke as combineStackGroups, P as filterGraphicalNotStackedItems, V as filterReferenceElements, z as getDomainDefinition, ve as implicitXAxis, ye as implicitYAxis, be as implicitZAxis, A as itemAxisPredicate, B as mergeDomains, kt as selectAxisPropsNeededForCartesianGridTicksGenerator, q as selectAxisRange, J as selectAxisScale, O as selectAxisSettings, Nt as selectAxisWithScale, D as selectBaseAxis, Et as selectCartesianAxisSize, Ft as selectChartDirection, Ye as selectDomainDefinition, Z as selectDuplicateDomain, k as selectHasBar, W as selectRealScaleType, Be as selectReferenceAreas, Re as selectReferenceDots, He as selectReferenceLines, Ae as selectStackGroups, jt as selectTicksOfAxis, Mt as selectTicksOfGraphicalItem, j as selectUnfilteredCartesianItems, Ct as selectXAxisPosition, w as selectXAxisSettings, vt as selectXAxisSize, wt as selectYAxisPosition, T as selectYAxisSettings, Tt as selectYAxisSize, Pt as selectZAxisWithScale };
|