@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,32 +0,0 @@
|
|
|
1
|
-
import { BarChartContext } from "../context/barChartContext.js";
|
|
2
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
3
|
-
import { CHART_SPACING_DEFAULTS } from "../../constants/chartDefaults.js";
|
|
4
|
-
import { XAxis } from "../../../components/axisChart/xAxis/xAxis.js";
|
|
5
|
-
import { getTickTextYCoordinate } from "../../../utils/getTickTextCoordinate/getTickTextCoordinates.js";
|
|
6
|
-
import { useContext } from "react";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
const BarChartXAxis = ({ position: e = Positions.BOTTOM, tickLine: t, tickText: n, ...r }) => {
|
|
9
|
-
let { xAxisCoordinates: { coordinates: i, tickValues: a }, ...o } = useContext(BarChartContext), s = getTickTextYCoordinate(e, i.y1, Number(n?.fontSize), n?.top ?? CHART_SPACING_DEFAULTS.DEFAULT_SPACE), c = o.extraSpaceTopY, l = Number(o.canvasHeight) - o.extraSpaceBottomY;
|
|
10
|
-
return /* @__PURE__ */ jsx(XAxis, {
|
|
11
|
-
...i,
|
|
12
|
-
...r,
|
|
13
|
-
canvasHeight: Number(o.canvasHeight),
|
|
14
|
-
canvasWidth: Number(o.canvasWidth),
|
|
15
|
-
dataTestId: `${o.dataTestId}xAxis`,
|
|
16
|
-
extraSpace: {
|
|
17
|
-
left: o.extraSpaceLeftX,
|
|
18
|
-
right: o.extraSpaceRightX
|
|
19
|
-
},
|
|
20
|
-
tickLine: {
|
|
21
|
-
...t,
|
|
22
|
-
y1: c,
|
|
23
|
-
y2: l
|
|
24
|
-
},
|
|
25
|
-
tickText: {
|
|
26
|
-
...n,
|
|
27
|
-
y: s
|
|
28
|
-
},
|
|
29
|
-
tickValues: n ? a : void 0
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
export { BarChartXAxis };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { BarChartContext } from "../context/barChartContext.js";
|
|
2
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
3
|
-
import { CHART_SPACING_DEFAULTS } from "../../constants/chartDefaults.js";
|
|
4
|
-
import { getTickTextXCoordinate } from "../../../utils/getTickTextCoordinate/getTickTextCoordinates.js";
|
|
5
|
-
import { YAxis } from "../../../components/axisChart/yAxis/yAxis.js";
|
|
6
|
-
import { ajustedTextSpace } from "../../../utils/ajustedTextSpace/ajustedTextSpace.js";
|
|
7
|
-
import { useContext } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
const BarChartYAxis = ({ position: e = Positions.LEFT, tickLine: t, tickText: n, ...r }) => {
|
|
10
|
-
let { yAxisCoordinates: { coordinates: i, tickValues: a }, ...o } = useContext(BarChartContext), s = ajustedTextSpace(n?.textAnchor || "middle", o.yAxisText, (e === Positions.RIGHT ? n?.right : n?.left) ?? CHART_SPACING_DEFAULTS.DEFAULT_SPACE), c = getTickTextXCoordinate(e, i.x1, s);
|
|
11
|
-
return /* @__PURE__ */ jsx(YAxis, {
|
|
12
|
-
...i,
|
|
13
|
-
...r,
|
|
14
|
-
canvasHeight: Number(o.canvasHeight),
|
|
15
|
-
canvasWidth: Number(o.canvasWidth),
|
|
16
|
-
dataTestId: `${o.dataTestId}yAxis`,
|
|
17
|
-
tickLine: {
|
|
18
|
-
...t,
|
|
19
|
-
x1: o.extraSpaceLeftX,
|
|
20
|
-
x2: Number(o.canvasWidth) - o.extraSpaceRightX
|
|
21
|
-
},
|
|
22
|
-
tickText: {
|
|
23
|
-
...n,
|
|
24
|
-
x: c
|
|
25
|
-
},
|
|
26
|
-
tickValues: n ? a : void 0
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
export { BarChartYAxis };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './barChart.js';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BarChartPath } from "../fragments/barChartPath.js";
|
|
2
|
-
import { Children, isValidElement } from "react";
|
|
3
|
-
const countBarChildren = (t) => {
|
|
4
|
-
let n = 0;
|
|
5
|
-
return Children.toArray(t).forEach((e) => {
|
|
6
|
-
isValidElement(e) && e.type === BarChartPath && e.props.order > n && (n = e.props.order);
|
|
7
|
-
}), n;
|
|
8
|
-
};
|
|
9
|
-
export { countBarChildren };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { BarOrientation } from "../../../components/bar/bar.type.js";
|
|
2
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
3
|
-
import { BarChartPath } from "../fragments/barChartPath.js";
|
|
4
|
-
import { buildTickValues } from "../../../utils/buildTickValues/buildTickValues.js";
|
|
5
|
-
import { textBound } from "../../../utils/textBound/textBound.js";
|
|
6
|
-
import { BarChartXAxis } from "../fragments/barChartXAxis.js";
|
|
7
|
-
import { BarChartYAxis } from "../fragments/barChartYAxis.js";
|
|
8
|
-
import { getBarDataValues } from "./getBarDataValue.js";
|
|
9
|
-
import { getBarKeyRoundMaxValue } from "./getRoundedBarMaxValue.js";
|
|
10
|
-
import { Children, isValidElement } from "react";
|
|
11
|
-
var handleBarChartXAxis = (e, n, r, a, o, c, l, u) => {
|
|
12
|
-
let { position: d, tickText: f, tickValues: p } = e.props, m = f?.fontSize ?? 0, h = m * a, g = p ? getBarDataValues(p) : n.map((e) => e[r]), _ = textBound({
|
|
13
|
-
bound: "width",
|
|
14
|
-
data: g,
|
|
15
|
-
fontSize: m,
|
|
16
|
-
svgHeight: `${l}`,
|
|
17
|
-
svgWidth: `${u}`,
|
|
18
|
-
viewBox: c
|
|
19
|
-
}), v = o > _ ? o : _, y = d === Positions.BOTTOM ? h + (f?.top ?? 0) : 0, b = d === Positions.TOP ? h + (f?.bottom ?? 0) : 0;
|
|
20
|
-
return {
|
|
21
|
-
barChartXPosition: d || Positions.BOTTOM,
|
|
22
|
-
extraSpaceBottomY: y,
|
|
23
|
-
extraSpaceTopY: b,
|
|
24
|
-
securityXSpace: v,
|
|
25
|
-
xBreakAxis: p?.numeric ? p.numeric.breakAxis ?? 0 : f?.custom?.breakAxis ?? 0,
|
|
26
|
-
xData: g
|
|
27
|
-
};
|
|
28
|
-
}, handleBarChartYAxis = (e, n, a, o, l, u, d, f) => {
|
|
29
|
-
let { position: p, tickText: m, tickValues: h } = e.props, g = m?.fontSize ?? 0, _ = g * o, v = getBarDataValues(h || buildTickValues([...new Set(getBarKeyRoundMaxValue(n, a))])), y = l > _ ? l : _, b = textBound({
|
|
30
|
-
bound: "width",
|
|
31
|
-
data: v,
|
|
32
|
-
fontSize: g,
|
|
33
|
-
svgHeight: `${d}`,
|
|
34
|
-
svgWidth: `${f}`,
|
|
35
|
-
viewBox: u
|
|
36
|
-
}), x = p === Positions.LEFT ? b + (m?.right ?? 0) : 0, S = p === Positions.RIGHT ? b + (m?.left ?? 0) : 0;
|
|
37
|
-
return {
|
|
38
|
-
barChartYPosition: p || Positions.LEFT,
|
|
39
|
-
extraSpaceLeftX: x,
|
|
40
|
-
extraSpaceRightX: S,
|
|
41
|
-
securityYSpace: y,
|
|
42
|
-
yAxisText: b,
|
|
43
|
-
yBreakAxis: h?.numeric ? h.numeric.breakAxis ?? 0 : m?.custom?.breakAxis ?? 0,
|
|
44
|
-
yData: v
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
const getAxisExtraSpacing = ({ ajustedX: r, ajustedY: i, canvasHeight: s, canvasWidth: c, children: p, data: m, gapBetweenBars: h, orientation: g, pKey: _, viewBox: v }) => {
|
|
48
|
-
let y = {
|
|
49
|
-
barChartXPosition: Positions.BOTTOM,
|
|
50
|
-
barChartYPosition: Positions.LEFT,
|
|
51
|
-
extraSpaceBottomY: 0,
|
|
52
|
-
extraSpaceLeftX: 0,
|
|
53
|
-
extraSpaceRightX: 0,
|
|
54
|
-
extraSpaceTopY: 0,
|
|
55
|
-
securityXSpace: 0,
|
|
56
|
-
securityYSpace: 0,
|
|
57
|
-
xAxisText: 0,
|
|
58
|
-
xBreakAxis: 0,
|
|
59
|
-
xData: [],
|
|
60
|
-
yAxisText: 0,
|
|
61
|
-
yBreakAxis: 0,
|
|
62
|
-
yData: []
|
|
63
|
-
}, b = h, x = [];
|
|
64
|
-
return Children.forEach(p, (t) => {
|
|
65
|
-
if (isValidElement(t)) {
|
|
66
|
-
if (t.type === BarChartPath && !x.includes(t.props.order) && (x.push(t.props.order), b += t.props.barConfig.barWidth ?? 0), t.type === BarChartXAxis) {
|
|
67
|
-
let n = g === BarOrientation.VERTICAL ? b : 0;
|
|
68
|
-
y = {
|
|
69
|
-
...y,
|
|
70
|
-
...handleBarChartXAxis(t, m, _, r, n, v, s, c)
|
|
71
|
-
};
|
|
72
|
-
} else if (t.type === BarChartYAxis) {
|
|
73
|
-
let n = g === BarOrientation.HORIZONTAL ? b : 0;
|
|
74
|
-
y = {
|
|
75
|
-
...y,
|
|
76
|
-
...handleBarChartYAxis(t, m, _, i, n, v, s, c)
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}), y;
|
|
81
|
-
};
|
|
82
|
-
export { getAxisExtraSpacing };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const getBarDataValues = (e) => {
|
|
2
|
-
if (e.custom) return e.custom?.values;
|
|
3
|
-
if (e.numeric) {
|
|
4
|
-
let { max: t, min: n = 0, step: r } = e.numeric;
|
|
5
|
-
if (r >= Math.abs(t - n) || r <= 0) return [n.toString()];
|
|
6
|
-
let i = [];
|
|
7
|
-
for (let e = n; e <= t; e += r) i.push(e.toString());
|
|
8
|
-
return i;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export { getBarDataValues };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const CHART_CANVAS_DEFAULTS = {
|
|
2
|
-
SAFE_HEIGHT: 100,
|
|
3
|
-
SAFE_WIDTH: 100
|
|
4
|
-
}, AXIS_VALIDATION = {
|
|
5
|
-
MIN_TICK_COUNT: 2,
|
|
6
|
-
UNIQUE_VALUE_THRESHOLD: 1
|
|
7
|
-
}, CHART_SPACING_DEFAULTS = { DEFAULT_SPACE: 0 }, BREAK_AXIS_DEFAULTS = { DEFAULT_BREAK_VALUE: 0 }, SHARED_FALLBACK_DATA = {
|
|
8
|
-
FALLBACK_PKEY_FIRST: "0",
|
|
9
|
-
FALLBACK_PKEY_SECOND: "1"
|
|
10
|
-
}, BAR_CHART_DEFAULTS = { BAR_WIDTH: 20 }, BAR_CHART_FALLBACK_DATA = {
|
|
11
|
-
DEFAULT_X_VALUE: 0,
|
|
12
|
-
FALLBACK_SECONDARY_KEY: "fallbackData"
|
|
13
|
-
}, LINE_CHART_FALLBACK_DATA = {
|
|
14
|
-
FALLBACK_X_FIRST: "0",
|
|
15
|
-
FALLBACK_X_SECOND: "1",
|
|
16
|
-
FALLBACK_Y_FIRST: 0,
|
|
17
|
-
FALLBACK_Y_SECOND: 1
|
|
18
|
-
};
|
|
19
|
-
export { AXIS_VALIDATION, BAR_CHART_DEFAULTS, BAR_CHART_FALLBACK_DATA, BREAK_AXIS_DEFAULTS, CHART_CANVAS_DEFAULTS, CHART_SPACING_DEFAULTS, LINE_CHART_FALLBACK_DATA, SHARED_FALLBACK_DATA };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CustomBackgroundChartStructure } from "./customBackgroundChartStructure.js";
|
|
2
|
-
import { CustomBackgroundChartPlot } from "./fragments/customBackgroundChartPlot.js";
|
|
3
|
-
var CustomBackgroundChart = Object.assign(CustomBackgroundChartStructure, { Plot: CustomBackgroundChartPlot });
|
|
4
|
-
export { CustomBackgroundChart };
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { SvgContainer } from "../../components/svgContainer/svgContainer.js";
|
|
2
|
-
import { useId } from "../../hooks/useId/useId.js";
|
|
3
|
-
import { createErrorAccumulator } from "../../utils/createErrorAccumulator/createErrorAccumulator.js";
|
|
4
|
-
import { CustomBackgroundChartContext } from "./context/customBackgroundChartContext.js";
|
|
5
|
-
import { useEffect, useMemo } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
const CustomBackgroundChartStructure = ({ ariaHidden: n, ariaLabel: r, backgroundUrl: i, caption: a, children: o, className: s, data: c, dataTestId: l = "custom-background-chart", height: u = "100%", onBlur: d, onClick: f, onDoubleClick: p, onErrors: m, onFocus: h, onKeyDown: g, onKeyUp: _, onMouseEnter: v, onMouseLeave: y, role: b = "img", tabIndex: x, viewBox: S, width: C = "100%", ...w }) => {
|
|
8
|
-
let T = useId(l), E = `0 0 ${S.width} ${S.height}`, D = useMemo(() => createErrorAccumulator(m), [m]);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
Object.keys(c).length === 0 && D.addError("CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR", { error: /* @__PURE__ */ Error("Data object is empty. At least one data point is required.") }), (!i || i.trim() === "") && D.addError("CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR", { error: /* @__PURE__ */ Error("backgroundUrl is required and cannot be empty.") }), (S.width <= 0 || S.height <= 0) && D.addError("CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR", { error: /* @__PURE__ */ Error(`Invalid viewBox dimensions: width=${S.width}, height=${S.height} (both must be > 0)`) });
|
|
11
|
-
}, [
|
|
12
|
-
c,
|
|
13
|
-
i,
|
|
14
|
-
S,
|
|
15
|
-
D
|
|
16
|
-
]);
|
|
17
|
-
let O = useMemo(() => ({
|
|
18
|
-
addError: (e, t) => {
|
|
19
|
-
D.addError(e, t);
|
|
20
|
-
},
|
|
21
|
-
data: c,
|
|
22
|
-
dataTestId: T,
|
|
23
|
-
viewBox: S
|
|
24
|
-
}), [
|
|
25
|
-
S,
|
|
26
|
-
c,
|
|
27
|
-
T,
|
|
28
|
-
D
|
|
29
|
-
]);
|
|
30
|
-
return /* @__PURE__ */ jsx(SvgContainer, {
|
|
31
|
-
ariaHidden: n,
|
|
32
|
-
ariaLabel: r,
|
|
33
|
-
caption: a,
|
|
34
|
-
className: s,
|
|
35
|
-
dataTestId: T,
|
|
36
|
-
height: u,
|
|
37
|
-
role: b,
|
|
38
|
-
tabIndex: x,
|
|
39
|
-
viewBox: E,
|
|
40
|
-
width: C,
|
|
41
|
-
onBlur: d,
|
|
42
|
-
onClick: f,
|
|
43
|
-
onDoubleClick: p,
|
|
44
|
-
onFocus: h,
|
|
45
|
-
onKeyDown: g,
|
|
46
|
-
onKeyUp: _,
|
|
47
|
-
onMouseEnter: v,
|
|
48
|
-
onMouseLeave: y,
|
|
49
|
-
...w,
|
|
50
|
-
children: /* @__PURE__ */ jsxs(CustomBackgroundChartContext.Provider, {
|
|
51
|
-
value: O,
|
|
52
|
-
children: [/* @__PURE__ */ jsx("image", {
|
|
53
|
-
"data-testid": `${T}-background`,
|
|
54
|
-
height: S.height,
|
|
55
|
-
href: i,
|
|
56
|
-
preserveAspectRatio: "xMidYMid meet",
|
|
57
|
-
width: S.width,
|
|
58
|
-
x: 0,
|
|
59
|
-
y: 0
|
|
60
|
-
}), /* @__PURE__ */ jsx("g", {
|
|
61
|
-
"data-testid": `${T}-plots`,
|
|
62
|
-
children: o
|
|
63
|
-
})]
|
|
64
|
-
})
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
export { CustomBackgroundChartStructure };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CustomBackgroundChartContext } from "../context/customBackgroundChartContext.js";
|
|
2
|
-
import { Plot } from "../../../components/plot/plot2.js";
|
|
3
|
-
import { buildAriaLabel, formatValue } from "../utils/accessibility.js";
|
|
4
|
-
import { useContext, useEffect, useMemo } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
const CustomBackgroundChartPlot = ({ ariaLabel: n, dataKey: r, formatAriaValue: i, ...a }) => {
|
|
7
|
-
let { addError: o, data: s, dataTestId: c, viewBox: l } = useContext(CustomBackgroundChartContext), u = useMemo(() => s[r], [s, r]);
|
|
8
|
-
useEffect(() => {
|
|
9
|
-
if (!u) {
|
|
10
|
-
o?.("CUSTOM_BACKGROUND_CHART_PLOT_ERROR", { error: /* @__PURE__ */ Error(`dataKey "${r}" not found in data object.`) });
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
let { x: e, y: t } = u;
|
|
14
|
-
(e < 0 || e > l.width || t < 0 || t > l.height) && o?.("CUSTOM_BACKGROUND_CHART_PLOT_ERROR", { error: /* @__PURE__ */ Error(`Plot "${r}" coordinates (${e}, ${t}) are outside viewBox bounds (0-${l.width}, 0-${l.height})`) });
|
|
15
|
-
}, [
|
|
16
|
-
u,
|
|
17
|
-
r,
|
|
18
|
-
o,
|
|
19
|
-
l.width,
|
|
20
|
-
l.height
|
|
21
|
-
]);
|
|
22
|
-
let d = useMemo(() => u ? buildAriaLabel({
|
|
23
|
-
ariaLabel: n,
|
|
24
|
-
dataKey: r,
|
|
25
|
-
formattedValue: i ? i(u.value) : formatValue(u.value),
|
|
26
|
-
name: u.name,
|
|
27
|
-
x: u.x,
|
|
28
|
-
y: u.y
|
|
29
|
-
}) : r, [
|
|
30
|
-
n,
|
|
31
|
-
u,
|
|
32
|
-
r,
|
|
33
|
-
i
|
|
34
|
-
]), f = useMemo(() => ({
|
|
35
|
-
x: u?.x ?? 0,
|
|
36
|
-
y: u?.y ?? 0
|
|
37
|
-
}), [u?.x, u?.y]);
|
|
38
|
-
return u ? /* @__PURE__ */ jsx(Plot, {
|
|
39
|
-
...a,
|
|
40
|
-
data: { value: u.value },
|
|
41
|
-
dataTestId: `${c}-plot-${r}`,
|
|
42
|
-
label: d,
|
|
43
|
-
position: f
|
|
44
|
-
}) : null;
|
|
45
|
-
};
|
|
46
|
-
export { CustomBackgroundChartPlot };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './customBackgroundChart.js';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const PLOT_TEMPLATE_KEYS = {
|
|
2
|
-
DATA_KEY: "{{dataKey}}",
|
|
3
|
-
NAME: "{{name}}",
|
|
4
|
-
VALUE: "{{value}}",
|
|
5
|
-
X: "{{x}}",
|
|
6
|
-
Y: "{{y}}"
|
|
7
|
-
}, DEFAULT_ARIA_LABEL_TEMPLATE = `${PLOT_TEMPLATE_KEYS.NAME}, ${PLOT_TEMPLATE_KEYS.VALUE}`;
|
|
8
|
-
var DATA_KEY_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.DATA_KEY, "g"), NAME_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.NAME, "g"), VALUE_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.VALUE, "g"), X_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.X, "g"), Y_REGEXP = new RegExp(PLOT_TEMPLATE_KEYS.Y, "g");
|
|
9
|
-
const buildAriaLabel = ({ ariaLabel: e, dataKey: t, name: n, formattedValue: r, x: i, y: a }) => {
|
|
10
|
-
let o = e ?? DEFAULT_ARIA_LABEL_TEMPLATE, s = n ?? t;
|
|
11
|
-
return o.replace(DATA_KEY_REGEXP, t).replace(NAME_REGEXP, s).replace(VALUE_REGEXP, r).replace(X_REGEXP, String(i)).replace(Y_REGEXP, String(a));
|
|
12
|
-
}, formatValue = (e) => typeof e == "number" ? e.toLocaleString() : typeof e == "string" ? e : JSON.stringify(e);
|
|
13
|
-
export { buildAriaLabel, formatValue };
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { ErrorType } from "../../../types/errors.type.js";
|
|
2
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
3
|
-
import { getPoints } from "../../../utils/getPoints/getPoints.js";
|
|
4
|
-
import { BREAK_AXIS_DEFAULTS, CHART_CANVAS_DEFAULTS, LINE_CHART_FALLBACK_DATA, SHARED_FALLBACK_DATA } from "../../constants/chartDefaults.js";
|
|
5
|
-
import { getXCoordinates, getYCoordinates } from "../utils/getCoordinates.js";
|
|
6
|
-
import { getExtraSpacing } from "../utils/getExtraSpacing.js";
|
|
7
|
-
import { getXTicks, getYTicks } from "../utils/getTicks.js";
|
|
8
|
-
import { validateCanvasDimensions, validateData, validateXCoordinates, validateXTickValues, validateYCoordinates, validateYTickValues } from "../utils/validations.js";
|
|
9
|
-
const buildLineContextValue = ({ addError: e, canvasHeight: t, canvasWidth: n, children: r, data: i, viewBox: a, xKey: o }) => {
|
|
10
|
-
let s, { error: c } = validateData({
|
|
11
|
-
data: i,
|
|
12
|
-
addError: e
|
|
13
|
-
});
|
|
14
|
-
c && (s = c);
|
|
15
|
-
let { error: l } = validateCanvasDimensions({
|
|
16
|
-
canvasWidth: n,
|
|
17
|
-
canvasHeight: t,
|
|
18
|
-
addError: e
|
|
19
|
-
});
|
|
20
|
-
l && (s = l);
|
|
21
|
-
let u = i && i.length > 0 ? i : [{
|
|
22
|
-
[o]: LINE_CHART_FALLBACK_DATA.FALLBACK_X_FIRST,
|
|
23
|
-
y: LINE_CHART_FALLBACK_DATA.FALLBACK_Y_FIRST
|
|
24
|
-
}, {
|
|
25
|
-
[o]: LINE_CHART_FALLBACK_DATA.FALLBACK_X_SECOND,
|
|
26
|
-
y: LINE_CHART_FALLBACK_DATA.FALLBACK_Y_SECOND
|
|
27
|
-
}], d = n > 0 ? n : CHART_CANVAS_DEFAULTS.SAFE_WIDTH, f = t > 0 ? t : CHART_CANVAS_DEFAULTS.SAFE_HEIGHT, { xAxisLeftSpacing: p, xAxisTopSpacing: m, xAxisRightSpacing: h, xAxisBottomSpacing: g, yAxisLeftSpacing: _, yAxisTopSpacing: v, yAxisRightSpacing: y, yAxisBottomSpacing: b, lineChartXPosition: x, lineChartYPosition: S, xAxisText: C, xBreakAxis: w, xData: T, yAxisText: E, yBreakAxis: D, yData: O } = getExtraSpacing({
|
|
28
|
-
canvasHeight: f,
|
|
29
|
-
canvasWidth: d,
|
|
30
|
-
children: r,
|
|
31
|
-
data: u,
|
|
32
|
-
viewBox: a,
|
|
33
|
-
xKey: o
|
|
34
|
-
}), k = getXTicks({
|
|
35
|
-
tickValues: T,
|
|
36
|
-
maxSpaceAvailable: d,
|
|
37
|
-
xAxisLeftSpacing: p,
|
|
38
|
-
xAxisRightSpacing: h,
|
|
39
|
-
yAxisLeftSpacing: _,
|
|
40
|
-
yAxisRightSpacing: y
|
|
41
|
-
}), { error: A } = validateXTickValues({
|
|
42
|
-
xTickValues: k,
|
|
43
|
-
addError: e
|
|
44
|
-
});
|
|
45
|
-
!s && A && (s = A);
|
|
46
|
-
let j = getYTicks({
|
|
47
|
-
maxSpaceAvailable: f,
|
|
48
|
-
tickValues: O,
|
|
49
|
-
xAxisTopSpacing: m,
|
|
50
|
-
xAxisBottomSpacing: g,
|
|
51
|
-
yAxisTopSpacing: v,
|
|
52
|
-
yAxisBottomSpacing: b
|
|
53
|
-
}), { error: M } = validateYTickValues({
|
|
54
|
-
yTickValues: j,
|
|
55
|
-
addError: e
|
|
56
|
-
});
|
|
57
|
-
!s && M && (s = M);
|
|
58
|
-
let N = x !== Positions.TOP && x !== Positions.BOTTOM, P = S !== Positions.LEFT && S !== Positions.RIGHT, F = N ? getPoints(j || [], [String(w)])[0] : BREAK_AXIS_DEFAULTS.DEFAULT_BREAK_VALUE, I = P ? getPoints(k || [], [String(D)])[0] : BREAK_AXIS_DEFAULTS.DEFAULT_BREAK_VALUE, L = getXCoordinates({
|
|
59
|
-
canvasHeight: f,
|
|
60
|
-
canvasWidth: d,
|
|
61
|
-
customBreakAxis: Number(F),
|
|
62
|
-
lineChartXPosition: x,
|
|
63
|
-
lineChartYPosition: S,
|
|
64
|
-
xAxisLeftSpacing: p,
|
|
65
|
-
xAxisTopSpacing: m,
|
|
66
|
-
xAxisRightSpacing: h,
|
|
67
|
-
xAxisBottomSpacing: g,
|
|
68
|
-
yAxisLeftSpacing: _,
|
|
69
|
-
yAxisTopSpacing: v,
|
|
70
|
-
yAxisRightSpacing: y,
|
|
71
|
-
yAxisBottomSpacing: b
|
|
72
|
-
}), R = getYCoordinates({
|
|
73
|
-
canvasHeight: f,
|
|
74
|
-
canvasWidth: d,
|
|
75
|
-
customBreakAxis: Number(I),
|
|
76
|
-
lineChartXPosition: x,
|
|
77
|
-
lineChartYPosition: S,
|
|
78
|
-
xAxisLeftSpacing: p,
|
|
79
|
-
xAxisTopSpacing: m,
|
|
80
|
-
xAxisRightSpacing: h,
|
|
81
|
-
xAxisBottomSpacing: g,
|
|
82
|
-
yAxisLeftSpacing: _,
|
|
83
|
-
yAxisTopSpacing: v,
|
|
84
|
-
yAxisRightSpacing: y,
|
|
85
|
-
yAxisBottomSpacing: b
|
|
86
|
-
}), { error: z } = validateXCoordinates({
|
|
87
|
-
xCoordinates: L,
|
|
88
|
-
addError: e
|
|
89
|
-
});
|
|
90
|
-
!s && z && (s = z);
|
|
91
|
-
let { error: B } = validateYCoordinates({
|
|
92
|
-
yCoordinates: R,
|
|
93
|
-
addError: e
|
|
94
|
-
});
|
|
95
|
-
!s && B && (s = B);
|
|
96
|
-
let V = {
|
|
97
|
-
addError: e,
|
|
98
|
-
crossXAxis: N,
|
|
99
|
-
crossYAxis: P,
|
|
100
|
-
xAxisLeftSpacing: p,
|
|
101
|
-
xAxisTopSpacing: m,
|
|
102
|
-
xAxisRightSpacing: h,
|
|
103
|
-
xAxisBottomSpacing: g,
|
|
104
|
-
yAxisLeftSpacing: _,
|
|
105
|
-
yAxisTopSpacing: v,
|
|
106
|
-
yAxisRightSpacing: y,
|
|
107
|
-
yAxisBottomSpacing: b,
|
|
108
|
-
xAxisCoordinates: {
|
|
109
|
-
coordinates: L,
|
|
110
|
-
tickValues: k || (s ? [{
|
|
111
|
-
position: BREAK_AXIS_DEFAULTS.DEFAULT_BREAK_VALUE,
|
|
112
|
-
value: LINE_CHART_FALLBACK_DATA.FALLBACK_X_FIRST
|
|
113
|
-
}, {
|
|
114
|
-
position: d,
|
|
115
|
-
value: LINE_CHART_FALLBACK_DATA.FALLBACK_X_SECOND
|
|
116
|
-
}] : [])
|
|
117
|
-
},
|
|
118
|
-
xAxisText: C,
|
|
119
|
-
yAxisCoordinates: {
|
|
120
|
-
coordinates: R,
|
|
121
|
-
tickValues: j || (s ? [{
|
|
122
|
-
position: f,
|
|
123
|
-
value: SHARED_FALLBACK_DATA.FALLBACK_PKEY_FIRST
|
|
124
|
-
}, {
|
|
125
|
-
position: BREAK_AXIS_DEFAULTS.DEFAULT_BREAK_VALUE,
|
|
126
|
-
value: SHARED_FALLBACK_DATA.FALLBACK_PKEY_SECOND
|
|
127
|
-
}] : [])
|
|
128
|
-
},
|
|
129
|
-
yAxisText: E
|
|
130
|
-
};
|
|
131
|
-
return s ? {
|
|
132
|
-
...V,
|
|
133
|
-
error: {
|
|
134
|
-
...s,
|
|
135
|
-
type: ErrorType.LINE_CHART_CONTEXT_ERROR
|
|
136
|
-
}
|
|
137
|
-
} : V;
|
|
138
|
-
};
|
|
139
|
-
export { buildLineContextValue };
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { BuildError, buildDataKeyNotFoundError, buildError } from "../../../utils/buildErrors/buildErrors.js";
|
|
2
|
-
import { getPoints } from "../../../utils/getPoints/getPoints.js";
|
|
3
|
-
import { pickCustomAttributes } from "../../../utils/pickCustomAttributes/pickCustomAttributes.js";
|
|
4
|
-
import { useIndicator } from "../hook/useIndicator.js";
|
|
5
|
-
import { Node } from "../../../components/node/node.js";
|
|
6
|
-
import { Path } from "../../../components/path/path2.js";
|
|
7
|
-
import { Line } from "../../../components/line/line.js";
|
|
8
|
-
import { LineChartContext } from "../context/lineChartContext.js";
|
|
9
|
-
import { findClosestNumber, findSurroundingNumber } from "../utils/findSurroundingNumber.js";
|
|
10
|
-
import { getPathData } from "../utils/getPathData.js";
|
|
11
|
-
import { handleNodesFocus } from "../utils/handleNodesFocus.js";
|
|
12
|
-
/* empty css */
|
|
13
|
-
import { LineChartProjection } from "./lineChartProjection.js";
|
|
14
|
-
import { useContext, useEffect, useRef } from "react";
|
|
15
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
var getAxisData = (e, t) => e.map((e) => e[t]);
|
|
17
|
-
const LineChartPath = ({ ariaLabel: i, closestClick: a, curved: o, getNodeFocusInfo: s, getNodesCoords: c, indicatorConfig: l, lineProjection: u, onClick: d, ...f }) => {
|
|
18
|
-
let { addError: p, xAxisCoordinates: m, yAxisCoordinates: h, ...g } = useContext(LineChartContext), _ = f.dataKey, v = g.data.length > 0, y = g.data[0], b = y ? Object.prototype.hasOwnProperty.call(y, _) : !1, x = g.data.length;
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
if (!_ || typeof _ != "string") {
|
|
21
|
-
p?.("LINE_CHART_PATH_ERROR", { error: buildError(BuildError.LINE_CHART_PATH_INVALID_DATAKEY) });
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (v && !b) {
|
|
25
|
-
p?.("LINE_CHART_PATH_ERROR", { error: buildDataKeyNotFoundError(_) });
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
if (o && x < 2) {
|
|
29
|
-
p?.("LINE_CHART_PATH_ERROR", { error: buildError(BuildError.LINE_CHART_PATH_INSUFFICIENT_POINTS) });
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
let r = getAxisData(g.data, _);
|
|
33
|
-
r.length > 0 && r.every((e) => e == null) && p?.("LINE_CHART_PATH_ERROR", { error: buildError(BuildError.LINE_CHART_PATH_ALL_VALUES_NULL) });
|
|
34
|
-
}, [
|
|
35
|
-
p,
|
|
36
|
-
o,
|
|
37
|
-
_,
|
|
38
|
-
x,
|
|
39
|
-
v,
|
|
40
|
-
b,
|
|
41
|
-
g.data
|
|
42
|
-
]);
|
|
43
|
-
let { indicatorRef: S, pathRef: C } = useIndicator(g.xCursor, !!l), w = !!l && g.xCursor !== -Infinity, T = useRef(null), E = useRef(null), { autoClick: D, lineIndicator: O, ...k } = l || {}, { y1: A, y2: j } = h.coordinates, { x1: M, x2: N } = m.coordinates, P = g.xCursor >= M && g.xCursor <= N, { tickValues: F } = m, { tickValues: I } = h, L = getAxisData(g.data, g.xKey), R = getAxisData(g.data, _), z = getPoints(F, L, !0), B = getPoints(I, R), V = z.map((e, t) => [e, B[t]]), H = getPathData({
|
|
44
|
-
curved: o,
|
|
45
|
-
extendToBottom: !1,
|
|
46
|
-
points: V,
|
|
47
|
-
svgHeight: h.coordinates.y2
|
|
48
|
-
}), U = getPathData({
|
|
49
|
-
curved: o,
|
|
50
|
-
extendToBottom: !!f.fill || !!f.gradient,
|
|
51
|
-
points: V,
|
|
52
|
-
svgHeight: h.coordinates.y2
|
|
53
|
-
});
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
if (!T.current?.path) return;
|
|
56
|
-
C.current = T.current.path;
|
|
57
|
-
let e = T.current.main, t = T.current.node, { mount: n, unmount: r } = handleNodesFocus({
|
|
58
|
-
data: L.map((e, t) => ({
|
|
59
|
-
x: e,
|
|
60
|
-
y: R[t]
|
|
61
|
-
})),
|
|
62
|
-
getNodeFocusInfo: s,
|
|
63
|
-
nodes: t,
|
|
64
|
-
ref: e
|
|
65
|
-
});
|
|
66
|
-
return n(), () => r();
|
|
67
|
-
}, []), useEffect(() => {
|
|
68
|
-
if (f.nodeConfig && w && D) {
|
|
69
|
-
let { idx: e, match: t } = findSurroundingNumber(z, g.xCursor);
|
|
70
|
-
if (t && e !== E.current) {
|
|
71
|
-
E.current = e;
|
|
72
|
-
let t = new MouseEvent("click", { bubbles: !0 });
|
|
73
|
-
t.autoClick = !0, T.current?.node?.[e]?.dispatchEvent(t), navigator?.vibrate?.(200);
|
|
74
|
-
} else E.current = null;
|
|
75
|
-
}
|
|
76
|
-
}, [g.xCursor]), useEffect(() => {
|
|
77
|
-
c?.(V);
|
|
78
|
-
}, [V]);
|
|
79
|
-
let W = (e) => {
|
|
80
|
-
if (d?.(e), a) {
|
|
81
|
-
let e = findClosestNumber(z, g.xCursor), t = new MouseEvent("click", { bubbles: !0 });
|
|
82
|
-
t.autoClick = !1, T.current?.node?.[e]?.dispatchEvent(t);
|
|
83
|
-
}
|
|
84
|
-
}, G = pickCustomAttributes(f), K = {
|
|
85
|
-
...f,
|
|
86
|
-
...G,
|
|
87
|
-
...i && { "aria-label": i }
|
|
88
|
-
};
|
|
89
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
90
|
-
/* @__PURE__ */ jsx(Path, {
|
|
91
|
-
ref: T,
|
|
92
|
-
d: H,
|
|
93
|
-
dFill: U,
|
|
94
|
-
dataTestId: `${g.dataTestId}path`,
|
|
95
|
-
dataValue: g.data,
|
|
96
|
-
points: V,
|
|
97
|
-
xKey: g.xKey,
|
|
98
|
-
onClick: W,
|
|
99
|
-
...K
|
|
100
|
-
}),
|
|
101
|
-
u && /* @__PURE__ */ jsx(LineChartProjection, {
|
|
102
|
-
curved: o,
|
|
103
|
-
dataKey: f.dataKey,
|
|
104
|
-
lineProjection: u,
|
|
105
|
-
points: V,
|
|
106
|
-
svgHeight: h.coordinates.y2
|
|
107
|
-
}),
|
|
108
|
-
w && /* @__PURE__ */ jsxs(Fragment, { children: [!!O && P && /* @__PURE__ */ jsx(Line, {
|
|
109
|
-
...O,
|
|
110
|
-
className: "pointer-events-none",
|
|
111
|
-
x1: g.xCursor,
|
|
112
|
-
x2: g.xCursor,
|
|
113
|
-
y1: A,
|
|
114
|
-
y2: j
|
|
115
|
-
}), /* @__PURE__ */ jsx("g", {
|
|
116
|
-
ref: S,
|
|
117
|
-
className: "pointer-events-none",
|
|
118
|
-
children: /* @__PURE__ */ jsx(Node, { ...k })
|
|
119
|
-
})] })
|
|
120
|
-
] });
|
|
121
|
-
};
|
|
122
|
-
export { LineChartPath };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { LineChartContext } from "../context/lineChartContext.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import { buildProjectionBoundsError, buildProjectionXOutOfRangeError, buildProjectionYOutOfRangeError } from "../../../utils/buildErrors/charts/buildLineChartErrors.js";
|
|
4
|
-
import { getProjection } from "../utils/getProjection.js";
|
|
5
|
-
import { useContext, useEffect } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
const LineChartProjection = ({ curved: n, lineProjection: r, points: i, svgHeight: a }) => {
|
|
8
|
-
let { addError: o } = useContext(LineChartContext), { lower: s, shapeColor: c, upper: l } = r, { xProjection: u, yProjection: d, ...f } = l || {}, { xProjection: p, yProjection: m, ...h } = s || {}, g = u || d ? {
|
|
9
|
-
x: u,
|
|
10
|
-
y: d
|
|
11
|
-
} : void 0, _ = p || m ? {
|
|
12
|
-
x: p,
|
|
13
|
-
y: m
|
|
14
|
-
} : void 0, v = g?.y, y = _?.y, b = g?.x, x = _?.x;
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (g && _) {
|
|
17
|
-
let e = v || 0, t = y || 0;
|
|
18
|
-
e >= t && o?.("LINE_CHART_PROJECTION_ERROR", { error: buildProjectionBoundsError(e, t) });
|
|
19
|
-
}
|
|
20
|
-
g && (b !== void 0 && (b < 0 || b > 100) && o?.("LINE_CHART_PROJECTION_ERROR", { error: buildProjectionXOutOfRangeError(b, !0) }), v !== void 0 && (v < 0 || v > a) && o?.("LINE_CHART_PROJECTION_ERROR", { error: buildProjectionYOutOfRangeError(v, a, !0) })), _ && (x !== void 0 && (x < 0 || x > 100) && o?.("LINE_CHART_PROJECTION_ERROR", { error: buildProjectionXOutOfRangeError(x, !1) }), y !== void 0 && (y < 0 || y > a) && o?.("LINE_CHART_PROJECTION_ERROR", { error: buildProjectionYOutOfRangeError(y, a, !1) }));
|
|
21
|
-
}, [
|
|
22
|
-
_,
|
|
23
|
-
x,
|
|
24
|
-
y,
|
|
25
|
-
a,
|
|
26
|
-
g,
|
|
27
|
-
b,
|
|
28
|
-
v
|
|
29
|
-
]);
|
|
30
|
-
let { downPath: S, shapePath: C, upPath: w } = getProjection({
|
|
31
|
-
curved: n,
|
|
32
|
-
lowerProjection: _,
|
|
33
|
-
points: i,
|
|
34
|
-
svgHeight: a,
|
|
35
|
-
upperProjection: g
|
|
36
|
-
});
|
|
37
|
-
return /* @__PURE__ */ jsxs("g", {
|
|
38
|
-
className: "pointer-events-none",
|
|
39
|
-
children: [
|
|
40
|
-
/* @__PURE__ */ jsx("path", {
|
|
41
|
-
d: C,
|
|
42
|
-
fill: c,
|
|
43
|
-
stroke: "transparent",
|
|
44
|
-
strokeWidth: "0.1"
|
|
45
|
-
}),
|
|
46
|
-
";",
|
|
47
|
-
w && /* @__PURE__ */ jsx("path", {
|
|
48
|
-
d: w,
|
|
49
|
-
...f
|
|
50
|
-
}),
|
|
51
|
-
S && /* @__PURE__ */ jsx("path", {
|
|
52
|
-
d: S,
|
|
53
|
-
...h
|
|
54
|
-
})
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
export { LineChartProjection };
|