react-native-chart-kit 7.0.0-next.1 → 7.0.0-next.3
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/README.md +89 -521
- package/dist/charts/line/LineChart.d.ts +3 -3
- package/dist/charts/line/LineChart.js +1 -1
- package/dist/v2/core/data/index.d.ts +3 -0
- package/dist/v2/core/data/index.d.ts.map +1 -0
- package/dist/v2/core/data/index.js +1 -0
- package/dist/v2/core/data/normalize.d.ts +8 -0
- package/dist/v2/core/data/normalize.d.ts.map +1 -0
- package/dist/v2/core/data/normalize.js +229 -0
- package/dist/v2/core/data/normalizeValues.d.ts +16 -0
- package/dist/v2/core/data/normalizeValues.d.ts.map +1 -0
- package/dist/v2/core/data/normalizeValues.js +96 -0
- package/dist/v2/core/data/types.d.ts +161 -0
- package/dist/v2/core/data/types.d.ts.map +1 -0
- package/dist/v2/core/data/types.js +1 -0
- package/dist/v2/core/geometry/areaPath.d.ts +3 -0
- package/dist/v2/core/geometry/areaPath.d.ts.map +1 -0
- package/dist/v2/core/geometry/areaPath.js +36 -0
- package/dist/v2/core/geometry/barRects.d.ts +44 -0
- package/dist/v2/core/geometry/barRects.d.ts.map +1 -0
- package/dist/v2/core/geometry/barRects.js +201 -0
- package/dist/v2/core/geometry/contributionHeatmap.d.ts +49 -0
- package/dist/v2/core/geometry/contributionHeatmap.d.ts.map +1 -0
- package/dist/v2/core/geometry/contributionHeatmap.js +107 -0
- package/dist/v2/core/geometry/horizontalBarRects.d.ts +27 -0
- package/dist/v2/core/geometry/horizontalBarRects.d.ts.map +1 -0
- package/dist/v2/core/geometry/horizontalBarRects.js +202 -0
- package/dist/v2/core/geometry/index.d.ts +12 -0
- package/dist/v2/core/geometry/index.d.ts.map +1 -0
- package/dist/v2/core/geometry/index.js +11 -0
- package/dist/v2/core/geometry/lineDecimation.d.ts +8 -0
- package/dist/v2/core/geometry/lineDecimation.d.ts.map +1 -0
- package/dist/v2/core/geometry/lineDecimation.js +110 -0
- package/dist/v2/core/geometry/linePath.d.ts +5 -0
- package/dist/v2/core/geometry/linePath.d.ts.map +1 -0
- package/dist/v2/core/geometry/linePath.js +98 -0
- package/dist/v2/core/geometry/lineSeries.d.ts +29 -0
- package/dist/v2/core/geometry/lineSeries.d.ts.map +1 -0
- package/dist/v2/core/geometry/lineSeries.js +51 -0
- package/dist/v2/core/geometry/path.d.ts +6 -0
- package/dist/v2/core/geometry/path.d.ts.map +1 -0
- package/dist/v2/core/geometry/path.js +24 -0
- package/dist/v2/core/geometry/pieArcs.d.ts +29 -0
- package/dist/v2/core/geometry/pieArcs.d.ts.map +1 -0
- package/dist/v2/core/geometry/pieArcs.js +142 -0
- package/dist/v2/core/geometry/progressRings.d.ts +30 -0
- package/dist/v2/core/geometry/progressRings.d.ts.map +1 -0
- package/dist/v2/core/geometry/progressRings.js +104 -0
- package/dist/v2/core/geometry/types.d.ts +32 -0
- package/dist/v2/core/geometry/types.d.ts.map +1 -0
- package/dist/v2/core/geometry/types.js +1 -0
- package/dist/v2/core/index.d.ts +6 -0
- package/dist/v2/core/index.d.ts.map +1 -0
- package/dist/v2/core/index.js +6 -0
- package/dist/v2/core/interaction/index.d.ts +5 -0
- package/dist/v2/core/interaction/index.d.ts.map +1 -0
- package/dist/v2/core/interaction/index.js +2 -0
- package/dist/v2/core/interaction/viewport.d.ts +71 -0
- package/dist/v2/core/interaction/viewport.d.ts.map +1 -0
- package/dist/v2/core/interaction/viewport.js +216 -0
- package/dist/v2/core/interaction/viewportTransform.d.ts +17 -0
- package/dist/v2/core/interaction/viewportTransform.d.ts.map +1 -0
- package/dist/v2/core/interaction/viewportTransform.js +70 -0
- package/dist/v2/core/layout/autoPadding.d.ts +3 -0
- package/dist/v2/core/layout/autoPadding.d.ts.map +1 -0
- package/dist/v2/core/layout/autoPadding.js +33 -0
- package/dist/v2/core/layout/chartBox.d.ts +5 -0
- package/dist/v2/core/layout/chartBox.d.ts.map +1 -0
- package/dist/v2/core/layout/chartBox.js +22 -0
- package/dist/v2/core/layout/debugLayout.d.ts +3 -0
- package/dist/v2/core/layout/debugLayout.d.ts.map +1 -0
- package/dist/v2/core/layout/debugLayout.js +20 -0
- package/dist/v2/core/layout/index.d.ts +8 -0
- package/dist/v2/core/layout/index.d.ts.map +1 -0
- package/dist/v2/core/layout/index.js +6 -0
- package/dist/v2/core/layout/labelCollision.d.ts +3 -0
- package/dist/v2/core/layout/labelCollision.d.ts.map +1 -0
- package/dist/v2/core/layout/labelCollision.js +90 -0
- package/dist/v2/core/layout/legendLayout.d.ts +3 -0
- package/dist/v2/core/layout/legendLayout.d.ts.map +1 -0
- package/dist/v2/core/layout/legendLayout.js +39 -0
- package/dist/v2/core/layout/tooltipPlacement.d.ts +3 -0
- package/dist/v2/core/layout/tooltipPlacement.d.ts.map +1 -0
- package/dist/v2/core/layout/tooltipPlacement.js +76 -0
- package/dist/v2/core/layout/types.d.ts +114 -0
- package/dist/v2/core/layout/types.d.ts.map +1 -0
- package/dist/v2/core/layout/types.js +1 -0
- package/dist/v2/core/scales/band.d.ts +15 -0
- package/dist/v2/core/scales/band.d.ts.map +1 -0
- package/dist/v2/core/scales/band.js +34 -0
- package/dist/v2/core/scales/domain.d.ts +6 -0
- package/dist/v2/core/scales/domain.d.ts.map +1 -0
- package/dist/v2/core/scales/domain.js +109 -0
- package/dist/v2/core/scales/index.d.ts +7 -0
- package/dist/v2/core/scales/index.d.ts.map +1 -0
- package/dist/v2/core/scales/index.js +5 -0
- package/dist/v2/core/scales/linear.d.ts +8 -0
- package/dist/v2/core/scales/linear.d.ts.map +1 -0
- package/dist/v2/core/scales/linear.js +22 -0
- package/dist/v2/core/scales/ticks.d.ts +4 -0
- package/dist/v2/core/scales/ticks.d.ts.map +1 -0
- package/dist/v2/core/scales/ticks.js +111 -0
- package/dist/v2/core/scales/time.d.ts +8 -0
- package/dist/v2/core/scales/time.d.ts.map +1 -0
- package/dist/v2/core/scales/time.js +23 -0
- package/dist/v2/core/scales/types.d.ts +46 -0
- package/dist/v2/core/scales/types.d.ts.map +1 -0
- package/dist/v2/core/scales/types.js +1 -0
- package/dist/v2/index.d.ts +1 -0
- package/dist/v2/index.js +1 -0
- package/dist/v2/react-native/charts/bar/BarChart.d.ts +6 -0
- package/dist/v2/react-native/charts/bar/BarChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/BarChart.js +199 -0
- package/dist/v2/react-native/charts/bar/BarChartSurface.d.ts +36 -0
- package/dist/v2/react-native/charts/bar/BarChartSurface.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/BarChartSurface.js +134 -0
- package/dist/v2/react-native/charts/bar/StackedBarChart.d.ts +4 -0
- package/dist/v2/react-native/charts/bar/StackedBarChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/StackedBarChart.js +9 -0
- package/dist/v2/react-native/charts/bar/accessibility.d.ts +31 -0
- package/dist/v2/react-native/charts/bar/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/accessibility.js +87 -0
- package/dist/v2/react-native/charts/bar/interaction.d.ts +18 -0
- package/dist/v2/react-native/charts/bar/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/interaction.js +62 -0
- package/dist/v2/react-native/charts/bar/model.d.ts +3 -0
- package/dist/v2/react-native/charts/bar/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/model.js +326 -0
- package/dist/v2/react-native/charts/bar/modelUtils.d.ts +27 -0
- package/dist/v2/react-native/charts/bar/modelUtils.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/modelUtils.js +58 -0
- package/dist/v2/react-native/charts/bar/options.d.ts +7 -0
- package/dist/v2/react-native/charts/bar/options.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/options.js +49 -0
- package/dist/v2/react-native/charts/bar/rendererSafety.d.ts +12 -0
- package/dist/v2/react-native/charts/bar/rendererSafety.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/rendererSafety.js +31 -0
- package/dist/v2/react-native/charts/bar/selectionAnimation.d.ts +42 -0
- package/dist/v2/react-native/charts/bar/selectionAnimation.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/selectionAnimation.js +158 -0
- package/dist/v2/react-native/charts/bar/stackedCompat.d.ts +55 -0
- package/dist/v2/react-native/charts/bar/stackedCompat.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/stackedCompat.js +105 -0
- package/dist/v2/react-native/charts/bar/tooltip.d.ts +11 -0
- package/dist/v2/react-native/charts/bar/tooltip.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/tooltip.js +18 -0
- package/dist/v2/react-native/charts/bar/tooltipModel.d.ts +33 -0
- package/dist/v2/react-native/charts/bar/tooltipModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/tooltipModel.js +46 -0
- package/dist/v2/react-native/charts/bar/tooltipPlacement.d.ts +9 -0
- package/dist/v2/react-native/charts/bar/tooltipPlacement.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/tooltipPlacement.js +9 -0
- package/dist/v2/react-native/charts/bar/types.d.ts +211 -0
- package/dist/v2/react-native/charts/bar/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/types.js +1 -0
- package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.d.ts +10 -0
- package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.js +87 -0
- package/dist/v2/react-native/charts/bar/viewport.d.ts +20 -0
- package/dist/v2/react-native/charts/bar/viewport.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/viewport.js +47 -0
- package/dist/v2/react-native/charts/contribution/ContributionGraph.d.ts +13 -0
- package/dist/v2/react-native/charts/contribution/ContributionGraph.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/ContributionGraph.js +159 -0
- package/dist/v2/react-native/charts/contribution/accessibility.d.ts +25 -0
- package/dist/v2/react-native/charts/contribution/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/accessibility.js +50 -0
- package/dist/v2/react-native/charts/contribution/interaction.d.ts +23 -0
- package/dist/v2/react-native/charts/contribution/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/interaction.js +75 -0
- package/dist/v2/react-native/charts/contribution/model.d.ts +17 -0
- package/dist/v2/react-native/charts/contribution/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/model.js +102 -0
- package/dist/v2/react-native/charts/contribution/types.d.ts +71 -0
- package/dist/v2/react-native/charts/contribution/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/types.js +1 -0
- package/dist/v2/react-native/charts/line/AreaChart.d.ts +3 -0
- package/dist/v2/react-native/charts/line/AreaChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/AreaChart.js +3 -0
- package/dist/v2/react-native/charts/line/ChartSurface.d.ts +16 -0
- package/dist/v2/react-native/charts/line/ChartSurface.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/ChartSurface.js +151 -0
- package/dist/v2/react-native/charts/line/LineChart.d.ts +6 -0
- package/dist/v2/react-native/charts/line/LineChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/LineChart.js +294 -0
- package/dist/v2/react-native/charts/line/StickyYAxis.d.ts +15 -0
- package/dist/v2/react-native/charts/line/StickyYAxis.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/StickyYAxis.js +26 -0
- package/dist/v2/react-native/charts/line/accessibility.d.ts +34 -0
- package/dist/v2/react-native/charts/line/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/accessibility.js +103 -0
- package/dist/v2/react-native/charts/line/axisLabels.d.ts +37 -0
- package/dist/v2/react-native/charts/line/axisLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/axisLabels.js +55 -0
- package/dist/v2/react-native/charts/line/debugLayout.d.ts +26 -0
- package/dist/v2/react-native/charts/line/debugLayout.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/debugLayout.js +77 -0
- package/dist/v2/react-native/charts/line/debugOverlay.d.ts +9 -0
- package/dist/v2/react-native/charts/line/debugOverlay.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/debugOverlay.js +30 -0
- package/dist/v2/react-native/charts/line/defaultTooltip.d.ts +3 -0
- package/dist/v2/react-native/charts/line/defaultTooltip.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/defaultTooltip.js +17 -0
- package/dist/v2/react-native/charts/line/interaction.d.ts +82 -0
- package/dist/v2/react-native/charts/line/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/interaction.js +94 -0
- package/dist/v2/react-native/charts/line/legend.d.ts +35 -0
- package/dist/v2/react-native/charts/line/legend.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/legend.js +95 -0
- package/dist/v2/react-native/charts/line/markers.d.ts +11 -0
- package/dist/v2/react-native/charts/line/markers.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/markers.js +52 -0
- package/dist/v2/react-native/charts/line/options.d.ts +172 -0
- package/dist/v2/react-native/charts/line/options.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/options.js +168 -0
- package/dist/v2/react-native/charts/line/outsidePressSurfaces.d.ts +15 -0
- package/dist/v2/react-native/charts/line/outsidePressSurfaces.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/outsidePressSurfaces.js +37 -0
- package/dist/v2/react-native/charts/line/overviewProps.d.ts +45 -0
- package/dist/v2/react-native/charts/line/overviewProps.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/overviewProps.js +4 -0
- package/dist/v2/react-native/charts/line/rangeSelector.d.ts +19 -0
- package/dist/v2/react-native/charts/line/rangeSelector.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/rangeSelector.js +185 -0
- package/dist/v2/react-native/charts/line/rangeSelectorConfig.d.ts +38 -0
- package/dist/v2/react-native/charts/line/rangeSelectorConfig.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/rangeSelectorConfig.js +41 -0
- package/dist/v2/react-native/charts/line/referenceLabelPlacement.d.ts +21 -0
- package/dist/v2/react-native/charts/line/referenceLabelPlacement.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/referenceLabelPlacement.js +113 -0
- package/dist/v2/react-native/charts/line/references.d.ts +62 -0
- package/dist/v2/react-native/charts/line/references.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/references.js +156 -0
- package/dist/v2/react-native/charts/line/renderer.d.ts +4 -0
- package/dist/v2/react-native/charts/line/renderer.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/renderer.js +23 -0
- package/dist/v2/react-native/charts/line/responders.d.ts +13 -0
- package/dist/v2/react-native/charts/line/responders.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/responders.js +62 -0
- package/dist/v2/react-native/charts/line/selection.d.ts +31 -0
- package/dist/v2/react-native/charts/line/selection.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/selection.js +26 -0
- package/dist/v2/react-native/charts/line/seriesInput.d.ts +4 -0
- package/dist/v2/react-native/charts/line/seriesInput.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/seriesInput.js +13 -0
- package/dist/v2/react-native/charts/line/seriesStyles.d.ts +20 -0
- package/dist/v2/react-native/charts/line/seriesStyles.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/seriesStyles.js +33 -0
- package/dist/v2/react-native/charts/line/stickyYAxisLayout.d.ts +6 -0
- package/dist/v2/react-native/charts/line/stickyYAxisLayout.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/stickyYAxisLayout.js +2 -0
- package/dist/v2/react-native/charts/line/text.d.ts +7 -0
- package/dist/v2/react-native/charts/line/text.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/text.js +7 -0
- package/dist/v2/react-native/charts/line/thresholdRendering.d.ts +28 -0
- package/dist/v2/react-native/charts/line/thresholdRendering.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/thresholdRendering.js +145 -0
- package/dist/v2/react-native/charts/line/tooltip.d.ts +70 -0
- package/dist/v2/react-native/charts/line/tooltip.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/tooltip.js +87 -0
- package/dist/v2/react-native/charts/line/types.d.ts +371 -0
- package/dist/v2/react-native/charts/line/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/types.js +1 -0
- package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.d.ts +13 -0
- package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.js +84 -0
- package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.d.ts +5 -0
- package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.js +141 -0
- package/dist/v2/react-native/charts/line/useChartModel.d.ts +103 -0
- package/dist/v2/react-native/charts/line/useChartModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useChartModel.js +367 -0
- package/dist/v2/react-native/charts/line/useDebugLayout.d.ts +16 -0
- package/dist/v2/react-native/charts/line/useDebugLayout.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useDebugLayout.js +35 -0
- package/dist/v2/react-native/charts/line/utils.d.ts +10 -0
- package/dist/v2/react-native/charts/line/utils.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/utils.js +40 -0
- package/dist/v2/react-native/charts/line/viewportInteraction.d.ts +3 -0
- package/dist/v2/react-native/charts/line/viewportInteraction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/viewportInteraction.js +1 -0
- package/dist/v2/react-native/charts/line/viewportPinchZoom.d.ts +2 -0
- package/dist/v2/react-native/charts/line/viewportPinchZoom.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/viewportPinchZoom.js +1 -0
- package/dist/v2/react-native/charts/line/xLabelCandidates.d.ts +13 -0
- package/dist/v2/react-native/charts/line/xLabelCandidates.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/xLabelCandidates.js +23 -0
- package/dist/v2/react-native/charts/line/xLabels.d.ts +39 -0
- package/dist/v2/react-native/charts/line/xLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/xLabels.js +289 -0
- package/dist/v2/react-native/charts/line/xScale.d.ts +6 -0
- package/dist/v2/react-native/charts/line/xScale.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/xScale.js +25 -0
- package/dist/v2/react-native/charts/line/yAxisModel.d.ts +29 -0
- package/dist/v2/react-native/charts/line/yAxisModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/yAxisModel.js +39 -0
- package/dist/v2/react-native/charts/pie/PieChart.d.ts +7 -0
- package/dist/v2/react-native/charts/pie/PieChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/PieChart.js +253 -0
- package/dist/v2/react-native/charts/pie/accessibility.d.ts +28 -0
- package/dist/v2/react-native/charts/pie/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/accessibility.js +49 -0
- package/dist/v2/react-native/charts/pie/activeSlice.d.ts +15 -0
- package/dist/v2/react-native/charts/pie/activeSlice.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/activeSlice.js +26 -0
- package/dist/v2/react-native/charts/pie/arcLabels.d.ts +32 -0
- package/dist/v2/react-native/charts/pie/arcLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/arcLabels.js +191 -0
- package/dist/v2/react-native/charts/pie/interaction.d.ts +26 -0
- package/dist/v2/react-native/charts/pie/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/interaction.js +66 -0
- package/dist/v2/react-native/charts/pie/model.d.ts +15 -0
- package/dist/v2/react-native/charts/pie/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/model.js +157 -0
- package/dist/v2/react-native/charts/pie/selectionAnimation.d.ts +33 -0
- package/dist/v2/react-native/charts/pie/selectionAnimation.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/selectionAnimation.js +121 -0
- package/dist/v2/react-native/charts/pie/sliceSeparator.d.ts +7 -0
- package/dist/v2/react-native/charts/pie/sliceSeparator.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/sliceSeparator.js +26 -0
- package/dist/v2/react-native/charts/pie/slices.d.ts +20 -0
- package/dist/v2/react-native/charts/pie/slices.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/slices.js +54 -0
- package/dist/v2/react-native/charts/pie/types.d.ts +165 -0
- package/dist/v2/react-native/charts/pie/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/types.js +1 -0
- package/dist/v2/react-native/charts/progress/ProgressChart.d.ts +7 -0
- package/dist/v2/react-native/charts/progress/ProgressChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/ProgressChart.js +111 -0
- package/dist/v2/react-native/charts/progress/accessibility.d.ts +26 -0
- package/dist/v2/react-native/charts/progress/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/accessibility.js +71 -0
- package/dist/v2/react-native/charts/progress/animation.d.ts +36 -0
- package/dist/v2/react-native/charts/progress/animation.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/animation.js +103 -0
- package/dist/v2/react-native/charts/progress/model.d.ts +14 -0
- package/dist/v2/react-native/charts/progress/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/model.js +133 -0
- package/dist/v2/react-native/charts/progress/types.d.ts +72 -0
- package/dist/v2/react-native/charts/progress/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/types.js +1 -0
- package/dist/v2/react-native/index.d.ts +24 -0
- package/dist/v2/react-native/index.d.ts.map +1 -0
- package/dist/v2/react-native/index.js +14 -0
- package/dist/v2/react-native/selection/ChartSelectionProvider.d.ts +27 -0
- package/dist/v2/react-native/selection/ChartSelectionProvider.d.ts.map +1 -0
- package/dist/v2/react-native/selection/ChartSelectionProvider.js +92 -0
- package/dist/v2/react-native/selection/index.d.ts +2 -0
- package/dist/v2/react-native/selection/index.d.ts.map +1 -0
- package/dist/v2/react-native/selection/index.js +1 -0
- package/dist/v2/react-native/selection/scope.d.ts +16 -0
- package/dist/v2/react-native/selection/scope.d.ts.map +1 -0
- package/dist/v2/react-native/selection/scope.js +18 -0
- package/dist/v2/react-native/theme/index.d.ts +4 -0
- package/dist/v2/react-native/theme/index.d.ts.map +1 -0
- package/dist/v2/react-native/theme/index.js +2 -0
- package/dist/v2/react-native/theme/presets.d.ts +84 -0
- package/dist/v2/react-native/theme/presets.d.ts.map +1 -0
- package/dist/v2/react-native/theme/presets.js +298 -0
- package/dist/v2/react-native/theme/provider.d.ts +20 -0
- package/dist/v2/react-native/theme/provider.d.ts.map +1 -0
- package/dist/v2/react-native/theme/provider.js +27 -0
- package/dist/v2/react-native/viewport/bounds.d.ts +7 -0
- package/dist/v2/react-native/viewport/bounds.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/bounds.js +7 -0
- package/dist/v2/react-native/viewport/config.d.ts +13 -0
- package/dist/v2/react-native/viewport/config.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/config.js +64 -0
- package/dist/v2/react-native/viewport/pan.d.ts +23 -0
- package/dist/v2/react-native/viewport/pan.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/pan.js +110 -0
- package/dist/v2/react-native/viewport/pinchZoom.d.ts +17 -0
- package/dist/v2/react-native/viewport/pinchZoom.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/pinchZoom.js +131 -0
- package/dist/v2/react-native/viewport/types.d.ts +55 -0
- package/dist/v2/react-native/viewport/types.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/types.js +1 -0
- package/dist/v2/svg-renderer/capabilities.d.ts +3 -0
- package/dist/v2/svg-renderer/capabilities.d.ts.map +1 -0
- package/dist/v2/svg-renderer/capabilities.js +12 -0
- package/dist/v2/svg-renderer/clipPath.d.ts +4 -0
- package/dist/v2/svg-renderer/clipPath.d.ts.map +1 -0
- package/dist/v2/svg-renderer/clipPath.js +35 -0
- package/dist/v2/svg-renderer/defs.d.ts +6 -0
- package/dist/v2/svg-renderer/defs.d.ts.map +1 -0
- package/dist/v2/svg-renderer/defs.js +18 -0
- package/dist/v2/svg-renderer/ensureConsole.d.ts +4 -0
- package/dist/v2/svg-renderer/ensureConsole.d.ts.map +1 -0
- package/dist/v2/svg-renderer/ensureConsole.js +54 -0
- package/dist/v2/svg-renderer/hitRegions.d.ts +3 -0
- package/dist/v2/svg-renderer/hitRegions.d.ts.map +1 -0
- package/dist/v2/svg-renderer/hitRegions.js +6 -0
- package/dist/v2/svg-renderer/index.d.ts +14 -0
- package/dist/v2/svg-renderer/index.d.ts.map +1 -0
- package/dist/v2/svg-renderer/index.js +13 -0
- package/dist/v2/svg-renderer/layerOrder.d.ts +19 -0
- package/dist/v2/svg-renderer/layerOrder.d.ts.map +1 -0
- package/dist/v2/svg-renderer/layerOrder.js +18 -0
- package/dist/v2/svg-renderer/layers.d.ts +3 -0
- package/dist/v2/svg-renderer/layers.d.ts.map +1 -0
- package/dist/v2/svg-renderer/layers.js +4 -0
- package/dist/v2/svg-renderer/primitives.d.ts +12 -0
- package/dist/v2/svg-renderer/primitives.d.ts.map +1 -0
- package/dist/v2/svg-renderer/primitives.js +13 -0
- package/dist/v2/svg-renderer/renderer.d.ts +4 -0
- package/dist/v2/svg-renderer/renderer.d.ts.map +1 -0
- package/dist/v2/svg-renderer/renderer.js +24 -0
- package/dist/v2/svg-renderer/symbolGeometry.d.ts +6 -0
- package/dist/v2/svg-renderer/symbolGeometry.d.ts.map +1 -0
- package/dist/v2/svg-renderer/symbolGeometry.js +10 -0
- package/dist/v2/svg-renderer/symbols.d.ts +3 -0
- package/dist/v2/svg-renderer/symbols.d.ts.map +1 -0
- package/dist/v2/svg-renderer/symbols.js +23 -0
- package/dist/v2/svg-renderer/testIds.d.ts +2 -0
- package/dist/v2/svg-renderer/testIds.d.ts.map +1 -0
- package/dist/v2/svg-renderer/testIds.js +10 -0
- package/dist/v2/svg-renderer/textMeasurement.d.ts +4 -0
- package/dist/v2/svg-renderer/textMeasurement.d.ts.map +1 -0
- package/dist/v2/svg-renderer/textMeasurement.js +37 -0
- package/dist/v2/svg-renderer/types.d.ts +134 -0
- package/dist/v2/svg-renderer/types.d.ts.map +1 -0
- package/dist/v2/svg-renderer/types.js +1 -0
- package/package.json +56 -50
- package/v2/index.d.ts +1 -0
- package/v2/index.js +1 -0
- package/v2/package.json +6 -0
- package/scripts/chartkit-codemod.mjs +0 -256
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { buildBarGeometry, buildHorizontalBarGeometry, calculateAutoPadding, createBandScale, createLinearScale, generateLinearTicks, normalizeCartesianData, resolveNumericDomain, solveChartBoxes } from "../../../core/index";
|
|
2
|
+
import { resolveCartesianChartThemeConfig } from "../../theme/presets";
|
|
3
|
+
import { defaultFormatBarChartXLabel, defaultFormatBarChartYLabel, getBarChartFontTextOptions, getBarChartSeriesColor, getBarChartXKey, getMaxBarChartTextSize, getVisibleBarChartXLabelInterval, getVisibleBarChartYLabelInterval, labelBaselineOffset, measureBarChartText } from "./modelUtils";
|
|
4
|
+
const defaultYDomain = { includeZero: true, nice: true };
|
|
5
|
+
const resolveSeriesInput = (yKey, yKeys, series) => {
|
|
6
|
+
if (series && series.length > 0) {
|
|
7
|
+
return series;
|
|
8
|
+
}
|
|
9
|
+
if (yKeys && yKeys.length > 0) {
|
|
10
|
+
return yKeys.map((key) => ({ yKey: key }));
|
|
11
|
+
}
|
|
12
|
+
return yKey ? [{ yKey }] : [];
|
|
13
|
+
};
|
|
14
|
+
const getDomainValues = ({ mode, series, yDomain }) => {
|
|
15
|
+
if (mode === "stacked100" && yDomain === defaultYDomain) {
|
|
16
|
+
return [0, 100];
|
|
17
|
+
}
|
|
18
|
+
if (mode === "grouped") {
|
|
19
|
+
return series.flatMap((item) => item.points.flatMap((point) => typeof point.value === "number" ? [point.value] : []));
|
|
20
|
+
}
|
|
21
|
+
const rowCount = Math.max(0, ...series.map((item) => item.points.length));
|
|
22
|
+
const values = [];
|
|
23
|
+
for (let rowIndex = 0; rowIndex < rowCount; rowIndex++) {
|
|
24
|
+
let positive = 0;
|
|
25
|
+
let negative = 0;
|
|
26
|
+
series.forEach((item) => {
|
|
27
|
+
const value = item.points[rowIndex]?.value;
|
|
28
|
+
if (typeof value !== "number") {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (value >= 0) {
|
|
32
|
+
positive += value;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
negative += value;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
values.push(positive, negative);
|
|
39
|
+
}
|
|
40
|
+
return values;
|
|
41
|
+
};
|
|
42
|
+
export const buildBarChartModel = ({ data, xKey, yKey, yKeys, series, width, height, theme, preset, mode = "grouped", orientation = "vertical", yDomain = defaultYDomain, barWidthRatio = 0.72, barGapRatio = 0.12, showValuesOnTopOfBars = false, showHorizontalGridLines = true, showXAxisLabels = true, showYAxisLabels = true, yTickCount = 5, legend, labelStrategy = "auto", formatXLabel = defaultFormatBarChartXLabel, formatYLabel = defaultFormatBarChartYLabel, chartKitTheme }) => {
|
|
43
|
+
const resolvedTheme = resolveCartesianChartThemeConfig({
|
|
44
|
+
mode: typeof theme === "string" && theme !== "system"
|
|
45
|
+
? theme
|
|
46
|
+
: chartKitTheme.mode,
|
|
47
|
+
preset: preset ?? chartKitTheme.preset,
|
|
48
|
+
presets: chartKitTheme.presets,
|
|
49
|
+
theme: typeof theme === "object" ? theme : chartKitTheme.theme
|
|
50
|
+
});
|
|
51
|
+
const seriesInput = resolveSeriesInput(yKey, yKeys, series);
|
|
52
|
+
const legendVisible = legend ?? seriesInput.length > 1;
|
|
53
|
+
const normalized = normalizeCartesianData({
|
|
54
|
+
data,
|
|
55
|
+
xKey,
|
|
56
|
+
series: seriesInput
|
|
57
|
+
});
|
|
58
|
+
const xValues = normalized.series[0]?.points.map((point) => point.x) ?? [];
|
|
59
|
+
const xDomain = xValues.map(getBarChartXKey);
|
|
60
|
+
const xLabelTexts = xValues.map((value, index) => formatXLabel(value, index));
|
|
61
|
+
const textOptions = getBarChartFontTextOptions(resolvedTheme);
|
|
62
|
+
const xLabelSizes = xLabelTexts.map((text) => measureBarChartText(text, textOptions));
|
|
63
|
+
const isHorizontal = orientation === "horizontal";
|
|
64
|
+
const domainValues = getDomainValues({
|
|
65
|
+
mode,
|
|
66
|
+
series: normalized.series,
|
|
67
|
+
yDomain
|
|
68
|
+
});
|
|
69
|
+
const resolvedYDomain = mode === "stacked100" && yDomain === defaultYDomain
|
|
70
|
+
? [0, 100]
|
|
71
|
+
: resolveNumericDomain(domainValues, yDomain);
|
|
72
|
+
const yTicks = generateLinearTicks({
|
|
73
|
+
domain: resolvedYDomain,
|
|
74
|
+
count: Math.max(2, Math.round(yTickCount))
|
|
75
|
+
});
|
|
76
|
+
const yLabelSizes = yTicks.map((tick) => measureBarChartText(formatYLabel(tick), textOptions));
|
|
77
|
+
const legendFontSize = resolvedTheme.typography.legendLabelSize;
|
|
78
|
+
const legendMarkerSize = 8;
|
|
79
|
+
const legendGap = 14;
|
|
80
|
+
const legendItemsRaw = seriesInput.map((item, index) => ({
|
|
81
|
+
key: item.key ?? item.yKey,
|
|
82
|
+
label: item.label ?? item.key ?? item.yKey,
|
|
83
|
+
color: item.color ?? getBarChartSeriesColor(resolvedTheme, index),
|
|
84
|
+
width: legendMarkerSize +
|
|
85
|
+
6 +
|
|
86
|
+
measureBarChartText(item.label ?? item.key ?? item.yKey, {
|
|
87
|
+
fontSize: legendFontSize
|
|
88
|
+
}).width
|
|
89
|
+
}));
|
|
90
|
+
const legendHeight = legendVisible && legendItemsRaw.length > 0 ? 18 : 0;
|
|
91
|
+
const autoPaddingOptions = {
|
|
92
|
+
base: { top: 18, right: 14, bottom: 12, left: 10 },
|
|
93
|
+
leftLabels: isHorizontal ? xLabelSizes : yLabelSizes,
|
|
94
|
+
bottomLabels: isHorizontal
|
|
95
|
+
? yLabelSizes
|
|
96
|
+
: xLabelSizes.length > 0
|
|
97
|
+
? [getMaxBarChartTextSize(xLabelSizes)]
|
|
98
|
+
: [],
|
|
99
|
+
gap: 8
|
|
100
|
+
};
|
|
101
|
+
const basePadding = calculateAutoPadding(legendHeight > 0
|
|
102
|
+
? {
|
|
103
|
+
...autoPaddingOptions,
|
|
104
|
+
legend: {
|
|
105
|
+
height: legendHeight,
|
|
106
|
+
position: "bottom",
|
|
107
|
+
width: width - 24
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
: autoPaddingOptions);
|
|
111
|
+
const boxes = solveChartBoxes({ width, height }, basePadding);
|
|
112
|
+
const yScale = createLinearScale({
|
|
113
|
+
domain: resolvedYDomain,
|
|
114
|
+
range: [boxes.plot.y + boxes.plot.height, boxes.plot.y]
|
|
115
|
+
});
|
|
116
|
+
const xScale = createBandScale({
|
|
117
|
+
domain: xDomain,
|
|
118
|
+
range: [boxes.plot.x, boxes.plot.x + boxes.plot.width],
|
|
119
|
+
paddingInner: 0.12,
|
|
120
|
+
paddingOuter: 0.08
|
|
121
|
+
});
|
|
122
|
+
const horizontalXScale = createLinearScale({
|
|
123
|
+
domain: resolvedYDomain,
|
|
124
|
+
range: [boxes.plot.x, boxes.plot.x + boxes.plot.width]
|
|
125
|
+
});
|
|
126
|
+
const horizontalYScale = createBandScale({
|
|
127
|
+
domain: xDomain,
|
|
128
|
+
range: [boxes.plot.y, boxes.plot.y + boxes.plot.height],
|
|
129
|
+
paddingInner: 0.12,
|
|
130
|
+
paddingOuter: 0.08
|
|
131
|
+
});
|
|
132
|
+
const barGeometry = buildBarGeometry({
|
|
133
|
+
series: normalized.series,
|
|
134
|
+
mode,
|
|
135
|
+
xBand: (value) => {
|
|
136
|
+
const key = getBarChartXKey(value);
|
|
137
|
+
const x = xScale.scale(key);
|
|
138
|
+
return x !== undefined ? { x, width: xScale.bandwidth } : undefined;
|
|
139
|
+
},
|
|
140
|
+
yScale: (value) => yScale.scale(value),
|
|
141
|
+
barWidthRatio,
|
|
142
|
+
barGapRatio
|
|
143
|
+
});
|
|
144
|
+
const horizontalBarGeometry = buildHorizontalBarGeometry({
|
|
145
|
+
series: normalized.series,
|
|
146
|
+
mode,
|
|
147
|
+
yBand: (value) => {
|
|
148
|
+
const key = getBarChartXKey(value);
|
|
149
|
+
const y = horizontalYScale.scale(key);
|
|
150
|
+
return y !== undefined
|
|
151
|
+
? { y, height: horizontalYScale.bandwidth }
|
|
152
|
+
: undefined;
|
|
153
|
+
},
|
|
154
|
+
xScale: (value) => horizontalXScale.scale(value),
|
|
155
|
+
barWidthRatio,
|
|
156
|
+
barGapRatio
|
|
157
|
+
});
|
|
158
|
+
const verticalLabelInterval = getVisibleBarChartXLabelInterval({
|
|
159
|
+
labelStrategy,
|
|
160
|
+
labelSizes: xLabelSizes,
|
|
161
|
+
plotWidth: boxes.plot.width
|
|
162
|
+
});
|
|
163
|
+
const horizontalLabelInterval = getVisibleBarChartYLabelInterval({
|
|
164
|
+
labelStrategy,
|
|
165
|
+
labelSizes: xLabelSizes,
|
|
166
|
+
plotHeight: boxes.plot.height
|
|
167
|
+
});
|
|
168
|
+
const verticalXLabels = xLabelTexts.flatMap((text, index) => {
|
|
169
|
+
if (index % verticalLabelInterval !== 0) {
|
|
170
|
+
return [];
|
|
171
|
+
}
|
|
172
|
+
const key = xDomain[index];
|
|
173
|
+
const bandX = key !== undefined ? xScale.scale(key) : undefined;
|
|
174
|
+
if (bandX === undefined) {
|
|
175
|
+
return [];
|
|
176
|
+
}
|
|
177
|
+
return [
|
|
178
|
+
{
|
|
179
|
+
index,
|
|
180
|
+
text,
|
|
181
|
+
x: bandX + xScale.bandwidth / 2,
|
|
182
|
+
y: boxes.plot.y + boxes.plot.height + labelBaselineOffset,
|
|
183
|
+
textAnchor: "middle"
|
|
184
|
+
}
|
|
185
|
+
];
|
|
186
|
+
});
|
|
187
|
+
const verticalYLabels = yTicks.map((tick) => ({
|
|
188
|
+
key: `tick-${tick}`,
|
|
189
|
+
text: formatYLabel(tick),
|
|
190
|
+
x: boxes.plot.x - 8,
|
|
191
|
+
y: yScale.scale(tick) + resolvedTheme.typography.axisLabelSize / 2 - 2
|
|
192
|
+
}));
|
|
193
|
+
const horizontalXLabels = yTicks.map((tick, index) => ({
|
|
194
|
+
index,
|
|
195
|
+
text: formatYLabel(tick),
|
|
196
|
+
x: horizontalXScale.scale(tick),
|
|
197
|
+
y: boxes.plot.y + boxes.plot.height + labelBaselineOffset,
|
|
198
|
+
textAnchor: "middle"
|
|
199
|
+
}));
|
|
200
|
+
const horizontalYLabels = xLabelTexts.flatMap((text, index) => {
|
|
201
|
+
if (index % horizontalLabelInterval !== 0) {
|
|
202
|
+
return [];
|
|
203
|
+
}
|
|
204
|
+
const key = xDomain[index];
|
|
205
|
+
const bandY = key !== undefined ? horizontalYScale.scale(key) : undefined;
|
|
206
|
+
if (bandY === undefined) {
|
|
207
|
+
return [];
|
|
208
|
+
}
|
|
209
|
+
return [
|
|
210
|
+
{
|
|
211
|
+
key: `category-${index}`,
|
|
212
|
+
text,
|
|
213
|
+
x: boxes.plot.x - 8,
|
|
214
|
+
y: bandY +
|
|
215
|
+
horizontalYScale.bandwidth / 2 +
|
|
216
|
+
resolvedTheme.typography.axisLabelSize / 2 -
|
|
217
|
+
2
|
|
218
|
+
}
|
|
219
|
+
];
|
|
220
|
+
});
|
|
221
|
+
const verticalBars = barGeometry.bars.map((bar) => ({
|
|
222
|
+
baselineY: bar.baselineY,
|
|
223
|
+
color: normalized.series[bar.seriesIndex]?.color ??
|
|
224
|
+
seriesInput[bar.seriesIndex]?.color ??
|
|
225
|
+
getBarChartSeriesColor(resolvedTheme, bar.seriesIndex),
|
|
226
|
+
dataIndex: bar.dataIndex,
|
|
227
|
+
formattedValue: formatYLabel(bar.value),
|
|
228
|
+
height: bar.height,
|
|
229
|
+
key: bar.key,
|
|
230
|
+
raw: bar.raw,
|
|
231
|
+
seriesIndex: bar.seriesIndex,
|
|
232
|
+
seriesKey: bar.seriesKey,
|
|
233
|
+
seriesLabel: bar.seriesLabel,
|
|
234
|
+
value: bar.value,
|
|
235
|
+
width: bar.width,
|
|
236
|
+
x: bar.x,
|
|
237
|
+
xLabel: formatXLabel(bar.xValue, bar.dataIndex),
|
|
238
|
+
xValue: bar.xValue,
|
|
239
|
+
y: bar.y
|
|
240
|
+
}));
|
|
241
|
+
const horizontalBars = horizontalBarGeometry.bars.map((bar) => ({
|
|
242
|
+
baselineX: bar.baselineX,
|
|
243
|
+
baselineY: bar.baselineY,
|
|
244
|
+
color: normalized.series[bar.seriesIndex]?.color ??
|
|
245
|
+
seriesInput[bar.seriesIndex]?.color ??
|
|
246
|
+
getBarChartSeriesColor(resolvedTheme, bar.seriesIndex),
|
|
247
|
+
dataIndex: bar.dataIndex,
|
|
248
|
+
formattedValue: formatYLabel(bar.value),
|
|
249
|
+
height: bar.height,
|
|
250
|
+
key: bar.key,
|
|
251
|
+
raw: bar.raw,
|
|
252
|
+
seriesIndex: bar.seriesIndex,
|
|
253
|
+
seriesKey: bar.seriesKey,
|
|
254
|
+
seriesLabel: bar.seriesLabel,
|
|
255
|
+
value: bar.value,
|
|
256
|
+
width: bar.width,
|
|
257
|
+
x: bar.x,
|
|
258
|
+
xLabel: formatXLabel(bar.xValue, bar.dataIndex),
|
|
259
|
+
xValue: bar.xValue,
|
|
260
|
+
y: bar.y
|
|
261
|
+
}));
|
|
262
|
+
const bars = isHorizontal ? horizontalBars : verticalBars;
|
|
263
|
+
const valueLabels = showValuesOnTopOfBars
|
|
264
|
+
? bars.map((bar) => isHorizontal
|
|
265
|
+
? {
|
|
266
|
+
key: `value-${bar.key}`,
|
|
267
|
+
text: formatYLabel(bar.value),
|
|
268
|
+
x: bar.value >= 0
|
|
269
|
+
? Math.min(boxes.plot.x + boxes.plot.width - 2, bar.x + bar.width + 5)
|
|
270
|
+
: Math.max(boxes.plot.x + 2, bar.x - 5),
|
|
271
|
+
y: bar.y +
|
|
272
|
+
bar.height / 2 +
|
|
273
|
+
resolvedTheme.typography.axisLabelSize / 2 -
|
|
274
|
+
2,
|
|
275
|
+
color: resolvedTheme.mutedText,
|
|
276
|
+
textAnchor: bar.value >= 0 ? "start" : "end"
|
|
277
|
+
}
|
|
278
|
+
: {
|
|
279
|
+
key: `value-${bar.key}`,
|
|
280
|
+
text: formatYLabel(bar.value),
|
|
281
|
+
x: bar.x + bar.width / 2,
|
|
282
|
+
y: bar.value >= 0
|
|
283
|
+
? Math.max(boxes.plot.y + 10, bar.y - 5)
|
|
284
|
+
: Math.min(boxes.plot.y + boxes.plot.height - 2, bar.y +
|
|
285
|
+
bar.height +
|
|
286
|
+
resolvedTheme.typography.axisLabelSize),
|
|
287
|
+
color: resolvedTheme.mutedText
|
|
288
|
+
})
|
|
289
|
+
: [];
|
|
290
|
+
const legendWidth = legendItemsRaw.reduce((sum, item) => sum + item.width, 0) +
|
|
291
|
+
legendGap * Math.max(0, legendItemsRaw.length - 1);
|
|
292
|
+
const legendStartX = Math.max(8, (width - legendWidth) / 2);
|
|
293
|
+
const legendY = height - 8;
|
|
294
|
+
const legendItems = legendVisible
|
|
295
|
+
? legendItemsRaw.map((item, index) => {
|
|
296
|
+
const x = legendStartX +
|
|
297
|
+
legendItemsRaw
|
|
298
|
+
.slice(0, index)
|
|
299
|
+
.reduce((sum, previous) => sum + previous.width + legendGap, 0);
|
|
300
|
+
return {
|
|
301
|
+
key: item.key,
|
|
302
|
+
label: item.label,
|
|
303
|
+
color: item.color,
|
|
304
|
+
markerX: x,
|
|
305
|
+
markerY: legendY - legendMarkerSize + 1,
|
|
306
|
+
labelX: x + legendMarkerSize + 6,
|
|
307
|
+
labelY: legendY
|
|
308
|
+
};
|
|
309
|
+
})
|
|
310
|
+
: [];
|
|
311
|
+
return {
|
|
312
|
+
bars,
|
|
313
|
+
boxes,
|
|
314
|
+
mode,
|
|
315
|
+
orientation,
|
|
316
|
+
resolvedTheme,
|
|
317
|
+
legendItems,
|
|
318
|
+
showHorizontalGridLines,
|
|
319
|
+
showXAxisLabels,
|
|
320
|
+
showYAxisLabels,
|
|
321
|
+
valueLabels,
|
|
322
|
+
xLabels: isHorizontal ? horizontalXLabels : verticalXLabels,
|
|
323
|
+
yLabels: isHorizontal ? horizontalYLabels : verticalYLabels,
|
|
324
|
+
yTicks
|
|
325
|
+
};
|
|
326
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ChartXValue, Size } from "../../../core/index";
|
|
2
|
+
import type { ResolvedCartesianChartTheme } from "../../theme/presets";
|
|
3
|
+
import type { BarChartProps } from "./types";
|
|
4
|
+
export declare const labelBaselineOffset = 20;
|
|
5
|
+
export declare const measureBarChartText: (text: string, options?: {
|
|
6
|
+
fontSize?: number;
|
|
7
|
+
}) => Size;
|
|
8
|
+
export declare const getBarChartFontTextOptions: (theme: ResolvedCartesianChartTheme) => {
|
|
9
|
+
fontFamily?: string;
|
|
10
|
+
fontSize: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const getBarChartSeriesColor: (theme: ResolvedCartesianChartTheme, index: number) => string;
|
|
13
|
+
export declare const defaultFormatBarChartXLabel: (value: ChartXValue) => string;
|
|
14
|
+
export declare const defaultFormatBarChartYLabel: (value: number) => string;
|
|
15
|
+
export declare const getBarChartXKey: (value: ChartXValue) => string | number;
|
|
16
|
+
export declare const getMaxBarChartTextSize: (sizes: Size[]) => Size;
|
|
17
|
+
export declare const getVisibleBarChartXLabelInterval: ({ labelStrategy, labelSizes, plotWidth }: {
|
|
18
|
+
labelStrategy: BarChartProps<Record<string, unknown>>["labelStrategy"];
|
|
19
|
+
labelSizes: Size[];
|
|
20
|
+
plotWidth: number;
|
|
21
|
+
}) => number;
|
|
22
|
+
export declare const getVisibleBarChartYLabelInterval: ({ labelStrategy, labelSizes, plotHeight }: {
|
|
23
|
+
labelStrategy: BarChartProps<Record<string, unknown>>["labelStrategy"];
|
|
24
|
+
labelSizes: Size[];
|
|
25
|
+
plotHeight: number;
|
|
26
|
+
}) => number;
|
|
27
|
+
//# sourceMappingURL=modelUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelUtils.d.ts","sourceRoot":"","sources":["../../../src/charts/bar/modelUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAEtC,eAAO,MAAM,mBAAmB,GAC9B,MAAM,MAAM,EACZ,UAAS;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAO,KAClC,IAOF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACrC,OAAO,2BAA2B;;;CAMlC,CAAC;AAEH,eAAO,MAAM,sBAAsB,GACjC,OAAO,2BAA2B,EAClC,OAAO,MAAM,WAC4C,CAAC;AAE5D,eAAO,MAAM,2BAA2B,GAAI,OAAO,WAAW,WAS7D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,OAAO,MAAM,WAQxD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,oBACD,CAAC;AAElD,eAAO,MAAM,sBAAsB,GAAI,OAAO,IAAI,EAAE,SAOjD,CAAC;AAEJ,eAAO,MAAM,gCAAgC,GAAI,0CAI9C;IACD,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;IACvE,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB,WAaA,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,2CAI9C;IACD,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;IACvE,UAAU,EAAE,IAAI,EAAE,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,WAaA,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const labelBaselineOffset = 20;
|
|
2
|
+
export const measureBarChartText = (text, options = {}) => {
|
|
3
|
+
const fontSize = options.fontSize ?? 12;
|
|
4
|
+
return {
|
|
5
|
+
width: text.length * fontSize * 0.56,
|
|
6
|
+
height: 14
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export const getBarChartFontTextOptions = (theme) => ({
|
|
10
|
+
fontSize: theme.typography.axisLabelSize,
|
|
11
|
+
...(theme.typography.fontFamily
|
|
12
|
+
? { fontFamily: theme.typography.fontFamily }
|
|
13
|
+
: {})
|
|
14
|
+
});
|
|
15
|
+
export const getBarChartSeriesColor = (theme, index) => theme.series[index % theme.series.length] ?? "#2563eb";
|
|
16
|
+
export const defaultFormatBarChartXLabel = (value) => {
|
|
17
|
+
if (value instanceof Date) {
|
|
18
|
+
return value.toLocaleDateString("en-US", {
|
|
19
|
+
month: "short",
|
|
20
|
+
day: "numeric"
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return String(value);
|
|
24
|
+
};
|
|
25
|
+
export const defaultFormatBarChartYLabel = (value) => {
|
|
26
|
+
const absolute = Math.abs(value);
|
|
27
|
+
if (absolute >= 1000) {
|
|
28
|
+
return `${Number((value / 1000).toFixed(1))}k`;
|
|
29
|
+
}
|
|
30
|
+
return String(Number(value.toFixed(2)));
|
|
31
|
+
};
|
|
32
|
+
export const getBarChartXKey = (value) => value instanceof Date ? value.valueOf() : value;
|
|
33
|
+
export const getMaxBarChartTextSize = (sizes) => sizes.reduce((max, size) => ({
|
|
34
|
+
width: Math.max(max.width, size.width),
|
|
35
|
+
height: Math.max(max.height, size.height)
|
|
36
|
+
}), { width: 0, height: 0 });
|
|
37
|
+
export const getVisibleBarChartXLabelInterval = ({ labelStrategy, labelSizes, plotWidth }) => {
|
|
38
|
+
if (labelStrategy === "hide" || labelSizes.length === 0) {
|
|
39
|
+
return Number.POSITIVE_INFINITY;
|
|
40
|
+
}
|
|
41
|
+
if (labelStrategy === "show") {
|
|
42
|
+
return 1;
|
|
43
|
+
}
|
|
44
|
+
const widest = getMaxBarChartTextSize(labelSizes).width;
|
|
45
|
+
const maxVisibleLabels = Math.max(1, Math.floor(plotWidth / (widest + 10)));
|
|
46
|
+
return Math.max(1, Math.ceil(labelSizes.length / maxVisibleLabels));
|
|
47
|
+
};
|
|
48
|
+
export const getVisibleBarChartYLabelInterval = ({ labelStrategy, labelSizes, plotHeight }) => {
|
|
49
|
+
if (labelStrategy === "hide" || labelSizes.length === 0) {
|
|
50
|
+
return Number.POSITIVE_INFINITY;
|
|
51
|
+
}
|
|
52
|
+
if (labelStrategy === "show") {
|
|
53
|
+
return 1;
|
|
54
|
+
}
|
|
55
|
+
const tallest = getMaxBarChartTextSize(labelSizes).height;
|
|
56
|
+
const maxVisibleLabels = Math.max(1, Math.floor(plotHeight / (tallest + 8)));
|
|
57
|
+
return Math.max(1, Math.ceil(labelSizes.length / maxVisibleLabels));
|
|
58
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ResolvedCartesianChartTheme } from "../../theme/presets";
|
|
2
|
+
import type { BarChartTooltipConfig, ResolvedBarChartTooltipConfig } from "./types";
|
|
3
|
+
export declare const getBarChartTooltipConfig: ({ themeTooltip, tooltip }: {
|
|
4
|
+
themeTooltip: ResolvedCartesianChartTheme["tooltip"];
|
|
5
|
+
tooltip: boolean | BarChartTooltipConfig | undefined;
|
|
6
|
+
}) => ResolvedBarChartTooltipConfig;
|
|
7
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/charts/bar/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,KAAK,EACV,qBAAqB,EACrB,6BAA6B,EAC9B,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,wBAAwB,GAAI,2BAGtC;IACD,YAAY,EAAE,2BAA2B,CAAC,SAAS,CAAC,CAAC;IACrD,OAAO,EAAE,OAAO,GAAG,qBAAqB,GAAG,SAAS,CAAC;CACtD,KAAG,6BAkDH,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const getBarChartTooltipConfig = ({ themeTooltip, tooltip }) => {
|
|
2
|
+
if (!tooltip) {
|
|
3
|
+
return {
|
|
4
|
+
anchor: "bar",
|
|
5
|
+
backgroundColor: themeTooltip.background,
|
|
6
|
+
borderColor: themeTooltip.border,
|
|
7
|
+
borderRadius: themeTooltip.borderRadius,
|
|
8
|
+
edgePadding: 4,
|
|
9
|
+
fontFamily: undefined,
|
|
10
|
+
fontSize: themeTooltip.fontSize,
|
|
11
|
+
labelColor: themeTooltip.mutedText,
|
|
12
|
+
labelFontSize: themeTooltip.labelFontSize,
|
|
13
|
+
offset: 8,
|
|
14
|
+
padding: themeTooltip.padding,
|
|
15
|
+
placement: "auto",
|
|
16
|
+
positionAnimationDuration: 0,
|
|
17
|
+
shadowColor: themeTooltip.shadowColor,
|
|
18
|
+
shadowOffsetX: themeTooltip.shadowOffsetX,
|
|
19
|
+
shadowOffsetY: themeTooltip.shadowOffsetY,
|
|
20
|
+
shadowOpacity: themeTooltip.shadowOpacity,
|
|
21
|
+
textColor: themeTooltip.text,
|
|
22
|
+
visible: false,
|
|
23
|
+
width: 126
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
const config = typeof tooltip === "object" ? tooltip : {};
|
|
27
|
+
return {
|
|
28
|
+
anchor: config.anchor ?? "bar",
|
|
29
|
+
backgroundColor: config.backgroundColor ?? themeTooltip.background,
|
|
30
|
+
borderColor: config.borderColor ?? themeTooltip.border,
|
|
31
|
+
borderRadius: config.borderRadius ?? themeTooltip.borderRadius,
|
|
32
|
+
edgePadding: Math.max(0, config.edgePadding ?? 4),
|
|
33
|
+
fontFamily: config.fontFamily,
|
|
34
|
+
fontSize: config.fontSize ?? themeTooltip.fontSize,
|
|
35
|
+
labelColor: config.labelColor ?? themeTooltip.mutedText,
|
|
36
|
+
labelFontSize: config.labelFontSize ?? themeTooltip.labelFontSize,
|
|
37
|
+
offset: Math.max(0, config.offset ?? 8),
|
|
38
|
+
padding: config.padding ?? themeTooltip.padding,
|
|
39
|
+
placement: config.placement ?? "auto",
|
|
40
|
+
positionAnimationDuration: config.positionAnimationDuration ?? 180,
|
|
41
|
+
shadowColor: config.shadowColor ?? themeTooltip.shadowColor,
|
|
42
|
+
shadowOffsetX: config.shadowOffsetX ?? themeTooltip.shadowOffsetX,
|
|
43
|
+
shadowOffsetY: config.shadowOffsetY ?? themeTooltip.shadowOffsetY,
|
|
44
|
+
shadowOpacity: config.shadowOpacity ?? themeTooltip.shadowOpacity,
|
|
45
|
+
textColor: config.textColor ?? themeTooltip.text,
|
|
46
|
+
visible: config.visible ?? true,
|
|
47
|
+
width: config.width ?? 126
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BarChartRenderer } from "./types";
|
|
2
|
+
export declare const getSafeBarChartContentWidth: ({ contentWidth, renderer, scrollable }: {
|
|
3
|
+
contentWidth: number;
|
|
4
|
+
renderer: BarChartRenderer | undefined;
|
|
5
|
+
scrollable: boolean | undefined;
|
|
6
|
+
}) => number;
|
|
7
|
+
export declare const getSafeBarChartRenderer: ({ contentWidth, renderer, scrollable }: {
|
|
8
|
+
contentWidth: number;
|
|
9
|
+
renderer: BarChartRenderer | undefined;
|
|
10
|
+
scrollable: boolean | undefined;
|
|
11
|
+
}) => import("../..").LineChartRenderer | undefined;
|
|
12
|
+
//# sourceMappingURL=rendererSafety.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rendererSafety.d.ts","sourceRoot":"","sources":["../../../src/charts/bar/rendererSafety.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAsChD,eAAO,MAAM,2BAA2B,GAAI,wCAIzC;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACvC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,WAOA,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,wCAIrC;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACvC,UAAU,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,kDAMA,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { lineChartSvgRenderer } from "../line/renderer";
|
|
2
|
+
const conservativeNativeMaxSurfaceWidth = 2730;
|
|
3
|
+
const isInjectedRenderer = (renderer) => renderer !== undefined &&
|
|
4
|
+
renderer !== lineChartSvgRenderer &&
|
|
5
|
+
renderer.name !== "svg";
|
|
6
|
+
const getRendererMaxSurfaceWidth = (renderer) => renderer?.capabilities?.maxSurfaceWidth ??
|
|
7
|
+
(isInjectedRenderer(renderer)
|
|
8
|
+
? conservativeNativeMaxSurfaceWidth
|
|
9
|
+
: undefined);
|
|
10
|
+
const canRenderWideViewport = (renderer) => renderer?.capabilities?.viewportWindowing === true;
|
|
11
|
+
const shouldConstrainSurfaceWidth = ({ contentWidth, renderer, scrollable }) => {
|
|
12
|
+
const maxSurfaceWidth = getRendererMaxSurfaceWidth(renderer);
|
|
13
|
+
return (scrollable &&
|
|
14
|
+
typeof maxSurfaceWidth === "number" &&
|
|
15
|
+
Number.isFinite(maxSurfaceWidth) &&
|
|
16
|
+
contentWidth > maxSurfaceWidth &&
|
|
17
|
+
!canRenderWideViewport(renderer));
|
|
18
|
+
};
|
|
19
|
+
export const getSafeBarChartContentWidth = ({ contentWidth, renderer, scrollable }) => {
|
|
20
|
+
const maxSurfaceWidth = getRendererMaxSurfaceWidth(renderer);
|
|
21
|
+
return shouldConstrainSurfaceWidth({ contentWidth, renderer, scrollable }) &&
|
|
22
|
+
typeof maxSurfaceWidth === "number"
|
|
23
|
+
? maxSurfaceWidth
|
|
24
|
+
: contentWidth;
|
|
25
|
+
};
|
|
26
|
+
export const getSafeBarChartRenderer = ({ contentWidth, renderer, scrollable }) => {
|
|
27
|
+
if (shouldConstrainSurfaceWidth({ contentWidth, renderer, scrollable })) {
|
|
28
|
+
return lineChartSvgRenderer;
|
|
29
|
+
}
|
|
30
|
+
return renderer;
|
|
31
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { BarChartSelectionAnimationConfig } from "./types";
|
|
2
|
+
export type ResolvedBarChartSelectionAnimationConfig = {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
duration: number;
|
|
5
|
+
};
|
|
6
|
+
export type BarChartSelectionAnimationState = {
|
|
7
|
+
fromKey: string | undefined;
|
|
8
|
+
toKey: string | undefined;
|
|
9
|
+
progress: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const getSettledBarChartSelectionAnimationState: (selectedBarKey: string | undefined) => BarChartSelectionAnimationState;
|
|
12
|
+
export declare const resolveBarChartSelectionAnimationConfig: (animation: boolean | BarChartSelectionAnimationConfig | undefined) => ResolvedBarChartSelectionAnimationConfig;
|
|
13
|
+
export declare const getAnimatedBarSelectionOpacity: ({ barKey, state }: {
|
|
14
|
+
barKey: string;
|
|
15
|
+
state: BarChartSelectionAnimationState;
|
|
16
|
+
}) => number;
|
|
17
|
+
export declare const getAnimatedBarSelectionFill: ({ backgroundColor, barKey, color, state }: {
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
barKey: string;
|
|
20
|
+
color: string;
|
|
21
|
+
state: BarChartSelectionAnimationState;
|
|
22
|
+
}) => string;
|
|
23
|
+
export declare const getAnimatedBarSelectionStrokeOpacity: ({ barKey, state }: {
|
|
24
|
+
barKey: string;
|
|
25
|
+
state: BarChartSelectionAnimationState;
|
|
26
|
+
}) => number;
|
|
27
|
+
export declare const getAnimatedBarSelectionGridOpacity: ({ state }: {
|
|
28
|
+
state: BarChartSelectionAnimationState;
|
|
29
|
+
}) => 0 | 0.78;
|
|
30
|
+
export declare const getBarChartSelectionGridOpacity: ({ selectedBarKey, state }: {
|
|
31
|
+
selectedBarKey: string | undefined;
|
|
32
|
+
state: BarChartSelectionAnimationState;
|
|
33
|
+
}) => 0 | 0.78;
|
|
34
|
+
export declare const shouldRenderBarChartGridLines: ({ selectedBarKey, state }: {
|
|
35
|
+
selectedBarKey: string | undefined;
|
|
36
|
+
state: BarChartSelectionAnimationState;
|
|
37
|
+
}) => boolean;
|
|
38
|
+
export declare const useBarChartSelectionAnimation: ({ animation, selectedBarKey }: {
|
|
39
|
+
animation: boolean | BarChartSelectionAnimationConfig | undefined;
|
|
40
|
+
selectedBarKey: string | undefined;
|
|
41
|
+
}) => BarChartSelectionAnimationState;
|
|
42
|
+
//# sourceMappingURL=selectionAnimation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectionAnimation.d.ts","sourceRoot":"","sources":["../../../src/charts/bar/selectionAnimation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAQhE,MAAM,MAAM,wCAAwC,GAAG;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,yCAAyC,GACpD,gBAAgB,MAAM,GAAG,SAAS,KACjC,+BAID,CAAC;AAEH,eAAO,MAAM,uCAAuC,GAClD,WAAW,OAAO,GAAG,gCAAgC,GAAG,SAAS,KAChE,wCAeF,CAAC;AAuHF,eAAO,MAAM,8BAA8B,GAAI,mBAG5C;IACD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,+BAA+B,CAAC;CACxC,WAKE,CAAC;AAEJ,eAAO,MAAM,2BAA2B,GAAI,2CAKzC;IACD,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,+BAA+B,CAAC;CACxC,WAMA,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAAI,mBAGlD;IACD,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,+BAA+B,CAAC;CACxC,WAKE,CAAC;AAEJ,eAAO,MAAM,kCAAkC,GAAI,WAEhD;IACD,KAAK,EAAE,+BAA+B,CAAC;CACxC,aAMA,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,2BAG7C;IACD,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,+BAA+B,CAAC;CACxC,aAMA,CAAC;AAEF,eAAO,MAAM,6BAA6B,GAAI,2BAG3C;IACD,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,+BAA+B,CAAC;CACxC,YAG0B,CAAC;AAE5B,eAAO,MAAM,6BAA6B,GAAI,+BAG3C;IACD,SAAS,EAAE,OAAO,GAAG,gCAAgC,GAAG,SAAS,CAAC;IAClE,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,KAAG,+BAsEH,CAAC"}
|