@kubit-ui-web/react-charts 1.11.0 → 1.11.1
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 +261 -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 +57 -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 +57 -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 +1 -1
- package/dist/types/charts/barChart/context/barChartContext.d.ts +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.type.d.ts +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,56 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
1
|
+
import { clampRange, mouseToDataIndex } from "../utils/rangeAndPositions.js";
|
|
2
|
+
import { ZoomAreaElements } from "../zoomArea.type.js";
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
4
|
+
var calculateNewRange = (e, t, r, i, a) => {
|
|
5
|
+
let o = { ...t };
|
|
6
|
+
if (e === ZoomAreaElements.START_HANDLER) o.start = Math.max(0, Math.min(r, t.end - a.minHandlerDistance));
|
|
7
|
+
else if (e === ZoomAreaElements.END_HANDLER) o.end = Math.min(i - 1, Math.max(r, t.start + a.minHandlerDistance));
|
|
8
|
+
else if (e === ZoomAreaElements.SELECTION_AREA) {
|
|
9
|
+
let e = t.end - t.start, n = Math.max(0, Math.min(i - 1 - e, r - e / 2));
|
|
10
|
+
o.start = n, o.end = n + e;
|
|
11
|
+
}
|
|
12
|
+
return o;
|
|
23
13
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
};
|
|
14
|
+
const useDragInteraction = (n) => {
|
|
15
|
+
let { currentRange: s, dataLength: c, interactionConfig: l, onRangeChange: u, width: d } = n, f = useRef(null), [p, m] = useState(null), h = useCallback((e) => () => {
|
|
16
|
+
m(e);
|
|
17
|
+
}, []), g = useCallback((e) => () => {
|
|
18
|
+
m(e);
|
|
19
|
+
}, []), _ = useCallback((n) => {
|
|
20
|
+
if (!p || !f.current) return;
|
|
21
|
+
let r = f.current;
|
|
22
|
+
r && u(clampRange(calculateNewRange(p, s, mouseToDataIndex(n - r.getBoundingClientRect().left, d, c), c, l), c, l.minHandlerDistance));
|
|
23
|
+
}, [
|
|
24
|
+
p,
|
|
25
|
+
d,
|
|
26
|
+
c,
|
|
27
|
+
s,
|
|
28
|
+
u,
|
|
29
|
+
l
|
|
30
|
+
]), v = useCallback((e) => {
|
|
31
|
+
_(e.clientX);
|
|
32
|
+
}, [_]), y = useCallback((e) => {
|
|
33
|
+
e.touches.length !== 0 && (e.preventDefault(), _(e.touches[0].clientX));
|
|
34
|
+
}, [_]), b = useCallback(() => {
|
|
35
|
+
m(null);
|
|
36
|
+
}, []), x = useCallback(() => {
|
|
37
|
+
m(null);
|
|
38
|
+
}, []);
|
|
39
|
+
return useEffect(() => {
|
|
40
|
+
if (p) return document.addEventListener("mousemove", v), document.addEventListener("mouseup", b), document.addEventListener("touchmove", y, { passive: !1 }), document.addEventListener("touchend", x), () => {
|
|
41
|
+
document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", b), document.removeEventListener("touchmove", y), document.removeEventListener("touchend", x);
|
|
42
|
+
};
|
|
43
|
+
}, [
|
|
44
|
+
p,
|
|
45
|
+
v,
|
|
46
|
+
b,
|
|
47
|
+
y,
|
|
48
|
+
x
|
|
49
|
+
]), {
|
|
50
|
+
groupRef: f,
|
|
51
|
+
handleMouseDown: h,
|
|
52
|
+
handleTouchStart: g,
|
|
53
|
+
isDragging: p
|
|
54
|
+
};
|
|
110
55
|
};
|
|
56
|
+
export { useDragInteraction };
|
|
@@ -1,122 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { clampRange } from "../utils/rangeAndPositions.js";
|
|
2
|
+
import { ZoomAreaElements } from "../zoomArea.type.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
var handleArrowLeft = (e, n, r, i) => {
|
|
5
|
+
let a = { ...n };
|
|
6
|
+
if (e === ZoomAreaElements.START_HANDLER) a.start = Math.max(0, n.start - r);
|
|
7
|
+
else if (e === ZoomAreaElements.END_HANDLER) a.end = Math.max(n.start + i.minHandlerDistance, n.end - r);
|
|
8
|
+
else if (e === ZoomAreaElements.SELECTION_AREA) {
|
|
9
|
+
let e = n.end - n.start, t = Math.max(0, n.start - r);
|
|
10
|
+
a.start = t, a.end = t + e;
|
|
11
|
+
}
|
|
12
|
+
return a;
|
|
13
|
+
}, handleArrowRight = (e, n, r, i, a) => {
|
|
14
|
+
let o = { ...n };
|
|
15
|
+
if (e === ZoomAreaElements.START_HANDLER) o.start = Math.min(n.end - a.minHandlerDistance, n.start + r);
|
|
16
|
+
else if (e === ZoomAreaElements.END_HANDLER) o.end = Math.min(i - 1, n.end + r);
|
|
17
|
+
else if (e === ZoomAreaElements.SELECTION_AREA) {
|
|
18
|
+
let e = n.end - n.start, t = Math.min(i - 1 - e, n.start + r);
|
|
19
|
+
o.start = t, o.end = t + e;
|
|
20
|
+
}
|
|
21
|
+
return o;
|
|
22
|
+
}, handleHome = (e, n, r) => {
|
|
23
|
+
let i = { ...n };
|
|
24
|
+
if (e === ZoomAreaElements.START_HANDLER) i.start = 0;
|
|
25
|
+
else if (e === ZoomAreaElements.END_HANDLER) i.end = r - 1;
|
|
26
|
+
else if (e === ZoomAreaElements.SELECTION_AREA) {
|
|
27
|
+
let e = n.end - n.start;
|
|
28
|
+
i.start = 0, i.end = e;
|
|
29
|
+
}
|
|
30
|
+
return i;
|
|
31
|
+
}, handleEnd = (e, n, r, i) => {
|
|
32
|
+
let a = { ...n };
|
|
33
|
+
if (e === ZoomAreaElements.START_HANDLER) a.start = n.end - i.minHandlerDistance;
|
|
34
|
+
else if (e === ZoomAreaElements.END_HANDLER) a.end = r - 1;
|
|
35
|
+
else if (e === ZoomAreaElements.SELECTION_AREA) {
|
|
36
|
+
let e = n.end - n.start;
|
|
37
|
+
a.start = r - 1 - e, a.end = r - 1;
|
|
38
|
+
}
|
|
39
|
+
return a;
|
|
23
40
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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 };
|
|
41
|
+
const useKeyboardNavigation = (t) => {
|
|
42
|
+
let { currentRange: s, dataLength: c, interactionConfig: l, onRangeChange: u } = t;
|
|
43
|
+
return { handleKeyDown: useCallback((t) => (n) => {
|
|
44
|
+
let d = n.shiftKey ? l.keyboardFastStep : l.keyboardStep, f = { ...s };
|
|
45
|
+
switch (n.key) {
|
|
46
|
+
case "ArrowLeft":
|
|
47
|
+
case "ArrowDown":
|
|
48
|
+
n.preventDefault(), f = handleArrowLeft(t, s, d, l);
|
|
49
|
+
break;
|
|
50
|
+
case "ArrowRight":
|
|
51
|
+
case "ArrowUp":
|
|
52
|
+
n.preventDefault(), f = handleArrowRight(t, s, d, c, l);
|
|
53
|
+
break;
|
|
54
|
+
case "Home":
|
|
55
|
+
n.preventDefault(), f = handleHome(t, s, c);
|
|
56
|
+
break;
|
|
57
|
+
case "End":
|
|
58
|
+
n.preventDefault(), f = handleEnd(t, s, c, l);
|
|
59
|
+
break;
|
|
60
|
+
default: return;
|
|
61
|
+
}
|
|
62
|
+
u(clampRange(f, c, l.minHandlerDistance));
|
|
63
|
+
}, [
|
|
64
|
+
s,
|
|
65
|
+
c,
|
|
66
|
+
u,
|
|
67
|
+
l
|
|
68
|
+
]) };
|
|
122
69
|
};
|
|
70
|
+
export { useKeyboardNavigation };
|
|
@@ -1,28 +1,12 @@
|
|
|
1
|
-
import { useCallback, useState } from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
};
|
|
1
|
+
import { useCallback, useState } from "react";
|
|
2
|
+
const useZoomAreaFocus = () => {
|
|
3
|
+
let [t, n] = useState(null), r = useCallback((e) => () => n(e), []);
|
|
4
|
+
return {
|
|
5
|
+
handleBlur: useCallback(() => {
|
|
6
|
+
n(null);
|
|
7
|
+
}, []),
|
|
8
|
+
handleFocus: r,
|
|
9
|
+
isFocused: useCallback((e) => t === e, [t])
|
|
10
|
+
};
|
|
28
11
|
};
|
|
12
|
+
export { useZoomAreaFocus };
|
|
@@ -1,31 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { getRangeIndices } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
};
|
|
1
|
+
import { createDefaultRange } from "../utils/rangeAndPositions.js";
|
|
2
|
+
import { getRangeIndices } from "../utils/indexRounding.js";
|
|
3
|
+
import { useEffect, useState } from "react";
|
|
4
|
+
const useZoomData = ({ data: r, initialRange: i, onDataChange: a }) => {
|
|
5
|
+
let [o, s] = useState(i || createDefaultRange(r.length)), c = (e) => {
|
|
6
|
+
if (!a || r.length === 0) return;
|
|
7
|
+
let { endIndex: t, startIndex: n } = getRangeIndices(e, r.length);
|
|
8
|
+
a(r.slice(n, t + 1));
|
|
9
|
+
};
|
|
10
|
+
return useEffect(() => {
|
|
11
|
+
c(o);
|
|
12
|
+
}, []), {
|
|
13
|
+
currentRange: o,
|
|
14
|
+
handleRangeChange: (e) => {
|
|
15
|
+
s(e), c(e);
|
|
16
|
+
}
|
|
17
|
+
};
|
|
31
18
|
};
|
|
19
|
+
export { useZoomData };
|
|
@@ -1,60 +1,17 @@
|
|
|
1
|
-
import { getRangeIndices } from
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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}`;
|
|
1
|
+
import { getRangeIndices } from "./indexRounding.js";
|
|
2
|
+
var ACCESSIBILITY_START_VALUE_KEY = "{{startValue}}", ACCESSIBILITY_END_VALUE_KEY = "{{endValue}}";
|
|
3
|
+
const getXAxisValue = (e, t, n) => e[n]?.[t]?.toString() || `${n}`;
|
|
4
|
+
var buildScreenReaderText = (e, r, i) => {
|
|
5
|
+
if (!e) return e;
|
|
6
|
+
let a = new RegExp(ACCESSIBILITY_START_VALUE_KEY, "g"), o = new RegExp(ACCESSIBILITY_END_VALUE_KEY, "g");
|
|
7
|
+
return e.replace(a, r).replace(o, i);
|
|
16
8
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
};
|
|
9
|
+
const generateAccessibilityLabels = (t, n, a, o) => {
|
|
10
|
+
let { endIndex: s, startIndex: c } = getRangeIndices(a, t.length), l = getXAxisValue(t, n, c), u = getXAxisValue(t, n, s), d = buildScreenReaderText(o?.startHandler, l, u) ?? l;
|
|
11
|
+
return {
|
|
12
|
+
endHandler: buildScreenReaderText(o?.endHandler, l, u) ?? u,
|
|
13
|
+
selectionArea: buildScreenReaderText(o?.selectionArea, l, u) ?? `${l} - ${u}`,
|
|
14
|
+
startHandler: d
|
|
15
|
+
};
|
|
60
16
|
};
|
|
17
|
+
export { generateAccessibilityLabels };
|
|
@@ -1,68 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
};
|
|
1
|
+
const roundStartIndex = (e, t) => Math.max(0, Math.min(t, Math.floor(e))), roundEndIndex = (e, t) => Math.max(0, Math.min(t, Math.ceil(e))), getRangeIndices = (n, r) => {
|
|
2
|
+
let i = Math.max(0, r - 1);
|
|
3
|
+
return {
|
|
4
|
+
endIndex: roundEndIndex(n.end, i),
|
|
5
|
+
startIndex: roundStartIndex(n.start, i)
|
|
6
|
+
};
|
|
68
7
|
};
|
|
8
|
+
export { getRangeIndices };
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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,
|
|
1
|
+
var DEFAULT_INTERACTION_CONFIG = {
|
|
2
|
+
KEYBOARD_FAST_STEP: 2,
|
|
3
|
+
KEYBOARD_STEP: 1,
|
|
4
|
+
MIN_HANDLER_DISTANCE: 1
|
|
11
5
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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,
|
|
6
|
+
const getInteractionConfig = (e) => ({
|
|
7
|
+
keyboardFastStep: e?.keyboardFastStep ?? DEFAULT_INTERACTION_CONFIG.KEYBOARD_FAST_STEP,
|
|
8
|
+
keyboardStep: e?.keyboardStep ?? DEFAULT_INTERACTION_CONFIG.KEYBOARD_STEP,
|
|
9
|
+
minHandlerDistance: e?.minHandlerDistance ?? DEFAULT_INTERACTION_CONFIG.MIN_HANDLER_DISTANCE
|
|
23
10
|
});
|
|
11
|
+
export { getInteractionConfig };
|