@kubit-ui-web/react-charts 1.11.4 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +12 -18
- package/dist/cjs/assets/index.js +1 -0
- package/dist/cjs/charts/barChart/barChart.js +1 -1
- package/dist/cjs/charts/barChart/barChart.type.js +1 -0
- package/dist/cjs/charts/barChart/barChartStructure.js +1 -1
- package/dist/cjs/charts/barChart/context/barChartContext.js +1 -1
- package/dist/cjs/charts/barChart/context/buildBarContextValues.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartPath.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.js +1 -1
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.js +1 -0
- package/dist/cjs/charts/barChart/fragments/fixture/index.js +1 -0
- package/dist/cjs/charts/barChart/index.js +1 -1
- package/dist/cjs/charts/barChart/utils/countBarChildren.js +1 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js +2 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js.LICENSE.txt +1 -0
- package/dist/cjs/charts/barChart/utils/getBarDataValue.js +1 -1
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.js +1 -1
- package/dist/cjs/charts/constants/chartDefaults.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/context/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/index.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.js +1 -1
- package/dist/cjs/charts/index.js +1 -0
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.js +1 -1
- package/dist/cjs/charts/lineChart/context/index.js +1 -0
- package/dist/cjs/charts/lineChart/context/lineChartContext.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/index.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/index.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.css +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.js +1 -1
- package/dist/cjs/charts/lineChart/hook/index.js +1 -0
- package/dist/cjs/charts/lineChart/hook/useAutoClick.js +1 -1
- package/dist/cjs/charts/lineChart/hook/useHover.js +1 -1
- package/dist/cjs/charts/lineChart/hook/useIndicator.js +1 -1
- package/dist/cjs/charts/lineChart/index.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.type.js +1 -0
- package/dist/cjs/charts/lineChart/lineChartStructure.js +1 -1
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.js +1 -1
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getCoordinates.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getDataValues.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getPathData.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getProjection.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getTicks.js +1 -1
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.js +1 -1
- package/dist/cjs/charts/lineChart/utils/index.js +1 -0
- package/dist/cjs/charts/lineChart/utils/tickTextPosition.js +1 -1
- package/dist/cjs/charts/lineChart/utils/validations.js +1 -1
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +1 -1
- package/dist/cjs/charts/pieChart/context/index.js +1 -0
- package/dist/cjs/charts/pieChart/context/pieChartContext.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/index.js +1 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +1 -1
- package/dist/cjs/charts/pieChart/index.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.type.js +1 -0
- package/dist/cjs/charts/pieChart/pieChartStructure.js +1 -1
- package/dist/cjs/charts/pieChart/utils/accessibility.js +1 -1
- package/dist/cjs/charts/pieChart/utils/buildL.js +1 -1
- package/dist/cjs/charts/pieChart/utils/calculatePoint.js +1 -1
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.js +1 -1
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.js +1 -1
- package/dist/cjs/charts/pieChart/utils/index.js +1 -0
- package/dist/cjs/charts/pieChart/utils/rotationDirection.js +1 -1
- package/dist/cjs/components/axisChart/index.js +1 -0
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.js +1 -1
- package/dist/cjs/components/axisChart/utils/index.js +1 -0
- package/dist/cjs/components/axisChart/xAxis/index.js +1 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.js +1 -1
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.js +1 -0
- package/dist/cjs/components/axisChart/yAxis/index.js +1 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.js +1 -1
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.js +1 -0
- package/dist/cjs/components/bar/bar.js +1 -1
- package/dist/cjs/components/bar/bar.type.js +1 -1
- package/dist/cjs/components/bar/index.js +1 -0
- package/dist/cjs/components/bar/utils/accessibility.js +1 -1
- package/dist/cjs/components/bar/utils/buildD.js +1 -1
- package/dist/cjs/components/bar/utils/getSegments.js +1 -1
- package/dist/cjs/components/chartText/chartText.js +1 -1
- package/dist/cjs/components/chartText/chartText.types.js +1 -0
- package/dist/cjs/components/chartText/index.js +1 -0
- package/dist/cjs/components/focusRing/components/FocusRingInline.js +1 -1
- package/dist/cjs/components/focusRing/components/FocusRingRenderer.js +1 -1
- package/dist/cjs/components/focusRing/components/FocusRingSeparate.js +1 -1
- package/dist/cjs/components/focusRing/focusRing.css +1 -0
- package/dist/cjs/components/focusRing/focusRing.js +1 -0
- package/dist/cjs/components/focusRing/focusRing.types.js +1 -0
- package/dist/cjs/components/focusRing/hooks/useFocusRingData.js +1 -1
- package/dist/cjs/components/focusRing/index.js +1 -0
- package/dist/cjs/components/focusRing/utils/composeRefs.js +1 -1
- package/dist/cjs/components/focusRing/utils/createAdaptiveFocusRings.js +1 -1
- package/dist/cjs/components/focusRing/utils/createBoundingBoxFocusRings.js +1 -1
- package/dist/cjs/components/focusRing/utils/utils.types.js +1 -0
- package/dist/cjs/components/foreignObject/foreignObject.js +1 -1
- package/dist/cjs/components/foreignObject/foreignObject.types.js +1 -0
- package/dist/cjs/components/foreignObject/index.js +1 -0
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/line/index.js +1 -0
- package/dist/cjs/components/line/line.js +1 -1
- package/dist/cjs/components/line/line.types.js +1 -0
- package/dist/cjs/components/node/components/circle/circle.js +1 -1
- package/dist/cjs/components/node/components/hexagon/hexagon.js +1 -1
- package/dist/cjs/components/node/components/index.js +1 -0
- package/dist/cjs/components/node/components/pentagon/pentagon.js +1 -1
- package/dist/cjs/components/node/components/square/square.js +1 -1
- package/dist/cjs/components/node/components/star/star.js +1 -1
- package/dist/cjs/components/node/components/straight/straight.js +1 -1
- package/dist/cjs/components/node/components/triangle/triangle.js +1 -1
- package/dist/cjs/components/node/index.js +1 -0
- package/dist/cjs/components/node/node.js +1 -1
- package/dist/cjs/components/node/node.types.js +1 -1
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.js +1 -1
- package/dist/cjs/components/path/components/nodePath/nodePath.js +1 -1
- package/dist/cjs/components/path/index.js +1 -0
- package/dist/cjs/components/path/path.css +1 -0
- package/dist/cjs/components/path/path.js +1 -0
- package/dist/cjs/components/path/path.types.js +1 -0
- package/dist/cjs/components/plot/components/circle/circle.js +1 -1
- package/dist/cjs/components/plot/components/index.js +1 -0
- package/dist/cjs/components/plot/components/square/square.js +1 -1
- package/dist/cjs/components/plot/components/triangle/triangle.js +1 -1
- package/dist/cjs/components/plot/index.js +1 -0
- package/dist/cjs/components/plot/plot.css +1 -0
- package/dist/cjs/components/plot/plot.js +1 -0
- package/dist/cjs/components/plot/plot.types.js +1 -1
- package/dist/cjs/components/svgContainer/index.js +1 -0
- package/dist/cjs/components/svgContainer/svgContainer.js +1 -1
- package/dist/cjs/components/svgContainer/svgContainer.types.js +1 -0
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.js +1 -1
- package/dist/cjs/components/svgContainer/utils/index.js +1 -0
- package/dist/cjs/components/tick/index.js +1 -0
- package/dist/cjs/components/tick/tick.js +1 -1
- package/dist/cjs/components/tick/tick.types.js +1 -1
- package/dist/cjs/components/zoomArea/components/HandlerIcon.js +1 -1
- package/dist/cjs/components/zoomArea/components/LineRenderer.js +1 -1
- package/dist/cjs/components/zoomArea/components/SelectionArea.js +1 -1
- package/dist/cjs/components/zoomArea/components/ZoomHandler.js +1 -1
- package/dist/cjs/components/zoomArea/components/index.js +1 -0
- package/dist/cjs/components/zoomArea/hooks/index.js +1 -0
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomData.js +1 -1
- package/dist/cjs/components/zoomArea/index.js +1 -0
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.js +1 -1
- package/dist/cjs/components/zoomArea/utils/index.js +1 -0
- package/dist/cjs/components/zoomArea/utils/indexRounding.js +1 -1
- package/dist/cjs/components/zoomArea/utils/interactionConfig.js +1 -1
- package/dist/cjs/components/zoomArea/utils/pathGeneration.js +1 -1
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.js +1 -1
- package/dist/cjs/components/zoomArea/utils/selectionConfig.js +1 -1
- package/dist/cjs/components/zoomArea/zoomArea.js +1 -1
- package/dist/cjs/components/zoomArea/zoomArea.type.js +1 -1
- package/dist/cjs/hooks/index.js +1 -0
- package/dist/cjs/hooks/useFocus/useFocus.js +1 -1
- package/dist/cjs/hooks/useFocus/useFocus.types.js +1 -0
- package/dist/cjs/hooks/useHover/useHover.js +1 -1
- package/dist/cjs/hooks/useHover/useHover.types.js +1 -0
- package/dist/cjs/hooks/useId/index.js +1 -0
- package/dist/cjs/hooks/useId/useId.js +1 -1
- package/dist/cjs/hooks/useResponsiveCanvas/index.js +1 -0
- package/dist/cjs/hooks/useResponsiveCanvas/useResponsiveCanvas.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/storybook/components/note/note.css +1 -0
- package/dist/cjs/types/canvas.type.js +1 -1
- package/dist/cjs/types/errors.type.js +1 -1
- package/dist/cjs/types/focusConfig.type.js +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/position.enum.js +1 -1
- package/dist/cjs/types/unit.enum.js +1 -1
- package/dist/cjs/types/valueFormatter.type.js +1 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +1 -1
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.js +1 -0
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.js +1 -1
- package/dist/cjs/utils/buildErrors/buildErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildBarChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildLineChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/barChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/lineChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/index.js +1 -0
- package/dist/cjs/utils/buildTickValues/buildTickValues.js +1 -1
- package/dist/cjs/utils/classNames/classNames.js +1 -0
- package/dist/cjs/utils/createErrorAccumulator/createErrorAccumulator.js +1 -1
- package/dist/cjs/utils/createErrorAccumulator/index.js +1 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.js +1 -1
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.js +1 -0
- package/dist/cjs/utils/cursorNear/isNear.js +1 -1
- package/dist/cjs/utils/getAxisData/getAxisData.js +1 -0
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.js +1 -1
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.js +1 -1
- package/dist/cjs/utils/getCoordinates/getCoordinates.js +1 -1
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.js +1 -1
- package/dist/cjs/utils/getPoints/getPoints.js +1 -1
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.js +1 -1
- package/dist/cjs/utils/getTicks/getTicks.js +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/logger/index.js +1 -0
- package/dist/cjs/utils/logger/logger.js +1 -1
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +1 -1
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.js +1 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.js +1 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.js +1 -0
- package/dist/cjs/utils/ssr/index.js +1 -0
- package/dist/cjs/utils/ssr/ssr.js +1 -1
- package/dist/cjs/utils/textBound/textBound.js +1 -1
- package/dist/esm/assets/index.mjs +1 -0
- package/dist/esm/charts/barChart/barChart.mjs +1 -0
- package/dist/esm/charts/barChart/barChart.type.mjs +0 -0
- package/dist/esm/charts/barChart/barChartStructure.mjs +1 -0
- package/dist/esm/charts/barChart/context/barChartContext.mjs +1 -0
- package/dist/esm/charts/barChart/context/buildBarContextValues.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartPath.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartSeparator.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartXAxis.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartYAxis.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/index.mjs +1 -0
- package/dist/esm/charts/barChart/index.mjs +1 -0
- package/dist/esm/charts/barChart/utils/countBarChildren.mjs +1 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.mjs +2 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.mjs.LICENSE.txt +1 -0
- package/dist/esm/charts/barChart/utils/getBarDataValue.mjs +1 -0
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.mjs +1 -0
- package/dist/esm/charts/constants/chartDefaults.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/context/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.mjs +0 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.mjs +1 -0
- package/dist/esm/charts/index.mjs +1 -0
- package/dist/esm/charts/lineChart/context/buildLineContextValue.mjs +1 -0
- package/dist/esm/charts/lineChart/context/index.mjs +1 -0
- package/dist/esm/charts/lineChart/context/lineChartContext.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/index.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.css +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/index.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useAutoClick.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useHover.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useIndicator.mjs +1 -0
- package/dist/esm/charts/lineChart/index.mjs +1 -0
- package/dist/esm/charts/lineChart/lineChart.mjs +1 -0
- package/dist/esm/charts/lineChart/lineChart.type.mjs +0 -0
- package/dist/esm/charts/lineChart/lineChartStructure.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getCoordinates.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getDataValues.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getPathData.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getProjection.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getTicks.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/index.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/tickTextPosition.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/validations.mjs +1 -0
- package/dist/esm/charts/pieChart/context/buildPieContextValue.mjs +1 -0
- package/dist/esm/charts/pieChart/context/index.mjs +1 -0
- package/dist/esm/charts/pieChart/context/pieChartContext.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartPath.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.mjs +1 -0
- package/dist/esm/charts/pieChart/index.mjs +1 -0
- package/dist/esm/charts/pieChart/pieChart.mjs +1 -0
- package/dist/esm/charts/pieChart/pieChart.type.mjs +0 -0
- package/dist/esm/charts/pieChart/pieChartStructure.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/accessibility.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/buildL.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/calculatePoint.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/index.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/rotationDirection.mjs +1 -0
- package/dist/esm/components/axisChart/index.mjs +1 -0
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.mjs +1 -0
- package/dist/esm/components/axisChart/utils/index.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/index.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.types.mjs +0 -0
- package/dist/esm/components/axisChart/yAxis/index.mjs +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.mjs +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.types.mjs +0 -0
- package/dist/esm/components/bar/bar.mjs +1 -0
- package/dist/esm/components/bar/bar.type.mjs +1 -0
- package/dist/esm/components/bar/index.mjs +1 -0
- package/dist/esm/components/bar/utils/accessibility.mjs +1 -0
- package/dist/esm/components/bar/utils/buildD.mjs +1 -0
- package/dist/esm/components/bar/utils/getSegments.mjs +1 -0
- package/dist/esm/components/chartText/chartText.mjs +1 -0
- package/dist/esm/components/chartText/chartText.types.mjs +0 -0
- package/dist/esm/components/chartText/index.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingInline.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingRenderer.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingSeparate.mjs +1 -0
- package/dist/esm/components/focusRing/focusRing.css +1 -0
- package/dist/esm/components/focusRing/focusRing.mjs +1 -0
- package/dist/esm/components/focusRing/focusRing.types.mjs +0 -0
- package/dist/esm/components/focusRing/hooks/useFocusRingData.mjs +1 -0
- package/dist/esm/components/focusRing/index.mjs +1 -0
- package/dist/esm/components/focusRing/utils/composeRefs.mjs +1 -0
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.mjs +1 -0
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.mjs +1 -0
- package/dist/esm/components/focusRing/utils/utils.types.mjs +0 -0
- package/dist/esm/components/foreignObject/foreignObject.mjs +1 -0
- package/dist/esm/components/foreignObject/foreignObject.types.mjs +0 -0
- package/dist/esm/components/foreignObject/index.mjs +1 -0
- package/dist/esm/components/index.mjs +1 -0
- package/dist/esm/components/line/index.mjs +1 -0
- package/dist/esm/components/line/line.mjs +1 -0
- package/dist/esm/components/line/line.types.mjs +0 -0
- package/dist/esm/components/node/components/circle/circle.mjs +1 -0
- package/dist/esm/components/node/components/hexagon/hexagon.mjs +1 -0
- package/dist/esm/components/node/components/index.mjs +0 -0
- package/dist/esm/components/node/components/pentagon/pentagon.mjs +1 -0
- package/dist/esm/components/node/components/square/square.mjs +1 -0
- package/dist/esm/components/node/components/star/star.mjs +1 -0
- package/dist/esm/components/node/components/straight/straight.mjs +1 -0
- package/dist/esm/components/node/components/triangle/triangle.mjs +1 -0
- package/dist/esm/components/node/index.mjs +1 -0
- package/dist/esm/components/node/node.mjs +1 -0
- package/dist/esm/components/node/node.types.mjs +1 -0
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.mjs +1 -0
- package/dist/esm/components/path/components/nodePath/nodePath.mjs +1 -0
- package/dist/esm/components/path/index.mjs +1 -0
- package/dist/esm/components/path/path.css +1 -0
- package/dist/esm/components/path/path.mjs +1 -0
- package/dist/esm/components/path/path.types.mjs +0 -0
- package/dist/esm/components/plot/components/circle/circle.mjs +1 -0
- package/dist/esm/components/plot/components/index.mjs +1 -0
- package/dist/esm/components/plot/components/square/square.mjs +1 -0
- package/dist/esm/components/plot/components/triangle/triangle.mjs +1 -0
- package/dist/esm/components/plot/index.mjs +1 -0
- package/dist/esm/components/plot/plot.css +1 -0
- package/dist/esm/components/plot/plot.mjs +1 -0
- package/dist/esm/components/plot/plot.types.mjs +1 -0
- package/dist/esm/components/svgContainer/index.mjs +1 -0
- package/dist/esm/components/svgContainer/svgContainer.mjs +1 -0
- package/dist/esm/components/svgContainer/svgContainer.types.mjs +0 -0
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.mjs +1 -0
- package/dist/esm/components/svgContainer/utils/index.mjs +1 -0
- package/dist/esm/components/tick/index.mjs +1 -0
- package/dist/esm/components/tick/tick.mjs +1 -0
- package/dist/esm/components/tick/tick.types.mjs +1 -0
- package/dist/esm/components/zoomArea/components/HandlerIcon.mjs +1 -0
- package/dist/esm/components/zoomArea/components/LineRenderer.mjs +1 -0
- package/dist/esm/components/zoomArea/components/SelectionArea.mjs +1 -0
- package/dist/esm/components/zoomArea/components/ZoomHandler.mjs +1 -0
- package/dist/esm/components/zoomArea/components/index.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/index.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomData.mjs +1 -0
- package/dist/esm/components/zoomArea/index.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/index.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/indexRounding.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/interactionConfig.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/pathGeneration.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/selectionConfig.mjs +1 -0
- package/dist/esm/components/zoomArea/zoomArea.mjs +1 -0
- package/dist/esm/components/zoomArea/zoomArea.type.mjs +1 -0
- package/dist/esm/hooks/index.mjs +1 -0
- package/dist/esm/hooks/useFocus/useFocus.mjs +1 -0
- package/dist/esm/hooks/useFocus/useFocus.types.mjs +0 -0
- package/dist/esm/hooks/useHover/useHover.mjs +1 -0
- package/dist/esm/hooks/useHover/useHover.types.mjs +0 -0
- package/dist/esm/hooks/useId/index.mjs +1 -0
- package/dist/esm/hooks/useId/useId.mjs +1 -0
- package/dist/esm/hooks/useResponsiveCanvas/index.mjs +1 -0
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/storybook/components/note/note.css +1 -0
- package/dist/esm/types/canvas.type.mjs +1 -0
- package/dist/esm/types/errors.type.mjs +1 -0
- package/dist/esm/types/focusConfig.type.mjs +1 -0
- package/dist/esm/types/index.mjs +1 -0
- package/dist/esm/types/position.enum.mjs +1 -0
- package/dist/esm/types/unit.enum.mjs +1 -0
- package/dist/esm/types/valueFormatter.type.mjs +0 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.mjs +1 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/index.mjs +1 -0
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.mjs +1 -0
- package/dist/esm/utils/buildErrors/buildErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/index.mjs +1 -0
- package/dist/esm/utils/buildTickValues/buildTickValues.mjs +1 -0
- package/dist/esm/utils/classNames/classNames.mjs +1 -0
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.mjs +1 -0
- package/dist/esm/utils/createErrorAccumulator/index.mjs +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.mjs +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.mjs +0 -0
- package/dist/esm/utils/cursorNear/isNear.mjs +1 -0
- package/dist/esm/utils/getAxisData/getAxisData.mjs +1 -0
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.mjs +1 -0
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.mjs +1 -0
- package/dist/esm/utils/getCoordinates/getCoordinates.mjs +1 -0
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.mjs +1 -0
- package/dist/esm/utils/getPoints/getPoints.mjs +1 -0
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.mjs +1 -0
- package/dist/esm/utils/getTicks/getTicks.mjs +1 -0
- package/dist/esm/utils/index.mjs +1 -0
- package/dist/esm/utils/logger/index.mjs +1 -0
- package/dist/esm/utils/logger/logger.mjs +1 -0
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.mjs +1 -0
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.mjs +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.mjs +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.types.mjs +0 -0
- package/dist/esm/utils/ssr/index.mjs +1 -0
- package/dist/esm/utils/ssr/ssr.mjs +1 -0
- package/dist/esm/utils/textBound/textBound.mjs +1 -0
- package/dist/types/assets/index.d.ts +1 -2
- package/dist/types/assets/storybook/icons/icons.d.ts +4 -0
- package/dist/types/assets/storybook/index.d.ts +1 -0
- package/dist/types/charts/barChart/barChart.d.ts +6 -7
- package/dist/types/charts/barChart/barChart.type.d.ts +15 -13
- package/dist/types/charts/barChart/barChartStructure.d.ts +1 -2
- package/dist/types/charts/barChart/context/barChartContext.d.ts +2 -3
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts +5 -6
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts +1 -2
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts +1 -2
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts +1 -2
- package/dist/types/charts/barChart/index.d.ts +1 -2
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts +1 -2
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts +2 -3
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts +1 -2
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts +1 -2
- package/dist/types/charts/constants/chartDefaults.d.ts +0 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/context/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts +3 -4
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts +4 -5
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts +0 -1
- package/dist/types/charts/index.d.ts +4 -5
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts +4 -5
- package/dist/types/charts/lineChart/context/index.d.ts +2 -3
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts +1 -2
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts +1 -2
- package/dist/types/charts/lineChart/fragments/index.d.ts +4 -5
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +3 -3
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +3 -3
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts +1 -2
- package/dist/types/charts/lineChart/hook/index.d.ts +3 -4
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts +0 -1
- package/dist/types/charts/lineChart/hook/useHover.d.ts +0 -1
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts +0 -1
- package/dist/types/charts/lineChart/index.d.ts +1 -2
- package/dist/types/charts/lineChart/lineChart.d.ts +6 -7
- package/dist/types/charts/lineChart/lineChart.type.d.ts +19 -20
- package/dist/types/charts/lineChart/lineChartStructure.d.ts +2 -3
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getCoordinates.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getPathData.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getProjection.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getTicks.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/index.d.ts +6 -7
- package/dist/types/charts/lineChart/utils/tickTextPosition.d.ts +8 -9
- package/dist/types/charts/lineChart/utils/validations.d.ts +15 -16
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts +3 -4
- package/dist/types/charts/pieChart/context/index.d.ts +2 -3
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/index.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts +1 -2
- package/dist/types/charts/pieChart/index.d.ts +1 -2
- package/dist/types/charts/pieChart/pieChart.d.ts +4 -5
- package/dist/types/charts/pieChart/pieChart.type.d.ts +5 -6
- package/dist/types/charts/pieChart/pieChartStructure.d.ts +2 -3
- package/dist/types/charts/pieChart/utils/accessibility.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/buildL.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts +1 -2
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts +1 -2
- package/dist/types/charts/pieChart/utils/index.d.ts +2 -3
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts +0 -1
- package/dist/types/components/axisChart/index.d.ts +2 -3
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +1 -2
- package/dist/types/components/axisChart/utils/index.d.ts +1 -2
- package/dist/types/components/axisChart/xAxis/index.d.ts +2 -3
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts +2 -3
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts +6 -7
- package/dist/types/components/axisChart/yAxis/index.d.ts +2 -3
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts +2 -3
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts +5 -6
- package/dist/types/components/bar/bar.d.ts +2 -3
- package/dist/types/components/bar/bar.type.d.ts +5 -6
- package/dist/types/components/bar/index.d.ts +2 -3
- package/dist/types/components/bar/utils/accessibility.d.ts +0 -1
- package/dist/types/components/bar/utils/buildD.d.ts +2 -3
- package/dist/types/components/bar/utils/getSegments.d.ts +2 -3
- package/dist/types/components/chartText/chartText.d.ts +2 -3
- package/dist/types/components/chartText/chartText.types.d.ts +8 -9
- package/dist/types/components/chartText/index.d.ts +2 -3
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts +2 -3
- package/dist/types/components/focusRing/components/FocusRingRenderer.d.ts +1 -2
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts +2 -3
- package/dist/types/components/focusRing/focusRing.d.ts +3 -3
- package/dist/types/components/focusRing/focusRing.types.d.ts +3 -4
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts +3 -4
- package/dist/types/components/focusRing/index.d.ts +2 -3
- package/dist/types/components/focusRing/utils/composeRefs.d.ts +1 -2
- package/dist/types/components/focusRing/utils/createAdaptiveFocusRings.d.ts +2 -3
- package/dist/types/components/focusRing/utils/createBoundingBoxFocusRings.d.ts +2 -3
- package/dist/types/components/focusRing/utils/utils.types.d.ts +0 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts +2 -3
- package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -2
- package/dist/types/components/foreignObject/index.d.ts +2 -3
- package/dist/types/components/index.d.ts +11 -12
- package/dist/types/components/line/index.d.ts +2 -3
- package/dist/types/components/line/line.d.ts +2 -3
- package/dist/types/components/line/line.types.d.ts +4 -5
- package/dist/types/components/node/components/circle/circle.d.ts +2 -3
- package/dist/types/components/node/components/hexagon/hexagon.d.ts +2 -3
- package/dist/types/components/node/components/index.d.ts +0 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts +2 -3
- package/dist/types/components/node/components/square/square.d.ts +2 -3
- package/dist/types/components/node/components/star/star.d.ts +2 -3
- package/dist/types/components/node/components/straight/straight.d.ts +2 -3
- package/dist/types/components/node/components/triangle/triangle.d.ts +2 -3
- package/dist/types/components/node/index.d.ts +2 -3
- package/dist/types/components/node/node.d.ts +2 -3
- package/dist/types/components/node/node.types.d.ts +2 -3
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +0 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts +3 -4
- package/dist/types/components/path/index.d.ts +2 -3
- package/dist/types/components/path/path.d.ts +3 -3
- package/dist/types/components/path/path.types.d.ts +7 -8
- package/dist/types/components/plot/components/circle/circle.d.ts +2 -3
- package/dist/types/components/plot/components/index.d.ts +3 -4
- package/dist/types/components/plot/components/square/square.d.ts +2 -3
- package/dist/types/components/plot/components/triangle/triangle.d.ts +2 -3
- package/dist/types/components/plot/index.d.ts +2 -3
- package/dist/types/components/plot/plot.d.ts +3 -3
- package/dist/types/components/plot/plot.types.d.ts +2 -3
- package/dist/types/components/svgContainer/index.d.ts +1 -2
- package/dist/types/components/svgContainer/svgContainer.d.ts +2 -3
- package/dist/types/components/svgContainer/svgContainer.types.d.ts +1 -2
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +0 -1
- package/dist/types/components/svgContainer/utils/index.d.ts +1 -2
- package/dist/types/components/tick/index.d.ts +2 -3
- package/dist/types/components/tick/tick.d.ts +2 -3
- package/dist/types/components/tick/tick.types.d.ts +3 -4
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -2
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -2
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts +3 -4
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +3 -4
- package/dist/types/components/zoomArea/components/index.d.ts +4 -5
- package/dist/types/components/zoomArea/hooks/index.d.ts +4 -5
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts +1 -2
- package/dist/types/components/zoomArea/index.d.ts +5 -6
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/index.d.ts +3 -4
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts +0 -1
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts +1 -2
- package/dist/types/components/zoomArea/zoomArea.d.ts +1 -2
- package/dist/types/components/zoomArea/zoomArea.type.d.ts +3 -4
- package/dist/types/hooks/index.d.ts +4 -5
- package/dist/types/hooks/useFocus/useFocus.d.ts +1 -2
- package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -2
- package/dist/types/hooks/useHover/useHover.d.ts +1 -2
- package/dist/types/hooks/useHover/useHover.types.d.ts +1 -2
- package/dist/types/hooks/useId/index.d.ts +1 -2
- package/dist/types/hooks/useId/useId.d.ts +0 -1
- package/dist/types/hooks/useResponsiveCanvas/index.d.ts +1 -2
- package/dist/types/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts +1 -2
- package/dist/types/index.d.ts +3 -4
- package/dist/types/storybook/components/index.d.ts +1 -0
- package/dist/types/storybook/components/note/note.d.ts +12 -0
- package/dist/types/storybook/constants/categoryControl.d.ts +9 -0
- package/dist/types/storybook/index.d.ts +1 -0
- package/dist/types/types/canvas.type.d.ts +0 -1
- package/dist/types/types/errors.type.d.ts +0 -1
- package/dist/types/types/focusConfig.type.d.ts +1 -2
- package/dist/types/types/index.d.ts +4 -5
- package/dist/types/types/position.enum.d.ts +0 -1
- package/dist/types/types/unit.enum.d.ts +0 -1
- package/dist/types/types/valueFormatter.type.d.ts +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +2 -3
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts +1 -2
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts +0 -1
- package/dist/types/utils/buildErrors/buildErrors.d.ts +2 -3
- package/dist/types/utils/buildErrors/charts/buildBarChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/charts/buildLineChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/barChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/lineChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/index.d.ts +1 -2
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts +0 -1
- package/dist/types/utils/classNames/classNames.d.ts +0 -1
- package/dist/types/utils/createErrorAccumulator/createErrorAccumulator.d.ts +1 -2
- package/dist/types/utils/createErrorAccumulator/index.d.ts +1 -2
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +0 -1
- package/dist/types/utils/cursorNear/isNear.d.ts +0 -1
- package/dist/types/utils/getAxisData/getAxisData.d.ts +0 -1
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts +0 -1
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -2
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts +1 -2
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts +3 -4
- package/dist/types/utils/getPoints/getPoints.d.ts +1 -2
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +1 -2
- package/dist/types/utils/getTicks/getTicks.d.ts +1 -2
- package/dist/types/utils/index.d.ts +10 -11
- package/dist/types/utils/logger/index.d.ts +1 -2
- package/dist/types/utils/logger/logger.d.ts +1 -2
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +0 -1
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts +1 -2
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts +0 -1
- package/dist/types/utils/ssr/index.d.ts +1 -2
- package/dist/types/utils/ssr/ssr.d.ts +0 -1
- package/dist/types/utils/textBound/textBound.d.ts +1 -2
- package/package.json +69 -93
- package/dist/cjs/charts/lineChart/fragments/lineChartPath2.js +0 -1
- package/dist/cjs/components/focusRing/focusRing2.js +0 -1
- package/dist/cjs/components/path/path2.js +0 -1
- package/dist/cjs/components/plot/plot2.js +0 -1
- package/dist/cjs/react-charts.css +0 -2
- package/dist/esm/charts/barChart/barChart.js +0 -12
- package/dist/esm/charts/barChart/barChartStructure.js +0 -69
- package/dist/esm/charts/barChart/context/barChartContext.js +0 -3
- package/dist/esm/charts/barChart/context/buildBarContextValues.js +0 -156
- package/dist/esm/charts/barChart/fragments/barChartPath.js +0 -76
- package/dist/esm/charts/barChart/fragments/barChartSeparator.js +0 -61
- package/dist/esm/charts/barChart/fragments/barChartXAxis.js +0 -32
- package/dist/esm/charts/barChart/fragments/barChartYAxis.js +0 -29
- package/dist/esm/charts/barChart/index.js +0 -1
- package/dist/esm/charts/barChart/utils/countBarChildren.js +0 -9
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.js +0 -82
- package/dist/esm/charts/barChart/utils/getBarDataValue.js +0 -11
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.js +0 -2
- package/dist/esm/charts/constants/chartDefaults.js +0 -19
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.js +0 -3
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.js +0 -4
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.js +0 -67
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +0 -46
- package/dist/esm/charts/customBackgroundChart/index.js +0 -1
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.js +0 -13
- package/dist/esm/charts/lineChart/context/buildLineContextValue.js +0 -139
- package/dist/esm/charts/lineChart/context/lineChartContext.js +0 -3
- package/dist/esm/charts/lineChart/fragments/lineChartPath2.js +0 -122
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.js +0 -58
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.js +0 -61
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.js +0 -34
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.js +0 -39
- package/dist/esm/charts/lineChart/hook/useAutoClick.js +0 -14
- package/dist/esm/charts/lineChart/hook/useHover.js +0 -18
- package/dist/esm/charts/lineChart/hook/useIndicator.js +0 -15
- package/dist/esm/charts/lineChart/index.js +0 -1
- package/dist/esm/charts/lineChart/lineChart.js +0 -12
- package/dist/esm/charts/lineChart/lineChartStructure.js +0 -92
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.js +0 -19
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.js +0 -19
- package/dist/esm/charts/lineChart/utils/getCoordinates.js +0 -49
- package/dist/esm/charts/lineChart/utils/getDataValues.js +0 -11
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.js +0 -111
- package/dist/esm/charts/lineChart/utils/getPathData.js +0 -9
- package/dist/esm/charts/lineChart/utils/getProjection.js +0 -42
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.js +0 -2
- package/dist/esm/charts/lineChart/utils/getTicks.js +0 -24
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.js +0 -17
- package/dist/esm/charts/lineChart/utils/tickTextPosition.js +0 -34
- package/dist/esm/charts/lineChart/utils/validations.js +0 -68
- package/dist/esm/charts/pieChart/context/buildPieContextValue.js +0 -28
- package/dist/esm/charts/pieChart/context/pieChartContext.js +0 -3
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.js +0 -17
- package/dist/esm/charts/pieChart/fragments/pieChartPath.js +0 -53
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.js +0 -42
- package/dist/esm/charts/pieChart/index.js +0 -1
- package/dist/esm/charts/pieChart/pieChart.js +0 -8
- package/dist/esm/charts/pieChart/pieChartStructure.js +0 -58
- package/dist/esm/charts/pieChart/utils/accessibility.js +0 -11
- package/dist/esm/charts/pieChart/utils/buildL.js +0 -4
- package/dist/esm/charts/pieChart/utils/calculatePoint.js +0 -5
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.js +0 -29
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.js +0 -29
- package/dist/esm/charts/pieChart/utils/rotationDirection.js +0 -12
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.js +0 -24
- package/dist/esm/components/axisChart/xAxis/xAxis.js +0 -37
- package/dist/esm/components/axisChart/yAxis/yAxis.js +0 -36
- package/dist/esm/components/bar/bar.js +0 -67
- package/dist/esm/components/bar/bar.type.js +0 -5
- package/dist/esm/components/bar/utils/accessibility.js +0 -14
- package/dist/esm/components/bar/utils/buildD.js +0 -23
- package/dist/esm/components/bar/utils/getSegments.js +0 -13
- package/dist/esm/components/chartText/chartText.js +0 -7
- package/dist/esm/components/focusRing/components/FocusRingInline.js +0 -17
- package/dist/esm/components/focusRing/components/FocusRingRenderer.js +0 -14
- package/dist/esm/components/focusRing/components/FocusRingSeparate.js +0 -15
- package/dist/esm/components/focusRing/focusRing2.js +0 -18
- package/dist/esm/components/focusRing/hooks/useFocusRingData.js +0 -28
- package/dist/esm/components/focusRing/utils/composeRefs.js +0 -8
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.js +0 -75
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.js +0 -73
- package/dist/esm/components/foreignObject/foreignObject.js +0 -10
- package/dist/esm/components/line/line.js +0 -8
- package/dist/esm/components/node/components/circle/circle.js +0 -11
- package/dist/esm/components/node/components/hexagon/hexagon.js +0 -16
- package/dist/esm/components/node/components/pentagon/pentagon.js +0 -16
- package/dist/esm/components/node/components/square/square.js +0 -15
- package/dist/esm/components/node/components/star/star.js +0 -16
- package/dist/esm/components/node/components/straight/straight.js +0 -16
- package/dist/esm/components/node/components/triangle/triangle.js +0 -19
- package/dist/esm/components/node/node.js +0 -74
- package/dist/esm/components/node/node.types.js +0 -10
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.js +0 -9
- package/dist/esm/components/path/components/nodePath/nodePath.js +0 -35
- package/dist/esm/components/path/path2.js +0 -129
- package/dist/esm/components/plot/components/circle/circle.js +0 -11
- package/dist/esm/components/plot/components/square/square.js +0 -12
- package/dist/esm/components/plot/components/triangle/triangle.js +0 -12
- package/dist/esm/components/plot/plot.types.js +0 -18
- package/dist/esm/components/plot/plot2.js +0 -68
- package/dist/esm/components/svgContainer/svgContainer.js +0 -33
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.js +0 -2
- package/dist/esm/components/tick/tick.js +0 -8
- package/dist/esm/components/tick/tick.types.js +0 -5
- package/dist/esm/components/zoomArea/components/HandlerIcon.js +0 -13
- package/dist/esm/components/zoomArea/components/LineRenderer.js +0 -14
- package/dist/esm/components/zoomArea/components/SelectionArea.js +0 -36
- package/dist/esm/components/zoomArea/components/ZoomHandler.js +0 -69
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.js +0 -56
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.js +0 -70
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.js +0 -12
- package/dist/esm/components/zoomArea/hooks/useZoomData.js +0 -19
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.js +0 -17
- package/dist/esm/components/zoomArea/utils/indexRounding.js +0 -8
- package/dist/esm/components/zoomArea/utils/interactionConfig.js +0 -11
- package/dist/esm/components/zoomArea/utils/pathGeneration.js +0 -21
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.js +0 -20
- package/dist/esm/components/zoomArea/utils/selectionConfig.js +0 -15
- package/dist/esm/components/zoomArea/zoomArea.js +0 -131
- package/dist/esm/components/zoomArea/zoomArea.type.js +0 -6
- package/dist/esm/hooks/useFocus/useFocus.js +0 -14
- package/dist/esm/hooks/useHover/useHover.js +0 -14
- package/dist/esm/hooks/useId/useId.js +0 -7
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.js +0 -56
- package/dist/esm/index.js +0 -36
- package/dist/esm/react-charts.css +0 -2
- package/dist/esm/types/canvas.type.js +0 -6
- package/dist/esm/types/errors.type.js +0 -20
- package/dist/esm/types/focusConfig.type.js +0 -16
- package/dist/esm/types/position.enum.js +0 -9
- package/dist/esm/types/unit.enum.js +0 -5
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +0 -10
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.js +0 -16
- package/dist/esm/utils/buildErrors/buildErrors.js +0 -19
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +0 -19
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +0 -25
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +0 -13
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.js +0 -20
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.js +0 -26
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.js +0 -14
- package/dist/esm/utils/buildTickValues/buildTickValues.js +0 -14
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.js +0 -29
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.js +0 -35
- package/dist/esm/utils/cursorNear/isNear.js +0 -2
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.js +0 -39
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.js +0 -11
- package/dist/esm/utils/getCoordinates/getCoordinates.js +0 -43
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.js +0 -2
- package/dist/esm/utils/getPoints/getPoints.js +0 -22
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.js +0 -3
- package/dist/esm/utils/getTicks/getTicks.js +0 -14
- package/dist/esm/utils/logger/logger.js +0 -25
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +0 -10
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.js +0 -2
- package/dist/esm/utils/shadowSvg/shadowSvg.js +0 -10
- package/dist/esm/utils/ssr/ssr.js +0 -11
- package/dist/esm/utils/textBound/textBound.js +0 -18
- package/dist/types/assets/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChart.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChart.type.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChartStructure.d.ts.map +0 -1
- package/dist/types/charts/barChart/context/barChartContext.d.ts.map +0 -1
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +0 -1
- package/dist/types/charts/constants/chartDefaults.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts.map +0 -1
- package/dist/types/charts/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useHover.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts.map +0 -1
- package/dist/types/charts/lineChart/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChart.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChart.type.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChartStructure.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getCoordinates.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getPathData.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getProjection.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getTicks.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/tickTextPosition.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/validations.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts.map +0 -1
- package/dist/types/charts/pieChart/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChart.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChart.type.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChartStructure.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/accessibility.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/buildL.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts.map +0 -1
- package/dist/types/components/axisChart/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +0 -1
- package/dist/types/components/axisChart/utils/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts.map +0 -1
- package/dist/types/components/bar/bar.d.ts.map +0 -1
- package/dist/types/components/bar/bar.type.d.ts.map +0 -1
- package/dist/types/components/bar/index.d.ts.map +0 -1
- package/dist/types/components/bar/utils/accessibility.d.ts.map +0 -1
- package/dist/types/components/bar/utils/buildD.d.ts.map +0 -1
- package/dist/types/components/bar/utils/getSegments.d.ts.map +0 -1
- package/dist/types/components/chartText/chartText.d.ts.map +0 -1
- package/dist/types/components/chartText/chartText.types.d.ts.map +0 -1
- package/dist/types/components/chartText/index.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingRenderer.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts.map +0 -1
- package/dist/types/components/focusRing/focusRing.d.ts.map +0 -1
- package/dist/types/components/focusRing/focusRing.types.d.ts.map +0 -1
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts.map +0 -1
- package/dist/types/components/focusRing/index.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/composeRefs.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/createAdaptiveFocusRings.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/createBoundingBoxFocusRings.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/utils.types.d.ts.map +0 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts.map +0 -1
- package/dist/types/components/foreignObject/foreignObject.types.d.ts.map +0 -1
- package/dist/types/components/foreignObject/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/line/index.d.ts.map +0 -1
- package/dist/types/components/line/line.d.ts.map +0 -1
- package/dist/types/components/line/line.types.d.ts.map +0 -1
- package/dist/types/components/node/components/circle/circle.d.ts.map +0 -1
- package/dist/types/components/node/components/hexagon/hexagon.d.ts.map +0 -1
- package/dist/types/components/node/components/index.d.ts.map +0 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts.map +0 -1
- package/dist/types/components/node/components/square/square.d.ts.map +0 -1
- package/dist/types/components/node/components/star/star.d.ts.map +0 -1
- package/dist/types/components/node/components/straight/straight.d.ts.map +0 -1
- package/dist/types/components/node/components/triangle/triangle.d.ts.map +0 -1
- package/dist/types/components/node/index.d.ts.map +0 -1
- package/dist/types/components/node/node.d.ts.map +0 -1
- package/dist/types/components/node/node.types.d.ts.map +0 -1
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +0 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts.map +0 -1
- package/dist/types/components/path/index.d.ts.map +0 -1
- package/dist/types/components/path/path.d.ts.map +0 -1
- package/dist/types/components/path/path.types.d.ts.map +0 -1
- package/dist/types/components/plot/components/circle/circle.d.ts.map +0 -1
- package/dist/types/components/plot/components/index.d.ts.map +0 -1
- package/dist/types/components/plot/components/square/square.d.ts.map +0 -1
- package/dist/types/components/plot/components/triangle/triangle.d.ts.map +0 -1
- package/dist/types/components/plot/index.d.ts.map +0 -1
- package/dist/types/components/plot/plot.d.ts.map +0 -1
- package/dist/types/components/plot/plot.types.d.ts.map +0 -1
- package/dist/types/components/svgContainer/index.d.ts.map +0 -1
- package/dist/types/components/svgContainer/svgContainer.d.ts.map +0 -1
- package/dist/types/components/svgContainer/svgContainer.types.d.ts.map +0 -1
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +0 -1
- package/dist/types/components/svgContainer/utils/index.d.ts.map +0 -1
- package/dist/types/components/tick/index.d.ts.map +0 -1
- package/dist/types/components/tick/tick.d.ts.map +0 -1
- package/dist/types/components/tick/tick.types.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts.map +0 -1
- package/dist/types/components/zoomArea/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts.map +0 -1
- package/dist/types/components/zoomArea/zoomArea.d.ts.map +0 -1
- package/dist/types/components/zoomArea/zoomArea.type.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/useFocus/useFocus.d.ts.map +0 -1
- package/dist/types/hooks/useFocus/useFocus.types.d.ts.map +0 -1
- package/dist/types/hooks/useHover/useHover.d.ts.map +0 -1
- package/dist/types/hooks/useHover/useHover.types.d.ts.map +0 -1
- package/dist/types/hooks/useId/index.d.ts.map +0 -1
- package/dist/types/hooks/useId/useId.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveCanvas/index.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/index.d.ts +0 -2
- package/dist/types/tests/index.d.ts.map +0 -1
- package/dist/types/tests/render/render.d.ts +0 -15
- package/dist/types/tests/render/render.d.ts.map +0 -1
- package/dist/types/types/canvas.type.d.ts.map +0 -1
- package/dist/types/types/errors.type.d.ts.map +0 -1
- package/dist/types/types/focusConfig.type.d.ts.map +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/position.enum.d.ts.map +0 -1
- package/dist/types/types/unit.enum.d.ts.map +0 -1
- package/dist/types/types/valueFormatter.type.d.ts.map +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts.map +0 -1
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/buildErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildBarChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildLineChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/barChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/lineChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/index.d.ts.map +0 -1
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts.map +0 -1
- package/dist/types/utils/classNames/classNames.d.ts.map +0 -1
- package/dist/types/utils/createErrorAccumulator/createErrorAccumulator.d.ts.map +0 -1
- package/dist/types/utils/createErrorAccumulator/index.d.ts.map +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +0 -1
- package/dist/types/utils/cursorNear/isNear.d.ts.map +0 -1
- package/dist/types/utils/getAxisData/getAxisData.d.ts.map +0 -1
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +0 -1
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts.map +0 -1
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts.map +0 -1
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts.map +0 -1
- package/dist/types/utils/getPoints/getPoints.d.ts.map +0 -1
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +0 -1
- package/dist/types/utils/getTicks/getTicks.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/logger/index.d.ts.map +0 -1
- package/dist/types/utils/logger/logger.d.ts.map +0 -1
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +0 -1
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts.map +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts.map +0 -1
- package/dist/types/utils/ssr/index.d.ts.map +0 -1
- package/dist/types/utils/ssr/ssr.d.ts.map +0 -1
- package/dist/types/utils/textBound/textBound.d.ts.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from "react";
|
|
2
|
-
const useFocus = (t, n) => {
|
|
3
|
-
let [r, i] = useState(!1), a = useCallback((e) => {
|
|
4
|
-
i(!0), t?.(e);
|
|
5
|
-
}, [t]);
|
|
6
|
-
return {
|
|
7
|
-
handleBlur: useCallback((e) => {
|
|
8
|
-
i(!1), n?.(e);
|
|
9
|
-
}, [n]),
|
|
10
|
-
handleFocus: a,
|
|
11
|
-
isFocused: r
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export { useFocus };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useCallback, useState } from "react";
|
|
2
|
-
const useHover = (t, n) => {
|
|
3
|
-
let [r, i] = useState(!1);
|
|
4
|
-
return {
|
|
5
|
-
handleMouseEnter: useCallback((e) => {
|
|
6
|
-
i(!0), t?.(e);
|
|
7
|
-
}, [t]),
|
|
8
|
-
handleMouseLeave: useCallback((e) => {
|
|
9
|
-
i(!1), n?.(e);
|
|
10
|
-
}, [n]),
|
|
11
|
-
isHovered: r
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
export { useHover };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
var DEFAULT_PREFIX = "$component$", uniqueId = {}, generateUniqueId = (e) => (uniqueId[e] || (uniqueId[e] = 0), uniqueId[e]++);
|
|
3
|
-
const useId = (t) => {
|
|
4
|
-
let [n] = useState(() => generateUniqueId(t || DEFAULT_PREFIX));
|
|
5
|
-
return `${t}${n}`;
|
|
6
|
-
};
|
|
7
|
-
export { useId };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { buildViewBox } from "../../components/svgContainer/utils/buildViewBox/buildViewBox.js";
|
|
2
|
-
import { isBrowser, safeQuerySelector } from "../../utils/ssr/ssr.js";
|
|
3
|
-
import { getCanvasDimensions } from "../../utils/getCanvasDimensions/getCanvasDimensions.js";
|
|
4
|
-
import { parseStringToNumberPx } from "../../utils/parseStringToNumberPx.ts/parseStringToNumberPx.js";
|
|
5
|
-
import { useEffect, useMemo, useState } from "react";
|
|
6
|
-
const useResponsiveCanvas = ({ canvasConfig: a, dataTestId: o, extraSpace: s = 0, height: c, width: l }) => {
|
|
7
|
-
let [u, d] = useState({
|
|
8
|
-
height: 0,
|
|
9
|
-
width: 0
|
|
10
|
-
}), { extraSpace: f, height: p, width: m } = useMemo(() => a || {
|
|
11
|
-
extraSpace: s,
|
|
12
|
-
height: c,
|
|
13
|
-
width: l
|
|
14
|
-
}, [
|
|
15
|
-
a,
|
|
16
|
-
l,
|
|
17
|
-
c,
|
|
18
|
-
s
|
|
19
|
-
]), h = f ? parseStringToNumberPx(f) : void 0;
|
|
20
|
-
return useEffect(() => {
|
|
21
|
-
if (!isBrowser()) return;
|
|
22
|
-
let e = safeQuerySelector(`[data-testid="${o}"]`);
|
|
23
|
-
if (!e) return;
|
|
24
|
-
let r = () => {
|
|
25
|
-
let { parsedCanvasHeight: t, parsedCanvasWidth: n } = getCanvasDimensions({
|
|
26
|
-
canvasHeight: p,
|
|
27
|
-
canvasWidth: m,
|
|
28
|
-
svgElement: e
|
|
29
|
-
});
|
|
30
|
-
d((e) => e.height === t && e.width === n ? e : {
|
|
31
|
-
height: t,
|
|
32
|
-
width: n
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
r();
|
|
36
|
-
let i = new ResizeObserver(() => {
|
|
37
|
-
r();
|
|
38
|
-
});
|
|
39
|
-
return i.observe(e), () => {
|
|
40
|
-
i.disconnect();
|
|
41
|
-
};
|
|
42
|
-
}, [
|
|
43
|
-
m,
|
|
44
|
-
p,
|
|
45
|
-
o
|
|
46
|
-
]), {
|
|
47
|
-
parsedCanvas: u,
|
|
48
|
-
parsedCanvasExtraSpace: h,
|
|
49
|
-
viewBox: useMemo(() => buildViewBox(u.width, u.height, h), [
|
|
50
|
-
u.width,
|
|
51
|
-
u.height,
|
|
52
|
-
h
|
|
53
|
-
])
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export { useResponsiveCanvas };
|
package/dist/esm/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { SvgContainer } from "./components/svgContainer/svgContainer.js";
|
|
2
|
-
import { DefaultCanvasConfig } from "./types/canvas.type.js";
|
|
3
|
-
import { BarOrientation } from "./components/bar/bar.type.js";
|
|
4
|
-
import { ErrorType, normalizeToArray } from "./types/errors.type.js";
|
|
5
|
-
import { Positions } from "./types/position.enum.js";
|
|
6
|
-
import { FOCUS_DEFAULT, getFocusConfig } from "./types/focusConfig.type.js";
|
|
7
|
-
import { FocusRing } from "./components/focusRing/focusRing2.js";
|
|
8
|
-
import { NodeType } from "./components/node/node.types.js";
|
|
9
|
-
import { Node } from "./components/node/node.js";
|
|
10
|
-
import { Path } from "./components/path/path2.js";
|
|
11
|
-
import { Bar } from "./components/bar/bar.js";
|
|
12
|
-
import { Line } from "./components/line/line.js";
|
|
13
|
-
import { ChartText } from "./components/chartText/chartText.js";
|
|
14
|
-
import { Tick } from "./components/tick/tick.js";
|
|
15
|
-
import { XAxis } from "./components/axisChart/xAxis/xAxis.js";
|
|
16
|
-
import { YAxis } from "./components/axisChart/yAxis/yAxis.js";
|
|
17
|
-
import { BarChart } from "./charts/barChart/barChart.js";
|
|
18
|
-
import { CustomBackgroundChart } from "./charts/customBackgroundChart/customBackgroundChart.js";
|
|
19
|
-
import { TickDataUtils } from "./components/tick/tick.types.js";
|
|
20
|
-
import { LineChart } from "./charts/lineChart/lineChart.js";
|
|
21
|
-
import { ForeignObject } from "./components/foreignObject/foreignObject.js";
|
|
22
|
-
import { PieChart } from "./charts/pieChart/pieChart.js";
|
|
23
|
-
import { HandlerIcon } from "./components/zoomArea/components/HandlerIcon.js";
|
|
24
|
-
import { LineRenderer } from "./components/zoomArea/components/LineRenderer.js";
|
|
25
|
-
import { calculateHandlerPositions, clampRange, createDefaultRange, isFullRange, mouseToDataIndex } from "./components/zoomArea/utils/rangeAndPositions.js";
|
|
26
|
-
import { SelectionArea } from "./components/zoomArea/components/SelectionArea.js";
|
|
27
|
-
import { ZoomHandler } from "./components/zoomArea/components/ZoomHandler.js";
|
|
28
|
-
import { ZoomAreaElements } from "./components/zoomArea/zoomArea.type.js";
|
|
29
|
-
import { useDragInteraction } from "./components/zoomArea/hooks/useDragInteraction.js";
|
|
30
|
-
import { useKeyboardNavigation } from "./components/zoomArea/hooks/useKeyboardNavigation.js";
|
|
31
|
-
import { useZoomAreaFocus } from "./components/zoomArea/hooks/useZoomAreaFocus.js";
|
|
32
|
-
import { useZoomData } from "./components/zoomArea/hooks/useZoomData.js";
|
|
33
|
-
import { getInteractionConfig } from "./components/zoomArea/utils/interactionConfig.js";
|
|
34
|
-
import { calculateLinesPathData, generateCurvedPath } from "./components/zoomArea/utils/pathGeneration.js";
|
|
35
|
-
import { ZoomArea } from "./components/zoomArea/zoomArea.js";
|
|
36
|
-
export { Bar, BarChart, BarOrientation, ChartText, CustomBackgroundChart, DefaultCanvasConfig, ErrorType, FOCUS_DEFAULT, FocusRing, ForeignObject, HandlerIcon, Line, LineChart, LineRenderer, Node, NodeType, Path, PieChart, Positions, SelectionArea, SvgContainer, Tick, TickDataUtils, XAxis, YAxis, ZoomArea, ZoomAreaElements, ZoomHandler, calculateHandlerPositions, calculateLinesPathData, clampRange, createDefaultRange, generateCurvedPath, getFocusConfig, getInteractionConfig, isFullRange, mouseToDataIndex, normalizeToArray, useDragInteraction, useKeyboardNavigation, useZoomAreaFocus, useZoomData };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
.focus-ring-outer,.focus-ring-inner,.focus-ring-container{pointer-events:none}.path:focus{outline:none}.node-focus-border{outline:none}.node-focus-border:focus-visible{outline-offset:2px;outline:2px solid #2c71db}.node-path-focus-border{outline:none}.node-path-focus-border:focus-visible{outline-offset:1px;outline:1px solid #2c71db}.plot{outline:none}.plot-focus-outer,.plot-focus-inner,.pointer-events-none{pointer-events:none}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const ErrorType = {
|
|
2
|
-
BAR_CHART_CONTEXT_ERROR: "BAR_CHART_CONTEXT_ERROR",
|
|
3
|
-
BAR_CHART_PATH_ERROR: "BAR_CHART_PATH_ERROR",
|
|
4
|
-
BAR_CHART_SEPARATOR_ERROR: "BAR_CHART_SEPARATOR_ERROR",
|
|
5
|
-
BAR_CHART_X_AXIS_ERROR: "BAR_CHART_X_AXIS_ERROR",
|
|
6
|
-
BAR_CHART_Y_AXIS_ERROR: "BAR_CHART_Y_AXIS_ERROR",
|
|
7
|
-
CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR: "CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR",
|
|
8
|
-
CUSTOM_BACKGROUND_CHART_PLOT_ERROR: "CUSTOM_BACKGROUND_CHART_PLOT_ERROR",
|
|
9
|
-
GENERIC: "GENERIC",
|
|
10
|
-
LINE_CHART_CONTEXT_ERROR: "LINE_CHART_CONTEXT_ERROR",
|
|
11
|
-
LINE_CHART_PATH_ERROR: "LINE_CHART_PATH_ERROR",
|
|
12
|
-
LINE_CHART_PROJECTION_ERROR: "LINE_CHART_PROJECTION_ERROR",
|
|
13
|
-
LINE_CHART_SEPARATOR_ERROR: "LINE_CHART_SEPARATOR_ERROR",
|
|
14
|
-
LINE_CHART_X_AXIS_ERROR: "LINE_CHART_X_AXIS_ERROR",
|
|
15
|
-
LINE_CHART_Y_AXIS_ERROR: "LINE_CHART_Y_AXIS_ERROR",
|
|
16
|
-
PIE_CHART_CONTEXT_ERROR: "PIE_CHART_CONTEXT_ERROR",
|
|
17
|
-
PIE_CHART_PATH_ERROR: "PIE_CHART_PATH_ERROR",
|
|
18
|
-
PIE_CHART_SEGMENT_ERROR: "PIE_CHART_SEGMENT_ERROR"
|
|
19
|
-
}, normalizeToArray = (e) => Array.isArray(e) ? e : [e];
|
|
20
|
-
export { ErrorType, normalizeToArray };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const FOCUS_DEFAULT = {
|
|
2
|
-
FOCUS_COLOR: "#0078D4",
|
|
3
|
-
FOCUS_INNER: "#ffffff",
|
|
4
|
-
INNER_FOCUS_STROKE_WIDTH: 2,
|
|
5
|
-
OUTER_FOCUS_STROKE_WIDTH: 2,
|
|
6
|
-
OUTLINES_GAP: 0,
|
|
7
|
-
VARIANT: "adaptive"
|
|
8
|
-
}, getFocusConfig = (e) => ({
|
|
9
|
-
gap: e?.gap ?? FOCUS_DEFAULT.OUTLINES_GAP,
|
|
10
|
-
innerColor: e?.innerColor ?? FOCUS_DEFAULT.FOCUS_INNER,
|
|
11
|
-
innerStrokeWidth: e?.innerStrokeWidth ?? FOCUS_DEFAULT.INNER_FOCUS_STROKE_WIDTH,
|
|
12
|
-
outlineColor: e?.outlineColor ?? FOCUS_DEFAULT.FOCUS_COLOR,
|
|
13
|
-
outlineStrokeWidth: e?.outlineStrokeWidth ?? FOCUS_DEFAULT.OUTER_FOCUS_STROKE_WIDTH,
|
|
14
|
-
variant: e?.variant ?? FOCUS_DEFAULT.VARIANT
|
|
15
|
-
});
|
|
16
|
-
export { FOCUS_DEFAULT, getFocusConfig };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BarChartErrors, BarChartErrorsRecord } from "./constants/errors/barChartErrors.js";
|
|
2
|
-
import { LineChartErrors, LineChartErrorsRecord } from "./constants/errors/lineChartErrors.js";
|
|
3
|
-
import { PieChartErrors, PieChartErrorsRecord } from "./constants/errors/pieChartErrors.js";
|
|
4
|
-
import { buildBarDistributionError, buildBarNegativeValueError, buildBarValueError } from "./charts/buildBarChartErrors.js";
|
|
5
|
-
import { buildEmptyDataArrayError, buildInnerRadiusOutOfRangeError, buildInvalidGroupError, buildInvalidInnerRadiusError, buildInvalidRadiusError, buildInvalidTotalError, buildPieDataKeyNotFoundError, buildSegmentNegativeValueError, buildSegmentValueError } from "./charts/buildPieChartErrors.js";
|
|
6
|
-
const BuildError = {
|
|
7
|
-
INVALID_X_TICK: "INVALID_X_TICK",
|
|
8
|
-
...BarChartErrors,
|
|
9
|
-
...LineChartErrors,
|
|
10
|
-
...PieChartErrors
|
|
11
|
-
};
|
|
12
|
-
var INVALID_X_TICK_ERROR = "[getXTicks] Invalid X tick values calculated";
|
|
13
|
-
const ErrorsRecord = {
|
|
14
|
-
...BarChartErrorsRecord,
|
|
15
|
-
...LineChartErrorsRecord,
|
|
16
|
-
...PieChartErrorsRecord,
|
|
17
|
-
INVALID_X_TICK: Error(INVALID_X_TICK_ERROR)
|
|
18
|
-
}, buildError = (e) => ErrorsRecord[e], buildDataKeyNotFoundError = (e) => /* @__PURE__ */ Error(`DataKey "${e}" not found in dataset`), buildCanvasDimensionsError = (e, t) => /* @__PURE__ */ Error(`Canvas dimensions validation failed: width=${e}, height=${t} (both must be > 0)`), buildSeparatorXBreakAxisError = (e) => /* @__PURE__ */ Error(`Invalid xBreakAxis value: '${e}' cannot be parsed as number`), buildSeparatorYBreakAxisError = (e) => /* @__PURE__ */ Error(`Invalid yBreakAxis value: '${e}' cannot be parsed as number`), buildSeparatorXOutOfRangeError = (e, t, n) => /* @__PURE__ */ Error(`xBreakAxis value ${e} is outside data range (${t} - ${n})`), buildSeparatorYOutOfRangeError = (e, t, n) => /* @__PURE__ */ Error(`yBreakAxis value ${e} is outside data range (${t} - ${n})`);
|
|
19
|
-
export { BuildError, buildCanvasDimensionsError, buildDataKeyNotFoundError, buildError, buildSeparatorXBreakAxisError, buildSeparatorXOutOfRangeError, buildSeparatorYBreakAxisError, buildSeparatorYOutOfRangeError };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const buildBarValueError = (e, t) => /* @__PURE__ */ Error(`Invalid value "${e}" for bar with dataKey "${t}". Must be a valid number.`), buildBarNegativeValueError = (e, t) => /* @__PURE__ */ Error(`Negative value ${e} not allowed for bar with dataKey "${t}" in current configuration`), buildBarDistributionError = (e, t) => /* @__PURE__ */ Error(`Invalid bar distribution for "${e}": ${t}`);
|
|
2
|
-
export { buildBarDistributionError, buildBarNegativeValueError, buildBarValueError };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const buildProjectionBoundsError = (e, t) => /* @__PURE__ */ Error(`Invalid projection bounds - upper projection (${e}) must be below lower projection (${t})`), buildProjectionXOutOfRangeError = (e, t) => /* @__PURE__ */ Error(`${t ? "Upper" : "Lower"} projection X coordinate (${e}) is outside valid range (0-100)`), buildProjectionYOutOfRangeError = (e, t, n) => /* @__PURE__ */ Error(`${n ? "Upper" : "Lower"} projection Y coordinate (${e}) is outside chart area (0-${t})`);
|
|
2
|
-
export { buildProjectionBoundsError, buildProjectionXOutOfRangeError, buildProjectionYOutOfRangeError };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const buildSegmentValueError = (e, t) => /* @__PURE__ */ Error(`Invalid segment value for "${t}": "${e}" is not a valid number`), buildSegmentNegativeValueError = (e, t) => /* @__PURE__ */ Error(`Negative segment value for "${t}": ${e} (values must be >= 0)`), buildPieDataKeyNotFoundError = (e) => /* @__PURE__ */ Error(`DataKey "${e}" not found in PieChart dataset`), buildEmptyDataArrayError = (e) => /* @__PURE__ */ Error(`Data array for key "${e}" is empty`), buildInvalidTotalError = (e, t) => /* @__PURE__ */ Error(`Invalid total value for "${e}": ${t} (must be > 0)`), buildInvalidGroupError = (e, t, n) => /* @__PURE__ */ Error(`Invalid group at index ${t} in "${e}": missing required property "${n}"`), buildInvalidRadiusError = (e) => /* @__PURE__ */ Error(`Invalid radius value: "${e}" (must be a positive number)`), buildInvalidInnerRadiusError = (e) => /* @__PURE__ */ Error(`Invalid innerRadius value: "${e}" (must be a positive number or zero)`), buildInnerRadiusOutOfRangeError = (e, t) => /* @__PURE__ */ Error(`innerRadius (${e}) must be less than radius (${t}) for donut chart rendering`);
|
|
2
|
-
export { buildEmptyDataArrayError, buildInnerRadiusOutOfRangeError, buildInvalidGroupError, buildInvalidInnerRadiusError, buildInvalidRadiusError, buildInvalidTotalError, buildPieDataKeyNotFoundError, buildSegmentNegativeValueError, buildSegmentValueError };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const BarChartErrorMessages = {
|
|
2
|
-
BAR_CHART_AXIS_INSUFFICIENT_TICKS: "Axis requires at least two ticks for proper bar scaling",
|
|
3
|
-
BAR_CHART_AXIS_INVALID_SCALE: "Invalid axis scale for current bar values",
|
|
4
|
-
BAR_CHART_DISTRIBUTION_INSUFFICIENT_SPACE: "Insufficient space for bar distribution with current configuration",
|
|
5
|
-
BAR_CHART_DISTRIBUTION_INVALID_GAP: "Invalid gap between bars - must be >= 0 and allow bar rendering",
|
|
6
|
-
BAR_CHART_DISTRIBUTION_OVERLAP: "Bar distribution results in overlapping bars",
|
|
7
|
-
BAR_CHART_EMPTY_DATA: "No valid data entries found for bar chart rendering",
|
|
8
|
-
BAR_CHART_INSUFFICIENT_SPACE_HEIGHT: "Insufficient height to render bars. Consider reducing bar count or increasing chart height",
|
|
9
|
-
BAR_CHART_INSUFFICIENT_SPACE_WIDTH: "Insufficient width to render bars. Consider reducing bar width or increasing chart width",
|
|
10
|
-
BAR_CHART_INVALID_VALUE: "Bar value must be a valid number for rendering",
|
|
11
|
-
BAR_CHART_NEGATIVE_VALUE: "Negative values are not supported in this bar configuration",
|
|
12
|
-
BAR_CHART_NO_DATA: "Data validation failed: no data provided for bar chart rendering",
|
|
13
|
-
BAR_CHART_OVERLAP: "Bars are overlapping due to insufficient spacing",
|
|
14
|
-
BAR_CHART_SEPARATOR_X_OUT_OF_RANGE: "Separator X position is outside valid bar range",
|
|
15
|
-
BAR_CHART_SEPARATOR_Y_OUT_OF_RANGE: "Separator Y position is outside valid bar range",
|
|
16
|
-
BAR_CHART_STACK_INVALID: "Invalid stacking configuration - all bars in stack must have consistent configuration",
|
|
17
|
-
BAR_CHART_STACK_MISSING_VALUES: "Stack is incomplete - all bars in stack must have valid values"
|
|
18
|
-
};
|
|
19
|
-
export { BarChartErrorMessages };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const LineChartErrorMessages = {
|
|
2
|
-
LINE_CHART_INVALID_CANVAS: "Canvas dimensions validation failed: both width and height must be > 0",
|
|
3
|
-
LINE_CHART_NO_DATA: "Data validation failed: no data provided for chart rendering",
|
|
4
|
-
LINE_CHART_PATH_ALL_VALUES_NULL: "Path data cannot be generated - all Y values are null or undefined",
|
|
5
|
-
LINE_CHART_PATH_INSUFFICIENT_POINTS: "Unable to calculate curved path with insufficient points (minimum 2 required)",
|
|
6
|
-
LINE_CHART_PATH_INVALID_DATAKEY: "DataKey must be a valid string",
|
|
7
|
-
LINE_CHART_PROJECTION_INVALID_BOUNDS: "Invalid projection bounds - upper projection must be below lower projection",
|
|
8
|
-
LINE_CHART_PROJECTION_LOWER_X_OUT_OF_RANGE: "Lower projection X coordinate is outside valid range (0-100)",
|
|
9
|
-
LINE_CHART_PROJECTION_LOWER_Y_OUT_OF_RANGE: "Lower projection Y coordinate is outside chart area",
|
|
10
|
-
LINE_CHART_PROJECTION_UPPER_X_OUT_OF_RANGE: "Upper projection X coordinate is outside valid range (0-100)",
|
|
11
|
-
LINE_CHART_PROJECTION_UPPER_Y_OUT_OF_RANGE: "Upper projection Y coordinate is outside chart area",
|
|
12
|
-
LINE_CHART_SEPARATOR_INVALID_COORDINATES: "Invalid separator position - coordinates overlap, cannot render separator",
|
|
13
|
-
LINE_CHART_SEPARATOR_INVALID_X_BREAK_AXIS: "Invalid xBreakAxis value: cannot be parsed as number",
|
|
14
|
-
LINE_CHART_SEPARATOR_INVALID_Y_BREAK_AXIS: "Invalid yBreakAxis value: cannot be parsed as number",
|
|
15
|
-
LINE_CHART_SEPARATOR_X_OUT_OF_RANGE: "xBreakAxis value is outside data range",
|
|
16
|
-
LINE_CHART_SEPARATOR_Y_OUT_OF_RANGE: "yBreakAxis value is outside data range",
|
|
17
|
-
LINE_CHART_SINGLE_POINT: "Data validation failed: single data point provided, minimum 2 required for line chart",
|
|
18
|
-
LINE_CHART_X_AXIS_IDENTICAL_VALUES: "X-axis range validation failed: minimum and maximum values are identical, cannot render chart line",
|
|
19
|
-
LINE_CHART_X_AXIS_INSUFFICIENT_TICKS: "X-axis tick calculation: insufficient data points (1/2 minimum required)",
|
|
20
|
-
LINE_CHART_X_AXIS_ZERO_LENGTH: "X-axis geometry validation failed: start and end X coordinates are identical (x1=x2), axis has zero length",
|
|
21
|
-
LINE_CHART_Y_AXIS_IDENTICAL_VALUES: "Y-axis range validation failed: minimum and maximum values are identical, cannot render chart line",
|
|
22
|
-
LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS: "Y-axis tick calculation: insufficient data points (1/2 minimum required)",
|
|
23
|
-
LINE_CHART_Y_AXIS_ZERO_LENGTH: "Y-axis geometry validation failed: start and end Y coordinates are identical (y1=y2), axis has zero length"
|
|
24
|
-
};
|
|
25
|
-
export { LineChartErrorMessages };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const PieChartErrorMessages = {
|
|
2
|
-
PIE_CHART_EMPTY_DATA: "PieChart data is empty or undefined",
|
|
3
|
-
PIE_CHART_INNER_RADIUS_OUT_OF_RANGE: "Inner radius must be less than radius",
|
|
4
|
-
PIE_CHART_INVALID_CANVAS_DIMENSIONS: "Invalid canvas dimensions for PieChart",
|
|
5
|
-
PIE_CHART_INVALID_DATA_KEY: "Invalid or missing dataKey in PieChart data",
|
|
6
|
-
PIE_CHART_INVALID_INNER_RADIUS: "Invalid innerRadius value",
|
|
7
|
-
PIE_CHART_INVALID_RADIUS: "Invalid radius value",
|
|
8
|
-
PIE_CHART_INVALID_SEGMENT_VALUE: "Invalid segment value (non-numeric)",
|
|
9
|
-
PIE_CHART_INVALID_TOTAL: "PieChart total value is zero or invalid",
|
|
10
|
-
PIE_CHART_MISSING_SEGMENT_NAME: "Segment is missing required name property",
|
|
11
|
-
PIE_CHART_NEGATIVE_SEGMENT_VALUE: "Segment value cannot be negative"
|
|
12
|
-
};
|
|
13
|
-
export { PieChartErrorMessages };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BarChartErrorMessages } from "../errorMessages/barChartErrorMessages.js";
|
|
2
|
-
const BarChartErrors = {
|
|
3
|
-
BAR_CHART_AXIS_INSUFFICIENT_TICKS: "BAR_CHART_AXIS_INSUFFICIENT_TICKS",
|
|
4
|
-
BAR_CHART_AXIS_INVALID_SCALE: "BAR_CHART_AXIS_INVALID_SCALE",
|
|
5
|
-
BAR_CHART_DISTRIBUTION_INSUFFICIENT_SPACE: "BAR_CHART_DISTRIBUTION_INSUFFICIENT_SPACE",
|
|
6
|
-
BAR_CHART_DISTRIBUTION_INVALID_GAP: "BAR_CHART_DISTRIBUTION_INVALID_GAP",
|
|
7
|
-
BAR_CHART_DISTRIBUTION_OVERLAP: "BAR_CHART_DISTRIBUTION_OVERLAP",
|
|
8
|
-
BAR_CHART_EMPTY_DATA: "BAR_CHART_EMPTY_DATA",
|
|
9
|
-
BAR_CHART_INSUFFICIENT_SPACE_HEIGHT: "BAR_CHART_INSUFFICIENT_SPACE_HEIGHT",
|
|
10
|
-
BAR_CHART_INSUFFICIENT_SPACE_WIDTH: "BAR_CHART_INSUFFICIENT_SPACE_WIDTH",
|
|
11
|
-
BAR_CHART_INVALID_VALUE: "BAR_CHART_INVALID_VALUE",
|
|
12
|
-
BAR_CHART_NEGATIVE_VALUE: "BAR_CHART_NEGATIVE_VALUE",
|
|
13
|
-
BAR_CHART_NO_DATA: "BAR_CHART_NO_DATA",
|
|
14
|
-
BAR_CHART_OVERLAP: "BAR_CHART_OVERLAP",
|
|
15
|
-
BAR_CHART_SEPARATOR_X_OUT_OF_RANGE: "BAR_CHART_SEPARATOR_X_OUT_OF_RANGE",
|
|
16
|
-
BAR_CHART_SEPARATOR_Y_OUT_OF_RANGE: "BAR_CHART_SEPARATOR_Y_OUT_OF_RANGE",
|
|
17
|
-
BAR_CHART_STACK_INVALID: "BAR_CHART_STACK_INVALID",
|
|
18
|
-
BAR_CHART_STACK_MISSING_VALUES: "BAR_CHART_STACK_MISSING_VALUES"
|
|
19
|
-
}, BarChartErrorsRecord = Object.entries(BarChartErrorMessages).reduce((e, [t, n]) => (e[t] = Error(n), e), {});
|
|
20
|
-
export { BarChartErrors, BarChartErrorsRecord };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { LineChartErrorMessages } from "../errorMessages/lineChartErrorMessages.js";
|
|
2
|
-
const LineChartErrors = {
|
|
3
|
-
LINE_CHART_INVALID_CANVAS: "LINE_CHART_INVALID_CANVAS",
|
|
4
|
-
LINE_CHART_NO_DATA: "LINE_CHART_NO_DATA",
|
|
5
|
-
LINE_CHART_PATH_ALL_VALUES_NULL: "LINE_CHART_PATH_ALL_VALUES_NULL",
|
|
6
|
-
LINE_CHART_PATH_INSUFFICIENT_POINTS: "LINE_CHART_PATH_INSUFFICIENT_POINTS",
|
|
7
|
-
LINE_CHART_PATH_INVALID_DATAKEY: "LINE_CHART_PATH_INVALID_DATAKEY",
|
|
8
|
-
LINE_CHART_PROJECTION_INVALID_BOUNDS: "LINE_CHART_PROJECTION_INVALID_BOUNDS",
|
|
9
|
-
LINE_CHART_PROJECTION_LOWER_X_OUT_OF_RANGE: "LINE_CHART_PROJECTION_LOWER_X_OUT_OF_RANGE",
|
|
10
|
-
LINE_CHART_PROJECTION_LOWER_Y_OUT_OF_RANGE: "LINE_CHART_PROJECTION_LOWER_Y_OUT_OF_RANGE",
|
|
11
|
-
LINE_CHART_PROJECTION_UPPER_X_OUT_OF_RANGE: "LINE_CHART_PROJECTION_UPPER_X_OUT_OF_RANGE",
|
|
12
|
-
LINE_CHART_PROJECTION_UPPER_Y_OUT_OF_RANGE: "LINE_CHART_PROJECTION_UPPER_Y_OUT_OF_RANGE",
|
|
13
|
-
LINE_CHART_SEPARATOR_INVALID_COORDINATES: "LINE_CHART_SEPARATOR_INVALID_COORDINATES",
|
|
14
|
-
LINE_CHART_SEPARATOR_INVALID_X_BREAK_AXIS: "LINE_CHART_SEPARATOR_INVALID_X_BREAK_AXIS",
|
|
15
|
-
LINE_CHART_SEPARATOR_INVALID_Y_BREAK_AXIS: "LINE_CHART_SEPARATOR_INVALID_Y_BREAK_AXIS",
|
|
16
|
-
LINE_CHART_SEPARATOR_X_OUT_OF_RANGE: "LINE_CHART_SEPARATOR_X_OUT_OF_RANGE",
|
|
17
|
-
LINE_CHART_SEPARATOR_Y_OUT_OF_RANGE: "LINE_CHART_SEPARATOR_Y_OUT_OF_RANGE",
|
|
18
|
-
LINE_CHART_SINGLE_POINT: "LINE_CHART_SINGLE_POINT",
|
|
19
|
-
LINE_CHART_X_AXIS_IDENTICAL_VALUES: "LINE_CHART_X_AXIS_IDENTICAL_VALUES",
|
|
20
|
-
LINE_CHART_X_AXIS_INSUFFICIENT_TICKS: "LINE_CHART_X_AXIS_INSUFFICIENT_TICKS",
|
|
21
|
-
LINE_CHART_X_AXIS_ZERO_LENGTH: "LINE_CHART_X_AXIS_ZERO_LENGTH",
|
|
22
|
-
LINE_CHART_Y_AXIS_IDENTICAL_VALUES: "LINE_CHART_Y_AXIS_IDENTICAL_VALUES",
|
|
23
|
-
LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS: "LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS",
|
|
24
|
-
LINE_CHART_Y_AXIS_ZERO_LENGTH: "LINE_CHART_Y_AXIS_ZERO_LENGTH"
|
|
25
|
-
}, LineChartErrorsRecord = Object.entries(LineChartErrorMessages).reduce((e, [t, n]) => (e[t] = Error(n), e), {});
|
|
26
|
-
export { LineChartErrors, LineChartErrorsRecord };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { PieChartErrorMessages } from "../errorMessages/pieChartErrorMessages.js";
|
|
2
|
-
const PieChartErrors = {
|
|
3
|
-
PIE_CHART_EMPTY_DATA: "PIE_CHART_EMPTY_DATA",
|
|
4
|
-
PIE_CHART_INNER_RADIUS_OUT_OF_RANGE: "PIE_CHART_INNER_RADIUS_OUT_OF_RANGE",
|
|
5
|
-
PIE_CHART_INVALID_CANVAS_DIMENSIONS: "PIE_CHART_INVALID_CANVAS_DIMENSIONS",
|
|
6
|
-
PIE_CHART_INVALID_DATA_KEY: "PIE_CHART_INVALID_DATA_KEY",
|
|
7
|
-
PIE_CHART_INVALID_INNER_RADIUS: "PIE_CHART_INVALID_INNER_RADIUS",
|
|
8
|
-
PIE_CHART_INVALID_RADIUS: "PIE_CHART_INVALID_RADIUS",
|
|
9
|
-
PIE_CHART_INVALID_SEGMENT_VALUE: "PIE_CHART_INVALID_SEGMENT_VALUE",
|
|
10
|
-
PIE_CHART_INVALID_TOTAL: "PIE_CHART_INVALID_TOTAL",
|
|
11
|
-
PIE_CHART_MISSING_SEGMENT_NAME: "PIE_CHART_MISSING_SEGMENT_NAME",
|
|
12
|
-
PIE_CHART_NEGATIVE_SEGMENT_VALUE: "PIE_CHART_NEGATIVE_SEGMENT_VALUE"
|
|
13
|
-
}, PieChartErrorsRecord = Object.entries(PieChartErrorMessages).reduce((e, [t, n]) => (e[t] = Error(n), e), {});
|
|
14
|
-
export { PieChartErrors, PieChartErrorsRecord };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const buildTickValues = (e) => {
|
|
2
|
-
if (e.length === 0) return { numeric: {
|
|
3
|
-
max: 2,
|
|
4
|
-
min: 0,
|
|
5
|
-
step: 1
|
|
6
|
-
} };
|
|
7
|
-
let t = Math.min(...e.map((e) => parseFloat(e))), n = Math.max(...e.map((e) => parseFloat(e)));
|
|
8
|
-
return { numeric: {
|
|
9
|
-
max: n,
|
|
10
|
-
min: t,
|
|
11
|
-
step: Math.abs(n - t) / 2
|
|
12
|
-
} };
|
|
13
|
-
};
|
|
14
|
-
export { buildTickValues };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
const createErrorAccumulator = (e) => {
|
|
2
|
-
let t = /* @__PURE__ */ new Map(), n = () => {
|
|
3
|
-
let e = {};
|
|
4
|
-
return t.forEach((t, n) => {
|
|
5
|
-
e[n] = t;
|
|
6
|
-
}), e;
|
|
7
|
-
};
|
|
8
|
-
return {
|
|
9
|
-
addError: (r, i) => {
|
|
10
|
-
if (!i) return;
|
|
11
|
-
let a = {
|
|
12
|
-
...i,
|
|
13
|
-
type: r
|
|
14
|
-
}, o = t.get(r) || [];
|
|
15
|
-
if (o.push(a), t.set(r, o), e) {
|
|
16
|
-
let t = n(), r = {};
|
|
17
|
-
Object.entries(t).forEach(([e, t]) => {
|
|
18
|
-
let n = e;
|
|
19
|
-
Array.isArray(t) && t.length, r[n] = t;
|
|
20
|
-
}), e(r);
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
clearErrors: () => {
|
|
24
|
-
t.clear(), e && e({});
|
|
25
|
-
},
|
|
26
|
-
getAccumulatedErrors: n
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
export { createErrorAccumulator };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { logger } from "../logger/logger.js";
|
|
2
|
-
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
const cssGradientToSVG = (r, i = "gradientePath") => {
|
|
4
|
-
let a = r.split(",").map((e) => e.trim()), o = parseInt(a[0], 10), s = a.slice(1).map((e) => {
|
|
5
|
-
let [t, n] = e.split(" ");
|
|
6
|
-
return {
|
|
7
|
-
color: t,
|
|
8
|
-
offset: n
|
|
9
|
-
};
|
|
10
|
-
}), c = "0%", l = "0%", u = "0%";
|
|
11
|
-
switch (o) {
|
|
12
|
-
case 180:
|
|
13
|
-
u = "100%";
|
|
14
|
-
break;
|
|
15
|
-
case 90:
|
|
16
|
-
l = "100%";
|
|
17
|
-
break;
|
|
18
|
-
case 270:
|
|
19
|
-
c = "100%";
|
|
20
|
-
break;
|
|
21
|
-
default: return logger.warn(`Unsupported gradient angle: ${o}°. Supported angles are 90, 180, 270.`), /* @__PURE__ */ jsx(Fragment, {});
|
|
22
|
-
}
|
|
23
|
-
return /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("linearGradient", {
|
|
24
|
-
id: i,
|
|
25
|
-
x1: c,
|
|
26
|
-
x2: l,
|
|
27
|
-
y1: "0%",
|
|
28
|
-
y2: u,
|
|
29
|
-
children: s.map((e, t) => /* @__PURE__ */ jsx("stop", {
|
|
30
|
-
offset: e.offset,
|
|
31
|
-
stopColor: e.color
|
|
32
|
-
}, `${t}-${e.offset}`.toString()))
|
|
33
|
-
}) });
|
|
34
|
-
};
|
|
35
|
-
export { cssGradientToSVG };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { safeDocument, safeGetComputedStyle } from "../ssr/ssr.js";
|
|
2
|
-
import { Unit } from "../../types/unit.enum.js";
|
|
3
|
-
var stringToUnit = {
|
|
4
|
-
[Unit.PERCENTAGE]: Unit.PERCENTAGE,
|
|
5
|
-
[Unit.REM]: Unit.REM
|
|
6
|
-
}, Dimension = {
|
|
7
|
-
HEIGHT: "HEIGHT",
|
|
8
|
-
WIDTH: "WIDTH"
|
|
9
|
-
}, UNIT_VALUE_REGEX = /^(\d+(\.\d+)?)(px|rem|%)?$/, MATCH_VALUE_INDEX = 1, MATCH_UNIT_INDEX = 3, parseDimensionValue = (e) => {
|
|
10
|
-
if (typeof e == "number") return {
|
|
11
|
-
unit: void 0,
|
|
12
|
-
value: e
|
|
13
|
-
};
|
|
14
|
-
let t = e.match(UNIT_VALUE_REGEX);
|
|
15
|
-
if (!t) throw Error(`Invalid string format: "${e}"`);
|
|
16
|
-
let n = parseFloat(t[MATCH_VALUE_INDEX]);
|
|
17
|
-
return {
|
|
18
|
-
unit: stringToUnit[t[MATCH_UNIT_INDEX]],
|
|
19
|
-
value: n
|
|
20
|
-
};
|
|
21
|
-
}, calculatePercentage = (e, t, n) => {
|
|
22
|
-
let r = n.parentElement;
|
|
23
|
-
if (!r) return 0;
|
|
24
|
-
let a = t === Dimension.WIDTH ? r.clientWidth : r.clientHeight;
|
|
25
|
-
return e / 100 * a;
|
|
26
|
-
}, calculateRem = (n) => {
|
|
27
|
-
let r = safeDocument();
|
|
28
|
-
if (!r) return n * 16;
|
|
29
|
-
let i = safeGetComputedStyle(r.documentElement);
|
|
30
|
-
return i ? n * (parseFloat(i.fontSize) || 16) : n * 16;
|
|
31
|
-
};
|
|
32
|
-
const getCanvasDimensions = ({ canvasHeight: e, canvasWidth: t, svgElement: r }) => {
|
|
33
|
-
let { unit: a, value: o } = parseDimensionValue(t), s = a === Unit.PERCENTAGE ? calculatePercentage(o, Dimension.WIDTH, r) : a === Unit.REM ? calculateRem(o) : o, { unit: c, value: l } = parseDimensionValue(e);
|
|
34
|
-
return {
|
|
35
|
-
parsedCanvasHeight: c === Unit.PERCENTAGE ? calculatePercentage(l, Dimension.HEIGHT, r) : c === Unit.REM ? calculateRem(l) : l,
|
|
36
|
-
parsedCanvasWidth: s
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export { getCanvasDimensions };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Children, isValidElement } from "react";
|
|
2
|
-
const getChildrenAttr = ({ attrName: n, children: r, originalValue: i, updateValue: a }) => {
|
|
3
|
-
let o = "";
|
|
4
|
-
Children.toArray(r).forEach((e) => {
|
|
5
|
-
if (isValidElement(e)) {
|
|
6
|
-
let t = e.props[n];
|
|
7
|
-
t && (o += t);
|
|
8
|
-
}
|
|
9
|
-
}), o !== i && a(o);
|
|
10
|
-
};
|
|
11
|
-
export { getChildrenAttr };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../types/position.enum.js";
|
|
2
|
-
const getXCoordinates = ({ canvasHeight: e, canvasWidth: t, customBreakAxis: n, extraSpaceBottomY: r, extraSpaceLeftX: i, extraSpaceRightX: a, extraSpaceTopY: o, position: s }) => s === Positions.TOP ? {
|
|
3
|
-
x1: i,
|
|
4
|
-
x2: t - a,
|
|
5
|
-
y1: o,
|
|
6
|
-
y2: o
|
|
7
|
-
} : s === Positions.CENTER ? {
|
|
8
|
-
x1: i,
|
|
9
|
-
x2: t - a,
|
|
10
|
-
y1: e / 2,
|
|
11
|
-
y2: e / 2
|
|
12
|
-
} : s === Positions.CUSTOM ? {
|
|
13
|
-
x1: i,
|
|
14
|
-
x2: t - a,
|
|
15
|
-
y1: n,
|
|
16
|
-
y2: n
|
|
17
|
-
} : {
|
|
18
|
-
x1: i,
|
|
19
|
-
x2: t - a,
|
|
20
|
-
y1: e - r,
|
|
21
|
-
y2: e - r
|
|
22
|
-
}, getYCoordinates = ({ canvasHeight: e, canvasWidth: t, customBreakAxis: n, extraSpaceBottomY: r, extraSpaceLeftX: i, extraSpaceRightX: a, extraSpaceTopY: o, position: s }) => s === Positions.RIGHT ? {
|
|
23
|
-
x1: t - a,
|
|
24
|
-
x2: t - a,
|
|
25
|
-
y1: o,
|
|
26
|
-
y2: e - r
|
|
27
|
-
} : s === Positions.CENTER ? {
|
|
28
|
-
x1: t / 2,
|
|
29
|
-
x2: t / 2,
|
|
30
|
-
y1: o,
|
|
31
|
-
y2: e - r
|
|
32
|
-
} : s === Positions.CUSTOM ? {
|
|
33
|
-
x1: n,
|
|
34
|
-
x2: n,
|
|
35
|
-
y1: o,
|
|
36
|
-
y2: e - r
|
|
37
|
-
} : {
|
|
38
|
-
x1: i,
|
|
39
|
-
x2: i,
|
|
40
|
-
y1: o,
|
|
41
|
-
y2: e - r
|
|
42
|
-
};
|
|
43
|
-
export { getXCoordinates, getYCoordinates };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const getPoints = (e, t, n) => t.map((t) => {
|
|
2
|
-
if (isNaN(Number(t))) {
|
|
3
|
-
let n = e.find((e) => String(e.value) === String(t));
|
|
4
|
-
return n ? n.position : 0;
|
|
5
|
-
}
|
|
6
|
-
let { index: r, tick: i } = e.reduce((e, n, r) => Math.abs(Number(n.value) - Number(t)) <= Math.abs(Number(e.tick.value) - Number(t)) ? {
|
|
7
|
-
index: r,
|
|
8
|
-
tick: n
|
|
9
|
-
} : e, {
|
|
10
|
-
index: 0,
|
|
11
|
-
tick: e[0]
|
|
12
|
-
}), a = Number(t), o = Number(i.value);
|
|
13
|
-
if (a !== o) {
|
|
14
|
-
let t = e.map((e) => Number(e.value)), s = Math.min(...t), c = Math.max(...t);
|
|
15
|
-
if (a < s) return e.at(0)?.position;
|
|
16
|
-
if (a > c) return e.at(-1)?.position;
|
|
17
|
-
let l = Math.abs(o - a), u = a > o, d = u ? e[r + 1] : e[r - 1], f = Math.abs(Number(d.value) - o), p = l * 100 / f, m = Math.abs(i.position - d.position) * p / 100;
|
|
18
|
-
return n ? u ? i.position + m : i.position - m : u ? i.position - m : i.position + m;
|
|
19
|
-
}
|
|
20
|
-
return i.position;
|
|
21
|
-
});
|
|
22
|
-
export { getPoints };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Positions } from "../../types/position.enum.js";
|
|
2
|
-
const getTickTextXCoordinate = (e, t, n) => e === Positions.RIGHT ? t + n : t - n, getTickTextYCoordinate = (e, t, n, r) => e === Positions.TOP ? n : t + n + r;
|
|
3
|
-
export { getTickTextXCoordinate, getTickTextYCoordinate };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const getXTicks = ({ initPos: e, maxSpaceAvailable: t, otherAxisSpace: n, securitySpace: r, tickValues: i }) => {
|
|
2
|
-
let a = i.length - 1, o = (t - n - r) / a;
|
|
3
|
-
return i.map((t, n) => ({
|
|
4
|
-
position: e + n * o + r / 2,
|
|
5
|
-
value: t
|
|
6
|
-
}));
|
|
7
|
-
}, getYTicks = ({ initPos: e, maxSpaceAvailable: t, needAjusted: n, otherAxisSpace: r, securitySpace: i, tickValues: a }) => {
|
|
8
|
-
let o = a.length - 1, s = (t - r - i) / o, c = n ? i / 2 : 0;
|
|
9
|
-
return a.map((t, n) => ({
|
|
10
|
-
position: e - n * s - c,
|
|
11
|
-
value: t
|
|
12
|
-
}));
|
|
13
|
-
};
|
|
14
|
-
export { getXTicks, getYTicks };
|