@kubit-ui-web/react-charts 1.11.0 → 1.11.2
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 +269 -0
- package/README.md +20 -5
- package/dist/cjs/charts/barChart/barChart.js +1 -13
- package/dist/cjs/charts/barChart/barChartStructure.js +1 -80
- package/dist/cjs/charts/barChart/context/barChartContext.js +1 -2
- package/dist/cjs/charts/barChart/context/buildBarContextValues.js +1 -262
- package/dist/cjs/charts/barChart/fragments/barChartPath.js +1 -71
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +1 -84
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.js +1 -28
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.js +1 -21
- package/dist/cjs/charts/barChart/index.js +1 -1
- package/dist/cjs/charts/barChart/utils/countBarChildren.js +1 -11
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js +1 -116
- package/dist/cjs/charts/barChart/utils/getBarDataValue.js +1 -24
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.js +1 -11
- package/dist/cjs/charts/constants/chartDefaults.js +1 -96
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.js +1 -3
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.js +1 -7
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.js +1 -41
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +1 -49
- package/dist/cjs/charts/customBackgroundChart/index.js +1 -1
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.js +1 -32
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.js +1 -186
- package/dist/cjs/charts/lineChart/context/lineChartContext.js +1 -2
- package/dist/cjs/charts/lineChart/fragments/lineChartPath2.js +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +1 -65
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +1 -84
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.js +1 -32
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.js +1 -41
- package/dist/cjs/charts/lineChart/hook/useAutoClick.js +1 -19
- package/dist/cjs/charts/lineChart/hook/useHover.js +1 -30
- package/dist/cjs/charts/lineChart/hook/useIndicator.js +1 -31
- package/dist/cjs/charts/lineChart/index.js +1 -1
- package/dist/cjs/charts/lineChart/lineChart.js +1 -13
- package/dist/cjs/charts/lineChart/lineChartStructure.js +1 -121
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.js +1 -56
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.js +1 -25
- package/dist/cjs/charts/lineChart/utils/getCoordinates.js +1 -55
- package/dist/cjs/charts/lineChart/utils/getDataValues.js +1 -24
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.js +1 -141
- package/dist/cjs/charts/lineChart/utils/getPathData.js +1 -33
- package/dist/cjs/charts/lineChart/utils/getProjection.js +1 -105
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.js +1 -25
- package/dist/cjs/charts/lineChart/utils/getTicks.js +1 -36
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.js +1 -34
- package/dist/cjs/charts/lineChart/utils/tickTextPosition.js +1 -109
- package/dist/cjs/charts/lineChart/utils/validations.js +1 -117
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +1 -57
- package/dist/cjs/charts/pieChart/context/pieChartContext.js +1 -2
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.js +1 -13
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +1 -63
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +1 -90
- package/dist/cjs/charts/pieChart/index.js +1 -1
- package/dist/cjs/charts/pieChart/pieChart.js +1 -9
- package/dist/cjs/charts/pieChart/pieChartStructure.js +1 -76
- package/dist/cjs/charts/pieChart/utils/accessibility.js +1 -21
- package/dist/cjs/charts/pieChart/utils/buildL.js +1 -9
- package/dist/cjs/charts/pieChart/utils/calculatePoint.js +1 -13
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.js +1 -57
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.js +1 -41
- package/dist/cjs/charts/pieChart/utils/rotationDirection.js +1 -13
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.js +1 -38
- package/dist/cjs/components/axisChart/xAxis/xAxis.js +1 -42
- package/dist/cjs/components/axisChart/yAxis/yAxis.js +1 -34
- package/dist/cjs/components/bar/bar.js +1 -44
- package/dist/cjs/components/bar/bar.type.js +1 -4
- package/dist/cjs/components/bar/utils/accessibility.js +1 -30
- package/dist/cjs/components/bar/utils/buildD.js +1 -115
- package/dist/cjs/components/bar/utils/getSegments.js +1 -31
- package/dist/cjs/components/chartText/chartText.js +1 -18
- package/dist/cjs/components/focusRing/components/FocusRingInline.js +1 -37
- package/dist/cjs/components/focusRing/components/FocusRingRenderer.js +1 -25
- package/dist/cjs/components/focusRing/components/FocusRingSeparate.js +1 -45
- package/dist/cjs/components/focusRing/focusRing2.js +1 -0
- package/dist/cjs/components/focusRing/hooks/useFocusRingData.js +1 -67
- package/dist/cjs/components/focusRing/utils/composeRefs.js +1 -16
- package/dist/cjs/components/focusRing/utils/createAdaptiveFocusRings.js +1 -141
- package/dist/cjs/components/focusRing/utils/createBoundingBoxFocusRings.js +1 -126
- package/dist/cjs/components/foreignObject/foreignObject.js +1 -4
- package/dist/cjs/components/line/line.js +1 -9
- package/dist/cjs/components/node/components/circle/circle.js +1 -6
- package/dist/cjs/components/node/components/hexagon/hexagon.js +1 -8
- package/dist/cjs/components/node/components/pentagon/pentagon.js +1 -8
- package/dist/cjs/components/node/components/square/square.js +1 -6
- package/dist/cjs/components/node/components/star/star.js +1 -10
- package/dist/cjs/components/node/components/straight/straight.js +1 -7
- package/dist/cjs/components/node/components/triangle/triangle.js +1 -11
- package/dist/cjs/components/node/node.js +1 -98
- package/dist/cjs/components/node/node.types.js +1 -18
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.js +1 -18
- package/dist/cjs/components/path/components/nodePath/nodePath.js +1 -38
- package/dist/cjs/components/path/path2.js +1 -0
- package/dist/cjs/components/plot/components/circle/circle.js +1 -6
- package/dist/cjs/components/plot/components/square/square.js +1 -6
- package/dist/cjs/components/plot/components/triangle/triangle.js +1 -14
- package/dist/cjs/components/plot/plot.types.js +1 -51
- package/dist/cjs/components/plot/plot2.js +1 -0
- package/dist/cjs/components/svgContainer/svgContainer.js +1 -34
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.js +1 -20
- package/dist/cjs/components/tick/tick.js +1 -19
- package/dist/cjs/components/tick/tick.types.js +1 -24
- package/dist/cjs/components/zoomArea/components/HandlerIcon.js +1 -22
- package/dist/cjs/components/zoomArea/components/LineRenderer.js +1 -11
- package/dist/cjs/components/zoomArea/components/SelectionArea.js +1 -16
- package/dist/cjs/components/zoomArea/components/ZoomHandler.js +1 -46
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.js +1 -110
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.js +1 -122
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.js +1 -28
- package/dist/cjs/components/zoomArea/hooks/useZoomData.js +1 -31
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.js +1 -60
- package/dist/cjs/components/zoomArea/utils/indexRounding.js +1 -68
- package/dist/cjs/components/zoomArea/utils/interactionConfig.js +1 -23
- package/dist/cjs/components/zoomArea/utils/pathGeneration.js +1 -112
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.js +1 -75
- package/dist/cjs/components/zoomArea/utils/selectionConfig.js +1 -29
- package/dist/cjs/components/zoomArea/zoomArea.js +1 -80
- package/dist/cjs/components/zoomArea/zoomArea.type.js +1 -8
- package/dist/cjs/hooks/useFocus/useFocus.js +1 -25
- package/dist/cjs/hooks/useHover/useHover.js +1 -27
- package/dist/cjs/hooks/useId/useId.js +1 -13
- package/dist/cjs/hooks/useResponsiveCanvas/useResponsiveCanvas.js +1 -76
- package/dist/cjs/index.js +1 -3
- package/dist/cjs/react-charts.css +2 -0
- package/dist/cjs/types/canvas.type.js +1 -11
- package/dist/cjs/types/errors.type.js +1 -28
- package/dist/cjs/types/focusConfig.type.js +1 -25
- package/dist/cjs/types/position.enum.js +1 -17
- package/dist/cjs/types/unit.enum.js +1 -11
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +1 -27
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.js +1 -15
- package/dist/cjs/utils/buildErrors/buildErrors.js +1 -45
- package/dist/cjs/utils/buildErrors/charts/buildBarChartErrors.js +1 -16
- package/dist/cjs/utils/buildErrors/charts/buildLineChartErrors.js +1 -12
- package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.js +1 -36
- package/dist/cjs/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +1 -23
- package/dist/cjs/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +1 -29
- package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +1 -20
- package/dist/cjs/utils/buildErrors/constants/errors/barChartErrors.js +1 -28
- package/dist/cjs/utils/buildErrors/constants/errors/lineChartErrors.js +1 -34
- package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.js +1 -25
- package/dist/cjs/utils/buildTickValues/buildTickValues.js +1 -47
- package/dist/cjs/utils/createErrorAccumulator/createErrorAccumulator.js +1 -54
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.js +1 -46
- package/dist/cjs/utils/cursorNear/isNear.js +1 -3
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.js +1 -108
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.js +1 -15
- package/dist/cjs/utils/getCoordinates/getCoordinates.js +1 -90
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.js +1 -10
- package/dist/cjs/utils/getPoints/getPoints.js +1 -49
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.js +1 -30
- package/dist/cjs/utils/getTicks/getTicks.js +1 -49
- package/dist/cjs/utils/logger/logger.js +1 -140
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +1 -29
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.js +1 -47
- package/dist/cjs/utils/shadowSvg/shadowSvg.js +1 -4
- package/dist/cjs/utils/ssr/ssr.js +1 -117
- package/dist/cjs/utils/textBound/textBound.js +1 -34
- package/dist/esm/charts/barChart/barChart.js +10 -11
- package/dist/esm/charts/barChart/barChartStructure.js +68 -79
- package/dist/esm/charts/barChart/context/barChartContext.js +3 -2
- package/dist/esm/charts/barChart/context/buildBarContextValues.js +155 -261
- package/dist/esm/charts/barChart/fragments/barChartPath.js +75 -70
- package/dist/esm/charts/barChart/fragments/barChartSeparator.js +60 -83
- package/dist/esm/charts/barChart/fragments/barChartXAxis.js +31 -27
- package/dist/esm/charts/barChart/fragments/barChartYAxis.js +28 -20
- package/dist/esm/charts/barChart/index.js +1 -1
- package/dist/esm/charts/barChart/utils/countBarChildren.js +8 -10
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.js +80 -114
- package/dist/esm/charts/barChart/utils/getBarDataValue.js +10 -23
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.js +2 -11
- package/dist/esm/charts/constants/chartDefaults.js +19 -96
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.js +3 -3
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.js +3 -6
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.js +66 -40
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.js +45 -48
- package/dist/esm/charts/customBackgroundChart/index.js +1 -1
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.js +13 -32
- package/dist/esm/charts/lineChart/context/buildLineContextValue.js +138 -185
- package/dist/esm/charts/lineChart/context/lineChartContext.js +3 -2
- package/dist/esm/charts/lineChart/fragments/lineChartPath2.js +122 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.js +57 -64
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.js +60 -83
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.js +33 -31
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.js +38 -40
- package/dist/esm/charts/lineChart/hook/useAutoClick.js +13 -18
- package/dist/esm/charts/lineChart/hook/useHover.js +17 -29
- package/dist/esm/charts/lineChart/hook/useIndicator.js +14 -30
- package/dist/esm/charts/lineChart/index.js +1 -1
- package/dist/esm/charts/lineChart/lineChart.js +10 -11
- package/dist/esm/charts/lineChart/lineChartStructure.js +91 -120
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.js +16 -53
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.js +18 -24
- package/dist/esm/charts/lineChart/utils/getCoordinates.js +48 -54
- package/dist/esm/charts/lineChart/utils/getDataValues.js +10 -23
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.js +109 -139
- package/dist/esm/charts/lineChart/utils/getPathData.js +8 -32
- package/dist/esm/charts/lineChart/utils/getProjection.js +40 -103
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.js +2 -25
- package/dist/esm/charts/lineChart/utils/getTicks.js +23 -35
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.js +16 -33
- package/dist/esm/charts/lineChart/utils/tickTextPosition.js +33 -108
- package/dist/esm/charts/lineChart/utils/validations.js +67 -116
- package/dist/esm/charts/pieChart/context/buildPieContextValue.js +27 -56
- package/dist/esm/charts/pieChart/context/pieChartContext.js +3 -2
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.js +16 -12
- package/dist/esm/charts/pieChart/fragments/pieChartPath.js +52 -62
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.js +41 -89
- package/dist/esm/charts/pieChart/index.js +1 -1
- package/dist/esm/charts/pieChart/pieChart.js +6 -7
- package/dist/esm/charts/pieChart/pieChartStructure.js +57 -75
- package/dist/esm/charts/pieChart/utils/accessibility.js +10 -20
- package/dist/esm/charts/pieChart/utils/buildL.js +3 -8
- package/dist/esm/charts/pieChart/utils/calculatePoint.js +5 -13
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.js +28 -56
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.js +28 -40
- package/dist/esm/charts/pieChart/utils/rotationDirection.js +11 -12
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.js +23 -37
- package/dist/esm/components/axisChart/xAxis/xAxis.js +37 -42
- package/dist/esm/components/axisChart/yAxis/yAxis.js +36 -34
- package/dist/esm/components/bar/bar.js +66 -43
- package/dist/esm/components/bar/bar.type.js +4 -3
- package/dist/esm/components/bar/utils/accessibility.js +13 -29
- package/dist/esm/components/bar/utils/buildD.js +21 -113
- package/dist/esm/components/bar/utils/getSegments.js +12 -30
- package/dist/esm/components/chartText/chartText.js +7 -18
- package/dist/esm/components/focusRing/components/FocusRingInline.js +16 -36
- package/dist/esm/components/focusRing/components/FocusRingRenderer.js +14 -25
- package/dist/esm/components/focusRing/components/FocusRingSeparate.js +14 -44
- package/dist/esm/components/focusRing/focusRing2.js +18 -0
- package/dist/esm/components/focusRing/hooks/useFocusRingData.js +27 -66
- package/dist/esm/components/focusRing/utils/composeRefs.js +7 -15
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.js +71 -137
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.js +70 -123
- package/dist/esm/components/foreignObject/foreignObject.js +10 -4
- package/dist/esm/components/line/line.js +8 -9
- package/dist/esm/components/node/components/circle/circle.js +11 -6
- package/dist/esm/components/node/components/hexagon/hexagon.js +16 -8
- package/dist/esm/components/node/components/pentagon/pentagon.js +16 -8
- package/dist/esm/components/node/components/square/square.js +15 -6
- package/dist/esm/components/node/components/star/star.js +16 -10
- package/dist/esm/components/node/components/straight/straight.js +16 -7
- package/dist/esm/components/node/components/triangle/triangle.js +19 -11
- package/dist/esm/components/node/node.js +73 -97
- package/dist/esm/components/node/node.types.js +9 -17
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.js +8 -17
- package/dist/esm/components/path/components/nodePath/nodePath.js +35 -38
- package/dist/esm/components/path/path2.js +127 -0
- package/dist/esm/components/plot/components/circle/circle.js +11 -6
- package/dist/esm/components/plot/components/square/square.js +12 -6
- package/dist/esm/components/plot/components/triangle/triangle.js +12 -14
- package/dist/esm/components/plot/plot.types.js +17 -50
- package/dist/esm/components/plot/plot2.js +68 -0
- package/dist/esm/components/svgContainer/svgContainer.js +33 -34
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.js +2 -20
- package/dist/esm/components/tick/tick.js +8 -19
- package/dist/esm/components/tick/tick.types.js +5 -24
- package/dist/esm/components/zoomArea/components/HandlerIcon.js +13 -22
- package/dist/esm/components/zoomArea/components/LineRenderer.js +14 -11
- package/dist/esm/components/zoomArea/components/SelectionArea.js +35 -15
- package/dist/esm/components/zoomArea/components/ZoomHandler.js +67 -44
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.js +54 -108
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.js +68 -120
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.js +11 -27
- package/dist/esm/components/zoomArea/hooks/useZoomData.js +18 -30
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.js +15 -58
- package/dist/esm/components/zoomArea/utils/indexRounding.js +7 -67
- package/dist/esm/components/zoomArea/utils/interactionConfig.js +9 -21
- package/dist/esm/components/zoomArea/utils/pathGeneration.js +20 -111
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.js +20 -75
- package/dist/esm/components/zoomArea/utils/selectionConfig.js +13 -27
- package/dist/esm/components/zoomArea/zoomArea.js +130 -79
- package/dist/esm/components/zoomArea/zoomArea.type.js +5 -7
- package/dist/esm/hooks/useFocus/useFocus.js +13 -24
- package/dist/esm/hooks/useHover/useHover.js +13 -26
- package/dist/esm/hooks/useId/useId.js +6 -12
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.js +55 -75
- package/dist/esm/index.js +36 -3
- package/dist/esm/react-charts.css +2 -0
- package/dist/esm/types/canvas.type.js +5 -10
- package/dist/esm/types/errors.type.js +20 -28
- package/dist/esm/types/focusConfig.type.js +15 -24
- package/dist/esm/types/position.enum.js +8 -16
- package/dist/esm/types/unit.enum.js +4 -10
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.js +9 -26
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.js +15 -14
- package/dist/esm/utils/buildErrors/buildErrors.js +18 -44
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.js +2 -16
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.js +2 -12
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.js +2 -36
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.js +18 -22
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.js +24 -28
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.js +12 -19
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.js +20 -28
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.js +26 -34
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.js +14 -25
- package/dist/esm/utils/buildTickValues/buildTickValues.js +13 -46
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.js +28 -53
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.js +34 -45
- package/dist/esm/utils/cursorNear/isNear.js +2 -3
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.js +37 -106
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.js +10 -14
- package/dist/esm/utils/getCoordinates/getCoordinates.js +42 -89
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.js +2 -10
- package/dist/esm/utils/getPoints/getPoints.js +22 -49
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.js +3 -30
- package/dist/esm/utils/getTicks/getTicks.js +13 -48
- package/dist/esm/utils/logger/logger.js +25 -140
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +9 -28
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.js +2 -47
- package/dist/esm/utils/shadowSvg/shadowSvg.js +10 -4
- package/dist/esm/utils/ssr/ssr.js +11 -117
- package/dist/esm/utils/textBound/textBound.js +17 -33
- package/dist/types/charts/barChart/barChart.d.ts +5 -5
- package/dist/types/charts/barChart/barChart.type.d.ts +14 -1
- package/dist/types/charts/barChart/barChart.type.d.ts.map +1 -1
- package/dist/types/charts/barChart/context/barChartContext.d.ts +1 -1
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +1 -1
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +1 -1
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +1 -1
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +1 -1
- package/dist/types/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +1 -1
- package/dist/types/charts/customBackgroundChart/customBackgroundChart.d.ts +2 -2
- package/dist/types/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +1 -1
- package/dist/types/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +1 -1
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts +1 -1
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +1 -1
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +1 -1
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +1 -1
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +1 -1
- package/dist/types/charts/lineChart/lineChart.d.ts +5 -5
- package/dist/types/charts/lineChart/lineChart.type.d.ts +1 -1
- package/dist/types/charts/lineChart/lineChartStructure.d.ts +1 -1
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts +1 -1
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +1 -1
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +1 -1
- package/dist/types/charts/pieChart/pieChart.d.ts +3 -3
- package/dist/types/charts/pieChart/pieChart.type.d.ts +1 -1
- package/dist/types/charts/pieChart/pieChartStructure.d.ts +1 -1
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts +1 -1
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts +1 -1
- package/dist/types/components/bar/bar.d.ts +1 -1
- package/dist/types/components/bar/bar.d.ts.map +1 -1
- package/dist/types/components/bar/bar.type.d.ts +4 -1
- package/dist/types/components/bar/bar.type.d.ts.map +1 -1
- package/dist/types/components/chartText/chartText.d.ts +1 -1
- package/dist/types/components/focusRing/components/FocusRingInline.d.ts +1 -1
- package/dist/types/components/focusRing/components/FocusRingSeparate.d.ts +1 -1
- package/dist/types/components/focusRing/focusRing.d.ts +1 -1
- package/dist/types/components/focusRing/focusRing.types.d.ts +1 -1
- package/dist/types/components/focusRing/hooks/useFocusRingData.d.ts +1 -1
- package/dist/types/components/focusRing/utils/composeRefs.d.ts +1 -1
- package/dist/types/components/foreignObject/foreignObject.d.ts +1 -1
- package/dist/types/components/foreignObject/foreignObject.types.d.ts +1 -1
- package/dist/types/components/line/line.d.ts +1 -1
- package/dist/types/components/line/line.types.d.ts +1 -1
- package/dist/types/components/node/components/circle/circle.d.ts +1 -1
- package/dist/types/components/node/components/hexagon/hexagon.d.ts +1 -1
- package/dist/types/components/node/components/pentagon/pentagon.d.ts +1 -1
- package/dist/types/components/node/components/square/square.d.ts +1 -1
- package/dist/types/components/node/components/star/star.d.ts +1 -1
- package/dist/types/components/node/components/straight/straight.d.ts +1 -1
- package/dist/types/components/node/components/triangle/triangle.d.ts +1 -1
- package/dist/types/components/node/node.d.ts +1 -1
- package/dist/types/components/node/node.types.d.ts +1 -1
- package/dist/types/components/path/components/nodePath/nodePath.d.ts +2 -2
- package/dist/types/components/path/path.d.ts +1 -1
- package/dist/types/components/path/path.types.d.ts +1 -1
- package/dist/types/components/plot/components/circle/circle.d.ts +1 -1
- package/dist/types/components/plot/components/square/square.d.ts +1 -1
- package/dist/types/components/plot/components/triangle/triangle.d.ts +1 -1
- package/dist/types/components/plot/plot.d.ts +1 -1
- package/dist/types/components/svgContainer/svgContainer.d.ts +1 -1
- package/dist/types/components/tick/tick.d.ts +1 -1
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +1 -1
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts +1 -1
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts +2 -2
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +1 -1
- package/dist/types/hooks/useFocus/useFocus.types.d.ts +1 -1
- package/dist/types/hooks/useHover/useHover.types.d.ts +1 -1
- package/dist/types/tests/index.d.ts +2 -0
- package/dist/types/tests/index.d.ts.map +1 -0
- package/dist/types/tests/render/render.d.ts +15 -0
- package/dist/types/tests/render/render.d.ts.map +1 -0
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +1 -1
- package/package.json +109 -112
- package/dist/cjs/charts/barChart/barChart.d.ts +0 -9
- package/dist/cjs/charts/barChart/barChart.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/barChart.type.d.ts +0 -139
- package/dist/cjs/charts/barChart/barChart.type.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/barChart.type.js +0 -1
- package/dist/cjs/charts/barChart/barChartStructure.d.ts +0 -3
- package/dist/cjs/charts/barChart/barChartStructure.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/context/barChartContext.d.ts +0 -3
- package/dist/cjs/charts/barChart/context/barChartContext.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/context/buildBarContextValues.d.ts +0 -26
- package/dist/cjs/charts/barChart/context/buildBarContextValues.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/barChartPath.d.ts +0 -9
- package/dist/cjs/charts/barChart/fragments/barChartPath.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.d.ts +0 -4
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.d.ts +0 -4
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.d.ts +0 -4
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.d.ts +0 -3
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.js +0 -42
- package/dist/cjs/charts/barChart/fragments/fixture/index.d.ts +0 -2
- package/dist/cjs/charts/barChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/fragments/fixture/index.js +0 -1
- package/dist/cjs/charts/barChart/index.d.ts +0 -2
- package/dist/cjs/charts/barChart/index.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/utils/countBarChildren.d.ts +0 -3
- package/dist/cjs/charts/barChart/utils/countBarChildren.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.d.ts +0 -17
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/utils/getBarDataValue.d.ts +0 -8
- package/dist/cjs/charts/barChart/utils/getBarDataValue.d.ts.map +0 -1
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.d.ts +0 -9
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +0 -1
- package/dist/cjs/charts/constants/chartDefaults.d.ts +0 -97
- package/dist/cjs/charts/constants/chartDefaults.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +0 -3
- package/dist/cjs/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/context/index.d.ts +0 -2
- package/dist/cjs/charts/customBackgroundChart/context/index.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/context/index.js +0 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.d.ts +0 -6
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.d.ts +0 -50
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChart.type.js +0 -1
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +0 -4
- package/dist/cjs/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +0 -4
- package/dist/cjs/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/index.d.ts +0 -2
- package/dist/cjs/charts/customBackgroundChart/fragments/index.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/fragments/index.js +0 -1
- package/dist/cjs/charts/customBackgroundChart/index.d.ts +0 -2
- package/dist/cjs/charts/customBackgroundChart/index.d.ts.map +0 -1
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.d.ts +0 -19
- package/dist/cjs/charts/customBackgroundChart/utils/accessibility.d.ts.map +0 -1
- package/dist/cjs/charts/index.d.ts +0 -5
- package/dist/cjs/charts/index.d.ts.map +0 -1
- package/dist/cjs/charts/index.js +0 -4
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.d.ts +0 -21
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/context/index.d.ts +0 -3
- package/dist/cjs/charts/lineChart/context/index.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/context/index.js +0 -2
- package/dist/cjs/charts/lineChart/context/lineChartContext.d.ts +0 -3
- package/dist/cjs/charts/lineChart/context/lineChartContext.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.d.ts +0 -3
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.js +0 -43
- package/dist/cjs/charts/lineChart/fragments/fixture/index.d.ts +0 -2
- package/dist/cjs/charts/lineChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/fixture/index.js +0 -1
- package/dist/cjs/charts/lineChart/fragments/index.d.ts +0 -5
- package/dist/cjs/charts/lineChart/fragments/index.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/index.js +0 -4
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.css +0 -3
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.d.ts +0 -5
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +0 -149
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.d.ts +0 -5
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.d.ts +0 -4
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.d.ts +0 -4
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.d.ts +0 -3
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/hook/index.d.ts +0 -4
- package/dist/cjs/charts/lineChart/hook/index.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/hook/index.js +0 -3
- package/dist/cjs/charts/lineChart/hook/useAutoClick.d.ts +0 -4
- package/dist/cjs/charts/lineChart/hook/useAutoClick.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/hook/useHover.d.ts +0 -12
- package/dist/cjs/charts/lineChart/hook/useHover.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/hook/useIndicator.d.ts +0 -7
- package/dist/cjs/charts/lineChart/hook/useIndicator.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/index.d.ts +0 -2
- package/dist/cjs/charts/lineChart/index.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/lineChart.d.ts +0 -9
- package/dist/cjs/charts/lineChart/lineChart.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/lineChart.type.d.ts +0 -173
- package/dist/cjs/charts/lineChart/lineChart.type.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/lineChart.type.js +0 -1
- package/dist/cjs/charts/lineChart/lineChartStructure.d.ts +0 -33
- package/dist/cjs/charts/lineChart/lineChartStructure.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +0 -14
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.d.ts +0 -8
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getCoordinates.d.ts +0 -25
- package/dist/cjs/charts/lineChart/utils/getCoordinates.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getDataValues.d.ts +0 -8
- package/dist/cjs/charts/lineChart/utils/getDataValues.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.d.ts +0 -17
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getPathData.d.ts +0 -18
- package/dist/cjs/charts/lineChart/utils/getPathData.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getProjection.d.ts +0 -33
- package/dist/cjs/charts/lineChart/utils/getProjection.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.d.ts +0 -17
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/getTicks.d.ts +0 -21
- package/dist/cjs/charts/lineChart/utils/getTicks.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.d.ts +0 -17
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/index.d.ts +0 -7
- package/dist/cjs/charts/lineChart/utils/index.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/index.js +0 -6
- package/dist/cjs/charts/lineChart/utils/tickTextPosition.d.ts +0 -33
- package/dist/cjs/charts/lineChart/utils/tickTextPosition.d.ts.map +0 -1
- package/dist/cjs/charts/lineChart/utils/validations.d.ts +0 -54
- package/dist/cjs/charts/lineChart/utils/validations.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.d.ts +0 -18
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/context/index.d.ts +0 -3
- package/dist/cjs/charts/pieChart/context/index.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/context/index.js +0 -2
- package/dist/cjs/charts/pieChart/context/pieChartContext.d.ts +0 -3
- package/dist/cjs/charts/pieChart/context/pieChartContext.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/fragments/index.d.ts +0 -3
- package/dist/cjs/charts/pieChart/fragments/index.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/fragments/index.js +0 -2
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.d.ts +0 -4
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.d.ts +0 -15
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.d.ts +0 -18
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/index.d.ts +0 -2
- package/dist/cjs/charts/pieChart/index.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/pieChart.d.ts +0 -7
- package/dist/cjs/charts/pieChart/pieChart.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/pieChart.type.d.ts +0 -75
- package/dist/cjs/charts/pieChart/pieChart.type.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/pieChart.type.js +0 -1
- package/dist/cjs/charts/pieChart/pieChartStructure.d.ts +0 -34
- package/dist/cjs/charts/pieChart/pieChartStructure.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/accessibility.d.ts +0 -16
- package/dist/cjs/charts/pieChart/utils/accessibility.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/buildL.d.ts +0 -13
- package/dist/cjs/charts/pieChart/utils/buildL.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/calculatePoint.d.ts +0 -15
- package/dist/cjs/charts/pieChart/utils/calculatePoint.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.d.ts +0 -34
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.d.ts +0 -20
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/index.d.ts +0 -3
- package/dist/cjs/charts/pieChart/utils/index.d.ts.map +0 -1
- package/dist/cjs/charts/pieChart/utils/index.js +0 -2
- package/dist/cjs/charts/pieChart/utils/rotationDirection.d.ts +0 -18
- package/dist/cjs/charts/pieChart/utils/rotationDirection.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/index.d.ts +0 -3
- package/dist/cjs/components/axisChart/index.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/index.js +0 -2
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +0 -18
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/utils/index.d.ts +0 -2
- package/dist/cjs/components/axisChart/utils/index.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/utils/index.js +0 -1
- package/dist/cjs/components/axisChart/xAxis/index.d.ts +0 -3
- package/dist/cjs/components/axisChart/xAxis/index.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/xAxis/index.js +0 -2
- package/dist/cjs/components/axisChart/xAxis/xAxis.d.ts +0 -11
- package/dist/cjs/components/axisChart/xAxis/xAxis.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.d.ts +0 -40
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.js +0 -1
- package/dist/cjs/components/axisChart/yAxis/index.d.ts +0 -3
- package/dist/cjs/components/axisChart/yAxis/index.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/yAxis/index.js +0 -2
- package/dist/cjs/components/axisChart/yAxis/yAxis.d.ts +0 -8
- package/dist/cjs/components/axisChart/yAxis/yAxis.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.d.ts +0 -37
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.d.ts.map +0 -1
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.js +0 -1
- package/dist/cjs/components/bar/bar.d.ts +0 -4
- package/dist/cjs/components/bar/bar.d.ts.map +0 -1
- package/dist/cjs/components/bar/bar.type.d.ts +0 -53
- package/dist/cjs/components/bar/bar.type.d.ts.map +0 -1
- package/dist/cjs/components/bar/index.d.ts +0 -3
- package/dist/cjs/components/bar/index.d.ts.map +0 -1
- package/dist/cjs/components/bar/index.js +0 -2
- package/dist/cjs/components/bar/utils/accessibility.d.ts +0 -22
- package/dist/cjs/components/bar/utils/accessibility.d.ts.map +0 -1
- package/dist/cjs/components/bar/utils/buildD.d.ts +0 -9
- package/dist/cjs/components/bar/utils/buildD.d.ts.map +0 -1
- package/dist/cjs/components/bar/utils/getSegments.d.ts +0 -6
- package/dist/cjs/components/bar/utils/getSegments.d.ts.map +0 -1
- package/dist/cjs/components/chartText/chartText.d.ts +0 -18
- package/dist/cjs/components/chartText/chartText.d.ts.map +0 -1
- package/dist/cjs/components/chartText/chartText.types.d.ts +0 -57
- package/dist/cjs/components/chartText/chartText.types.d.ts.map +0 -1
- package/dist/cjs/components/chartText/chartText.types.js +0 -10
- package/dist/cjs/components/chartText/index.d.ts +0 -3
- package/dist/cjs/components/chartText/index.d.ts.map +0 -1
- package/dist/cjs/components/chartText/index.js +0 -2
- package/dist/cjs/components/focusRing/components/FocusRingInline.d.ts +0 -25
- package/dist/cjs/components/focusRing/components/FocusRingInline.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/components/FocusRingRenderer.d.ts +0 -13
- package/dist/cjs/components/focusRing/components/FocusRingRenderer.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/components/FocusRingSeparate.d.ts +0 -40
- package/dist/cjs/components/focusRing/components/FocusRingSeparate.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/focusRing.css +0 -14
- package/dist/cjs/components/focusRing/focusRing.d.ts +0 -35
- package/dist/cjs/components/focusRing/focusRing.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/focusRing.js +0 -44
- package/dist/cjs/components/focusRing/focusRing.types.d.ts +0 -40
- package/dist/cjs/components/focusRing/focusRing.types.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/focusRing.types.js +0 -1
- package/dist/cjs/components/focusRing/hooks/useFocusRingData.d.ts +0 -27
- package/dist/cjs/components/focusRing/hooks/useFocusRingData.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/index.d.ts +0 -3
- package/dist/cjs/components/focusRing/index.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/index.js +0 -1
- package/dist/cjs/components/focusRing/utils/composeRefs.d.ts +0 -7
- package/dist/cjs/components/focusRing/utils/composeRefs.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/utils/createAdaptiveFocusRings.d.ts +0 -24
- package/dist/cjs/components/focusRing/utils/createAdaptiveFocusRings.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/utils/createBoundingBoxFocusRings.d.ts +0 -33
- package/dist/cjs/components/focusRing/utils/createBoundingBoxFocusRings.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/utils/utils.types.d.ts +0 -52
- package/dist/cjs/components/focusRing/utils/utils.types.d.ts.map +0 -1
- package/dist/cjs/components/focusRing/utils/utils.types.js +0 -1
- package/dist/cjs/components/foreignObject/foreignObject.d.ts +0 -4
- package/dist/cjs/components/foreignObject/foreignObject.d.ts.map +0 -1
- package/dist/cjs/components/foreignObject/foreignObject.types.d.ts +0 -10
- package/dist/cjs/components/foreignObject/foreignObject.types.d.ts.map +0 -1
- package/dist/cjs/components/foreignObject/foreignObject.types.js +0 -1
- package/dist/cjs/components/foreignObject/index.d.ts +0 -3
- package/dist/cjs/components/foreignObject/index.d.ts.map +0 -1
- package/dist/cjs/components/foreignObject/index.js +0 -2
- package/dist/cjs/components/index.d.ts +0 -12
- package/dist/cjs/components/index.d.ts.map +0 -1
- package/dist/cjs/components/index.js +0 -11
- package/dist/cjs/components/line/index.d.ts +0 -3
- package/dist/cjs/components/line/index.d.ts.map +0 -1
- package/dist/cjs/components/line/index.js +0 -2
- package/dist/cjs/components/line/line.d.ts +0 -9
- package/dist/cjs/components/line/line.d.ts.map +0 -1
- package/dist/cjs/components/line/line.types.d.ts +0 -45
- package/dist/cjs/components/line/line.types.d.ts.map +0 -1
- package/dist/cjs/components/line/line.types.js +0 -1
- package/dist/cjs/components/node/components/circle/circle.d.ts +0 -6
- package/dist/cjs/components/node/components/circle/circle.d.ts.map +0 -1
- package/dist/cjs/components/node/components/hexagon/hexagon.d.ts +0 -6
- package/dist/cjs/components/node/components/hexagon/hexagon.d.ts.map +0 -1
- package/dist/cjs/components/node/components/index.d.ts +0 -1
- package/dist/cjs/components/node/components/index.d.ts.map +0 -1
- package/dist/cjs/components/node/components/index.js +0 -1
- package/dist/cjs/components/node/components/pentagon/pentagon.d.ts +0 -6
- package/dist/cjs/components/node/components/pentagon/pentagon.d.ts.map +0 -1
- package/dist/cjs/components/node/components/square/square.d.ts +0 -6
- package/dist/cjs/components/node/components/square/square.d.ts.map +0 -1
- package/dist/cjs/components/node/components/star/star.d.ts +0 -6
- package/dist/cjs/components/node/components/star/star.d.ts.map +0 -1
- package/dist/cjs/components/node/components/straight/straight.d.ts +0 -6
- package/dist/cjs/components/node/components/straight/straight.d.ts.map +0 -1
- package/dist/cjs/components/node/components/triangle/triangle.d.ts +0 -6
- package/dist/cjs/components/node/components/triangle/triangle.d.ts.map +0 -1
- package/dist/cjs/components/node/index.d.ts +0 -3
- package/dist/cjs/components/node/index.d.ts.map +0 -1
- package/dist/cjs/components/node/index.js +0 -2
- package/dist/cjs/components/node/node.d.ts +0 -6
- package/dist/cjs/components/node/node.d.ts.map +0 -1
- package/dist/cjs/components/node/node.types.d.ts +0 -103
- package/dist/cjs/components/node/node.types.d.ts.map +0 -1
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +0 -2
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +0 -1
- package/dist/cjs/components/path/components/nodePath/nodePath.d.ts +0 -14
- package/dist/cjs/components/path/components/nodePath/nodePath.d.ts.map +0 -1
- package/dist/cjs/components/path/index.d.ts +0 -3
- package/dist/cjs/components/path/index.d.ts.map +0 -1
- package/dist/cjs/components/path/index.js +0 -2
- package/dist/cjs/components/path/path.css +0 -29
- package/dist/cjs/components/path/path.d.ts +0 -4
- package/dist/cjs/components/path/path.d.ts.map +0 -1
- package/dist/cjs/components/path/path.js +0 -128
- package/dist/cjs/components/path/path.types.d.ts +0 -86
- package/dist/cjs/components/path/path.types.d.ts.map +0 -1
- package/dist/cjs/components/path/path.types.js +0 -1
- package/dist/cjs/components/plot/components/circle/circle.d.ts +0 -6
- package/dist/cjs/components/plot/components/circle/circle.d.ts.map +0 -1
- package/dist/cjs/components/plot/components/index.d.ts +0 -4
- package/dist/cjs/components/plot/components/index.d.ts.map +0 -1
- package/dist/cjs/components/plot/components/index.js +0 -3
- package/dist/cjs/components/plot/components/square/square.d.ts +0 -6
- package/dist/cjs/components/plot/components/square/square.d.ts.map +0 -1
- package/dist/cjs/components/plot/components/triangle/triangle.d.ts +0 -6
- package/dist/cjs/components/plot/components/triangle/triangle.d.ts.map +0 -1
- package/dist/cjs/components/plot/index.d.ts +0 -3
- package/dist/cjs/components/plot/index.d.ts.map +0 -1
- package/dist/cjs/components/plot/index.js +0 -2
- package/dist/cjs/components/plot/plot.css +0 -12
- package/dist/cjs/components/plot/plot.d.ts +0 -39
- package/dist/cjs/components/plot/plot.d.ts.map +0 -1
- package/dist/cjs/components/plot/plot.js +0 -101
- package/dist/cjs/components/plot/plot.types.d.ts +0 -177
- package/dist/cjs/components/plot/plot.types.d.ts.map +0 -1
- package/dist/cjs/components/svgContainer/index.d.ts +0 -2
- package/dist/cjs/components/svgContainer/index.d.ts.map +0 -1
- package/dist/cjs/components/svgContainer/index.js +0 -1
- package/dist/cjs/components/svgContainer/svgContainer.d.ts +0 -6
- package/dist/cjs/components/svgContainer/svgContainer.d.ts.map +0 -1
- package/dist/cjs/components/svgContainer/svgContainer.types.d.ts +0 -38
- package/dist/cjs/components/svgContainer/svgContainer.types.d.ts.map +0 -1
- package/dist/cjs/components/svgContainer/svgContainer.types.js +0 -1
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +0 -15
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +0 -1
- package/dist/cjs/components/svgContainer/utils/index.d.ts +0 -2
- package/dist/cjs/components/svgContainer/utils/index.d.ts.map +0 -1
- package/dist/cjs/components/svgContainer/utils/index.js +0 -1
- package/dist/cjs/components/tick/index.d.ts +0 -3
- package/dist/cjs/components/tick/index.d.ts.map +0 -1
- package/dist/cjs/components/tick/index.js +0 -2
- package/dist/cjs/components/tick/tick.d.ts +0 -19
- package/dist/cjs/components/tick/tick.d.ts.map +0 -1
- package/dist/cjs/components/tick/tick.types.d.ts +0 -51
- package/dist/cjs/components/tick/tick.types.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/components/HandlerIcon.d.ts +0 -25
- package/dist/cjs/components/zoomArea/components/HandlerIcon.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/components/LineRenderer.d.ts +0 -29
- package/dist/cjs/components/zoomArea/components/LineRenderer.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/components/SelectionArea.d.ts +0 -37
- package/dist/cjs/components/zoomArea/components/SelectionArea.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/components/ZoomHandler.d.ts +0 -42
- package/dist/cjs/components/zoomArea/components/ZoomHandler.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/components/index.d.ts +0 -5
- package/dist/cjs/components/zoomArea/components/index.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/components/index.js +0 -4
- package/dist/cjs/components/zoomArea/hooks/index.d.ts +0 -5
- package/dist/cjs/components/zoomArea/hooks/index.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/hooks/index.js +0 -4
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.d.ts +0 -42
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.d.ts +0 -30
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.d.ts +0 -24
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/hooks/useZoomData.d.ts +0 -33
- package/dist/cjs/components/zoomArea/hooks/useZoomData.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/index.d.ts +0 -6
- package/dist/cjs/components/zoomArea/index.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/index.js +0 -5
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.d.ts +0 -28
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/utils/index.d.ts +0 -4
- package/dist/cjs/components/zoomArea/utils/index.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/utils/index.js +0 -3
- package/dist/cjs/components/zoomArea/utils/indexRounding.d.ts +0 -63
- package/dist/cjs/components/zoomArea/utils/indexRounding.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/utils/interactionConfig.d.ts +0 -10
- package/dist/cjs/components/zoomArea/utils/interactionConfig.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/utils/pathGeneration.d.ts +0 -57
- package/dist/cjs/components/zoomArea/utils/pathGeneration.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.d.ts +0 -60
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/utils/selectionConfig.d.ts +0 -10
- package/dist/cjs/components/zoomArea/utils/selectionConfig.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/zoomArea.d.ts +0 -12
- package/dist/cjs/components/zoomArea/zoomArea.d.ts.map +0 -1
- package/dist/cjs/components/zoomArea/zoomArea.type.d.ts +0 -153
- package/dist/cjs/components/zoomArea/zoomArea.type.d.ts.map +0 -1
- package/dist/cjs/hooks/index.d.ts +0 -5
- package/dist/cjs/hooks/index.d.ts.map +0 -1
- package/dist/cjs/hooks/index.js +0 -4
- package/dist/cjs/hooks/useFocus/useFocus.d.ts +0 -15
- package/dist/cjs/hooks/useFocus/useFocus.d.ts.map +0 -1
- package/dist/cjs/hooks/useFocus/useFocus.types.d.ts +0 -30
- package/dist/cjs/hooks/useFocus/useFocus.types.d.ts.map +0 -1
- package/dist/cjs/hooks/useFocus/useFocus.types.js +0 -1
- package/dist/cjs/hooks/useHover/useHover.d.ts +0 -13
- package/dist/cjs/hooks/useHover/useHover.d.ts.map +0 -1
- package/dist/cjs/hooks/useHover/useHover.types.d.ts +0 -30
- package/dist/cjs/hooks/useHover/useHover.types.d.ts.map +0 -1
- package/dist/cjs/hooks/useHover/useHover.types.js +0 -1
- package/dist/cjs/hooks/useId/index.d.ts +0 -2
- package/dist/cjs/hooks/useId/index.d.ts.map +0 -1
- package/dist/cjs/hooks/useId/index.js +0 -1
- package/dist/cjs/hooks/useId/useId.d.ts +0 -2
- package/dist/cjs/hooks/useId/useId.d.ts.map +0 -1
- package/dist/cjs/hooks/useResponsiveCanvas/index.d.ts +0 -2
- package/dist/cjs/hooks/useResponsiveCanvas/index.d.ts.map +0 -1
- package/dist/cjs/hooks/useResponsiveCanvas/index.js +0 -1
- package/dist/cjs/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts +0 -64
- package/dist/cjs/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts.map +0 -1
- package/dist/cjs/index.d.ts +0 -4
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/types/canvas.type.d.ts +0 -20
- package/dist/cjs/types/canvas.type.d.ts.map +0 -1
- package/dist/cjs/types/errors.type.d.ts +0 -28
- package/dist/cjs/types/errors.type.d.ts.map +0 -1
- package/dist/cjs/types/focusConfig.type.d.ts +0 -47
- package/dist/cjs/types/focusConfig.type.d.ts.map +0 -1
- package/dist/cjs/types/index.d.ts +0 -5
- package/dist/cjs/types/index.d.ts.map +0 -1
- package/dist/cjs/types/index.js +0 -4
- package/dist/cjs/types/position.enum.d.ts +0 -18
- package/dist/cjs/types/position.enum.d.ts.map +0 -1
- package/dist/cjs/types/unit.enum.d.ts +0 -12
- package/dist/cjs/types/unit.enum.d.ts.map +0 -1
- package/dist/cjs/types/valueFormatter.type.d.ts +0 -7
- package/dist/cjs/types/valueFormatter.type.d.ts.map +0 -1
- package/dist/cjs/types/valueFormatter.type.js +0 -1
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +0 -20
- package/dist/cjs/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +0 -1
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.d.ts +0 -2
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.d.ts.map +0 -1
- package/dist/cjs/utils/adaptLegacyFocusConfig/index.js +0 -1
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.d.ts +0 -2
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/buildErrors.d.ts +0 -80
- package/dist/cjs/utils/buildErrors/buildErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/charts/buildBarChartErrors.d.ts +0 -17
- package/dist/cjs/utils/buildErrors/charts/buildBarChartErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/charts/buildLineChartErrors.d.ts +0 -13
- package/dist/cjs/utils/buildErrors/charts/buildLineChartErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.d.ts +0 -37
- package/dist/cjs/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts +0 -19
- package/dist/cjs/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts +0 -25
- package/dist/cjs/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +0 -13
- package/dist/cjs/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/constants/errors/barChartErrors.d.ts +0 -20
- package/dist/cjs/utils/buildErrors/constants/errors/barChartErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/constants/errors/lineChartErrors.d.ts +0 -26
- package/dist/cjs/utils/buildErrors/constants/errors/lineChartErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.d.ts +0 -14
- package/dist/cjs/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/index.d.ts +0 -2
- package/dist/cjs/utils/buildErrors/index.d.ts.map +0 -1
- package/dist/cjs/utils/buildErrors/index.js +0 -2
- package/dist/cjs/utils/buildTickValues/buildTickValues.d.ts +0 -28
- package/dist/cjs/utils/buildTickValues/buildTickValues.d.ts.map +0 -1
- package/dist/cjs/utils/classNames/classNames.d.ts +0 -14
- package/dist/cjs/utils/classNames/classNames.d.ts.map +0 -1
- package/dist/cjs/utils/classNames/classNames.js +0 -25
- package/dist/cjs/utils/createErrorAccumulator/createErrorAccumulator.d.ts +0 -7
- package/dist/cjs/utils/createErrorAccumulator/createErrorAccumulator.d.ts.map +0 -1
- package/dist/cjs/utils/createErrorAccumulator/index.d.ts +0 -2
- package/dist/cjs/utils/createErrorAccumulator/index.d.ts.map +0 -1
- package/dist/cjs/utils/createErrorAccumulator/index.js +0 -1
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.d.ts +0 -21
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +0 -1
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +0 -12
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +0 -1
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.js +0 -1
- package/dist/cjs/utils/cursorNear/isNear.d.ts +0 -2
- package/dist/cjs/utils/cursorNear/isNear.d.ts.map +0 -1
- package/dist/cjs/utils/getAxisData/getAxisData.d.ts +0 -2
- package/dist/cjs/utils/getAxisData/getAxisData.d.ts.map +0 -1
- package/dist/cjs/utils/getAxisData/getAxisData.js +0 -3
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.d.ts +0 -22
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +0 -1
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.d.ts +0 -10
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.d.ts.map +0 -1
- package/dist/cjs/utils/getCoordinates/getCoordinates.d.ts +0 -47
- package/dist/cjs/utils/getCoordinates/getCoordinates.d.ts.map +0 -1
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.d.ts +0 -12
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.d.ts.map +0 -1
- package/dist/cjs/utils/getPoints/getPoints.d.ts +0 -10
- package/dist/cjs/utils/getPoints/getPoints.d.ts.map +0 -1
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +0 -21
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +0 -1
- package/dist/cjs/utils/getTicks/getTicks.d.ts +0 -35
- package/dist/cjs/utils/getTicks/getTicks.d.ts.map +0 -1
- package/dist/cjs/utils/index.d.ts +0 -11
- package/dist/cjs/utils/index.d.ts.map +0 -1
- package/dist/cjs/utils/index.js +0 -10
- package/dist/cjs/utils/logger/index.d.ts +0 -2
- package/dist/cjs/utils/logger/index.d.ts.map +0 -1
- package/dist/cjs/utils/logger/index.js +0 -1
- package/dist/cjs/utils/logger/logger.d.ts +0 -45
- package/dist/cjs/utils/logger/logger.d.ts.map +0 -1
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +0 -11
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +0 -1
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.d.ts +0 -34
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +0 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.d.ts +0 -3
- package/dist/cjs/utils/shadowSvg/shadowSvg.d.ts.map +0 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.d.ts +0 -35
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.d.ts.map +0 -1
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.js +0 -1
- package/dist/cjs/utils/ssr/index.d.ts +0 -2
- package/dist/cjs/utils/ssr/index.d.ts.map +0 -1
- package/dist/cjs/utils/ssr/index.js +0 -1
- package/dist/cjs/utils/ssr/ssr.d.ts +0 -80
- package/dist/cjs/utils/ssr/ssr.d.ts.map +0 -1
- package/dist/cjs/utils/textBound/textBound.d.ts +0 -11
- package/dist/cjs/utils/textBound/textBound.d.ts.map +0 -1
- package/dist/esm/charts/barChart/barChart.d.ts +0 -9
- package/dist/esm/charts/barChart/barChart.d.ts.map +0 -1
- package/dist/esm/charts/barChart/barChart.type.d.ts +0 -139
- package/dist/esm/charts/barChart/barChart.type.d.ts.map +0 -1
- package/dist/esm/charts/barChart/barChart.type.js +0 -1
- package/dist/esm/charts/barChart/barChartStructure.d.ts +0 -3
- package/dist/esm/charts/barChart/barChartStructure.d.ts.map +0 -1
- package/dist/esm/charts/barChart/context/barChartContext.d.ts +0 -3
- package/dist/esm/charts/barChart/context/barChartContext.d.ts.map +0 -1
- package/dist/esm/charts/barChart/context/buildBarContextValues.d.ts +0 -26
- package/dist/esm/charts/barChart/context/buildBarContextValues.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/barChartPath.d.ts +0 -9
- package/dist/esm/charts/barChart/fragments/barChartPath.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/barChartSeparator.d.ts +0 -4
- package/dist/esm/charts/barChart/fragments/barChartSeparator.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/barChartXAxis.d.ts +0 -4
- package/dist/esm/charts/barChart/fragments/barChartXAxis.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/barChartYAxis.d.ts +0 -4
- package/dist/esm/charts/barChart/fragments/barChartYAxis.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.d.ts +0 -3
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.js +0 -42
- package/dist/esm/charts/barChart/fragments/fixture/index.d.ts +0 -2
- package/dist/esm/charts/barChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/esm/charts/barChart/fragments/fixture/index.js +0 -1
- package/dist/esm/charts/barChart/index.d.ts +0 -2
- package/dist/esm/charts/barChart/index.d.ts.map +0 -1
- package/dist/esm/charts/barChart/utils/countBarChildren.d.ts +0 -3
- package/dist/esm/charts/barChart/utils/countBarChildren.d.ts.map +0 -1
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.d.ts +0 -17
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +0 -1
- package/dist/esm/charts/barChart/utils/getBarDataValue.d.ts +0 -8
- package/dist/esm/charts/barChart/utils/getBarDataValue.d.ts.map +0 -1
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.d.ts +0 -9
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +0 -1
- package/dist/esm/charts/constants/chartDefaults.d.ts +0 -97
- package/dist/esm/charts/constants/chartDefaults.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts +0 -3
- package/dist/esm/charts/customBackgroundChart/context/customBackgroundChartContext.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/context/index.d.ts +0 -2
- package/dist/esm/charts/customBackgroundChart/context/index.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/context/index.js +0 -1
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.d.ts +0 -6
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.d.ts +0 -50
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/customBackgroundChart.type.js +0 -1
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.d.ts +0 -4
- package/dist/esm/charts/customBackgroundChart/customBackgroundChartStructure.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts +0 -4
- package/dist/esm/charts/customBackgroundChart/fragments/customBackgroundChartPlot.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/fragments/index.d.ts +0 -2
- package/dist/esm/charts/customBackgroundChart/fragments/index.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/fragments/index.js +0 -1
- package/dist/esm/charts/customBackgroundChart/index.d.ts +0 -2
- package/dist/esm/charts/customBackgroundChart/index.d.ts.map +0 -1
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.d.ts +0 -19
- package/dist/esm/charts/customBackgroundChart/utils/accessibility.d.ts.map +0 -1
- package/dist/esm/charts/index.d.ts +0 -5
- package/dist/esm/charts/index.d.ts.map +0 -1
- package/dist/esm/charts/index.js +0 -4
- package/dist/esm/charts/lineChart/context/buildLineContextValue.d.ts +0 -21
- package/dist/esm/charts/lineChart/context/buildLineContextValue.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/context/index.d.ts +0 -3
- package/dist/esm/charts/lineChart/context/index.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/context/index.js +0 -2
- package/dist/esm/charts/lineChart/context/lineChartContext.d.ts +0 -3
- package/dist/esm/charts/lineChart/context/lineChartContext.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.d.ts +0 -3
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.js +0 -43
- package/dist/esm/charts/lineChart/fragments/fixture/index.d.ts +0 -2
- package/dist/esm/charts/lineChart/fragments/fixture/index.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/fixture/index.js +0 -1
- package/dist/esm/charts/lineChart/fragments/index.d.ts +0 -5
- package/dist/esm/charts/lineChart/fragments/index.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/index.js +0 -4
- package/dist/esm/charts/lineChart/fragments/lineChartPath.css +0 -3
- package/dist/esm/charts/lineChart/fragments/lineChartPath.d.ts +0 -5
- package/dist/esm/charts/lineChart/fragments/lineChartPath.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/lineChartPath.js +0 -149
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.d.ts +0 -5
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.d.ts +0 -4
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.d.ts +0 -4
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.d.ts +0 -3
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/hook/index.d.ts +0 -4
- package/dist/esm/charts/lineChart/hook/index.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/hook/index.js +0 -3
- package/dist/esm/charts/lineChart/hook/useAutoClick.d.ts +0 -4
- package/dist/esm/charts/lineChart/hook/useAutoClick.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/hook/useHover.d.ts +0 -12
- package/dist/esm/charts/lineChart/hook/useHover.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/hook/useIndicator.d.ts +0 -7
- package/dist/esm/charts/lineChart/hook/useIndicator.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/index.d.ts +0 -2
- package/dist/esm/charts/lineChart/index.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/lineChart.d.ts +0 -9
- package/dist/esm/charts/lineChart/lineChart.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/lineChart.type.d.ts +0 -173
- package/dist/esm/charts/lineChart/lineChart.type.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/lineChart.type.js +0 -1
- package/dist/esm/charts/lineChart/lineChartStructure.d.ts +0 -33
- package/dist/esm/charts/lineChart/lineChartStructure.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +0 -14
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.d.ts +0 -8
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getCoordinates.d.ts +0 -25
- package/dist/esm/charts/lineChart/utils/getCoordinates.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getDataValues.d.ts +0 -8
- package/dist/esm/charts/lineChart/utils/getDataValues.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.d.ts +0 -17
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getPathData.d.ts +0 -18
- package/dist/esm/charts/lineChart/utils/getPathData.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getProjection.d.ts +0 -33
- package/dist/esm/charts/lineChart/utils/getProjection.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.d.ts +0 -17
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/getTicks.d.ts +0 -21
- package/dist/esm/charts/lineChart/utils/getTicks.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.d.ts +0 -17
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/index.d.ts +0 -7
- package/dist/esm/charts/lineChart/utils/index.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/index.js +0 -6
- package/dist/esm/charts/lineChart/utils/tickTextPosition.d.ts +0 -33
- package/dist/esm/charts/lineChart/utils/tickTextPosition.d.ts.map +0 -1
- package/dist/esm/charts/lineChart/utils/validations.d.ts +0 -54
- package/dist/esm/charts/lineChart/utils/validations.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/context/buildPieContextValue.d.ts +0 -18
- package/dist/esm/charts/pieChart/context/buildPieContextValue.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/context/index.d.ts +0 -3
- package/dist/esm/charts/pieChart/context/index.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/context/index.js +0 -2
- package/dist/esm/charts/pieChart/context/pieChartContext.d.ts +0 -3
- package/dist/esm/charts/pieChart/context/pieChartContext.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/fragments/index.d.ts +0 -3
- package/dist/esm/charts/pieChart/fragments/index.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/fragments/index.js +0 -2
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.d.ts +0 -4
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/fragments/pieChartPath.d.ts +0 -15
- package/dist/esm/charts/pieChart/fragments/pieChartPath.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.d.ts +0 -18
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/index.d.ts +0 -2
- package/dist/esm/charts/pieChart/index.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/pieChart.d.ts +0 -7
- package/dist/esm/charts/pieChart/pieChart.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/pieChart.type.d.ts +0 -75
- package/dist/esm/charts/pieChart/pieChart.type.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/pieChart.type.js +0 -1
- package/dist/esm/charts/pieChart/pieChartStructure.d.ts +0 -34
- package/dist/esm/charts/pieChart/pieChartStructure.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/accessibility.d.ts +0 -16
- package/dist/esm/charts/pieChart/utils/accessibility.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/buildL.d.ts +0 -13
- package/dist/esm/charts/pieChart/utils/buildL.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/calculatePoint.d.ts +0 -15
- package/dist/esm/charts/pieChart/utils/calculatePoint.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.d.ts +0 -34
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.d.ts +0 -20
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/index.d.ts +0 -3
- package/dist/esm/charts/pieChart/utils/index.d.ts.map +0 -1
- package/dist/esm/charts/pieChart/utils/index.js +0 -2
- package/dist/esm/charts/pieChart/utils/rotationDirection.d.ts +0 -18
- package/dist/esm/charts/pieChart/utils/rotationDirection.d.ts.map +0 -1
- package/dist/esm/components/axisChart/index.d.ts +0 -3
- package/dist/esm/components/axisChart/index.d.ts.map +0 -1
- package/dist/esm/components/axisChart/index.js +0 -2
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +0 -18
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +0 -1
- package/dist/esm/components/axisChart/utils/index.d.ts +0 -2
- package/dist/esm/components/axisChart/utils/index.d.ts.map +0 -1
- package/dist/esm/components/axisChart/utils/index.js +0 -1
- package/dist/esm/components/axisChart/xAxis/index.d.ts +0 -3
- package/dist/esm/components/axisChart/xAxis/index.d.ts.map +0 -1
- package/dist/esm/components/axisChart/xAxis/index.js +0 -2
- package/dist/esm/components/axisChart/xAxis/xAxis.d.ts +0 -11
- package/dist/esm/components/axisChart/xAxis/xAxis.d.ts.map +0 -1
- package/dist/esm/components/axisChart/xAxis/xAxis.types.d.ts +0 -40
- package/dist/esm/components/axisChart/xAxis/xAxis.types.d.ts.map +0 -1
- package/dist/esm/components/axisChart/xAxis/xAxis.types.js +0 -1
- package/dist/esm/components/axisChart/yAxis/index.d.ts +0 -3
- package/dist/esm/components/axisChart/yAxis/index.d.ts.map +0 -1
- package/dist/esm/components/axisChart/yAxis/index.js +0 -2
- package/dist/esm/components/axisChart/yAxis/yAxis.d.ts +0 -8
- package/dist/esm/components/axisChart/yAxis/yAxis.d.ts.map +0 -1
- package/dist/esm/components/axisChart/yAxis/yAxis.types.d.ts +0 -37
- package/dist/esm/components/axisChart/yAxis/yAxis.types.d.ts.map +0 -1
- package/dist/esm/components/axisChart/yAxis/yAxis.types.js +0 -1
- package/dist/esm/components/bar/bar.d.ts +0 -4
- package/dist/esm/components/bar/bar.d.ts.map +0 -1
- package/dist/esm/components/bar/bar.type.d.ts +0 -53
- package/dist/esm/components/bar/bar.type.d.ts.map +0 -1
- package/dist/esm/components/bar/index.d.ts +0 -3
- package/dist/esm/components/bar/index.d.ts.map +0 -1
- package/dist/esm/components/bar/index.js +0 -2
- package/dist/esm/components/bar/utils/accessibility.d.ts +0 -22
- package/dist/esm/components/bar/utils/accessibility.d.ts.map +0 -1
- package/dist/esm/components/bar/utils/buildD.d.ts +0 -9
- package/dist/esm/components/bar/utils/buildD.d.ts.map +0 -1
- package/dist/esm/components/bar/utils/getSegments.d.ts +0 -6
- package/dist/esm/components/bar/utils/getSegments.d.ts.map +0 -1
- package/dist/esm/components/chartText/chartText.d.ts +0 -18
- package/dist/esm/components/chartText/chartText.d.ts.map +0 -1
- package/dist/esm/components/chartText/chartText.types.d.ts +0 -57
- package/dist/esm/components/chartText/chartText.types.d.ts.map +0 -1
- package/dist/esm/components/chartText/chartText.types.js +0 -10
- package/dist/esm/components/chartText/index.d.ts +0 -3
- package/dist/esm/components/chartText/index.d.ts.map +0 -1
- package/dist/esm/components/chartText/index.js +0 -2
- package/dist/esm/components/focusRing/components/FocusRingInline.d.ts +0 -25
- package/dist/esm/components/focusRing/components/FocusRingInline.d.ts.map +0 -1
- package/dist/esm/components/focusRing/components/FocusRingRenderer.d.ts +0 -13
- package/dist/esm/components/focusRing/components/FocusRingRenderer.d.ts.map +0 -1
- package/dist/esm/components/focusRing/components/FocusRingSeparate.d.ts +0 -40
- package/dist/esm/components/focusRing/components/FocusRingSeparate.d.ts.map +0 -1
- package/dist/esm/components/focusRing/focusRing.css +0 -14
- package/dist/esm/components/focusRing/focusRing.d.ts +0 -35
- package/dist/esm/components/focusRing/focusRing.d.ts.map +0 -1
- package/dist/esm/components/focusRing/focusRing.js +0 -44
- package/dist/esm/components/focusRing/focusRing.types.d.ts +0 -40
- package/dist/esm/components/focusRing/focusRing.types.d.ts.map +0 -1
- package/dist/esm/components/focusRing/focusRing.types.js +0 -1
- package/dist/esm/components/focusRing/hooks/useFocusRingData.d.ts +0 -27
- package/dist/esm/components/focusRing/hooks/useFocusRingData.d.ts.map +0 -1
- package/dist/esm/components/focusRing/index.d.ts +0 -3
- package/dist/esm/components/focusRing/index.d.ts.map +0 -1
- package/dist/esm/components/focusRing/index.js +0 -1
- package/dist/esm/components/focusRing/utils/composeRefs.d.ts +0 -7
- package/dist/esm/components/focusRing/utils/composeRefs.d.ts.map +0 -1
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.d.ts +0 -24
- package/dist/esm/components/focusRing/utils/createAdaptiveFocusRings.d.ts.map +0 -1
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.d.ts +0 -33
- package/dist/esm/components/focusRing/utils/createBoundingBoxFocusRings.d.ts.map +0 -1
- package/dist/esm/components/focusRing/utils/utils.types.d.ts +0 -52
- package/dist/esm/components/focusRing/utils/utils.types.d.ts.map +0 -1
- package/dist/esm/components/focusRing/utils/utils.types.js +0 -1
- package/dist/esm/components/foreignObject/foreignObject.d.ts +0 -4
- package/dist/esm/components/foreignObject/foreignObject.d.ts.map +0 -1
- package/dist/esm/components/foreignObject/foreignObject.types.d.ts +0 -10
- package/dist/esm/components/foreignObject/foreignObject.types.d.ts.map +0 -1
- package/dist/esm/components/foreignObject/foreignObject.types.js +0 -1
- package/dist/esm/components/foreignObject/index.d.ts +0 -3
- package/dist/esm/components/foreignObject/index.d.ts.map +0 -1
- package/dist/esm/components/foreignObject/index.js +0 -2
- package/dist/esm/components/index.d.ts +0 -12
- package/dist/esm/components/index.d.ts.map +0 -1
- package/dist/esm/components/index.js +0 -11
- package/dist/esm/components/line/index.d.ts +0 -3
- package/dist/esm/components/line/index.d.ts.map +0 -1
- package/dist/esm/components/line/index.js +0 -2
- package/dist/esm/components/line/line.d.ts +0 -9
- package/dist/esm/components/line/line.d.ts.map +0 -1
- package/dist/esm/components/line/line.types.d.ts +0 -45
- package/dist/esm/components/line/line.types.d.ts.map +0 -1
- package/dist/esm/components/line/line.types.js +0 -1
- package/dist/esm/components/node/components/circle/circle.d.ts +0 -6
- package/dist/esm/components/node/components/circle/circle.d.ts.map +0 -1
- package/dist/esm/components/node/components/hexagon/hexagon.d.ts +0 -6
- package/dist/esm/components/node/components/hexagon/hexagon.d.ts.map +0 -1
- package/dist/esm/components/node/components/index.d.ts +0 -1
- package/dist/esm/components/node/components/index.d.ts.map +0 -1
- package/dist/esm/components/node/components/index.js +0 -1
- package/dist/esm/components/node/components/pentagon/pentagon.d.ts +0 -6
- package/dist/esm/components/node/components/pentagon/pentagon.d.ts.map +0 -1
- package/dist/esm/components/node/components/square/square.d.ts +0 -6
- package/dist/esm/components/node/components/square/square.d.ts.map +0 -1
- package/dist/esm/components/node/components/star/star.d.ts +0 -6
- package/dist/esm/components/node/components/star/star.d.ts.map +0 -1
- package/dist/esm/components/node/components/straight/straight.d.ts +0 -6
- package/dist/esm/components/node/components/straight/straight.d.ts.map +0 -1
- package/dist/esm/components/node/components/triangle/triangle.d.ts +0 -6
- package/dist/esm/components/node/components/triangle/triangle.d.ts.map +0 -1
- package/dist/esm/components/node/index.d.ts +0 -3
- package/dist/esm/components/node/index.d.ts.map +0 -1
- package/dist/esm/components/node/index.js +0 -2
- package/dist/esm/components/node/node.d.ts +0 -6
- package/dist/esm/components/node/node.d.ts.map +0 -1
- package/dist/esm/components/node/node.types.d.ts +0 -103
- package/dist/esm/components/node/node.types.d.ts.map +0 -1
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +0 -2
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +0 -1
- package/dist/esm/components/path/components/nodePath/nodePath.d.ts +0 -14
- package/dist/esm/components/path/components/nodePath/nodePath.d.ts.map +0 -1
- package/dist/esm/components/path/index.d.ts +0 -3
- package/dist/esm/components/path/index.d.ts.map +0 -1
- package/dist/esm/components/path/index.js +0 -2
- package/dist/esm/components/path/path.css +0 -29
- package/dist/esm/components/path/path.d.ts +0 -4
- package/dist/esm/components/path/path.d.ts.map +0 -1
- package/dist/esm/components/path/path.js +0 -128
- package/dist/esm/components/path/path.types.d.ts +0 -86
- package/dist/esm/components/path/path.types.d.ts.map +0 -1
- package/dist/esm/components/path/path.types.js +0 -1
- package/dist/esm/components/plot/components/circle/circle.d.ts +0 -6
- package/dist/esm/components/plot/components/circle/circle.d.ts.map +0 -1
- package/dist/esm/components/plot/components/index.d.ts +0 -4
- package/dist/esm/components/plot/components/index.d.ts.map +0 -1
- package/dist/esm/components/plot/components/index.js +0 -3
- package/dist/esm/components/plot/components/square/square.d.ts +0 -6
- package/dist/esm/components/plot/components/square/square.d.ts.map +0 -1
- package/dist/esm/components/plot/components/triangle/triangle.d.ts +0 -6
- package/dist/esm/components/plot/components/triangle/triangle.d.ts.map +0 -1
- package/dist/esm/components/plot/index.d.ts +0 -3
- package/dist/esm/components/plot/index.d.ts.map +0 -1
- package/dist/esm/components/plot/index.js +0 -2
- package/dist/esm/components/plot/plot.css +0 -12
- package/dist/esm/components/plot/plot.d.ts +0 -39
- package/dist/esm/components/plot/plot.d.ts.map +0 -1
- package/dist/esm/components/plot/plot.js +0 -101
- package/dist/esm/components/plot/plot.types.d.ts +0 -177
- package/dist/esm/components/plot/plot.types.d.ts.map +0 -1
- package/dist/esm/components/svgContainer/index.d.ts +0 -2
- package/dist/esm/components/svgContainer/index.d.ts.map +0 -1
- package/dist/esm/components/svgContainer/index.js +0 -1
- package/dist/esm/components/svgContainer/svgContainer.d.ts +0 -6
- package/dist/esm/components/svgContainer/svgContainer.d.ts.map +0 -1
- package/dist/esm/components/svgContainer/svgContainer.types.d.ts +0 -38
- package/dist/esm/components/svgContainer/svgContainer.types.d.ts.map +0 -1
- package/dist/esm/components/svgContainer/svgContainer.types.js +0 -1
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +0 -15
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +0 -1
- package/dist/esm/components/svgContainer/utils/index.d.ts +0 -2
- package/dist/esm/components/svgContainer/utils/index.d.ts.map +0 -1
- package/dist/esm/components/svgContainer/utils/index.js +0 -1
- package/dist/esm/components/tick/index.d.ts +0 -3
- package/dist/esm/components/tick/index.d.ts.map +0 -1
- package/dist/esm/components/tick/index.js +0 -2
- package/dist/esm/components/tick/tick.d.ts +0 -19
- package/dist/esm/components/tick/tick.d.ts.map +0 -1
- package/dist/esm/components/tick/tick.types.d.ts +0 -51
- package/dist/esm/components/tick/tick.types.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/components/HandlerIcon.d.ts +0 -25
- package/dist/esm/components/zoomArea/components/HandlerIcon.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/components/LineRenderer.d.ts +0 -29
- package/dist/esm/components/zoomArea/components/LineRenderer.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/components/SelectionArea.d.ts +0 -37
- package/dist/esm/components/zoomArea/components/SelectionArea.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/components/ZoomHandler.d.ts +0 -42
- package/dist/esm/components/zoomArea/components/ZoomHandler.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/components/index.d.ts +0 -5
- package/dist/esm/components/zoomArea/components/index.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/components/index.js +0 -4
- package/dist/esm/components/zoomArea/hooks/index.d.ts +0 -5
- package/dist/esm/components/zoomArea/hooks/index.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/hooks/index.js +0 -4
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.d.ts +0 -42
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.d.ts +0 -30
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.d.ts +0 -24
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/hooks/useZoomData.d.ts +0 -33
- package/dist/esm/components/zoomArea/hooks/useZoomData.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/index.d.ts +0 -6
- package/dist/esm/components/zoomArea/index.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/index.js +0 -5
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.d.ts +0 -28
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/utils/index.d.ts +0 -4
- package/dist/esm/components/zoomArea/utils/index.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/utils/index.js +0 -3
- package/dist/esm/components/zoomArea/utils/indexRounding.d.ts +0 -63
- package/dist/esm/components/zoomArea/utils/indexRounding.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/utils/interactionConfig.d.ts +0 -10
- package/dist/esm/components/zoomArea/utils/interactionConfig.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/utils/pathGeneration.d.ts +0 -57
- package/dist/esm/components/zoomArea/utils/pathGeneration.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.d.ts +0 -60
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/utils/selectionConfig.d.ts +0 -10
- package/dist/esm/components/zoomArea/utils/selectionConfig.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/zoomArea.d.ts +0 -12
- package/dist/esm/components/zoomArea/zoomArea.d.ts.map +0 -1
- package/dist/esm/components/zoomArea/zoomArea.type.d.ts +0 -153
- package/dist/esm/components/zoomArea/zoomArea.type.d.ts.map +0 -1
- package/dist/esm/hooks/index.d.ts +0 -5
- package/dist/esm/hooks/index.d.ts.map +0 -1
- package/dist/esm/hooks/index.js +0 -4
- package/dist/esm/hooks/useFocus/useFocus.d.ts +0 -15
- package/dist/esm/hooks/useFocus/useFocus.d.ts.map +0 -1
- package/dist/esm/hooks/useFocus/useFocus.types.d.ts +0 -30
- package/dist/esm/hooks/useFocus/useFocus.types.d.ts.map +0 -1
- package/dist/esm/hooks/useFocus/useFocus.types.js +0 -1
- package/dist/esm/hooks/useHover/useHover.d.ts +0 -13
- package/dist/esm/hooks/useHover/useHover.d.ts.map +0 -1
- package/dist/esm/hooks/useHover/useHover.types.d.ts +0 -30
- package/dist/esm/hooks/useHover/useHover.types.d.ts.map +0 -1
- package/dist/esm/hooks/useHover/useHover.types.js +0 -1
- package/dist/esm/hooks/useId/index.d.ts +0 -2
- package/dist/esm/hooks/useId/index.d.ts.map +0 -1
- package/dist/esm/hooks/useId/index.js +0 -1
- package/dist/esm/hooks/useId/useId.d.ts +0 -2
- package/dist/esm/hooks/useId/useId.d.ts.map +0 -1
- package/dist/esm/hooks/useResponsiveCanvas/index.d.ts +0 -2
- package/dist/esm/hooks/useResponsiveCanvas/index.d.ts.map +0 -1
- package/dist/esm/hooks/useResponsiveCanvas/index.js +0 -1
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts +0 -64
- package/dist/esm/hooks/useResponsiveCanvas/useResponsiveCanvas.d.ts.map +0 -1
- package/dist/esm/index.d.ts +0 -4
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/types/canvas.type.d.ts +0 -20
- package/dist/esm/types/canvas.type.d.ts.map +0 -1
- package/dist/esm/types/errors.type.d.ts +0 -28
- package/dist/esm/types/errors.type.d.ts.map +0 -1
- package/dist/esm/types/focusConfig.type.d.ts +0 -47
- package/dist/esm/types/focusConfig.type.d.ts.map +0 -1
- package/dist/esm/types/index.d.ts +0 -5
- package/dist/esm/types/index.d.ts.map +0 -1
- package/dist/esm/types/index.js +0 -4
- package/dist/esm/types/position.enum.d.ts +0 -18
- package/dist/esm/types/position.enum.d.ts.map +0 -1
- package/dist/esm/types/unit.enum.d.ts +0 -12
- package/dist/esm/types/unit.enum.d.ts.map +0 -1
- package/dist/esm/types/valueFormatter.type.d.ts +0 -7
- package/dist/esm/types/valueFormatter.type.d.ts.map +0 -1
- package/dist/esm/types/valueFormatter.type.js +0 -1
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts +0 -20
- package/dist/esm/utils/adaptLegacyFocusConfig/adaptLegacyFocusConfig.d.ts.map +0 -1
- package/dist/esm/utils/adaptLegacyFocusConfig/index.d.ts +0 -2
- package/dist/esm/utils/adaptLegacyFocusConfig/index.d.ts.map +0 -1
- package/dist/esm/utils/adaptLegacyFocusConfig/index.js +0 -1
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.d.ts +0 -2
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/buildErrors.d.ts +0 -80
- package/dist/esm/utils/buildErrors/buildErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.d.ts +0 -17
- package/dist/esm/utils/buildErrors/charts/buildBarChartErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.d.ts +0 -13
- package/dist/esm/utils/buildErrors/charts/buildLineChartErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.d.ts +0 -37
- package/dist/esm/utils/buildErrors/charts/buildPieChartErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts +0 -19
- package/dist/esm/utils/buildErrors/constants/errorMessages/barChartErrorMessages.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts +0 -25
- package/dist/esm/utils/buildErrors/constants/errorMessages/lineChartErrorMessages.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts +0 -13
- package/dist/esm/utils/buildErrors/constants/errorMessages/pieChartErrorMessages.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.d.ts +0 -20
- package/dist/esm/utils/buildErrors/constants/errors/barChartErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.d.ts +0 -26
- package/dist/esm/utils/buildErrors/constants/errors/lineChartErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.d.ts +0 -14
- package/dist/esm/utils/buildErrors/constants/errors/pieChartErrors.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/index.d.ts +0 -2
- package/dist/esm/utils/buildErrors/index.d.ts.map +0 -1
- package/dist/esm/utils/buildErrors/index.js +0 -2
- package/dist/esm/utils/buildTickValues/buildTickValues.d.ts +0 -28
- package/dist/esm/utils/buildTickValues/buildTickValues.d.ts.map +0 -1
- package/dist/esm/utils/classNames/classNames.d.ts +0 -14
- package/dist/esm/utils/classNames/classNames.d.ts.map +0 -1
- package/dist/esm/utils/classNames/classNames.js +0 -25
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.d.ts +0 -7
- package/dist/esm/utils/createErrorAccumulator/createErrorAccumulator.d.ts.map +0 -1
- package/dist/esm/utils/createErrorAccumulator/index.d.ts +0 -2
- package/dist/esm/utils/createErrorAccumulator/index.d.ts.map +0 -1
- package/dist/esm/utils/createErrorAccumulator/index.js +0 -1
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.d.ts +0 -21
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +0 -1
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +0 -12
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +0 -1
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.js +0 -1
- package/dist/esm/utils/cursorNear/isNear.d.ts +0 -2
- package/dist/esm/utils/cursorNear/isNear.d.ts.map +0 -1
- package/dist/esm/utils/getAxisData/getAxisData.d.ts +0 -2
- package/dist/esm/utils/getAxisData/getAxisData.d.ts.map +0 -1
- package/dist/esm/utils/getAxisData/getAxisData.js +0 -3
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.d.ts +0 -22
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +0 -1
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.d.ts +0 -10
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.d.ts.map +0 -1
- package/dist/esm/utils/getCoordinates/getCoordinates.d.ts +0 -47
- package/dist/esm/utils/getCoordinates/getCoordinates.d.ts.map +0 -1
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.d.ts +0 -12
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.d.ts.map +0 -1
- package/dist/esm/utils/getPoints/getPoints.d.ts +0 -10
- package/dist/esm/utils/getPoints/getPoints.d.ts.map +0 -1
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +0 -21
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +0 -1
- package/dist/esm/utils/getTicks/getTicks.d.ts +0 -35
- package/dist/esm/utils/getTicks/getTicks.d.ts.map +0 -1
- package/dist/esm/utils/index.d.ts +0 -11
- package/dist/esm/utils/index.d.ts.map +0 -1
- package/dist/esm/utils/index.js +0 -10
- package/dist/esm/utils/logger/index.d.ts +0 -2
- package/dist/esm/utils/logger/index.d.ts.map +0 -1
- package/dist/esm/utils/logger/index.js +0 -1
- package/dist/esm/utils/logger/logger.d.ts +0 -45
- package/dist/esm/utils/logger/logger.d.ts.map +0 -1
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +0 -11
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +0 -1
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.d.ts +0 -34
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +0 -1
- package/dist/esm/utils/shadowSvg/shadowSvg.d.ts +0 -3
- package/dist/esm/utils/shadowSvg/shadowSvg.d.ts.map +0 -1
- package/dist/esm/utils/shadowSvg/shadowSvg.types.d.ts +0 -35
- package/dist/esm/utils/shadowSvg/shadowSvg.types.d.ts.map +0 -1
- package/dist/esm/utils/shadowSvg/shadowSvg.types.js +0 -1
- package/dist/esm/utils/ssr/index.d.ts +0 -2
- package/dist/esm/utils/ssr/index.d.ts.map +0 -1
- package/dist/esm/utils/ssr/index.js +0 -1
- package/dist/esm/utils/ssr/ssr.d.ts +0 -80
- package/dist/esm/utils/ssr/ssr.d.ts.map +0 -1
- package/dist/esm/utils/textBound/textBound.d.ts +0 -11
- package/dist/esm/utils/textBound/textBound.d.ts.map +0 -1
- package/dist/kubit-ui-web-react-charts.cjs.js +0 -1
- package/dist/kubit-ui-web-react-charts.es.js +0 -1
- package/dist/kubit-ui-web-react-charts.umd.js +0 -1
- package/dist/react-charts.css +0 -1
|
@@ -1,115 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const locateFromPosition = ({ barWidth, currentBars, extraSpacing, order, orientation, }) => {
|
|
3
|
-
const halfWidth = barWidth / 2;
|
|
4
|
-
const gap = extraSpacing / 2;
|
|
5
|
-
const isEven = currentBars % 2 === 0;
|
|
6
|
-
// calculate the space between the bars
|
|
7
|
-
const ajustedSpace = isEven ? gap : gap + halfWidth;
|
|
8
|
-
// calculate the center of the bars
|
|
9
|
-
const center = Math.ceil(currentBars / 2);
|
|
10
|
-
// calculate the current position of the bar
|
|
11
|
-
const currentPosition = order - center;
|
|
12
|
-
// calculate the start reference based on the current position
|
|
13
|
-
let startReference = 0;
|
|
14
|
-
if (currentPosition === 0) {
|
|
15
|
-
startReference = isEven ? -gap : halfWidth;
|
|
16
|
-
}
|
|
17
|
-
else if (currentPosition < 0) {
|
|
18
|
-
if (orientation === BarOrientation.HORIZONTAL) {
|
|
19
|
-
startReference = currentPosition * -ajustedSpace + barWidth;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
startReference = currentPosition * ajustedSpace;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
else if (currentPosition > 0) {
|
|
26
|
-
if (orientation === BarOrientation.HORIZONTAL) {
|
|
27
|
-
startReference = currentPosition * -ajustedSpace;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
startReference = currentPosition * ajustedSpace + barWidth;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return startReference;
|
|
34
|
-
};
|
|
35
|
-
export const buildD = ({ barWidth, currentBars, endRounded = 0, extraSpacing, order, orientation, startRounded = 0, x1, x2, y1, y2, }) => {
|
|
36
|
-
// declare the variables for the path
|
|
37
|
-
let start, draw1, draw2, draw3;
|
|
38
|
-
let end = 'Z';
|
|
39
|
-
// get the reference for the start of the draw
|
|
40
|
-
const startReference = locateFromPosition({
|
|
41
|
-
barWidth,
|
|
42
|
-
currentBars,
|
|
43
|
-
extraSpacing,
|
|
44
|
-
order,
|
|
45
|
-
orientation,
|
|
46
|
-
});
|
|
47
|
-
/**
|
|
48
|
-
* M = moove to (x, y)
|
|
49
|
-
* L = line to (x, y)
|
|
50
|
-
* Q = quadratic curve to (x curve deep, y curve deep), (end draw x, end draw y)
|
|
51
|
-
*/
|
|
52
|
-
if (orientation === BarOrientation.HORIZONTAL) {
|
|
53
|
-
// calculate the start and end of the quadratic curve in horizontal orientation
|
|
54
|
-
const modifyXStart = x1 + startRounded;
|
|
55
|
-
const modifyXEnd = x2 - endRounded;
|
|
56
|
-
if (startRounded && endRounded) {
|
|
57
|
-
start = `M ${modifyXStart},${y1 + startReference}`;
|
|
58
|
-
draw1 = `L${modifyXEnd},${y2 + startReference}`;
|
|
59
|
-
draw2 = `Q${x2 + endRounded} ${y2 + startReference - barWidth / 2}, ${modifyXEnd} ${y2 + startReference - barWidth}`;
|
|
60
|
-
draw3 = `L${modifyXStart},${y1 + startReference - barWidth}`;
|
|
61
|
-
end = `Q${x1 - startRounded} ${y1 + startReference - barWidth / 2}, ${modifyXStart} ${y1 + startReference}`;
|
|
62
|
-
}
|
|
63
|
-
else if (startRounded) {
|
|
64
|
-
start = `M ${modifyXStart},${y1 + startReference}`;
|
|
65
|
-
draw1 = `L${x2},${y2 + startReference}`;
|
|
66
|
-
draw2 = `L${x2},${y2 + startReference - barWidth}`;
|
|
67
|
-
draw3 = `L${modifyXStart},${y1 + startReference - barWidth}`;
|
|
68
|
-
end = `Q${x1 - startRounded} ${y1 + startReference - barWidth / 2}, ${modifyXStart} ${y1 + startReference}`;
|
|
69
|
-
}
|
|
70
|
-
else if (endRounded) {
|
|
71
|
-
start = `M${x1},${y1 + startReference}`;
|
|
72
|
-
draw1 = `L${modifyXEnd},${y2 + startReference}`;
|
|
73
|
-
draw2 = `Q${x2 + endRounded} ${y2 + startReference - barWidth / 2}, ${modifyXEnd} ${y2 + startReference - barWidth}`;
|
|
74
|
-
draw3 = `L${x1},${y1 + startReference - barWidth}`;
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
start = `M${x1},${y1 + startReference}`;
|
|
78
|
-
draw1 = `L${x2},${y2 + startReference}`;
|
|
79
|
-
draw2 = `L${x2},${y2 + startReference - barWidth}`;
|
|
80
|
-
draw3 = `L${x1},${y1 + startReference - barWidth}`;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
// calculate the start and end of the quadratic curve in vertical orientation
|
|
85
|
-
const modifyYStart = y1 - startRounded;
|
|
86
|
-
const modifyYEnd = y2 + endRounded;
|
|
87
|
-
if (startRounded && endRounded) {
|
|
88
|
-
start = `M${x1 + startReference}, ${modifyYStart}`;
|
|
89
|
-
draw1 = `L${x2 + startReference},${modifyYEnd}`;
|
|
90
|
-
draw2 = `Q${x2 + startReference - barWidth / 2} ${y2 - endRounded}, ${x2 + startReference - barWidth} ${modifyYEnd}`;
|
|
91
|
-
draw3 = `L${x1 + startReference - barWidth},${modifyYStart}`;
|
|
92
|
-
end = `Q${x1 + startReference - barWidth / 2} ${y1 + startRounded}, ${x1 + startReference} ${modifyYStart}`;
|
|
93
|
-
}
|
|
94
|
-
else if (startRounded) {
|
|
95
|
-
start = `M${x1 + startReference}, ${modifyYStart}`;
|
|
96
|
-
draw1 = `L${x2 + startReference},${y2}`;
|
|
97
|
-
draw2 = `L${x2 + startReference - barWidth},${y2}`;
|
|
98
|
-
draw3 = `L${x1 + startReference - barWidth},${modifyYStart}`;
|
|
99
|
-
end = `Q${x1 + startReference - barWidth / 2} ${y1 + startRounded}, ${x1 + startReference} ${modifyYStart}`;
|
|
100
|
-
}
|
|
101
|
-
else if (endRounded) {
|
|
102
|
-
start = `M${x1 + startReference},${y1}`;
|
|
103
|
-
draw1 = `L${x2 + startReference},${modifyYEnd}`;
|
|
104
|
-
draw2 = `Q${x2 + startReference - barWidth / 2} ${y2 - endRounded}, ${x2 + startReference - barWidth} ${modifyYEnd}`;
|
|
105
|
-
draw3 = `L${x2 + startReference - barWidth},${y1}`;
|
|
106
|
-
}
|
|
107
|
-
else {
|
|
108
|
-
start = `M${x1 + startReference},${y1}`;
|
|
109
|
-
draw1 = `L${x2 + startReference},${y2}`;
|
|
110
|
-
draw2 = `L${x2 + startReference - barWidth},${y2}`;
|
|
111
|
-
draw3 = `L${x1 + startReference - barWidth},${y1}`;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return `${start} ${draw1} ${draw2} ${draw3} ${end}`;
|
|
115
|
-
};
|
|
1
|
+
const e=require(`../bar.type.js`);var t=({barWidth:t,currentBars:n,extraSpacing:r,order:i,orientation:a})=>{let o=t/2,s=r/2,c=n%2==0,l=c?s:s+o,u=i-Math.ceil(n/2),d=0;return u===0?d=c?-s:o:u<0?d=a===e.BarOrientation.HORIZONTAL?u*-l+t:u*l:u>0&&(d=a===e.BarOrientation.HORIZONTAL?u*-l:u*l+t),d};exports.buildD=({barWidth:n,currentBars:r,endRounded:i=0,extraSpacing:a,order:o,orientation:s,startRounded:c=0,x1:l,x2:u,y1:d,y2:f})=>{let p,m,h,g,_=`Z`,v=t({barWidth:n,currentBars:r,extraSpacing:a,order:o,orientation:s});if(s===e.BarOrientation.HORIZONTAL){let e=l+c,t=u-i;c&&i?(p=`M ${e},${d+v}`,m=`L${t},${f+v}`,h=`Q${u+i} ${f+v-n/2}, ${t} ${f+v-n}`,g=`L${e},${d+v-n}`,_=`Q${l-c} ${d+v-n/2}, ${e} ${d+v}`):c?(p=`M ${e},${d+v}`,m=`L${u},${f+v}`,h=`L${u},${f+v-n}`,g=`L${e},${d+v-n}`,_=`Q${l-c} ${d+v-n/2}, ${e} ${d+v}`):i?(p=`M${l},${d+v}`,m=`L${t},${f+v}`,h=`Q${u+i} ${f+v-n/2}, ${t} ${f+v-n}`,g=`L${l},${d+v-n}`):(p=`M${l},${d+v}`,m=`L${u},${f+v}`,h=`L${u},${f+v-n}`,g=`L${l},${d+v-n}`)}else{let e=d-c,t=f+i;c&&i?(p=`M${l+v}, ${e}`,m=`L${u+v},${t}`,h=`Q${u+v-n/2} ${f-i}, ${u+v-n} ${t}`,g=`L${l+v-n},${e}`,_=`Q${l+v-n/2} ${d+c}, ${l+v} ${e}`):c?(p=`M${l+v}, ${e}`,m=`L${u+v},${f}`,h=`L${u+v-n},${f}`,g=`L${l+v-n},${e}`,_=`Q${l+v-n/2} ${d+c}, ${l+v} ${e}`):i?(p=`M${l+v},${d}`,m=`L${u+v},${t}`,h=`Q${u+v-n/2} ${f-i}, ${u+v-n} ${t}`,g=`L${u+v-n},${d}`):(p=`M${l+v},${d}`,m=`L${u+v},${f}`,h=`L${u+v-n},${f}`,g=`L${l+v-n},${d}`)}return`${p} ${m} ${h} ${g} ${_}`};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
|
|
2
|
-
const transformCoverage = (coveragePercent, maxValue) => {
|
|
3
|
-
return (coveragePercent / 100) * maxValue;
|
|
4
|
-
};
|
|
5
|
-
const ajustedGap = (positive, value, gap) => {
|
|
6
|
-
return positive ? value + gap / 2 : value - gap / 2;
|
|
7
|
-
};
|
|
8
|
-
export const getSegments = ({ barConfig, orientation, x1, x2, y1, y2, }) => {
|
|
9
|
-
const { gap = 0, singleConfig } = barConfig;
|
|
10
|
-
const isHorizontal = orientation === BarOrientation.HORIZONTAL;
|
|
11
|
-
// the start of the bar based on the orientation
|
|
12
|
-
const barStart = isHorizontal ? x1 : y1;
|
|
13
|
-
// the end of the bar based on the orientation
|
|
14
|
-
const barEnd = isHorizontal ? x2 : y2;
|
|
15
|
-
// ajusted type based on the values of the start and end
|
|
16
|
-
const ajustedType = {
|
|
17
|
-
end: barEnd < barStart,
|
|
18
|
-
start: barEnd > barStart,
|
|
19
|
-
};
|
|
20
|
-
return singleConfig.reduce((acc, single, idx) => {
|
|
21
|
-
const { coverage: coveragePercent } = single;
|
|
22
|
-
// calculate the coverage based on the percentage and the bar size
|
|
23
|
-
const coverage = transformCoverage(coveragePercent, barEnd - barStart);
|
|
24
|
-
// if the index is 0, the start is the barStart, otherwise it's the end of the previous segment
|
|
25
|
-
const start = idx === 0 ? barStart : ajustedGap(ajustedType.start, acc[idx - 1][1], gap);
|
|
26
|
-
// if the index is the last, the end is the barEnd, otherwise it's the start + coverage
|
|
27
|
-
const end = idx + 1 === singleConfig.length ? barEnd : ajustedGap(ajustedType.end, start + coverage, gap);
|
|
28
|
-
acc.push([start, end]);
|
|
29
|
-
return acc;
|
|
30
|
-
}, []);
|
|
31
|
-
};
|
|
1
|
+
const e=require(`../bar.type.js`);var t=(e,t)=>e/100*t,n=(e,t,n)=>e?t+n/2:t-n/2;exports.getSegments=({barConfig:r,orientation:i,x1:a,x2:o,y1:s,y2:c})=>{let{gap:l=0,singleConfig:u}=r,d=i===e.BarOrientation.HORIZONTAL,f=d?a:s,p=d?o:c,m={end:p<f,start:p>f};return u.reduce((e,r,i)=>{let{coverage:a}=r,o=t(a,p-f),s=i===0?f:n(m.start,e[i-1][1],l),c=i+1===u.length?p:n(m.end,s+o,l);return e.push([s,c]),e},[])};
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Functional component for rendering SVG text elements in React.
|
|
4
|
-
*
|
|
5
|
-
* This component abstracts the `<text>` SVG element, providing a convenient interface for rendering text within SVGs
|
|
6
|
-
* using React. It accepts all standard SVG text attributes via `ChartTextProps`, along with additional React-specific
|
|
7
|
-
* properties such as `className` and `tabIndex`. The component's children are expected to be the text content to be
|
|
8
|
-
* rendered.
|
|
9
|
-
*
|
|
10
|
-
* @param {ChartTextProps} props - The properties for the text component.
|
|
11
|
-
* @param {string} [props.className='circle'] - Optional. CSS class name for the text element. Defaults to 'circle'.
|
|
12
|
-
* @param {number} [props.tabIndex=-1] - Optional. Specifies the tab order of the element. Defaults to -1, which means the element is not focusable.
|
|
13
|
-
* @param {React.ReactNode} props.children - The text content to be rendered within the `<text>` element.
|
|
14
|
-
* @returns {React.ReactElement} A React element representing the SVG text.
|
|
15
|
-
*/
|
|
16
|
-
export const ChartText = ({ children, className = 'circle', ...props }) => {
|
|
17
|
-
return (_jsx("text", { className: className, ...props, children: children }));
|
|
18
|
-
};
|
|
1
|
+
let e=require(`react/jsx-runtime`);exports.ChartText=({children:t,className:n=`circle`,...r})=>(0,e.jsx)(`text`,{className:n,...r,children:t});
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { cloneElement, useRef } from 'react';
|
|
3
|
-
import { useFocusRingData } from '../hooks/useFocusRingData';
|
|
4
|
-
import { composeRefs } from '../utils/composeRefs';
|
|
5
|
-
import { FocusRingRenderer } from './FocusRingRenderer';
|
|
6
|
-
/**
|
|
7
|
-
* FocusRing component for inline mode (children).
|
|
8
|
-
* Wraps the element and renders focus ring inline with automatic z-order.
|
|
9
|
-
*
|
|
10
|
-
* This component:
|
|
11
|
-
* - Clones the children element and attaches a ref to it
|
|
12
|
-
* - Detects element bounds on mount and when focus state changes
|
|
13
|
-
* - Renders the focus ring BEFORE the element (proper z-order)
|
|
14
|
-
* - Handles both adaptive and bounding-box variants
|
|
15
|
-
* - Preserves any existing ref the children might have
|
|
16
|
-
*
|
|
17
|
-
* @param props - FocusRingInlineProps
|
|
18
|
-
* @returns JSX element with focus ring + wrapped children
|
|
19
|
-
*/
|
|
20
|
-
export const FocusRingInline = ({ children, dataTestId = 'focus-ring', disabled = false, focusConfig, isFocused, }) => {
|
|
21
|
-
// Create ref for the SVG graphics element
|
|
22
|
-
const childrenRef = useRef(null);
|
|
23
|
-
const { layers } = useFocusRingData({
|
|
24
|
-
elementRef: childrenRef,
|
|
25
|
-
focusConfig,
|
|
26
|
-
isFocused,
|
|
27
|
-
});
|
|
28
|
-
// Extract the ref from children safely
|
|
29
|
-
// Children might have a ref attached, we need to preserve it while adding our own
|
|
30
|
-
const childrenWithRef = children;
|
|
31
|
-
const combinedRef = composeRefs(childrenRef, childrenWithRef.ref);
|
|
32
|
-
// Clone children and add ref (but NOT event handlers - parent manages those)
|
|
33
|
-
const wrappedChildren = cloneElement(children, {
|
|
34
|
-
ref: combinedRef,
|
|
35
|
-
});
|
|
36
|
-
return (_jsxs(_Fragment, { children: [isFocused && !disabled && (_jsx(FocusRingRenderer, { dataTestId: dataTestId, layers: layers ?? undefined })), wrappedChildren] }));
|
|
37
|
-
};
|
|
1
|
+
const e=require(`../hooks/useFocusRingData.js`),t=require(`../utils/composeRefs.js`),n=require(`./FocusRingRenderer.js`);let r=require(`react`),i=require(`react/jsx-runtime`);exports.FocusRingInline=({children:a,dataTestId:o=`focus-ring`,disabled:s=!1,focusConfig:c,isFocused:l})=>{let u=(0,r.useRef)(null),{layers:d}=e.useFocusRingData({elementRef:u,focusConfig:c,isFocused:l}),f=(0,r.cloneElement)(a,{ref:t.composeRefs(u,a.ref)});return(0,i.jsxs)(i.Fragment,{children:[l&&!s&&(0,i.jsx)(n.FocusRingRenderer,{dataTestId:o,layers:d??void 0}),f]})};
|
|
@@ -1,25 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { createElement } from 'react';
|
|
3
|
-
/**
|
|
4
|
-
* Internal component that renders the actual focus ring elements.
|
|
5
|
-
* Supports both adaptive and bounding-box strategies with a unified rendering approach.
|
|
6
|
-
*
|
|
7
|
-
* This is a pure presentational component that receives pre-calculated FocusRingLayers
|
|
8
|
-
* and renders the appropriate SVG elements using React.createElement.
|
|
9
|
-
*
|
|
10
|
-
* @param props - FocusRingRendererProps
|
|
11
|
-
* @returns JSX element with focus ring SVG elements, or null if no valid data
|
|
12
|
-
*/
|
|
13
|
-
export const FocusRingRenderer = ({ dataTestId, layers }) => {
|
|
14
|
-
if (!layers) {
|
|
15
|
-
return null;
|
|
16
|
-
}
|
|
17
|
-
// Unified rendering: both adaptive and bounding-box use the same structure
|
|
18
|
-
return (_jsxs("g", { className: "focus-ring-container", pointerEvents: "none", children: [createElement(layers.outerRing.type, {
|
|
19
|
-
...layers.outerRing.props,
|
|
20
|
-
'data-testid': `${dataTestId}-focus-outer`,
|
|
21
|
-
}), createElement(layers.innerRing.type, {
|
|
22
|
-
...layers.innerRing.props,
|
|
23
|
-
'data-testid': `${dataTestId}-focus-inner`,
|
|
24
|
-
})] }));
|
|
25
|
-
};
|
|
1
|
+
let e=require(`react`),t=require(`react/jsx-runtime`);exports.FocusRingRenderer=({dataTestId:n,layers:r})=>r?(0,t.jsxs)(`g`,{className:`focus-ring-container`,pointerEvents:`none`,children:[(0,e.createElement)(r.outerRing.type,{...r.outerRing.props,"data-testid":`${n}-focus-outer`}),(0,e.createElement)(r.innerRing.type,{...r.innerRing.props,"data-testid":`${n}-focus-inner`})]}):null;
|
|
@@ -1,45 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useFocusRingData } from '../hooks/useFocusRingData';
|
|
3
|
-
import { FocusRingRenderer } from './FocusRingRenderer';
|
|
4
|
-
/**
|
|
5
|
-
* FocusRing component for separate mode (targetRef).
|
|
6
|
-
* Renders only the focus ring, allowing precise z-order control.
|
|
7
|
-
*
|
|
8
|
-
* This component:
|
|
9
|
-
* - Uses a ref to the target element (does not wrap it)
|
|
10
|
-
* - Only renders the focus ring (no children cloning)
|
|
11
|
-
* - Allows precise z-order control by controlling where FocusRing is placed in JSX
|
|
12
|
-
* - Handles both adaptive and bounding-box variants
|
|
13
|
-
*
|
|
14
|
-
* **IMPORTANT NOTE: Z-Order with Adaptive Variant**
|
|
15
|
-
*
|
|
16
|
-
* When using `variant: 'adaptive'` (default), the FocusRing **MUST be rendered BEFORE**
|
|
17
|
-
* the target element in SVG document order. Otherwise, focus ring strokes will cover the element.
|
|
18
|
-
*
|
|
19
|
-
* @param props - FocusRingSeparateProps
|
|
20
|
-
* @returns JSX element with only focus ring, or null if not focused/disabled
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* ```tsx
|
|
24
|
-
* const ref = useRef<SVGCircleElement>(null);
|
|
25
|
-
*
|
|
26
|
-
* // CORRECT: FocusRing before element
|
|
27
|
-
* <>
|
|
28
|
-
* <FocusRingSeparate targetRef={ref} isFocused={true} />
|
|
29
|
-
* <circle ref={ref} cx={50} cy={50} r={30} />
|
|
30
|
-
* </>
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export const FocusRingSeparate = ({ dataTestId = 'focus-ring', disabled = false, focusConfig, isFocused, targetRef, }) => {
|
|
34
|
-
const { layers } = useFocusRingData({
|
|
35
|
-
elementRef: targetRef,
|
|
36
|
-
focusConfig,
|
|
37
|
-
isFocused,
|
|
38
|
-
});
|
|
39
|
-
// Early return if not focused or disabled
|
|
40
|
-
if (!isFocused || disabled) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
// Render focus ring with unified structure
|
|
44
|
-
return _jsx(FocusRingRenderer, { dataTestId: dataTestId, layers: layers });
|
|
45
|
-
};
|
|
1
|
+
const e=require(`../hooks/useFocusRingData.js`),t=require(`./FocusRingRenderer.js`);let n=require(`react/jsx-runtime`);exports.FocusRingSeparate=({dataTestId:r=`focus-ring`,disabled:i=!1,focusConfig:a,isFocused:o,targetRef:s})=>{let{layers:c}=e.useFocusRingData({elementRef:s,focusConfig:a,isFocused:o});return!o||i?null:(0,n.jsx)(t.FocusRingRenderer,{dataTestId:r,layers:c})};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./components/FocusRingInline.js`),t=require(`./components/FocusRingSeparate.js`);;/* empty css */let n=require(`react/jsx-runtime`);exports.FocusRing=({children:r,dataTestId:i=`focus-ring`,disabled:a=!1,focusConfig:o,isFocused:s,targetRef:c})=>r?(0,n.jsx)(e.FocusRingInline,{dataTestId:i,disabled:a,focusConfig:o,isFocused:s,children:r}):c?(0,n.jsx)(t.FocusRingSeparate,{dataTestId:i,disabled:a,focusConfig:o,isFocused:s,targetRef:c}):null;
|
|
@@ -1,67 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { getFocusConfig } from '../../../types/focusConfig.type';
|
|
3
|
-
import { SVG_GEOMETRIC_ATTRIBUTES, createAdaptiveFocusRings, } from '../utils/createAdaptiveFocusRings';
|
|
4
|
-
import { createBoundingBoxFocusRings } from '../utils/createBoundingBoxFocusRings';
|
|
5
|
-
/**
|
|
6
|
-
* Hook that handles all focus ring data calculation logic.
|
|
7
|
-
* Separated from rendering concerns for better testability and reusability.
|
|
8
|
-
*
|
|
9
|
-
* This hook:
|
|
10
|
-
* - Generates layers for both adaptive and bounding-box variants
|
|
11
|
-
* - Both variants return the same FocusRingLayers structure
|
|
12
|
-
* - Only calculates what's needed based on the variant
|
|
13
|
-
* - Manages all the state and effects related to focus ring data
|
|
14
|
-
*
|
|
15
|
-
* @param options - Configuration options for the hook
|
|
16
|
-
* @returns Focus ring data including resolved config and calculated layers
|
|
17
|
-
*/
|
|
18
|
-
export function useFocusRingData({ elementRef, focusConfig, isFocused, }) {
|
|
19
|
-
// Resolve config once at the top
|
|
20
|
-
const resolvedConfig = useMemo(() => getFocusConfig(focusConfig), [focusConfig]);
|
|
21
|
-
const [layers, setLayers] = useState(undefined);
|
|
22
|
-
// Calculation happens when isFocused changes or when focus config changes
|
|
23
|
-
// MutationObserver watches for geometric attribute changes
|
|
24
|
-
// to automatically regenerate layers when the element moves or resizes
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
if (!elementRef?.current || !isFocused) {
|
|
27
|
-
setLayers(undefined);
|
|
28
|
-
return undefined;
|
|
29
|
-
}
|
|
30
|
-
const element = elementRef.current;
|
|
31
|
-
// Function to calculate focus ring layers from current DOM state
|
|
32
|
-
const calculateRings = () => {
|
|
33
|
-
// Strategy 1: Adaptive variant - generate layers from DOM element
|
|
34
|
-
if (resolvedConfig.variant === 'adaptive') {
|
|
35
|
-
const adaptiveLayers = createAdaptiveFocusRings(element, resolvedConfig);
|
|
36
|
-
setLayers(adaptiveLayers);
|
|
37
|
-
}
|
|
38
|
-
// Strategy 2: Bounding-box variant - detect bounds and calculate layers
|
|
39
|
-
if (resolvedConfig.variant === 'bounding-box') {
|
|
40
|
-
const boundingBoxLayers = createBoundingBoxFocusRings(element, resolvedConfig);
|
|
41
|
-
setLayers(boundingBoxLayers);
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
// Calculate layers initially
|
|
45
|
-
calculateRings();
|
|
46
|
-
// Set up MutationObserver to detect changes in geometric attributes
|
|
47
|
-
// This ensures focus ring updates automatically when the element moves or resizes
|
|
48
|
-
const observer = new MutationObserver(mutations => {
|
|
49
|
-
const hasGeometricChanges = mutations.some(mutation => mutation.type === 'attributes' &&
|
|
50
|
-
SVG_GEOMETRIC_ATTRIBUTES.includes(mutation.attributeName ?? ''));
|
|
51
|
-
if (hasGeometricChanges) {
|
|
52
|
-
// Recalculate focus rings on relevant attribute changes
|
|
53
|
-
calculateRings();
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
// Observe only geometric attributes that affect position and size
|
|
57
|
-
observer.observe(element, {
|
|
58
|
-
attributeFilter: [...SVG_GEOMETRIC_ATTRIBUTES],
|
|
59
|
-
attributes: true,
|
|
60
|
-
});
|
|
61
|
-
return () => observer.disconnect();
|
|
62
|
-
}, [isFocused, resolvedConfig]);
|
|
63
|
-
return {
|
|
64
|
-
layers,
|
|
65
|
-
resolvedConfig,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
1
|
+
const e=require(`../../../types/focusConfig.type.js`),t=require(`../utils/createAdaptiveFocusRings.js`),n=require(`../utils/createBoundingBoxFocusRings.js`);let r=require(`react`);function i({elementRef:i,focusConfig:a,isFocused:o}){let s=(0,r.useMemo)(()=>e.getFocusConfig(a),[a]),[c,l]=(0,r.useState)(void 0);return(0,r.useEffect)(()=>{if(!i?.current||!o){l(void 0);return}let e=i.current,r=()=>{s.variant===`adaptive`&&l(t.createAdaptiveFocusRings(e,s)),s.variant===`bounding-box`&&l(n.createBoundingBoxFocusRings(e,s))};r();let a=new MutationObserver(e=>{e.some(e=>e.type===`attributes`&&t.SVG_GEOMETRIC_ATTRIBUTES.includes(e.attributeName??``))&&r()});return a.observe(e,{attributeFilter:[...t.SVG_GEOMETRIC_ATTRIBUTES],attributes:!0}),()=>a.disconnect()},[o,s]),{layers:c,resolvedConfig:s}}exports.useFocusRingData=i;
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Composes multiple refs into a single ref callback
|
|
3
|
-
* Allows using both internal and external refs simultaneously
|
|
4
|
-
*/
|
|
5
|
-
export function composeRefs(...refs) {
|
|
6
|
-
return (instance) => {
|
|
7
|
-
refs.forEach(ref => {
|
|
8
|
-
if (typeof ref === 'function') {
|
|
9
|
-
ref(instance);
|
|
10
|
-
}
|
|
11
|
-
else if (ref) {
|
|
12
|
-
ref.current = instance;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
function e(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})}}exports.composeRefs=e;
|
|
@@ -1,141 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* SVG geometric attributes that define shape position and dimensions.
|
|
3
|
-
* These attributes are extracted from the original element to create focus rings.
|
|
4
|
-
* Also used by MutationObserver to detect when focus rings need to be regenerated.
|
|
5
|
-
*/
|
|
6
|
-
export const SVG_GEOMETRIC_ATTRIBUTES = [
|
|
7
|
-
// Circle attributes
|
|
8
|
-
'cx',
|
|
9
|
-
'cy',
|
|
10
|
-
'r',
|
|
11
|
-
// Rectangle and general positioning attributes
|
|
12
|
-
'x',
|
|
13
|
-
'y',
|
|
14
|
-
'width',
|
|
15
|
-
'height',
|
|
16
|
-
// Ellipse attributes (cx, cy already included)
|
|
17
|
-
'rx',
|
|
18
|
-
'ry',
|
|
19
|
-
// Path attributes
|
|
20
|
-
'd',
|
|
21
|
-
// Polygon and polyline attributes
|
|
22
|
-
'points',
|
|
23
|
-
// Line attributes
|
|
24
|
-
'x1',
|
|
25
|
-
'y1',
|
|
26
|
-
'x2',
|
|
27
|
-
'y2',
|
|
28
|
-
];
|
|
29
|
-
/**
|
|
30
|
-
* SVG presentation attributes that affect stroke appearance.
|
|
31
|
-
* These are preserved for focus rings when they match the original element's style.
|
|
32
|
-
*/
|
|
33
|
-
const SVG_STROKE_ATTRIBUTES = [
|
|
34
|
-
'stroke-dasharray',
|
|
35
|
-
'stroke-dashoffset',
|
|
36
|
-
'stroke-linecap',
|
|
37
|
-
'stroke-linejoin',
|
|
38
|
-
'stroke-miterlimit',
|
|
39
|
-
'stroke-opacity',
|
|
40
|
-
];
|
|
41
|
-
/**
|
|
42
|
-
* SVG element types that support adaptive focus rings.
|
|
43
|
-
* These are geometric shapes that can be properly outlined with focus rings.
|
|
44
|
-
*/
|
|
45
|
-
const SUPPORTED_SVG_TYPES = ['circle', 'rect', 'ellipse', 'path', 'polygon', 'polyline', 'line'];
|
|
46
|
-
/**
|
|
47
|
-
* Creates adaptive focus ring layers from a DOM SVGElement.
|
|
48
|
-
*
|
|
49
|
-
* This function reads properties directly from the DOM element and creates
|
|
50
|
-
* props objects for rendering new SVG elements with scaled stroke-width for the focus rings.
|
|
51
|
-
* The focus rings adapt to the exact shape of the element (circle → circle, path → path, etc.)
|
|
52
|
-
*
|
|
53
|
-
* This unified approach works for both targetRef and children modes by
|
|
54
|
-
* reading from the mounted DOM element.
|
|
55
|
-
*
|
|
56
|
-
* @param element - The SVG graphics element to create focus rings for
|
|
57
|
-
* @param focusConfig - Focus ring configuration (colors, widths, gap)
|
|
58
|
-
* @returns Focus ring layers (outer and inner props) or null if not supported
|
|
59
|
-
*/
|
|
60
|
-
export function createAdaptiveFocusRings(element, focusConfig) {
|
|
61
|
-
const elementType = element.tagName.toLowerCase();
|
|
62
|
-
// Validate that we have a valid SVG element
|
|
63
|
-
if (!SUPPORTED_SVG_TYPES.includes(elementType)) {
|
|
64
|
-
return undefined;
|
|
65
|
-
}
|
|
66
|
-
// Read original stroke width from DOM
|
|
67
|
-
const strokeWidthAttr = element.getAttribute('stroke-width') || element.getAttribute('strokeWidth');
|
|
68
|
-
const originalStrokeWidth = parseFloat(strokeWidthAttr || '0');
|
|
69
|
-
// Read fill attribute to detect open lines
|
|
70
|
-
const fillAttr = element.getAttribute('fill');
|
|
71
|
-
const isOpenLine = elementType === 'line' ||
|
|
72
|
-
elementType === 'polyline' ||
|
|
73
|
-
(elementType === 'path' && fillAttr === 'none');
|
|
74
|
-
// Calculate stroke widths for focus rings
|
|
75
|
-
// IMPORTANT: For ALL shapes, we need to account for the original stroke width
|
|
76
|
-
// so that focus rings appear OUTSIDE the element's stroke, not covered by it
|
|
77
|
-
const outerStrokeWidth = originalStrokeWidth + (focusConfig.outlineStrokeWidth + focusConfig.innerStrokeWidth) * 2;
|
|
78
|
-
const innerStrokeWidth = originalStrokeWidth + focusConfig.innerStrokeWidth * 2;
|
|
79
|
-
// Read stroke line props for open lines
|
|
80
|
-
const strokeLinecap = isOpenLine ? element.getAttribute('stroke-linecap') || 'round' : undefined;
|
|
81
|
-
const strokeLinejoin = isOpenLine ? element.getAttribute('stroke-linejoin') || 'round' : 'miter';
|
|
82
|
-
const strokeMiterlimit = isOpenLine ? undefined : '10';
|
|
83
|
-
// Extract relevant attributes from the DOM element
|
|
84
|
-
// This automatically preserves all geometric attributes (cx, cy, r, x, y, width, height, d, points, etc.)
|
|
85
|
-
const allAttributes = extractRelevantAttributes(element);
|
|
86
|
-
// The renderer will create the React elements and add data-testid
|
|
87
|
-
return {
|
|
88
|
-
innerRing: {
|
|
89
|
-
props: {
|
|
90
|
-
...allAttributes,
|
|
91
|
-
className: 'focus-ring-inner',
|
|
92
|
-
fill: 'none',
|
|
93
|
-
stroke: focusConfig.innerColor,
|
|
94
|
-
strokeLinecap,
|
|
95
|
-
strokeLinejoin,
|
|
96
|
-
strokeMiterlimit,
|
|
97
|
-
strokeWidth: innerStrokeWidth,
|
|
98
|
-
},
|
|
99
|
-
type: elementType,
|
|
100
|
-
},
|
|
101
|
-
outerRing: {
|
|
102
|
-
props: {
|
|
103
|
-
...allAttributes,
|
|
104
|
-
className: 'focus-ring-outer',
|
|
105
|
-
fill: 'none',
|
|
106
|
-
stroke: focusConfig.outlineColor,
|
|
107
|
-
strokeLinecap,
|
|
108
|
-
strokeLinejoin,
|
|
109
|
-
strokeMiterlimit,
|
|
110
|
-
strokeWidth: outerStrokeWidth,
|
|
111
|
-
},
|
|
112
|
-
type: elementType,
|
|
113
|
-
},
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Extracts relevant SVG attributes from a DOM SVGElement for focus ring creation.
|
|
118
|
-
* Uses an allowlist approach: only geometric and stroke attributes are included.
|
|
119
|
-
* This ensures focus rings inherit the correct shape and appearance while avoiding
|
|
120
|
-
* React-incompatible attributes or those that would cause DOM conflicts.
|
|
121
|
-
*
|
|
122
|
-
* @param element - The SVG element to extract attributes from
|
|
123
|
-
* @returns Object containing only the allowed attributes
|
|
124
|
-
*/
|
|
125
|
-
function extractRelevantAttributes(element) {
|
|
126
|
-
const attrs = {};
|
|
127
|
-
// Create a Set of allowed attributes for fast lookup
|
|
128
|
-
const allowedAttributes = new Set([
|
|
129
|
-
...SVG_GEOMETRIC_ATTRIBUTES,
|
|
130
|
-
...SVG_STROKE_ATTRIBUTES,
|
|
131
|
-
]);
|
|
132
|
-
// Iterate through all attributes of the element
|
|
133
|
-
for (let i = 0; i < element.attributes.length; i++) {
|
|
134
|
-
const attr = element.attributes[i];
|
|
135
|
-
// Only include attributes that are in the allowlist
|
|
136
|
-
if (allowedAttributes.has(attr.name)) {
|
|
137
|
-
attrs[attr.name] = attr.value;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return attrs;
|
|
141
|
-
}
|
|
1
|
+
const e=[`cx`,`cy`,`r`,`x`,`y`,`width`,`height`,`rx`,`ry`,`d`,`points`,`x1`,`y1`,`x2`,`y2`];var t=[`stroke-dasharray`,`stroke-dashoffset`,`stroke-linecap`,`stroke-linejoin`,`stroke-miterlimit`,`stroke-opacity`],n=[`circle`,`rect`,`ellipse`,`path`,`polygon`,`polyline`,`line`];function r(e,t){let r=e.tagName.toLowerCase();if(!n.includes(r))return;let a=e.getAttribute(`stroke-width`)||e.getAttribute(`strokeWidth`),o=parseFloat(a||`0`),s=e.getAttribute(`fill`),c=r===`line`||r===`polyline`||r===`path`&&s===`none`,l=o+(t.outlineStrokeWidth+t.innerStrokeWidth)*2,u=o+t.innerStrokeWidth*2,d=c?e.getAttribute(`stroke-linecap`)||`round`:void 0,f=c?e.getAttribute(`stroke-linejoin`)||`round`:`miter`,p=c?void 0:`10`,m=i(e);return{innerRing:{props:{...m,className:`focus-ring-inner`,fill:`none`,stroke:t.innerColor,strokeLinecap:d,strokeLinejoin:f,strokeMiterlimit:p,strokeWidth:u},type:r},outerRing:{props:{...m,className:`focus-ring-outer`,fill:`none`,stroke:t.outlineColor,strokeLinecap:d,strokeLinejoin:f,strokeMiterlimit:p,strokeWidth:l},type:r}}}function i(n){let r={},i=new Set([...e,...t]);for(let e=0;e<n.attributes.length;e++){let t=n.attributes[e];i.has(t.name)&&(r[t.name]=t.value)}return r}exports.SVG_GEOMETRIC_ATTRIBUTES=e,exports.createAdaptiveFocusRings=r;
|
|
@@ -1,126 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Calculates the dimensions of the focus outlines (outer and inner) for a bounding-box.
|
|
3
|
-
* This function is used internally by createBoundingBoxFocusRings and always produces
|
|
4
|
-
* rectangular focus rings.
|
|
5
|
-
*
|
|
6
|
-
* @param bounds - Element bounds information from DOM detection
|
|
7
|
-
* @param config - Focus stroke configuration (widths and gap)
|
|
8
|
-
* @returns Rectangle dimensions for outer and inner focus rings
|
|
9
|
-
*/
|
|
10
|
-
export const calculateBoundingBoxFocusRings = (bounds, config) => {
|
|
11
|
-
const { elementHeight, elementPosition, elementStrokeWidth, elementWidth } = bounds;
|
|
12
|
-
const { gap, innerStrokeWidth, outlineStrokeWidth } = config;
|
|
13
|
-
// Calculate inner rectangle dimensions
|
|
14
|
-
// Height and width must grow on both sides to ensure the inner rectangle
|
|
15
|
-
// is positioned correctly without gaps
|
|
16
|
-
const innerWidth = elementWidth + elementStrokeWidth + innerStrokeWidth + gap * 2;
|
|
17
|
-
const innerHeight = elementHeight + elementStrokeWidth + innerStrokeWidth + gap * 2;
|
|
18
|
-
const innerX = elementPosition.x - innerWidth / 2;
|
|
19
|
-
const innerY = elementPosition.y - innerHeight / 2;
|
|
20
|
-
// Calculate outer rectangle dimensions
|
|
21
|
-
// Must account for the fact that both inner and outer strokes extend outward from their borders
|
|
22
|
-
// Inner stroke extends innerStrokeWidth/2 on each side, outer stroke extends outlineStrokeWidth/2 on each side
|
|
23
|
-
const outerWidth = innerWidth + innerStrokeWidth + outlineStrokeWidth;
|
|
24
|
-
const outerHeight = innerHeight + innerStrokeWidth + outlineStrokeWidth;
|
|
25
|
-
const outerX = elementPosition.x - outerWidth / 2;
|
|
26
|
-
const outerY = elementPosition.y - outerHeight / 2;
|
|
27
|
-
return {
|
|
28
|
-
inner: {
|
|
29
|
-
height: innerHeight,
|
|
30
|
-
width: innerWidth,
|
|
31
|
-
x: innerX,
|
|
32
|
-
y: innerY,
|
|
33
|
-
},
|
|
34
|
-
outer: {
|
|
35
|
-
height: outerHeight,
|
|
36
|
-
width: outerWidth,
|
|
37
|
-
x: outerX,
|
|
38
|
-
y: outerY,
|
|
39
|
-
},
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Helper function to detect element bounds from the DOM.
|
|
44
|
-
* Uses getBBox() for accurate measurements including transforms.
|
|
45
|
-
*
|
|
46
|
-
* @param element - SVG element to detect
|
|
47
|
-
* @returns Element bounds information or null if detection fails
|
|
48
|
-
*/
|
|
49
|
-
function detectElementBoundsFromDOM(element) {
|
|
50
|
-
try {
|
|
51
|
-
const bbox = element.getBBox();
|
|
52
|
-
if (bbox.width <= 0 || bbox.height <= 0) {
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
const computedStyle = window.getComputedStyle(element);
|
|
56
|
-
const strokeWidth = parseFloat(computedStyle.strokeWidth || '0');
|
|
57
|
-
return {
|
|
58
|
-
elementHeight: bbox.height,
|
|
59
|
-
elementPosition: {
|
|
60
|
-
x: bbox.x + bbox.width / 2,
|
|
61
|
-
y: bbox.y + bbox.height / 2,
|
|
62
|
-
},
|
|
63
|
-
elementStrokeWidth: strokeWidth,
|
|
64
|
-
elementWidth: bbox.width,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
catch {
|
|
68
|
-
return null;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Creates bounding-box focus ring layers with calculated dimensions.
|
|
73
|
-
*
|
|
74
|
-
* This function:
|
|
75
|
-
* 1. Detects element bounds from DOM using getBBox()
|
|
76
|
-
* 2. Calculates geometric dimensions using calculateBoundingBoxFocusRings
|
|
77
|
-
* 3. Wraps the result in the same FocusRingLayers structure as createAdaptiveFocusRings
|
|
78
|
-
* 4. Includes all rendering props (colors, strokes, etc.)
|
|
79
|
-
*
|
|
80
|
-
* This provides a unified API for both adaptive and bounding-box strategies.
|
|
81
|
-
*
|
|
82
|
-
* @param element - The SVG graphics element to create focus rings for
|
|
83
|
-
* @param focusConfig - Focus ring configuration (colors, widths, gap)
|
|
84
|
-
* @returns Focus ring layers in the same format as createAdaptiveFocusRings, or null if detection fails
|
|
85
|
-
*/
|
|
86
|
-
export function createBoundingBoxFocusRings(element, focusConfig) {
|
|
87
|
-
// Detect element bounds from DOM
|
|
88
|
-
const bounds = detectElementBoundsFromDOM(element);
|
|
89
|
-
if (!bounds) {
|
|
90
|
-
return undefined;
|
|
91
|
-
}
|
|
92
|
-
const dimensions = calculateBoundingBoxFocusRings(bounds, {
|
|
93
|
-
gap: focusConfig.gap,
|
|
94
|
-
innerStrokeWidth: focusConfig.innerStrokeWidth,
|
|
95
|
-
outlineStrokeWidth: focusConfig.outlineStrokeWidth,
|
|
96
|
-
});
|
|
97
|
-
// The renderer will create the React elements and add data-testid
|
|
98
|
-
return {
|
|
99
|
-
innerRing: {
|
|
100
|
-
props: {
|
|
101
|
-
className: 'focus-ring-inner',
|
|
102
|
-
fill: 'none',
|
|
103
|
-
height: dimensions.inner.height,
|
|
104
|
-
stroke: focusConfig.innerColor,
|
|
105
|
-
strokeWidth: focusConfig.innerStrokeWidth,
|
|
106
|
-
width: dimensions.inner.width,
|
|
107
|
-
x: dimensions.inner.x,
|
|
108
|
-
y: dimensions.inner.y,
|
|
109
|
-
},
|
|
110
|
-
type: 'rect',
|
|
111
|
-
},
|
|
112
|
-
outerRing: {
|
|
113
|
-
props: {
|
|
114
|
-
className: 'focus-ring-outer',
|
|
115
|
-
fill: 'none',
|
|
116
|
-
height: dimensions.outer.height,
|
|
117
|
-
stroke: focusConfig.outlineColor,
|
|
118
|
-
strokeWidth: focusConfig.outlineStrokeWidth,
|
|
119
|
-
width: dimensions.outer.width,
|
|
120
|
-
x: dimensions.outer.x,
|
|
121
|
-
y: dimensions.outer.y,
|
|
122
|
-
},
|
|
123
|
-
type: 'rect',
|
|
124
|
-
},
|
|
125
|
-
};
|
|
126
|
-
}
|
|
1
|
+
const e=(e,t)=>{let{elementHeight:n,elementPosition:r,elementStrokeWidth:i,elementWidth:a}=e,{gap:o,innerStrokeWidth:s,outlineStrokeWidth:c}=t,l=a+i+s+o*2,u=n+i+s+o*2,d=r.x-l/2,f=r.y-u/2,p=l+s+c,m=u+s+c,h=r.x-p/2,g=r.y-m/2;return{inner:{height:u,width:l,x:d,y:f},outer:{height:m,width:p,x:h,y:g}}};function t(e){try{let t=e.getBBox();if(t.width<=0||t.height<=0)return null;let n=window.getComputedStyle(e),r=parseFloat(n.strokeWidth||`0`);return{elementHeight:t.height,elementPosition:{x:t.x+t.width/2,y:t.y+t.height/2},elementStrokeWidth:r,elementWidth:t.width}}catch{return null}}function n(n,r){let i=t(n);if(!i)return;let a=e(i,{gap:r.gap,innerStrokeWidth:r.innerStrokeWidth,outlineStrokeWidth:r.outlineStrokeWidth});return{innerRing:{props:{className:`focus-ring-inner`,fill:`none`,height:a.inner.height,stroke:r.innerColor,strokeWidth:r.innerStrokeWidth,width:a.inner.width,x:a.inner.x,y:a.inner.y},type:`rect`},outerRing:{props:{className:`focus-ring-outer`,fill:`none`,height:a.outer.height,stroke:r.outlineColor,strokeWidth:r.outlineStrokeWidth,width:a.outer.width,x:a.outer.x,y:a.outer.y},type:`rect`}}}exports.createBoundingBoxFocusRings=n;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export const ForeignObject = ({ children, dataTestId, height, width, x, y, }) => {
|
|
3
|
-
return (_jsx("foreignObject", { "data-testid": dataTestId, height: height, width: width, x: x, y: y, children: children }));
|
|
4
|
-
};
|
|
1
|
+
let e=require(`react/jsx-runtime`);exports.ForeignObject=({children:t,dataTestId:n,height:r,width:i,x:a,y:o})=>(0,e.jsx)(`foreignObject`,{"data-testid":n,height:r,width:i,x:a,y:o,children:t});
|