@kubit-ui-web/react-charts 1.11.4 → 1.11.6
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/CHANGELOG.md +20 -0
- package/README.md +12 -18
- package/dist/cjs/assets/index.js +1 -0
- package/dist/cjs/charts/barChart/barChart.js +1 -1
- package/dist/cjs/charts/barChart/barChart.type.js +1 -0
- package/dist/cjs/charts/barChart/barChartStructure.js +1 -1
- package/dist/cjs/charts/barChart/context/barChartContext.js +1 -1
- package/dist/cjs/charts/barChart/context/buildBarContextValues.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartPath.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.js +1 -1
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.js +1 -0
- package/dist/cjs/charts/barChart/fragments/fixture/index.js +1 -0
- package/dist/cjs/charts/barChart/index.js +1 -1
- package/dist/cjs/charts/barChart/utils/countBarChildren.js +1 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js +2 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js.LICENSE.txt +1 -0
- package/dist/cjs/charts/barChart/utils/getBarDataValue.js +1 -1
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.js +1 -1
- package/dist/cjs/charts/constants/chartDefaults.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/context/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/index.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.js +1 -1
- package/dist/cjs/charts/index.js +1 -0
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.js +1 -1
- package/dist/cjs/charts/lineChart/context/index.js +1 -0
- package/dist/cjs/charts/lineChart/context/lineChartContext.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/index.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/index.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.css +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.js +1 -1
- package/dist/cjs/charts/lineChart/hook/index.js +1 -0
- package/dist/cjs/charts/lineChart/hook/useAutoClick.js +1 -1
- package/dist/cjs/charts/lineChart/hook/useHover.js +1 -1
- package/dist/cjs/charts/lineChart/hook/useIndicator.js +1 -1
- package/dist/cjs/charts/lineChart/index.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.type.js +1 -0
- package/dist/cjs/charts/lineChart/lineChartStructure.js +1 -1
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.js +1 -1
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getCoordinates.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getDataValues.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getPathData.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getProjection.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getTicks.js +1 -1
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.js +1 -1
- package/dist/cjs/charts/lineChart/utils/index.js +1 -0
- package/dist/cjs/charts/lineChart/utils/tickTextPosition.js +1 -1
- package/dist/cjs/charts/lineChart/utils/validations.js +1 -1
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +1 -1
- package/dist/cjs/charts/pieChart/context/index.js +1 -0
- package/dist/cjs/charts/pieChart/context/pieChartContext.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/index.js +1 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +1 -1
- package/dist/cjs/charts/pieChart/index.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.type.js +1 -0
- package/dist/cjs/charts/pieChart/pieChartStructure.js +1 -1
- package/dist/cjs/charts/pieChart/utils/accessibility.js +1 -1
- package/dist/cjs/charts/pieChart/utils/buildL.js +1 -1
- package/dist/cjs/charts/pieChart/utils/calculatePoint.js +1 -1
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.js +1 -1
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.js +1 -1
- package/dist/cjs/charts/pieChart/utils/index.js +1 -0
- package/dist/cjs/charts/pieChart/utils/rotationDirection.js +1 -1
- package/dist/cjs/components/axisChart/index.js +1 -0
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.js +1 -1
- package/dist/cjs/components/axisChart/utils/index.js +1 -0
- package/dist/cjs/components/axisChart/xAxis/index.js +1 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.js +1 -1
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.js +1 -0
- package/dist/cjs/components/axisChart/yAxis/index.js +1 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.js +1 -1
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.js +1 -0
- package/dist/cjs/components/bar/bar.js +1 -1
- package/dist/cjs/components/bar/bar.type.js +1 -1
- package/dist/cjs/components/bar/index.js +1 -0
- package/dist/cjs/components/bar/utils/accessibility.js +1 -1
- package/dist/cjs/components/bar/utils/buildD.js +1 -1
- package/dist/cjs/components/bar/utils/getSegments.js +1 -1
- package/dist/cjs/components/chartText/chartText.js +1 -1
- package/dist/cjs/components/chartText/chartText.types.js +1 -0
- package/dist/cjs/components/chartText/index.js +1 -0
- package/dist/cjs/components/focusRing/components/FocusRingInline.js +1 -1
- package/dist/cjs/components/focusRing/components/FocusRingRenderer.js +1 -1
- package/dist/cjs/components/focusRing/components/FocusRingSeparate.js +1 -1
- package/dist/cjs/components/focusRing/focusRing.css +1 -0
- package/dist/cjs/components/focusRing/focusRing.js +1 -0
- package/dist/cjs/components/focusRing/focusRing.types.js +1 -0
- package/dist/cjs/components/focusRing/hooks/useFocusRingData.js +1 -1
- package/dist/cjs/components/focusRing/index.js +1 -0
- package/dist/cjs/components/focusRing/utils/composeRefs.js +1 -1
- package/dist/cjs/components/focusRing/utils/createAdaptiveFocusRings.js +1 -1
- package/dist/cjs/components/focusRing/utils/createBoundingBoxFocusRings.js +1 -1
- package/dist/cjs/components/focusRing/utils/utils.types.js +1 -0
- package/dist/cjs/components/foreignObject/foreignObject.js +1 -1
- package/dist/cjs/components/foreignObject/foreignObject.types.js +1 -0
- package/dist/cjs/components/foreignObject/index.js +1 -0
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/line/index.js +1 -0
- package/dist/cjs/components/line/line.js +1 -1
- package/dist/cjs/components/line/line.types.js +1 -0
- package/dist/cjs/components/node/components/circle/circle.js +1 -1
- package/dist/cjs/components/node/components/hexagon/hexagon.js +1 -1
- package/dist/cjs/components/node/components/index.js +1 -0
- package/dist/cjs/components/node/components/pentagon/pentagon.js +1 -1
- package/dist/cjs/components/node/components/square/square.js +1 -1
- package/dist/cjs/components/node/components/star/star.js +1 -1
- package/dist/cjs/components/node/components/straight/straight.js +1 -1
- package/dist/cjs/components/node/components/triangle/triangle.js +1 -1
- package/dist/cjs/components/node/index.js +1 -0
- package/dist/cjs/components/node/node.js +1 -1
- package/dist/cjs/components/node/node.types.js +1 -1
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.js +1 -1
- package/dist/cjs/components/path/components/nodePath/nodePath.js +1 -1
- package/dist/cjs/components/path/index.js +1 -0
- package/dist/cjs/components/path/path.css +1 -0
- package/dist/cjs/components/path/path.js +1 -0
- package/dist/cjs/components/path/path.types.js +1 -0
- package/dist/cjs/components/plot/components/circle/circle.js +1 -1
- package/dist/cjs/components/plot/components/index.js +1 -0
- package/dist/cjs/components/plot/components/square/square.js +1 -1
- package/dist/cjs/components/plot/components/triangle/triangle.js +1 -1
- package/dist/cjs/components/plot/index.js +1 -0
- package/dist/cjs/components/plot/plot.css +1 -0
- package/dist/cjs/components/plot/plot.js +1 -0
- package/dist/cjs/components/plot/plot.types.js +1 -1
- package/dist/cjs/components/svgContainer/index.js +1 -0
- package/dist/cjs/components/svgContainer/svgContainer.js +1 -1
- package/dist/cjs/components/svgContainer/svgContainer.types.js +1 -0
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.js +1 -1
- package/dist/cjs/components/svgContainer/utils/index.js +1 -0
- package/dist/cjs/components/tick/index.js +1 -0
- package/dist/cjs/components/tick/tick.js +1 -1
- package/dist/cjs/components/tick/tick.types.js +1 -1
- package/dist/cjs/components/zoomArea/components/HandlerIcon.js +1 -1
- package/dist/cjs/components/zoomArea/components/LineRenderer.js +1 -1
- package/dist/cjs/components/zoomArea/components/SelectionArea.js +1 -1
- package/dist/cjs/components/zoomArea/components/ZoomHandler.js +1 -1
- package/dist/cjs/components/zoomArea/components/index.js +1 -0
- package/dist/cjs/components/zoomArea/hooks/index.js +1 -0
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomData.js +1 -1
- package/dist/cjs/components/zoomArea/index.js +1 -0
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.js +1 -1
- package/dist/cjs/components/zoomArea/utils/index.js +1 -0
- package/dist/cjs/components/zoomArea/utils/indexRounding.js +1 -1
- package/dist/cjs/components/zoomArea/utils/interactionConfig.js +1 -1
- package/dist/cjs/components/zoomArea/utils/pathGeneration.js +1 -1
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.js +1 -1
- package/dist/cjs/components/zoomArea/utils/selectionConfig.js +1 -1
- package/dist/cjs/components/zoomArea/zoomArea.js +1 -1
- package/dist/cjs/components/zoomArea/zoomArea.type.js +1 -1
- package/dist/cjs/hooks/index.js +1 -0
- package/dist/cjs/hooks/useFocus/useFocus.js +1 -1
- package/dist/cjs/hooks/useFocus/useFocus.types.js +1 -0
- package/dist/cjs/hooks/useHover/useHover.js +1 -1
- package/dist/cjs/hooks/useHover/useHover.types.js +1 -0
- package/dist/cjs/hooks/useId/index.js +1 -0
- package/dist/cjs/hooks/useId/useId.js +1 -1
- package/dist/cjs/hooks/useResponsiveCanvas/index.js +1 -0
- package/dist/cjs/hooks/useResponsiveCanvas/useResponsiveCanvas.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/storybook/components/note/note.css +1 -0
- package/dist/cjs/types/canvas.type.js +1 -1
- package/dist/cjs/types/errors.type.js +1 -1
- package/dist/cjs/types/focusConfig.type.js +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/position.enum.js +1 -1
- package/dist/cjs/types/unit.enum.js +1 -1
- package/dist/cjs/types/valueFormatter.type.js +1 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +1 -1
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.js +1 -0
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.js +1 -1
- package/dist/cjs/utils/buildErrors/buildErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildBarChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildLineChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/barChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/lineChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/index.js +1 -0
- package/dist/cjs/utils/buildTickValues/buildTickValues.js +1 -1
- package/dist/cjs/utils/classNames/classNames.js +1 -0
- package/dist/cjs/utils/createErrorAccumulator/createErrorAccumulator.js +1 -1
- package/dist/cjs/utils/createErrorAccumulator/index.js +1 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.js +1 -1
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.js +1 -0
- package/dist/cjs/utils/cursorNear/isNear.js +1 -1
- package/dist/cjs/utils/getAxisData/getAxisData.js +1 -0
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.js +1 -1
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.js +1 -1
- package/dist/cjs/utils/getCoordinates/getCoordinates.js +1 -1
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.js +1 -1
- package/dist/cjs/utils/getPoints/getPoints.js +1 -1
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.js +1 -1
- package/dist/cjs/utils/getTicks/getTicks.js +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/logger/index.js +1 -0
- package/dist/cjs/utils/logger/logger.js +1 -1
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +1 -1
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.js +1 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.js +1 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.js +1 -0
- package/dist/cjs/utils/ssr/index.js +1 -0
- package/dist/cjs/utils/ssr/ssr.js +1 -1
- package/dist/cjs/utils/textBound/textBound.js +1 -1
- package/dist/esm/assets/index.mjs +1 -0
- package/dist/esm/charts/barChart/barChart.mjs +1 -0
- package/dist/esm/charts/barChart/barChart.type.mjs +0 -0
- package/dist/esm/charts/barChart/barChartStructure.mjs +1 -0
- package/dist/esm/charts/barChart/context/barChartContext.mjs +1 -0
- package/dist/esm/charts/barChart/context/buildBarContextValues.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartPath.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartSeparator.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartXAxis.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartYAxis.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/index.mjs +1 -0
- package/dist/esm/charts/barChart/index.mjs +1 -0
- package/dist/esm/charts/barChart/utils/countBarChildren.mjs +1 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.mjs +2 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.mjs.LICENSE.txt +1 -0
- package/dist/esm/charts/barChart/utils/getBarDataValue.mjs +1 -0
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.mjs +1 -0
- package/dist/esm/charts/constants/chartDefaults.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/context/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.mjs +0 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.mjs +1 -0
- package/dist/esm/charts/index.mjs +1 -0
- package/dist/esm/charts/lineChart/context/buildLineContextValue.mjs +1 -0
- package/dist/esm/charts/lineChart/context/index.mjs +1 -0
- package/dist/esm/charts/lineChart/context/lineChartContext.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/index.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.css +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/index.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useAutoClick.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useHover.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useIndicator.mjs +1 -0
- package/dist/esm/charts/lineChart/index.mjs +1 -0
- package/dist/esm/charts/lineChart/lineChart.mjs +1 -0
- package/dist/esm/charts/lineChart/lineChart.type.mjs +0 -0
- package/dist/esm/charts/lineChart/lineChartStructure.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getCoordinates.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getDataValues.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getPathData.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getProjection.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getTicks.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/index.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/tickTextPosition.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/validations.mjs +1 -0
- package/dist/esm/charts/pieChart/context/buildPieContextValue.mjs +1 -0
- package/dist/esm/charts/pieChart/context/index.mjs +1 -0
- package/dist/esm/charts/pieChart/context/pieChartContext.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartPath.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.mjs +1 -0
- package/dist/esm/charts/pieChart/index.mjs +1 -0
- package/dist/esm/charts/pieChart/pieChart.mjs +1 -0
- package/dist/esm/charts/pieChart/pieChart.type.mjs +0 -0
- package/dist/esm/charts/pieChart/pieChartStructure.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/accessibility.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/buildL.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/calculatePoint.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/index.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/rotationDirection.mjs +1 -0
- package/dist/esm/components/axisChart/index.mjs +1 -0
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.mjs +1 -0
- package/dist/esm/components/axisChart/utils/index.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/index.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.types.mjs +0 -0
- package/dist/esm/components/axisChart/yAxis/index.mjs +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.mjs +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.types.mjs +0 -0
- package/dist/esm/components/bar/bar.mjs +1 -0
- package/dist/esm/components/bar/bar.type.mjs +1 -0
- package/dist/esm/components/bar/index.mjs +1 -0
- package/dist/esm/components/bar/utils/accessibility.mjs +1 -0
- package/dist/esm/components/bar/utils/buildD.mjs +1 -0
- package/dist/esm/components/bar/utils/getSegments.mjs +1 -0
- package/dist/esm/components/chartText/chartText.mjs +1 -0
- package/dist/esm/components/chartText/chartText.types.mjs +0 -0
- package/dist/esm/components/chartText/index.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingInline.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingRenderer.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingSeparate.mjs +1 -0
- package/dist/esm/components/focusRing/focusRing.css +1 -0
- package/dist/esm/components/focusRing/focusRing.mjs +1 -0
- package/dist/esm/components/focusRing/focusRing.types.mjs +0 -0
- package/dist/esm/components/focusRing/hooks/useFocusRingData.mjs +1 -0
- package/dist/esm/components/focusRing/index.mjs +1 -0
- package/dist/esm/components/focusRing/utils/composeRefs.mjs +1 -0
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.mjs +1 -0
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.mjs +1 -0
- package/dist/esm/components/focusRing/utils/utils.types.mjs +0 -0
- package/dist/esm/components/foreignObject/foreignObject.mjs +1 -0
- package/dist/esm/components/foreignObject/foreignObject.types.mjs +0 -0
- package/dist/esm/components/foreignObject/index.mjs +1 -0
- package/dist/esm/components/index.mjs +1 -0
- package/dist/esm/components/line/index.mjs +1 -0
- package/dist/esm/components/line/line.mjs +1 -0
- package/dist/esm/components/line/line.types.mjs +0 -0
- package/dist/esm/components/node/components/circle/circle.mjs +1 -0
- package/dist/esm/components/node/components/hexagon/hexagon.mjs +1 -0
- package/dist/esm/components/node/components/index.mjs +0 -0
- package/dist/esm/components/node/components/pentagon/pentagon.mjs +1 -0
- package/dist/esm/components/node/components/square/square.mjs +1 -0
- package/dist/esm/components/node/components/star/star.mjs +1 -0
- package/dist/esm/components/node/components/straight/straight.mjs +1 -0
- package/dist/esm/components/node/components/triangle/triangle.mjs +1 -0
- package/dist/esm/components/node/index.mjs +1 -0
- package/dist/esm/components/node/node.mjs +1 -0
- package/dist/esm/components/node/node.types.mjs +1 -0
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.mjs +1 -0
- package/dist/esm/components/path/components/nodePath/nodePath.mjs +1 -0
- package/dist/esm/components/path/index.mjs +1 -0
- package/dist/esm/components/path/path.css +1 -0
- package/dist/esm/components/path/path.mjs +1 -0
- package/dist/esm/components/path/path.types.mjs +0 -0
- package/dist/esm/components/plot/components/circle/circle.mjs +1 -0
- package/dist/esm/components/plot/components/index.mjs +1 -0
- package/dist/esm/components/plot/components/square/square.mjs +1 -0
- package/dist/esm/components/plot/components/triangle/triangle.mjs +1 -0
- package/dist/esm/components/plot/index.mjs +1 -0
- package/dist/esm/components/plot/plot.css +1 -0
- package/dist/esm/components/plot/plot.mjs +1 -0
- package/dist/esm/components/plot/plot.types.mjs +1 -0
- package/dist/esm/components/svgContainer/index.mjs +1 -0
- package/dist/esm/components/svgContainer/svgContainer.mjs +1 -0
- package/dist/esm/components/svgContainer/svgContainer.types.mjs +0 -0
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.mjs +1 -0
- package/dist/esm/components/svgContainer/utils/index.mjs +1 -0
- package/dist/esm/components/tick/index.mjs +1 -0
- package/dist/esm/components/tick/tick.mjs +1 -0
- package/dist/esm/components/tick/tick.types.mjs +1 -0
- package/dist/esm/components/zoomArea/components/HandlerIcon.mjs +1 -0
- package/dist/esm/components/zoomArea/components/LineRenderer.mjs +1 -0
- package/dist/esm/components/zoomArea/components/SelectionArea.mjs +1 -0
- package/dist/esm/components/zoomArea/components/ZoomHandler.mjs +1 -0
- package/dist/esm/components/zoomArea/components/index.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/index.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomData.mjs +1 -0
- package/dist/esm/components/zoomArea/index.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/index.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/indexRounding.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/interactionConfig.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/pathGeneration.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/selectionConfig.mjs +1 -0
- package/dist/esm/components/zoomArea/zoomArea.mjs +1 -0
- package/dist/esm/components/zoomArea/zoomArea.type.mjs +1 -0
- package/dist/esm/hooks/index.mjs +1 -0
- package/dist/esm/hooks/useFocus/useFocus.mjs +1 -0
- package/dist/esm/hooks/useFocus/useFocus.types.mjs +0 -0
- package/dist/esm/hooks/useHover/useHover.mjs +1 -0
- package/dist/esm/hooks/useHover/useHover.types.mjs +0 -0
- package/dist/esm/hooks/useId/index.mjs +1 -0
- package/dist/esm/hooks/useId/useId.mjs +1 -0
- package/dist/esm/hooks/useResponsiveCanvas/index.mjs +1 -0
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/storybook/components/note/note.css +1 -0
- package/dist/esm/types/canvas.type.mjs +1 -0
- package/dist/esm/types/errors.type.mjs +1 -0
- package/dist/esm/types/focusConfig.type.mjs +1 -0
- package/dist/esm/types/index.mjs +1 -0
- package/dist/esm/types/position.enum.mjs +1 -0
- package/dist/esm/types/unit.enum.mjs +1 -0
- package/dist/esm/types/valueFormatter.type.mjs +0 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.mjs +1 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/index.mjs +1 -0
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.mjs +1 -0
- package/dist/esm/utils/buildErrors/buildErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/index.mjs +1 -0
- package/dist/esm/utils/buildTickValues/buildTickValues.mjs +1 -0
- package/dist/esm/utils/classNames/classNames.mjs +1 -0
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.mjs +1 -0
- package/dist/esm/utils/createErrorAccumulator/index.mjs +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.mjs +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.mjs +0 -0
- package/dist/esm/utils/cursorNear/isNear.mjs +1 -0
- package/dist/esm/utils/getAxisData/getAxisData.mjs +1 -0
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.mjs +1 -0
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.mjs +1 -0
- package/dist/esm/utils/getCoordinates/getCoordinates.mjs +1 -0
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.mjs +1 -0
- package/dist/esm/utils/getPoints/getPoints.mjs +1 -0
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.mjs +1 -0
- package/dist/esm/utils/getTicks/getTicks.mjs +1 -0
- package/dist/esm/utils/index.mjs +1 -0
- package/dist/esm/utils/logger/index.mjs +1 -0
- package/dist/esm/utils/logger/logger.mjs +1 -0
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.mjs +1 -0
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.mjs +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.mjs +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.types.mjs +0 -0
- package/dist/esm/utils/ssr/index.mjs +1 -0
- package/dist/esm/utils/ssr/ssr.mjs +1 -0
- package/dist/esm/utils/textBound/textBound.mjs +1 -0
- package/dist/types/assets/index.d.ts +1 -2
- package/dist/types/assets/storybook/icons/icons.d.ts +4 -0
- package/dist/types/assets/storybook/index.d.ts +1 -0
- package/dist/types/charts/barChart/barChart.d.ts +6 -7
- package/dist/types/charts/barChart/barChart.type.d.ts +15 -13
- package/dist/types/charts/barChart/barChartStructure.d.ts +1 -2
- package/dist/types/charts/barChart/context/barChartContext.d.ts +2 -3
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts +5 -6
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts +1 -2
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts +1 -2
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts +1 -2
- package/dist/types/charts/barChart/index.d.ts +1 -2
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts +1 -2
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts +2 -3
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts +1 -2
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts +1 -2
- package/dist/types/charts/constants/chartDefaults.d.ts +0 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/context/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts +3 -4
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts +4 -5
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts +0 -1
- package/dist/types/charts/index.d.ts +4 -5
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts +4 -5
- package/dist/types/charts/lineChart/context/index.d.ts +2 -3
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts +1 -2
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts +1 -2
- package/dist/types/charts/lineChart/fragments/index.d.ts +4 -5
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +3 -3
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +3 -3
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts +1 -2
- package/dist/types/charts/lineChart/hook/index.d.ts +3 -4
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts +0 -1
- package/dist/types/charts/lineChart/hook/useHover.d.ts +0 -1
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts +0 -1
- package/dist/types/charts/lineChart/index.d.ts +1 -2
- package/dist/types/charts/lineChart/lineChart.d.ts +6 -7
- package/dist/types/charts/lineChart/lineChart.type.d.ts +19 -20
- package/dist/types/charts/lineChart/lineChartStructure.d.ts +2 -3
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getCoordinates.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getPathData.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getProjection.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getTicks.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/index.d.ts +6 -7
- package/dist/types/charts/lineChart/utils/tickTextPosition.d.ts +8 -9
- package/dist/types/charts/lineChart/utils/validations.d.ts +15 -16
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts +3 -4
- package/dist/types/charts/pieChart/context/index.d.ts +2 -3
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/index.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts +1 -2
- package/dist/types/charts/pieChart/index.d.ts +1 -2
- package/dist/types/charts/pieChart/pieChart.d.ts +4 -5
- package/dist/types/charts/pieChart/pieChart.type.d.ts +5 -6
- package/dist/types/charts/pieChart/pieChartStructure.d.ts +2 -3
- package/dist/types/charts/pieChart/utils/accessibility.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/buildL.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts +1 -2
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts +1 -2
- package/dist/types/charts/pieChart/utils/index.d.ts +2 -3
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts +0 -1
- package/dist/types/components/axisChart/index.d.ts +2 -3
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +1 -2
- package/dist/types/components/axisChart/utils/index.d.ts +1 -2
- package/dist/types/components/axisChart/xAxis/index.d.ts +2 -3
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts +2 -3
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts +6 -7
- package/dist/types/components/axisChart/yAxis/index.d.ts +2 -3
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts +2 -3
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts +5 -6
- package/dist/types/components/bar/bar.d.ts +2 -3
- package/dist/types/components/bar/bar.type.d.ts +5 -6
- package/dist/types/components/bar/index.d.ts +2 -3
- package/dist/types/components/bar/utils/accessibility.d.ts +0 -1
- package/dist/types/components/bar/utils/buildD.d.ts +2 -3
- package/dist/types/components/bar/utils/getSegments.d.ts +2 -3
- package/dist/types/components/chartText/chartText.d.ts +2 -3
- package/dist/types/components/chartText/chartText.types.d.ts +8 -9
- package/dist/types/components/chartText/index.d.ts +2 -3
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts +2 -3
- package/dist/types/components/focusRing/components/FocusRingRenderer.d.ts +1 -2
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts +2 -3
- package/dist/types/components/focusRing/focusRing.d.ts +3 -3
- package/dist/types/components/focusRing/focusRing.types.d.ts +3 -4
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts +3 -4
- package/dist/types/components/focusRing/index.d.ts +2 -3
- package/dist/types/components/focusRing/utils/composeRefs.d.ts +1 -2
- package/dist/types/components/focusRing/utils/createAdaptiveFocusRings.d.ts +2 -3
- package/dist/types/components/focusRing/utils/createBoundingBoxFocusRings.d.ts +2 -3
- package/dist/types/components/focusRing/utils/utils.types.d.ts +0 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts +2 -3
- package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -2
- package/dist/types/components/foreignObject/index.d.ts +2 -3
- package/dist/types/components/index.d.ts +11 -12
- package/dist/types/components/line/index.d.ts +2 -3
- package/dist/types/components/line/line.d.ts +2 -3
- package/dist/types/components/line/line.types.d.ts +4 -5
- package/dist/types/components/node/components/circle/circle.d.ts +2 -3
- package/dist/types/components/node/components/hexagon/hexagon.d.ts +2 -3
- package/dist/types/components/node/components/index.d.ts +0 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts +2 -3
- package/dist/types/components/node/components/square/square.d.ts +2 -3
- package/dist/types/components/node/components/star/star.d.ts +2 -3
- package/dist/types/components/node/components/straight/straight.d.ts +2 -3
- package/dist/types/components/node/components/triangle/triangle.d.ts +2 -3
- package/dist/types/components/node/index.d.ts +2 -3
- package/dist/types/components/node/node.d.ts +2 -3
- package/dist/types/components/node/node.types.d.ts +2 -3
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +0 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts +3 -4
- package/dist/types/components/path/index.d.ts +2 -3
- package/dist/types/components/path/path.d.ts +3 -3
- package/dist/types/components/path/path.types.d.ts +7 -8
- package/dist/types/components/plot/components/circle/circle.d.ts +2 -3
- package/dist/types/components/plot/components/index.d.ts +3 -4
- package/dist/types/components/plot/components/square/square.d.ts +2 -3
- package/dist/types/components/plot/components/triangle/triangle.d.ts +2 -3
- package/dist/types/components/plot/index.d.ts +2 -3
- package/dist/types/components/plot/plot.d.ts +3 -3
- package/dist/types/components/plot/plot.types.d.ts +2 -3
- package/dist/types/components/svgContainer/index.d.ts +1 -2
- package/dist/types/components/svgContainer/svgContainer.d.ts +2 -3
- package/dist/types/components/svgContainer/svgContainer.types.d.ts +1 -2
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +0 -1
- package/dist/types/components/svgContainer/utils/index.d.ts +1 -2
- package/dist/types/components/tick/index.d.ts +2 -3
- package/dist/types/components/tick/tick.d.ts +2 -3
- package/dist/types/components/tick/tick.types.d.ts +3 -4
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -2
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -2
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts +3 -4
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +3 -4
- package/dist/types/components/zoomArea/components/index.d.ts +4 -5
- package/dist/types/components/zoomArea/hooks/index.d.ts +4 -5
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts +1 -2
- package/dist/types/components/zoomArea/index.d.ts +5 -6
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/index.d.ts +3 -4
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts +0 -1
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts +1 -2
- package/dist/types/components/zoomArea/zoomArea.d.ts +1 -2
- package/dist/types/components/zoomArea/zoomArea.type.d.ts +3 -4
- package/dist/types/hooks/index.d.ts +4 -5
- package/dist/types/hooks/useFocus/useFocus.d.ts +1 -2
- package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -2
- package/dist/types/hooks/useHover/useHover.d.ts +1 -2
- package/dist/types/hooks/useHover/useHover.types.d.ts +1 -2
- package/dist/types/hooks/useId/index.d.ts +1 -2
- package/dist/types/hooks/useId/useId.d.ts +0 -1
- package/dist/types/hooks/useResponsiveCanvas/index.d.ts +1 -2
- package/dist/types/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts +1 -2
- package/dist/types/index.d.ts +3 -4
- package/dist/types/storybook/components/index.d.ts +1 -0
- package/dist/types/storybook/components/note/note.d.ts +12 -0
- package/dist/types/storybook/constants/categoryControl.d.ts +9 -0
- package/dist/types/storybook/index.d.ts +1 -0
- package/dist/types/types/canvas.type.d.ts +0 -1
- package/dist/types/types/errors.type.d.ts +0 -1
- package/dist/types/types/focusConfig.type.d.ts +1 -2
- package/dist/types/types/index.d.ts +4 -5
- package/dist/types/types/position.enum.d.ts +0 -1
- package/dist/types/types/unit.enum.d.ts +0 -1
- package/dist/types/types/valueFormatter.type.d.ts +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +2 -3
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts +1 -2
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts +0 -1
- package/dist/types/utils/buildErrors/buildErrors.d.ts +2 -3
- package/dist/types/utils/buildErrors/charts/buildBarChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/charts/buildLineChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/barChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/lineChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/index.d.ts +1 -2
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts +0 -1
- package/dist/types/utils/classNames/classNames.d.ts +0 -1
- package/dist/types/utils/createErrorAccumulator/createErrorAccumulator.d.ts +1 -2
- package/dist/types/utils/createErrorAccumulator/index.d.ts +1 -2
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +0 -1
- package/dist/types/utils/cursorNear/isNear.d.ts +0 -1
- package/dist/types/utils/getAxisData/getAxisData.d.ts +0 -1
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts +0 -1
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -2
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts +1 -2
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts +3 -4
- package/dist/types/utils/getPoints/getPoints.d.ts +1 -2
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +1 -2
- package/dist/types/utils/getTicks/getTicks.d.ts +1 -2
- package/dist/types/utils/index.d.ts +10 -11
- package/dist/types/utils/logger/index.d.ts +1 -2
- package/dist/types/utils/logger/logger.d.ts +1 -2
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +0 -1
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts +1 -2
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts +0 -1
- package/dist/types/utils/ssr/index.d.ts +1 -2
- package/dist/types/utils/ssr/ssr.d.ts +0 -1
- package/dist/types/utils/textBound/textBound.d.ts +1 -2
- package/package.json +69 -93
- package/dist/cjs/charts/lineChart/fragments/lineChartPath2.js +0 -1
- package/dist/cjs/components/focusRing/focusRing2.js +0 -1
- package/dist/cjs/components/path/path2.js +0 -1
- package/dist/cjs/components/plot/plot2.js +0 -1
- package/dist/cjs/react-charts.css +0 -2
- package/dist/esm/charts/barChart/barChart.js +0 -12
- package/dist/esm/charts/barChart/barChartStructure.js +0 -69
- package/dist/esm/charts/barChart/context/barChartContext.js +0 -3
- package/dist/esm/charts/barChart/context/buildBarContextValues.js +0 -156
- package/dist/esm/charts/barChart/fragments/barChartPath.js +0 -76
- package/dist/esm/charts/barChart/fragments/barChartSeparator.js +0 -61
- package/dist/esm/charts/barChart/fragments/barChartXAxis.js +0 -32
- package/dist/esm/charts/barChart/fragments/barChartYAxis.js +0 -29
- package/dist/esm/charts/barChart/index.js +0 -1
- package/dist/esm/charts/barChart/utils/countBarChildren.js +0 -9
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.js +0 -82
- package/dist/esm/charts/barChart/utils/getBarDataValue.js +0 -11
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.js +0 -2
- package/dist/esm/charts/constants/chartDefaults.js +0 -19
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.js +0 -3
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.js +0 -4
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.js +0 -67
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +0 -46
- package/dist/esm/charts/customBackgroundChart/index.js +0 -1
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.js +0 -13
- package/dist/esm/charts/lineChart/context/buildLineContextValue.js +0 -139
- package/dist/esm/charts/lineChart/context/lineChartContext.js +0 -3
- package/dist/esm/charts/lineChart/fragments/lineChartPath2.js +0 -122
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.js +0 -58
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.js +0 -61
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.js +0 -34
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.js +0 -39
- package/dist/esm/charts/lineChart/hook/useAutoClick.js +0 -14
- package/dist/esm/charts/lineChart/hook/useHover.js +0 -18
- package/dist/esm/charts/lineChart/hook/useIndicator.js +0 -15
- package/dist/esm/charts/lineChart/index.js +0 -1
- package/dist/esm/charts/lineChart/lineChart.js +0 -12
- package/dist/esm/charts/lineChart/lineChartStructure.js +0 -92
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.js +0 -19
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.js +0 -19
- package/dist/esm/charts/lineChart/utils/getCoordinates.js +0 -49
- package/dist/esm/charts/lineChart/utils/getDataValues.js +0 -11
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.js +0 -111
- package/dist/esm/charts/lineChart/utils/getPathData.js +0 -9
- package/dist/esm/charts/lineChart/utils/getProjection.js +0 -42
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.js +0 -2
- package/dist/esm/charts/lineChart/utils/getTicks.js +0 -24
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.js +0 -17
- package/dist/esm/charts/lineChart/utils/tickTextPosition.js +0 -34
- package/dist/esm/charts/lineChart/utils/validations.js +0 -68
- package/dist/esm/charts/pieChart/context/buildPieContextValue.js +0 -28
- package/dist/esm/charts/pieChart/context/pieChartContext.js +0 -3
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.js +0 -17
- package/dist/esm/charts/pieChart/fragments/pieChartPath.js +0 -53
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.js +0 -42
- package/dist/esm/charts/pieChart/index.js +0 -1
- package/dist/esm/charts/pieChart/pieChart.js +0 -8
- package/dist/esm/charts/pieChart/pieChartStructure.js +0 -58
- package/dist/esm/charts/pieChart/utils/accessibility.js +0 -11
- package/dist/esm/charts/pieChart/utils/buildL.js +0 -4
- package/dist/esm/charts/pieChart/utils/calculatePoint.js +0 -5
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.js +0 -29
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.js +0 -29
- package/dist/esm/charts/pieChart/utils/rotationDirection.js +0 -12
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.js +0 -24
- package/dist/esm/components/axisChart/xAxis/xAxis.js +0 -37
- package/dist/esm/components/axisChart/yAxis/yAxis.js +0 -36
- package/dist/esm/components/bar/bar.js +0 -67
- package/dist/esm/components/bar/bar.type.js +0 -5
- package/dist/esm/components/bar/utils/accessibility.js +0 -14
- package/dist/esm/components/bar/utils/buildD.js +0 -23
- package/dist/esm/components/bar/utils/getSegments.js +0 -13
- package/dist/esm/components/chartText/chartText.js +0 -7
- package/dist/esm/components/focusRing/components/FocusRingInline.js +0 -17
- package/dist/esm/components/focusRing/components/FocusRingRenderer.js +0 -14
- package/dist/esm/components/focusRing/components/FocusRingSeparate.js +0 -15
- package/dist/esm/components/focusRing/focusRing2.js +0 -18
- package/dist/esm/components/focusRing/hooks/useFocusRingData.js +0 -28
- package/dist/esm/components/focusRing/utils/composeRefs.js +0 -8
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.js +0 -75
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.js +0 -73
- package/dist/esm/components/foreignObject/foreignObject.js +0 -10
- package/dist/esm/components/line/line.js +0 -8
- package/dist/esm/components/node/components/circle/circle.js +0 -11
- package/dist/esm/components/node/components/hexagon/hexagon.js +0 -16
- package/dist/esm/components/node/components/pentagon/pentagon.js +0 -16
- package/dist/esm/components/node/components/square/square.js +0 -15
- package/dist/esm/components/node/components/star/star.js +0 -16
- package/dist/esm/components/node/components/straight/straight.js +0 -16
- package/dist/esm/components/node/components/triangle/triangle.js +0 -19
- package/dist/esm/components/node/node.js +0 -74
- package/dist/esm/components/node/node.types.js +0 -10
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.js +0 -9
- package/dist/esm/components/path/components/nodePath/nodePath.js +0 -35
- package/dist/esm/components/path/path2.js +0 -129
- package/dist/esm/components/plot/components/circle/circle.js +0 -11
- package/dist/esm/components/plot/components/square/square.js +0 -12
- package/dist/esm/components/plot/components/triangle/triangle.js +0 -12
- package/dist/esm/components/plot/plot.types.js +0 -18
- package/dist/esm/components/plot/plot2.js +0 -68
- package/dist/esm/components/svgContainer/svgContainer.js +0 -33
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.js +0 -2
- package/dist/esm/components/tick/tick.js +0 -8
- package/dist/esm/components/tick/tick.types.js +0 -5
- package/dist/esm/components/zoomArea/components/HandlerIcon.js +0 -13
- package/dist/esm/components/zoomArea/components/LineRenderer.js +0 -14
- package/dist/esm/components/zoomArea/components/SelectionArea.js +0 -36
- package/dist/esm/components/zoomArea/components/ZoomHandler.js +0 -69
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.js +0 -56
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.js +0 -70
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.js +0 -12
- package/dist/esm/components/zoomArea/hooks/useZoomData.js +0 -19
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.js +0 -17
- package/dist/esm/components/zoomArea/utils/indexRounding.js +0 -8
- package/dist/esm/components/zoomArea/utils/interactionConfig.js +0 -11
- package/dist/esm/components/zoomArea/utils/pathGeneration.js +0 -21
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.js +0 -20
- package/dist/esm/components/zoomArea/utils/selectionConfig.js +0 -15
- package/dist/esm/components/zoomArea/zoomArea.js +0 -131
- package/dist/esm/components/zoomArea/zoomArea.type.js +0 -6
- package/dist/esm/hooks/useFocus/useFocus.js +0 -14
- package/dist/esm/hooks/useHover/useHover.js +0 -14
- package/dist/esm/hooks/useId/useId.js +0 -7
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.js +0 -56
- package/dist/esm/index.js +0 -36
- package/dist/esm/react-charts.css +0 -2
- package/dist/esm/types/canvas.type.js +0 -6
- package/dist/esm/types/errors.type.js +0 -20
- package/dist/esm/types/focusConfig.type.js +0 -16
- package/dist/esm/types/position.enum.js +0 -9
- package/dist/esm/types/unit.enum.js +0 -5
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +0 -10
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.js +0 -16
- package/dist/esm/utils/buildErrors/buildErrors.js +0 -19
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +0 -19
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +0 -25
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +0 -13
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.js +0 -20
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.js +0 -26
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.js +0 -14
- package/dist/esm/utils/buildTickValues/buildTickValues.js +0 -14
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.js +0 -29
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.js +0 -35
- package/dist/esm/utils/cursorNear/isNear.js +0 -2
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.js +0 -39
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.js +0 -11
- package/dist/esm/utils/getCoordinates/getCoordinates.js +0 -43
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.js +0 -2
- package/dist/esm/utils/getPoints/getPoints.js +0 -22
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.js +0 -3
- package/dist/esm/utils/getTicks/getTicks.js +0 -14
- package/dist/esm/utils/logger/logger.js +0 -25
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +0 -10
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.js +0 -2
- package/dist/esm/utils/shadowSvg/shadowSvg.js +0 -10
- package/dist/esm/utils/ssr/ssr.js +0 -11
- package/dist/esm/utils/textBound/textBound.js +0 -18
- package/dist/types/assets/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChart.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChart.type.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChartStructure.d.ts.map +0 -1
- package/dist/types/charts/barChart/context/barChartContext.d.ts.map +0 -1
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +0 -1
- package/dist/types/charts/constants/chartDefaults.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts.map +0 -1
- package/dist/types/charts/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useHover.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts.map +0 -1
- package/dist/types/charts/lineChart/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChart.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChart.type.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChartStructure.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getCoordinates.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getPathData.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getProjection.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getTicks.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/tickTextPosition.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/validations.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts.map +0 -1
- package/dist/types/charts/pieChart/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChart.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChart.type.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChartStructure.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/accessibility.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/buildL.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts.map +0 -1
- package/dist/types/components/axisChart/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +0 -1
- package/dist/types/components/axisChart/utils/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts.map +0 -1
- package/dist/types/components/bar/bar.d.ts.map +0 -1
- package/dist/types/components/bar/bar.type.d.ts.map +0 -1
- package/dist/types/components/bar/index.d.ts.map +0 -1
- package/dist/types/components/bar/utils/accessibility.d.ts.map +0 -1
- package/dist/types/components/bar/utils/buildD.d.ts.map +0 -1
- package/dist/types/components/bar/utils/getSegments.d.ts.map +0 -1
- package/dist/types/components/chartText/chartText.d.ts.map +0 -1
- package/dist/types/components/chartText/chartText.types.d.ts.map +0 -1
- package/dist/types/components/chartText/index.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingRenderer.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts.map +0 -1
- package/dist/types/components/focusRing/focusRing.d.ts.map +0 -1
- package/dist/types/components/focusRing/focusRing.types.d.ts.map +0 -1
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts.map +0 -1
- package/dist/types/components/focusRing/index.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/composeRefs.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/createAdaptiveFocusRings.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/createBoundingBoxFocusRings.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/utils.types.d.ts.map +0 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts.map +0 -1
- package/dist/types/components/foreignObject/foreignObject.types.d.ts.map +0 -1
- package/dist/types/components/foreignObject/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/line/index.d.ts.map +0 -1
- package/dist/types/components/line/line.d.ts.map +0 -1
- package/dist/types/components/line/line.types.d.ts.map +0 -1
- package/dist/types/components/node/components/circle/circle.d.ts.map +0 -1
- package/dist/types/components/node/components/hexagon/hexagon.d.ts.map +0 -1
- package/dist/types/components/node/components/index.d.ts.map +0 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts.map +0 -1
- package/dist/types/components/node/components/square/square.d.ts.map +0 -1
- package/dist/types/components/node/components/star/star.d.ts.map +0 -1
- package/dist/types/components/node/components/straight/straight.d.ts.map +0 -1
- package/dist/types/components/node/components/triangle/triangle.d.ts.map +0 -1
- package/dist/types/components/node/index.d.ts.map +0 -1
- package/dist/types/components/node/node.d.ts.map +0 -1
- package/dist/types/components/node/node.types.d.ts.map +0 -1
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +0 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts.map +0 -1
- package/dist/types/components/path/index.d.ts.map +0 -1
- package/dist/types/components/path/path.d.ts.map +0 -1
- package/dist/types/components/path/path.types.d.ts.map +0 -1
- package/dist/types/components/plot/components/circle/circle.d.ts.map +0 -1
- package/dist/types/components/plot/components/index.d.ts.map +0 -1
- package/dist/types/components/plot/components/square/square.d.ts.map +0 -1
- package/dist/types/components/plot/components/triangle/triangle.d.ts.map +0 -1
- package/dist/types/components/plot/index.d.ts.map +0 -1
- package/dist/types/components/plot/plot.d.ts.map +0 -1
- package/dist/types/components/plot/plot.types.d.ts.map +0 -1
- package/dist/types/components/svgContainer/index.d.ts.map +0 -1
- package/dist/types/components/svgContainer/svgContainer.d.ts.map +0 -1
- package/dist/types/components/svgContainer/svgContainer.types.d.ts.map +0 -1
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +0 -1
- package/dist/types/components/svgContainer/utils/index.d.ts.map +0 -1
- package/dist/types/components/tick/index.d.ts.map +0 -1
- package/dist/types/components/tick/tick.d.ts.map +0 -1
- package/dist/types/components/tick/tick.types.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts.map +0 -1
- package/dist/types/components/zoomArea/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts.map +0 -1
- package/dist/types/components/zoomArea/zoomArea.d.ts.map +0 -1
- package/dist/types/components/zoomArea/zoomArea.type.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/useFocus/useFocus.d.ts.map +0 -1
- package/dist/types/hooks/useFocus/useFocus.types.d.ts.map +0 -1
- package/dist/types/hooks/useHover/useHover.d.ts.map +0 -1
- package/dist/types/hooks/useHover/useHover.types.d.ts.map +0 -1
- package/dist/types/hooks/useId/index.d.ts.map +0 -1
- package/dist/types/hooks/useId/useId.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveCanvas/index.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/index.d.ts +0 -2
- package/dist/types/tests/index.d.ts.map +0 -1
- package/dist/types/tests/render/render.d.ts +0 -15
- package/dist/types/tests/render/render.d.ts.map +0 -1
- package/dist/types/types/canvas.type.d.ts.map +0 -1
- package/dist/types/types/errors.type.d.ts.map +0 -1
- package/dist/types/types/focusConfig.type.d.ts.map +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/position.enum.d.ts.map +0 -1
- package/dist/types/types/unit.enum.d.ts.map +0 -1
- package/dist/types/types/valueFormatter.type.d.ts.map +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts.map +0 -1
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/buildErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildBarChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildLineChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/barChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/lineChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/index.d.ts.map +0 -1
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts.map +0 -1
- package/dist/types/utils/classNames/classNames.d.ts.map +0 -1
- package/dist/types/utils/createErrorAccumulator/createErrorAccumulator.d.ts.map +0 -1
- package/dist/types/utils/createErrorAccumulator/index.d.ts.map +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +0 -1
- package/dist/types/utils/cursorNear/isNear.d.ts.map +0 -1
- package/dist/types/utils/getAxisData/getAxisData.d.ts.map +0 -1
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +0 -1
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts.map +0 -1
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts.map +0 -1
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts.map +0 -1
- package/dist/types/utils/getPoints/getPoints.d.ts.map +0 -1
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +0 -1
- package/dist/types/utils/getTicks/getTicks.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/logger/index.d.ts.map +0 -1
- package/dist/types/utils/logger/logger.d.ts.map +0 -1
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +0 -1
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts.map +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts.map +0 -1
- package/dist/types/utils/ssr/index.d.ts.map +0 -1
- package/dist/types/utils/ssr/ssr.d.ts.map +0 -1
- package/dist/types/utils/textBound/textBound.d.ts.map +0 -1
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { BuildError, buildCanvasDimensionsError, buildError } from "../../../utils/buildErrors/buildErrors.js";
|
|
2
|
-
import { AXIS_VALIDATION } from "../../constants/chartDefaults.js";
|
|
3
|
-
const validateData = ({ data: t, addError: r }) => {
|
|
4
|
-
let i;
|
|
5
|
-
if (!t || t.length === 0) {
|
|
6
|
-
let t = { error: buildError(BuildError.LINE_CHART_NO_DATA) };
|
|
7
|
-
r?.("LINE_CHART_CONTEXT_ERROR", t), i = t;
|
|
8
|
-
}
|
|
9
|
-
if (t && t.length === 1) {
|
|
10
|
-
let t = { error: buildError(BuildError.LINE_CHART_SINGLE_POINT) };
|
|
11
|
-
r?.("LINE_CHART_CONTEXT_ERROR", t), i = t;
|
|
12
|
-
}
|
|
13
|
-
return { error: i };
|
|
14
|
-
}, validateCanvasDimensions = ({ canvasWidth: e, canvasHeight: n, addError: r }) => {
|
|
15
|
-
let i;
|
|
16
|
-
if (e <= 0 || n <= 0) {
|
|
17
|
-
let a = { error: buildCanvasDimensionsError(e, n) };
|
|
18
|
-
r?.("LINE_CHART_CONTEXT_ERROR", a), i = a;
|
|
19
|
-
}
|
|
20
|
-
return { error: i };
|
|
21
|
-
}, validateYTickValues = ({ yTickValues: t, addError: i }) => {
|
|
22
|
-
let a;
|
|
23
|
-
if (t) {
|
|
24
|
-
let o = t.length < AXIS_VALIDATION.MIN_TICK_COUNT, s = t.length >= AXIS_VALIDATION.MIN_TICK_COUNT && new Set(t.map((e) => e.value)).size === AXIS_VALIDATION.UNIQUE_VALUE_THRESHOLD;
|
|
25
|
-
if (o) {
|
|
26
|
-
let t = { error: buildError(BuildError.LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS) };
|
|
27
|
-
i?.("LINE_CHART_Y_AXIS_ERROR", t), a ||= t;
|
|
28
|
-
}
|
|
29
|
-
if (s) {
|
|
30
|
-
let t = { error: buildError(BuildError.LINE_CHART_Y_AXIS_IDENTICAL_VALUES) };
|
|
31
|
-
i?.("LINE_CHART_Y_AXIS_ERROR", t), a ||= t;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return { error: a };
|
|
35
|
-
}, validateXTickValues = ({ xTickValues: t, addError: i }) => {
|
|
36
|
-
let a;
|
|
37
|
-
if (t) {
|
|
38
|
-
if ((t ?? []).some(({ position: e }) => isNaN(e))) {
|
|
39
|
-
let t = { error: buildError(BuildError.INVALID_X_TICK) };
|
|
40
|
-
i?.("LINE_CHART_CONTEXT_ERROR", t), a = t;
|
|
41
|
-
}
|
|
42
|
-
let o = t.length < AXIS_VALIDATION.MIN_TICK_COUNT, s = t.length >= AXIS_VALIDATION.MIN_TICK_COUNT && new Set(t.map((e) => e.value)).size === AXIS_VALIDATION.UNIQUE_VALUE_THRESHOLD;
|
|
43
|
-
if (o) {
|
|
44
|
-
let t = { error: buildError(BuildError.LINE_CHART_X_AXIS_INSUFFICIENT_TICKS) };
|
|
45
|
-
i?.("LINE_CHART_X_AXIS_ERROR", t), a ||= t;
|
|
46
|
-
}
|
|
47
|
-
if (s) {
|
|
48
|
-
let t = { error: buildError(BuildError.LINE_CHART_X_AXIS_IDENTICAL_VALUES) };
|
|
49
|
-
i?.("LINE_CHART_X_AXIS_ERROR", t), a ||= t;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return { error: a };
|
|
53
|
-
}, validateXCoordinates = ({ xCoordinates: t, addError: r }) => {
|
|
54
|
-
let i;
|
|
55
|
-
if (t.x1 === t.x2) {
|
|
56
|
-
let t = { error: buildError(BuildError.LINE_CHART_X_AXIS_ZERO_LENGTH) };
|
|
57
|
-
r?.("LINE_CHART_X_AXIS_ERROR", t), i = t;
|
|
58
|
-
}
|
|
59
|
-
return { error: i };
|
|
60
|
-
}, validateYCoordinates = ({ yCoordinates: t, addError: r }) => {
|
|
61
|
-
let i;
|
|
62
|
-
if (t.y1 === t.y2) {
|
|
63
|
-
let t = { error: buildError(BuildError.LINE_CHART_Y_AXIS_ZERO_LENGTH) };
|
|
64
|
-
r?.("LINE_CHART_Y_AXIS_ERROR", t), i ||= t;
|
|
65
|
-
}
|
|
66
|
-
return { error: i };
|
|
67
|
-
};
|
|
68
|
-
export { validateCanvasDimensions, validateData, validateXCoordinates, validateXTickValues, validateYCoordinates, validateYTickValues };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { parseStringToNumberPx } from "../../../utils/parseStringToNumberPx.ts/parseStringToNumberPx.js";
|
|
2
|
-
import { buildCanvasDimensionsError } from "../../../utils/buildErrors/buildErrors.js";
|
|
3
|
-
import { CHART_CANVAS_DEFAULTS } from "../../constants/chartDefaults.js";
|
|
4
|
-
import { PieChartPath } from "../fragments/pieChartPath.js";
|
|
5
|
-
import { Children, isValidElement } from "react";
|
|
6
|
-
const buildPieContextValue = ({ addError: r, canvasHeight: i, canvasWidth: a, children: o, halfChart: s }) => {
|
|
7
|
-
(a <= 0 || i <= 0) && r?.("PIE_CHART_CONTEXT_ERROR", { error: buildCanvasDimensionsError(a, i) });
|
|
8
|
-
let c = a > 0 ? a : CHART_CANVAS_DEFAULTS.SAFE_WIDTH, l = i > 0 ? i : CHART_CANVAS_DEFAULTS.SAFE_HEIGHT, u, d;
|
|
9
|
-
Children.forEach(o, (e) => {
|
|
10
|
-
if (isValidElement(e) && e.type === PieChartPath) {
|
|
11
|
-
let { innerRadius: t } = e.props;
|
|
12
|
-
if (!t) return;
|
|
13
|
-
let n = parseStringToNumberPx(t);
|
|
14
|
-
(!u || n < u) && (u = n);
|
|
15
|
-
}
|
|
16
|
-
}), u && (d = u * 2);
|
|
17
|
-
let f = d ?? 0, p = s ? f / 2 : f, m = f, h = c / 2, g = s ? l : l / 2;
|
|
18
|
-
return {
|
|
19
|
-
addError: r,
|
|
20
|
-
foreignObject: {
|
|
21
|
-
height: p,
|
|
22
|
-
width: m,
|
|
23
|
-
x: h - m / 2,
|
|
24
|
-
y: s ? g - p : g - p / 2
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
export { buildPieContextValue };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ForeignObject } from "../../../components/foreignObject/foreignObject.js";
|
|
2
|
-
import { PieChartContext } from "../context/pieChartContext.js";
|
|
3
|
-
import { useContext } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
const PieChartForeign = ({ children: e, dataTestId: t, height: n, width: r, x: i, y: a, ...o }) => {
|
|
6
|
-
let { dataTestId: s, foreignObject: c } = useContext(PieChartContext), l = !r && c?.width ? c.width : r, u = !n && c?.height ? c.height : n, d = !i && c?.x ? c.x : i, f = !a && c?.y ? c.y : a, p = !t && s ? `${s}-foreign-object` : t;
|
|
7
|
-
return /* @__PURE__ */ jsx(ForeignObject, {
|
|
8
|
-
...o,
|
|
9
|
-
dataTestId: p,
|
|
10
|
-
height: u,
|
|
11
|
-
width: l,
|
|
12
|
-
x: d,
|
|
13
|
-
y: f,
|
|
14
|
-
children: e
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
export { PieChartForeign };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { parseStringToNumberPx } from "../../../utils/parseStringToNumberPx.ts/parseStringToNumberPx.js";
|
|
2
|
-
import { buildEmptyDataArrayError, buildInvalidTotalError, buildPieDataKeyNotFoundError } from "../../../utils/buildErrors/charts/buildPieChartErrors.js";
|
|
3
|
-
import { PieChartContext } from "../context/pieChartContext.js";
|
|
4
|
-
import { buildAriaLabel } from "../utils/accessibility.js";
|
|
5
|
-
import { PieChartSegment } from "./pieChartSegment.js";
|
|
6
|
-
import { createElement, useContext, useEffect, useRef } from "react";
|
|
7
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
8
|
-
const PieChartPath = ({ ariaLabel: n, "aria-label": r, dataKey: i, fill: a, gap: o, innerRadius: s, radius: c, ...l }) => {
|
|
9
|
-
let u = String(i), { addError: d, canvasHeight: f, canvasWidth: p, data: m, dataTestId: h, halfChart: g } = useContext(PieChartContext), _ = g ? 0 : -Math.PI / 2, v = useRef(_), y = m[u], b = Object.prototype.hasOwnProperty.call(m, u);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
if (!b) {
|
|
12
|
-
d?.("PIE_CHART_PATH_ERROR", { error: buildPieDataKeyNotFoundError(u) });
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
if (!y || y.length === 0) {
|
|
16
|
-
d?.("PIE_CHART_PATH_ERROR", { error: buildEmptyDataArrayError(u) });
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
let e = y.reduce((e, t) => e + t.value, 0);
|
|
20
|
-
(e <= 0 || isNaN(e)) && d?.("PIE_CHART_PATH_ERROR", { error: buildInvalidTotalError(u, e) });
|
|
21
|
-
}, [
|
|
22
|
-
y,
|
|
23
|
-
b,
|
|
24
|
-
u
|
|
25
|
-
]);
|
|
26
|
-
let x = m[u]?.reduce((e, t) => e + t.value, 0), S = m[u]?.length === 1, C = s ? parseStringToNumberPx(s) : void 0, w = c ? parseStringToNumberPx(c) : void 0;
|
|
27
|
-
return v.current = _, m[u]?.length ? /* @__PURE__ */ jsx("g", { children: m[u].map((e, t) => /* @__PURE__ */ createElement(PieChartSegment, {
|
|
28
|
-
...l,
|
|
29
|
-
...e,
|
|
30
|
-
key: `${t.toString()}`,
|
|
31
|
-
ariaLabel: buildAriaLabel({
|
|
32
|
-
ariaLabel: r || n,
|
|
33
|
-
dataKey: u,
|
|
34
|
-
index: t,
|
|
35
|
-
groupName: e.name,
|
|
36
|
-
groupValue: e.value
|
|
37
|
-
}),
|
|
38
|
-
canvasHeight: f,
|
|
39
|
-
canvasWidth: p,
|
|
40
|
-
color: e.color || a,
|
|
41
|
-
dataKey: u,
|
|
42
|
-
dataTestId: `${h}path-${t}`,
|
|
43
|
-
gap: o,
|
|
44
|
-
halfChart: g,
|
|
45
|
-
index: t,
|
|
46
|
-
innerRadius: C,
|
|
47
|
-
radius: w,
|
|
48
|
-
singleStroke: S,
|
|
49
|
-
startAngle: v,
|
|
50
|
-
total: x
|
|
51
|
-
})) }) : /* @__PURE__ */ jsx(Fragment, {});
|
|
52
|
-
};
|
|
53
|
-
export { PieChartPath };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { buildInnerRadiusOutOfRangeError, buildInvalidGroupError, buildInvalidInnerRadiusError, buildInvalidRadiusError, buildSegmentNegativeValueError, buildSegmentValueError } from "../../../utils/buildErrors/charts/buildPieChartErrors.js";
|
|
2
|
-
import { Path } from "../../../components/path/path2.js";
|
|
3
|
-
import { PieChartContext } from "../context/pieChartContext.js";
|
|
4
|
-
import { calculateSegmentPath } from "../utils/calculateSegmentPath.js";
|
|
5
|
-
import { useContext, useEffect } from "react";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
const PieChartSegment = ({ canvasHeight: e, canvasWidth: t, color: n = "blue", dataKey: r, gap: i, halfChart: a, index: o, innerRadius: s, name: c, radius: l, singleStroke: u, startAngle: d, total: f, value: p, ...m }) => {
|
|
8
|
-
let { addError: h } = useContext(PieChartContext), g = Number(p), _ = l === void 0 ? void 0 : Number(l), v = s === void 0 ? void 0 : Number(s), y = c?.trim() || "";
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
if (y || h?.("PIE_CHART_SEGMENT_ERROR", { error: buildInvalidGroupError(r || "unknown", o || 0, "name") }), isNaN(g)) {
|
|
11
|
-
h?.("PIE_CHART_SEGMENT_ERROR", { error: buildSegmentValueError(p, y || `segment-${o}`) });
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
g < 0 && h?.("PIE_CHART_SEGMENT_ERROR", { error: buildSegmentNegativeValueError(g, y || `segment-${o}`) }), _ !== void 0 && (isNaN(_) || _ <= 0) && h?.("PIE_CHART_SEGMENT_ERROR", { error: buildInvalidRadiusError(l) }), v !== void 0 && ((isNaN(v) || v < 0) && h?.("PIE_CHART_SEGMENT_ERROR", { error: buildInvalidInnerRadiusError(s) }), _ !== void 0 && !isNaN(_) && !isNaN(v) && v >= _ && h?.("PIE_CHART_SEGMENT_ERROR", { error: buildInnerRadiusOutOfRangeError(v, _) }));
|
|
15
|
-
}, [
|
|
16
|
-
r,
|
|
17
|
-
o,
|
|
18
|
-
v,
|
|
19
|
-
_,
|
|
20
|
-
g,
|
|
21
|
-
y
|
|
22
|
-
]);
|
|
23
|
-
let b = calculateSegmentPath({
|
|
24
|
-
canvasHeight: e,
|
|
25
|
-
canvasWidth: t,
|
|
26
|
-
customRadius: l,
|
|
27
|
-
gap: i,
|
|
28
|
-
halfChart: a,
|
|
29
|
-
innerRadius: s,
|
|
30
|
-
singleStroke: u,
|
|
31
|
-
startAngle: d,
|
|
32
|
-
total: f,
|
|
33
|
-
value: p
|
|
34
|
-
});
|
|
35
|
-
return /* @__PURE__ */ jsx(Path, {
|
|
36
|
-
...m,
|
|
37
|
-
d: b,
|
|
38
|
-
dataValue: p,
|
|
39
|
-
fill: n
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
export { PieChartSegment };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './pieChart.js';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PieChartForeign } from "./fragments/pieChartForeign.js";
|
|
2
|
-
import { PieChartPath } from "./fragments/pieChartPath.js";
|
|
3
|
-
import { PieChartStructure } from "./pieChartStructure.js";
|
|
4
|
-
var PieChart = Object.assign(PieChartStructure, {
|
|
5
|
-
Foreign: PieChartForeign,
|
|
6
|
-
Path: PieChartPath
|
|
7
|
-
});
|
|
8
|
-
export { PieChart };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { SvgContainer } from "../../components/svgContainer/svgContainer.js";
|
|
2
|
-
import { useId } from "../../hooks/useId/useId.js";
|
|
3
|
-
import { useResponsiveCanvas } from "../../hooks/useResponsiveCanvas/useResponsiveCanvas.js";
|
|
4
|
-
import { DefaultCanvasConfig } from "../../types/canvas.type.js";
|
|
5
|
-
import { createErrorAccumulator } from "../../utils/createErrorAccumulator/createErrorAccumulator.js";
|
|
6
|
-
import { getDataFingerprint } from "../../utils/getDataFingerprint/getDataFingerprint.js";
|
|
7
|
-
import { PieChartContext } from "./context/pieChartContext.js";
|
|
8
|
-
import { buildPieContextValue } from "./context/buildPieContextValue.js";
|
|
9
|
-
import { useMemo } from "react";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
const PieChartStructure = ({ ariaHidden: n, ariaLabel: r, canvasConfig: i = DefaultCanvasConfig, caption: a, children: o, classNames: s, data: c, dataTestId: l = "pie-chart", halfChart: u, height: d = "100%", onErrors: f, radius: p = "50%", role: m, tabIndex: h, width: g = "100%", ..._ }) => {
|
|
12
|
-
let v = useId(l), { parsedCanvas: y, viewBox: b } = useResponsiveCanvas({
|
|
13
|
-
canvasConfig: i,
|
|
14
|
-
dataTestId: v,
|
|
15
|
-
height: d,
|
|
16
|
-
width: g
|
|
17
|
-
}), x = y.width, S = y.height, C = useMemo(() => createErrorAccumulator(f), [f]), w = useMemo(() => (C.clearErrors(), buildPieContextValue({
|
|
18
|
-
addError: (e, t) => {
|
|
19
|
-
C.addError(e, t);
|
|
20
|
-
},
|
|
21
|
-
canvasHeight: S,
|
|
22
|
-
canvasWidth: x,
|
|
23
|
-
children: o,
|
|
24
|
-
halfChart: u
|
|
25
|
-
})), [
|
|
26
|
-
S,
|
|
27
|
-
x,
|
|
28
|
-
u,
|
|
29
|
-
getDataFingerprint(c),
|
|
30
|
-
C
|
|
31
|
-
]);
|
|
32
|
-
return /* @__PURE__ */ jsx(SvgContainer, {
|
|
33
|
-
ariaHidden: n,
|
|
34
|
-
ariaLabel: r,
|
|
35
|
-
caption: a,
|
|
36
|
-
className: s,
|
|
37
|
-
dataTestId: v,
|
|
38
|
-
height: d,
|
|
39
|
-
radius: p,
|
|
40
|
-
role: m,
|
|
41
|
-
tabIndex: h,
|
|
42
|
-
viewBox: b,
|
|
43
|
-
width: g,
|
|
44
|
-
..._,
|
|
45
|
-
children: /* @__PURE__ */ jsx(PieChartContext.Provider, {
|
|
46
|
-
value: {
|
|
47
|
-
...w,
|
|
48
|
-
canvasHeight: S,
|
|
49
|
-
canvasWidth: x,
|
|
50
|
-
data: c,
|
|
51
|
-
dataTestId: v,
|
|
52
|
-
halfChart: u
|
|
53
|
-
},
|
|
54
|
-
children: o
|
|
55
|
-
})
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
export { PieChartStructure };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const PIE_CHART_TEMPLATE_KEYS = {
|
|
2
|
-
DATA_KEY: "{{dataKey}}",
|
|
3
|
-
INDEX: "{{index}}",
|
|
4
|
-
GROUP_NAME: "{{groupName}}",
|
|
5
|
-
GROUP_VALUE: "{{groupValue}}"
|
|
6
|
-
}, buildAriaLabel = ({ ariaLabel: e, dataKey: t, index: n, groupName: r, groupValue: i }) => {
|
|
7
|
-
if (!e) return;
|
|
8
|
-
let a = new RegExp(PIE_CHART_TEMPLATE_KEYS.DATA_KEY, "g"), o = new RegExp(PIE_CHART_TEMPLATE_KEYS.INDEX, "g"), s = new RegExp(PIE_CHART_TEMPLATE_KEYS.GROUP_NAME, "g"), c = new RegExp(PIE_CHART_TEMPLATE_KEYS.GROUP_VALUE, "g");
|
|
9
|
-
return e.replace(a, t).replace(o, String(n)).replace(s, r).replace(c, String(i));
|
|
10
|
-
};
|
|
11
|
-
export { buildAriaLabel };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { calculatePoint } from "./calculatePoint.js";
|
|
2
|
-
import { rotationDirection } from "./rotationDirection.js";
|
|
3
|
-
import { drawSegmentPath } from "./drawSegmentPath.js";
|
|
4
|
-
const calculateSegmentPath = ({ canvasHeight: e, canvasWidth: t, customRadius: n, gap: r, halfChart: i, innerRadius: a, rotateDirection: o, singleStroke: s, startAngle: c, total: l, value: u }) => {
|
|
5
|
-
let d = i ? e * 2 : e, f = Math.min(t, d) / 2, p = n && n < f ? n : f, m = i ? Math.PI : 2 * Math.PI, h = {
|
|
6
|
-
x: t / 2,
|
|
7
|
-
y: i ? e : e / 2
|
|
8
|
-
}, g = s ? l * 2 : l, _ = u * 100 / g * m / 100, v = r / p, { carryAngle: y, finalAngle: b, initialAngle: x } = rotationDirection({
|
|
9
|
-
angleEquivalent: _,
|
|
10
|
-
direction: o,
|
|
11
|
-
gapAngle: v,
|
|
12
|
-
startAngle: c.current
|
|
13
|
-
});
|
|
14
|
-
c.current = y;
|
|
15
|
-
let S = m * u / g - v <= Math.PI ? "0" : "1", C = calculatePoint(h, a, x), w = calculatePoint(h, a, b), T = calculatePoint(h, p, x);
|
|
16
|
-
return drawSegmentPath({
|
|
17
|
-
center: h,
|
|
18
|
-
innerEnd: w,
|
|
19
|
-
innerRadius: a,
|
|
20
|
-
innerStart: C,
|
|
21
|
-
largeArcFlag: S,
|
|
22
|
-
outerEnd: calculatePoint(h, p, b),
|
|
23
|
-
outerStart: T,
|
|
24
|
-
radius: p,
|
|
25
|
-
rotateDirection: o,
|
|
26
|
-
singleStroke: s
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
export { calculateSegmentPath };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { buildL } from "./buildL.js";
|
|
2
|
-
import { RotateDirection } from "./rotationDirection.js";
|
|
3
|
-
const drawSegmentPath = ({ center: e, innerEnd: t, innerRadius: n, innerStart: r, largeArcFlag: i, outerEnd: a, outerStart: o, radius: s, rotateDirection: c, singleStroke: l }) => {
|
|
4
|
-
let u, d, f, p, m, h, g, _, v, y;
|
|
5
|
-
return c === RotateDirection.CLOCKWISE ? (u = `M ${o.x},${o.y}`, d = `A ${s},${s} 0 ${i} 1 ${a.x}, ${a.y}`, f = buildL({
|
|
6
|
-
center: e,
|
|
7
|
-
innerEnd: t,
|
|
8
|
-
innerRadius: n,
|
|
9
|
-
singleStroke: l
|
|
10
|
-
}), p = l ? `M ${t.x},${t.y}` : void 0, m = n > 0 ? `A ${n},${n} 0 ${i} 0 ${r.x},${r.y}` : void 0, h = `M ${o.x},${o.y}`, _ = `M ${t.x},${t.y}`, g = `A ${s},${s} 0 ${i} 0 ${a.x},${a.y}`, v = `A ${n},${n} 0 ${i} 1 ${r.x},${r.y}`, y = l ? void 0 : "Z") : (u = `M ${o.x} ${o.y}`, d = `A ${s},${s} 0 ${i},0 ${a.x}, ${a.y}`, f = buildL({
|
|
11
|
-
center: e,
|
|
12
|
-
innerEnd: t,
|
|
13
|
-
innerRadius: n,
|
|
14
|
-
singleStroke: l
|
|
15
|
-
}), p = l ? `M ${t.x},${t.y}` : void 0, m = n > 0 ? `A ${n}, ${n} 0 ${i},1 ${r.x},${r.y}` : void 0, h = `M ${o.x},${o.y}`, _ = `M ${t.x},${t.y}`, g = `A ${s},${s} 0 ${i} 1 ${a.x},${a.y}`, v = `A ${n},${n} 0 ${i} 0 ${r.x},${r.y}`, y = l ? void 0 : "Z"), [
|
|
16
|
-
u,
|
|
17
|
-
d,
|
|
18
|
-
f,
|
|
19
|
-
p,
|
|
20
|
-
m,
|
|
21
|
-
y
|
|
22
|
-
].concat(l ? [
|
|
23
|
-
h,
|
|
24
|
-
g,
|
|
25
|
-
_,
|
|
26
|
-
v
|
|
27
|
-
] : []).filter(Boolean).join(" ");
|
|
28
|
-
};
|
|
29
|
-
export { drawSegmentPath };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const RotateDirection = {
|
|
2
|
-
CLOCKWISE: "CLOCKWISE",
|
|
3
|
-
COUNTER_CLOCKWISE: "COUNTER_CLOCKWISE"
|
|
4
|
-
}, rotationDirection = ({ angleEquivalent: e, direction: t, gapAngle: n, startAngle: r }) => {
|
|
5
|
-
let i = t === RotateDirection.CLOCKWISE, a = i ? r + n / 2 : r - n / 2, o = i ? r + e - n / 2 : r - e + n / 2;
|
|
6
|
-
return {
|
|
7
|
-
carryAngle: i ? r + e : r - e,
|
|
8
|
-
finalAngle: o,
|
|
9
|
-
initialAngle: a
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export { RotateDirection, rotationDirection };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const filterLineProps = (e) => {
|
|
2
|
-
let { ariaLabel: t, className: n, dataTestId: r, opacity: i, stroke: a, strokeDasharray: o, strokeDashoffset: s, strokeLinecap: c, strokeLinejoin: l, strokeOpacity: u, strokeWidth: d, style: f, tabIndex: p, transform: m, x1: h, x2: g, y1: _, y2: v } = e;
|
|
3
|
-
return {
|
|
4
|
-
ariaLabel: t,
|
|
5
|
-
className: n,
|
|
6
|
-
dataTestId: r,
|
|
7
|
-
opacity: i,
|
|
8
|
-
stroke: a,
|
|
9
|
-
strokeDasharray: o,
|
|
10
|
-
strokeDashoffset: s,
|
|
11
|
-
strokeLinecap: c,
|
|
12
|
-
strokeLinejoin: l,
|
|
13
|
-
strokeOpacity: u,
|
|
14
|
-
strokeWidth: d,
|
|
15
|
-
style: f,
|
|
16
|
-
tabIndex: p,
|
|
17
|
-
transform: m,
|
|
18
|
-
x1: h,
|
|
19
|
-
x2: g,
|
|
20
|
-
y1: _,
|
|
21
|
-
y2: v
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export { filterLineProps };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { DefaultCanvasConfig } from "../../../types/canvas.type.js";
|
|
2
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
3
|
-
import { pickCustomAttributes } from "../../../utils/pickCustomAttributes/pickCustomAttributes.js";
|
|
4
|
-
import { Line } from "../../line/line.js";
|
|
5
|
-
import { Tick } from "../../tick/tick.js";
|
|
6
|
-
import { isNear } from "../../../utils/cursorNear/isNear.js";
|
|
7
|
-
import { filterLineProps } from "../utils/filterLineProps/filterLineProps.js";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
const XAxis = ({ canvasHeight: i = DefaultCanvasConfig.height, canvasWidth: a = DefaultCanvasConfig.width, cursor: o = 0, extraSpace: s = {
|
|
10
|
-
bottom: 0,
|
|
11
|
-
left: 0,
|
|
12
|
-
right: 0,
|
|
13
|
-
top: 0
|
|
14
|
-
}, position: c = Positions.BOTTOM, showTickLines: l = !1, tickLine: u, tickLineHover: d, tickText: f, tickValues: p = [], ...m }) => /* @__PURE__ */ jsxs("g", {
|
|
15
|
-
...pickCustomAttributes(m),
|
|
16
|
-
children: [/* @__PURE__ */ jsx(Line, { ...filterLineProps(m) }), p && p.length > 0 && p.map((e, t) => {
|
|
17
|
-
let n = isNear(o, e.position) && d ? {
|
|
18
|
-
...u,
|
|
19
|
-
...d
|
|
20
|
-
} : u, r = f?.transform === "rotate" ? `rotate(-30, ${e.position}, ${f.y})` : void 0;
|
|
21
|
-
return /* @__PURE__ */ jsx(Tick, {
|
|
22
|
-
showTickLines: l,
|
|
23
|
-
tick: e,
|
|
24
|
-
tickLine: {
|
|
25
|
-
...n,
|
|
26
|
-
x1: e.position,
|
|
27
|
-
x2: e.position
|
|
28
|
-
},
|
|
29
|
-
tickText: {
|
|
30
|
-
...f,
|
|
31
|
-
transform: r,
|
|
32
|
-
x: e.position
|
|
33
|
-
}
|
|
34
|
-
}, `${t.toString()}`);
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
export { XAxis };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
2
|
-
import { pickCustomAttributes } from "../../../utils/pickCustomAttributes/pickCustomAttributes.js";
|
|
3
|
-
import { Line } from "../../line/line.js";
|
|
4
|
-
import { Tick } from "../../tick/tick.js";
|
|
5
|
-
import { isNear } from "../../../utils/cursorNear/isNear.js";
|
|
6
|
-
import { filterLineProps } from "../utils/filterLineProps/filterLineProps.js";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
const YAxis = ({ canvasWidth: i, cursor: a = 0, extraSpace: o = {
|
|
9
|
-
bottom: 0,
|
|
10
|
-
left: 0,
|
|
11
|
-
right: 0,
|
|
12
|
-
top: 0
|
|
13
|
-
}, position: s = Positions.LEFT, showTickLines: c = !0, tickLine: l, tickLineHover: u, tickText: d, tickValues: f = [], ...p }) => /* @__PURE__ */ jsxs("g", {
|
|
14
|
-
...pickCustomAttributes(p),
|
|
15
|
-
children: [/* @__PURE__ */ jsx(Line, { ...filterLineProps(p) }), f && f.length > 0 && f.map((e, t) => {
|
|
16
|
-
let n = isNear(a, e.position) && u ? {
|
|
17
|
-
...l,
|
|
18
|
-
...u
|
|
19
|
-
} : l, r = d?.transform === "rotate" ? `rotate(-30, ${d.x}, ${e.position})` : void 0;
|
|
20
|
-
return /* @__PURE__ */ jsx(Tick, {
|
|
21
|
-
showTickLines: c,
|
|
22
|
-
tick: e,
|
|
23
|
-
tickLine: {
|
|
24
|
-
...n,
|
|
25
|
-
y1: e.position,
|
|
26
|
-
y2: e.position
|
|
27
|
-
},
|
|
28
|
-
tickText: {
|
|
29
|
-
...d,
|
|
30
|
-
transform: r,
|
|
31
|
-
y: e.position
|
|
32
|
-
}
|
|
33
|
-
}, `${t.toString()}`);
|
|
34
|
-
})]
|
|
35
|
-
});
|
|
36
|
-
export { YAxis };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Path } from "../path/path2.js";
|
|
2
|
-
import { buildAriaLabel } from "./utils/accessibility.js";
|
|
3
|
-
import { buildD } from "./utils/buildD.js";
|
|
4
|
-
import { getSegments } from "./utils/getSegments.js";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
const Bar = ({ barConfig: n, currentBars: r, endRounded: i, extraSpacing: a = 0, focusConfig: o = {
|
|
7
|
-
stroke: "#0078D4",
|
|
8
|
-
strokeWidth: .2
|
|
9
|
-
}, onBlur: s, onClick: c, onFocus: l, onMouseEnter: u, onMouseLeave: d, order: f = 1, orientation: p, startRounded: m, tabIndex: h = 0, x1: g, x2: _, y1: v, y2: y, dataKey: b, xKey: x, yKey: S, xData: C, yData: w }) => {
|
|
10
|
-
let { barWidth: T, singleConfig: E } = n, D = getSegments({
|
|
11
|
-
barConfig: n,
|
|
12
|
-
orientation: p,
|
|
13
|
-
x1: g,
|
|
14
|
-
x2: _,
|
|
15
|
-
y1: v,
|
|
16
|
-
y2: y
|
|
17
|
-
}), O = (e) => {
|
|
18
|
-
u?.(e);
|
|
19
|
-
}, k = (e) => {
|
|
20
|
-
d?.(e);
|
|
21
|
-
}, A = () => {
|
|
22
|
-
c && c({});
|
|
23
|
-
};
|
|
24
|
-
return /* @__PURE__ */ jsx("g", { children: E.map(({ color: t, "aria-label": n, ...j }, M) => {
|
|
25
|
-
let [N, P] = p === "HORIZONTAL" ? D[M] : [g, _], [F, I] = p === "VERTICAL" ? D[M] : [v, y], L = buildD({
|
|
26
|
-
barWidth: T,
|
|
27
|
-
currentBars: r,
|
|
28
|
-
endRounded: M === E.length - 1 && i ? i : void 0,
|
|
29
|
-
extraSpacing: a,
|
|
30
|
-
order: f,
|
|
31
|
-
orientation: p,
|
|
32
|
-
startRounded: M === 0 && m ? m : void 0,
|
|
33
|
-
x1: N,
|
|
34
|
-
x2: P,
|
|
35
|
-
y1: F,
|
|
36
|
-
y2: I
|
|
37
|
-
});
|
|
38
|
-
return /* @__PURE__ */ jsx(Path, {
|
|
39
|
-
"aria-label": buildAriaLabel({
|
|
40
|
-
ariaLabel: n,
|
|
41
|
-
dataKey: b,
|
|
42
|
-
xKey: x,
|
|
43
|
-
yKey: S,
|
|
44
|
-
xData: C,
|
|
45
|
-
yData: w,
|
|
46
|
-
coverage: j.coverage,
|
|
47
|
-
index: M
|
|
48
|
-
}),
|
|
49
|
-
d: L,
|
|
50
|
-
fill: t,
|
|
51
|
-
focusConfig: o,
|
|
52
|
-
hoverConfig: {
|
|
53
|
-
stroke: "transparent",
|
|
54
|
-
strokeWidth: "0"
|
|
55
|
-
},
|
|
56
|
-
stroke: "transparent",
|
|
57
|
-
tabIndex: h,
|
|
58
|
-
onBlur: s,
|
|
59
|
-
onClick: c ? A : void 0,
|
|
60
|
-
onFocus: l,
|
|
61
|
-
onMouseEnter: u ? O : void 0,
|
|
62
|
-
onMouseLeave: d ? k : void 0,
|
|
63
|
-
...j
|
|
64
|
-
}, `${M.toString()}`);
|
|
65
|
-
}) });
|
|
66
|
-
};
|
|
67
|
-
export { Bar };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const BAR_TEMPLATE_KEYS = {
|
|
2
|
-
DATA_KEY: "{{dataKey}}",
|
|
3
|
-
X_KEY: "{{xKey}}",
|
|
4
|
-
Y_KEY: "{{yKey}}",
|
|
5
|
-
X_DATA: "{{xData}}",
|
|
6
|
-
Y_DATA: "{{yData}}",
|
|
7
|
-
COVERAGE: "{{coverage}}",
|
|
8
|
-
INDEX: "{{index}}"
|
|
9
|
-
}, buildAriaLabel = ({ ariaLabel: e, dataKey: t, xKey: n, yKey: r, xData: i, yData: a, coverage: o, index: s }) => {
|
|
10
|
-
if (!e) return;
|
|
11
|
-
let c = new RegExp(BAR_TEMPLATE_KEYS.DATA_KEY, "g"), l = new RegExp(BAR_TEMPLATE_KEYS.X_KEY, "g"), u = new RegExp(BAR_TEMPLATE_KEYS.Y_KEY, "g"), d = new RegExp(BAR_TEMPLATE_KEYS.X_DATA, "g"), f = new RegExp(BAR_TEMPLATE_KEYS.Y_DATA, "g"), p = new RegExp(BAR_TEMPLATE_KEYS.COVERAGE, "g"), m = new RegExp(BAR_TEMPLATE_KEYS.INDEX, "g");
|
|
12
|
-
return e.replace(c, t ?? "").replace(l, n ?? "").replace(u, r ?? "").replace(d, String(i ?? "")).replace(f, String(a ?? "")).replace(p, String(o)).replace(m, String(s));
|
|
13
|
-
};
|
|
14
|
-
export { buildAriaLabel };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { BarOrientation } from "../bar.type.js";
|
|
2
|
-
var locateFromPosition = ({ barWidth: t, currentBars: n, extraSpacing: r, order: i, orientation: a }) => {
|
|
3
|
-
let o = t / 2, s = r / 2, c = n % 2 == 0, l = c ? s : s + o, u = i - Math.ceil(n / 2), d = 0;
|
|
4
|
-
return u === 0 ? d = c ? -s : o : u < 0 ? d = a === BarOrientation.HORIZONTAL ? u * -l + t : u * l : u > 0 && (d = a === BarOrientation.HORIZONTAL ? u * -l : u * l + t), d;
|
|
5
|
-
};
|
|
6
|
-
const buildD = ({ barWidth: n, currentBars: r, endRounded: i = 0, extraSpacing: a, order: o, orientation: s, startRounded: c = 0, x1: l, x2: u, y1: d, y2: f }) => {
|
|
7
|
-
let p, m, h, g, _ = "Z", v = locateFromPosition({
|
|
8
|
-
barWidth: n,
|
|
9
|
-
currentBars: r,
|
|
10
|
-
extraSpacing: a,
|
|
11
|
-
order: o,
|
|
12
|
-
orientation: s
|
|
13
|
-
});
|
|
14
|
-
if (s === BarOrientation.HORIZONTAL) {
|
|
15
|
-
let e = l + c, t = u - i;
|
|
16
|
-
c && i ? (p = `M ${e},${d + v}`, m = `L${t},${f + v}`, h = `Q${u + i} ${f + v - n / 2}, ${t} ${f + v - n}`, g = `L${e},${d + v - n}`, _ = `Q${l - c} ${d + v - n / 2}, ${e} ${d + v}`) : c ? (p = `M ${e},${d + v}`, m = `L${u},${f + v}`, h = `L${u},${f + v - n}`, g = `L${e},${d + v - n}`, _ = `Q${l - c} ${d + v - n / 2}, ${e} ${d + v}`) : i ? (p = `M${l},${d + v}`, m = `L${t},${f + v}`, h = `Q${u + i} ${f + v - n / 2}, ${t} ${f + v - n}`, g = `L${l},${d + v - n}`) : (p = `M${l},${d + v}`, m = `L${u},${f + v}`, h = `L${u},${f + v - n}`, g = `L${l},${d + v - n}`);
|
|
17
|
-
} else {
|
|
18
|
-
let e = d - c, t = f + i;
|
|
19
|
-
c && i ? (p = `M${l + v}, ${e}`, m = `L${u + v},${t}`, h = `Q${u + v - n / 2} ${f - i}, ${u + v - n} ${t}`, g = `L${l + v - n},${e}`, _ = `Q${l + v - n / 2} ${d + c}, ${l + v} ${e}`) : c ? (p = `M${l + v}, ${e}`, m = `L${u + v},${f}`, h = `L${u + v - n},${f}`, g = `L${l + v - n},${e}`, _ = `Q${l + v - n / 2} ${d + c}, ${l + v} ${e}`) : i ? (p = `M${l + v},${d}`, m = `L${u + v},${t}`, h = `Q${u + v - n / 2} ${f - i}, ${u + v - n} ${t}`, g = `L${u + v - n},${d}`) : (p = `M${l + v},${d}`, m = `L${u + v},${f}`, h = `L${u + v - n},${f}`, g = `L${l + v - n},${d}`);
|
|
20
|
-
}
|
|
21
|
-
return `${p} ${m} ${h} ${g} ${_}`;
|
|
22
|
-
};
|
|
23
|
-
export { buildD };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BarOrientation } from "../bar.type.js";
|
|
2
|
-
var transformCoverage = (e, t) => e / 100 * t, ajustedGap = (e, t, n) => e ? t + n / 2 : t - n / 2;
|
|
3
|
-
const getSegments = ({ barConfig: r, orientation: i, x1: a, x2: o, y1: s, y2: c }) => {
|
|
4
|
-
let { gap: l = 0, singleConfig: u } = r, d = i === BarOrientation.HORIZONTAL, f = d ? a : s, p = d ? o : c, m = {
|
|
5
|
-
end: p < f,
|
|
6
|
-
start: p > f
|
|
7
|
-
};
|
|
8
|
-
return u.reduce((e, r, i) => {
|
|
9
|
-
let { coverage: a } = r, o = transformCoverage(a, p - f), s = i === 0 ? f : ajustedGap(m.start, e[i - 1][1], l), c = i + 1 === u.length ? p : ajustedGap(m.end, s + o, l);
|
|
10
|
-
return e.push([s, c]), e;
|
|
11
|
-
}, []);
|
|
12
|
-
};
|
|
13
|
-
export { getSegments };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useFocusRingData } from "../hooks/useFocusRingData.js";
|
|
2
|
-
import { composeRefs } from "../utils/composeRefs.js";
|
|
3
|
-
import { FocusRingRenderer } from "./FocusRingRenderer.js";
|
|
4
|
-
import { cloneElement, useRef } from "react";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
const FocusRingInline = ({ children: e, dataTestId: t = "focus-ring", disabled: n = !1, focusConfig: r, isFocused: i }) => {
|
|
7
|
-
let a = useRef(null), { layers: o } = useFocusRingData({
|
|
8
|
-
elementRef: a,
|
|
9
|
-
focusConfig: r,
|
|
10
|
-
isFocused: i
|
|
11
|
-
}), s = cloneElement(e, { ref: composeRefs(a, e.ref) });
|
|
12
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [i && !n && /* @__PURE__ */ jsx(FocusRingRenderer, {
|
|
13
|
-
dataTestId: t,
|
|
14
|
-
layers: o ?? void 0
|
|
15
|
-
}), s] });
|
|
16
|
-
};
|
|
17
|
-
export { FocusRingInline };
|