@kubit-ui-web/react-charts 1.11.5 → 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 +12 -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 +13 -14
- 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 -94
- 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 -33
- package/dist/esm/charts/barChart/fragments/barChartYAxis.js +0 -30
- 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,61 +0,0 @@
|
|
|
1
|
-
import { BuildError, buildError, buildSeparatorXBreakAxisError, buildSeparatorXOutOfRangeError, buildSeparatorYBreakAxisError, buildSeparatorYOutOfRangeError } from "../../../utils/buildErrors/buildErrors.js";
|
|
2
|
-
import { getPoints } from "../../../utils/getPoints/getPoints.js";
|
|
3
|
-
import { LineChartContext } from "../context/lineChartContext.js";
|
|
4
|
-
import { useContext, useEffect } from "react";
|
|
5
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
const LineChartSeparator = ({ areaSeparator: r, dataTestId: i, rightSeparator: a, topSeparator: o, xBreakAxis: s, yBreakAxis: c }) => {
|
|
7
|
-
let { addError: l, crossXAxis: u, crossYAxis: d, xAxisCoordinates: f, yAxisCoordinates: p } = useContext(LineChartContext), m = f.tickValues, h = p.tickValues, g = s === void 0 ? void 0 : typeof s == "string" ? parseFloat(s) : s, _ = c === void 0 ? void 0 : typeof c == "string" ? parseFloat(c) : c;
|
|
8
|
-
if (useEffect(() => {
|
|
9
|
-
if (s !== void 0) {
|
|
10
|
-
let e = m.map((e) => e.value);
|
|
11
|
-
if (g === void 0 || isNaN(g)) l?.("LINE_CHART_SEPARATOR_ERROR", { error: buildSeparatorXBreakAxisError(s) });
|
|
12
|
-
else {
|
|
13
|
-
let t = Math.min(...e.map((e) => typeof e == "string" ? parseFloat(e) : e)), n = Math.max(...e.map((e) => typeof e == "string" ? parseFloat(e) : e));
|
|
14
|
-
(g < t || g > n) && l?.("LINE_CHART_SEPARATOR_ERROR", { error: buildSeparatorXOutOfRangeError(g, t, n) });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
if (c !== void 0) {
|
|
18
|
-
let e = h.map((e) => e.value);
|
|
19
|
-
if (_ === void 0 || isNaN(_)) l?.("LINE_CHART_SEPARATOR_ERROR", { error: buildSeparatorYBreakAxisError(c) });
|
|
20
|
-
else {
|
|
21
|
-
let t = Math.min(...e.map((e) => typeof e == "string" ? parseFloat(e) : e)), n = Math.max(...e.map((e) => typeof e == "string" ? parseFloat(e) : e));
|
|
22
|
-
(_ < t || _ > n) && l?.("LINE_CHART_SEPARATOR_ERROR", { error: buildSeparatorYOutOfRangeError(_, t, n) });
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}, [
|
|
26
|
-
s,
|
|
27
|
-
g,
|
|
28
|
-
m,
|
|
29
|
-
c,
|
|
30
|
-
_,
|
|
31
|
-
h
|
|
32
|
-
]), !o && !a && !r) return /* @__PURE__ */ jsx(Fragment, {});
|
|
33
|
-
let v = s && getPoints(f.tickValues, [s], !0)[0], y = c && getPoints(p.tickValues, [c])[0], b = d ? p.coordinates.x1 : f.coordinates.x2, x = u ? f.coordinates.y1 : p.coordinates.y1, S = f.coordinates.x1, C = v ?? b, w = p.coordinates.y2, T = y ?? x;
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
S === C && w === T && l?.("LINE_CHART_SEPARATOR_ERROR", { error: buildError(BuildError.LINE_CHART_SEPARATOR_INVALID_COORDINATES) });
|
|
36
|
-
}, [
|
|
37
|
-
S,
|
|
38
|
-
C,
|
|
39
|
-
w,
|
|
40
|
-
T
|
|
41
|
-
]);
|
|
42
|
-
let E = `M${S} ${w} H ${C} V ${T} H ${S} Z`, D = `M${S} ${T} H ${C}`, O = `M${C} ${w} V ${T}`;
|
|
43
|
-
return /* @__PURE__ */ jsxs("g", { children: [
|
|
44
|
-
/* @__PURE__ */ jsx("path", {
|
|
45
|
-
d: E,
|
|
46
|
-
"data-testid": `${i}Area`,
|
|
47
|
-
...r
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ jsx("path", {
|
|
50
|
-
d: D,
|
|
51
|
-
"data-testid": `${i}Top`,
|
|
52
|
-
...o
|
|
53
|
-
}),
|
|
54
|
-
/* @__PURE__ */ jsx("path", {
|
|
55
|
-
d: O,
|
|
56
|
-
"data-testid": `${i}Right`,
|
|
57
|
-
...a
|
|
58
|
-
})
|
|
59
|
-
] });
|
|
60
|
-
};
|
|
61
|
-
export { LineChartSeparator };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
2
|
-
import { pickCustomAttributes } from "../../../utils/pickCustomAttributes/pickCustomAttributes.js";
|
|
3
|
-
import { XAxis } from "../../../components/axisChart/xAxis/xAxis.js";
|
|
4
|
-
import { TickDataUtils } from "../../../components/tick/tick.types.js";
|
|
5
|
-
import { getTickTextYCoordinate } from "../../../utils/getTickTextCoordinate/getTickTextCoordinates.js";
|
|
6
|
-
import { LineChartContext } from "../context/lineChartContext.js";
|
|
7
|
-
import { useContext } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
const LineChartXAxis = ({ ariaLabel: t, position: n = Positions.BOTTOM, tickLine: r, tickText: i, valueFormatter: a = (e) => e, ...o }) => {
|
|
10
|
-
let { xAxisCoordinates: { coordinates: s, tickValues: c }, xCursor: l, ...u } = useContext(LineChartContext), d = getTickTextYCoordinate(n, s.y1, Number(i?.fontSize), i?.top ?? 0), f = i ? TickDataUtils.formatTicksValues(c, a) : void 0, p = pickCustomAttributes(o), m = t || o["aria-label"], h = {
|
|
11
|
-
...o,
|
|
12
|
-
...p,
|
|
13
|
-
...m && { "aria-label": m }
|
|
14
|
-
};
|
|
15
|
-
return /* @__PURE__ */ jsx(XAxis, {
|
|
16
|
-
...s,
|
|
17
|
-
...h,
|
|
18
|
-
canvasHeight: Number(u.canvasHeight),
|
|
19
|
-
canvasWidth: Number(u.canvasWidth),
|
|
20
|
-
cursor: l,
|
|
21
|
-
dataTestId: `${u.dataTestId}xAxis`,
|
|
22
|
-
tickLine: {
|
|
23
|
-
...r,
|
|
24
|
-
y1: u.yAxisCoordinates.coordinates.y1,
|
|
25
|
-
y2: u.yAxisCoordinates.coordinates.y2
|
|
26
|
-
},
|
|
27
|
-
tickText: {
|
|
28
|
-
...i,
|
|
29
|
-
y: d
|
|
30
|
-
},
|
|
31
|
-
tickValues: f
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
export { LineChartXAxis };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
2
|
-
import { pickCustomAttributes } from "../../../utils/pickCustomAttributes/pickCustomAttributes.js";
|
|
3
|
-
import { TickDataUtils } from "../../../components/tick/tick.types.js";
|
|
4
|
-
import { YAxis } from "../../../components/axisChart/yAxis/yAxis.js";
|
|
5
|
-
import { LineChartContext } from "../context/lineChartContext.js";
|
|
6
|
-
import { getYAxisTextXCoordinate } from "../utils/tickTextPosition.js";
|
|
7
|
-
import { useContext } from "react";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
const LineChartYAxis = ({ ariaLabel: t, position: n = Positions.LEFT, tickLine: r, tickText: i, valueFormatter: a = (e) => e, ...o }) => {
|
|
10
|
-
let { yAxisCoordinates: { coordinates: s, tickValues: c }, yCursor: l, ...u } = useContext(LineChartContext), d = getYAxisTextXCoordinate({
|
|
11
|
-
tickText: i,
|
|
12
|
-
yAxisPosition: n,
|
|
13
|
-
textWidth: u.yAxisText,
|
|
14
|
-
yAxisX1: s.x1
|
|
15
|
-
}), f = i ? TickDataUtils.formatTicksValues(c, a) : void 0, p = pickCustomAttributes(o), m = t || o["aria-label"], h = {
|
|
16
|
-
...o,
|
|
17
|
-
...p,
|
|
18
|
-
...m && { "aria-label": m }
|
|
19
|
-
};
|
|
20
|
-
return /* @__PURE__ */ jsx(YAxis, {
|
|
21
|
-
...s,
|
|
22
|
-
...h,
|
|
23
|
-
canvasHeight: Number(u.canvasHeight),
|
|
24
|
-
canvasWidth: Number(u.canvasWidth),
|
|
25
|
-
cursor: l,
|
|
26
|
-
dataTestId: `${u.dataTestId}yAxis`,
|
|
27
|
-
tickLine: {
|
|
28
|
-
...r,
|
|
29
|
-
x1: u.xAxisCoordinates.coordinates.x1,
|
|
30
|
-
x2: u.xAxisCoordinates.coordinates.x2
|
|
31
|
-
},
|
|
32
|
-
tickText: {
|
|
33
|
-
...i,
|
|
34
|
-
x: d
|
|
35
|
-
},
|
|
36
|
-
tickValues: f
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
export { LineChartYAxis };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useEffect, useImperativeHandle, useRef } from "react";
|
|
2
|
-
const useAutoClick = (t) => {
|
|
3
|
-
let n = useRef(!1), r = useRef(null);
|
|
4
|
-
useImperativeHandle(t, () => r.current, []);
|
|
5
|
-
let i = (e) => {
|
|
6
|
-
n.current = !!e.autoClick;
|
|
7
|
-
};
|
|
8
|
-
return useEffect(() => {
|
|
9
|
-
if (!r.current) return;
|
|
10
|
-
let e = r.current;
|
|
11
|
-
return e.addEventListener("click", i), () => e.removeEventListener("click", i);
|
|
12
|
-
}, []), [r, n];
|
|
13
|
-
};
|
|
14
|
-
export { useAutoClick };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from "react";
|
|
2
|
-
var outRange = -Infinity;
|
|
3
|
-
const useHover = ({ canvasHeight: r, canvasWidth: i }) => {
|
|
4
|
-
let [[a, o], s] = useState([outRange, outRange]), c = useCallback((e, t) => {
|
|
5
|
-
let { height: n, left: a, top: o, width: c } = t.getBoundingClientRect(), l = e.clientX - a, u = e.clientY - o;
|
|
6
|
-
s([l * i / c, u * r / n]);
|
|
7
|
-
}, [i, r]), l = (e) => {
|
|
8
|
-
e.preventDefault();
|
|
9
|
-
};
|
|
10
|
-
return {
|
|
11
|
-
svgRef: useCallback((e) => {
|
|
12
|
-
e && (e.addEventListener("touchstart", l), e.addEventListener("touchmove", (t) => c(t.touches[0], e)), e.addEventListener("mousemove", (t) => c(t, e))), e?.removeEventListener("touchstart", l), e?.removeEventListener("touchmove", (t) => c(t.touches[0], e)), e?.removeEventListener("mousemove", (t) => c(t, e));
|
|
13
|
-
}, [r, i]),
|
|
14
|
-
xCursor: a,
|
|
15
|
-
yCursor: o
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export { useHover };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useEffect, useRef } from "react";
|
|
2
|
-
const useIndicator = (n, r) => {
|
|
3
|
-
let i = useRef(null), a = useRef(null);
|
|
4
|
-
return useEffect(() => {
|
|
5
|
-
if (!r || !i.current || !a.current) return;
|
|
6
|
-
let e = i.current, t = a.current, o = e.getTotalLength(), s = 0, c = o, l, u;
|
|
7
|
-
for (; c - s > .01;) l = (s + c) / 2, u = e.getPointAtLength(l), u.x < n ? s = l : c = l;
|
|
8
|
-
let d = e.getPointAtLength(c);
|
|
9
|
-
t.setAttribute("transform", `translate(${d.x}, ${d.y})`), t.setAttribute("pointer-events", "none");
|
|
10
|
-
}, [n]), {
|
|
11
|
-
indicatorRef: a,
|
|
12
|
-
pathRef: i
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export { useIndicator };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lineChart.js';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LineChartPath } from "./fragments/lineChartPath2.js";
|
|
2
|
-
import { LineChartSeparator } from "./fragments/lineChartSeparator.js";
|
|
3
|
-
import { LineChartXAxis } from "./fragments/lineChartXAxis.js";
|
|
4
|
-
import { LineChartYAxis } from "./fragments/lineChartYAxis.js";
|
|
5
|
-
import { LineChartStructure } from "./lineChartStructure.js";
|
|
6
|
-
var LineChart = Object.assign(LineChartStructure, {
|
|
7
|
-
Path: LineChartPath,
|
|
8
|
-
Separator: LineChartSeparator,
|
|
9
|
-
XAxis: LineChartXAxis,
|
|
10
|
-
YAxis: LineChartYAxis
|
|
11
|
-
});
|
|
12
|
-
export { LineChart };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { SvgContainer } from "../../components/svgContainer/svgContainer.js";
|
|
2
|
-
import { useId } from "../../hooks/useId/useId.js";
|
|
3
|
-
import { useResponsiveCanvas } from "../../hooks/useResponsiveCanvas/useResponsiveCanvas.js";
|
|
4
|
-
import { DefaultCanvasConfig } from "../../types/canvas.type.js";
|
|
5
|
-
import { createErrorAccumulator } from "../../utils/createErrorAccumulator/createErrorAccumulator.js";
|
|
6
|
-
import { getDataFingerprint } from "../../utils/getDataFingerprint/getDataFingerprint.js";
|
|
7
|
-
import { useHover } from "./hook/useHover.js";
|
|
8
|
-
import { LineChartContext } from "./context/lineChartContext.js";
|
|
9
|
-
import { LineChartXAxis } from "./fragments/lineChartXAxis.js";
|
|
10
|
-
import { LineChartYAxis } from "./fragments/lineChartYAxis.js";
|
|
11
|
-
import { getChildrenAttr } from "../../utils/getChildrenAttr/getChildrenAttr.js";
|
|
12
|
-
import { buildLineContextValue } from "./context/buildLineContextValue.js";
|
|
13
|
-
import { Children, useEffect, useMemo, useState } from "react";
|
|
14
|
-
import { jsx } from "react/jsx-runtime";
|
|
15
|
-
const LineChartStructure = ({ ariaHidden: n, ariaLabel: r, canvasConfig: i = DefaultCanvasConfig, caption: a, children: o, classNames: s, data: c, dataTestId: l = "line-chart", getPathArea: u, height: d = "100%", onErrors: f, role: p, tabIndex: m, width: h = "100%", xKey: g, ..._ }) => {
|
|
16
|
-
let v = useId(l), [y, b] = useState(""), { parsedCanvas: x, parsedCanvasExtraSpace: S, viewBox: C } = useResponsiveCanvas({
|
|
17
|
-
canvasConfig: i,
|
|
18
|
-
dataTestId: v,
|
|
19
|
-
height: d,
|
|
20
|
-
width: h
|
|
21
|
-
}), w = [/* @__PURE__ */ jsx(LineChartXAxis, {}, "default-x-axis"), /* @__PURE__ */ jsx(LineChartYAxis, {}, "default-y-axis")], T = Children.toArray(o) || [], E = w.concat(T);
|
|
22
|
-
getChildrenAttr({
|
|
23
|
-
attrName: "dataKey",
|
|
24
|
-
children: E,
|
|
25
|
-
originalValue: y,
|
|
26
|
-
updateValue: b
|
|
27
|
-
});
|
|
28
|
-
let D = useMemo(() => createErrorAccumulator(f), [f]), O = getDataFingerprint(c), k = useMemo(() => (D.clearErrors(), buildLineContextValue({
|
|
29
|
-
addError: (e, t) => {
|
|
30
|
-
D.addError(e, t);
|
|
31
|
-
},
|
|
32
|
-
canvasHeight: x.height,
|
|
33
|
-
canvasWidth: x.width,
|
|
34
|
-
children: E,
|
|
35
|
-
data: c,
|
|
36
|
-
viewBox: C,
|
|
37
|
-
xKey: g
|
|
38
|
-
})), [
|
|
39
|
-
x.width,
|
|
40
|
-
x.height,
|
|
41
|
-
O,
|
|
42
|
-
g,
|
|
43
|
-
y,
|
|
44
|
-
D.addError
|
|
45
|
-
]), { svgRef: A, xCursor: j, yCursor: M } = useHover({
|
|
46
|
-
canvasHeight: x.height,
|
|
47
|
-
canvasWidth: x.width
|
|
48
|
-
});
|
|
49
|
-
return useEffect(() => {
|
|
50
|
-
u?.({
|
|
51
|
-
x1: k.xAxisCoordinates.coordinates.x1,
|
|
52
|
-
y1: k.yAxisCoordinates.coordinates.y1,
|
|
53
|
-
x2: k.xAxisCoordinates.coordinates.x2,
|
|
54
|
-
y2: k.yAxisCoordinates.coordinates.y2
|
|
55
|
-
});
|
|
56
|
-
}, [
|
|
57
|
-
k.xAxisCoordinates.coordinates.x1,
|
|
58
|
-
k.yAxisCoordinates.coordinates.y1,
|
|
59
|
-
k.xAxisCoordinates.coordinates.x2,
|
|
60
|
-
k.yAxisCoordinates.coordinates.y2,
|
|
61
|
-
u
|
|
62
|
-
]), /* @__PURE__ */ jsx(SvgContainer, {
|
|
63
|
-
ref: A,
|
|
64
|
-
ariaHidden: n,
|
|
65
|
-
ariaLabel: r,
|
|
66
|
-
caption: a,
|
|
67
|
-
className: s,
|
|
68
|
-
"data-kbt-svg": !0,
|
|
69
|
-
dataTestId: v,
|
|
70
|
-
height: d,
|
|
71
|
-
role: p,
|
|
72
|
-
tabIndex: m,
|
|
73
|
-
viewBox: C,
|
|
74
|
-
width: h,
|
|
75
|
-
..._,
|
|
76
|
-
children: /* @__PURE__ */ jsx(LineChartContext.Provider, {
|
|
77
|
-
value: {
|
|
78
|
-
...k,
|
|
79
|
-
canvasExtraSpace: S,
|
|
80
|
-
canvasHeight: x.height,
|
|
81
|
-
canvasWidth: x.width,
|
|
82
|
-
data: c,
|
|
83
|
-
dataTestId: v,
|
|
84
|
-
xCursor: j,
|
|
85
|
-
xKey: g,
|
|
86
|
-
yCursor: M
|
|
87
|
-
},
|
|
88
|
-
children: o
|
|
89
|
-
})
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
export { LineChartStructure };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const TEMPLATE_KEYS = {
|
|
2
|
-
DATA_KEY: "{{dataKey}}",
|
|
3
|
-
INDEX: "{{index}}",
|
|
4
|
-
X_VALUE: "{{xValue}}",
|
|
5
|
-
Y_VALUE: "{{yValue}}"
|
|
6
|
-
};
|
|
7
|
-
var extractValuesFromDataPoint = (e, t) => ({
|
|
8
|
-
xValue: e && t.xKey ? e[t.xKey]?.toString() ?? "" : "",
|
|
9
|
-
yValue: e && t.dataKey ? e[t.dataKey]?.toString() ?? "" : ""
|
|
10
|
-
}), replaceTemplatePlaceholders = (t, n, r, i) => {
|
|
11
|
-
let a = t;
|
|
12
|
-
return n.dataKey !== void 0 && (a = a.replace(new RegExp(TEMPLATE_KEYS.DATA_KEY, "g"), n.dataKey)), a = a.replace(new RegExp(TEMPLATE_KEYS.X_VALUE, "g"), r), a = a.replace(new RegExp(TEMPLATE_KEYS.Y_VALUE, "g"), i), n.index !== void 0 && (a = a.replace(new RegExp(TEMPLATE_KEYS.INDEX, "g"), (n.index + 1).toString())), a;
|
|
13
|
-
};
|
|
14
|
-
const processAccessibilityTemplate = (e, r, i) => {
|
|
15
|
-
if (!e) return;
|
|
16
|
-
let a = i ?? r.dataValue, { xValue: o, yValue: s } = extractValuesFromDataPoint(Array.isArray(a) ? a[r.index] : void 0, r);
|
|
17
|
-
return replaceTemplatePlaceholders(e, r, o, s);
|
|
18
|
-
};
|
|
19
|
-
export { processAccessibilityTemplate };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const findSurroundingNumber = (e, t) => {
|
|
2
|
-
let n = 0, r = !1;
|
|
3
|
-
for (let i = 0; i < e.length; i++) if (Math.round(e[i]) === Math.round(t)) {
|
|
4
|
-
r = !0, n = i;
|
|
5
|
-
break;
|
|
6
|
-
}
|
|
7
|
-
return {
|
|
8
|
-
idx: n,
|
|
9
|
-
match: r
|
|
10
|
-
};
|
|
11
|
-
}, findClosestNumber = (e, t) => {
|
|
12
|
-
let n = 0, r = Math.abs(e[0] - t);
|
|
13
|
-
for (let i = 1; i < e.length; i++) {
|
|
14
|
-
let a = Math.abs(e[i] - t);
|
|
15
|
-
a < r && (n = i, r = a);
|
|
16
|
-
}
|
|
17
|
-
return n;
|
|
18
|
-
};
|
|
19
|
-
export { findClosestNumber, findSurroundingNumber };
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
2
|
-
const getXCoordinates = ({ lineChartXPosition: e, lineChartYPosition: t, canvasHeight: n, canvasWidth: r, customBreakAxis: i, xAxisLeftSpacing: a, xAxisTopSpacing: o, xAxisRightSpacing: s, xAxisBottomSpacing: c, yAxisLeftSpacing: l, yAxisTopSpacing: u, yAxisRightSpacing: d, yAxisBottomSpacing: f }) => {
|
|
3
|
-
let p = t === Positions.LEFT ? Math.max(l, a) : 0, m = t === Positions.RIGHT ? r - Math.max(d, s) : r;
|
|
4
|
-
return e === Positions.TOP ? {
|
|
5
|
-
x1: p,
|
|
6
|
-
x2: m,
|
|
7
|
-
y1: Math.max(u, o),
|
|
8
|
-
y2: Math.max(u, o)
|
|
9
|
-
} : e === Positions.CENTER ? {
|
|
10
|
-
x1: p,
|
|
11
|
-
x2: m,
|
|
12
|
-
y1: n / 2,
|
|
13
|
-
y2: n / 2
|
|
14
|
-
} : e === Positions.CUSTOM ? {
|
|
15
|
-
x1: p,
|
|
16
|
-
x2: m,
|
|
17
|
-
y1: i,
|
|
18
|
-
y2: i
|
|
19
|
-
} : {
|
|
20
|
-
x1: p,
|
|
21
|
-
x2: m,
|
|
22
|
-
y1: n - Math.max(f, c),
|
|
23
|
-
y2: n - Math.max(f, c)
|
|
24
|
-
};
|
|
25
|
-
}, getYCoordinates = ({ lineChartXPosition: e, lineChartYPosition: t, canvasHeight: n, canvasWidth: r, customBreakAxis: i, xAxisLeftSpacing: a, xAxisTopSpacing: o, xAxisRightSpacing: s, xAxisBottomSpacing: c, yAxisLeftSpacing: l, yAxisTopSpacing: u, yAxisRightSpacing: d, yAxisBottomSpacing: f }) => {
|
|
26
|
-
let p = e === Positions.TOP ? Math.max(u, o) : 0, m = e === Positions.BOTTOM ? n - Math.max(f, c) : n;
|
|
27
|
-
return t === Positions.RIGHT ? {
|
|
28
|
-
x1: r - Math.max(d, s),
|
|
29
|
-
x2: r - Math.max(d, s),
|
|
30
|
-
y1: p,
|
|
31
|
-
y2: m
|
|
32
|
-
} : t === Positions.CENTER ? {
|
|
33
|
-
x1: r / 2,
|
|
34
|
-
x2: r / 2,
|
|
35
|
-
y1: p,
|
|
36
|
-
y2: m
|
|
37
|
-
} : t === Positions.CUSTOM ? {
|
|
38
|
-
x1: i,
|
|
39
|
-
x2: i,
|
|
40
|
-
y1: p,
|
|
41
|
-
y2: m
|
|
42
|
-
} : {
|
|
43
|
-
x1: Math.max(l, a),
|
|
44
|
-
x2: Math.max(l, a),
|
|
45
|
-
y1: p,
|
|
46
|
-
y2: m
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export { getXCoordinates, getYCoordinates };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const getDataValues = (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(), t.toString()];
|
|
6
|
-
let i = [];
|
|
7
|
-
for (let e = n; e <= t; e += r) i.push(e.toString());
|
|
8
|
-
return i;
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
export { getDataValues };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
2
|
-
import { buildTickValues } from "../../../utils/buildTickValues/buildTickValues.js";
|
|
3
|
-
import { textBound } from "../../../utils/textBound/textBound.js";
|
|
4
|
-
import { LineChartXAxis } from "../fragments/lineChartXAxis.js";
|
|
5
|
-
import { getXAxisLeftTextSpacing, getXAxisRightTextSpacing, getYAxisLeftTextSpacing, getYAxisRightTextSpacing } from "./tickTextPosition.js";
|
|
6
|
-
import { LineChartYAxis } from "../fragments/lineChartYAxis.js";
|
|
7
|
-
import { getDataValues } from "./getDataValues.js";
|
|
8
|
-
import { getYKeyRoundMaxValue } from "./getRoundedMaxValue.js";
|
|
9
|
-
import { Children, isValidElement } from "react";
|
|
10
|
-
var getBreakAxis = ({ tickValues: e, tickText: t }) => e?.numeric ? e.numeric.breakAxis ?? 0 : t?.custom?.breakAxis ?? 0, handleLineChartXAxis = (t, r, o, s, c, u) => {
|
|
11
|
-
let { position: d = Positions.BOTTOM, tickText: f, tickValues: p, valueFormatter: m } = t.props, h = f?.fontSize ?? 0, g = p ? getDataValues(p) : r.map((e) => e[o]), _ = m ? g.map(m) : g, v = textBound({
|
|
12
|
-
bound: "width",
|
|
13
|
-
data: _,
|
|
14
|
-
fontSize: h,
|
|
15
|
-
svgHeight: `${c}`,
|
|
16
|
-
svgWidth: `${u}`,
|
|
17
|
-
viewBox: s
|
|
18
|
-
}), y = textBound({
|
|
19
|
-
bound: "height",
|
|
20
|
-
data: _,
|
|
21
|
-
fontSize: h,
|
|
22
|
-
svgHeight: `${c}`,
|
|
23
|
-
svgWidth: `${u}`,
|
|
24
|
-
viewBox: s
|
|
25
|
-
}), b = d === Positions.BOTTOM ? y + (f?.top ?? 0) : 0, x = d === Positions.TOP ? y + (f?.bottom ?? 0) : 0, S = getBreakAxis({
|
|
26
|
-
tickValues: p,
|
|
27
|
-
tickText: f
|
|
28
|
-
});
|
|
29
|
-
return {
|
|
30
|
-
xAxisLeftSpacing: getXAxisLeftTextSpacing({
|
|
31
|
-
textWidth: v,
|
|
32
|
-
tickText: f
|
|
33
|
-
}),
|
|
34
|
-
xAxisTopSpacing: x,
|
|
35
|
-
xAxisRightSpacing: getXAxisRightTextSpacing({
|
|
36
|
-
textWidth: v,
|
|
37
|
-
tickText: f
|
|
38
|
-
}),
|
|
39
|
-
xAxisBottomSpacing: b,
|
|
40
|
-
lineChartXPosition: d,
|
|
41
|
-
xBreakAxis: S,
|
|
42
|
-
xData: g
|
|
43
|
-
};
|
|
44
|
-
}, handleLineChartYAxis = (r, i, a, c, d, f) => {
|
|
45
|
-
let { position: p = Positions.LEFT, tickText: m, tickValues: h, valueFormatter: g } = r.props, _ = m?.fontSize ?? 0, v = getDataValues(h || buildTickValues([...new Set(getYKeyRoundMaxValue(i, a))])), y = g ? v.map(g) : v, b = textBound({
|
|
46
|
-
bound: "width",
|
|
47
|
-
data: y,
|
|
48
|
-
fontSize: _,
|
|
49
|
-
svgHeight: `${d}`,
|
|
50
|
-
svgWidth: `${f}`,
|
|
51
|
-
viewBox: c
|
|
52
|
-
}), x = textBound({
|
|
53
|
-
bound: "height",
|
|
54
|
-
data: y,
|
|
55
|
-
fontSize: _,
|
|
56
|
-
svgHeight: `${d}`,
|
|
57
|
-
svgWidth: `${f}`,
|
|
58
|
-
viewBox: c
|
|
59
|
-
});
|
|
60
|
-
return {
|
|
61
|
-
yAxisLeftSpacing: getYAxisLeftTextSpacing({
|
|
62
|
-
tickText: m,
|
|
63
|
-
textWidth: b,
|
|
64
|
-
yAxisPosition: p
|
|
65
|
-
}),
|
|
66
|
-
yAxisTopSpacing: x,
|
|
67
|
-
yAxisRightSpacing: getYAxisRightTextSpacing({
|
|
68
|
-
tickText: m,
|
|
69
|
-
textWidth: b,
|
|
70
|
-
yAxisPosition: p
|
|
71
|
-
}),
|
|
72
|
-
yAxisBottomSpacing: 0,
|
|
73
|
-
lineChartYPosition: p,
|
|
74
|
-
yAxisText: b,
|
|
75
|
-
yBreakAxis: getBreakAxis({
|
|
76
|
-
tickValues: h,
|
|
77
|
-
tickText: m
|
|
78
|
-
}),
|
|
79
|
-
yData: v
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
const getExtraSpacing = ({ canvasHeight: t, canvasWidth: n, children: i, data: a, viewBox: o, xKey: s }) => {
|
|
83
|
-
let l = {
|
|
84
|
-
xAxisLeftSpacing: 0,
|
|
85
|
-
xAxisTopSpacing: 0,
|
|
86
|
-
xAxisRightSpacing: 0,
|
|
87
|
-
xAxisBottomSpacing: 0,
|
|
88
|
-
yAxisLeftSpacing: 0,
|
|
89
|
-
yAxisTopSpacing: 0,
|
|
90
|
-
yAxisRightSpacing: 0,
|
|
91
|
-
yAxisBottomSpacing: 0,
|
|
92
|
-
lineChartXPosition: Positions.BOTTOM,
|
|
93
|
-
lineChartYPosition: Positions.LEFT,
|
|
94
|
-
xAxisText: 0,
|
|
95
|
-
xBreakAxis: 0,
|
|
96
|
-
xData: [],
|
|
97
|
-
yAxisText: 0,
|
|
98
|
-
yBreakAxis: 0,
|
|
99
|
-
yData: []
|
|
100
|
-
};
|
|
101
|
-
return Children.forEach(i, (e) => {
|
|
102
|
-
isValidElement(e) && (e.type === LineChartXAxis ? l = {
|
|
103
|
-
...l,
|
|
104
|
-
...handleLineChartXAxis(e, a, s, o, t, n)
|
|
105
|
-
} : e.type === LineChartYAxis && (l = {
|
|
106
|
-
...l,
|
|
107
|
-
...handleLineChartYAxis(e, a, s, o, t, n)
|
|
108
|
-
}));
|
|
109
|
-
}), l;
|
|
110
|
-
};
|
|
111
|
-
export { getExtraSpacing };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const getPathData = ({ curved: e = !1, extendToBottom: t = !1, points: n, svgHeight: r }) => {
|
|
2
|
-
if (n.length === 0) return "";
|
|
3
|
-
let [i, ...a] = n, o = `M ${i[0]} ${i[1]}`;
|
|
4
|
-
return e ? o += a.reduce((e, t, r) => {
|
|
5
|
-
let [i, a] = n[r], [o, s] = t, c = (o - i) * .3, l = [i + c, a], u = [o - c, s];
|
|
6
|
-
return `${e} C ${l[0]} ${l[1]}, ${u[0]} ${u[1]}, ${o} ${s}`;
|
|
7
|
-
}, "") : o += a.reduce((e, t) => `${e} L ${t[0]} ${t[1]}`, ""), t && (o += ` L ${a[a.length - 1][0]} ${r} L ${i[0]} ${r} Z`), o;
|
|
8
|
-
};
|
|
9
|
-
export { getPathData };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var addXProjection = (e, t) => {
|
|
2
|
-
if (!t) return e;
|
|
3
|
-
let n = t < 0, r = e * Math.abs(t) / 100;
|
|
4
|
-
return n ? e - r : e + r;
|
|
5
|
-
}, addYProjection = (e, t, n) => {
|
|
6
|
-
if (!n) return e;
|
|
7
|
-
let r = n < 0, i = (e === 0 ? t : e) * Math.abs(n) / 100;
|
|
8
|
-
return r ? e + i : e - i;
|
|
9
|
-
};
|
|
10
|
-
const getProjection = ({ curved: n, lowerProjection: r, points: i, svgHeight: a, upperProjection: o }) => {
|
|
11
|
-
if (i.length === 0 && !(o || r)) return { shapePath: "" };
|
|
12
|
-
let [s, ...c] = i, l = `M ${s[0]} ${s[1]}`, u = l, d = o ? l : void 0, f = r ? l : void 0, p = [], m = [];
|
|
13
|
-
c.forEach(([n, i]) => {
|
|
14
|
-
let s = o ? [addXProjection(n, o.x), addYProjection(i, a, o.y)] : [n, i], c = r ? [addXProjection(n, -(r.x ?? 0)), addYProjection(i, a, -(r.y ?? 0))] : [n, i];
|
|
15
|
-
p.push(s), m.push(c);
|
|
16
|
-
});
|
|
17
|
-
let h = o && r ? [
|
|
18
|
-
...p,
|
|
19
|
-
c.at(-1),
|
|
20
|
-
...m.reverse(),
|
|
21
|
-
s
|
|
22
|
-
] : [
|
|
23
|
-
...p,
|
|
24
|
-
...m.reverse(),
|
|
25
|
-
s
|
|
26
|
-
];
|
|
27
|
-
return n ? (u += h.reduce((e, t, n) => {
|
|
28
|
-
let [r, i] = n === 0 ? s : h[n - 1], [a, o] = t, c = (a - r) * .3, l = [r + c, i], u = [a - c, o];
|
|
29
|
-
return `${e} C ${l[0]} ${l[1]}, ${u[0]} ${u[1]}, ${a} ${o}`;
|
|
30
|
-
}, ""), d && (d += p.reduce((e, t, n) => {
|
|
31
|
-
let [r, i] = n === 0 ? s : p[n - 1], [a, o] = t, c = (a - r) * .3, l = [r + c, i], u = [a - c, o];
|
|
32
|
-
return `${e} C ${l[0]} ${l[1]}, ${u[0]} ${u[1]}, ${a} ${o}`;
|
|
33
|
-
}, "")), f && (f += m.reverse().reduce((e, t, n) => {
|
|
34
|
-
let [r, i] = n === 0 ? s : m[n - 1], [a, o] = t, c = (a - r) * .3, l = [r + c, i], u = [a - c, o];
|
|
35
|
-
return `${e} C ${l[0]} ${l[1]}, ${u[0]} ${u[1]}, ${a} ${o}`;
|
|
36
|
-
}, ""))) : (u += h.reduce((e, t) => `${e} L ${t?.[0]} ${t?.[1]}`, ""), d && (d += p.reduce((e, t) => `${e} L ${t[0]} ${t[1]}`, "")), f && (f += m.reverse().reduce((e, t) => `${e} L ${t[0]} ${t[1]}`, ""))), {
|
|
37
|
-
downPath: f,
|
|
38
|
-
shapePath: u,
|
|
39
|
-
upPath: d
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export { getProjection };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const getXTicks = ({ tickValues: e, maxSpaceAvailable: t, xAxisLeftSpacing: n, xAxisRightSpacing: r, yAxisLeftSpacing: i, yAxisRightSpacing: a }) => {
|
|
2
|
-
let o = Math.max(i, n), s = t - Math.max(r, a);
|
|
3
|
-
if (e.length <= 1) return [{
|
|
4
|
-
position: o,
|
|
5
|
-
value: e[0]
|
|
6
|
-
}];
|
|
7
|
-
let c = (s - o) / (e.length - 1);
|
|
8
|
-
return e.map((e, t) => ({
|
|
9
|
-
position: o + c * t,
|
|
10
|
-
value: e
|
|
11
|
-
}));
|
|
12
|
-
}, getYTicks = ({ maxSpaceAvailable: e, tickValues: t, xAxisTopSpacing: n, xAxisBottomSpacing: r, yAxisTopSpacing: i, yAxisBottomSpacing: a }) => {
|
|
13
|
-
let o = e - Math.max(r, a), s = Math.max(i, n);
|
|
14
|
-
if (t.length <= 1) return [{
|
|
15
|
-
position: o,
|
|
16
|
-
value: t[0]
|
|
17
|
-
}];
|
|
18
|
-
let c = (o - s) / (t.length - 1);
|
|
19
|
-
return t.map((e, t) => ({
|
|
20
|
-
position: o - c * t,
|
|
21
|
-
value: e
|
|
22
|
-
}));
|
|
23
|
-
};
|
|
24
|
-
export { getXTicks, getYTicks };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const handleNodesFocus = ({ data: e, getNodeFocusInfo: t, nodes: n, ref: r }) => {
|
|
2
|
-
let i, a = r.querySelector("[data-draw]"), o = (r) => {
|
|
3
|
-
let a;
|
|
4
|
-
r.key === "ArrowRight" ? a = i === void 0 || i === n.length - 1 ? 0 : i + 1 : r.key === "ArrowLeft" && (a = i === void 0 || i === 0 ? n.length - 1 : i - 1), a !== void 0 && (i = a, n[i] && (n[i].focus(), t?.(e[i])));
|
|
5
|
-
}, s = () => {
|
|
6
|
-
i = void 0;
|
|
7
|
-
};
|
|
8
|
-
return {
|
|
9
|
-
mount: () => {
|
|
10
|
-
a?.addEventListener("focus", s), r.addEventListener("keydown", (e) => o(e));
|
|
11
|
-
},
|
|
12
|
-
unmount: () => {
|
|
13
|
-
a?.removeEventListener("focus", s), r.removeEventListener("keydown", (e) => o(e));
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export { handleNodesFocus };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../../types/position.enum.js";
|
|
2
|
-
import { getTickTextXCoordinate } from "../../../utils/getTickTextCoordinate/getTickTextCoordinates.js";
|
|
3
|
-
import { ajustedTextSpace } from "../../../utils/ajustedTextSpace/ajustedTextSpace.js";
|
|
4
|
-
const getYAxisTextXCoordinate = ({ tickText: r, yAxisPosition: i, textWidth: a, yAxisX1: o }) => {
|
|
5
|
-
if (r?.useAxisAsOrigin) {
|
|
6
|
-
let e = o;
|
|
7
|
-
return e += r.right ?? 0, e -= r.left ?? 0, e;
|
|
8
|
-
}
|
|
9
|
-
let s = r?.textAnchor || "middle", c = 0;
|
|
10
|
-
return i === Positions.RIGHT ? c = r?.right ?? 0 : i === Positions.LEFT && (c = r?.left ?? 0), getTickTextXCoordinate(i, o, ajustedTextSpace(s, a, c));
|
|
11
|
-
}, getYAxisLeftTextSpacing = ({ tickText: t, textWidth: n, yAxisPosition: r }) => {
|
|
12
|
-
if (r !== Positions.LEFT) return 0;
|
|
13
|
-
if (t?.useAxisAsOrigin) {
|
|
14
|
-
let { textAnchor: e = "start" } = t, r = 0;
|
|
15
|
-
return e === "end" && (r = n), e === "middle" && (r = n / 2), r += t.left ?? 0, r -= t.right ?? 0, Math.max(0, r);
|
|
16
|
-
}
|
|
17
|
-
let i = t?.textAnchor, a = t?.left ?? 0;
|
|
18
|
-
return i === "start" ? 0 : i === "middle" ? n + a : i === "end" ? 2 * n + a : n / 2 + a;
|
|
19
|
-
}, getYAxisRightTextSpacing = ({ tickText: t, textWidth: n, yAxisPosition: r }) => {
|
|
20
|
-
if (r !== Positions.RIGHT) return 0;
|
|
21
|
-
if (t?.useAxisAsOrigin) {
|
|
22
|
-
let { textAnchor: e = "start" } = t, r = n;
|
|
23
|
-
return e === "end" && (r = 0), e === "middle" && (r = n / 2), r -= t.left ?? 0, r += t.right ?? 0, Math.max(0, r);
|
|
24
|
-
}
|
|
25
|
-
let i = t?.textAnchor, a = t?.right ?? 0;
|
|
26
|
-
return i === "start" ? n : i === "middle" || i === "end" ? n + a : 2 * n - n / 2 + a;
|
|
27
|
-
}, getXAxisLeftTextSpacing = ({ tickText: e, textWidth: t }) => {
|
|
28
|
-
let n = e?.textAnchor ?? "start";
|
|
29
|
-
return n === "start" ? 0 : n === "middle" ? t / 2 : t;
|
|
30
|
-
}, getXAxisRightTextSpacing = ({ tickText: e, textWidth: t }) => {
|
|
31
|
-
let n = e?.textAnchor ?? "start";
|
|
32
|
-
return n === "end" ? 0 : n === "middle" ? t / 2 : t;
|
|
33
|
-
};
|
|
34
|
-
export { getXAxisLeftTextSpacing, getXAxisRightTextSpacing, getYAxisLeftTextSpacing, getYAxisRightTextSpacing, getYAxisTextXCoordinate };
|