@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,110 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { clampRange, mouseToDataIndex } from '../utils/rangeAndPositions';
|
|
3
|
-
import { ZoomAreaElements } from '../zoomArea.type';
|
|
4
|
-
/**
|
|
5
|
-
* Calculate new range based on drag type and pointer position
|
|
6
|
-
*/
|
|
7
|
-
const calculateNewRange = (dragType, currentRange, dataIndex, dataLength, interactionConfig) => {
|
|
8
|
-
const newRange = { ...currentRange };
|
|
9
|
-
if (dragType === ZoomAreaElements.START_HANDLER) {
|
|
10
|
-
newRange.start = Math.max(0, Math.min(dataIndex, currentRange.end - interactionConfig.minHandlerDistance));
|
|
11
|
-
}
|
|
12
|
-
else if (dragType === ZoomAreaElements.END_HANDLER) {
|
|
13
|
-
newRange.end = Math.min(dataLength - 1, Math.max(dataIndex, currentRange.start + interactionConfig.minHandlerDistance));
|
|
14
|
-
}
|
|
15
|
-
else if (dragType === ZoomAreaElements.SELECTION_AREA) {
|
|
16
|
-
// Moving entire selection
|
|
17
|
-
const selectionWidth = currentRange.end - currentRange.start;
|
|
18
|
-
const newStart = Math.max(0, Math.min(dataLength - 1 - selectionWidth, dataIndex - selectionWidth / 2));
|
|
19
|
-
newRange.start = newStart;
|
|
20
|
-
newRange.end = newStart + selectionWidth;
|
|
21
|
-
}
|
|
22
|
-
return newRange;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Custom hook for handling mouse and touch drag interactions in ZoomArea
|
|
26
|
-
*
|
|
27
|
-
* Supports both mouse and touch events for cross-platform compatibility.
|
|
28
|
-
* Simplified implementation that works with overflow:visible SVG containers.
|
|
29
|
-
* No complex viewBox calculations needed - coordinates are direct and intuitive.
|
|
30
|
-
*
|
|
31
|
-
* @param params - Configuration parameters for drag functionality
|
|
32
|
-
* @returns Object with drag handlers and state
|
|
33
|
-
*/
|
|
34
|
-
export const useDragInteraction = (params) => {
|
|
35
|
-
const { currentRange, dataLength, interactionConfig, onRangeChange, width } = params;
|
|
36
|
-
const groupRef = useRef(null);
|
|
37
|
-
const [isDragging, setIsDragging] = useState(null);
|
|
38
|
-
const handleMouseDown = useCallback((target) => {
|
|
39
|
-
return () => {
|
|
40
|
-
setIsDragging(target);
|
|
41
|
-
};
|
|
42
|
-
}, []);
|
|
43
|
-
const handleTouchStart = useCallback((target) => {
|
|
44
|
-
return () => {
|
|
45
|
-
setIsDragging(target);
|
|
46
|
-
};
|
|
47
|
-
}, []);
|
|
48
|
-
// Common logic for handling pointer movement (mouse or touch)
|
|
49
|
-
const handlePointerMove = useCallback((clientX) => {
|
|
50
|
-
if (!isDragging || !groupRef.current) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
// Get the SVG element's bounding rect for coordinate conversion
|
|
54
|
-
const svgElement = groupRef.current;
|
|
55
|
-
if (!svgElement) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
// Simple coordinate calculation - no viewBox complexity!
|
|
59
|
-
const rect = svgElement.getBoundingClientRect();
|
|
60
|
-
const pointerX = clientX - rect.left;
|
|
61
|
-
// Convert pointer X to data index (0 to dataLength-1)
|
|
62
|
-
const dataIndex = mouseToDataIndex(pointerX, width, dataLength);
|
|
63
|
-
const newRange = calculateNewRange(isDragging, currentRange, dataIndex, dataLength, interactionConfig);
|
|
64
|
-
const clampedRange = clampRange(newRange, dataLength, interactionConfig.minHandlerDistance);
|
|
65
|
-
onRangeChange(clampedRange);
|
|
66
|
-
}, [isDragging, width, dataLength, currentRange, onRangeChange, interactionConfig]);
|
|
67
|
-
const handleMouseMove = useCallback((event) => {
|
|
68
|
-
handlePointerMove(event.clientX);
|
|
69
|
-
}, [handlePointerMove]);
|
|
70
|
-
const handleTouchMove = useCallback((event) => {
|
|
71
|
-
if (event.touches.length === 0) {
|
|
72
|
-
return;
|
|
73
|
-
}
|
|
74
|
-
// Prevent default native scrolling behavior while dragging
|
|
75
|
-
event.preventDefault();
|
|
76
|
-
handlePointerMove(event.touches[0].clientX);
|
|
77
|
-
}, [handlePointerMove]);
|
|
78
|
-
const handleMouseUp = useCallback(() => {
|
|
79
|
-
setIsDragging(null);
|
|
80
|
-
}, []);
|
|
81
|
-
const handleTouchEnd = useCallback(() => {
|
|
82
|
-
setIsDragging(null);
|
|
83
|
-
}, []);
|
|
84
|
-
// Set up global mouse and touch events when dragging
|
|
85
|
-
useEffect(() => {
|
|
86
|
-
if (isDragging) {
|
|
87
|
-
// Mouse events
|
|
88
|
-
document.addEventListener('mousemove', handleMouseMove);
|
|
89
|
-
document.addEventListener('mouseup', handleMouseUp);
|
|
90
|
-
// Touch events
|
|
91
|
-
document.addEventListener('touchmove', handleTouchMove, { passive: false });
|
|
92
|
-
document.addEventListener('touchend', handleTouchEnd);
|
|
93
|
-
return () => {
|
|
94
|
-
// Cleanup mouse events
|
|
95
|
-
document.removeEventListener('mousemove', handleMouseMove);
|
|
96
|
-
document.removeEventListener('mouseup', handleMouseUp);
|
|
97
|
-
// Cleanup touch events
|
|
98
|
-
document.removeEventListener('touchmove', handleTouchMove);
|
|
99
|
-
document.removeEventListener('touchend', handleTouchEnd);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
return undefined;
|
|
103
|
-
}, [isDragging, handleMouseMove, handleMouseUp, handleTouchMove, handleTouchEnd]);
|
|
104
|
-
return {
|
|
105
|
-
groupRef,
|
|
106
|
-
handleMouseDown,
|
|
107
|
-
handleTouchStart,
|
|
108
|
-
isDragging,
|
|
109
|
-
};
|
|
110
|
-
};
|
|
1
|
+
const e=require(`../utils/rangeAndPositions.js`),t=require(`../zoomArea.type.js`);let n=require(`react`);var r=(e,n,r,i,a)=>{let o={...n};if(e===t.ZoomAreaElements.START_HANDLER)o.start=Math.max(0,Math.min(r,n.end-a.minHandlerDistance));else if(e===t.ZoomAreaElements.END_HANDLER)o.end=Math.min(i-1,Math.max(r,n.start+a.minHandlerDistance));else if(e===t.ZoomAreaElements.SELECTION_AREA){let e=n.end-n.start,t=Math.max(0,Math.min(i-1-e,r-e/2));o.start=t,o.end=t+e}return o};exports.useDragInteraction=t=>{let{currentRange:i,dataLength:a,interactionConfig:o,onRangeChange:s,width:c}=t,l=(0,n.useRef)(null),[u,d]=(0,n.useState)(null),f=(0,n.useCallback)(e=>()=>{d(e)},[]),p=(0,n.useCallback)(e=>()=>{d(e)},[]),m=(0,n.useCallback)(t=>{if(!u||!l.current)return;let n=l.current;n&&s(e.clampRange(r(u,i,e.mouseToDataIndex(t-n.getBoundingClientRect().left,c,a),a,o),a,o.minHandlerDistance))},[u,c,a,i,s,o]),h=(0,n.useCallback)(e=>{m(e.clientX)},[m]),g=(0,n.useCallback)(e=>{e.touches.length!==0&&(e.preventDefault(),m(e.touches[0].clientX))},[m]),_=(0,n.useCallback)(()=>{d(null)},[]),v=(0,n.useCallback)(()=>{d(null)},[]);return(0,n.useEffect)(()=>{if(u)return document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,_),document.addEventListener(`touchmove`,g,{passive:!1}),document.addEventListener(`touchend`,v),()=>{document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,_),document.removeEventListener(`touchmove`,g),document.removeEventListener(`touchend`,v)}},[u,h,_,g,v]),{groupRef:l,handleMouseDown:f,handleTouchStart:p,isDragging:u}};
|
|
@@ -1,122 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { clampRange } from '../utils/rangeAndPositions';
|
|
3
|
-
import { ZoomAreaElements } from '../zoomArea.type';
|
|
4
|
-
/**
|
|
5
|
-
* Handle left arrow and down arrow key movement (decrease values)
|
|
6
|
-
*/
|
|
7
|
-
const handleArrowLeft = (target, currentRange, step, interactionConfig) => {
|
|
8
|
-
const newRange = { ...currentRange };
|
|
9
|
-
if (target === ZoomAreaElements.START_HANDLER) {
|
|
10
|
-
newRange.start = Math.max(0, currentRange.start - step);
|
|
11
|
-
}
|
|
12
|
-
else if (target === ZoomAreaElements.END_HANDLER) {
|
|
13
|
-
newRange.end = Math.max(currentRange.start + interactionConfig.minHandlerDistance, currentRange.end - step);
|
|
14
|
-
}
|
|
15
|
-
else if (target === ZoomAreaElements.SELECTION_AREA) {
|
|
16
|
-
// Move entire selection left
|
|
17
|
-
const selectionWidth = currentRange.end - currentRange.start;
|
|
18
|
-
const newStart = Math.max(0, currentRange.start - step);
|
|
19
|
-
newRange.start = newStart;
|
|
20
|
-
newRange.end = newStart + selectionWidth;
|
|
21
|
-
}
|
|
22
|
-
return newRange;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Handle right arrow and up arrow key movement (increase values)
|
|
26
|
-
*/
|
|
27
|
-
const handleArrowRight = (target, currentRange, step, dataLength, interactionConfig) => {
|
|
28
|
-
const newRange = { ...currentRange };
|
|
29
|
-
if (target === ZoomAreaElements.START_HANDLER) {
|
|
30
|
-
newRange.start = Math.min(currentRange.end - interactionConfig.minHandlerDistance, currentRange.start + step);
|
|
31
|
-
}
|
|
32
|
-
else if (target === ZoomAreaElements.END_HANDLER) {
|
|
33
|
-
newRange.end = Math.min(dataLength - 1, currentRange.end + step);
|
|
34
|
-
}
|
|
35
|
-
else if (target === ZoomAreaElements.SELECTION_AREA) {
|
|
36
|
-
// Move entire selection right
|
|
37
|
-
const selectionWidth = currentRange.end - currentRange.start;
|
|
38
|
-
const newStart = Math.min(dataLength - 1 - selectionWidth, currentRange.start + step);
|
|
39
|
-
newRange.start = newStart;
|
|
40
|
-
newRange.end = newStart + selectionWidth;
|
|
41
|
-
}
|
|
42
|
-
return newRange;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Handle Home key - move to beginning
|
|
46
|
-
*/
|
|
47
|
-
const handleHome = (target, currentRange, dataLength) => {
|
|
48
|
-
const newRange = { ...currentRange };
|
|
49
|
-
if (target === ZoomAreaElements.START_HANDLER) {
|
|
50
|
-
newRange.start = 0;
|
|
51
|
-
}
|
|
52
|
-
else if (target === ZoomAreaElements.END_HANDLER) {
|
|
53
|
-
newRange.end = dataLength - 1;
|
|
54
|
-
}
|
|
55
|
-
else if (target === ZoomAreaElements.SELECTION_AREA) {
|
|
56
|
-
const selectionWidth = currentRange.end - currentRange.start;
|
|
57
|
-
newRange.start = 0;
|
|
58
|
-
newRange.end = selectionWidth;
|
|
59
|
-
}
|
|
60
|
-
return newRange;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Handle End key - move to end
|
|
64
|
-
*/
|
|
65
|
-
const handleEnd = (target, currentRange, dataLength, interactionConfig) => {
|
|
66
|
-
const newRange = { ...currentRange };
|
|
67
|
-
if (target === ZoomAreaElements.START_HANDLER) {
|
|
68
|
-
newRange.start = currentRange.end - interactionConfig.minHandlerDistance;
|
|
69
|
-
}
|
|
70
|
-
else if (target === ZoomAreaElements.END_HANDLER) {
|
|
71
|
-
newRange.end = dataLength - 1;
|
|
72
|
-
}
|
|
73
|
-
else if (target === ZoomAreaElements.SELECTION_AREA) {
|
|
74
|
-
const selectionWidth = currentRange.end - currentRange.start;
|
|
75
|
-
newRange.start = dataLength - 1 - selectionWidth;
|
|
76
|
-
newRange.end = dataLength - 1;
|
|
77
|
-
}
|
|
78
|
-
return newRange;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Custom hook for handling keyboard navigation in ZoomArea
|
|
82
|
-
*
|
|
83
|
-
* @param params - Configuration parameters for keyboard navigation
|
|
84
|
-
* @returns Object with keyboard event handlers
|
|
85
|
-
*/
|
|
86
|
-
export const useKeyboardNavigation = (params) => {
|
|
87
|
-
const { currentRange, dataLength, interactionConfig, onRangeChange } = params;
|
|
88
|
-
const handleKeyDown = useCallback((target) => {
|
|
89
|
-
return (event) => {
|
|
90
|
-
// Shift key = fast navigation, normal keys = precise control
|
|
91
|
-
const step = event.shiftKey
|
|
92
|
-
? interactionConfig.keyboardFastStep
|
|
93
|
-
: interactionConfig.keyboardStep;
|
|
94
|
-
let newRange = { ...currentRange };
|
|
95
|
-
switch (event.key) {
|
|
96
|
-
case 'ArrowLeft':
|
|
97
|
-
case 'ArrowDown':
|
|
98
|
-
event.preventDefault();
|
|
99
|
-
newRange = handleArrowLeft(target, currentRange, step, interactionConfig);
|
|
100
|
-
break;
|
|
101
|
-
case 'ArrowRight':
|
|
102
|
-
case 'ArrowUp':
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
newRange = handleArrowRight(target, currentRange, step, dataLength, interactionConfig);
|
|
105
|
-
break;
|
|
106
|
-
case 'Home':
|
|
107
|
-
event.preventDefault();
|
|
108
|
-
newRange = handleHome(target, currentRange, dataLength);
|
|
109
|
-
break;
|
|
110
|
-
case 'End':
|
|
111
|
-
event.preventDefault();
|
|
112
|
-
newRange = handleEnd(target, currentRange, dataLength, interactionConfig);
|
|
113
|
-
break;
|
|
114
|
-
default:
|
|
115
|
-
return; // Don't handle other keys
|
|
116
|
-
}
|
|
117
|
-
const clampedRange = clampRange(newRange, dataLength, interactionConfig.minHandlerDistance);
|
|
118
|
-
onRangeChange(clampedRange);
|
|
119
|
-
};
|
|
120
|
-
}, [currentRange, dataLength, onRangeChange, interactionConfig]);
|
|
121
|
-
return { handleKeyDown };
|
|
122
|
-
};
|
|
1
|
+
const e=require(`../utils/rangeAndPositions.js`),t=require(`../zoomArea.type.js`);let n=require(`react`);var r=(e,n,r,i)=>{let a={...n};if(e===t.ZoomAreaElements.START_HANDLER)a.start=Math.max(0,n.start-r);else if(e===t.ZoomAreaElements.END_HANDLER)a.end=Math.max(n.start+i.minHandlerDistance,n.end-r);else if(e===t.ZoomAreaElements.SELECTION_AREA){let e=n.end-n.start,t=Math.max(0,n.start-r);a.start=t,a.end=t+e}return a},i=(e,n,r,i,a)=>{let o={...n};if(e===t.ZoomAreaElements.START_HANDLER)o.start=Math.min(n.end-a.minHandlerDistance,n.start+r);else if(e===t.ZoomAreaElements.END_HANDLER)o.end=Math.min(i-1,n.end+r);else if(e===t.ZoomAreaElements.SELECTION_AREA){let e=n.end-n.start,t=Math.min(i-1-e,n.start+r);o.start=t,o.end=t+e}return o},a=(e,n,r)=>{let i={...n};if(e===t.ZoomAreaElements.START_HANDLER)i.start=0;else if(e===t.ZoomAreaElements.END_HANDLER)i.end=r-1;else if(e===t.ZoomAreaElements.SELECTION_AREA){let e=n.end-n.start;i.start=0,i.end=e}return i},o=(e,n,r,i)=>{let a={...n};if(e===t.ZoomAreaElements.START_HANDLER)a.start=n.end-i.minHandlerDistance;else if(e===t.ZoomAreaElements.END_HANDLER)a.end=r-1;else if(e===t.ZoomAreaElements.SELECTION_AREA){let e=n.end-n.start;a.start=r-1-e,a.end=r-1}return a};exports.useKeyboardNavigation=t=>{let{currentRange:s,dataLength:c,interactionConfig:l,onRangeChange:u}=t;return{handleKeyDown:(0,n.useCallback)(t=>n=>{let d=n.shiftKey?l.keyboardFastStep:l.keyboardStep,f={...s};switch(n.key){case`ArrowLeft`:case`ArrowDown`:n.preventDefault(),f=r(t,s,d,l);break;case`ArrowRight`:case`ArrowUp`:n.preventDefault(),f=i(t,s,d,c,l);break;case`Home`:n.preventDefault(),f=a(t,s,c);break;case`End`:n.preventDefault(),f=o(t,s,c,l);break;default:return}u(e.clampRange(f,c,l.minHandlerDistance))},[s,c,u,l])}};
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Custom hook for managing focus state of zoom area elements.
|
|
4
|
-
*
|
|
5
|
-
* Provides centralized focus management for all interactive elements
|
|
6
|
-
* (start handler, end handler, selection area) with proper coordination.
|
|
7
|
-
*
|
|
8
|
-
* @param params - Configuration parameters for the hook
|
|
9
|
-
* @returns Object with focus handlers and utilities
|
|
10
|
-
*/
|
|
11
|
-
export const useZoomAreaFocus = () => {
|
|
12
|
-
const [focusedElement, setFocusedElement] = useState(null);
|
|
13
|
-
const handleFocus = useCallback((target) => {
|
|
14
|
-
return () => setFocusedElement(target);
|
|
15
|
-
}, []);
|
|
16
|
-
const handleBlur = useCallback(() => {
|
|
17
|
-
setFocusedElement(null);
|
|
18
|
-
}, []);
|
|
19
|
-
// Helper function to check focus state
|
|
20
|
-
const isFocused = useCallback((target) => {
|
|
21
|
-
return focusedElement === target;
|
|
22
|
-
}, [focusedElement]);
|
|
23
|
-
return {
|
|
24
|
-
handleBlur,
|
|
25
|
-
handleFocus,
|
|
26
|
-
isFocused,
|
|
27
|
-
};
|
|
28
|
-
};
|
|
1
|
+
let e=require(`react`);exports.useZoomAreaFocus=()=>{let[t,n]=(0,e.useState)(null),r=(0,e.useCallback)(e=>()=>n(e),[]);return{handleBlur:(0,e.useCallback)(()=>{n(null)},[]),handleFocus:r,isFocused:(0,e.useCallback)(e=>t===e,[t])}};
|
|
@@ -1,31 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { getRangeIndices } from '../utils/indexRounding';
|
|
3
|
-
import { createDefaultRange } from '../utils/rangeAndPositions';
|
|
4
|
-
export const useZoomData = ({ data, initialRange, onDataChange, }) => {
|
|
5
|
-
// Initialize range state
|
|
6
|
-
const defaultRange = initialRange || createDefaultRange(data.length);
|
|
7
|
-
const [currentRange, setCurrentRange] = useState(defaultRange);
|
|
8
|
-
// Filter data based on current range and emit changes
|
|
9
|
-
const filterData = (range) => {
|
|
10
|
-
if (!onDataChange || data.length === 0) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
// Use centralized rounding logic to ensure consistency with accessibility labels
|
|
14
|
-
const { endIndex, startIndex } = getRangeIndices(range, data.length);
|
|
15
|
-
const filteredData = data.slice(startIndex, endIndex + 1);
|
|
16
|
-
onDataChange(filteredData);
|
|
17
|
-
};
|
|
18
|
-
// Handle range changes - updates state and filters data
|
|
19
|
-
const handleRangeChange = (newRange) => {
|
|
20
|
-
setCurrentRange(newRange);
|
|
21
|
-
filterData(newRange);
|
|
22
|
-
};
|
|
23
|
-
// Emit initial filtered data on mount
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
filterData(currentRange);
|
|
26
|
-
}, []);
|
|
27
|
-
return {
|
|
28
|
-
currentRange,
|
|
29
|
-
handleRangeChange,
|
|
30
|
-
};
|
|
31
|
-
};
|
|
1
|
+
const e=require(`../utils/rangeAndPositions.js`),t=require(`../utils/indexRounding.js`);let n=require(`react`);exports.useZoomData=({data:r,initialRange:i,onDataChange:a})=>{let[o,s]=(0,n.useState)(i||e.createDefaultRange(r.length)),c=e=>{if(!a||r.length===0)return;let{endIndex:n,startIndex:i}=t.getRangeIndices(e,r.length);a(r.slice(i,n+1))};return(0,n.useEffect)(()=>{c(o)},[]),{currentRange:o,handleRangeChange:e=>{s(e),c(e)}}};
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
|
|
2
|
-
// Template keys for accessibility labels
|
|
3
|
-
const ACCESSIBILITY_START_VALUE_KEY = '{{startValue}}';
|
|
4
|
-
const ACCESSIBILITY_END_VALUE_KEY = '{{endValue}}';
|
|
5
|
-
/**
|
|
6
|
-
* Extracts the X-axis value from data at a specific index.
|
|
7
|
-
*
|
|
8
|
-
* @param data - Array of data points
|
|
9
|
-
* @param xKey - Property name to extract from data points
|
|
10
|
-
* @param index - Integer index (should be pre-rounded using indexRounding utils)
|
|
11
|
-
* @returns String representation of the X-axis value, or fallback to string index
|
|
12
|
-
*/
|
|
13
|
-
export const getXAxisValue = (data, xKey, index) => {
|
|
14
|
-
// Index should already be rounded and clamped by getRangeIndices()
|
|
15
|
-
return data[index]?.[xKey]?.toString() || `${index}`;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Builds screen reader text by replacing template keys with actual values
|
|
19
|
-
*
|
|
20
|
-
* @param template - Template string with {{startValue}} and/or {{endValue}} placeholders
|
|
21
|
-
* @param startValue - Value to replace {{startValue}} with
|
|
22
|
-
* @param endValue - Value to replace {{endValue}} with
|
|
23
|
-
* @returns String with placeholders replaced, or undefined if template is not provided
|
|
24
|
-
*/
|
|
25
|
-
const buildScreenReaderText = (template, startValue, endValue) => {
|
|
26
|
-
if (!template) {
|
|
27
|
-
return template;
|
|
28
|
-
}
|
|
29
|
-
const startValueRegExp = new RegExp(ACCESSIBILITY_START_VALUE_KEY, 'g');
|
|
30
|
-
const endValueRegExp = new RegExp(ACCESSIBILITY_END_VALUE_KEY, 'g');
|
|
31
|
-
return template.replace(startValueRegExp, startValue).replace(endValueRegExp, endValue);
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Generates consistent accessibility labels for ZoomArea handlers and selection area.
|
|
35
|
-
*
|
|
36
|
-
* Uses the same floor/ceil logic as data filtering to ensure that screen reader
|
|
37
|
-
* announcements exactly match the boundaries of the filtered data.
|
|
38
|
-
*
|
|
39
|
-
* @param data - Array of data points
|
|
40
|
-
* @param xKey - Property name to extract X-axis values from
|
|
41
|
-
* @param currentRange - Current zoom range with start and end indices
|
|
42
|
-
* @param config - Optional configuration for custom label templates
|
|
43
|
-
* @returns Object with formatted accessibility labels for UI components
|
|
44
|
-
*/
|
|
45
|
-
export const generateAccessibilityLabels = (data, xKey, currentRange, config) => {
|
|
46
|
-
// Use EXACT same indexing logic as useZoomData.filterData() via shared utilities
|
|
47
|
-
const { endIndex, startIndex } = getRangeIndices(currentRange, data.length);
|
|
48
|
-
const startValue = getXAxisValue(data, xKey, startIndex);
|
|
49
|
-
const endValue = getXAxisValue(data, xKey, endIndex);
|
|
50
|
-
// Use custom templates or fall back to simple defaults (just the values)
|
|
51
|
-
const startHandler = buildScreenReaderText(config?.startHandler, startValue, endValue) ?? startValue;
|
|
52
|
-
const endHandler = buildScreenReaderText(config?.endHandler, startValue, endValue) ?? endValue;
|
|
53
|
-
const selectionArea = buildScreenReaderText(config?.selectionArea, startValue, endValue) ??
|
|
54
|
-
`${startValue} - ${endValue}`;
|
|
55
|
-
return {
|
|
56
|
-
endHandler,
|
|
57
|
-
selectionArea,
|
|
58
|
-
startHandler,
|
|
59
|
-
};
|
|
60
|
-
};
|
|
1
|
+
const e=require(`./indexRounding.js`);var t=`{{startValue}}`,n=`{{endValue}}`;const r=(e,t,n)=>e[n]?.[t]?.toString()||`${n}`;var i=(e,r,i)=>{if(!e)return e;let a=new RegExp(t,`g`),o=new RegExp(n,`g`);return e.replace(a,r).replace(o,i)};exports.generateAccessibilityLabels=(t,n,a,o)=>{let{endIndex:s,startIndex:c}=e.getRangeIndices(a,t.length),l=r(t,n,c),u=r(t,n,s),d=i(o?.startHandler,l,u)??l;return{endHandler:i(o?.endHandler,l,u)??u,selectionArea:i(o?.selectionArea,l,u)??`${l} - ${u}`,startHandler:d}};
|
|
@@ -1,68 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Index rounding utilities for consistent data filtering and accessibility labels.
|
|
3
|
-
*
|
|
4
|
-
* These utilities ensure that both data filtering (useZoomData) and accessibility labels
|
|
5
|
-
* (generateAccessibilityLabels) use exactly the same rounding logic, preventing
|
|
6
|
-
* inconsistencies between what users see and what screen readers announce.
|
|
7
|
-
*/
|
|
8
|
-
/**
|
|
9
|
-
* Rounds a fractional index to be used as a start index (inclusive lower bound).
|
|
10
|
-
* Uses Math.floor() to include the current data point and everything after it.
|
|
11
|
-
*
|
|
12
|
-
* @param index - Continuous index (can be fractional)
|
|
13
|
-
* @param maxIndex - Maximum valid index (usually data.length - 1)
|
|
14
|
-
* @returns Rounded index clamped to valid bounds
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```typescript
|
|
18
|
-
* roundStartIndex(1.3, 4); // Math.floor(1.3) = 1, clamped to [0,4] → 1
|
|
19
|
-
* roundStartIndex(-0.5, 4); // Math.floor(-0.5) = -1, clamped to [0,4] → 0
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export const roundStartIndex = (index, maxIndex) => {
|
|
23
|
-
const rounded = Math.floor(index);
|
|
24
|
-
return Math.max(0, Math.min(maxIndex, rounded));
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Rounds a fractional index to be used as an end index (inclusive upper bound).
|
|
28
|
-
* Uses Math.ceil() to include the current data point and everything before it.
|
|
29
|
-
*
|
|
30
|
-
* @param index - Continuous index (can be fractional)
|
|
31
|
-
* @param maxIndex - Maximum valid index (usually data.length - 1)
|
|
32
|
-
* @returns Rounded index clamped to valid bounds
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* roundEndIndex(2.7, 4); // Math.ceil(2.7) = 3, clamped to [0,4] → 3
|
|
37
|
-
* roundEndIndex(5.2, 4); // Math.ceil(5.2) = 6, clamped to [0,4] → 4
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export const roundEndIndex = (index, maxIndex) => {
|
|
41
|
-
const rounded = Math.ceil(index);
|
|
42
|
-
return Math.max(0, Math.min(maxIndex, rounded));
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Converts a fractional range to integer indices using consistent rounding.
|
|
46
|
-
* This is the core function that both data filtering and accessibility use.
|
|
47
|
-
*
|
|
48
|
-
* @param range - Zoom range with potentially fractional start/end values
|
|
49
|
-
* @param dataLength - Length of the data array
|
|
50
|
-
* @returns Object with rounded startIndex and endIndex
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```typescript
|
|
54
|
-
* const indices = getRangeIndices({ start: 1.3, end: 3.7 }, 10);
|
|
55
|
-
* // Returns: { startIndex: 1, endIndex: 4 }
|
|
56
|
-
*
|
|
57
|
-
* // This can be used for:
|
|
58
|
-
* // 1. Data filtering: data.slice(startIndex, endIndex + 1)
|
|
59
|
-
* // 2. Accessibility: data[startIndex][xKey] to data[endIndex][xKey]
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
export const getRangeIndices = (range, dataLength) => {
|
|
63
|
-
const maxIndex = Math.max(0, dataLength - 1);
|
|
64
|
-
return {
|
|
65
|
-
endIndex: roundEndIndex(range.end, maxIndex),
|
|
66
|
-
startIndex: roundStartIndex(range.start, maxIndex),
|
|
67
|
-
};
|
|
68
|
-
};
|
|
1
|
+
const e=(e,t)=>Math.max(0,Math.min(t,Math.floor(e))),t=(e,t)=>Math.max(0,Math.min(t,Math.ceil(e)));exports.getRangeIndices=(n,r)=>{let i=Math.max(0,r-1);return{endIndex:t(n.end,i),startIndex:e(n.start,i)}};
|
|
@@ -1,23 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Default configuration for ZoomArea interactions
|
|
3
|
-
*/
|
|
4
|
-
const DEFAULT_INTERACTION_CONFIG = {
|
|
5
|
-
/** Fast keyboard movement step (Shift + arrows) */
|
|
6
|
-
KEYBOARD_FAST_STEP: 2,
|
|
7
|
-
/** Default keyboard movement step (arrows without modifiers) */
|
|
8
|
-
KEYBOARD_STEP: 1,
|
|
9
|
-
/** Minimum distance between start and end handlers */
|
|
10
|
-
MIN_HANDLER_DISTANCE: 1,
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Utility function to get resolved interaction configuration.
|
|
14
|
-
* Merges user-provided config with sensible defaults.
|
|
15
|
-
*
|
|
16
|
-
* @param config - Optional user configuration
|
|
17
|
-
* @returns Complete interaction configuration with defaults applied
|
|
18
|
-
*/
|
|
19
|
-
export const getInteractionConfig = (config) => ({
|
|
20
|
-
keyboardFastStep: config?.keyboardFastStep ?? DEFAULT_INTERACTION_CONFIG.KEYBOARD_FAST_STEP,
|
|
21
|
-
keyboardStep: config?.keyboardStep ?? DEFAULT_INTERACTION_CONFIG.KEYBOARD_STEP,
|
|
22
|
-
minHandlerDistance: config?.minHandlerDistance ?? DEFAULT_INTERACTION_CONFIG.MIN_HANDLER_DISTANCE,
|
|
23
|
-
});
|
|
1
|
+
var e={KEYBOARD_FAST_STEP:2,KEYBOARD_STEP:1,MIN_HANDLER_DISTANCE:1};exports.getInteractionConfig=t=>({keyboardFastStep:t?.keyboardFastStep??e.KEYBOARD_FAST_STEP,keyboardStep:t?.keyboardStep??e.KEYBOARD_STEP,minHandlerDistance:t?.minHandlerDistance??e.MIN_HANDLER_DISTANCE});
|
|
@@ -1,112 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Path generation utilities for ZoomArea SVG rendering
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Generates smooth curved path using simplified Bézier curves.
|
|
6
|
-
*
|
|
7
|
-
* This implementation is based on LineChart's curve algorithm but optimized for performance
|
|
8
|
-
* in the ZoomArea context. Uses cubic Bézier curves with control points positioned at 30%
|
|
9
|
-
* of the horizontal distance between consecutive points.
|
|
10
|
-
*
|
|
11
|
-
* @param points - Array of [x, y] coordinates representing the line points
|
|
12
|
-
* @returns SVG path string with curved segments (e.g., "M 0 10 C 3 10, 7 20, 10 20")
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```typescript
|
|
16
|
-
* const points: Array<[number, number]> = [[0, 10], [10, 20], [20, 15]];
|
|
17
|
-
* const curvedPath = generateCurvedPath(points);
|
|
18
|
-
* // Returns: "M 0 10 C 3 10, 7 20, 10 20 C 13 20, 17 15, 20 15"
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
export const generateCurvedPath = (points) => {
|
|
22
|
-
if (points.length === 0) {
|
|
23
|
-
return '';
|
|
24
|
-
}
|
|
25
|
-
if (points.length === 1) {
|
|
26
|
-
return `M ${points[0][0]} ${points[0][1]}`;
|
|
27
|
-
}
|
|
28
|
-
const [firstPoint, ...remainingPoints] = points;
|
|
29
|
-
let path = `M ${firstPoint[0]} ${firstPoint[1]}`;
|
|
30
|
-
remainingPoints.forEach((point, i) => {
|
|
31
|
-
const start = i === 0 ? firstPoint : remainingPoints[i - 1];
|
|
32
|
-
const [x1, y1] = start;
|
|
33
|
-
const [x2, y2] = point;
|
|
34
|
-
// Control points calculation (same as LineChart but simplified factor)
|
|
35
|
-
const dx = (x2 - x1) * 0.3;
|
|
36
|
-
const controlPoint1 = [x1 + dx, y1];
|
|
37
|
-
const controlPoint2 = [x2 - dx, y2];
|
|
38
|
-
path += ` C ${controlPoint1[0]} ${controlPoint1[1]}, ${controlPoint2[0]} ${controlPoint2[1]}, ${x2} ${y2}`;
|
|
39
|
-
});
|
|
40
|
-
return path;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Calculates path data for all lines with unified Y-scale, supporting both curved and straight lines.
|
|
44
|
-
*
|
|
45
|
-
* This function processes multiple line configurations and generates SVG path strings for each line.
|
|
46
|
-
* All lines share the same Y-scale to maintain visual consistency when comparing different datasets.
|
|
47
|
-
*
|
|
48
|
-
* **Y-scaling behavior:** Uses padding to prevent lines from touching chart bounds, similar to LineChart.
|
|
49
|
-
* The effective chart area is reduced by 10% (5% top + 5% bottom) to provide visual breathing room.
|
|
50
|
-
*
|
|
51
|
-
* @param data - Array of data points containing values for all lines
|
|
52
|
-
* @param lines - Configuration for each line including styling and curve settings
|
|
53
|
-
* @param width - Canvas width for scaling X coordinates
|
|
54
|
-
* @param height - Canvas height for scaling Y coordinates
|
|
55
|
-
* @returns Array of objects containing line and fill paths with their configurations
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```typescript
|
|
59
|
-
* const result = calculateLinesPathData(
|
|
60
|
-
* [{ month: 'Jan', sales: 100, profit: 20 }, { month: 'Feb', sales: 150, profit: 30 }],
|
|
61
|
-
* [
|
|
62
|
-
* { yKey: 'sales', stroke: '#blue', curved: true },
|
|
63
|
-
* { yKey: 'profit', stroke: '#red', curved: false }
|
|
64
|
-
* ],
|
|
65
|
-
* 400, // width
|
|
66
|
-
* 100 // height
|
|
67
|
-
* );
|
|
68
|
-
* // Returns: [{ linePath: "M 0 80 C...", fillPath: "", config: {...} }, ...]
|
|
69
|
-
* ```
|
|
70
|
-
*/
|
|
71
|
-
export const calculateLinesPathData = (data, lines, width, height) => {
|
|
72
|
-
if (data.length === 0 || lines.length === 0) {
|
|
73
|
-
return [];
|
|
74
|
-
}
|
|
75
|
-
// Add padding to prevent lines from touching chart bounds (similar to LineChart behavior)
|
|
76
|
-
const yPaddingPercent = 0.05; // 5% padding top and bottom
|
|
77
|
-
const yPadding = height * yPaddingPercent;
|
|
78
|
-
const effectiveHeight = height - 2 * yPadding;
|
|
79
|
-
// Get min/max values for scaling across all lines for consistent Y scale
|
|
80
|
-
const allYValues = lines.flatMap(line => data.map(d => Number(d[line.yKey])));
|
|
81
|
-
const minY = Math.min(...allYValues);
|
|
82
|
-
const maxY = Math.max(...allYValues);
|
|
83
|
-
const yRange = maxY - minY || 1;
|
|
84
|
-
return lines.map(lineConfig => {
|
|
85
|
-
// Create path points for this specific line
|
|
86
|
-
const pathPoints = data.map((d, index) => {
|
|
87
|
-
const x = (index / Math.max(1, data.length - 1)) * width;
|
|
88
|
-
// Apply padding and scale within the effective height
|
|
89
|
-
const y = yPadding +
|
|
90
|
-
effectiveHeight -
|
|
91
|
-
((Number(d[lineConfig.yKey]) - minY) / yRange) * effectiveHeight;
|
|
92
|
-
return [x, y];
|
|
93
|
-
});
|
|
94
|
-
// Generate line path - curved or straight based on config
|
|
95
|
-
const linePath = lineConfig.curved
|
|
96
|
-
? generateCurvedPath(pathPoints)
|
|
97
|
-
: `M ${pathPoints.map(([x, y]) => `${x},${y}`).join(' L ')}`;
|
|
98
|
-
// Generate fill path if needed
|
|
99
|
-
let fillPath = '';
|
|
100
|
-
if (lineConfig.fill) {
|
|
101
|
-
// For fill, extend to the bottom of the chart (full height)
|
|
102
|
-
fillPath = lineConfig.curved
|
|
103
|
-
? `${generateCurvedPath(pathPoints)} L ${width} ${height} L 0 ${height} Z`
|
|
104
|
-
: `${linePath} L ${width},${height} L 0,${height} Z`;
|
|
105
|
-
}
|
|
106
|
-
return {
|
|
107
|
-
config: lineConfig,
|
|
108
|
-
fillPath,
|
|
109
|
-
linePath,
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
-
};
|
|
1
|
+
const e=e=>{if(e.length===0)return``;if(e.length===1)return`M ${e[0][0]} ${e[0][1]}`;let[t,...n]=e,r=`M ${t[0]} ${t[1]}`;return n.forEach((e,i)=>{let[a,o]=i===0?t:n[i-1],[s,c]=e,l=(s-a)*.3,u=[a+l,o],d=[s-l,c];r+=` C ${u[0]} ${u[1]}, ${d[0]} ${d[1]}, ${s} ${c}`}),r};exports.calculateLinesPathData=(t,n,r,i)=>{if(t.length===0||n.length===0)return[];let a=i*.05,o=i-2*a,s=n.flatMap(e=>t.map(t=>Number(t[e.yKey]))),c=Math.min(...s),l=Math.max(...s)-c||1;return n.map(n=>{let s=t.map((e,i)=>[i/Math.max(1,t.length-1)*r,a+o-(Number(e[n.yKey])-c)/l*o]),u=n.curved?e(s):`M ${s.map(([e,t])=>`${e},${t}`).join(` L `)}`,d=``;return n.fill&&(d=n.curved?`${e(s)} L ${r} ${i} L 0 ${i} Z`:`${u} L ${r},${i} L 0,${i} Z`),{config:n,fillPath:d,linePath:u}})},exports.generateCurvedPath=e;
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Range operations and position calculation utilities for ZoomArea
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Calculates handler positions based on current range
|
|
6
|
-
*
|
|
7
|
-
* @param currentRange - The current zoom range
|
|
8
|
-
* @param dataLength - Total length of the dataset
|
|
9
|
-
* @param width - Canvas width for scaling
|
|
10
|
-
* @returns Object with startX and endX positions
|
|
11
|
-
*/
|
|
12
|
-
export const calculateHandlerPositions = (currentRange, dataLength, width) => {
|
|
13
|
-
const startX = (currentRange.start / Math.max(1, dataLength - 1)) * width;
|
|
14
|
-
const endX = (currentRange.end / Math.max(1, dataLength - 1)) * width;
|
|
15
|
-
return { endX, startX };
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Converts mouse position to continuous data index
|
|
19
|
-
*
|
|
20
|
-
* @param mouseX - Mouse X coordinate relative to the chart
|
|
21
|
-
* @param width - Canvas width
|
|
22
|
-
* @param dataLength - Total length of the dataset
|
|
23
|
-
* @returns Data index
|
|
24
|
-
*/
|
|
25
|
-
export const mouseToDataIndex = (mouseX, width, dataLength) => {
|
|
26
|
-
const relativeX = Math.max(0, Math.min(width, mouseX));
|
|
27
|
-
const normalizedPosition = relativeX / width;
|
|
28
|
-
return Math.round(normalizedPosition * (dataLength - 1));
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Clamps a range to valid bounds
|
|
32
|
-
*
|
|
33
|
-
* @param range - The range to clamp
|
|
34
|
-
* @param dataLength - Total length of the dataset
|
|
35
|
-
* @param minDistance - Minimum distance between start and end (default: 0.1)
|
|
36
|
-
* @returns Clamped range within valid bounds
|
|
37
|
-
*/
|
|
38
|
-
export const clampRange = (range, dataLength, minDistance = 0.1) => {
|
|
39
|
-
const clampedStart = Math.max(0, Math.min(range.start, dataLength - 1 - minDistance));
|
|
40
|
-
const clampedEnd = Math.min(dataLength - 1, Math.max(range.end, clampedStart + minDistance));
|
|
41
|
-
return {
|
|
42
|
-
end: clampedEnd,
|
|
43
|
-
start: clampedStart,
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Creates a default range for the given data length
|
|
48
|
-
*
|
|
49
|
-
* @param dataLength - Total length of the dataset
|
|
50
|
-
* @returns Default range covering the full dataset
|
|
51
|
-
*/
|
|
52
|
-
export const createDefaultRange = (dataLength) => ({
|
|
53
|
-
end: Math.max(0, dataLength - 1),
|
|
54
|
-
start: 0,
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* Determines if the current range covers the full dataset.
|
|
58
|
-
* According to design specs: overlay is "only visible when a range is defined".
|
|
59
|
-
* A range is considered "defined" when it doesn't cover the complete dataset.
|
|
60
|
-
*
|
|
61
|
-
* @param range - The current zoom range
|
|
62
|
-
* @param dataLength - Total length of the dataset
|
|
63
|
-
* @returns true if the range covers the full dataset (no selection defined)
|
|
64
|
-
*
|
|
65
|
-
* @example
|
|
66
|
-
* ```typescript
|
|
67
|
-
* // Dataset with 10 elements [0-9]
|
|
68
|
-
* isFullRange({ start: 0, end: 9 }, 10); // true - covers full dataset
|
|
69
|
-
* isFullRange({ start: 1, end: 8 }, 10); // false - partial selection
|
|
70
|
-
* isFullRange({ start: 0, end: 7 }, 10); // false - partial selection
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
export const isFullRange = (range, dataLength) => {
|
|
74
|
-
return range.start === 0 && range.end === dataLength - 1;
|
|
75
|
-
};
|
|
1
|
+
exports.calculateHandlerPositions=(e,t,n)=>{let r=e.start/Math.max(1,t-1)*n;return{endX:e.end/Math.max(1,t-1)*n,startX:r}},exports.clampRange=(e,t,n=.1)=>{let r=Math.max(0,Math.min(e.start,t-1-n));return{end:Math.min(t-1,Math.max(e.end,r+n)),start:r}},exports.createDefaultRange=e=>({end:Math.max(0,e-1),start:0}),exports.isFullRange=(e,t)=>e.start===0&&e.end===t-1,exports.mouseToDataIndex=(e,t,n)=>{let r=Math.max(0,Math.min(t,e))/t;return Math.round(r*(n-1))};
|