@kubit-ui-web/react-charts 1.11.5 → 1.11.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +12 -18
- package/dist/cjs/assets/index.js +1 -0
- package/dist/cjs/charts/barChart/barChart.js +1 -1
- package/dist/cjs/charts/barChart/barChart.type.js +1 -0
- package/dist/cjs/charts/barChart/barChartStructure.js +1 -1
- package/dist/cjs/charts/barChart/context/barChartContext.js +1 -1
- package/dist/cjs/charts/barChart/context/buildBarContextValues.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartPath.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.js +1 -1
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.js +1 -1
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.js +1 -0
- package/dist/cjs/charts/barChart/fragments/fixture/index.js +1 -0
- package/dist/cjs/charts/barChart/index.js +1 -1
- package/dist/cjs/charts/barChart/utils/countBarChildren.js +1 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js +2 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js.LICENSE.txt +1 -0
- package/dist/cjs/charts/barChart/utils/getBarDataValue.js +1 -1
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.js +1 -1
- package/dist/cjs/charts/constants/chartDefaults.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/context/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/index.js +1 -0
- package/dist/cjs/charts/customBackgroundChart/index.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.js +1 -1
- package/dist/cjs/charts/index.js +1 -0
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.js +1 -1
- package/dist/cjs/charts/lineChart/context/index.js +1 -0
- package/dist/cjs/charts/lineChart/context/lineChartContext.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/index.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/index.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.css +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.js +1 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.js +1 -1
- package/dist/cjs/charts/lineChart/hook/index.js +1 -0
- package/dist/cjs/charts/lineChart/hook/useAutoClick.js +1 -1
- package/dist/cjs/charts/lineChart/hook/useHover.js +1 -1
- package/dist/cjs/charts/lineChart/hook/useIndicator.js +1 -1
- package/dist/cjs/charts/lineChart/index.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.type.js +1 -0
- package/dist/cjs/charts/lineChart/lineChartStructure.js +1 -1
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.js +1 -1
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getCoordinates.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getDataValues.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getPathData.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getProjection.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.js +1 -1
- package/dist/cjs/charts/lineChart/utils/getTicks.js +1 -1
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.js +1 -1
- package/dist/cjs/charts/lineChart/utils/index.js +1 -0
- package/dist/cjs/charts/lineChart/utils/tickTextPosition.js +1 -1
- package/dist/cjs/charts/lineChart/utils/validations.js +1 -1
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +1 -1
- package/dist/cjs/charts/pieChart/context/index.js +1 -0
- package/dist/cjs/charts/pieChart/context/pieChartContext.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/index.js +1 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +1 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +1 -1
- package/dist/cjs/charts/pieChart/index.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.type.js +1 -0
- package/dist/cjs/charts/pieChart/pieChartStructure.js +1 -1
- package/dist/cjs/charts/pieChart/utils/accessibility.js +1 -1
- package/dist/cjs/charts/pieChart/utils/buildL.js +1 -1
- package/dist/cjs/charts/pieChart/utils/calculatePoint.js +1 -1
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.js +1 -1
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.js +1 -1
- package/dist/cjs/charts/pieChart/utils/index.js +1 -0
- package/dist/cjs/charts/pieChart/utils/rotationDirection.js +1 -1
- package/dist/cjs/components/axisChart/index.js +1 -0
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.js +1 -1
- package/dist/cjs/components/axisChart/utils/index.js +1 -0
- package/dist/cjs/components/axisChart/xAxis/index.js +1 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.js +1 -1
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.js +1 -0
- package/dist/cjs/components/axisChart/yAxis/index.js +1 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.js +1 -1
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.js +1 -0
- package/dist/cjs/components/bar/bar.js +1 -1
- package/dist/cjs/components/bar/bar.type.js +1 -1
- package/dist/cjs/components/bar/index.js +1 -0
- package/dist/cjs/components/bar/utils/accessibility.js +1 -1
- package/dist/cjs/components/bar/utils/buildD.js +1 -1
- package/dist/cjs/components/bar/utils/getSegments.js +1 -1
- package/dist/cjs/components/chartText/chartText.js +1 -1
- package/dist/cjs/components/chartText/chartText.types.js +1 -0
- package/dist/cjs/components/chartText/index.js +1 -0
- package/dist/cjs/components/focusRing/components/FocusRingInline.js +1 -1
- package/dist/cjs/components/focusRing/components/FocusRingRenderer.js +1 -1
- package/dist/cjs/components/focusRing/components/FocusRingSeparate.js +1 -1
- package/dist/cjs/components/focusRing/focusRing.css +1 -0
- package/dist/cjs/components/focusRing/focusRing.js +1 -0
- package/dist/cjs/components/focusRing/focusRing.types.js +1 -0
- package/dist/cjs/components/focusRing/hooks/useFocusRingData.js +1 -1
- package/dist/cjs/components/focusRing/index.js +1 -0
- package/dist/cjs/components/focusRing/utils/composeRefs.js +1 -1
- package/dist/cjs/components/focusRing/utils/createAdaptiveFocusRings.js +1 -1
- package/dist/cjs/components/focusRing/utils/createBoundingBoxFocusRings.js +1 -1
- package/dist/cjs/components/focusRing/utils/utils.types.js +1 -0
- package/dist/cjs/components/foreignObject/foreignObject.js +1 -1
- package/dist/cjs/components/foreignObject/foreignObject.types.js +1 -0
- package/dist/cjs/components/foreignObject/index.js +1 -0
- package/dist/cjs/components/index.js +1 -0
- package/dist/cjs/components/line/index.js +1 -0
- package/dist/cjs/components/line/line.js +1 -1
- package/dist/cjs/components/line/line.types.js +1 -0
- package/dist/cjs/components/node/components/circle/circle.js +1 -1
- package/dist/cjs/components/node/components/hexagon/hexagon.js +1 -1
- package/dist/cjs/components/node/components/index.js +1 -0
- package/dist/cjs/components/node/components/pentagon/pentagon.js +1 -1
- package/dist/cjs/components/node/components/square/square.js +1 -1
- package/dist/cjs/components/node/components/star/star.js +1 -1
- package/dist/cjs/components/node/components/straight/straight.js +1 -1
- package/dist/cjs/components/node/components/triangle/triangle.js +1 -1
- package/dist/cjs/components/node/index.js +1 -0
- package/dist/cjs/components/node/node.js +1 -1
- package/dist/cjs/components/node/node.types.js +1 -1
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.js +1 -1
- package/dist/cjs/components/path/components/nodePath/nodePath.js +1 -1
- package/dist/cjs/components/path/index.js +1 -0
- package/dist/cjs/components/path/path.css +1 -0
- package/dist/cjs/components/path/path.js +1 -0
- package/dist/cjs/components/path/path.types.js +1 -0
- package/dist/cjs/components/plot/components/circle/circle.js +1 -1
- package/dist/cjs/components/plot/components/index.js +1 -0
- package/dist/cjs/components/plot/components/square/square.js +1 -1
- package/dist/cjs/components/plot/components/triangle/triangle.js +1 -1
- package/dist/cjs/components/plot/index.js +1 -0
- package/dist/cjs/components/plot/plot.css +1 -0
- package/dist/cjs/components/plot/plot.js +1 -0
- package/dist/cjs/components/plot/plot.types.js +1 -1
- package/dist/cjs/components/svgContainer/index.js +1 -0
- package/dist/cjs/components/svgContainer/svgContainer.js +1 -1
- package/dist/cjs/components/svgContainer/svgContainer.types.js +1 -0
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.js +1 -1
- package/dist/cjs/components/svgContainer/utils/index.js +1 -0
- package/dist/cjs/components/tick/index.js +1 -0
- package/dist/cjs/components/tick/tick.js +1 -1
- package/dist/cjs/components/tick/tick.types.js +1 -1
- package/dist/cjs/components/zoomArea/components/HandlerIcon.js +1 -1
- package/dist/cjs/components/zoomArea/components/LineRenderer.js +1 -1
- package/dist/cjs/components/zoomArea/components/SelectionArea.js +1 -1
- package/dist/cjs/components/zoomArea/components/ZoomHandler.js +1 -1
- package/dist/cjs/components/zoomArea/components/index.js +1 -0
- package/dist/cjs/components/zoomArea/hooks/index.js +1 -0
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.js +1 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomData.js +1 -1
- package/dist/cjs/components/zoomArea/index.js +1 -0
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.js +1 -1
- package/dist/cjs/components/zoomArea/utils/index.js +1 -0
- package/dist/cjs/components/zoomArea/utils/indexRounding.js +1 -1
- package/dist/cjs/components/zoomArea/utils/interactionConfig.js +1 -1
- package/dist/cjs/components/zoomArea/utils/pathGeneration.js +1 -1
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.js +1 -1
- package/dist/cjs/components/zoomArea/utils/selectionConfig.js +1 -1
- package/dist/cjs/components/zoomArea/zoomArea.js +1 -1
- package/dist/cjs/components/zoomArea/zoomArea.type.js +1 -1
- package/dist/cjs/hooks/index.js +1 -0
- package/dist/cjs/hooks/useFocus/useFocus.js +1 -1
- package/dist/cjs/hooks/useFocus/useFocus.types.js +1 -0
- package/dist/cjs/hooks/useHover/useHover.js +1 -1
- package/dist/cjs/hooks/useHover/useHover.types.js +1 -0
- package/dist/cjs/hooks/useId/index.js +1 -0
- package/dist/cjs/hooks/useId/useId.js +1 -1
- package/dist/cjs/hooks/useResponsiveCanvas/index.js +1 -0
- package/dist/cjs/hooks/useResponsiveCanvas/useResponsiveCanvas.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/storybook/components/note/note.css +1 -0
- package/dist/cjs/types/canvas.type.js +1 -1
- package/dist/cjs/types/errors.type.js +1 -1
- package/dist/cjs/types/focusConfig.type.js +1 -1
- package/dist/cjs/types/index.js +1 -0
- package/dist/cjs/types/position.enum.js +1 -1
- package/dist/cjs/types/unit.enum.js +1 -1
- package/dist/cjs/types/valueFormatter.type.js +1 -0
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +1 -1
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.js +1 -0
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.js +1 -1
- package/dist/cjs/utils/buildErrors/buildErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildBarChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildLineChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/barChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/lineChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.js +1 -1
- package/dist/cjs/utils/buildErrors/index.js +1 -0
- package/dist/cjs/utils/buildTickValues/buildTickValues.js +1 -1
- package/dist/cjs/utils/classNames/classNames.js +1 -0
- package/dist/cjs/utils/createErrorAccumulator/createErrorAccumulator.js +1 -1
- package/dist/cjs/utils/createErrorAccumulator/index.js +1 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.js +1 -1
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.js +1 -0
- package/dist/cjs/utils/cursorNear/isNear.js +1 -1
- package/dist/cjs/utils/getAxisData/getAxisData.js +1 -0
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.js +1 -1
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.js +1 -1
- package/dist/cjs/utils/getCoordinates/getCoordinates.js +1 -1
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.js +1 -1
- package/dist/cjs/utils/getPoints/getPoints.js +1 -1
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.js +1 -1
- package/dist/cjs/utils/getTicks/getTicks.js +1 -1
- package/dist/cjs/utils/index.js +1 -0
- package/dist/cjs/utils/logger/index.js +1 -0
- package/dist/cjs/utils/logger/logger.js +1 -1
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +1 -1
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.js +1 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.js +1 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.js +1 -0
- package/dist/cjs/utils/ssr/index.js +1 -0
- package/dist/cjs/utils/ssr/ssr.js +1 -1
- package/dist/cjs/utils/textBound/textBound.js +1 -1
- package/dist/esm/assets/index.mjs +1 -0
- package/dist/esm/charts/barChart/barChart.mjs +1 -0
- package/dist/esm/charts/barChart/barChart.type.mjs +0 -0
- package/dist/esm/charts/barChart/barChartStructure.mjs +1 -0
- package/dist/esm/charts/barChart/context/barChartContext.mjs +1 -0
- package/dist/esm/charts/barChart/context/buildBarContextValues.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartPath.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartSeparator.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartXAxis.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/barChartYAxis.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.mjs +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/index.mjs +1 -0
- package/dist/esm/charts/barChart/index.mjs +1 -0
- package/dist/esm/charts/barChart/utils/countBarChildren.mjs +1 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.mjs +2 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.mjs.LICENSE.txt +1 -0
- package/dist/esm/charts/barChart/utils/getBarDataValue.mjs +1 -0
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.mjs +1 -0
- package/dist/esm/charts/constants/chartDefaults.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/context/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.mjs +0 -0
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/index.mjs +1 -0
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.mjs +1 -0
- package/dist/esm/charts/index.mjs +1 -0
- package/dist/esm/charts/lineChart/context/buildLineContextValue.mjs +1 -0
- package/dist/esm/charts/lineChart/context/index.mjs +1 -0
- package/dist/esm/charts/lineChart/context/lineChartContext.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/index.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.css +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.mjs +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/index.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useAutoClick.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useHover.mjs +1 -0
- package/dist/esm/charts/lineChart/hook/useIndicator.mjs +1 -0
- package/dist/esm/charts/lineChart/index.mjs +1 -0
- package/dist/esm/charts/lineChart/lineChart.mjs +1 -0
- package/dist/esm/charts/lineChart/lineChart.type.mjs +0 -0
- package/dist/esm/charts/lineChart/lineChartStructure.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getCoordinates.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getDataValues.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getPathData.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getProjection.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/getTicks.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/index.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/tickTextPosition.mjs +1 -0
- package/dist/esm/charts/lineChart/utils/validations.mjs +1 -0
- package/dist/esm/charts/pieChart/context/buildPieContextValue.mjs +1 -0
- package/dist/esm/charts/pieChart/context/index.mjs +1 -0
- package/dist/esm/charts/pieChart/context/pieChartContext.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/index.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartPath.mjs +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.mjs +1 -0
- package/dist/esm/charts/pieChart/index.mjs +1 -0
- package/dist/esm/charts/pieChart/pieChart.mjs +1 -0
- package/dist/esm/charts/pieChart/pieChart.type.mjs +0 -0
- package/dist/esm/charts/pieChart/pieChartStructure.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/accessibility.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/buildL.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/calculatePoint.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/index.mjs +1 -0
- package/dist/esm/charts/pieChart/utils/rotationDirection.mjs +1 -0
- package/dist/esm/components/axisChart/index.mjs +1 -0
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.mjs +1 -0
- package/dist/esm/components/axisChart/utils/index.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/index.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.mjs +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.types.mjs +0 -0
- package/dist/esm/components/axisChart/yAxis/index.mjs +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.mjs +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.types.mjs +0 -0
- package/dist/esm/components/bar/bar.mjs +1 -0
- package/dist/esm/components/bar/bar.type.mjs +1 -0
- package/dist/esm/components/bar/index.mjs +1 -0
- package/dist/esm/components/bar/utils/accessibility.mjs +1 -0
- package/dist/esm/components/bar/utils/buildD.mjs +1 -0
- package/dist/esm/components/bar/utils/getSegments.mjs +1 -0
- package/dist/esm/components/chartText/chartText.mjs +1 -0
- package/dist/esm/components/chartText/chartText.types.mjs +0 -0
- package/dist/esm/components/chartText/index.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingInline.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingRenderer.mjs +1 -0
- package/dist/esm/components/focusRing/components/FocusRingSeparate.mjs +1 -0
- package/dist/esm/components/focusRing/focusRing.css +1 -0
- package/dist/esm/components/focusRing/focusRing.mjs +1 -0
- package/dist/esm/components/focusRing/focusRing.types.mjs +0 -0
- package/dist/esm/components/focusRing/hooks/useFocusRingData.mjs +1 -0
- package/dist/esm/components/focusRing/index.mjs +1 -0
- package/dist/esm/components/focusRing/utils/composeRefs.mjs +1 -0
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.mjs +1 -0
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.mjs +1 -0
- package/dist/esm/components/focusRing/utils/utils.types.mjs +0 -0
- package/dist/esm/components/foreignObject/foreignObject.mjs +1 -0
- package/dist/esm/components/foreignObject/foreignObject.types.mjs +0 -0
- package/dist/esm/components/foreignObject/index.mjs +1 -0
- package/dist/esm/components/index.mjs +1 -0
- package/dist/esm/components/line/index.mjs +1 -0
- package/dist/esm/components/line/line.mjs +1 -0
- package/dist/esm/components/line/line.types.mjs +0 -0
- package/dist/esm/components/node/components/circle/circle.mjs +1 -0
- package/dist/esm/components/node/components/hexagon/hexagon.mjs +1 -0
- package/dist/esm/components/node/components/index.mjs +0 -0
- package/dist/esm/components/node/components/pentagon/pentagon.mjs +1 -0
- package/dist/esm/components/node/components/square/square.mjs +1 -0
- package/dist/esm/components/node/components/star/star.mjs +1 -0
- package/dist/esm/components/node/components/straight/straight.mjs +1 -0
- package/dist/esm/components/node/components/triangle/triangle.mjs +1 -0
- package/dist/esm/components/node/index.mjs +1 -0
- package/dist/esm/components/node/node.mjs +1 -0
- package/dist/esm/components/node/node.types.mjs +1 -0
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.mjs +1 -0
- package/dist/esm/components/path/components/nodePath/nodePath.mjs +1 -0
- package/dist/esm/components/path/index.mjs +1 -0
- package/dist/esm/components/path/path.css +1 -0
- package/dist/esm/components/path/path.mjs +1 -0
- package/dist/esm/components/path/path.types.mjs +0 -0
- package/dist/esm/components/plot/components/circle/circle.mjs +1 -0
- package/dist/esm/components/plot/components/index.mjs +1 -0
- package/dist/esm/components/plot/components/square/square.mjs +1 -0
- package/dist/esm/components/plot/components/triangle/triangle.mjs +1 -0
- package/dist/esm/components/plot/index.mjs +1 -0
- package/dist/esm/components/plot/plot.css +1 -0
- package/dist/esm/components/plot/plot.mjs +1 -0
- package/dist/esm/components/plot/plot.types.mjs +1 -0
- package/dist/esm/components/svgContainer/index.mjs +1 -0
- package/dist/esm/components/svgContainer/svgContainer.mjs +1 -0
- package/dist/esm/components/svgContainer/svgContainer.types.mjs +0 -0
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.mjs +1 -0
- package/dist/esm/components/svgContainer/utils/index.mjs +1 -0
- package/dist/esm/components/tick/index.mjs +1 -0
- package/dist/esm/components/tick/tick.mjs +1 -0
- package/dist/esm/components/tick/tick.types.mjs +1 -0
- package/dist/esm/components/zoomArea/components/HandlerIcon.mjs +1 -0
- package/dist/esm/components/zoomArea/components/LineRenderer.mjs +1 -0
- package/dist/esm/components/zoomArea/components/SelectionArea.mjs +1 -0
- package/dist/esm/components/zoomArea/components/ZoomHandler.mjs +1 -0
- package/dist/esm/components/zoomArea/components/index.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/index.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.mjs +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomData.mjs +1 -0
- package/dist/esm/components/zoomArea/index.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/index.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/indexRounding.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/interactionConfig.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/pathGeneration.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.mjs +1 -0
- package/dist/esm/components/zoomArea/utils/selectionConfig.mjs +1 -0
- package/dist/esm/components/zoomArea/zoomArea.mjs +1 -0
- package/dist/esm/components/zoomArea/zoomArea.type.mjs +1 -0
- package/dist/esm/hooks/index.mjs +1 -0
- package/dist/esm/hooks/useFocus/useFocus.mjs +1 -0
- package/dist/esm/hooks/useFocus/useFocus.types.mjs +0 -0
- package/dist/esm/hooks/useHover/useHover.mjs +1 -0
- package/dist/esm/hooks/useHover/useHover.types.mjs +0 -0
- package/dist/esm/hooks/useId/index.mjs +1 -0
- package/dist/esm/hooks/useId/useId.mjs +1 -0
- package/dist/esm/hooks/useResponsiveCanvas/index.mjs +1 -0
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/storybook/components/note/note.css +1 -0
- package/dist/esm/types/canvas.type.mjs +1 -0
- package/dist/esm/types/errors.type.mjs +1 -0
- package/dist/esm/types/focusConfig.type.mjs +1 -0
- package/dist/esm/types/index.mjs +1 -0
- package/dist/esm/types/position.enum.mjs +1 -0
- package/dist/esm/types/unit.enum.mjs +1 -0
- package/dist/esm/types/valueFormatter.type.mjs +0 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.mjs +1 -0
- package/dist/esm/utils/adaptLegacyFocusConfig/index.mjs +1 -0
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.mjs +1 -0
- package/dist/esm/utils/buildErrors/buildErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.mjs +1 -0
- package/dist/esm/utils/buildErrors/index.mjs +1 -0
- package/dist/esm/utils/buildTickValues/buildTickValues.mjs +1 -0
- package/dist/esm/utils/classNames/classNames.mjs +1 -0
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.mjs +1 -0
- package/dist/esm/utils/createErrorAccumulator/index.mjs +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.mjs +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.mjs +0 -0
- package/dist/esm/utils/cursorNear/isNear.mjs +1 -0
- package/dist/esm/utils/getAxisData/getAxisData.mjs +1 -0
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.mjs +1 -0
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.mjs +1 -0
- package/dist/esm/utils/getCoordinates/getCoordinates.mjs +1 -0
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.mjs +1 -0
- package/dist/esm/utils/getPoints/getPoints.mjs +1 -0
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.mjs +1 -0
- package/dist/esm/utils/getTicks/getTicks.mjs +1 -0
- package/dist/esm/utils/index.mjs +1 -0
- package/dist/esm/utils/logger/index.mjs +1 -0
- package/dist/esm/utils/logger/logger.mjs +1 -0
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.mjs +1 -0
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.mjs +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.mjs +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.types.mjs +0 -0
- package/dist/esm/utils/ssr/index.mjs +1 -0
- package/dist/esm/utils/ssr/ssr.mjs +1 -0
- package/dist/esm/utils/textBound/textBound.mjs +1 -0
- package/dist/types/assets/index.d.ts +1 -2
- package/dist/types/assets/storybook/icons/icons.d.ts +4 -0
- package/dist/types/assets/storybook/index.d.ts +1 -0
- package/dist/types/charts/barChart/barChart.d.ts +6 -7
- package/dist/types/charts/barChart/barChart.type.d.ts +13 -14
- package/dist/types/charts/barChart/barChartStructure.d.ts +1 -2
- package/dist/types/charts/barChart/context/barChartContext.d.ts +2 -3
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts +5 -6
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts +1 -2
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +2 -3
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts +1 -2
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts +1 -2
- package/dist/types/charts/barChart/index.d.ts +1 -2
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts +1 -2
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts +2 -3
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts +1 -2
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts +1 -2
- package/dist/types/charts/constants/chartDefaults.d.ts +0 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/context/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts +3 -4
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts +4 -5
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +2 -3
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/index.d.ts +1 -2
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts +0 -1
- package/dist/types/charts/index.d.ts +4 -5
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts +4 -5
- package/dist/types/charts/lineChart/context/index.d.ts +2 -3
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts +1 -2
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts +1 -2
- package/dist/types/charts/lineChart/fragments/index.d.ts +4 -5
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +3 -3
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +3 -3
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +2 -3
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts +1 -2
- package/dist/types/charts/lineChart/hook/index.d.ts +3 -4
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts +0 -1
- package/dist/types/charts/lineChart/hook/useHover.d.ts +0 -1
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts +0 -1
- package/dist/types/charts/lineChart/index.d.ts +1 -2
- package/dist/types/charts/lineChart/lineChart.d.ts +6 -7
- package/dist/types/charts/lineChart/lineChart.type.d.ts +19 -20
- package/dist/types/charts/lineChart/lineChartStructure.d.ts +2 -3
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getCoordinates.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getPathData.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getProjection.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/getTicks.d.ts +1 -2
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts +0 -1
- package/dist/types/charts/lineChart/utils/index.d.ts +6 -7
- package/dist/types/charts/lineChart/utils/tickTextPosition.d.ts +8 -9
- package/dist/types/charts/lineChart/utils/validations.d.ts +15 -16
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts +3 -4
- package/dist/types/charts/pieChart/context/index.d.ts +2 -3
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/index.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +2 -3
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts +1 -2
- package/dist/types/charts/pieChart/index.d.ts +1 -2
- package/dist/types/charts/pieChart/pieChart.d.ts +4 -5
- package/dist/types/charts/pieChart/pieChart.type.d.ts +5 -6
- package/dist/types/charts/pieChart/pieChartStructure.d.ts +2 -3
- package/dist/types/charts/pieChart/utils/accessibility.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/buildL.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts +0 -1
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts +1 -2
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts +1 -2
- package/dist/types/charts/pieChart/utils/index.d.ts +2 -3
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts +0 -1
- package/dist/types/components/axisChart/index.d.ts +2 -3
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +1 -2
- package/dist/types/components/axisChart/utils/index.d.ts +1 -2
- package/dist/types/components/axisChart/xAxis/index.d.ts +2 -3
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts +2 -3
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts +6 -7
- package/dist/types/components/axisChart/yAxis/index.d.ts +2 -3
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts +2 -3
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts +5 -6
- package/dist/types/components/bar/bar.d.ts +2 -3
- package/dist/types/components/bar/bar.type.d.ts +5 -6
- package/dist/types/components/bar/index.d.ts +2 -3
- package/dist/types/components/bar/utils/accessibility.d.ts +0 -1
- package/dist/types/components/bar/utils/buildD.d.ts +2 -3
- package/dist/types/components/bar/utils/getSegments.d.ts +2 -3
- package/dist/types/components/chartText/chartText.d.ts +2 -3
- package/dist/types/components/chartText/chartText.types.d.ts +8 -9
- package/dist/types/components/chartText/index.d.ts +2 -3
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts +2 -3
- package/dist/types/components/focusRing/components/FocusRingRenderer.d.ts +1 -2
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts +2 -3
- package/dist/types/components/focusRing/focusRing.d.ts +3 -3
- package/dist/types/components/focusRing/focusRing.types.d.ts +3 -4
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts +3 -4
- package/dist/types/components/focusRing/index.d.ts +2 -3
- package/dist/types/components/focusRing/utils/composeRefs.d.ts +1 -2
- package/dist/types/components/focusRing/utils/createAdaptiveFocusRings.d.ts +2 -3
- package/dist/types/components/focusRing/utils/createBoundingBoxFocusRings.d.ts +2 -3
- package/dist/types/components/focusRing/utils/utils.types.d.ts +0 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts +2 -3
- package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -2
- package/dist/types/components/foreignObject/index.d.ts +2 -3
- package/dist/types/components/index.d.ts +11 -12
- package/dist/types/components/line/index.d.ts +2 -3
- package/dist/types/components/line/line.d.ts +2 -3
- package/dist/types/components/line/line.types.d.ts +4 -5
- package/dist/types/components/node/components/circle/circle.d.ts +2 -3
- package/dist/types/components/node/components/hexagon/hexagon.d.ts +2 -3
- package/dist/types/components/node/components/index.d.ts +0 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts +2 -3
- package/dist/types/components/node/components/square/square.d.ts +2 -3
- package/dist/types/components/node/components/star/star.d.ts +2 -3
- package/dist/types/components/node/components/straight/straight.d.ts +2 -3
- package/dist/types/components/node/components/triangle/triangle.d.ts +2 -3
- package/dist/types/components/node/index.d.ts +2 -3
- package/dist/types/components/node/node.d.ts +2 -3
- package/dist/types/components/node/node.types.d.ts +2 -3
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +0 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts +3 -4
- package/dist/types/components/path/index.d.ts +2 -3
- package/dist/types/components/path/path.d.ts +3 -3
- package/dist/types/components/path/path.types.d.ts +7 -8
- package/dist/types/components/plot/components/circle/circle.d.ts +2 -3
- package/dist/types/components/plot/components/index.d.ts +3 -4
- package/dist/types/components/plot/components/square/square.d.ts +2 -3
- package/dist/types/components/plot/components/triangle/triangle.d.ts +2 -3
- package/dist/types/components/plot/index.d.ts +2 -3
- package/dist/types/components/plot/plot.d.ts +3 -3
- package/dist/types/components/plot/plot.types.d.ts +2 -3
- package/dist/types/components/svgContainer/index.d.ts +1 -2
- package/dist/types/components/svgContainer/svgContainer.d.ts +2 -3
- package/dist/types/components/svgContainer/svgContainer.types.d.ts +1 -2
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +0 -1
- package/dist/types/components/svgContainer/utils/index.d.ts +1 -2
- package/dist/types/components/tick/index.d.ts +2 -3
- package/dist/types/components/tick/tick.d.ts +2 -3
- package/dist/types/components/tick/tick.types.d.ts +3 -4
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -2
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -2
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts +3 -4
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +3 -4
- package/dist/types/components/zoomArea/components/index.d.ts +4 -5
- package/dist/types/components/zoomArea/hooks/index.d.ts +4 -5
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts +1 -2
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts +1 -2
- package/dist/types/components/zoomArea/index.d.ts +5 -6
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/index.d.ts +3 -4
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts +0 -1
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts +1 -2
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts +1 -2
- package/dist/types/components/zoomArea/zoomArea.d.ts +1 -2
- package/dist/types/components/zoomArea/zoomArea.type.d.ts +3 -4
- package/dist/types/hooks/index.d.ts +4 -5
- package/dist/types/hooks/useFocus/useFocus.d.ts +1 -2
- package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -2
- package/dist/types/hooks/useHover/useHover.d.ts +1 -2
- package/dist/types/hooks/useHover/useHover.types.d.ts +1 -2
- package/dist/types/hooks/useId/index.d.ts +1 -2
- package/dist/types/hooks/useId/useId.d.ts +0 -1
- package/dist/types/hooks/useResponsiveCanvas/index.d.ts +1 -2
- package/dist/types/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts +1 -2
- package/dist/types/index.d.ts +3 -4
- package/dist/types/storybook/components/index.d.ts +1 -0
- package/dist/types/storybook/components/note/note.d.ts +12 -0
- package/dist/types/storybook/constants/categoryControl.d.ts +9 -0
- package/dist/types/storybook/index.d.ts +1 -0
- package/dist/types/types/canvas.type.d.ts +0 -1
- package/dist/types/types/errors.type.d.ts +0 -1
- package/dist/types/types/focusConfig.type.d.ts +1 -2
- package/dist/types/types/index.d.ts +4 -5
- package/dist/types/types/position.enum.d.ts +0 -1
- package/dist/types/types/unit.enum.d.ts +0 -1
- package/dist/types/types/valueFormatter.type.d.ts +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +2 -3
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts +1 -2
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts +0 -1
- package/dist/types/utils/buildErrors/buildErrors.d.ts +2 -3
- package/dist/types/utils/buildErrors/charts/buildBarChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/charts/buildLineChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/barChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/lineChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts +0 -1
- package/dist/types/utils/buildErrors/index.d.ts +1 -2
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts +0 -1
- package/dist/types/utils/classNames/classNames.d.ts +0 -1
- package/dist/types/utils/createErrorAccumulator/createErrorAccumulator.d.ts +1 -2
- package/dist/types/utils/createErrorAccumulator/index.d.ts +1 -2
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +0 -1
- package/dist/types/utils/cursorNear/isNear.d.ts +0 -1
- package/dist/types/utils/getAxisData/getAxisData.d.ts +0 -1
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts +0 -1
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -2
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts +1 -2
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts +3 -4
- package/dist/types/utils/getPoints/getPoints.d.ts +1 -2
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +1 -2
- package/dist/types/utils/getTicks/getTicks.d.ts +1 -2
- package/dist/types/utils/index.d.ts +10 -11
- package/dist/types/utils/logger/index.d.ts +1 -2
- package/dist/types/utils/logger/logger.d.ts +1 -2
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +0 -1
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts +1 -2
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts +0 -1
- package/dist/types/utils/ssr/index.d.ts +1 -2
- package/dist/types/utils/ssr/ssr.d.ts +0 -1
- package/dist/types/utils/textBound/textBound.d.ts +1 -2
- package/package.json +69 -94
- package/dist/cjs/charts/lineChart/fragments/lineChartPath2.js +0 -1
- package/dist/cjs/components/focusRing/focusRing2.js +0 -1
- package/dist/cjs/components/path/path2.js +0 -1
- package/dist/cjs/components/plot/plot2.js +0 -1
- package/dist/cjs/react-charts.css +0 -2
- package/dist/esm/charts/barChart/barChart.js +0 -12
- package/dist/esm/charts/barChart/barChartStructure.js +0 -69
- package/dist/esm/charts/barChart/context/barChartContext.js +0 -3
- package/dist/esm/charts/barChart/context/buildBarContextValues.js +0 -156
- package/dist/esm/charts/barChart/fragments/barChartPath.js +0 -76
- package/dist/esm/charts/barChart/fragments/barChartSeparator.js +0 -61
- package/dist/esm/charts/barChart/fragments/barChartXAxis.js +0 -33
- package/dist/esm/charts/barChart/fragments/barChartYAxis.js +0 -30
- package/dist/esm/charts/barChart/index.js +0 -1
- package/dist/esm/charts/barChart/utils/countBarChildren.js +0 -9
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.js +0 -82
- package/dist/esm/charts/barChart/utils/getBarDataValue.js +0 -11
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.js +0 -2
- package/dist/esm/charts/constants/chartDefaults.js +0 -19
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.js +0 -3
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.js +0 -4
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.js +0 -67
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +0 -46
- package/dist/esm/charts/customBackgroundChart/index.js +0 -1
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.js +0 -13
- package/dist/esm/charts/lineChart/context/buildLineContextValue.js +0 -139
- package/dist/esm/charts/lineChart/context/lineChartContext.js +0 -3
- package/dist/esm/charts/lineChart/fragments/lineChartPath2.js +0 -122
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.js +0 -58
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.js +0 -61
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.js +0 -34
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.js +0 -39
- package/dist/esm/charts/lineChart/hook/useAutoClick.js +0 -14
- package/dist/esm/charts/lineChart/hook/useHover.js +0 -18
- package/dist/esm/charts/lineChart/hook/useIndicator.js +0 -15
- package/dist/esm/charts/lineChart/index.js +0 -1
- package/dist/esm/charts/lineChart/lineChart.js +0 -12
- package/dist/esm/charts/lineChart/lineChartStructure.js +0 -92
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.js +0 -19
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.js +0 -19
- package/dist/esm/charts/lineChart/utils/getCoordinates.js +0 -49
- package/dist/esm/charts/lineChart/utils/getDataValues.js +0 -11
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.js +0 -111
- package/dist/esm/charts/lineChart/utils/getPathData.js +0 -9
- package/dist/esm/charts/lineChart/utils/getProjection.js +0 -42
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.js +0 -2
- package/dist/esm/charts/lineChart/utils/getTicks.js +0 -24
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.js +0 -17
- package/dist/esm/charts/lineChart/utils/tickTextPosition.js +0 -34
- package/dist/esm/charts/lineChart/utils/validations.js +0 -68
- package/dist/esm/charts/pieChart/context/buildPieContextValue.js +0 -28
- package/dist/esm/charts/pieChart/context/pieChartContext.js +0 -3
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.js +0 -17
- package/dist/esm/charts/pieChart/fragments/pieChartPath.js +0 -53
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.js +0 -42
- package/dist/esm/charts/pieChart/index.js +0 -1
- package/dist/esm/charts/pieChart/pieChart.js +0 -8
- package/dist/esm/charts/pieChart/pieChartStructure.js +0 -58
- package/dist/esm/charts/pieChart/utils/accessibility.js +0 -11
- package/dist/esm/charts/pieChart/utils/buildL.js +0 -4
- package/dist/esm/charts/pieChart/utils/calculatePoint.js +0 -5
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.js +0 -29
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.js +0 -29
- package/dist/esm/charts/pieChart/utils/rotationDirection.js +0 -12
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.js +0 -24
- package/dist/esm/components/axisChart/xAxis/xAxis.js +0 -37
- package/dist/esm/components/axisChart/yAxis/yAxis.js +0 -36
- package/dist/esm/components/bar/bar.js +0 -67
- package/dist/esm/components/bar/bar.type.js +0 -5
- package/dist/esm/components/bar/utils/accessibility.js +0 -14
- package/dist/esm/components/bar/utils/buildD.js +0 -23
- package/dist/esm/components/bar/utils/getSegments.js +0 -13
- package/dist/esm/components/chartText/chartText.js +0 -7
- package/dist/esm/components/focusRing/components/FocusRingInline.js +0 -17
- package/dist/esm/components/focusRing/components/FocusRingRenderer.js +0 -14
- package/dist/esm/components/focusRing/components/FocusRingSeparate.js +0 -15
- package/dist/esm/components/focusRing/focusRing2.js +0 -18
- package/dist/esm/components/focusRing/hooks/useFocusRingData.js +0 -28
- package/dist/esm/components/focusRing/utils/composeRefs.js +0 -8
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.js +0 -75
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.js +0 -73
- package/dist/esm/components/foreignObject/foreignObject.js +0 -10
- package/dist/esm/components/line/line.js +0 -8
- package/dist/esm/components/node/components/circle/circle.js +0 -11
- package/dist/esm/components/node/components/hexagon/hexagon.js +0 -16
- package/dist/esm/components/node/components/pentagon/pentagon.js +0 -16
- package/dist/esm/components/node/components/square/square.js +0 -15
- package/dist/esm/components/node/components/star/star.js +0 -16
- package/dist/esm/components/node/components/straight/straight.js +0 -16
- package/dist/esm/components/node/components/triangle/triangle.js +0 -19
- package/dist/esm/components/node/node.js +0 -74
- package/dist/esm/components/node/node.types.js +0 -10
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.js +0 -9
- package/dist/esm/components/path/components/nodePath/nodePath.js +0 -35
- package/dist/esm/components/path/path2.js +0 -129
- package/dist/esm/components/plot/components/circle/circle.js +0 -11
- package/dist/esm/components/plot/components/square/square.js +0 -12
- package/dist/esm/components/plot/components/triangle/triangle.js +0 -12
- package/dist/esm/components/plot/plot.types.js +0 -18
- package/dist/esm/components/plot/plot2.js +0 -68
- package/dist/esm/components/svgContainer/svgContainer.js +0 -33
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.js +0 -2
- package/dist/esm/components/tick/tick.js +0 -8
- package/dist/esm/components/tick/tick.types.js +0 -5
- package/dist/esm/components/zoomArea/components/HandlerIcon.js +0 -13
- package/dist/esm/components/zoomArea/components/LineRenderer.js +0 -14
- package/dist/esm/components/zoomArea/components/SelectionArea.js +0 -36
- package/dist/esm/components/zoomArea/components/ZoomHandler.js +0 -69
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.js +0 -56
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.js +0 -70
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.js +0 -12
- package/dist/esm/components/zoomArea/hooks/useZoomData.js +0 -19
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.js +0 -17
- package/dist/esm/components/zoomArea/utils/indexRounding.js +0 -8
- package/dist/esm/components/zoomArea/utils/interactionConfig.js +0 -11
- package/dist/esm/components/zoomArea/utils/pathGeneration.js +0 -21
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.js +0 -20
- package/dist/esm/components/zoomArea/utils/selectionConfig.js +0 -15
- package/dist/esm/components/zoomArea/zoomArea.js +0 -131
- package/dist/esm/components/zoomArea/zoomArea.type.js +0 -6
- package/dist/esm/hooks/useFocus/useFocus.js +0 -14
- package/dist/esm/hooks/useHover/useHover.js +0 -14
- package/dist/esm/hooks/useId/useId.js +0 -7
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.js +0 -56
- package/dist/esm/index.js +0 -36
- package/dist/esm/react-charts.css +0 -2
- package/dist/esm/types/canvas.type.js +0 -6
- package/dist/esm/types/errors.type.js +0 -20
- package/dist/esm/types/focusConfig.type.js +0 -16
- package/dist/esm/types/position.enum.js +0 -9
- package/dist/esm/types/unit.enum.js +0 -5
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +0 -10
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.js +0 -16
- package/dist/esm/utils/buildErrors/buildErrors.js +0 -19
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.js +0 -2
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +0 -19
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +0 -25
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +0 -13
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.js +0 -20
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.js +0 -26
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.js +0 -14
- package/dist/esm/utils/buildTickValues/buildTickValues.js +0 -14
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.js +0 -29
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.js +0 -35
- package/dist/esm/utils/cursorNear/isNear.js +0 -2
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.js +0 -39
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.js +0 -11
- package/dist/esm/utils/getCoordinates/getCoordinates.js +0 -43
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.js +0 -2
- package/dist/esm/utils/getPoints/getPoints.js +0 -22
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.js +0 -3
- package/dist/esm/utils/getTicks/getTicks.js +0 -14
- package/dist/esm/utils/logger/logger.js +0 -25
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +0 -10
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.js +0 -2
- package/dist/esm/utils/shadowSvg/shadowSvg.js +0 -10
- package/dist/esm/utils/ssr/ssr.js +0 -11
- package/dist/esm/utils/textBound/textBound.js +0 -18
- package/dist/types/assets/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChart.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChart.type.d.ts.map +0 -1
- package/dist/types/charts/barChart/barChartStructure.d.ts.map +0 -1
- package/dist/types/charts/barChart/context/barChartContext.d.ts.map +0 -1
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts.map +0 -1
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/index.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts.map +0 -1
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +0 -1
- package/dist/types/charts/constants/chartDefaults.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/index.d.ts.map +0 -1
- package/dist/types/charts/customBackgroundChart/utils/accessibility.d.ts.map +0 -1
- package/dist/types/charts/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts.map +0 -1
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useHover.d.ts.map +0 -1
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts.map +0 -1
- package/dist/types/charts/lineChart/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChart.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChart.type.d.ts.map +0 -1
- package/dist/types/charts/lineChart/lineChartStructure.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getCoordinates.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getPathData.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getProjection.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/getTicks.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/index.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/tickTextPosition.d.ts.map +0 -1
- package/dist/types/charts/lineChart/utils/validations.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts.map +0 -1
- package/dist/types/charts/pieChart/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChart.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChart.type.d.ts.map +0 -1
- package/dist/types/charts/pieChart/pieChartStructure.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/accessibility.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/buildL.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/index.d.ts.map +0 -1
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts.map +0 -1
- package/dist/types/components/axisChart/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +0 -1
- package/dist/types/components/axisChart/utils/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts.map +0 -1
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/index.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts.map +0 -1
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts.map +0 -1
- package/dist/types/components/bar/bar.d.ts.map +0 -1
- package/dist/types/components/bar/bar.type.d.ts.map +0 -1
- package/dist/types/components/bar/index.d.ts.map +0 -1
- package/dist/types/components/bar/utils/accessibility.d.ts.map +0 -1
- package/dist/types/components/bar/utils/buildD.d.ts.map +0 -1
- package/dist/types/components/bar/utils/getSegments.d.ts.map +0 -1
- package/dist/types/components/chartText/chartText.d.ts.map +0 -1
- package/dist/types/components/chartText/chartText.types.d.ts.map +0 -1
- package/dist/types/components/chartText/index.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingRenderer.d.ts.map +0 -1
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts.map +0 -1
- package/dist/types/components/focusRing/focusRing.d.ts.map +0 -1
- package/dist/types/components/focusRing/focusRing.types.d.ts.map +0 -1
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts.map +0 -1
- package/dist/types/components/focusRing/index.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/composeRefs.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/createAdaptiveFocusRings.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/createBoundingBoxFocusRings.d.ts.map +0 -1
- package/dist/types/components/focusRing/utils/utils.types.d.ts.map +0 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts.map +0 -1
- package/dist/types/components/foreignObject/foreignObject.types.d.ts.map +0 -1
- package/dist/types/components/foreignObject/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts.map +0 -1
- package/dist/types/components/line/index.d.ts.map +0 -1
- package/dist/types/components/line/line.d.ts.map +0 -1
- package/dist/types/components/line/line.types.d.ts.map +0 -1
- package/dist/types/components/node/components/circle/circle.d.ts.map +0 -1
- package/dist/types/components/node/components/hexagon/hexagon.d.ts.map +0 -1
- package/dist/types/components/node/components/index.d.ts.map +0 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts.map +0 -1
- package/dist/types/components/node/components/square/square.d.ts.map +0 -1
- package/dist/types/components/node/components/star/star.d.ts.map +0 -1
- package/dist/types/components/node/components/straight/straight.d.ts.map +0 -1
- package/dist/types/components/node/components/triangle/triangle.d.ts.map +0 -1
- package/dist/types/components/node/index.d.ts.map +0 -1
- package/dist/types/components/node/node.d.ts.map +0 -1
- package/dist/types/components/node/node.types.d.ts.map +0 -1
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +0 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts.map +0 -1
- package/dist/types/components/path/index.d.ts.map +0 -1
- package/dist/types/components/path/path.d.ts.map +0 -1
- package/dist/types/components/path/path.types.d.ts.map +0 -1
- package/dist/types/components/plot/components/circle/circle.d.ts.map +0 -1
- package/dist/types/components/plot/components/index.d.ts.map +0 -1
- package/dist/types/components/plot/components/square/square.d.ts.map +0 -1
- package/dist/types/components/plot/components/triangle/triangle.d.ts.map +0 -1
- package/dist/types/components/plot/index.d.ts.map +0 -1
- package/dist/types/components/plot/plot.d.ts.map +0 -1
- package/dist/types/components/plot/plot.types.d.ts.map +0 -1
- package/dist/types/components/svgContainer/index.d.ts.map +0 -1
- package/dist/types/components/svgContainer/svgContainer.d.ts.map +0 -1
- package/dist/types/components/svgContainer/svgContainer.types.d.ts.map +0 -1
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +0 -1
- package/dist/types/components/svgContainer/utils/index.d.ts.map +0 -1
- package/dist/types/components/tick/index.d.ts.map +0 -1
- package/dist/types/components/tick/tick.d.ts.map +0 -1
- package/dist/types/components/tick/tick.types.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts.map +0 -1
- package/dist/types/components/zoomArea/components/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +0 -1
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts.map +0 -1
- package/dist/types/components/zoomArea/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/index.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts.map +0 -1
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts.map +0 -1
- package/dist/types/components/zoomArea/zoomArea.d.ts.map +0 -1
- package/dist/types/components/zoomArea/zoomArea.type.d.ts.map +0 -1
- package/dist/types/hooks/index.d.ts.map +0 -1
- package/dist/types/hooks/useFocus/useFocus.d.ts.map +0 -1
- package/dist/types/hooks/useFocus/useFocus.types.d.ts.map +0 -1
- package/dist/types/hooks/useHover/useHover.d.ts.map +0 -1
- package/dist/types/hooks/useHover/useHover.types.d.ts.map +0 -1
- package/dist/types/hooks/useId/index.d.ts.map +0 -1
- package/dist/types/hooks/useId/useId.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveCanvas/index.d.ts.map +0 -1
- package/dist/types/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/tests/index.d.ts +0 -2
- package/dist/types/tests/index.d.ts.map +0 -1
- package/dist/types/tests/render/render.d.ts +0 -15
- package/dist/types/tests/render/render.d.ts.map +0 -1
- package/dist/types/types/canvas.type.d.ts.map +0 -1
- package/dist/types/types/errors.type.d.ts.map +0 -1
- package/dist/types/types/focusConfig.type.d.ts.map +0 -1
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/types/position.enum.d.ts.map +0 -1
- package/dist/types/types/unit.enum.d.ts.map +0 -1
- package/dist/types/types/valueFormatter.type.d.ts.map +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +0 -1
- package/dist/types/utils/adaptLegacyFocusConfig/index.d.ts.map +0 -1
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/buildErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildBarChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildLineChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/barChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/lineChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +0 -1
- package/dist/types/utils/buildErrors/index.d.ts.map +0 -1
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts.map +0 -1
- package/dist/types/utils/classNames/classNames.d.ts.map +0 -1
- package/dist/types/utils/createErrorAccumulator/createErrorAccumulator.d.ts.map +0 -1
- package/dist/types/utils/createErrorAccumulator/index.d.ts.map +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +0 -1
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +0 -1
- package/dist/types/utils/cursorNear/isNear.d.ts.map +0 -1
- package/dist/types/utils/getAxisData/getAxisData.d.ts.map +0 -1
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +0 -1
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts.map +0 -1
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts.map +0 -1
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts.map +0 -1
- package/dist/types/utils/getPoints/getPoints.d.ts.map +0 -1
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +0 -1
- package/dist/types/utils/getTicks/getTicks.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/logger/index.d.ts.map +0 -1
- package/dist/types/utils/logger/logger.d.ts.map +0 -1
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +0 -1
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts.map +0 -1
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts.map +0 -1
- package/dist/types/utils/ssr/index.d.ts.map +0 -1
- package/dist/types/utils/ssr/ssr.d.ts.map +0 -1
- package/dist/types/utils/textBound/textBound.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(r,e)=>{for(var a in e)if(__webpack_require__.o(e,a)&&!__webpack_require__.o(r,a))Object.defineProperty(r,a,{enumerable:true,get:e[a]})}})();(()=>{__webpack_require__.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e)})();(()=>{__webpack_require__.r=r=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});Object.defineProperty(r,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{buildSeparatorXOutOfRangeError:()=>buildSeparatorXOutOfRangeError,buildSeparatorYOutOfRangeError:()=>buildSeparatorYOutOfRangeError,buildBarDistributionError:()=>buildBarChartErrors_js_namespaceObject.buildBarDistributionError,buildInvalidRadiusError:()=>buildPieChartErrors_js_namespaceObject.buildInvalidRadiusError,buildSeparatorXBreakAxisError:()=>buildSeparatorXBreakAxisError,buildInvalidTotalError:()=>buildPieChartErrors_js_namespaceObject.buildInvalidTotalError,buildSeparatorYBreakAxisError:()=>buildSeparatorYBreakAxisError,buildEmptyDataArrayError:()=>buildPieChartErrors_js_namespaceObject.buildEmptyDataArrayError,buildBarNegativeValueError:()=>buildBarChartErrors_js_namespaceObject.buildBarNegativeValueError,ErrorsRecord:()=>ErrorsRecord,BuildError:()=>BuildError,buildInnerRadiusOutOfRangeError:()=>buildPieChartErrors_js_namespaceObject.buildInnerRadiusOutOfRangeError,buildInvalidGroupError:()=>buildPieChartErrors_js_namespaceObject.buildInvalidGroupError,buildInvalidInnerRadiusError:()=>buildPieChartErrors_js_namespaceObject.buildInvalidInnerRadiusError,buildBarValueError:()=>buildBarChartErrors_js_namespaceObject.buildBarValueError,buildPieDataKeyNotFoundError:()=>buildPieChartErrors_js_namespaceObject.buildPieDataKeyNotFoundError,buildDataKeyNotFoundError:()=>buildDataKeyNotFoundError,buildSegmentValueError:()=>buildPieChartErrors_js_namespaceObject.buildSegmentValueError,buildCanvasDimensionsError:()=>buildCanvasDimensionsError,buildError:()=>buildError,buildSegmentNegativeValueError:()=>buildPieChartErrors_js_namespaceObject.buildSegmentNegativeValueError,buildBarDataKeyNotFoundError:()=>buildBarChartErrors_js_namespaceObject.buildBarDataKeyNotFoundError});const barChartErrors_js_namespaceObject=require("./constants/errors/barChartErrors.js");const lineChartErrors_js_namespaceObject=require("./constants/errors/lineChartErrors.js");const pieChartErrors_js_namespaceObject=require("./constants/errors/pieChartErrors.js");const buildBarChartErrors_js_namespaceObject=require("./charts/buildBarChartErrors.js");const buildPieChartErrors_js_namespaceObject=require("./charts/buildPieChartErrors.js");const BuildError={INVALID_X_TICK:"INVALID_X_TICK",...barChartErrors_js_namespaceObject.BarChartErrors,...lineChartErrors_js_namespaceObject.LineChartErrors,...pieChartErrors_js_namespaceObject.PieChartErrors};const INVALID_X_TICK_ERROR="[getXTicks] Invalid X tick values calculated";const ErrorsRecord={...barChartErrors_js_namespaceObject.BarChartErrorsRecord,...lineChartErrors_js_namespaceObject.LineChartErrorsRecord,...pieChartErrors_js_namespaceObject.PieChartErrorsRecord,INVALID_X_TICK:new Error(INVALID_X_TICK_ERROR)};const buildError=r=>ErrorsRecord[r];const buildDataKeyNotFoundError=r=>new Error(`DataKey "${r}" not found in dataset`);const buildCanvasDimensionsError=(r,e)=>new Error(`Canvas dimensions validation failed: width=${r}, height=${e} (both must be > 0)`);const buildSeparatorXBreakAxisError=r=>new Error(`Invalid xBreakAxis value: '${r}' cannot be parsed as number`);const buildSeparatorYBreakAxisError=r=>new Error(`Invalid yBreakAxis value: '${r}' cannot be parsed as number`);const buildSeparatorXOutOfRangeError=(r,e,a)=>new Error(`xBreakAxis value ${r} is outside data range (${e} - ${a})`);const buildSeparatorYOutOfRangeError=(r,e,a)=>new Error(`yBreakAxis value ${r} is outside data range (${e} - ${a})`);exports.BuildError=__webpack_exports__.BuildError;exports.ErrorsRecord=__webpack_exports__.ErrorsRecord;exports.buildBarDataKeyNotFoundError=__webpack_exports__.buildBarDataKeyNotFoundError;exports.buildBarDistributionError=__webpack_exports__.buildBarDistributionError;exports.buildBarNegativeValueError=__webpack_exports__.buildBarNegativeValueError;exports.buildBarValueError=__webpack_exports__.buildBarValueError;exports.buildCanvasDimensionsError=__webpack_exports__.buildCanvasDimensionsError;exports.buildDataKeyNotFoundError=__webpack_exports__.buildDataKeyNotFoundError;exports.buildEmptyDataArrayError=__webpack_exports__.buildEmptyDataArrayError;exports.buildError=__webpack_exports__.buildError;exports.buildInnerRadiusOutOfRangeError=__webpack_exports__.buildInnerRadiusOutOfRangeError;exports.buildInvalidGroupError=__webpack_exports__.buildInvalidGroupError;exports.buildInvalidInnerRadiusError=__webpack_exports__.buildInvalidInnerRadiusError;exports.buildInvalidRadiusError=__webpack_exports__.buildInvalidRadiusError;exports.buildInvalidTotalError=__webpack_exports__.buildInvalidTotalError;exports.buildPieDataKeyNotFoundError=__webpack_exports__.buildPieDataKeyNotFoundError;exports.buildSegmentNegativeValueError=__webpack_exports__.buildSegmentNegativeValueError;exports.buildSegmentValueError=__webpack_exports__.buildSegmentValueError;exports.buildSeparatorXBreakAxisError=__webpack_exports__.buildSeparatorXBreakAxisError;exports.buildSeparatorXOutOfRangeError=__webpack_exports__.buildSeparatorXOutOfRangeError;exports.buildSeparatorYBreakAxisError=__webpack_exports__.buildSeparatorYBreakAxisError;exports.buildSeparatorYOutOfRangeError=__webpack_exports__.buildSeparatorYOutOfRangeError;for(var __rspack_i in __webpack_exports__)if(-1===["BuildError","ErrorsRecord","buildBarDataKeyNotFoundError","buildBarDistributionError","buildBarNegativeValueError","buildBarValueError","buildCanvasDimensionsError","buildDataKeyNotFoundError","buildEmptyDataArrayError","buildError","buildInnerRadiusOutOfRangeError","buildInvalidGroupError","buildInvalidInnerRadiusError","buildInvalidRadiusError","buildInvalidTotalError","buildPieDataKeyNotFoundError","buildSegmentNegativeValueError","buildSegmentValueError","buildSeparatorXBreakAxisError","buildSeparatorXOutOfRangeError","buildSeparatorYBreakAxisError","buildSeparatorYOutOfRangeError"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(r,e)=>{for(var a in e)if(__webpack_require__.o(e,a)&&!__webpack_require__.o(r,a))Object.defineProperty(r,a,{enumerable:true,get:e[a]})}})();(()=>{__webpack_require__.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e)})();(()=>{__webpack_require__.r=r=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});Object.defineProperty(r,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{buildBarDataKeyNotFoundError:()=>buildBarDataKeyNotFoundError,buildBarDistributionError:()=>buildBarDistributionError,buildBarNegativeValueError:()=>buildBarNegativeValueError,buildBarValueError:()=>buildBarValueError});const buildBarDataKeyNotFoundError=r=>new Error(`DataKey "${r}" not found in dataset`);const buildBarValueError=(r,e)=>new Error(`Invalid value "${r}" for bar with dataKey "${e}". Must be a valid number.`);const buildBarNegativeValueError=(r,e)=>new Error(`Negative value ${r} not allowed for bar with dataKey "${e}" in current configuration`);const buildBarDistributionError=(r,e)=>new Error(`Invalid bar distribution for "${r}": ${e}`);exports.buildBarDataKeyNotFoundError=__webpack_exports__.buildBarDataKeyNotFoundError;exports.buildBarDistributionError=__webpack_exports__.buildBarDistributionError;exports.buildBarNegativeValueError=__webpack_exports__.buildBarNegativeValueError;exports.buildBarValueError=__webpack_exports__.buildBarValueError;for(var __rspack_i in __webpack_exports__)if(-1===["buildBarDataKeyNotFoundError","buildBarDistributionError","buildBarNegativeValueError","buildBarValueError"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(r,e)=>{for(var o in e)if(__webpack_require__.o(e,o)&&!__webpack_require__.o(r,o))Object.defineProperty(r,o,{enumerable:true,get:e[o]})}})();(()=>{__webpack_require__.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e)})();(()=>{__webpack_require__.r=r=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});Object.defineProperty(r,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{buildProjectionBoundsError:()=>buildProjectionBoundsError,buildProjectionXOutOfRangeError:()=>buildProjectionXOutOfRangeError,buildProjectionYOutOfRangeError:()=>buildProjectionYOutOfRangeError});const buildProjectionBoundsError=(r,e)=>new Error(`Invalid projection bounds - upper projection (${r}) must be below lower projection (${e})`);const buildProjectionXOutOfRangeError=(r,e)=>new Error(`${e?"Upper":"Lower"} projection X coordinate (${r}) is outside valid range (0-100)`);const buildProjectionYOutOfRangeError=(r,e,o)=>new Error(`${o?"Upper":"Lower"} projection Y coordinate (${r}) is outside chart area (0-${e})`);exports.buildProjectionBoundsError=__webpack_exports__.buildProjectionBoundsError;exports.buildProjectionXOutOfRangeError=__webpack_exports__.buildProjectionXOutOfRangeError;exports.buildProjectionYOutOfRangeError=__webpack_exports__.buildProjectionYOutOfRangeError;for(var __rspack_i in __webpack_exports__)if(-1===["buildProjectionBoundsError","buildProjectionXOutOfRangeError","buildProjectionYOutOfRangeError"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(r,e)=>{for(var a in e)if(__webpack_require__.o(e,a)&&!__webpack_require__.o(r,a))Object.defineProperty(r,a,{enumerable:true,get:e[a]})}})();(()=>{__webpack_require__.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e)})();(()=>{__webpack_require__.r=r=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});Object.defineProperty(r,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{buildEmptyDataArrayError:()=>buildEmptyDataArrayError,buildInnerRadiusOutOfRangeError:()=>buildInnerRadiusOutOfRangeError,buildInvalidGroupError:()=>buildInvalidGroupError,buildInvalidInnerRadiusError:()=>buildInvalidInnerRadiusError,buildInvalidRadiusError:()=>buildInvalidRadiusError,buildInvalidTotalError:()=>buildInvalidTotalError,buildPieDataKeyNotFoundError:()=>buildPieDataKeyNotFoundError,buildSegmentNegativeValueError:()=>buildSegmentNegativeValueError,buildSegmentValueError:()=>buildSegmentValueError});const buildSegmentValueError=(r,e)=>new Error(`Invalid segment value for "${e}": "${r}" is not a valid number`);const buildSegmentNegativeValueError=(r,e)=>new Error(`Negative segment value for "${e}": ${r} (values must be >= 0)`);const buildPieDataKeyNotFoundError=r=>new Error(`DataKey "${r}" not found in PieChart dataset`);const buildEmptyDataArrayError=r=>new Error(`Data array for key "${r}" is empty`);const buildInvalidTotalError=(r,e)=>new Error(`Invalid total value for "${r}": ${e} (must be > 0)`);const buildInvalidGroupError=(r,e,a)=>new Error(`Invalid group at index ${e} in "${r}": missing required property "${a}"`);const buildInvalidRadiusError=r=>new Error(`Invalid radius value: "${r}" (must be a positive number)`);const buildInvalidInnerRadiusError=r=>new Error(`Invalid innerRadius value: "${r}" (must be a positive number or zero)`);const buildInnerRadiusOutOfRangeError=(r,e)=>new Error(`innerRadius (${r}) must be less than radius (${e}) for donut chart rendering`);exports.buildEmptyDataArrayError=__webpack_exports__.buildEmptyDataArrayError;exports.buildInnerRadiusOutOfRangeError=__webpack_exports__.buildInnerRadiusOutOfRangeError;exports.buildInvalidGroupError=__webpack_exports__.buildInvalidGroupError;exports.buildInvalidInnerRadiusError=__webpack_exports__.buildInvalidInnerRadiusError;exports.buildInvalidRadiusError=__webpack_exports__.buildInvalidRadiusError;exports.buildInvalidTotalError=__webpack_exports__.buildInvalidTotalError;exports.buildPieDataKeyNotFoundError=__webpack_exports__.buildPieDataKeyNotFoundError;exports.buildSegmentNegativeValueError=__webpack_exports__.buildSegmentNegativeValueError;exports.buildSegmentValueError=__webpack_exports__.buildSegmentValueError;for(var __rspack_i in __webpack_exports__)if(-1===["buildEmptyDataArrayError","buildInnerRadiusOutOfRangeError","buildInvalidGroupError","buildInvalidInnerRadiusError","buildInvalidRadiusError","buildInvalidTotalError","buildPieDataKeyNotFoundError","buildSegmentNegativeValueError","buildSegmentValueError"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(r,e)=>{for(var _ in e)if(__webpack_require__.o(e,_)&&!__webpack_require__.o(r,_))Object.defineProperty(r,_,{enumerable:true,get:e[_]})}})();(()=>{__webpack_require__.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e)})();(()=>{__webpack_require__.r=r=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});Object.defineProperty(r,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{BarChartErrorMessages:()=>BarChartErrorMessages});const BarChartErrorMessages={BAR_CHART_AXIS_INSUFFICIENT_TICKS:"Axis requires at least two ticks for proper bar scaling",BAR_CHART_AXIS_INVALID_SCALE:"Invalid axis scale for current bar values",BAR_CHART_DISTRIBUTION_INSUFFICIENT_SPACE:"Insufficient space for bar distribution with current configuration",BAR_CHART_DISTRIBUTION_INVALID_GAP:"Invalid gap between bars - must be >= 0 and allow bar rendering",BAR_CHART_DISTRIBUTION_OVERLAP:"Bar distribution results in overlapping bars",BAR_CHART_EMPTY_DATA:"No valid data entries found for bar chart rendering",BAR_CHART_INSUFFICIENT_SPACE_HEIGHT:"Insufficient height to render bars. Consider reducing bar count or increasing chart height",BAR_CHART_INSUFFICIENT_SPACE_WIDTH:"Insufficient width to render bars. Consider reducing bar width or increasing chart width",BAR_CHART_INVALID_VALUE:"Bar value must be a valid number for rendering",BAR_CHART_NEGATIVE_VALUE:"Negative values are not supported in this bar configuration",BAR_CHART_NO_DATA:"Data validation failed: no data provided for bar chart rendering",BAR_CHART_OVERLAP:"Bars are overlapping due to insufficient spacing",BAR_CHART_SEPARATOR_X_OUT_OF_RANGE:"Separator X position is outside valid bar range",BAR_CHART_SEPARATOR_Y_OUT_OF_RANGE:"Separator Y position is outside valid bar range",BAR_CHART_STACK_INVALID:"Invalid stacking configuration - all bars in stack must have consistent configuration",BAR_CHART_STACK_MISSING_VALUES:"Stack is incomplete - all bars in stack must have valid values"};exports.BarChartErrorMessages=__webpack_exports__.BarChartErrorMessages;for(var __rspack_i in __webpack_exports__)if(-1===["BarChartErrorMessages"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var a in _)if(__webpack_require__.o(_,a)&&!__webpack_require__.o(e,a))Object.defineProperty(e,a,{enumerable:true,get:_[a]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{LineChartErrorMessages:()=>LineChartErrorMessages});const LineChartErrorMessages={LINE_CHART_INVALID_CANVAS:"Canvas dimensions validation failed: both width and height must be > 0",LINE_CHART_NO_DATA:"Data validation failed: no data provided for chart rendering",LINE_CHART_PATH_ALL_VALUES_NULL:"Path data cannot be generated - all Y values are null or undefined",LINE_CHART_PATH_INSUFFICIENT_POINTS:"Unable to calculate curved path with insufficient points (minimum 2 required)",LINE_CHART_PATH_INVALID_DATAKEY:"DataKey must be a valid string",LINE_CHART_PROJECTION_INVALID_BOUNDS:"Invalid projection bounds - upper projection must be below lower projection",LINE_CHART_PROJECTION_LOWER_X_OUT_OF_RANGE:"Lower projection X coordinate is outside valid range (0-100)",LINE_CHART_PROJECTION_LOWER_Y_OUT_OF_RANGE:"Lower projection Y coordinate is outside chart area",LINE_CHART_PROJECTION_UPPER_X_OUT_OF_RANGE:"Upper projection X coordinate is outside valid range (0-100)",LINE_CHART_PROJECTION_UPPER_Y_OUT_OF_RANGE:"Upper projection Y coordinate is outside chart area",LINE_CHART_SEPARATOR_INVALID_COORDINATES:"Invalid separator position - coordinates overlap, cannot render separator",LINE_CHART_SEPARATOR_INVALID_X_BREAK_AXIS:"Invalid xBreakAxis value: cannot be parsed as number",LINE_CHART_SEPARATOR_INVALID_Y_BREAK_AXIS:"Invalid yBreakAxis value: cannot be parsed as number",LINE_CHART_SEPARATOR_X_OUT_OF_RANGE:"xBreakAxis value is outside data range",LINE_CHART_SEPARATOR_Y_OUT_OF_RANGE:"yBreakAxis value is outside data range",LINE_CHART_SINGLE_POINT:"Data validation failed: single data point provided, minimum 2 required for line chart",LINE_CHART_X_AXIS_IDENTICAL_VALUES:"X-axis range validation failed: minimum and maximum values are identical, cannot render chart line",LINE_CHART_X_AXIS_INSUFFICIENT_TICKS:"X-axis tick calculation: insufficient data points (1/2 minimum required)",LINE_CHART_X_AXIS_ZERO_LENGTH:"X-axis geometry validation failed: start and end X coordinates are identical (x1=x2), axis has zero length",LINE_CHART_Y_AXIS_IDENTICAL_VALUES:"Y-axis range validation failed: minimum and maximum values are identical, cannot render chart line",LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS:"Y-axis tick calculation: insufficient data points (1/2 minimum required)",LINE_CHART_Y_AXIS_ZERO_LENGTH:"Y-axis geometry validation failed: start and end Y coordinates are identical (y1=y2), axis has zero length"};exports.LineChartErrorMessages=__webpack_exports__.LineChartErrorMessages;for(var __rspack_i in __webpack_exports__)if(-1===["LineChartErrorMessages"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{PieChartErrorMessages:()=>PieChartErrorMessages});const PieChartErrorMessages={PIE_CHART_EMPTY_DATA:"PieChart data is empty or undefined",PIE_CHART_INNER_RADIUS_OUT_OF_RANGE:"Inner radius must be less than radius",PIE_CHART_INVALID_CANVAS_DIMENSIONS:"Invalid canvas dimensions for PieChart",PIE_CHART_INVALID_DATA_KEY:"Invalid or missing dataKey in PieChart data",PIE_CHART_INVALID_INNER_RADIUS:"Invalid innerRadius value",PIE_CHART_INVALID_RADIUS:"Invalid radius value",PIE_CHART_INVALID_SEGMENT_VALUE:"Invalid segment value (non-numeric)",PIE_CHART_INVALID_TOTAL:"PieChart total value is zero or invalid",PIE_CHART_MISSING_SEGMENT_NAME:"Segment is missing required name property",PIE_CHART_NEGATIVE_SEGMENT_VALUE:"Segment value cannot be negative"};exports.PieChartErrorMessages=__webpack_exports__.PieChartErrorMessages;for(var __rspack_i in __webpack_exports__)if(-1===["PieChartErrorMessages"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(_,r)=>{for(var A in r)if(__webpack_require__.o(r,A)&&!__webpack_require__.o(_,A))Object.defineProperty(_,A,{enumerable:true,get:r[A]})}})();(()=>{__webpack_require__.o=(_,r)=>Object.prototype.hasOwnProperty.call(_,r)})();(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{BarChartErrorsRecord:()=>BarChartErrorsRecord,BarChartErrors:()=>BarChartErrors});const barChartErrorMessages_js_namespaceObject=require("../errorMessages/barChartErrorMessages.js");const BarChartErrors={BAR_CHART_AXIS_INSUFFICIENT_TICKS:"BAR_CHART_AXIS_INSUFFICIENT_TICKS",BAR_CHART_AXIS_INVALID_SCALE:"BAR_CHART_AXIS_INVALID_SCALE",BAR_CHART_DISTRIBUTION_INSUFFICIENT_SPACE:"BAR_CHART_DISTRIBUTION_INSUFFICIENT_SPACE",BAR_CHART_DISTRIBUTION_INVALID_GAP:"BAR_CHART_DISTRIBUTION_INVALID_GAP",BAR_CHART_DISTRIBUTION_OVERLAP:"BAR_CHART_DISTRIBUTION_OVERLAP",BAR_CHART_EMPTY_DATA:"BAR_CHART_EMPTY_DATA",BAR_CHART_INSUFFICIENT_SPACE_HEIGHT:"BAR_CHART_INSUFFICIENT_SPACE_HEIGHT",BAR_CHART_INSUFFICIENT_SPACE_WIDTH:"BAR_CHART_INSUFFICIENT_SPACE_WIDTH",BAR_CHART_INVALID_VALUE:"BAR_CHART_INVALID_VALUE",BAR_CHART_NEGATIVE_VALUE:"BAR_CHART_NEGATIVE_VALUE",BAR_CHART_NO_DATA:"BAR_CHART_NO_DATA",BAR_CHART_OVERLAP:"BAR_CHART_OVERLAP",BAR_CHART_SEPARATOR_X_OUT_OF_RANGE:"BAR_CHART_SEPARATOR_X_OUT_OF_RANGE",BAR_CHART_SEPARATOR_Y_OUT_OF_RANGE:"BAR_CHART_SEPARATOR_Y_OUT_OF_RANGE",BAR_CHART_STACK_INVALID:"BAR_CHART_STACK_INVALID",BAR_CHART_STACK_MISSING_VALUES:"BAR_CHART_STACK_MISSING_VALUES"};const BarChartErrorsRecord=Object.entries(barChartErrorMessages_js_namespaceObject.BarChartErrorMessages).reduce((_,[r,A])=>{_[r]=new Error(A);return _},{});exports.BarChartErrors=__webpack_exports__.BarChartErrors;exports.BarChartErrorsRecord=__webpack_exports__.BarChartErrorsRecord;for(var __rspack_i in __webpack_exports__)if(-1===["BarChartErrors","BarChartErrorsRecord"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(_,A)=>{for(var r in A)if(__webpack_require__.o(A,r)&&!__webpack_require__.o(_,r))Object.defineProperty(_,r,{enumerable:true,get:A[r]})}})();(()=>{__webpack_require__.o=(_,A)=>Object.prototype.hasOwnProperty.call(_,A)})();(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{LineChartErrorsRecord:()=>LineChartErrorsRecord,LineChartErrors:()=>LineChartErrors});const lineChartErrorMessages_js_namespaceObject=require("../errorMessages/lineChartErrorMessages.js");const LineChartErrors={LINE_CHART_INVALID_CANVAS:"LINE_CHART_INVALID_CANVAS",LINE_CHART_NO_DATA:"LINE_CHART_NO_DATA",LINE_CHART_PATH_ALL_VALUES_NULL:"LINE_CHART_PATH_ALL_VALUES_NULL",LINE_CHART_PATH_INSUFFICIENT_POINTS:"LINE_CHART_PATH_INSUFFICIENT_POINTS",LINE_CHART_PATH_INVALID_DATAKEY:"LINE_CHART_PATH_INVALID_DATAKEY",LINE_CHART_PROJECTION_INVALID_BOUNDS:"LINE_CHART_PROJECTION_INVALID_BOUNDS",LINE_CHART_PROJECTION_LOWER_X_OUT_OF_RANGE:"LINE_CHART_PROJECTION_LOWER_X_OUT_OF_RANGE",LINE_CHART_PROJECTION_LOWER_Y_OUT_OF_RANGE:"LINE_CHART_PROJECTION_LOWER_Y_OUT_OF_RANGE",LINE_CHART_PROJECTION_UPPER_X_OUT_OF_RANGE:"LINE_CHART_PROJECTION_UPPER_X_OUT_OF_RANGE",LINE_CHART_PROJECTION_UPPER_Y_OUT_OF_RANGE:"LINE_CHART_PROJECTION_UPPER_Y_OUT_OF_RANGE",LINE_CHART_SEPARATOR_INVALID_COORDINATES:"LINE_CHART_SEPARATOR_INVALID_COORDINATES",LINE_CHART_SEPARATOR_INVALID_X_BREAK_AXIS:"LINE_CHART_SEPARATOR_INVALID_X_BREAK_AXIS",LINE_CHART_SEPARATOR_INVALID_Y_BREAK_AXIS:"LINE_CHART_SEPARATOR_INVALID_Y_BREAK_AXIS",LINE_CHART_SEPARATOR_X_OUT_OF_RANGE:"LINE_CHART_SEPARATOR_X_OUT_OF_RANGE",LINE_CHART_SEPARATOR_Y_OUT_OF_RANGE:"LINE_CHART_SEPARATOR_Y_OUT_OF_RANGE",LINE_CHART_SINGLE_POINT:"LINE_CHART_SINGLE_POINT",LINE_CHART_X_AXIS_IDENTICAL_VALUES:"LINE_CHART_X_AXIS_IDENTICAL_VALUES",LINE_CHART_X_AXIS_INSUFFICIENT_TICKS:"LINE_CHART_X_AXIS_INSUFFICIENT_TICKS",LINE_CHART_X_AXIS_ZERO_LENGTH:"LINE_CHART_X_AXIS_ZERO_LENGTH",LINE_CHART_Y_AXIS_IDENTICAL_VALUES:"LINE_CHART_Y_AXIS_IDENTICAL_VALUES",LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS:"LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS",LINE_CHART_Y_AXIS_ZERO_LENGTH:"LINE_CHART_Y_AXIS_ZERO_LENGTH"};const LineChartErrorsRecord=Object.entries(lineChartErrorMessages_js_namespaceObject.LineChartErrorMessages).reduce((_,[A,r])=>{_[A]=new Error(r);return _},{});exports.LineChartErrors=__webpack_exports__.LineChartErrors;exports.LineChartErrorsRecord=__webpack_exports__.LineChartErrorsRecord;for(var __rspack_i in __webpack_exports__)if(-1===["LineChartErrors","LineChartErrorsRecord"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(_,r)=>{for(var e in r)if(__webpack_require__.o(r,e)&&!__webpack_require__.o(_,e))Object.defineProperty(_,e,{enumerable:true,get:r[e]})}})();(()=>{__webpack_require__.o=(_,r)=>Object.prototype.hasOwnProperty.call(_,r)})();(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{PieChartErrorsRecord:()=>PieChartErrorsRecord,PieChartErrors:()=>PieChartErrors});const pieChartErrorMessages_js_namespaceObject=require("../errorMessages/pieChartErrorMessages.js");const PieChartErrors={PIE_CHART_EMPTY_DATA:"PIE_CHART_EMPTY_DATA",PIE_CHART_INNER_RADIUS_OUT_OF_RANGE:"PIE_CHART_INNER_RADIUS_OUT_OF_RANGE",PIE_CHART_INVALID_CANVAS_DIMENSIONS:"PIE_CHART_INVALID_CANVAS_DIMENSIONS",PIE_CHART_INVALID_DATA_KEY:"PIE_CHART_INVALID_DATA_KEY",PIE_CHART_INVALID_INNER_RADIUS:"PIE_CHART_INVALID_INNER_RADIUS",PIE_CHART_INVALID_RADIUS:"PIE_CHART_INVALID_RADIUS",PIE_CHART_INVALID_SEGMENT_VALUE:"PIE_CHART_INVALID_SEGMENT_VALUE",PIE_CHART_INVALID_TOTAL:"PIE_CHART_INVALID_TOTAL",PIE_CHART_MISSING_SEGMENT_NAME:"PIE_CHART_MISSING_SEGMENT_NAME",PIE_CHART_NEGATIVE_SEGMENT_VALUE:"PIE_CHART_NEGATIVE_SEGMENT_VALUE"};const PieChartErrorsRecord=Object.entries(pieChartErrorMessages_js_namespaceObject.PieChartErrorMessages).reduce((_,[r,e])=>{_[r]=new Error(e);return _},{});exports.PieChartErrors=__webpack_exports__.PieChartErrors;exports.PieChartErrorsRecord=__webpack_exports__.PieChartErrorsRecord;for(var __rspack_i in __webpack_exports__)if(-1===["PieChartErrors","PieChartErrorsRecord"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_modules__={"./buildErrors"(_){_.exports=require("./buildErrors.js")}};var __webpack_module_cache__={};function __webpack_require__(_){var e=__webpack_module_cache__[_];if(void 0!==e)return e.exports;var r=__webpack_module_cache__[_]={exports:{}};__webpack_modules__[_](r,r.exports,__webpack_require__);return r.exports}(()=>{__webpack_require__.n=_=>{var e=_&&_.__esModule?()=>_["default"]:()=>_;__webpack_require__.d(e,{a:e});return e}})();(()=>{__webpack_require__.d=(_,e)=>{for(var r in e)if(__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r))Object.defineProperty(_,r,{enumerable:true,get:e[r]})}})();(()=>{__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e)})();(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};(()=>{__webpack_require__.r(__webpack_exports__);var _=__webpack_require__("./buildErrors");var e={};for(const r in _)if("default"!==r)e[r]=()=>_[r];__webpack_require__.d(__webpack_exports__,e)})();for(var __rspack_i in __webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{buildTickValues:()=>buildTickValues,getDivisor:()=>getDivisor});const getDivisor=e=>{if(e%3===0)return 3;if(e%4===0)return 4;if(e%5===0)return 5;if(e%2===0)return 2;return 1};const buildTickValues=e=>{if(0===e.length)return{numeric:{max:2,min:0,step:1}};const _=Math.min(...e.map(e=>parseFloat(e)));const r=Math.max(...e.map(e=>parseFloat(e)));const t=Math.abs(r-_);const i=t/2;return{numeric:{max:r,min:_,step:i}}};exports.buildTickValues=__webpack_exports__.buildTickValues;exports.getDivisor=__webpack_exports__.getDivisor;for(var __rspack_i in __webpack_exports__)if(-1===["buildTickValues","getDivisor"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{classNames:()=>classNames});const classNames=(...e)=>e.flatMap(e=>{if("string"==typeof e)return e;if(Array.isArray(e))return e;return Object.entries(e).filter(([,e])=>e).map(([e])=>e)}).join(" ");exports.classNames=__webpack_exports__.classNames;for(var __rspack_i in __webpack_exports__)if(-1===["classNames"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,r)=>{for(var _ in r)if(__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_))Object.defineProperty(e,_,{enumerable:true,get:r[_]})}})();(()=>{__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{createErrorAccumulator:()=>createErrorAccumulator});const createErrorAccumulator=e=>{const r=new Map;const _=()=>{const e={};r.forEach((r,_)=>{e[_]=r});return e};const t=(t,c)=>{if(!c)return;const o={...c,type:t};const a=r.get(t)||[];a.push(o);r.set(t,a);if(e){const r=_();const t={};Object.entries(r).forEach(([e,r])=>{const _=e;Array.isArray(r)&&r.length,t[_]=r});e(t)}};const c=()=>{r.clear();if(e)e({})};return{addError:t,clearErrors:c,getAccumulatedErrors:_}};exports.createErrorAccumulator=__webpack_exports__.createErrorAccumulator;for(var __rspack_i in __webpack_exports__)if(-1===["createErrorAccumulator"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,r)=>{for(var _ in r)if(__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_))Object.defineProperty(e,_,{enumerable:true,get:r[_]})}})();(()=>{__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{createErrorAccumulator:()=>external_createErrorAccumulator_js_namespaceObject.createErrorAccumulator});const external_createErrorAccumulator_js_namespaceObject=require("./createErrorAccumulator.js");exports.createErrorAccumulator=__webpack_exports__.createErrorAccumulator;for(var __rspack_i in __webpack_exports__)if(-1===["createErrorAccumulator"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,r)=>{for(var _ in r)if(__webpack_require__.o(r,_)&&!__webpack_require__.o(e,_))Object.defineProperty(e,_,{enumerable:true,get:r[_]})}})();(()=>{__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{cssGradientToSVG:()=>cssGradientToSVG});const jsx_runtime_namespaceObject=require("react/jsx-runtime");const logger_js_namespaceObject=require("../logger/logger.js");const cssGradientToSVG=(e,r="gradientePath")=>{const _=e.split(",").map(e=>e.trim());const t=parseInt(_[0],10);const s=_.slice(1).map(e=>{const[r,_]=e.split(" ");return{color:r,offset:_}});const a="0%";let c="0%",o="0%",n="0%";switch(t){case 180:n="100%";break;case 90:o="100%";break;case 270:c="100%";break;default:logger_js_namespaceObject.logger.warn(`Unsupported gradient angle: ${t}\xb0. Supported angles are 90, 180, 270.`);return(0,jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment,{})}return(0,jsx_runtime_namespaceObject.jsx)("defs",{children:(0,jsx_runtime_namespaceObject.jsx)("linearGradient",{id:r,x1:c,x2:o,y1:a,y2:n,children:s.map((e,r)=>(0,jsx_runtime_namespaceObject.jsx)("stop",{offset:e.offset,stopColor:e.color},`${r}-${e.offset}`.toString()))})})};exports.cssGradientToSVG=__webpack_exports__.cssGradientToSVG;for(var __rspack_i in __webpack_exports__)if(-1===["cssGradientToSVG"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);for(var __rspack_i in __webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(_,e)=>{for(var r in e)if(__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r))Object.defineProperty(_,r,{enumerable:true,get:e[r]})}})();(()=>{__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e)})();(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{isNear:()=>isNear});const isNear=(_,e,r=1)=>_>=e-r&&_<=e+r;exports.isNear=__webpack_exports__.isNear;for(var __rspack_i in __webpack_exports__)if(-1===["isNear"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(_,e)=>{for(var r in e)if(__webpack_require__.o(e,r)&&!__webpack_require__.o(_,r))Object.defineProperty(_,r,{enumerable:true,get:e[r]})}})();(()=>{__webpack_require__.o=(_,e)=>Object.prototype.hasOwnProperty.call(_,e)})();(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getAxisData:()=>getAxisData});const getAxisData=(_,e)=>_.map(_=>_[e]);exports.getAxisData=__webpack_exports__.getAxisData;for(var __rspack_i in __webpack_exports__)if(-1===["getAxisData"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,n)=>{for(var t in n)if(__webpack_require__.o(n,t)&&!__webpack_require__.o(e,t))Object.defineProperty(e,t,{enumerable:true,get:n[t]})}})();(()=>{__webpack_require__.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getCanvasDimensions:()=>getCanvasDimensions});const ssr_js_namespaceObject=require("../ssr/ssr.js");const unit_enum_js_namespaceObject=require("../../types/unit.enum.js");const stringToUnit={[unit_enum_js_namespaceObject.Unit.PERCENTAGE]:unit_enum_js_namespaceObject.Unit.PERCENTAGE,[unit_enum_js_namespaceObject.Unit.REM]:unit_enum_js_namespaceObject.Unit.REM};const Dimension={HEIGHT:"HEIGHT",WIDTH:"WIDTH"};const UNIT_VALUE_REGEX=/^(\d+(\.\d+)?)(px|rem|%)?$/;const MATCH_VALUE_INDEX=1;const MATCH_UNIT_INDEX=3;const parseDimensionValue=e=>{if("number"==typeof e)return{unit:void 0,value:e};const n=e.match(UNIT_VALUE_REGEX);if(!n)throw new Error(`Invalid string format: "${e}"`);const t=parseFloat(n[MATCH_VALUE_INDEX]);const _=n[MATCH_UNIT_INDEX];return{unit:stringToUnit[_],value:t}};const calculatePercentage=(e,n,t)=>{const _=t.parentElement;if(!_)return 0;const s=n===Dimension.WIDTH?_.clientWidth:_.clientHeight;return e/100*s};const calculateRem=e=>{const n=(0,ssr_js_namespaceObject.safeDocument)();if(!n)return 16*e;const t=(0,ssr_js_namespaceObject.safeGetComputedStyle)(n.documentElement);if(!t)return 16*e;const _=parseFloat(t.fontSize);return e*(_||16)};const getCanvasDimensions=({canvasHeight:e,canvasWidth:n,svgElement:t})=>{const{unit:_,value:s}=parseDimensionValue(n);const a=_===unit_enum_js_namespaceObject.Unit.PERCENTAGE?calculatePercentage(s,Dimension.WIDTH,t):_===unit_enum_js_namespaceObject.Unit.REM?calculateRem(s):s;const{unit:r,value:c}=parseDimensionValue(e);const i=r===unit_enum_js_namespaceObject.Unit.PERCENTAGE?calculatePercentage(c,Dimension.HEIGHT,t):r===unit_enum_js_namespaceObject.Unit.REM?calculateRem(c):c;return{parsedCanvasHeight:i,parsedCanvasWidth:a}};exports.getCanvasDimensions=__webpack_exports__.getCanvasDimensions;for(var __rspack_i in __webpack_exports__)if(-1===["getCanvasDimensions"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getChildrenAttr:()=>getChildrenAttr});const external_react_namespaceObject=require("react");const getChildrenAttr=({attrName:e,children:_,originalValue:r,updateValue:t})=>{let a="";external_react_namespaceObject.Children.toArray(_).forEach(_=>{if((0,external_react_namespaceObject.isValidElement)(_)){const r=_.props[e];if(r)a+=r}});if(a!==r)t(a)};exports.getChildrenAttr=__webpack_exports__.getChildrenAttr;for(var __rspack_i in __webpack_exports__)if(-1===["getChildrenAttr"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var t in _)if(__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t))Object.defineProperty(e,t,{enumerable:true,get:_[t]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getYCoordinates:()=>getYCoordinates,getXCoordinates:()=>getXCoordinates});const position_enum_js_namespaceObject=require("../../types/position.enum.js");const getXCoordinates=({canvasHeight:e,canvasWidth:_,customBreakAxis:t,extraSpaceBottomY:o,extraSpaceLeftX:r,extraSpaceRightX:i,extraSpaceTopY:s,position:n})=>{if(n===position_enum_js_namespaceObject.Positions.TOP)return{x1:r,x2:_-i,y1:s,y2:s};if(n===position_enum_js_namespaceObject.Positions.CENTER)return{x1:r,x2:_-i,y1:e/2,y2:e/2};if(n===position_enum_js_namespaceObject.Positions.CUSTOM)return{x1:r,x2:_-i,y1:t,y2:t};return{x1:r,x2:_-i,y1:e-o,y2:e-o}};const getYCoordinates=({canvasHeight:e,canvasWidth:_,customBreakAxis:t,extraSpaceBottomY:o,extraSpaceLeftX:r,extraSpaceRightX:i,extraSpaceTopY:s,position:n})=>{if(n===position_enum_js_namespaceObject.Positions.RIGHT)return{x1:_-i,x2:_-i,y1:s,y2:e-o};if(n===position_enum_js_namespaceObject.Positions.CENTER)return{x1:_/2,x2:_/2,y1:s,y2:e-o};if(n===position_enum_js_namespaceObject.Positions.CUSTOM)return{x1:t,x2:t,y1:s,y2:e-o};return{x1:r,x2:r,y1:s,y2:e-o}};exports.getXCoordinates=__webpack_exports__.getXCoordinates;exports.getYCoordinates=__webpack_exports__.getYCoordinates;for(var __rspack_i in __webpack_exports__)if(-1===["getXCoordinates","getYCoordinates"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getDataFingerprint:()=>getDataFingerprint});const getDataFingerprint=e=>JSON.stringify(e);exports.getDataFingerprint=__webpack_exports__.getDataFingerprint;for(var __rspack_i in __webpack_exports__)if(-1===["getDataFingerprint"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,t)=>{for(var _ in t)if(__webpack_require__.o(t,_)&&!__webpack_require__.o(e,_))Object.defineProperty(e,_,{enumerable:true,get:t[_]})}})();(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getPoints:()=>getPoints});const getPoints=(e,t,_)=>t.map(t=>{if(isNaN(Number(t))){const _=e.find(e=>String(e.value)===String(t));return _?_.position:0}const{index:r,tick:o}=e.reduce((e,_,r)=>Math.abs(Number(_.value)-Number(t))<=Math.abs(Number(e.tick.value)-Number(t))?{index:r,tick:_}:e,{index:0,tick:e[0]});const i=Number(t);const s=Number(o.value);if(i!==s){const t=e.map(e=>Number(e.value));const a=Math.min(...t);const n=Math.max(...t);if(i<a)return e.at(0)?.position;if(i>n)return e.at(-1)?.position;const p=Math.abs(s-i);const c=i>s;const u=c?e[r+1]:e[r-1];const b=Math.abs(Number(u.value)-s);const k=100*p/b;const l=Math.abs(o.position-u.position);const f=l*k/100;if(_)return c?o.position+f:o.position-f;return c?o.position-f:o.position+f}return o.position});exports.getPoints=__webpack_exports__.getPoints;for(var __rspack_i in __webpack_exports__)if(-1===["getPoints"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var t in _)if(__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t))Object.defineProperty(e,t,{enumerable:true,get:_[t]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getTickTextYCoordinate:()=>getTickTextYCoordinate,getTickTextXCoordinate:()=>getTickTextXCoordinate});const position_enum_js_namespaceObject=require("../../types/position.enum.js");const getTickTextXCoordinate=(e,_,t)=>{if(e===position_enum_js_namespaceObject.Positions.RIGHT)return _+t;return _-t};const getTickTextYCoordinate=(e,_,t,r)=>{if(e===position_enum_js_namespaceObject.Positions.TOP)return t;return _+t+r};exports.getTickTextXCoordinate=__webpack_exports__.getTickTextXCoordinate;exports.getTickTextYCoordinate=__webpack_exports__.getTickTextYCoordinate;for(var __rspack_i in __webpack_exports__)if(-1===["getTickTextXCoordinate","getTickTextYCoordinate"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var t in _)if(__webpack_require__.o(_,t)&&!__webpack_require__.o(e,t))Object.defineProperty(e,t,{enumerable:true,get:_[t]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{getXTicks:()=>getXTicks,getYTicks:()=>getYTicks});const getXTicks=({initPos:e,maxSpaceAvailable:_,otherAxisSpace:t,securitySpace:r,tickValues:c})=>{const o=c.length-1;const s=_-t-r;const p=s/o;const i=c.map((_,t)=>{const c=t*p;return{position:e+c+r/2,value:_}});return i};const getYTicks=({initPos:e,maxSpaceAvailable:_,needAjusted:t,otherAxisSpace:r,securitySpace:c,tickValues:o})=>{const s=o.length-1;const p=_-r-c;const i=p/s;const a=t?c/2:0;const n=o.map((_,t)=>{const r=t*i;return{position:e-r-a,value:_}});return n};exports.getXTicks=__webpack_exports__.getXTicks;exports.getYTicks=__webpack_exports__.getYTicks;for(var __rspack_i in __webpack_exports__)if(-1===["getXTicks","getYTicks"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_modules__={"./ajustedTextSpace/ajustedTextSpace"(e){e.exports=require("./ajustedTextSpace/ajustedTextSpace.js")},"./buildTickValues/buildTickValues"(e){e.exports=require("./buildTickValues/buildTickValues.js")},"./classNames/classNames"(e){e.exports=require("./classNames/classNames.js")},"./cssGradientToSvg/cssGradientToSvg"(e){e.exports=require("./cssGradientToSvg/cssGradientToSvg.js")},"./cursorNear/isNear"(e){e.exports=require("./cursorNear/isNear.js")},"./logger"(e){e.exports=require("./logger/index.js")},"./shadowSvg/shadowSvg"(e){e.exports=require("./shadowSvg/shadowSvg.js")},"./shadowSvg/shadowSvg.types"(e){e.exports=require("./shadowSvg/shadowSvg.types.js")},"./ssr"(e){e.exports=require("./ssr/index.js")},"./textBound/textBound"(e){e.exports=require("./textBound/textBound.js")}};var __webpack_module_cache__={};function __webpack_require__(e){var _=__webpack_module_cache__[e];if(void 0!==_)return _.exports;var r=__webpack_module_cache__[e]={exports:{}};__webpack_modules__[e](r,r.exports,__webpack_require__);return r.exports}(()=>{__webpack_require__.n=e=>{var _=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(_,{a:_});return _}})();(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};(()=>{__webpack_require__.r(__webpack_exports__);var e=__webpack_require__("./ajustedTextSpace/ajustedTextSpace");var _={};for(const r in e)if("default"!==r)_[r]=()=>e[r];__webpack_require__.d(__webpack_exports__,_);var r=__webpack_require__("./buildTickValues/buildTickValues");var _={};for(const e in r)if("default"!==e)_[e]=()=>r[e];__webpack_require__.d(__webpack_exports__,_);var a=__webpack_require__("./classNames/classNames");var _={};for(const e in a)if("default"!==e)_[e]=()=>a[e];__webpack_require__.d(__webpack_exports__,_);var s=__webpack_require__("./cssGradientToSvg/cssGradientToSvg");var _={};for(const e in s)if("default"!==e)_[e]=()=>s[e];__webpack_require__.d(__webpack_exports__,_);var t=__webpack_require__("./cursorNear/isNear");var _={};for(const e in t)if("default"!==e)_[e]=()=>t[e];__webpack_require__.d(__webpack_exports__,_);var o=__webpack_require__("./logger");var _={};for(const e in o)if("default"!==e)_[e]=()=>o[e];__webpack_require__.d(__webpack_exports__,_);var c=__webpack_require__("./shadowSvg/shadowSvg");var _={};for(const e in c)if("default"!==e)_[e]=()=>c[e];__webpack_require__.d(__webpack_exports__,_);var i=__webpack_require__("./shadowSvg/shadowSvg.types");var _={};for(const e in i)if("default"!==e)_[e]=()=>i[e];__webpack_require__.d(__webpack_exports__,_);var u=__webpack_require__("./ssr");var _={};for(const e in u)if("default"!==e)_[e]=()=>u[e];__webpack_require__.d(__webpack_exports__,_);var p=__webpack_require__("./textBound/textBound");var _={};for(const e in p)if("default"!==e)_[e]=()=>p[e];__webpack_require__.d(__webpack_exports__,_)})();for(var __rspack_i in __webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{resetLogger:()=>external_logger_js_namespaceObject.resetLogger,configureLogger:()=>external_logger_js_namespaceObject.configureLogger,logger:()=>external_logger_js_namespaceObject.logger});const external_logger_js_namespaceObject=require("./logger.js");exports.configureLogger=__webpack_exports__.configureLogger;exports.logger=__webpack_exports__.logger;exports.resetLogger=__webpack_exports__.resetLogger;for(var __rspack_i in __webpack_exports__)if(-1===["configureLogger","logger","resetLogger"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e={
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,r)=>{for(var o in r)if(__webpack_require__.o(r,o)&&!__webpack_require__.o(e,o))Object.defineProperty(e,o,{enumerable:true,get:r[o]})}})();(()=>{__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{configureLogger:()=>configureLogger,logger:()=>logger,resetLogger:()=>resetLogger});const isProduction=()=>{if("u">typeof globalThis&&"process"in globalThis){const e=globalThis.process;return e?.env?.NODE_ENV==="production"}return false};const DEFAULT_CONFIG={enabled:!isProduction(),minLevel:"info",prefix:"[Kubit Charts]"};let config={...DEFAULT_CONFIG};const LOG_LEVELS={debug:0,error:3,info:1,warn:2};const configureLogger=e=>{config={...config,...e}};const resetLogger=()=>{config={...DEFAULT_CONFIG}};const shouldLog=e=>{if(!config.enabled)return false;return LOG_LEVELS[e]>=LOG_LEVELS[config.minLevel]};const formatMessage=e=>`${config.prefix} ${e}`;const debug=(e,...r)=>{if(shouldLog("debug"))formatMessage(e)};const info=(e,...r)=>{if(shouldLog("info"))console.info(formatMessage(e),...r)};const warn=(e,...r)=>{if(shouldLog("warn"))console.warn(formatMessage(e),...r)};const error=(e,...r)=>{if(shouldLog("error"))console.error(formatMessage(e),...r)};const logger={debug,error,info,warn};exports.configureLogger=__webpack_exports__.configureLogger;exports.logger=__webpack_exports__.logger;exports.resetLogger=__webpack_exports__.resetLogger;for(var __rspack_i in __webpack_exports__)if(-1===["configureLogger","logger","resetLogger"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{parseStringToNumberPx:()=>parseStringToNumberPx});const unit_enum_js_namespaceObject=require("../../types/unit.enum.js");const UNIT_VALUE_REGEX=/^(\d+(\.\d+)?)(px|rem|%)?$/;const MATCH_VALUE_INDEX=1;const MATCH_UNIT_INDEX=3;const parseStringToNumberPx=e=>{if("number"==typeof e)return e;const _=e.match(UNIT_VALUE_REGEX);if(!_)throw new Error(`Invalid string format: "${e}"`);const r=_[MATCH_VALUE_INDEX];const t=_[MATCH_UNIT_INDEX];if(t===unit_enum_js_namespaceObject.Unit.REM)return 16*parseFloat(r);return parseFloat(r)};exports.parseStringToNumberPx=__webpack_exports__.parseStringToNumberPx;for(var __rspack_i in __webpack_exports__)if(-1===["parseStringToNumberPx"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{pickCustomAttributes:()=>pickCustomAttributes});const pickCustomAttributes=e=>{if(!e)return{};return Object.entries(e).reduce((e,[_,r])=>{if((_.startsWith("aria-")||_.startsWith("data-")||"role"===_)&&null!=r)e[_]=String(r);return e},{})};exports.pickCustomAttributes=__webpack_exports__.pickCustomAttributes;for(var __rspack_i in __webpack_exports__)if(-1===["pickCustomAttributes"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{ShadowSvg:()=>ShadowSvg});const jsx_runtime_namespaceObject=require("react/jsx-runtime");const ShadowSvg=({height:e="140%",width:_="140%",x:r="-20%",y:a="-20%",...t})=>(0,jsx_runtime_namespaceObject.jsx)("defs",{children:(0,jsx_runtime_namespaceObject.jsx)("filter",{height:e,id:t.id,width:_,x:r,y:a,children:(0,jsx_runtime_namespaceObject.jsx)("feDropShadow",{...t.shadowSvgConfig})})});exports.ShadowSvg=__webpack_exports__.ShadowSvg;for(var __rspack_i in __webpack_exports__)if(-1===["ShadowSvg"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.r=_=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(_,Symbol.toStringTag,{value:"Module"});Object.defineProperty(_,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);for(var __rspack_i in __webpack_exports__)exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,_)=>{for(var r in _)if(__webpack_require__.o(_,r)&&!__webpack_require__.o(e,r))Object.defineProperty(e,r,{enumerable:true,get:_[r]})}})();(()=>{__webpack_require__.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{isBrowser:()=>external_ssr_js_namespaceObject.isBrowser,safeQuerySelector:()=>external_ssr_js_namespaceObject.safeQuerySelector,isServer:()=>external_ssr_js_namespaceObject.isServer,safeExecute:()=>external_ssr_js_namespaceObject.safeExecute,safeExecuteWithFallback:()=>external_ssr_js_namespaceObject.safeExecuteWithFallback,createSVGElement:()=>external_ssr_js_namespaceObject.createSVGElement,safeGetComputedStyle:()=>external_ssr_js_namespaceObject.safeGetComputedStyle,safeWindow:()=>external_ssr_js_namespaceObject.safeWindow,safeDocument:()=>external_ssr_js_namespaceObject.safeDocument});const external_ssr_js_namespaceObject=require("./ssr.js");exports.createSVGElement=__webpack_exports__.createSVGElement;exports.isBrowser=__webpack_exports__.isBrowser;exports.isServer=__webpack_exports__.isServer;exports.safeDocument=__webpack_exports__.safeDocument;exports.safeExecute=__webpack_exports__.safeExecute;exports.safeExecuteWithFallback=__webpack_exports__.safeExecuteWithFallback;exports.safeGetComputedStyle=__webpack_exports__.safeGetComputedStyle;exports.safeQuerySelector=__webpack_exports__.safeQuerySelector;exports.safeWindow=__webpack_exports__.safeWindow;for(var __rspack_i in __webpack_exports__)if(-1===["createSVGElement","isBrowser","isServer","safeDocument","safeExecute","safeExecuteWithFallback","safeGetComputedStyle","safeQuerySelector","safeWindow"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,r)=>{for(var t in r)if(__webpack_require__.o(r,t)&&!__webpack_require__.o(e,t))Object.defineProperty(e,t,{enumerable:true,get:r[t]})}})();(()=>{__webpack_require__.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{createSVGElement:()=>createSVGElement,isBrowser:()=>isBrowser,isServer:()=>isServer,safeDocument:()=>safeDocument,safeExecute:()=>safeExecute,safeExecuteWithFallback:()=>safeExecuteWithFallback,safeGetComputedStyle:()=>safeGetComputedStyle,safeQuerySelector:()=>safeQuerySelector,safeWindow:()=>safeWindow});const isBrowser=()=>"u">typeof window&&"u">typeof document;const isServer=()=>!isBrowser();const safeWindow=()=>isBrowser()?window:void 0;const safeDocument=()=>isBrowser()?document:void 0;const safeExecute=e=>{if(!isBrowser())return;try{return e()}catch(e){return}};const safeExecuteWithFallback=(e,r)=>safeExecute(e)??r;const createSVGElement=e=>{const r=safeDocument();if(!r)return;return r.createElementNS("http://www.w3.org/2000/svg",e)};const safeGetComputedStyle=e=>{const r=safeWindow();if(!r)return;return r.getComputedStyle(e)};const safeQuerySelector=e=>{const r=safeDocument();if(!r)return null;return r.querySelector(e)};exports.createSVGElement=__webpack_exports__.createSVGElement;exports.isBrowser=__webpack_exports__.isBrowser;exports.isServer=__webpack_exports__.isServer;exports.safeDocument=__webpack_exports__.safeDocument;exports.safeExecute=__webpack_exports__.safeExecute;exports.safeExecuteWithFallback=__webpack_exports__.safeExecuteWithFallback;exports.safeGetComputedStyle=__webpack_exports__.safeGetComputedStyle;exports.safeQuerySelector=__webpack_exports__.safeQuerySelector;exports.safeWindow=__webpack_exports__.safeWindow;for(var __rspack_i in __webpack_exports__)if(-1===["createSVGElement","isBrowser","isServer","safeDocument","safeExecute","safeExecuteWithFallback","safeGetComputedStyle","safeQuerySelector","safeWindow"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";var __webpack_require__={};(()=>{__webpack_require__.d=(e,t)=>{for(var _ in t)if(__webpack_require__.o(t,_)&&!__webpack_require__.o(e,_))Object.defineProperty(e,_,{enumerable:true,get:t[_]})}})();(()=>{__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__webpack_require__.r=e=>{if("u">typeof Symbol&&Symbol.toStringTag)Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:true})}})();var __webpack_exports__={};__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{textBound:()=>textBound});const ssr_js_namespaceObject=require("../ssr/ssr.js");const textBound=({bound:e,data:t,fontSize:_,svgHeight:r,svgWidth:s,viewBox:o})=>{if(!(0,ssr_js_namespaceObject.isBrowser)()||!t.length)return 0;const a=(0,ssr_js_namespaceObject.safeDocument)();if(!a)return 0;const i=(0,ssr_js_namespaceObject.createSVGElement)("svg");if(!i)return 0;i.setAttribute("style","position: absolute; visibility: hidden; top: -9999px; left: -9999px;");i.setAttribute("viewBox",o);i.setAttribute("width",s);i.setAttribute("height",r);a.body.appendChild(i);const p=t.map(t=>{const r=(0,ssr_js_namespaceObject.createSVGElement)("text");if(!r)return 0;r.setAttribute("font-size",_);r.textContent=t;i.appendChild(r);const s=r.getBBox()[e];r.remove();return s});i.remove();return Math.max(...p,0)};exports.textBound=__webpack_exports__.textBound;for(var __rspack_i in __webpack_exports__)if(-1===["textBound"].indexOf(__rspack_i))exports[__rspack_i]=__webpack_exports__[__rspack_i];Object.defineProperty(exports,"__esModule",{value:true});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./storybook/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./barChart.type.mjs";import{BarChartStructure as r}from"./barChartStructure.mjs";import{BarChartPath as t}from"./fragments/barChartPath.mjs";import{BarChartSeparator as a}from"./fragments/barChartSeparator.mjs";import{BarChartXAxis as m}from"./fragments/barChartXAxis.mjs";import{BarChartYAxis as s}from"./fragments/barChartYAxis.mjs";const o=Object.assign(r,{Path:t,Separator:a,XAxis:m,YAxis:s});export{o as BarChart};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{Children as r,useMemo as o}from"react";import{SvgContainer as a}from"../../components/svgContainer/svgContainer.mjs";import{useId as s}from"../../hooks/useId/useId.mjs";import{useResponsiveCanvas as e}from"../../hooks/useResponsiveCanvas/useResponsiveCanvas.mjs";import{DefaultCanvasConfig as n}from"../../types/canvas.type.mjs";import{createErrorAccumulator as i}from"../../utils/createErrorAccumulator/index.mjs";import{getDataFingerprint as m}from"../../utils/getDataFingerprint/getDataFingerprint.mjs";import{BarChartContext as c}from"./context/barChartContext.mjs";import{buildBarContextValue as d}from"./context/buildBarContextValues.mjs";import{BarChartXAxis as p}from"./fragments/barChartXAxis.mjs";import{BarChartYAxis as h}from"./fragments/barChartYAxis.mjs";import{countBarChildren as u}from"./utils/countBarChildren.mjs";const f=({canvasConfig:f=n,caption:l,children:x,classNames:v,data:g,dataTestId:j="bar-chart",gapBetweenBars:C=0,height:b="100%",onErrors:B,orientation:E,pKey:I,role:w,tabIndex:y,width:A="100%",...k})=>{const D=s(j);const{parsedCanvas:F,parsedCanvasExtraSpace:H,viewBox:R}=e({canvasConfig:f,dataTestId:D,height:b,width:A});const S=F.width;const T=F.height;const W=u(x);const M=2*C;const N=[t(p,{},"default-x-axis"),t(h,{},"default-y-axis")];const P=r.toArray(x)||[];const V=N.concat(P);const X=Math.max(S,T,H??0);const Y=S/X;const q=T/X;const z=o(()=>i(B),[B]);const G=m(g);const J=o(()=>{z.clearErrors();return d({addError:(t,r)=>{z.addError(t,r)},ajustedX:Y,ajustedY:q,canvasHeight:T,canvasWidth:S,children:V,data:g,gapBetweenBars:M,orientation:E,pKey:I,viewBox:R})},[T,S,G,I,E,z.addError]);return t(a,{caption:l,className:v,dataTestId:D,height:b,role:w,tabIndex:y,viewBox:R,width:A,...k,children:t(c.Provider,{value:{...J,barChildrenCount:W,canvasExtraSpace:H,canvasHeight:T,canvasWidth:S,data:g,dataTestId:D,gapBetweenBars:C,orientation:E,pKey:I},children:x})})};export{f as BarChartStructure};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as t}from"react";const r=t({});export{r as BarChartContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BarOrientation as t}from"../../../components/bar/bar.type.mjs";import{ErrorType as _}from"../../../types/errors.type.mjs";import{Positions as o}from"../../../types/position.enum.mjs";import{BuildError as s,buildBarDistributionError as A,buildCanvasDimensionsError as i,buildError as r}from"../../../utils/buildErrors/buildErrors.mjs";import{getXCoordinates as e,getYCoordinates as n}from"../../../utils/getCoordinates/getCoordinates.mjs";import{getPoints as R}from"../../../utils/getPoints/getPoints.mjs";import{getXTicks as E,getYTicks as T}from"../../../utils/getTicks/getTicks.mjs";import{AXIS_VALIDATION as c,BAR_CHART_DEFAULTS as a,BAR_CHART_FALLBACK_DATA as C,BREAK_AXIS_DEFAULTS as I,CHART_CANVAS_DEFAULTS as L,SHARED_FALLBACK_DATA as m}from"../../constants/chartDefaults.mjs";import{countBarChildren as N}from"../utils/countBarChildren.mjs";import{getAxisExtraSpacing as S}from"../utils/getAxisExtraSpacing.mjs";const l=({addError:l,ajustedX:p,ajustedY:u,canvasHeight:O,canvasWidth:H,children:f,data:B,gapBetweenBars:K,orientation:U,pKey:X,viewBox:F})=>{let D;if(!B||0===B.length){const t={error:r(s.BAR_CHART_NO_DATA)};l?.("BAR_CHART_CONTEXT_ERROR",t);D=t}if(H<=0||O<=0){const t={error:i(H,O)};l?.("BAR_CHART_CONTEXT_ERROR",t);D=t}const g=N(f);const d=a.BAR_WIDTH;const V=g*d;const x=(g-1)*K;const Y=U===t.VERTICAL?H:O;if(V+x>Y){const t={error:A("all",`Insufficient space: requires ${V+x}px but only ${Y}px available`)};l?.("BAR_CHART_CONTEXT_ERROR",t);D=t}const h=B&&B.length>0?B:[{[C.FALLBACK_SECONDARY_KEY]:C.DEFAULT_X_VALUE,[X]:m.FALLBACK_PKEY_FIRST},{[C.FALLBACK_SECONDARY_KEY]:C.DEFAULT_X_VALUE,[X]:m.FALLBACK_PKEY_SECOND}];const v=H>0?H:L.SAFE_WIDTH;const b=O>0?O:L.SAFE_HEIGHT;const{barChartXPosition:j,barChartYPosition:y,extraSpaceBottomY:P,extraSpaceLeftX:k,extraSpaceRightX:M,extraSpaceTopY:W,securityXSpace:G,securityYSpace:Z,xAxisText:w,xBreakAxis:z,xData:Q,yAxisText:$,yBreakAxis:q,yData:J}=S({ajustedX:p,ajustedY:u,canvasHeight:b,canvasWidth:v,children:f,data:h,gapBetweenBars:K,orientation:U,pKey:X,viewBox:F});const tt=j!==o.TOP&&j!==o.BOTTOM;const t_=k+M;const to=E({initPos:k,maxSpaceAvailable:v,otherAxisSpace:t_,securitySpace:G,tickValues:Q});if((to??[]).some(({position:t})=>isNaN(t))){const t={error:r(s.INVALID_X_TICK)};l?.("BAR_CHART_CONTEXT_ERROR",t);D=t}if(to){const t=to.length<c.MIN_TICK_COUNT;const _=to.length>=c.MIN_TICK_COUNT&&new Set(to.map(t=>t.value)).size===c.UNIQUE_VALUE_THRESHOLD;if(t){const t={error:r(s.LINE_CHART_X_AXIS_INSUFFICIENT_TICKS)};l?.("BAR_CHART_X_AXIS_ERROR",t);if(!D)D=t}if(_){const t={error:r(s.LINE_CHART_X_AXIS_IDENTICAL_VALUES)};l?.("BAR_CHART_X_AXIS_ERROR",t);if(!D)D=t}}const ts=y!==o.LEFT&&y!==o.RIGHT;const tA=W+P;const ti=T({initPos:b-P,maxSpaceAvailable:b,needAjusted:U===t.HORIZONTAL,otherAxisSpace:tA,securitySpace:Z,tickValues:J});if(ti){const t=ti.length<c.MIN_TICK_COUNT;const _=ti.length>=c.MIN_TICK_COUNT&&new Set(ti.map(t=>t.value)).size===c.UNIQUE_VALUE_THRESHOLD;if(t){const t={error:r(s.LINE_CHART_Y_AXIS_INSUFFICIENT_TICKS)};l?.("BAR_CHART_Y_AXIS_ERROR",t);if(!D)D=t}if(_){const t={error:r(s.LINE_CHART_Y_AXIS_IDENTICAL_VALUES)};l?.("BAR_CHART_Y_AXIS_ERROR",t);if(!D)D=t}}const tr=tt?R(ti||[],[String(z)])[0]:I.DEFAULT_BREAK_VALUE;const te=ts?R(to||[],[String(q)])[0]:I.DEFAULT_BREAK_VALUE;const tn=e({canvasHeight:b,canvasWidth:v,customBreakAxis:Number(tr),extraSpaceBottomY:P,extraSpaceLeftX:k,extraSpaceRightX:M,extraSpaceTopY:W,position:j,securityYSpace:Z});const tR=n({canvasHeight:b,canvasWidth:v,customBreakAxis:Number(te),extraSpaceBottomY:P,extraSpaceLeftX:k,extraSpaceRightX:M,extraSpaceTopY:W,position:y,securityYSpace:Z});if(tn.x1===tn.x2){const t={error:r(s.LINE_CHART_X_AXIS_ZERO_LENGTH)};l?.("BAR_CHART_X_AXIS_ERROR",t);if(!D)D=t}if(tR.y1===tR.y2){const t={error:r(s.LINE_CHART_Y_AXIS_ZERO_LENGTH)};l?.("BAR_CHART_Y_AXIS_ERROR",t);if(!D)D=t}const tE={addError:l,crossXAxis:tt,crossYAxis:ts,data:h,extraSpaceBottomY:P,extraSpaceLeftX:k,extraSpaceRightX:M,extraSpaceTopY:W,securityXSpace:G,securityYSpace:Z,xAxisCoordinates:{coordinates:tn,tickValues:to||(D?[{position:I.DEFAULT_BREAK_VALUE,value:m.FALLBACK_PKEY_FIRST},{position:v,value:m.FALLBACK_PKEY_SECOND}]:[])},xAxisText:w,yAxisCoordinates:{coordinates:tR,tickValues:ti||(D?[{position:b,value:m.FALLBACK_PKEY_FIRST},{position:I.DEFAULT_BREAK_VALUE,value:m.FALLBACK_PKEY_SECOND}]:[])},yAxisText:$};if(D)return{...tE,error:{...D,type:_.BAR_CHART_CONTEXT_ERROR}};return tE};export{l as buildBarContextValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useContext as o,useEffect as r}from"react";import{Bar as n}from"../../../components/bar/bar.mjs";import{BarOrientation as e}from"../../../components/bar/bar.type.mjs";import{buildBarNegativeValueError as s,buildBarValueError as a,buildDataKeyNotFoundError as i}from"../../../utils/buildErrors/buildErrors.mjs";import{getPoints as c}from"../../../utils/getPoints/getPoints.mjs";import{BarChartContext as m}from"../context/barChartContext.mjs";const u=({barConfig:u,dataIdx:p,dataKey:d,focusConfig:R,onBlur:y,onClick:f,onFocus:l,onMouseEnter:b,onMouseLeave:x,order:C,tabIndex:A,...g})=>{const{addError:_,xAxisCoordinates:B,yAxisCoordinates:P,...j}=o(m);const{coordinates:v,tickValues:E}=B;const{coordinates:T,tickValues:h}=P;const H=j.orientation===e.VERTICAL;const K=H?j.pKey:d;const O=H?d:j.pKey;const N=j.data[p];const k=N?.[K];const S=N?.[O];const V=j.data[0];const w=V?Object.prototype.hasOwnProperty.call(V,d):false;const D=j.data.length>0;const I=Number(S);r(()=>{if(D&&!w)return void _?.("BAR_CHART_PATH_ERROR",{error:i(d)});if(isNaN(I))return void _?.("BAR_CHART_PATH_ERROR",{error:a(S,d)});if(I<0)_?.("BAR_CHART_PATH_ERROR",{error:s(I,d)})},[d,D,w,I,S]);const L=c(E,[String(k)],true)[0];const M=c(h,[String(S)])[0];const F=H?{x1:L,x2:L,y1:v.y1,y2:M}:{x1:T.x1,x2:L,y1:M,y2:M};const q=H?I:Number(k);const z={dataKey:d,dataIdx:p,xKey:K,yKey:O,xData:k,yData:S,value:q,dataPoint:N};const G=t=>{b?.(t,z)};const J=t=>{x?.(t,z)};const Q=t=>{f?.(t,z)};return t(n,{barConfig:u,currentBars:j.barChildrenCount,dataKey:d,extraSpacing:j.gapBetweenBars,focusConfig:R,order:C,orientation:j.orientation,tabIndex:A,xData:k,xKey:K,yData:S,yKey:O,onBlur:y,onClick:f?Q:void 0,onFocus:l,onMouseEnter:b?G:void 0,onMouseLeave:x?J:void 0,...F,...g})};export{u as BarChartPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fragment as t,jsx as o,jsxs as r}from"react/jsx-runtime";import{useContext as s,useEffect as a}from"react";import{BuildError as i,buildError as e,buildSeparatorXBreakAxisError as n,buildSeparatorXOutOfRangeError as R,buildSeparatorYBreakAxisError as c,buildSeparatorYOutOfRangeError as p}from"../../../utils/buildErrors/buildErrors.mjs";import{getPoints as d}from"../../../utils/getPoints/getPoints.mjs";import{BarChartContext as A}from"../context/barChartContext.mjs";const m=({areaSeparator:m,dataTestId:f,rightSeparator:l,topSeparator:_,xBreakAxis:E,yBreakAxis:u})=>{const{addError:T,crossXAxis:$,crossYAxis:O,xAxisCoordinates:h,yAxisCoordinates:g}=s(A);const v=h.tickValues;const C=g.tickValues;const x=void 0!==E?"string"==typeof E?parseFloat(E):E:void 0;const y=void 0!==u?"string"==typeof u?parseFloat(u):u:void 0;a(()=>{if(void 0!==E){const t=v.map(t=>t.value);if(void 0===x||isNaN(x))T?.("BAR_CHART_SEPARATOR_ERROR",{error:n(E)});else{const o=Math.min(...t.map(t=>"string"==typeof t?parseFloat(t):t));const r=Math.max(...t.map(t=>"string"==typeof t?parseFloat(t):t));if(x<o||x>r)T?.("BAR_CHART_SEPARATOR_ERROR",{error:R(x,o,r)})}}if(void 0!==u){const t=C.map(t=>t.value);if(void 0===y||isNaN(y))T?.("BAR_CHART_SEPARATOR_ERROR",{error:c(u)});else{const o=Math.min(...t.map(t=>"string"==typeof t?parseFloat(t):t));const r=Math.max(...t.map(t=>"string"==typeof t?parseFloat(t):t));if(y<o||y>r)T?.("BAR_CHART_SEPARATOR_ERROR",{error:p(y,o,r)})}}},[E,x,v,u,y,C]);if(!_&&!l&&!m)return o(t,{});const H=E&&d(h.tickValues,[E],true)[0];const P=u&&d(g.tickValues,[u])[0];const S=O?g.coordinates.x1:h.coordinates.x2;const M=$?h.coordinates.y1:g.coordinates.y1;const N=h.coordinates.x1;const V=H??S;const B=g.coordinates.y2;const F=P??M;a(()=>{if(N===V&&B===F)T?.("BAR_CHART_SEPARATOR_ERROR",{error:e(i.LINE_CHART_SEPARATOR_INVALID_COORDINATES)})},[N,V,B,F]);const j=`M${N} ${B} H ${V} V ${F} H ${N} Z`;const k=`M${N} ${F} H ${V}`;const I=`M${V} ${B} V ${F}`;return r("g",{children:[o("path",{d:j,"data-testid":`${f}Area`,...m}),o("path",{d:k,"data-testid":`${f}Top`,..._}),o("path",{d:I,"data-testid":`${f}Right`,...l})]})};export{m as BarChartSeparator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useContext as e}from"react";import{XAxis as o}from"../../../components/axisChart/xAxis/xAxis.mjs";import{TickDataUtils as r}from"../../../components/tick/tick.types.mjs";import{Positions as a}from"../../../types/position.enum.mjs";import{getTickTextYCoordinate as s}from"../../../utils/getTickTextCoordinate/getTickTextCoordinates.mjs";import{CHART_SPACING_DEFAULTS as i}from"../../constants/chartDefaults.mjs";import{BarChartContext as m}from"../context/barChartContext.mjs";const c=({position:c=a.BOTTOM,tickLine:n,tickText:x,valueFormatter:p=t=>t,...f})=>{const{xAxisCoordinates:{coordinates:T,tickValues:h},...u}=e(m);const d=s(c,T.y1,Number(x?.fontSize),x?.top??i.DEFAULT_SPACE);const k=u.extraSpaceTopY;const C=Number(u.canvasHeight)-u.extraSpaceBottomY;const g=x?r.formatTicksValues(h,p):void 0;return t(o,{...T,...f,canvasHeight:Number(u.canvasHeight),canvasWidth:Number(u.canvasWidth),dataTestId:`${u.dataTestId}xAxis`,extraSpace:{left:u.extraSpaceLeftX,right:u.extraSpaceRightX},tickLine:{...n,y1:k,y2:C},tickText:{...x,y:d},tickValues:g})};export{c as BarChartXAxis};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useContext as s}from"react";import{YAxis as e}from"../../../components/axisChart/yAxis/yAxis.mjs";import{TickDataUtils as o}from"../../../components/tick/tick.types.mjs";import{Positions as i}from"../../../types/position.enum.mjs";import{ajustedTextSpace as r}from"../../../utils/ajustedTextSpace/ajustedTextSpace.mjs";import{getTickTextXCoordinate as a}from"../../../utils/getTickTextCoordinate/getTickTextCoordinates.mjs";import{CHART_SPACING_DEFAULTS as m}from"../../constants/chartDefaults.mjs";import{BarChartContext as c}from"../context/barChartContext.mjs";const n=({position:n=i.LEFT,tickLine:x,tickText:p,valueFormatter:d=t=>t,...T})=>{const{yAxisCoordinates:{coordinates:f,tickValues:u},...h}=s(c);const j=p?.textAnchor||"middle";const A=n===i.RIGHT?p?.right:p?.left;const k=A??m.DEFAULT_SPACE;const C=r(j,h.yAxisText,k);const l=a(n,f.x1,C);const y=p?o.formatTicksValues(u,d):void 0;return t(e,{...f,...T,canvasHeight:Number(h.canvasHeight),canvasWidth:Number(h.canvasWidth),dataTestId:`${h.dataTestId}yAxis`,tickLine:{...x,x1:h.extraSpaceLeftX,x2:Number(h.canvasWidth)-h.extraSpaceRightX},tickText:{...p,x:l},tickValues:y})};export{n as BarChartYAxis};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{BarOrientation as e}from"../../../../components/bar/bar.type.mjs";const t={addError:void 0,barChildrenCount:3,canvasExtraSpace:0,canvasHeight:500,canvasWidth:500,crossXAxis:false,crossYAxis:false,data:[{pKey:1,testKey:10},{pKey:2,testKey:20},{pKey:3,testKey:30}],dataTestId:"test",extraSpaceBottomY:0,extraSpaceLeftX:0,extraSpaceRightX:0,extraSpaceTopY:0,orientation:e.HORIZONTAL,pKey:"pKey",securityXSpace:0,securityYSpace:0,xAxisCoordinates:{coordinates:{x1:0,x2:100,y1:0,y2:0},tickValues:[{position:"0",value:"1"},{position:"33",value:"2"},{position:"66",value:"3"}]},xAxisText:0,yAxisCoordinates:{coordinates:{x1:0,x2:0,y1:0,y2:80},tickValues:[{position:"0",value:"10"},{position:"30",value:"20"},{position:"60",value:"30"}]},yAxisText:0};export{t as CONTEXT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{CONTEXT}from"./barContextData.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./barChart.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Children as r,isValidElement as o}from"react";import{BarChartPath as t}from"../fragments/barChartPath.mjs";const e=e=>{let a=0;r.toArray(e).forEach(r=>{if(o(r)&&r.type===t&&r.props.order>a)a=r.props.order});return a};export{e as countBarChildren};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! LICENSE: getAxisExtraSpacing.mjs.LICENSE.txt */
|
|
2
|
+
import{Children as t,isValidElement as o}from"react";import{BarOrientation as s}from"../../../components/bar/bar.type.mjs";import{Positions as r}from"../../../types/position.enum.mjs";import{buildTickValues as e}from"../../../utils/buildTickValues/buildTickValues.mjs";import{textBound as a}from"../../../utils/textBound/textBound.mjs";import{BarChartPath as i}from"../fragments/barChartPath.mjs";import{BarChartXAxis as n}from"../fragments/barChartXAxis.mjs";import{BarChartYAxis as c}from"../fragments/barChartYAxis.mjs";import{getBarDataValues as m}from"./getBarDataValue.mjs";import{getBarKeyRoundMaxValue as p}from"./getRoundedBarMaxValue.mjs";const u=(t,o,s,e,i,n,c,p)=>{const{position:u,tickText:x,tickValues:f,valueFormatter:T}=t.props;const b=x?.fontSize??0;const d=b*e;const h=f?m(f):o.map(t=>t[s]);const g=T?h.map(T):h;const A=a({bound:"width",data:g,fontSize:b,svgHeight:`${c}`,svgWidth:`${p}`,viewBox:n});const l=(()=>i>A?i:A)();const y=u===r.BOTTOM?d+(x?.top??0):0;const B=u===r.TOP?d+(x?.bottom??0):0;const S=(()=>u||r.BOTTOM)();const j=f?.numeric?f.numeric.breakAxis??0:x?.custom?.breakAxis??0;return{barChartXPosition:S,extraSpaceBottomY:y,extraSpaceTopY:B,securityXSpace:l,xBreakAxis:j,xData:h}};const x=(t,o,s,i,n,c,u,x)=>{const{position:f,tickText:T,tickValues:b,valueFormatter:d}=t.props;const h=T?.fontSize??0;const g=h*i;const A=b||e([...new Set(p(o,s))]);const l=m(A);const y=d?l.map(d):l;const B=(()=>n>g?n:g)();const S=a({bound:"width",data:y,fontSize:h,svgHeight:`${u}`,svgWidth:`${x}`,viewBox:c});const j=f===r.LEFT?S+(T?.right??0):0;const O=f===r.RIGHT?S+(T?.left??0):0;const k=(()=>f||r.LEFT)();const C=b?.numeric?b.numeric.breakAxis??0:T?.custom?.breakAxis??0;return{barChartYPosition:k,extraSpaceLeftX:j,extraSpaceRightX:O,securityYSpace:B,yAxisText:S,yBreakAxis:C,yData:l}};const f=({ajustedX:e,ajustedY:a,canvasHeight:m,canvasWidth:p,children:f,data:T,gapBetweenBars:b,orientation:d,pKey:h,viewBox:g})=>{let A={barChartXPosition:r.BOTTOM,barChartYPosition:r.LEFT,extraSpaceBottomY:0,extraSpaceLeftX:0,extraSpaceRightX:0,extraSpaceTopY:0,securityXSpace:0,securityYSpace:0,xAxisText:0,xBreakAxis:0,xData:[],yAxisText:0,yBreakAxis:0,yData:[]};let l=b;const y=[];t.forEach(f,t=>{if(o(t)){if(t.type===i&&!y.includes(t.props.order)){y.push(t.props.order);l+=t.props.barConfig.barWidth??0}if(t.type===n){const o=d===s.VERTICAL?l:0;A={...A,...u(t,T,h,e,o,g,m,p)}}else if(t.type===c){const o=d===s.HORIZONTAL?l:0;A={...A,...x(t,T,h,a,o,g,m,p)}}}});return A};export{f as getAxisExtraSpacing};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//! review
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=t=>{if(t.custom)return t.custom?.values;if(t.numeric){const{max:r,min:n=0,step:e}=t.numeric;const o=Math.abs(r-n);if(e>=o||e<=0)return[n.toString()];const s=[];for(let t=n;t<=r;t+=e)s.push(t.toString());return s}};export{t as getBarDataValues};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(e,t)=>e.flatMap(e=>Object.keys(e).filter(a=>a!==t&&"number"==typeof e[a]).map(t=>Number(e[t])));export{e as getBarKeyRoundMaxValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const A={SAFE_HEIGHT:100,SAFE_WIDTH:100};const _={MIN_TICK_COUNT:2,UNIQUE_VALUE_THRESHOLD:1};const L={DEFAULT_SPACE:0};const E={DEFAULT_BREAK_VALUE:0};const T={FALLBACK_PKEY_FIRST:"0",FALLBACK_PKEY_SECOND:"1"};const C={BAR_WIDTH:20};const F={DEFAULT_X_VALUE:0,FALLBACK_SECONDARY_KEY:"fallbackData"};const S={FALLBACK_X_FIRST:"0",FALLBACK_X_SECOND:"1",FALLBACK_Y_FIRST:0,FALLBACK_Y_SECOND:1};const D={DEFAULT_RADIUS_PERCENTAGE:50,MIN_SEGMENTS:1};const K={FALLBACK_DATA_KEY:"fallbackSegments",FALLBACK_SEGMENT_NAME:"fallback",FALLBACK_SEGMENT_VALUE:100};export{_ as AXIS_VALIDATION,C as BAR_CHART_DEFAULTS,F as BAR_CHART_FALLBACK_DATA,E as BREAK_AXIS_DEFAULTS,A as CHART_CANVAS_DEFAULTS,L as CHART_SPACING_DEFAULTS,S as LINE_CHART_FALLBACK_DATA,D as PIE_CHART_DEFAULTS,K as PIE_CHART_FALLBACK_DATA,T as SHARED_FALLBACK_DATA};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as t}from"react";const o=t({});export{o as CustomBackgroundChartContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{CustomBackgroundChartContext}from"./customBackgroundChartContext.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./customBackgroundChart.type.mjs";import{CustomBackgroundChartStructure as t}from"./customBackgroundChartStructure.mjs";import{CustomBackgroundChartPlot as o}from"./fragments/customBackgroundChartPlot.mjs";const r=Object.assign(t,{Plot:o});export{r as CustomBackgroundChart};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as t}from"react/jsx-runtime";import{useEffect as e,useMemo as o}from"react";import{SvgContainer as i}from"../../components/svgContainer/svgContainer.mjs";import{useId as n}from"../../hooks/useId/useId.mjs";import{createErrorAccumulator as a}from"../../utils/createErrorAccumulator/index.mjs";import{CustomBackgroundChartContext as d}from"./context/customBackgroundChartContext.mjs";const s=({ariaHidden:s,ariaLabel:c,backgroundUrl:h,caption:m,children:u,className:C,data:g,dataTestId:l="custom-background-chart",height:p="100%",onBlur:E,onClick:R,onDoubleClick:T,onErrors:w,onFocus:O,onKeyDown:_,onKeyUp:b,onMouseEnter:f,onMouseLeave:x,role:k="img",tabIndex:v,viewBox:A,width:B="100%",...U})=>{const j=n(l);const M=`0 0 ${A.width} ${A.height}`;const N=o(()=>a(w),[w]);e(()=>{if(0===Object.keys(g).length)N.addError("CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR",{error:new Error("Data object is empty. At least one data point is required.")});if(!h||""===h.trim())N.addError("CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR",{error:new Error("backgroundUrl is required and cannot be empty.")});if(A.width<=0||A.height<=0)N.addError("CUSTOM_BACKGROUND_CHART_CONTEXT_ERROR",{error:new Error(`Invalid viewBox dimensions: width=${A.width}, height=${A.height} (both must be > 0)`)})},[g,h,A,N]);const y=o(()=>({addError:(r,t)=>{N.addError(r,t)},data:g,dataTestId:j,viewBox:A}),[A,g,j,N]);return r(i,{ariaHidden:s,ariaLabel:c,caption:m,className:C,dataTestId:j,height:p,role:k,tabIndex:v,viewBox:M,width:B,onBlur:E,onClick:R,onDoubleClick:T,onFocus:O,onKeyDown:_,onKeyUp:b,onMouseEnter:f,onMouseLeave:x,...U,children:t(d.Provider,{value:y,children:[r("image",{"data-testid":`${j}-background`,height:A.height,href:h,preserveAspectRatio:"xMidYMid meet",width:A.width,x:0,y:0}),r("g",{"data-testid":`${j}-plots`,children:u})]})})};export{s as CustomBackgroundChartStructure};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useContext as o,useEffect as r,useMemo as e}from"react";import{Plot as n}from"../../../components/plot/plot.mjs";import{CustomBackgroundChartContext as i}from"../context/customBackgroundChartContext.mjs";import{buildAriaLabel as a,formatValue as s}from"../utils/accessibility.mjs";const m=({ariaLabel:m,dataKey:u,formatAriaValue:c,...d})=>{const{addError:l,data:h,dataTestId:p,viewBox:f}=o(i);const x=e(()=>h[u],[h,u]);r(()=>{if(!x)return void l?.("CUSTOM_BACKGROUND_CHART_PLOT_ERROR",{error:new Error(`dataKey "${u}" not found in data object.`)});const{x:t,y:o}=x;if(t<0||t>f.width||o<0||o>f.height)l?.("CUSTOM_BACKGROUND_CHART_PLOT_ERROR",{error:new Error(`Plot "${u}" coordinates (${t}, ${o}) are outside viewBox bounds (0-${f.width}, 0-${f.height})`)})},[x,u,l,f.width,f.height]);const C=e(()=>{if(!x)return u;const t=c?c(x.value):s(x.value);return a({ariaLabel:m,dataKey:u,formattedValue:t,name:x.name,x:x.x,y:x.y})},[m,x,u,c]);const R=e(()=>({x:x?.x??0,y:x?.y??0}),[x?.x,x?.y]);if(!x)return null;return t(n,{...d,data:{value:x.value},dataTestId:`${p}-plot-${u}`,label:C,position:R})};export{m as CustomBackgroundChartPlot};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{CustomBackgroundChartPlot}from"./customBackgroundChartPlot.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./customBackgroundChart.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={DATA_KEY:"{{dataKey}}",NAME:"{{name}}",VALUE:"{{value}}",X:"{{x}}",Y:"{{y}}"};const n=`${e.NAME}, ${e.VALUE}`;const t=new RegExp(e.DATA_KEY,"g");const r=new RegExp(e.NAME,"g");const E=new RegExp(e.VALUE,"g");const c=new RegExp(e.X,"g");const o=new RegExp(e.Y,"g");const A=({ariaLabel:e,dataKey:A,name:g,formattedValue:a,x:p,y:s})=>{const L=e??n;const i=g??A;return L.replace(t,A).replace(r,i).replace(E,a).replace(c,String(p)).replace(o,String(s))};const g=e=>{if("number"==typeof e)return e.toLocaleString();if("string"==typeof e)return e;return JSON.stringify(e)};export{n as DEFAULT_ARIA_LABEL_TEMPLATE,e as PLOT_TEMPLATE_KEYS,A as buildAriaLabel,g as formatValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export*from"./barChart/index.mjs";export*from"./customBackgroundChart/index.mjs";export*from"./lineChart/index.mjs";export*from"./pieChart/pieChart.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ErrorType as t}from"../../../types/errors.type.mjs";import{Positions as o}from"../../../types/position.enum.mjs";import{getPoints as s}from"../../../utils/getPoints/getPoints.mjs";import{BREAK_AXIS_DEFAULTS as i,CHART_CANVAS_DEFAULTS as r,LINE_CHART_FALLBACK_DATA as e,SHARED_FALLBACK_DATA as n}from"../../constants/chartDefaults.mjs";import{getXCoordinates as a,getYCoordinates as c}from"../utils/getCoordinates.mjs";import{getExtraSpacing as A}from"../utils/getExtraSpacing.mjs";import{getXTicks as m,getYTicks as _}from"../utils/getTicks.mjs";import{validateCanvasDimensions as L,validateData as E,validateXCoordinates as l,validateXTickValues as u,validateYCoordinates as p,validateYTickValues as F}from"../utils/validations.mjs";const T=({addError:T,canvasHeight:C,canvasWidth:f,children:B,data:S,viewBox:K,xKey:v})=>{let R;const{error:g}=E({data:S,addError:T});if(g)R=g;const{error:d}=L({canvasWidth:f,canvasHeight:C,addError:T});if(d)R=d;const x=S&&S.length>0?S:[{[v]:e.FALLBACK_X_FIRST,y:e.FALLBACK_Y_FIRST},{[v]:e.FALLBACK_X_SECOND,y:e.FALLBACK_Y_SECOND}];const D=f>0?f:r.SAFE_WIDTH;const O=C>0?C:r.SAFE_HEIGHT;const{xAxisLeftSpacing:V,xAxisTopSpacing:h,xAxisRightSpacing:j,xAxisBottomSpacing:H,yAxisLeftSpacing:I,yAxisTopSpacing:N,yAxisRightSpacing:U,yAxisBottomSpacing:k,lineChartXPosition:y,lineChartYPosition:b,xAxisText:P,xBreakAxis:X,xData:W,yAxisText:Y,yBreakAxis:G,yData:M}=A({canvasHeight:O,canvasWidth:D,children:B,data:x,viewBox:K,xKey:v});const q=m({tickValues:W,maxSpaceAvailable:D,xAxisLeftSpacing:V,xAxisRightSpacing:j,yAxisLeftSpacing:I,yAxisRightSpacing:U});const{error:w}=u({xTickValues:q,addError:T});if(!R&&w)R=w;const z=_({maxSpaceAvailable:O,tickValues:M,xAxisTopSpacing:h,xAxisBottomSpacing:H,yAxisTopSpacing:N,yAxisBottomSpacing:k});const{error:J}=F({yTickValues:z,addError:T});if(!R&&J)R=J;const Q=y!==o.TOP&&y!==o.BOTTOM;const Z=b!==o.LEFT&&b!==o.RIGHT;const $=Q?s(z||[],[String(X)])[0]:i.DEFAULT_BREAK_VALUE;const tt=Z?s(q||[],[String(G)])[0]:i.DEFAULT_BREAK_VALUE;const to=a({canvasHeight:O,canvasWidth:D,customBreakAxis:Number($),lineChartXPosition:y,lineChartYPosition:b,xAxisLeftSpacing:V,xAxisTopSpacing:h,xAxisRightSpacing:j,xAxisBottomSpacing:H,yAxisLeftSpacing:I,yAxisTopSpacing:N,yAxisRightSpacing:U,yAxisBottomSpacing:k});const ts=c({canvasHeight:O,canvasWidth:D,customBreakAxis:Number(tt),lineChartXPosition:y,lineChartYPosition:b,xAxisLeftSpacing:V,xAxisTopSpacing:h,xAxisRightSpacing:j,xAxisBottomSpacing:H,yAxisLeftSpacing:I,yAxisTopSpacing:N,yAxisRightSpacing:U,yAxisBottomSpacing:k});const{error:ti}=l({xCoordinates:to,addError:T});if(!R&&ti)R=ti;const{error:tr}=p({yCoordinates:ts,addError:T});if(!R&&tr)R=tr;const te={addError:T,crossXAxis:Q,crossYAxis:Z,xAxisLeftSpacing:V,xAxisTopSpacing:h,xAxisRightSpacing:j,xAxisBottomSpacing:H,yAxisLeftSpacing:I,yAxisTopSpacing:N,yAxisRightSpacing:U,yAxisBottomSpacing:k,xAxisCoordinates:{coordinates:to,tickValues:q||(R?[{position:i.DEFAULT_BREAK_VALUE,value:e.FALLBACK_X_FIRST},{position:D,value:e.FALLBACK_X_SECOND}]:[])},xAxisText:P,yAxisCoordinates:{coordinates:ts,tickValues:z||(R?[{position:O,value:n.FALLBACK_PKEY_FIRST},{position:i.DEFAULT_BREAK_VALUE,value:n.FALLBACK_PKEY_SECOND}]:[])},yAxisText:Y};if(R)return{...te,error:{...R,type:t.LINE_CHART_CONTEXT_ERROR}};return te};export{T as buildLineContextValue};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{buildLineContextValue}from"./buildLineContextValue.mjs";export{LineChartContext}from"./lineChartContext.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createContext as t}from"react";const o=t({});export{o as LineChartContext};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i={addError:void 0,canvasExtraSpace:0,canvasHeight:500,canvasWidth:500,crossXAxis:false,crossYAxis:false,data:[{testKey:10,xKey:1},{testKey:20,xKey:2},{testKey:30,xKey:3}],dataTestId:"test",xAxisLeftSpacing:0,xAxisTopSpacing:0,xAxisRightSpacing:0,xAxisBottomSpacing:0,yAxisLeftSpacing:0,yAxisTopSpacing:0,yAxisRightSpacing:0,yAxisBottomSpacing:0,xAxisCoordinates:{coordinates:{x1:0,x2:100,y1:0,y2:0},tickValues:[{position:"0",value:"1"},{position:"33",value:"2"},{position:"66",value:"3"}]},xAxisText:0,xCursor:0,xKey:"xKey",yAxisCoordinates:{coordinates:{x1:0,x2:0,y1:0,y2:80},tickValues:[{position:"0",value:"10"},{position:"30",value:"20"},{position:"60",value:"30"}]},yAxisText:0,yCursor:0};export{i as CONTEXT};
|