@kubit-ui-web/react-charts 0.1.0
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/LICENSE +201 -0
- package/README.md +368 -0
- package/dist/cjs/charts/barChart/barChart.d.ts +9 -0
- package/dist/cjs/charts/barChart/barChart.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/barChart.js +30 -0
- package/dist/cjs/charts/barChart/barChart.type.d.ts +116 -0
- package/dist/cjs/charts/barChart/barChart.type.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/barChart.type.js +2 -0
- package/dist/cjs/charts/barChart/barChartStructure.d.ts +3 -0
- package/dist/cjs/charts/barChart/barChartStructure.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/barChartStructure.js +68 -0
- package/dist/cjs/charts/barChart/context/barChartContext.d.ts +3 -0
- package/dist/cjs/charts/barChart/context/barChartContext.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/context/barChartContext.js +5 -0
- package/dist/cjs/charts/barChart/context/buildBarContextValues.d.ts +24 -0
- package/dist/cjs/charts/barChart/context/buildBarContextValues.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/context/buildBarContextValues.js +105 -0
- package/dist/cjs/charts/barChart/fragments/barChartPath.d.ts +3 -0
- package/dist/cjs/charts/barChart/fragments/barChartPath.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/fragments/barChartPath.js +36 -0
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.d.ts +4 -0
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/fragments/barChartSeparator.js +26 -0
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.d.ts +4 -0
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/fragments/barChartXAxis.js +31 -0
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.d.ts +4 -0
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/fragments/barChartYAxis.js +24 -0
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.d.ts +3 -0
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/fragments/fixture/barContextData.js +44 -0
- package/dist/cjs/charts/barChart/fragments/fixture/index.d.ts +2 -0
- package/dist/cjs/charts/barChart/fragments/fixture/index.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/fragments/fixture/index.js +5 -0
- package/dist/cjs/charts/barChart/index.d.ts +2 -0
- package/dist/cjs/charts/barChart/index.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/index.js +17 -0
- package/dist/cjs/charts/barChart/utils/countBarChildren.d.ts +3 -0
- package/dist/cjs/charts/barChart/utils/countBarChildren.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/utils/countBarChildren.js +15 -0
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.d.ts +17 -0
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/utils/getAxisExtraSpacing.js +120 -0
- package/dist/cjs/charts/barChart/utils/getBarDataValue.d.ts +8 -0
- package/dist/cjs/charts/barChart/utils/getBarDataValue.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/utils/getBarDataValue.js +23 -0
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.d.ts +9 -0
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +1 -0
- package/dist/cjs/charts/barChart/utils/getRoundedBarMaxValue.js +15 -0
- package/dist/cjs/charts/index.d.ts +4 -0
- package/dist/cjs/charts/index.d.ts.map +1 -0
- package/dist/cjs/charts/index.js +19 -0
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.d.ts +21 -0
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/context/buildLineContextValue.js +138 -0
- package/dist/cjs/charts/lineChart/context/index.d.ts +3 -0
- package/dist/cjs/charts/lineChart/context/index.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/context/index.js +7 -0
- package/dist/cjs/charts/lineChart/context/lineChartContext.d.ts +3 -0
- package/dist/cjs/charts/lineChart/context/lineChartContext.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/context/lineChartContext.js +5 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.d.ts +43 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/contextData.js +43 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/index.d.ts +2 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/index.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/fixture/index.js +5 -0
- package/dist/cjs/charts/lineChart/fragments/index.d.ts +5 -0
- package/dist/cjs/charts/lineChart/fragments/index.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/index.js +11 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.css +3 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.d.ts +5 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartPath.js +109 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.d.ts +5 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartProjection.js +22 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.d.ts +4 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartSeparator.js +26 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.d.ts +4 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartXAxis.js +41 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.d.ts +3 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/fragments/lineChartYAxis.js +45 -0
- package/dist/cjs/charts/lineChart/hook/index.d.ts +4 -0
- package/dist/cjs/charts/lineChart/hook/index.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/hook/index.js +9 -0
- package/dist/cjs/charts/lineChart/hook/useAutoClick.d.ts +4 -0
- package/dist/cjs/charts/lineChart/hook/useAutoClick.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/hook/useAutoClick.js +23 -0
- package/dist/cjs/charts/lineChart/hook/useHover.d.ts +12 -0
- package/dist/cjs/charts/lineChart/hook/useHover.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/hook/useHover.js +34 -0
- package/dist/cjs/charts/lineChart/hook/useIndicator.d.ts +7 -0
- package/dist/cjs/charts/lineChart/hook/useIndicator.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/hook/useIndicator.js +35 -0
- package/dist/cjs/charts/lineChart/index.d.ts +2 -0
- package/dist/cjs/charts/lineChart/index.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/index.js +17 -0
- package/dist/cjs/charts/lineChart/lineChart.d.ts +9 -0
- package/dist/cjs/charts/lineChart/lineChart.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/lineChart.js +30 -0
- package/dist/cjs/charts/lineChart/lineChart.type.d.ts +164 -0
- package/dist/cjs/charts/lineChart/lineChart.type.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/lineChart.type.js +2 -0
- package/dist/cjs/charts/lineChart/lineChartStructure.d.ts +33 -0
- package/dist/cjs/charts/lineChart/lineChartStructure.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/lineChartStructure.js +137 -0
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +14 -0
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/accessibilityTemplateProcessor.js +60 -0
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.d.ts +8 -0
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/findSurroundingNumber.js +30 -0
- package/dist/cjs/charts/lineChart/utils/getDataValues.d.ts +8 -0
- package/dist/cjs/charts/lineChart/utils/getDataValues.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/getDataValues.js +28 -0
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.d.ts +19 -0
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/getExtraSpacing.js +128 -0
- package/dist/cjs/charts/lineChart/utils/getPathData.d.ts +18 -0
- package/dist/cjs/charts/lineChart/utils/getPathData.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/getPathData.js +37 -0
- package/dist/cjs/charts/lineChart/utils/getProjection.d.ts +33 -0
- package/dist/cjs/charts/lineChart/utils/getProjection.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/getProjection.js +109 -0
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.d.ts +17 -0
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/getRoundedMaxValue.js +30 -0
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.d.ts +17 -0
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/handleNodesFocus.js +49 -0
- package/dist/cjs/charts/lineChart/utils/index.d.ts +7 -0
- package/dist/cjs/charts/lineChart/utils/index.d.ts.map +1 -0
- package/dist/cjs/charts/lineChart/utils/index.js +17 -0
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.d.ts +16 -0
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/context/buildPieContextValue.js +49 -0
- package/dist/cjs/charts/pieChart/context/index.d.ts +3 -0
- package/dist/cjs/charts/pieChart/context/index.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/context/index.js +7 -0
- package/dist/cjs/charts/pieChart/context/pieChartContext.d.ts +3 -0
- package/dist/cjs/charts/pieChart/context/pieChartContext.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/context/pieChartContext.js +5 -0
- package/dist/cjs/charts/pieChart/fragments/index.d.ts +3 -0
- package/dist/cjs/charts/pieChart/fragments/index.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/fragments/index.js +7 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.d.ts +4 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartForeign.js +17 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.d.ts +15 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartPath.js +32 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.d.ts +18 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/fragments/pieChartSegment.js +37 -0
- package/dist/cjs/charts/pieChart/index.d.ts +2 -0
- package/dist/cjs/charts/pieChart/index.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/index.js +17 -0
- package/dist/cjs/charts/pieChart/pieChart.d.ts +7 -0
- package/dist/cjs/charts/pieChart/pieChart.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/pieChart.js +26 -0
- package/dist/cjs/charts/pieChart/pieChart.type.d.ts +65 -0
- package/dist/cjs/charts/pieChart/pieChart.type.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/pieChart.type.js +2 -0
- package/dist/cjs/charts/pieChart/pieChartStructure.d.ts +34 -0
- package/dist/cjs/charts/pieChart/pieChartStructure.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/pieChartStructure.js +69 -0
- package/dist/cjs/charts/pieChart/utils/buildL.d.ts +13 -0
- package/dist/cjs/charts/pieChart/utils/buildL.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/utils/buildL.js +13 -0
- package/dist/cjs/charts/pieChart/utils/calculatePoint.d.ts +15 -0
- package/dist/cjs/charts/pieChart/utils/calculatePoint.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/utils/calculatePoint.js +17 -0
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.d.ts +34 -0
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/utils/calculateSegmentPath.js +61 -0
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.d.ts +20 -0
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/utils/drawSegmentPath.js +45 -0
- package/dist/cjs/charts/pieChart/utils/index.d.ts +3 -0
- package/dist/cjs/charts/pieChart/utils/index.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/utils/index.js +7 -0
- package/dist/cjs/charts/pieChart/utils/rotationDirection.d.ts +18 -0
- package/dist/cjs/charts/pieChart/utils/rotationDirection.d.ts.map +1 -0
- package/dist/cjs/charts/pieChart/utils/rotationDirection.js +17 -0
- package/dist/cjs/components/axisChart/index.d.ts +3 -0
- package/dist/cjs/components/axisChart/index.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/index.js +18 -0
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +18 -0
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/utils/filterLineProps/filterLineProps.js +42 -0
- package/dist/cjs/components/axisChart/utils/index.d.ts +2 -0
- package/dist/cjs/components/axisChart/utils/index.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/utils/index.js +17 -0
- package/dist/cjs/components/axisChart/xAxis/index.d.ts +3 -0
- package/dist/cjs/components/axisChart/xAxis/index.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/xAxis/index.js +18 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.d.ts +11 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.js +46 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.d.ts +40 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/xAxis/xAxis.types.js +2 -0
- package/dist/cjs/components/axisChart/yAxis/index.d.ts +3 -0
- package/dist/cjs/components/axisChart/yAxis/index.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/yAxis/index.js +18 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.d.ts +8 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.js +38 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.d.ts +37 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.d.ts.map +1 -0
- package/dist/cjs/components/axisChart/yAxis/yAxis.types.js +2 -0
- package/dist/cjs/components/bar/bar.d.ts +4 -0
- package/dist/cjs/components/bar/bar.d.ts.map +1 -0
- package/dist/cjs/components/bar/bar.js +33 -0
- package/dist/cjs/components/bar/bar.type.d.ts +32 -0
- package/dist/cjs/components/bar/bar.type.d.ts.map +1 -0
- package/dist/cjs/components/bar/bar.type.js +7 -0
- package/dist/cjs/components/bar/fragments/barChartSegment.d.ts +3 -0
- package/dist/cjs/components/bar/fragments/barChartSegment.d.ts.map +1 -0
- package/dist/cjs/components/bar/fragments/barChartSegment.js +8 -0
- package/dist/cjs/components/bar/index.d.ts +3 -0
- package/dist/cjs/components/bar/index.d.ts.map +1 -0
- package/dist/cjs/components/bar/index.js +18 -0
- package/dist/cjs/components/bar/utils/buildD.d.ts +9 -0
- package/dist/cjs/components/bar/utils/buildD.d.ts.map +1 -0
- package/dist/cjs/components/bar/utils/buildD.js +119 -0
- package/dist/cjs/components/bar/utils/getSegments.d.ts +6 -0
- package/dist/cjs/components/bar/utils/getSegments.d.ts.map +1 -0
- package/dist/cjs/components/bar/utils/getSegments.js +35 -0
- package/dist/cjs/components/chartText/chartText.d.ts +18 -0
- package/dist/cjs/components/chartText/chartText.d.ts.map +1 -0
- package/dist/cjs/components/chartText/chartText.js +22 -0
- package/dist/cjs/components/chartText/chartText.types.d.ts +57 -0
- package/dist/cjs/components/chartText/chartText.types.d.ts.map +1 -0
- package/dist/cjs/components/chartText/chartText.types.js +11 -0
- package/dist/cjs/components/chartText/index.d.ts +3 -0
- package/dist/cjs/components/chartText/index.d.ts.map +1 -0
- package/dist/cjs/components/chartText/index.js +18 -0
- package/dist/cjs/components/foreignObject/foreignObject.d.ts +4 -0
- package/dist/cjs/components/foreignObject/foreignObject.d.ts.map +1 -0
- package/dist/cjs/components/foreignObject/foreignObject.js +8 -0
- package/dist/cjs/components/foreignObject/foreignObject.types.d.ts +10 -0
- package/dist/cjs/components/foreignObject/foreignObject.types.d.ts.map +1 -0
- package/dist/cjs/components/foreignObject/foreignObject.types.js +2 -0
- package/dist/cjs/components/foreignObject/index.d.ts +3 -0
- package/dist/cjs/components/foreignObject/index.d.ts.map +1 -0
- package/dist/cjs/components/foreignObject/index.js +18 -0
- package/dist/cjs/components/index.d.ts +11 -0
- package/dist/cjs/components/index.d.ts.map +1 -0
- package/dist/cjs/components/index.js +26 -0
- package/dist/cjs/components/line/index.d.ts +3 -0
- package/dist/cjs/components/line/index.d.ts.map +1 -0
- package/dist/cjs/components/line/index.js +18 -0
- package/dist/cjs/components/line/line.d.ts +9 -0
- package/dist/cjs/components/line/line.d.ts.map +1 -0
- package/dist/cjs/components/line/line.js +13 -0
- package/dist/cjs/components/line/line.types.d.ts +43 -0
- package/dist/cjs/components/line/line.types.d.ts.map +1 -0
- package/dist/cjs/components/line/line.types.js +2 -0
- package/dist/cjs/components/node/components/circle/circle.d.ts +6 -0
- package/dist/cjs/components/node/components/circle/circle.d.ts.map +1 -0
- package/dist/cjs/components/node/components/circle/circle.js +9 -0
- package/dist/cjs/components/node/components/hexagon/hexagon.d.ts +6 -0
- package/dist/cjs/components/node/components/hexagon/hexagon.d.ts.map +1 -0
- package/dist/cjs/components/node/components/hexagon/hexagon.js +11 -0
- package/dist/cjs/components/node/components/index.d.ts +1 -0
- package/dist/cjs/components/node/components/index.d.ts.map +1 -0
- package/dist/cjs/components/node/components/index.js +1 -0
- package/dist/cjs/components/node/components/pentagon/pentagon.d.ts +6 -0
- package/dist/cjs/components/node/components/pentagon/pentagon.d.ts.map +1 -0
- package/dist/cjs/components/node/components/pentagon/pentagon.js +11 -0
- package/dist/cjs/components/node/components/square/square.d.ts +6 -0
- package/dist/cjs/components/node/components/square/square.d.ts.map +1 -0
- package/dist/cjs/components/node/components/square/square.js +9 -0
- package/dist/cjs/components/node/components/star/star.d.ts +6 -0
- package/dist/cjs/components/node/components/star/star.d.ts.map +1 -0
- package/dist/cjs/components/node/components/star/star.js +13 -0
- package/dist/cjs/components/node/components/straight/straight.d.ts +6 -0
- package/dist/cjs/components/node/components/straight/straight.d.ts.map +1 -0
- package/dist/cjs/components/node/components/straight/straight.js +10 -0
- package/dist/cjs/components/node/components/triangle/triangle.d.ts +6 -0
- package/dist/cjs/components/node/components/triangle/triangle.d.ts.map +1 -0
- package/dist/cjs/components/node/components/triangle/triangle.js +14 -0
- package/dist/cjs/components/node/index.d.ts +3 -0
- package/dist/cjs/components/node/index.d.ts.map +1 -0
- package/dist/cjs/components/node/index.js +18 -0
- package/dist/cjs/components/node/node.d.ts +6 -0
- package/dist/cjs/components/node/node.d.ts.map +1 -0
- package/dist/cjs/components/node/node.js +101 -0
- package/dist/cjs/components/node/node.types.d.ts +101 -0
- package/dist/cjs/components/node/node.types.d.ts.map +1 -0
- package/dist/cjs/components/node/node.types.js +21 -0
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +2 -0
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +1 -0
- package/dist/cjs/components/node/utils/calculateShapePoints/calculateShapePoints.js +22 -0
- package/dist/cjs/components/path/components/nodePath/nodePath.d.ts +14 -0
- package/dist/cjs/components/path/components/nodePath/nodePath.d.ts.map +1 -0
- package/dist/cjs/components/path/components/nodePath/nodePath.js +41 -0
- package/dist/cjs/components/path/index.d.ts +3 -0
- package/dist/cjs/components/path/index.d.ts.map +1 -0
- package/dist/cjs/components/path/index.js +18 -0
- package/dist/cjs/components/path/path.css +29 -0
- package/dist/cjs/components/path/path.d.ts +4 -0
- package/dist/cjs/components/path/path.d.ts.map +1 -0
- package/dist/cjs/components/path/path.js +118 -0
- package/dist/cjs/components/path/path.types.d.ts +74 -0
- package/dist/cjs/components/path/path.types.d.ts.map +1 -0
- package/dist/cjs/components/path/path.types.js +2 -0
- package/dist/cjs/components/plot/components/circle/circle.d.ts +6 -0
- package/dist/cjs/components/plot/components/circle/circle.d.ts.map +1 -0
- package/dist/cjs/components/plot/components/circle/circle.js +9 -0
- package/dist/cjs/components/plot/components/index.d.ts +4 -0
- package/dist/cjs/components/plot/components/index.d.ts.map +1 -0
- package/dist/cjs/components/plot/components/index.js +19 -0
- package/dist/cjs/components/plot/components/square/square.d.ts +6 -0
- package/dist/cjs/components/plot/components/square/square.d.ts.map +1 -0
- package/dist/cjs/components/plot/components/square/square.js +9 -0
- package/dist/cjs/components/plot/components/triangle/triangle.d.ts +6 -0
- package/dist/cjs/components/plot/components/triangle/triangle.d.ts.map +1 -0
- package/dist/cjs/components/plot/components/triangle/triangle.js +17 -0
- package/dist/cjs/components/plot/index.d.ts +3 -0
- package/dist/cjs/components/plot/index.d.ts.map +1 -0
- package/dist/cjs/components/plot/index.js +18 -0
- package/dist/cjs/components/plot/plot.css +12 -0
- package/dist/cjs/components/plot/plot.d.ts +39 -0
- package/dist/cjs/components/plot/plot.d.ts.map +1 -0
- package/dist/cjs/components/plot/plot.js +98 -0
- package/dist/cjs/components/plot/plot.types.d.ts +177 -0
- package/dist/cjs/components/plot/plot.types.d.ts.map +1 -0
- package/dist/cjs/components/plot/plot.types.js +54 -0
- package/dist/cjs/components/svgContainer/index.d.ts +2 -0
- package/dist/cjs/components/svgContainer/index.d.ts.map +1 -0
- package/dist/cjs/components/svgContainer/index.js +17 -0
- package/dist/cjs/components/svgContainer/svgContainer.d.ts +6 -0
- package/dist/cjs/components/svgContainer/svgContainer.d.ts.map +1 -0
- package/dist/cjs/components/svgContainer/svgContainer.js +37 -0
- package/dist/cjs/components/svgContainer/svgContainer.types.d.ts +38 -0
- package/dist/cjs/components/svgContainer/svgContainer.types.d.ts.map +1 -0
- package/dist/cjs/components/svgContainer/svgContainer.types.js +2 -0
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +15 -0
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +1 -0
- package/dist/cjs/components/svgContainer/utils/buildViewBox/buildViewBox.js +24 -0
- package/dist/cjs/components/svgContainer/utils/index.d.ts +2 -0
- package/dist/cjs/components/svgContainer/utils/index.d.ts.map +1 -0
- package/dist/cjs/components/svgContainer/utils/index.js +17 -0
- package/dist/cjs/components/tick/index.d.ts +3 -0
- package/dist/cjs/components/tick/index.d.ts.map +1 -0
- package/dist/cjs/components/tick/index.js +18 -0
- package/dist/cjs/components/tick/tick.d.ts +19 -0
- package/dist/cjs/components/tick/tick.d.ts.map +1 -0
- package/dist/cjs/components/tick/tick.js +23 -0
- package/dist/cjs/components/tick/tick.types.d.ts +51 -0
- package/dist/cjs/components/tick/tick.types.d.ts.map +1 -0
- package/dist/cjs/components/tick/tick.types.js +27 -0
- package/dist/cjs/components/zoomArea/components/HandlerIcon.d.ts +25 -0
- package/dist/cjs/components/zoomArea/components/HandlerIcon.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/components/HandlerIcon.js +26 -0
- package/dist/cjs/components/zoomArea/components/LineRenderer.d.ts +29 -0
- package/dist/cjs/components/zoomArea/components/LineRenderer.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/components/LineRenderer.js +15 -0
- package/dist/cjs/components/zoomArea/components/SelectionArea.d.ts +57 -0
- package/dist/cjs/components/zoomArea/components/SelectionArea.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/components/SelectionArea.js +53 -0
- package/dist/cjs/components/zoomArea/components/ZoomHandler.d.ts +42 -0
- package/dist/cjs/components/zoomArea/components/ZoomHandler.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/components/ZoomHandler.js +63 -0
- package/dist/cjs/components/zoomArea/components/index.d.ts +5 -0
- package/dist/cjs/components/zoomArea/components/index.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/components/index.js +12 -0
- package/dist/cjs/components/zoomArea/hooks/index.d.ts +6 -0
- package/dist/cjs/components/zoomArea/hooks/index.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/hooks/index.js +13 -0
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.d.ts +42 -0
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/hooks/useDragInteraction.js +114 -0
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.d.ts +30 -0
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/hooks/useKeyboardNavigation.js +126 -0
- package/dist/cjs/components/zoomArea/hooks/useResponsiveCanvas.d.ts +62 -0
- package/dist/cjs/components/zoomArea/hooks/useResponsiveCanvas.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/hooks/useResponsiveCanvas.js +74 -0
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.d.ts +24 -0
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/hooks/useZoomAreaFocus.js +32 -0
- package/dist/cjs/components/zoomArea/hooks/useZoomData.d.ts +33 -0
- package/dist/cjs/components/zoomArea/hooks/useZoomData.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/hooks/useZoomData.js +35 -0
- package/dist/cjs/components/zoomArea/index.d.ts +6 -0
- package/dist/cjs/components/zoomArea/index.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/index.js +21 -0
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.d.ts +28 -0
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/accessibilityLabels.js +65 -0
- package/dist/cjs/components/zoomArea/utils/index.d.ts +4 -0
- package/dist/cjs/components/zoomArea/utils/index.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/index.js +14 -0
- package/dist/cjs/components/zoomArea/utils/indexRounding.d.ts +63 -0
- package/dist/cjs/components/zoomArea/utils/indexRounding.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/indexRounding.js +74 -0
- package/dist/cjs/components/zoomArea/utils/interactionConfig.d.ts +10 -0
- package/dist/cjs/components/zoomArea/utils/interactionConfig.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/interactionConfig.js +27 -0
- package/dist/cjs/components/zoomArea/utils/pathGeneration.d.ts +57 -0
- package/dist/cjs/components/zoomArea/utils/pathGeneration.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/pathGeneration.js +117 -0
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.d.ts +60 -0
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/rangeAndPositions.js +83 -0
- package/dist/cjs/components/zoomArea/utils/selectionConfig.d.ts +10 -0
- package/dist/cjs/components/zoomArea/utils/selectionConfig.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/utils/selectionConfig.js +33 -0
- package/dist/cjs/components/zoomArea/zoomArea.d.ts +12 -0
- package/dist/cjs/components/zoomArea/zoomArea.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/zoomArea.js +84 -0
- package/dist/cjs/components/zoomArea/zoomArea.type.d.ts +153 -0
- package/dist/cjs/components/zoomArea/zoomArea.type.d.ts.map +1 -0
- package/dist/cjs/components/zoomArea/zoomArea.type.js +11 -0
- package/dist/cjs/hooks/index.d.ts +3 -0
- package/dist/cjs/hooks/index.d.ts.map +1 -0
- package/dist/cjs/hooks/index.js +18 -0
- package/dist/cjs/hooks/useFocus/useFocus.d.ts +15 -0
- package/dist/cjs/hooks/useFocus/useFocus.d.ts.map +1 -0
- package/dist/cjs/hooks/useFocus/useFocus.js +29 -0
- package/dist/cjs/hooks/useFocus/useFocus.types.d.ts +30 -0
- package/dist/cjs/hooks/useFocus/useFocus.types.d.ts.map +1 -0
- package/dist/cjs/hooks/useFocus/useFocus.types.js +2 -0
- package/dist/cjs/hooks/useHover/useHover.d.ts +13 -0
- package/dist/cjs/hooks/useHover/useHover.d.ts.map +1 -0
- package/dist/cjs/hooks/useHover/useHover.js +31 -0
- package/dist/cjs/hooks/useHover/useHover.types.d.ts +30 -0
- package/dist/cjs/hooks/useHover/useHover.types.d.ts.map +1 -0
- package/dist/cjs/hooks/useHover/useHover.types.js +2 -0
- package/dist/cjs/index.d.ts +4 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/types/canvas.type.d.ts +20 -0
- package/dist/cjs/types/canvas.type.d.ts.map +1 -0
- package/dist/cjs/types/canvas.type.js +14 -0
- package/dist/cjs/types/errors.type.d.ts +10 -0
- package/dist/cjs/types/errors.type.d.ts.map +1 -0
- package/dist/cjs/types/errors.type.js +6 -0
- package/dist/cjs/types/focusConfig.type.d.ts +29 -0
- package/dist/cjs/types/focusConfig.type.d.ts.map +1 -0
- package/dist/cjs/types/focusConfig.type.js +15 -0
- package/dist/cjs/types/index.d.ts +5 -0
- package/dist/cjs/types/index.d.ts.map +1 -0
- package/dist/cjs/types/index.js +20 -0
- package/dist/cjs/types/position.enum.d.ts +18 -0
- package/dist/cjs/types/position.enum.d.ts.map +1 -0
- package/dist/cjs/types/position.enum.js +20 -0
- package/dist/cjs/types/unit.enum.d.ts +12 -0
- package/dist/cjs/types/unit.enum.d.ts.map +1 -0
- package/dist/cjs/types/unit.enum.js +14 -0
- package/dist/cjs/types/valueFormatter.type.d.ts +7 -0
- package/dist/cjs/types/valueFormatter.type.d.ts.map +1 -0
- package/dist/cjs/types/valueFormatter.type.js +2 -0
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.d.ts +2 -0
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +1 -0
- package/dist/cjs/utils/ajustedTextSpace/ajustedTextSpace.js +19 -0
- package/dist/cjs/utils/buildErrors/buildErrors.d.ts +6 -0
- package/dist/cjs/utils/buildErrors/buildErrors.d.ts.map +1 -0
- package/dist/cjs/utils/buildErrors/buildErrors.js +12 -0
- package/dist/cjs/utils/buildTickValues/buildTickValues.d.ts +28 -0
- package/dist/cjs/utils/buildTickValues/buildTickValues.d.ts.map +1 -0
- package/dist/cjs/utils/buildTickValues/buildTickValues.js +52 -0
- package/dist/cjs/utils/calculateFocusOutline/calculateFocusOutline.d.ts +73 -0
- package/dist/cjs/utils/calculateFocusOutline/calculateFocusOutline.d.ts.map +1 -0
- package/dist/cjs/utils/calculateFocusOutline/calculateFocusOutline.js +85 -0
- package/dist/cjs/utils/classNames/classNames.d.ts +14 -0
- package/dist/cjs/utils/classNames/classNames.d.ts.map +1 -0
- package/dist/cjs/utils/classNames/classNames.js +29 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.d.ts +21 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +1 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.js +50 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +12 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +1 -0
- package/dist/cjs/utils/cssGradientToSvg/cssGradientToSvg.types.js +2 -0
- package/dist/cjs/utils/cursorNear/isNear.d.ts +2 -0
- package/dist/cjs/utils/cursorNear/isNear.d.ts.map +1 -0
- package/dist/cjs/utils/cursorNear/isNear.js +7 -0
- package/dist/cjs/utils/getAxisData/getAxisData.d.ts +2 -0
- package/dist/cjs/utils/getAxisData/getAxisData.d.ts.map +1 -0
- package/dist/cjs/utils/getAxisData/getAxisData.js +7 -0
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.d.ts +22 -0
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +1 -0
- package/dist/cjs/utils/getCanvasDimensions/getCanvasDimensions.js +101 -0
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.d.ts +10 -0
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.d.ts.map +1 -0
- package/dist/cjs/utils/getChildrenAttr/getChildrenAttr.js +19 -0
- package/dist/cjs/utils/getCoordinates/getCoordinates.d.ts +47 -0
- package/dist/cjs/utils/getCoordinates/getCoordinates.d.ts.map +1 -0
- package/dist/cjs/utils/getCoordinates/getCoordinates.js +95 -0
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.d.ts +12 -0
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.d.ts.map +1 -0
- package/dist/cjs/utils/getDataFingerprint/getDataFingerprint.js +14 -0
- package/dist/cjs/utils/getPoints/getPoints.d.ts +10 -0
- package/dist/cjs/utils/getPoints/getPoints.d.ts.map +1 -0
- package/dist/cjs/utils/getPoints/getPoints.js +53 -0
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +21 -0
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +1 -0
- package/dist/cjs/utils/getTickTextCoordinate/getTickTextCoordinates.js +35 -0
- package/dist/cjs/utils/getTicks/getTicks.d.ts +35 -0
- package/dist/cjs/utils/getTicks/getTicks.d.ts.map +1 -0
- package/dist/cjs/utils/getTicks/getTicks.js +54 -0
- package/dist/cjs/utils/index.d.ts +9 -0
- package/dist/cjs/utils/index.d.ts.map +1 -0
- package/dist/cjs/utils/index.js +24 -0
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +11 -0
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +1 -0
- package/dist/cjs/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +33 -0
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.d.ts +33 -0
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +1 -0
- package/dist/cjs/utils/pickCustomAttributes/pickCustomAttributes.js +50 -0
- package/dist/cjs/utils/shadowSvg/shadowSvg.d.ts +3 -0
- package/dist/cjs/utils/shadowSvg/shadowSvg.d.ts.map +1 -0
- package/dist/cjs/utils/shadowSvg/shadowSvg.js +8 -0
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.d.ts +35 -0
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.d.ts.map +1 -0
- package/dist/cjs/utils/shadowSvg/shadowSvg.types.js +2 -0
- package/dist/cjs/utils/textBound/textBound.d.ts +11 -0
- package/dist/cjs/utils/textBound/textBound.d.ts.map +1 -0
- package/dist/cjs/utils/textBound/textBound.js +26 -0
- package/dist/esm/charts/barChart/barChart.d.ts +9 -0
- package/dist/esm/charts/barChart/barChart.d.ts.map +1 -0
- package/dist/esm/charts/barChart/barChart.js +13 -0
- package/dist/esm/charts/barChart/barChart.type.d.ts +116 -0
- package/dist/esm/charts/barChart/barChart.type.d.ts.map +1 -0
- package/dist/esm/charts/barChart/barChart.type.js +1 -0
- package/dist/esm/charts/barChart/barChartStructure.d.ts +3 -0
- package/dist/esm/charts/barChart/barChartStructure.d.ts.map +1 -0
- package/dist/esm/charts/barChart/barChartStructure.js +64 -0
- package/dist/esm/charts/barChart/context/barChartContext.d.ts +3 -0
- package/dist/esm/charts/barChart/context/barChartContext.d.ts.map +1 -0
- package/dist/esm/charts/barChart/context/barChartContext.js +2 -0
- package/dist/esm/charts/barChart/context/buildBarContextValues.d.ts +24 -0
- package/dist/esm/charts/barChart/context/buildBarContextValues.d.ts.map +1 -0
- package/dist/esm/charts/barChart/context/buildBarContextValues.js +101 -0
- package/dist/esm/charts/barChart/fragments/barChartPath.d.ts +3 -0
- package/dist/esm/charts/barChart/fragments/barChartPath.d.ts.map +1 -0
- package/dist/esm/charts/barChart/fragments/barChartPath.js +32 -0
- package/dist/esm/charts/barChart/fragments/barChartSeparator.d.ts +4 -0
- package/dist/esm/charts/barChart/fragments/barChartSeparator.d.ts.map +1 -0
- package/dist/esm/charts/barChart/fragments/barChartSeparator.js +22 -0
- package/dist/esm/charts/barChart/fragments/barChartXAxis.d.ts +4 -0
- package/dist/esm/charts/barChart/fragments/barChartXAxis.d.ts.map +1 -0
- package/dist/esm/charts/barChart/fragments/barChartXAxis.js +27 -0
- package/dist/esm/charts/barChart/fragments/barChartYAxis.d.ts +4 -0
- package/dist/esm/charts/barChart/fragments/barChartYAxis.d.ts.map +1 -0
- package/dist/esm/charts/barChart/fragments/barChartYAxis.js +20 -0
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.d.ts +3 -0
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.d.ts.map +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/barContextData.js +41 -0
- package/dist/esm/charts/barChart/fragments/fixture/index.d.ts +2 -0
- package/dist/esm/charts/barChart/fragments/fixture/index.d.ts.map +1 -0
- package/dist/esm/charts/barChart/fragments/fixture/index.js +1 -0
- package/dist/esm/charts/barChart/index.d.ts +2 -0
- package/dist/esm/charts/barChart/index.d.ts.map +1 -0
- package/dist/esm/charts/barChart/index.js +1 -0
- package/dist/esm/charts/barChart/utils/countBarChildren.d.ts +3 -0
- package/dist/esm/charts/barChart/utils/countBarChildren.d.ts.map +1 -0
- package/dist/esm/charts/barChart/utils/countBarChildren.js +11 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.d.ts +17 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +1 -0
- package/dist/esm/charts/barChart/utils/getAxisExtraSpacing.js +116 -0
- package/dist/esm/charts/barChart/utils/getBarDataValue.d.ts +8 -0
- package/dist/esm/charts/barChart/utils/getBarDataValue.d.ts.map +1 -0
- package/dist/esm/charts/barChart/utils/getBarDataValue.js +19 -0
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.d.ts +9 -0
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +1 -0
- package/dist/esm/charts/barChart/utils/getRoundedBarMaxValue.js +11 -0
- package/dist/esm/charts/index.d.ts +4 -0
- package/dist/esm/charts/index.d.ts.map +1 -0
- package/dist/esm/charts/index.js +3 -0
- package/dist/esm/charts/lineChart/context/buildLineContextValue.d.ts +21 -0
- package/dist/esm/charts/lineChart/context/buildLineContextValue.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/context/buildLineContextValue.js +134 -0
- package/dist/esm/charts/lineChart/context/index.d.ts +3 -0
- package/dist/esm/charts/lineChart/context/index.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/context/index.js +2 -0
- package/dist/esm/charts/lineChart/context/lineChartContext.d.ts +3 -0
- package/dist/esm/charts/lineChart/context/lineChartContext.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/context/lineChartContext.js +2 -0
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.d.ts +43 -0
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/contextData.js +40 -0
- package/dist/esm/charts/lineChart/fragments/fixture/index.d.ts +2 -0
- package/dist/esm/charts/lineChart/fragments/fixture/index.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/fixture/index.js +1 -0
- package/dist/esm/charts/lineChart/fragments/index.d.ts +5 -0
- package/dist/esm/charts/lineChart/fragments/index.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/index.js +4 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.css +3 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.d.ts +5 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartPath.js +105 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.d.ts +5 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartProjection.js +18 -0
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.d.ts +4 -0
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartSeparator.js +22 -0
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.d.ts +4 -0
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartXAxis.js +37 -0
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.d.ts +3 -0
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/fragments/lineChartYAxis.js +41 -0
- package/dist/esm/charts/lineChart/hook/index.d.ts +4 -0
- package/dist/esm/charts/lineChart/hook/index.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/hook/index.js +3 -0
- package/dist/esm/charts/lineChart/hook/useAutoClick.d.ts +4 -0
- package/dist/esm/charts/lineChart/hook/useAutoClick.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/hook/useAutoClick.js +19 -0
- package/dist/esm/charts/lineChart/hook/useHover.d.ts +12 -0
- package/dist/esm/charts/lineChart/hook/useHover.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/hook/useHover.js +30 -0
- package/dist/esm/charts/lineChart/hook/useIndicator.d.ts +7 -0
- package/dist/esm/charts/lineChart/hook/useIndicator.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/hook/useIndicator.js +31 -0
- package/dist/esm/charts/lineChart/index.d.ts +2 -0
- package/dist/esm/charts/lineChart/index.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/index.js +1 -0
- package/dist/esm/charts/lineChart/lineChart.d.ts +9 -0
- package/dist/esm/charts/lineChart/lineChart.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/lineChart.js +13 -0
- package/dist/esm/charts/lineChart/lineChart.type.d.ts +164 -0
- package/dist/esm/charts/lineChart/lineChart.type.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/lineChart.type.js +1 -0
- package/dist/esm/charts/lineChart/lineChartStructure.d.ts +33 -0
- package/dist/esm/charts/lineChart/lineChartStructure.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/lineChartStructure.js +133 -0
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +14 -0
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/accessibilityTemplateProcessor.js +56 -0
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.d.ts +8 -0
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/findSurroundingNumber.js +25 -0
- package/dist/esm/charts/lineChart/utils/getDataValues.d.ts +8 -0
- package/dist/esm/charts/lineChart/utils/getDataValues.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/getDataValues.js +24 -0
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.d.ts +19 -0
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/getExtraSpacing.js +124 -0
- package/dist/esm/charts/lineChart/utils/getPathData.d.ts +18 -0
- package/dist/esm/charts/lineChart/utils/getPathData.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/getPathData.js +33 -0
- package/dist/esm/charts/lineChart/utils/getProjection.d.ts +33 -0
- package/dist/esm/charts/lineChart/utils/getProjection.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/getProjection.js +105 -0
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.d.ts +17 -0
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/getRoundedMaxValue.js +25 -0
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.d.ts +17 -0
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/handleNodesFocus.js +45 -0
- package/dist/esm/charts/lineChart/utils/index.d.ts +7 -0
- package/dist/esm/charts/lineChart/utils/index.d.ts.map +1 -0
- package/dist/esm/charts/lineChart/utils/index.js +6 -0
- package/dist/esm/charts/pieChart/context/buildPieContextValue.d.ts +16 -0
- package/dist/esm/charts/pieChart/context/buildPieContextValue.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/context/buildPieContextValue.js +45 -0
- package/dist/esm/charts/pieChart/context/index.d.ts +3 -0
- package/dist/esm/charts/pieChart/context/index.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/context/index.js +2 -0
- package/dist/esm/charts/pieChart/context/pieChartContext.d.ts +3 -0
- package/dist/esm/charts/pieChart/context/pieChartContext.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/context/pieChartContext.js +2 -0
- package/dist/esm/charts/pieChart/fragments/index.d.ts +3 -0
- package/dist/esm/charts/pieChart/fragments/index.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/fragments/index.js +2 -0
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.d.ts +4 -0
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartForeign.js +13 -0
- package/dist/esm/charts/pieChart/fragments/pieChartPath.d.ts +15 -0
- package/dist/esm/charts/pieChart/fragments/pieChartPath.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartPath.js +28 -0
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.d.ts +18 -0
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/fragments/pieChartSegment.js +33 -0
- package/dist/esm/charts/pieChart/index.d.ts +2 -0
- package/dist/esm/charts/pieChart/index.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/index.js +1 -0
- package/dist/esm/charts/pieChart/pieChart.d.ts +7 -0
- package/dist/esm/charts/pieChart/pieChart.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/pieChart.js +9 -0
- package/dist/esm/charts/pieChart/pieChart.type.d.ts +65 -0
- package/dist/esm/charts/pieChart/pieChart.type.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/pieChart.type.js +1 -0
- package/dist/esm/charts/pieChart/pieChartStructure.d.ts +34 -0
- package/dist/esm/charts/pieChart/pieChartStructure.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/pieChartStructure.js +65 -0
- package/dist/esm/charts/pieChart/utils/buildL.d.ts +13 -0
- package/dist/esm/charts/pieChart/utils/buildL.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/utils/buildL.js +9 -0
- package/dist/esm/charts/pieChart/utils/calculatePoint.d.ts +15 -0
- package/dist/esm/charts/pieChart/utils/calculatePoint.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/utils/calculatePoint.js +13 -0
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.d.ts +34 -0
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/utils/calculateSegmentPath.js +57 -0
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.d.ts +20 -0
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/utils/drawSegmentPath.js +41 -0
- package/dist/esm/charts/pieChart/utils/index.d.ts +3 -0
- package/dist/esm/charts/pieChart/utils/index.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/utils/index.js +2 -0
- package/dist/esm/charts/pieChart/utils/rotationDirection.d.ts +18 -0
- package/dist/esm/charts/pieChart/utils/rotationDirection.d.ts.map +1 -0
- package/dist/esm/charts/pieChart/utils/rotationDirection.js +13 -0
- package/dist/esm/components/axisChart/index.d.ts +3 -0
- package/dist/esm/components/axisChart/index.d.ts.map +1 -0
- package/dist/esm/components/axisChart/index.js +2 -0
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +18 -0
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +1 -0
- package/dist/esm/components/axisChart/utils/filterLineProps/filterLineProps.js +38 -0
- package/dist/esm/components/axisChart/utils/index.d.ts +2 -0
- package/dist/esm/components/axisChart/utils/index.d.ts.map +1 -0
- package/dist/esm/components/axisChart/utils/index.js +1 -0
- package/dist/esm/components/axisChart/xAxis/index.d.ts +3 -0
- package/dist/esm/components/axisChart/xAxis/index.d.ts.map +1 -0
- package/dist/esm/components/axisChart/xAxis/index.js +2 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.d.ts +11 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.d.ts.map +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.js +42 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.types.d.ts +40 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.types.d.ts.map +1 -0
- package/dist/esm/components/axisChart/xAxis/xAxis.types.js +1 -0
- package/dist/esm/components/axisChart/yAxis/index.d.ts +3 -0
- package/dist/esm/components/axisChart/yAxis/index.d.ts.map +1 -0
- package/dist/esm/components/axisChart/yAxis/index.js +2 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.d.ts +8 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.d.ts.map +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.js +34 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.types.d.ts +37 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.types.d.ts.map +1 -0
- package/dist/esm/components/axisChart/yAxis/yAxis.types.js +1 -0
- package/dist/esm/components/bar/bar.d.ts +4 -0
- package/dist/esm/components/bar/bar.d.ts.map +1 -0
- package/dist/esm/components/bar/bar.js +29 -0
- package/dist/esm/components/bar/bar.type.d.ts +32 -0
- package/dist/esm/components/bar/bar.type.d.ts.map +1 -0
- package/dist/esm/components/bar/bar.type.js +4 -0
- package/dist/esm/components/bar/fragments/barChartSegment.d.ts +3 -0
- package/dist/esm/components/bar/fragments/barChartSegment.d.ts.map +1 -0
- package/dist/esm/components/bar/fragments/barChartSegment.js +4 -0
- package/dist/esm/components/bar/index.d.ts +3 -0
- package/dist/esm/components/bar/index.d.ts.map +1 -0
- package/dist/esm/components/bar/index.js +2 -0
- package/dist/esm/components/bar/utils/buildD.d.ts +9 -0
- package/dist/esm/components/bar/utils/buildD.d.ts.map +1 -0
- package/dist/esm/components/bar/utils/buildD.js +115 -0
- package/dist/esm/components/bar/utils/getSegments.d.ts +6 -0
- package/dist/esm/components/bar/utils/getSegments.d.ts.map +1 -0
- package/dist/esm/components/bar/utils/getSegments.js +31 -0
- package/dist/esm/components/chartText/chartText.d.ts +18 -0
- package/dist/esm/components/chartText/chartText.d.ts.map +1 -0
- package/dist/esm/components/chartText/chartText.js +18 -0
- package/dist/esm/components/chartText/chartText.types.d.ts +57 -0
- package/dist/esm/components/chartText/chartText.types.d.ts.map +1 -0
- package/dist/esm/components/chartText/chartText.types.js +10 -0
- package/dist/esm/components/chartText/index.d.ts +3 -0
- package/dist/esm/components/chartText/index.d.ts.map +1 -0
- package/dist/esm/components/chartText/index.js +2 -0
- package/dist/esm/components/foreignObject/foreignObject.d.ts +4 -0
- package/dist/esm/components/foreignObject/foreignObject.d.ts.map +1 -0
- package/dist/esm/components/foreignObject/foreignObject.js +4 -0
- package/dist/esm/components/foreignObject/foreignObject.types.d.ts +10 -0
- package/dist/esm/components/foreignObject/foreignObject.types.d.ts.map +1 -0
- package/dist/esm/components/foreignObject/foreignObject.types.js +1 -0
- package/dist/esm/components/foreignObject/index.d.ts +3 -0
- package/dist/esm/components/foreignObject/index.d.ts.map +1 -0
- package/dist/esm/components/foreignObject/index.js +2 -0
- package/dist/esm/components/index.d.ts +11 -0
- package/dist/esm/components/index.d.ts.map +1 -0
- package/dist/esm/components/index.js +10 -0
- package/dist/esm/components/line/index.d.ts +3 -0
- package/dist/esm/components/line/index.d.ts.map +1 -0
- package/dist/esm/components/line/index.js +2 -0
- package/dist/esm/components/line/line.d.ts +9 -0
- package/dist/esm/components/line/line.d.ts.map +1 -0
- package/dist/esm/components/line/line.js +9 -0
- package/dist/esm/components/line/line.types.d.ts +43 -0
- package/dist/esm/components/line/line.types.d.ts.map +1 -0
- package/dist/esm/components/line/line.types.js +1 -0
- package/dist/esm/components/node/components/circle/circle.d.ts +6 -0
- package/dist/esm/components/node/components/circle/circle.d.ts.map +1 -0
- package/dist/esm/components/node/components/circle/circle.js +6 -0
- package/dist/esm/components/node/components/hexagon/hexagon.d.ts +6 -0
- package/dist/esm/components/node/components/hexagon/hexagon.d.ts.map +1 -0
- package/dist/esm/components/node/components/hexagon/hexagon.js +8 -0
- package/dist/esm/components/node/components/index.d.ts +1 -0
- package/dist/esm/components/node/components/index.d.ts.map +1 -0
- package/dist/esm/components/node/components/index.js +1 -0
- package/dist/esm/components/node/components/pentagon/pentagon.d.ts +6 -0
- package/dist/esm/components/node/components/pentagon/pentagon.d.ts.map +1 -0
- package/dist/esm/components/node/components/pentagon/pentagon.js +8 -0
- package/dist/esm/components/node/components/square/square.d.ts +6 -0
- package/dist/esm/components/node/components/square/square.d.ts.map +1 -0
- package/dist/esm/components/node/components/square/square.js +6 -0
- package/dist/esm/components/node/components/star/star.d.ts +6 -0
- package/dist/esm/components/node/components/star/star.d.ts.map +1 -0
- package/dist/esm/components/node/components/star/star.js +10 -0
- package/dist/esm/components/node/components/straight/straight.d.ts +6 -0
- package/dist/esm/components/node/components/straight/straight.d.ts.map +1 -0
- package/dist/esm/components/node/components/straight/straight.js +7 -0
- package/dist/esm/components/node/components/triangle/triangle.d.ts +6 -0
- package/dist/esm/components/node/components/triangle/triangle.d.ts.map +1 -0
- package/dist/esm/components/node/components/triangle/triangle.js +11 -0
- package/dist/esm/components/node/index.d.ts +3 -0
- package/dist/esm/components/node/index.d.ts.map +1 -0
- package/dist/esm/components/node/index.js +2 -0
- package/dist/esm/components/node/node.d.ts +6 -0
- package/dist/esm/components/node/node.d.ts.map +1 -0
- package/dist/esm/components/node/node.js +98 -0
- package/dist/esm/components/node/node.types.d.ts +101 -0
- package/dist/esm/components/node/node.types.d.ts.map +1 -0
- package/dist/esm/components/node/node.types.js +18 -0
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +2 -0
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +1 -0
- package/dist/esm/components/node/utils/calculateShapePoints/calculateShapePoints.js +18 -0
- package/dist/esm/components/path/components/nodePath/nodePath.d.ts +14 -0
- package/dist/esm/components/path/components/nodePath/nodePath.d.ts.map +1 -0
- package/dist/esm/components/path/components/nodePath/nodePath.js +38 -0
- package/dist/esm/components/path/index.d.ts +3 -0
- package/dist/esm/components/path/index.d.ts.map +1 -0
- package/dist/esm/components/path/index.js +2 -0
- package/dist/esm/components/path/path.css +29 -0
- package/dist/esm/components/path/path.d.ts +4 -0
- package/dist/esm/components/path/path.d.ts.map +1 -0
- package/dist/esm/components/path/path.js +115 -0
- package/dist/esm/components/path/path.types.d.ts +74 -0
- package/dist/esm/components/path/path.types.d.ts.map +1 -0
- package/dist/esm/components/path/path.types.js +1 -0
- package/dist/esm/components/plot/components/circle/circle.d.ts +6 -0
- package/dist/esm/components/plot/components/circle/circle.d.ts.map +1 -0
- package/dist/esm/components/plot/components/circle/circle.js +6 -0
- package/dist/esm/components/plot/components/index.d.ts +4 -0
- package/dist/esm/components/plot/components/index.d.ts.map +1 -0
- package/dist/esm/components/plot/components/index.js +3 -0
- package/dist/esm/components/plot/components/square/square.d.ts +6 -0
- package/dist/esm/components/plot/components/square/square.d.ts.map +1 -0
- package/dist/esm/components/plot/components/square/square.js +6 -0
- package/dist/esm/components/plot/components/triangle/triangle.d.ts +6 -0
- package/dist/esm/components/plot/components/triangle/triangle.d.ts.map +1 -0
- package/dist/esm/components/plot/components/triangle/triangle.js +14 -0
- package/dist/esm/components/plot/index.d.ts +3 -0
- package/dist/esm/components/plot/index.d.ts.map +1 -0
- package/dist/esm/components/plot/index.js +2 -0
- package/dist/esm/components/plot/plot.css +12 -0
- package/dist/esm/components/plot/plot.d.ts +39 -0
- package/dist/esm/components/plot/plot.d.ts.map +1 -0
- package/dist/esm/components/plot/plot.js +95 -0
- package/dist/esm/components/plot/plot.types.d.ts +177 -0
- package/dist/esm/components/plot/plot.types.d.ts.map +1 -0
- package/dist/esm/components/plot/plot.types.js +51 -0
- package/dist/esm/components/svgContainer/index.d.ts +2 -0
- package/dist/esm/components/svgContainer/index.d.ts.map +1 -0
- package/dist/esm/components/svgContainer/index.js +1 -0
- package/dist/esm/components/svgContainer/svgContainer.d.ts +6 -0
- package/dist/esm/components/svgContainer/svgContainer.d.ts.map +1 -0
- package/dist/esm/components/svgContainer/svgContainer.js +34 -0
- package/dist/esm/components/svgContainer/svgContainer.types.d.ts +38 -0
- package/dist/esm/components/svgContainer/svgContainer.types.d.ts.map +1 -0
- package/dist/esm/components/svgContainer/svgContainer.types.js +1 -0
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +15 -0
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +1 -0
- package/dist/esm/components/svgContainer/utils/buildViewBox/buildViewBox.js +20 -0
- package/dist/esm/components/svgContainer/utils/index.d.ts +2 -0
- package/dist/esm/components/svgContainer/utils/index.d.ts.map +1 -0
- package/dist/esm/components/svgContainer/utils/index.js +1 -0
- package/dist/esm/components/tick/index.d.ts +3 -0
- package/dist/esm/components/tick/index.d.ts.map +1 -0
- package/dist/esm/components/tick/index.js +2 -0
- package/dist/esm/components/tick/tick.d.ts +19 -0
- package/dist/esm/components/tick/tick.d.ts.map +1 -0
- package/dist/esm/components/tick/tick.js +19 -0
- package/dist/esm/components/tick/tick.types.d.ts +51 -0
- package/dist/esm/components/tick/tick.types.d.ts.map +1 -0
- package/dist/esm/components/tick/tick.types.js +24 -0
- package/dist/esm/components/zoomArea/components/HandlerIcon.d.ts +25 -0
- package/dist/esm/components/zoomArea/components/HandlerIcon.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/components/HandlerIcon.js +22 -0
- package/dist/esm/components/zoomArea/components/LineRenderer.d.ts +29 -0
- package/dist/esm/components/zoomArea/components/LineRenderer.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/components/LineRenderer.js +11 -0
- package/dist/esm/components/zoomArea/components/SelectionArea.d.ts +57 -0
- package/dist/esm/components/zoomArea/components/SelectionArea.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/components/SelectionArea.js +48 -0
- package/dist/esm/components/zoomArea/components/ZoomHandler.d.ts +42 -0
- package/dist/esm/components/zoomArea/components/ZoomHandler.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/components/ZoomHandler.js +59 -0
- package/dist/esm/components/zoomArea/components/index.d.ts +5 -0
- package/dist/esm/components/zoomArea/components/index.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/components/index.js +4 -0
- package/dist/esm/components/zoomArea/hooks/index.d.ts +6 -0
- package/dist/esm/components/zoomArea/hooks/index.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/hooks/index.js +5 -0
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.d.ts +42 -0
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/hooks/useDragInteraction.js +110 -0
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.d.ts +30 -0
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/hooks/useKeyboardNavigation.js +122 -0
- package/dist/esm/components/zoomArea/hooks/useResponsiveCanvas.d.ts +62 -0
- package/dist/esm/components/zoomArea/hooks/useResponsiveCanvas.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/hooks/useResponsiveCanvas.js +70 -0
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.d.ts +24 -0
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomAreaFocus.js +28 -0
- package/dist/esm/components/zoomArea/hooks/useZoomData.d.ts +33 -0
- package/dist/esm/components/zoomArea/hooks/useZoomData.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/hooks/useZoomData.js +31 -0
- package/dist/esm/components/zoomArea/index.d.ts +6 -0
- package/dist/esm/components/zoomArea/index.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/index.js +5 -0
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.d.ts +28 -0
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/accessibilityLabels.js +60 -0
- package/dist/esm/components/zoomArea/utils/index.d.ts +4 -0
- package/dist/esm/components/zoomArea/utils/index.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/index.js +3 -0
- package/dist/esm/components/zoomArea/utils/indexRounding.d.ts +63 -0
- package/dist/esm/components/zoomArea/utils/indexRounding.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/indexRounding.js +68 -0
- package/dist/esm/components/zoomArea/utils/interactionConfig.d.ts +10 -0
- package/dist/esm/components/zoomArea/utils/interactionConfig.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/interactionConfig.js +23 -0
- package/dist/esm/components/zoomArea/utils/pathGeneration.d.ts +57 -0
- package/dist/esm/components/zoomArea/utils/pathGeneration.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/pathGeneration.js +112 -0
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.d.ts +60 -0
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/rangeAndPositions.js +75 -0
- package/dist/esm/components/zoomArea/utils/selectionConfig.d.ts +10 -0
- package/dist/esm/components/zoomArea/utils/selectionConfig.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/utils/selectionConfig.js +29 -0
- package/dist/esm/components/zoomArea/zoomArea.d.ts +12 -0
- package/dist/esm/components/zoomArea/zoomArea.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/zoomArea.js +80 -0
- package/dist/esm/components/zoomArea/zoomArea.type.d.ts +153 -0
- package/dist/esm/components/zoomArea/zoomArea.type.d.ts.map +1 -0
- package/dist/esm/components/zoomArea/zoomArea.type.js +8 -0
- package/dist/esm/hooks/index.d.ts +3 -0
- package/dist/esm/hooks/index.d.ts.map +1 -0
- package/dist/esm/hooks/index.js +2 -0
- package/dist/esm/hooks/useFocus/useFocus.d.ts +15 -0
- package/dist/esm/hooks/useFocus/useFocus.d.ts.map +1 -0
- package/dist/esm/hooks/useFocus/useFocus.js +25 -0
- package/dist/esm/hooks/useFocus/useFocus.types.d.ts +30 -0
- package/dist/esm/hooks/useFocus/useFocus.types.d.ts.map +1 -0
- package/dist/esm/hooks/useFocus/useFocus.types.js +1 -0
- package/dist/esm/hooks/useHover/useHover.d.ts +13 -0
- package/dist/esm/hooks/useHover/useHover.d.ts.map +1 -0
- package/dist/esm/hooks/useHover/useHover.js +27 -0
- package/dist/esm/hooks/useHover/useHover.types.d.ts +30 -0
- package/dist/esm/hooks/useHover/useHover.types.d.ts.map +1 -0
- package/dist/esm/hooks/useHover/useHover.types.js +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/types/canvas.type.d.ts +20 -0
- package/dist/esm/types/canvas.type.d.ts.map +1 -0
- package/dist/esm/types/canvas.type.js +11 -0
- package/dist/esm/types/errors.type.d.ts +10 -0
- package/dist/esm/types/errors.type.d.ts.map +1 -0
- package/dist/esm/types/errors.type.js +3 -0
- package/dist/esm/types/focusConfig.type.d.ts +29 -0
- package/dist/esm/types/focusConfig.type.d.ts.map +1 -0
- package/dist/esm/types/focusConfig.type.js +12 -0
- package/dist/esm/types/index.d.ts +5 -0
- package/dist/esm/types/index.d.ts.map +1 -0
- package/dist/esm/types/index.js +4 -0
- package/dist/esm/types/position.enum.d.ts +18 -0
- package/dist/esm/types/position.enum.d.ts.map +1 -0
- package/dist/esm/types/position.enum.js +17 -0
- package/dist/esm/types/unit.enum.d.ts +12 -0
- package/dist/esm/types/unit.enum.d.ts.map +1 -0
- package/dist/esm/types/unit.enum.js +11 -0
- package/dist/esm/types/valueFormatter.type.d.ts +7 -0
- package/dist/esm/types/valueFormatter.type.d.ts.map +1 -0
- package/dist/esm/types/valueFormatter.type.js +1 -0
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.d.ts +2 -0
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +1 -0
- package/dist/esm/utils/ajustedTextSpace/ajustedTextSpace.js +15 -0
- package/dist/esm/utils/buildErrors/buildErrors.d.ts +6 -0
- package/dist/esm/utils/buildErrors/buildErrors.d.ts.map +1 -0
- package/dist/esm/utils/buildErrors/buildErrors.js +8 -0
- package/dist/esm/utils/buildTickValues/buildTickValues.d.ts +28 -0
- package/dist/esm/utils/buildTickValues/buildTickValues.d.ts.map +1 -0
- package/dist/esm/utils/buildTickValues/buildTickValues.js +47 -0
- package/dist/esm/utils/calculateFocusOutline/calculateFocusOutline.d.ts +73 -0
- package/dist/esm/utils/calculateFocusOutline/calculateFocusOutline.d.ts.map +1 -0
- package/dist/esm/utils/calculateFocusOutline/calculateFocusOutline.js +80 -0
- package/dist/esm/utils/classNames/classNames.d.ts +14 -0
- package/dist/esm/utils/classNames/classNames.d.ts.map +1 -0
- package/dist/esm/utils/classNames/classNames.js +25 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.d.ts +21 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.js +46 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +12 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +1 -0
- package/dist/esm/utils/cssGradientToSvg/cssGradientToSvg.types.js +1 -0
- package/dist/esm/utils/cursorNear/isNear.d.ts +2 -0
- package/dist/esm/utils/cursorNear/isNear.d.ts.map +1 -0
- package/dist/esm/utils/cursorNear/isNear.js +3 -0
- package/dist/esm/utils/getAxisData/getAxisData.d.ts +2 -0
- package/dist/esm/utils/getAxisData/getAxisData.d.ts.map +1 -0
- package/dist/esm/utils/getAxisData/getAxisData.js +3 -0
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.d.ts +22 -0
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +1 -0
- package/dist/esm/utils/getCanvasDimensions/getCanvasDimensions.js +97 -0
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.d.ts +10 -0
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.d.ts.map +1 -0
- package/dist/esm/utils/getChildrenAttr/getChildrenAttr.js +15 -0
- package/dist/esm/utils/getCoordinates/getCoordinates.d.ts +47 -0
- package/dist/esm/utils/getCoordinates/getCoordinates.d.ts.map +1 -0
- package/dist/esm/utils/getCoordinates/getCoordinates.js +90 -0
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.d.ts +12 -0
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.d.ts.map +1 -0
- package/dist/esm/utils/getDataFingerprint/getDataFingerprint.js +10 -0
- package/dist/esm/utils/getPoints/getPoints.d.ts +10 -0
- package/dist/esm/utils/getPoints/getPoints.d.ts.map +1 -0
- package/dist/esm/utils/getPoints/getPoints.js +49 -0
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +21 -0
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +1 -0
- package/dist/esm/utils/getTickTextCoordinate/getTickTextCoordinates.js +30 -0
- package/dist/esm/utils/getTicks/getTicks.d.ts +35 -0
- package/dist/esm/utils/getTicks/getTicks.d.ts.map +1 -0
- package/dist/esm/utils/getTicks/getTicks.js +49 -0
- package/dist/esm/utils/index.d.ts +9 -0
- package/dist/esm/utils/index.d.ts.map +1 -0
- package/dist/esm/utils/index.js +8 -0
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +11 -0
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +1 -0
- package/dist/esm/utils/parseStringToNumberPx.ts/parseStringToNumberPx.js +29 -0
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.d.ts +33 -0
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +1 -0
- package/dist/esm/utils/pickCustomAttributes/pickCustomAttributes.js +46 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.d.ts +3 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.d.ts.map +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.js +4 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.types.d.ts +35 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.types.d.ts.map +1 -0
- package/dist/esm/utils/shadowSvg/shadowSvg.types.js +1 -0
- package/dist/esm/utils/textBound/textBound.d.ts +11 -0
- package/dist/esm/utils/textBound/textBound.d.ts.map +1 -0
- package/dist/esm/utils/textBound/textBound.js +22 -0
- package/dist/kubit-ui-web-react-charts.cjs.js +10 -0
- package/dist/kubit-ui-web-react-charts.es.js +10 -0
- package/dist/kubit-ui-web-react-charts.umd.js +10 -0
- package/dist/react-charts.css +1 -0
- package/dist/types/assets/index.d.ts +2 -0
- package/dist/types/assets/index.d.ts.map +1 -0
- package/dist/types/charts/barChart/barChart.d.ts +9 -0
- package/dist/types/charts/barChart/barChart.d.ts.map +1 -0
- package/dist/types/charts/barChart/barChart.type.d.ts +116 -0
- package/dist/types/charts/barChart/barChart.type.d.ts.map +1 -0
- package/dist/types/charts/barChart/barChartStructure.d.ts +3 -0
- package/dist/types/charts/barChart/barChartStructure.d.ts.map +1 -0
- package/dist/types/charts/barChart/context/barChartContext.d.ts +3 -0
- package/dist/types/charts/barChart/context/barChartContext.d.ts.map +1 -0
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts +24 -0
- package/dist/types/charts/barChart/context/buildBarContextValues.d.ts.map +1 -0
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts +3 -0
- package/dist/types/charts/barChart/fragments/barChartPath.d.ts.map +1 -0
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts +4 -0
- package/dist/types/charts/barChart/fragments/barChartSeparator.d.ts.map +1 -0
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts +4 -0
- package/dist/types/charts/barChart/fragments/barChartXAxis.d.ts.map +1 -0
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts +4 -0
- package/dist/types/charts/barChart/fragments/barChartYAxis.d.ts.map +1 -0
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts +3 -0
- package/dist/types/charts/barChart/fragments/fixture/barContextData.d.ts.map +1 -0
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts +2 -0
- package/dist/types/charts/barChart/fragments/fixture/index.d.ts.map +1 -0
- package/dist/types/charts/barChart/index.d.ts +2 -0
- package/dist/types/charts/barChart/index.d.ts.map +1 -0
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts +3 -0
- package/dist/types/charts/barChart/utils/countBarChildren.d.ts.map +1 -0
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts +17 -0
- package/dist/types/charts/barChart/utils/getAxisExtraSpacing.d.ts.map +1 -0
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts +8 -0
- package/dist/types/charts/barChart/utils/getBarDataValue.d.ts.map +1 -0
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts +9 -0
- package/dist/types/charts/barChart/utils/getRoundedBarMaxValue.d.ts.map +1 -0
- package/dist/types/charts/index.d.ts +4 -0
- package/dist/types/charts/index.d.ts.map +1 -0
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts +21 -0
- package/dist/types/charts/lineChart/context/buildLineContextValue.d.ts.map +1 -0
- package/dist/types/charts/lineChart/context/index.d.ts +3 -0
- package/dist/types/charts/lineChart/context/index.d.ts.map +1 -0
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts +3 -0
- package/dist/types/charts/lineChart/context/lineChartContext.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts +43 -0
- package/dist/types/charts/lineChart/fragments/fixture/contextData.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts +2 -0
- package/dist/types/charts/lineChart/fragments/fixture/index.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/index.d.ts +5 -0
- package/dist/types/charts/lineChart/fragments/index.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts +4 -0
- package/dist/types/charts/lineChart/fragments/lineChartPath.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts +4 -0
- package/dist/types/charts/lineChart/fragments/lineChartProjection.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts +4 -0
- package/dist/types/charts/lineChart/fragments/lineChartSeparator.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts +4 -0
- package/dist/types/charts/lineChart/fragments/lineChartXAxis.d.ts.map +1 -0
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts +3 -0
- package/dist/types/charts/lineChart/fragments/lineChartYAxis.d.ts.map +1 -0
- package/dist/types/charts/lineChart/hook/index.d.ts +4 -0
- package/dist/types/charts/lineChart/hook/index.d.ts.map +1 -0
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts +4 -0
- package/dist/types/charts/lineChart/hook/useAutoClick.d.ts.map +1 -0
- package/dist/types/charts/lineChart/hook/useHover.d.ts +12 -0
- package/dist/types/charts/lineChart/hook/useHover.d.ts.map +1 -0
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts +7 -0
- package/dist/types/charts/lineChart/hook/useIndicator.d.ts.map +1 -0
- package/dist/types/charts/lineChart/index.d.ts +2 -0
- package/dist/types/charts/lineChart/index.d.ts.map +1 -0
- package/dist/types/charts/lineChart/lineChart.d.ts +9 -0
- package/dist/types/charts/lineChart/lineChart.d.ts.map +1 -0
- package/dist/types/charts/lineChart/lineChart.type.d.ts +164 -0
- package/dist/types/charts/lineChart/lineChart.type.d.ts.map +1 -0
- package/dist/types/charts/lineChart/lineChartStructure.d.ts +33 -0
- package/dist/types/charts/lineChart/lineChartStructure.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts +14 -0
- package/dist/types/charts/lineChart/utils/accessibilityTemplateProcessor.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts +8 -0
- package/dist/types/charts/lineChart/utils/findSurroundingNumber.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts +8 -0
- package/dist/types/charts/lineChart/utils/getDataValues.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts +19 -0
- package/dist/types/charts/lineChart/utils/getExtraSpacing.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/getPathData.d.ts +18 -0
- package/dist/types/charts/lineChart/utils/getPathData.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/getProjection.d.ts +33 -0
- package/dist/types/charts/lineChart/utils/getProjection.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts +17 -0
- package/dist/types/charts/lineChart/utils/getRoundedMaxValue.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts +17 -0
- package/dist/types/charts/lineChart/utils/handleNodesFocus.d.ts.map +1 -0
- package/dist/types/charts/lineChart/utils/index.d.ts +7 -0
- package/dist/types/charts/lineChart/utils/index.d.ts.map +1 -0
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts +16 -0
- package/dist/types/charts/pieChart/context/buildPieContextValue.d.ts.map +1 -0
- package/dist/types/charts/pieChart/context/index.d.ts +3 -0
- package/dist/types/charts/pieChart/context/index.d.ts.map +1 -0
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts +3 -0
- package/dist/types/charts/pieChart/context/pieChartContext.d.ts.map +1 -0
- package/dist/types/charts/pieChart/fragments/index.d.ts +3 -0
- package/dist/types/charts/pieChart/fragments/index.d.ts.map +1 -0
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts +4 -0
- package/dist/types/charts/pieChart/fragments/pieChartForeign.d.ts.map +1 -0
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts +15 -0
- package/dist/types/charts/pieChart/fragments/pieChartPath.d.ts.map +1 -0
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts +18 -0
- package/dist/types/charts/pieChart/fragments/pieChartSegment.d.ts.map +1 -0
- package/dist/types/charts/pieChart/index.d.ts +2 -0
- package/dist/types/charts/pieChart/index.d.ts.map +1 -0
- package/dist/types/charts/pieChart/pieChart.d.ts +7 -0
- package/dist/types/charts/pieChart/pieChart.d.ts.map +1 -0
- package/dist/types/charts/pieChart/pieChart.type.d.ts +65 -0
- package/dist/types/charts/pieChart/pieChart.type.d.ts.map +1 -0
- package/dist/types/charts/pieChart/pieChartStructure.d.ts +34 -0
- package/dist/types/charts/pieChart/pieChartStructure.d.ts.map +1 -0
- package/dist/types/charts/pieChart/utils/buildL.d.ts +13 -0
- package/dist/types/charts/pieChart/utils/buildL.d.ts.map +1 -0
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts +15 -0
- package/dist/types/charts/pieChart/utils/calculatePoint.d.ts.map +1 -0
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts +34 -0
- package/dist/types/charts/pieChart/utils/calculateSegmentPath.d.ts.map +1 -0
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts +20 -0
- package/dist/types/charts/pieChart/utils/drawSegmentPath.d.ts.map +1 -0
- package/dist/types/charts/pieChart/utils/index.d.ts +3 -0
- package/dist/types/charts/pieChart/utils/index.d.ts.map +1 -0
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts +18 -0
- package/dist/types/charts/pieChart/utils/rotationDirection.d.ts.map +1 -0
- package/dist/types/components/axisChart/index.d.ts +3 -0
- package/dist/types/components/axisChart/index.d.ts.map +1 -0
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts +18 -0
- package/dist/types/components/axisChart/utils/filterLineProps/filterLineProps.d.ts.map +1 -0
- package/dist/types/components/axisChart/utils/index.d.ts +2 -0
- package/dist/types/components/axisChart/utils/index.d.ts.map +1 -0
- package/dist/types/components/axisChart/xAxis/index.d.ts +3 -0
- package/dist/types/components/axisChart/xAxis/index.d.ts.map +1 -0
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts +11 -0
- package/dist/types/components/axisChart/xAxis/xAxis.d.ts.map +1 -0
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts +40 -0
- package/dist/types/components/axisChart/xAxis/xAxis.types.d.ts.map +1 -0
- package/dist/types/components/axisChart/yAxis/index.d.ts +3 -0
- package/dist/types/components/axisChart/yAxis/index.d.ts.map +1 -0
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts +8 -0
- package/dist/types/components/axisChart/yAxis/yAxis.d.ts.map +1 -0
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts +37 -0
- package/dist/types/components/axisChart/yAxis/yAxis.types.d.ts.map +1 -0
- package/dist/types/components/bar/bar.d.ts +4 -0
- package/dist/types/components/bar/bar.d.ts.map +1 -0
- package/dist/types/components/bar/bar.type.d.ts +32 -0
- package/dist/types/components/bar/bar.type.d.ts.map +1 -0
- package/dist/types/components/bar/fragments/barChartSegment.d.ts +3 -0
- package/dist/types/components/bar/fragments/barChartSegment.d.ts.map +1 -0
- package/dist/types/components/bar/index.d.ts +3 -0
- package/dist/types/components/bar/index.d.ts.map +1 -0
- package/dist/types/components/bar/utils/buildD.d.ts +9 -0
- package/dist/types/components/bar/utils/buildD.d.ts.map +1 -0
- package/dist/types/components/bar/utils/getSegments.d.ts +6 -0
- package/dist/types/components/bar/utils/getSegments.d.ts.map +1 -0
- package/dist/types/components/chartText/chartText.d.ts +18 -0
- package/dist/types/components/chartText/chartText.d.ts.map +1 -0
- package/dist/types/components/chartText/chartText.types.d.ts +57 -0
- package/dist/types/components/chartText/chartText.types.d.ts.map +1 -0
- package/dist/types/components/chartText/index.d.ts +3 -0
- package/dist/types/components/chartText/index.d.ts.map +1 -0
- package/dist/types/components/foreignObject/foreignObject.d.ts +4 -0
- package/dist/types/components/foreignObject/foreignObject.d.ts.map +1 -0
- package/dist/types/components/foreignObject/foreignObject.types.d.ts +10 -0
- package/dist/types/components/foreignObject/foreignObject.types.d.ts.map +1 -0
- package/dist/types/components/foreignObject/index.d.ts +3 -0
- package/dist/types/components/foreignObject/index.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +11 -0
- package/dist/types/components/index.d.ts.map +1 -0
- package/dist/types/components/line/index.d.ts +3 -0
- package/dist/types/components/line/index.d.ts.map +1 -0
- package/dist/types/components/line/line.d.ts +9 -0
- package/dist/types/components/line/line.d.ts.map +1 -0
- package/dist/types/components/line/line.types.d.ts +43 -0
- package/dist/types/components/line/line.types.d.ts.map +1 -0
- package/dist/types/components/node/components/circle/circle.d.ts +6 -0
- package/dist/types/components/node/components/circle/circle.d.ts.map +1 -0
- package/dist/types/components/node/components/hexagon/hexagon.d.ts +6 -0
- package/dist/types/components/node/components/hexagon/hexagon.d.ts.map +1 -0
- package/dist/types/components/node/components/index.d.ts +1 -0
- package/dist/types/components/node/components/index.d.ts.map +1 -0
- package/dist/types/components/node/components/pentagon/pentagon.d.ts +6 -0
- package/dist/types/components/node/components/pentagon/pentagon.d.ts.map +1 -0
- package/dist/types/components/node/components/square/square.d.ts +6 -0
- package/dist/types/components/node/components/square/square.d.ts.map +1 -0
- package/dist/types/components/node/components/star/star.d.ts +6 -0
- package/dist/types/components/node/components/star/star.d.ts.map +1 -0
- package/dist/types/components/node/components/straight/straight.d.ts +6 -0
- package/dist/types/components/node/components/straight/straight.d.ts.map +1 -0
- package/dist/types/components/node/components/triangle/triangle.d.ts +6 -0
- package/dist/types/components/node/components/triangle/triangle.d.ts.map +1 -0
- package/dist/types/components/node/index.d.ts +3 -0
- package/dist/types/components/node/index.d.ts.map +1 -0
- package/dist/types/components/node/node.d.ts +6 -0
- package/dist/types/components/node/node.d.ts.map +1 -0
- package/dist/types/components/node/node.types.d.ts +101 -0
- package/dist/types/components/node/node.types.d.ts.map +1 -0
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts +2 -0
- package/dist/types/components/node/utils/calculateShapePoints/calculateShapePoints.d.ts.map +1 -0
- package/dist/types/components/path/components/nodePath/nodePath.d.ts +14 -0
- package/dist/types/components/path/components/nodePath/nodePath.d.ts.map +1 -0
- package/dist/types/components/path/index.d.ts +3 -0
- package/dist/types/components/path/index.d.ts.map +1 -0
- package/dist/types/components/path/path.d.ts +3 -0
- package/dist/types/components/path/path.d.ts.map +1 -0
- package/dist/types/components/path/path.types.d.ts +74 -0
- package/dist/types/components/path/path.types.d.ts.map +1 -0
- package/dist/types/components/plot/components/circle/circle.d.ts +6 -0
- package/dist/types/components/plot/components/circle/circle.d.ts.map +1 -0
- package/dist/types/components/plot/components/index.d.ts +4 -0
- package/dist/types/components/plot/components/index.d.ts.map +1 -0
- package/dist/types/components/plot/components/square/square.d.ts +6 -0
- package/dist/types/components/plot/components/square/square.d.ts.map +1 -0
- package/dist/types/components/plot/components/triangle/triangle.d.ts +6 -0
- package/dist/types/components/plot/components/triangle/triangle.d.ts.map +1 -0
- package/dist/types/components/plot/index.d.ts +3 -0
- package/dist/types/components/plot/index.d.ts.map +1 -0
- package/dist/types/components/plot/plot.d.ts +38 -0
- package/dist/types/components/plot/plot.d.ts.map +1 -0
- package/dist/types/components/plot/plot.types.d.ts +177 -0
- package/dist/types/components/plot/plot.types.d.ts.map +1 -0
- package/dist/types/components/svgContainer/index.d.ts +2 -0
- package/dist/types/components/svgContainer/index.d.ts.map +1 -0
- package/dist/types/components/svgContainer/svgContainer.d.ts +6 -0
- package/dist/types/components/svgContainer/svgContainer.d.ts.map +1 -0
- package/dist/types/components/svgContainer/svgContainer.types.d.ts +38 -0
- package/dist/types/components/svgContainer/svgContainer.types.d.ts.map +1 -0
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts +15 -0
- package/dist/types/components/svgContainer/utils/buildViewBox/buildViewBox.d.ts.map +1 -0
- package/dist/types/components/svgContainer/utils/index.d.ts +2 -0
- package/dist/types/components/svgContainer/utils/index.d.ts.map +1 -0
- package/dist/types/components/tick/index.d.ts +3 -0
- package/dist/types/components/tick/index.d.ts.map +1 -0
- package/dist/types/components/tick/tick.d.ts +19 -0
- package/dist/types/components/tick/tick.d.ts.map +1 -0
- package/dist/types/components/tick/tick.types.d.ts +51 -0
- package/dist/types/components/tick/tick.types.d.ts.map +1 -0
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts +25 -0
- package/dist/types/components/zoomArea/components/HandlerIcon.d.ts.map +1 -0
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts +29 -0
- package/dist/types/components/zoomArea/components/LineRenderer.d.ts.map +1 -0
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts +57 -0
- package/dist/types/components/zoomArea/components/SelectionArea.d.ts.map +1 -0
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts +42 -0
- package/dist/types/components/zoomArea/components/ZoomHandler.d.ts.map +1 -0
- package/dist/types/components/zoomArea/components/index.d.ts +5 -0
- package/dist/types/components/zoomArea/components/index.d.ts.map +1 -0
- package/dist/types/components/zoomArea/hooks/index.d.ts +6 -0
- package/dist/types/components/zoomArea/hooks/index.d.ts.map +1 -0
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts +42 -0
- package/dist/types/components/zoomArea/hooks/useDragInteraction.d.ts.map +1 -0
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts +30 -0
- package/dist/types/components/zoomArea/hooks/useKeyboardNavigation.d.ts.map +1 -0
- package/dist/types/components/zoomArea/hooks/useResponsiveCanvas.d.ts +62 -0
- package/dist/types/components/zoomArea/hooks/useResponsiveCanvas.d.ts.map +1 -0
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts +24 -0
- package/dist/types/components/zoomArea/hooks/useZoomAreaFocus.d.ts.map +1 -0
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts +33 -0
- package/dist/types/components/zoomArea/hooks/useZoomData.d.ts.map +1 -0
- package/dist/types/components/zoomArea/index.d.ts +6 -0
- package/dist/types/components/zoomArea/index.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts +28 -0
- package/dist/types/components/zoomArea/utils/accessibilityLabels.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/index.d.ts +4 -0
- package/dist/types/components/zoomArea/utils/index.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts +63 -0
- package/dist/types/components/zoomArea/utils/indexRounding.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts +10 -0
- package/dist/types/components/zoomArea/utils/interactionConfig.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts +57 -0
- package/dist/types/components/zoomArea/utils/pathGeneration.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts +60 -0
- package/dist/types/components/zoomArea/utils/rangeAndPositions.d.ts.map +1 -0
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts +10 -0
- package/dist/types/components/zoomArea/utils/selectionConfig.d.ts.map +1 -0
- package/dist/types/components/zoomArea/zoomArea.d.ts +12 -0
- package/dist/types/components/zoomArea/zoomArea.d.ts.map +1 -0
- package/dist/types/components/zoomArea/zoomArea.type.d.ts +153 -0
- package/dist/types/components/zoomArea/zoomArea.type.d.ts.map +1 -0
- package/dist/types/hooks/index.d.ts +3 -0
- package/dist/types/hooks/index.d.ts.map +1 -0
- package/dist/types/hooks/useFocus/useFocus.d.ts +15 -0
- package/dist/types/hooks/useFocus/useFocus.d.ts.map +1 -0
- package/dist/types/hooks/useFocus/useFocus.types.d.ts +30 -0
- package/dist/types/hooks/useFocus/useFocus.types.d.ts.map +1 -0
- package/dist/types/hooks/useHover/useHover.d.ts +13 -0
- package/dist/types/hooks/useHover/useHover.d.ts.map +1 -0
- package/dist/types/hooks/useHover/useHover.types.d.ts +30 -0
- package/dist/types/hooks/useHover/useHover.types.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/canvas.type.d.ts +20 -0
- package/dist/types/types/canvas.type.d.ts.map +1 -0
- package/dist/types/types/errors.type.d.ts +10 -0
- package/dist/types/types/errors.type.d.ts.map +1 -0
- package/dist/types/types/focusConfig.type.d.ts +29 -0
- package/dist/types/types/focusConfig.type.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +5 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/types/position.enum.d.ts +18 -0
- package/dist/types/types/position.enum.d.ts.map +1 -0
- package/dist/types/types/unit.enum.d.ts +12 -0
- package/dist/types/types/unit.enum.d.ts.map +1 -0
- package/dist/types/types/valueFormatter.type.d.ts +7 -0
- package/dist/types/types/valueFormatter.type.d.ts.map +1 -0
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts +2 -0
- package/dist/types/utils/ajustedTextSpace/ajustedTextSpace.d.ts.map +1 -0
- package/dist/types/utils/buildErrors/buildErrors.d.ts +6 -0
- package/dist/types/utils/buildErrors/buildErrors.d.ts.map +1 -0
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts +28 -0
- package/dist/types/utils/buildTickValues/buildTickValues.d.ts.map +1 -0
- package/dist/types/utils/calculateFocusOutline/calculateFocusOutline.d.ts +73 -0
- package/dist/types/utils/calculateFocusOutline/calculateFocusOutline.d.ts.map +1 -0
- package/dist/types/utils/classNames/classNames.d.ts +14 -0
- package/dist/types/utils/classNames/classNames.d.ts.map +1 -0
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts +21 -0
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.d.ts.map +1 -0
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts +12 -0
- package/dist/types/utils/cssGradientToSvg/cssGradientToSvg.types.d.ts.map +1 -0
- package/dist/types/utils/cursorNear/isNear.d.ts +2 -0
- package/dist/types/utils/cursorNear/isNear.d.ts.map +1 -0
- package/dist/types/utils/getAxisData/getAxisData.d.ts +2 -0
- package/dist/types/utils/getAxisData/getAxisData.d.ts.map +1 -0
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts +22 -0
- package/dist/types/utils/getCanvasDimensions/getCanvasDimensions.d.ts.map +1 -0
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts +10 -0
- package/dist/types/utils/getChildrenAttr/getChildrenAttr.d.ts.map +1 -0
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts +47 -0
- package/dist/types/utils/getCoordinates/getCoordinates.d.ts.map +1 -0
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts +12 -0
- package/dist/types/utils/getDataFingerprint/getDataFingerprint.d.ts.map +1 -0
- package/dist/types/utils/getPoints/getPoints.d.ts +10 -0
- package/dist/types/utils/getPoints/getPoints.d.ts.map +1 -0
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts +21 -0
- package/dist/types/utils/getTickTextCoordinate/getTickTextCoordinates.d.ts.map +1 -0
- package/dist/types/utils/getTicks/getTicks.d.ts +35 -0
- package/dist/types/utils/getTicks/getTicks.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +9 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts +11 -0
- package/dist/types/utils/parseStringToNumberPx.ts/parseStringToNumberPx.d.ts.map +1 -0
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts +33 -0
- package/dist/types/utils/pickCustomAttributes/pickCustomAttributes.d.ts.map +1 -0
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts +3 -0
- package/dist/types/utils/shadowSvg/shadowSvg.d.ts.map +1 -0
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts +35 -0
- package/dist/types/utils/shadowSvg/shadowSvg.types.d.ts.map +1 -0
- package/dist/types/utils/textBound/textBound.d.ts +11 -0
- package/dist/types/utils/textBound/textBound.d.ts.map +1 -0
- package/package.json +225 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo } from 'react';
|
|
3
|
+
import { SvgContainer } from '../../components/svgContainer/svgContainer';
|
|
4
|
+
import { buildViewBox } from '../../components/svgContainer/utils/buildViewBox/buildViewBox';
|
|
5
|
+
import { DefaultCanvasConfig } from '../../types/canvas.type';
|
|
6
|
+
import { parseStringToNumberPx } from '../../utils/parseStringToNumberPx.ts/parseStringToNumberPx';
|
|
7
|
+
import { buildPieContextValue } from './context/buildPieContextValue';
|
|
8
|
+
import { PieChartContext } from './context/pieChartContext';
|
|
9
|
+
/**
|
|
10
|
+
* Renders a pie chart component.
|
|
11
|
+
*
|
|
12
|
+
* @component
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <PieChart
|
|
16
|
+
* caption="Pie Chart"
|
|
17
|
+
* canvasConfig={DefaultCanvasConfig}
|
|
18
|
+
* dataTestId="pie-chart"
|
|
19
|
+
* width="100%"
|
|
20
|
+
* height="100%"
|
|
21
|
+
* classNames="pie-chart"
|
|
22
|
+
* data={chartData}
|
|
23
|
+
* >
|
|
24
|
+
* {chartChildren}
|
|
25
|
+
* </PieChart>
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* @param {PieChartProps} props - The props for the PieChart component.
|
|
29
|
+
* @param {string} props.caption - The caption for the pie chart.
|
|
30
|
+
* @param {DefaultCanvasConfig} props.canvasConfig - The canvas configuration for the pie chart.
|
|
31
|
+
* @param {string} props.dataTestId - The data test ID for the pie chart.
|
|
32
|
+
* @param {string} props.width - The width of the pie chart.
|
|
33
|
+
* @param {string} props.height - The height of the pie chart.
|
|
34
|
+
* @param {string} props.classNames - The class names for the pie chart.
|
|
35
|
+
* @param {ReactNode} props.children - The children components of the pie chart.
|
|
36
|
+
* @param {ChartData[]} props.data - The data for the pie chart.
|
|
37
|
+
* @returns {ReactElement} The rendered pie chart component.
|
|
38
|
+
*/
|
|
39
|
+
export const PieChartStructure = ({ ariaHidden, ariaLabel, canvasConfig = DefaultCanvasConfig, caption, children, classNames, data, dataTestId = 'pie-chart', halfChart, height = '100%', radius = '50%', role, tabIndex, width = '100%', ...props }) => {
|
|
40
|
+
// Destructure the canvas configuration to obtain width, height, and extra space.
|
|
41
|
+
const { extraSpace: canvasExtraSpace, height: canvasHeight, width: canvasWidth } = canvasConfig;
|
|
42
|
+
const parsedCanvasWidth = parseStringToNumberPx(canvasWidth);
|
|
43
|
+
const parsedCanvasHeight = parseStringToNumberPx(canvasHeight);
|
|
44
|
+
const parsedCanvasExtraSpace = canvasExtraSpace
|
|
45
|
+
? parseStringToNumberPx(canvasExtraSpace)
|
|
46
|
+
: undefined;
|
|
47
|
+
// Build the viewBox string based on canvas dimensions and extra space.
|
|
48
|
+
const viewBox = buildViewBox(parsedCanvasWidth, parsedCanvasHeight, parsedCanvasExtraSpace);
|
|
49
|
+
const contextValue = useMemo(() => {
|
|
50
|
+
return buildPieContextValue({
|
|
51
|
+
canvasHeight: parsedCanvasHeight,
|
|
52
|
+
canvasWidth: parsedCanvasWidth,
|
|
53
|
+
children,
|
|
54
|
+
halfChart,
|
|
55
|
+
});
|
|
56
|
+
}, [canvasHeight, canvasWidth, halfChart]);
|
|
57
|
+
return (_jsx(SvgContainer, { ariaHidden: ariaHidden, ariaLabel: ariaLabel, caption: caption, className: classNames, dataTestId: dataTestId, height: height, radius: radius, role: role, tabIndex: tabIndex, viewBox: viewBox, width: width, ...props, children: _jsx(PieChartContext.Provider, { value: {
|
|
58
|
+
...contextValue,
|
|
59
|
+
canvasHeight: parsedCanvasHeight,
|
|
60
|
+
canvasWidth: parsedCanvasWidth,
|
|
61
|
+
data,
|
|
62
|
+
dataTestId,
|
|
63
|
+
halfChart,
|
|
64
|
+
}, children: children }) }));
|
|
65
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface CoordinatesType {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
}
|
|
5
|
+
interface BuildLProps {
|
|
6
|
+
singleStroke?: boolean;
|
|
7
|
+
innerRadius: number;
|
|
8
|
+
innerEnd: CoordinatesType;
|
|
9
|
+
center: CoordinatesType;
|
|
10
|
+
}
|
|
11
|
+
export declare const buildL: ({ center, innerEnd, innerRadius, singleStroke, }: BuildLProps) => string | undefined;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=buildL.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildL.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/utils/buildL.ts"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,WAAW;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,eAAe,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,GAAI,kDAKpB,WAAW,KAAG,MAAM,GAAG,SAQzB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates the coordinates of a point on a circle given the center, radius, and angle.
|
|
3
|
+
* @param center - The coordinates of the center of the circle.
|
|
4
|
+
* @param radius - The radius of the circle.
|
|
5
|
+
* @param angle - The angle in radians.
|
|
6
|
+
* @returns The coordinates of the calculated point.
|
|
7
|
+
*/
|
|
8
|
+
export declare const calculatePoint: (center: {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
}, radius: number, angle: number) => {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=calculatePoint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculatePoint.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/utils/calculatePoint.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,EAChC,QAAQ,MAAM,EACd,OAAO,MAAM,KACZ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAKxB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates the coordinates of a point on a circle given the center, radius, and angle.
|
|
3
|
+
* @param center - The coordinates of the center of the circle.
|
|
4
|
+
* @param radius - The radius of the circle.
|
|
5
|
+
* @param angle - The angle in radians.
|
|
6
|
+
* @returns The coordinates of the calculated point.
|
|
7
|
+
*/
|
|
8
|
+
export const calculatePoint = (center, radius, angle) => {
|
|
9
|
+
return {
|
|
10
|
+
x: center.x + radius * Math.cos(angle),
|
|
11
|
+
y: center.y + radius * Math.sin(angle),
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type RotateDirection } from './rotationDirection';
|
|
2
|
+
interface CalculateSegmanentPathProps {
|
|
3
|
+
value: number;
|
|
4
|
+
total: number;
|
|
5
|
+
startAngle: React.MutableRefObject<number>;
|
|
6
|
+
canvasWidth: number;
|
|
7
|
+
canvasHeight: number;
|
|
8
|
+
innerRadius: number;
|
|
9
|
+
gap: number;
|
|
10
|
+
customRadius?: number | null;
|
|
11
|
+
singleStroke: boolean;
|
|
12
|
+
halfChart?: boolean;
|
|
13
|
+
rotateDirection?: (typeof RotateDirection)[keyof typeof RotateDirection];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Calculates the SVG path for a segment of a pie chart.
|
|
17
|
+
*
|
|
18
|
+
* @param {Object} params - The parameters for the segment path calculation.
|
|
19
|
+
* @param {number} params.value - The value of the segment.
|
|
20
|
+
* @param {number} params.total - The total value of all segments.
|
|
21
|
+
* @param {Object} params.startAngle - The starting angle for the segment.
|
|
22
|
+
* @param {number} params.canvasWidth - The width of the canvas.
|
|
23
|
+
* @param {number} params.canvasHeight - The height of the canvas.
|
|
24
|
+
* @param {number} params.innerRadius - The inner radius of the segment.
|
|
25
|
+
* @param {number} params.gap - The gap between segments.
|
|
26
|
+
* @param {number} [params.customRadius] - A custom radius for the segment.
|
|
27
|
+
* @param {boolean} params.singleStroke - Whether the segment is a single stroke.
|
|
28
|
+
* @param {boolean} params.halfChart - Whether the chart is a half chart.
|
|
29
|
+
* @param {string} params.rotateDirection - The direction of rotation for the segment.
|
|
30
|
+
* @returns {string} The SVG path for the segment.
|
|
31
|
+
*/
|
|
32
|
+
export declare const calculateSegmentPath: ({ canvasHeight, canvasWidth, customRadius, gap, halfChart, innerRadius, rotateDirection, singleStroke, startAngle, total, value, }: CalculateSegmanentPathProps) => string;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=calculateSegmentPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateSegmentPath.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/utils/calculateSegmentPath.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,qBAAqB,CAAC;AAE9E,UAAU,2BAA2B;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;CAC1E;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,oBAAoB,GAAI,oIAYlC,2BAA2B,KAAG,MAyChC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { calculatePoint } from './calculatePoint';
|
|
2
|
+
import { drawSegmentPath } from './drawSegmentPath';
|
|
3
|
+
import { rotationDirection } from './rotationDirection';
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the SVG path for a segment of a pie chart.
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} params - The parameters for the segment path calculation.
|
|
8
|
+
* @param {number} params.value - The value of the segment.
|
|
9
|
+
* @param {number} params.total - The total value of all segments.
|
|
10
|
+
* @param {Object} params.startAngle - The starting angle for the segment.
|
|
11
|
+
* @param {number} params.canvasWidth - The width of the canvas.
|
|
12
|
+
* @param {number} params.canvasHeight - The height of the canvas.
|
|
13
|
+
* @param {number} params.innerRadius - The inner radius of the segment.
|
|
14
|
+
* @param {number} params.gap - The gap between segments.
|
|
15
|
+
* @param {number} [params.customRadius] - A custom radius for the segment.
|
|
16
|
+
* @param {boolean} params.singleStroke - Whether the segment is a single stroke.
|
|
17
|
+
* @param {boolean} params.halfChart - Whether the chart is a half chart.
|
|
18
|
+
* @param {string} params.rotateDirection - The direction of rotation for the segment.
|
|
19
|
+
* @returns {string} The SVG path for the segment.
|
|
20
|
+
*/
|
|
21
|
+
export const calculateSegmentPath = ({ canvasHeight, canvasWidth, customRadius, gap, halfChart, innerRadius, rotateDirection, singleStroke, startAngle, total, value, }) => {
|
|
22
|
+
const segmentCanvasHeight = halfChart ? canvasHeight * 2 : canvasHeight;
|
|
23
|
+
const maxRadius = Math.min(canvasWidth, segmentCanvasHeight) / 2;
|
|
24
|
+
const radius = customRadius && customRadius < maxRadius ? customRadius : maxRadius;
|
|
25
|
+
const maxAngle = halfChart ? Math.PI : 2 * Math.PI; // ? 180deg : 360deg
|
|
26
|
+
const center = { x: canvasWidth / 2, y: halfChart ? canvasHeight : canvasHeight / 2 };
|
|
27
|
+
// Total * 2 is needed when a single stroke is used, to prevent the segment from being drawn as a full circle
|
|
28
|
+
const segmentTotal = singleStroke ? total * 2 : total;
|
|
29
|
+
const piePortion = (value * 100) / segmentTotal;
|
|
30
|
+
const angleEquivalent = (piePortion * maxAngle) / 100;
|
|
31
|
+
const gapAngle = gap / radius;
|
|
32
|
+
const { carryAngle, finalAngle, initialAngle } = rotationDirection({
|
|
33
|
+
angleEquivalent,
|
|
34
|
+
direction: rotateDirection,
|
|
35
|
+
gapAngle,
|
|
36
|
+
startAngle: startAngle.current,
|
|
37
|
+
});
|
|
38
|
+
startAngle.current = carryAngle;
|
|
39
|
+
const segmentAngle = (maxAngle * value) / segmentTotal;
|
|
40
|
+
const largeArcFlag = segmentAngle - gapAngle <= Math.PI ? '0' : '1';
|
|
41
|
+
const innerStart = calculatePoint(center, innerRadius, initialAngle);
|
|
42
|
+
const innerEnd = calculatePoint(center, innerRadius, finalAngle);
|
|
43
|
+
const outerStart = calculatePoint(center, radius, initialAngle);
|
|
44
|
+
const outerEnd = calculatePoint(center, radius, finalAngle);
|
|
45
|
+
return drawSegmentPath({
|
|
46
|
+
center,
|
|
47
|
+
innerEnd,
|
|
48
|
+
innerRadius,
|
|
49
|
+
innerStart,
|
|
50
|
+
largeArcFlag,
|
|
51
|
+
outerEnd,
|
|
52
|
+
outerStart,
|
|
53
|
+
radius,
|
|
54
|
+
rotateDirection,
|
|
55
|
+
singleStroke,
|
|
56
|
+
});
|
|
57
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RotateDirection } from './rotationDirection';
|
|
2
|
+
interface CoordinatesType {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
}
|
|
6
|
+
interface DrawSegmentPathProps {
|
|
7
|
+
center: CoordinatesType;
|
|
8
|
+
outerStart: CoordinatesType;
|
|
9
|
+
outerEnd: CoordinatesType;
|
|
10
|
+
innerStart: CoordinatesType;
|
|
11
|
+
innerEnd: CoordinatesType;
|
|
12
|
+
radius: number;
|
|
13
|
+
innerRadius: number;
|
|
14
|
+
singleStroke?: boolean;
|
|
15
|
+
largeArcFlag: string;
|
|
16
|
+
rotateDirection?: (typeof RotateDirection)[keyof typeof RotateDirection];
|
|
17
|
+
}
|
|
18
|
+
export declare const drawSegmentPath: ({ center, innerEnd, innerRadius, innerStart, largeArcFlag, outerEnd, outerStart, radius, rotateDirection, singleStroke, }: DrawSegmentPathProps) => string;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=drawSegmentPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawSegmentPath.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/utils/drawSegmentPath.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,UAAU,eAAe;IACvB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,oBAAoB;IAC5B,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,eAAe,CAAC;IAC1B,UAAU,EAAE,eAAe,CAAC;IAC5B,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;CAC1E;AAED,eAAO,MAAM,eAAe,GAAI,2HAW7B,oBAAoB,KAAG,MA2CzB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { buildL } from './buildL';
|
|
2
|
+
import { RotateDirection } from './rotationDirection';
|
|
3
|
+
export const drawSegmentPath = ({ center, innerEnd, innerRadius, innerStart, largeArcFlag, outerEnd, outerStart, radius, rotateDirection, singleStroke, }) => {
|
|
4
|
+
let M, A, L, m, AA, MR, AR, mR, AAR, Z;
|
|
5
|
+
if (rotateDirection === RotateDirection.CLOCKWISE) {
|
|
6
|
+
M = `M ${outerStart.x},${outerStart.y}`;
|
|
7
|
+
A = `A ${radius},${radius} 0 ${largeArcFlag} 1 ${outerEnd.x}, ${outerEnd.y}`;
|
|
8
|
+
L = buildL({ center, innerEnd: innerEnd, innerRadius, singleStroke });
|
|
9
|
+
m = singleStroke ? `M ${innerEnd.x},${innerEnd.y}` : undefined;
|
|
10
|
+
AA =
|
|
11
|
+
innerRadius > 0
|
|
12
|
+
? `A ${innerRadius},${innerRadius} 0 ${largeArcFlag} 0 ${innerStart.x},${innerStart.y}`
|
|
13
|
+
: undefined;
|
|
14
|
+
// mirror rounder value, needed for a single circle
|
|
15
|
+
MR = `M ${outerStart.x},${outerStart.y}`;
|
|
16
|
+
mR = `M ${innerEnd.x},${innerEnd.y}`;
|
|
17
|
+
AR = `A ${radius},${radius} 0 ${largeArcFlag} 0 ${outerEnd.x},${outerEnd.y}`;
|
|
18
|
+
AAR = `A ${innerRadius},${innerRadius} 0 ${largeArcFlag} 1 ${innerStart.x},${innerStart.y}`;
|
|
19
|
+
Z = singleStroke ? undefined : 'Z';
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
M = `M ${outerStart.x} ${outerStart.y}`;
|
|
23
|
+
A = `A ${radius},${radius} 0 ${largeArcFlag},0 ${outerEnd.x}, ${outerEnd.y}`;
|
|
24
|
+
L = buildL({ center, innerEnd, innerRadius, singleStroke });
|
|
25
|
+
m = singleStroke ? `M ${innerEnd.x},${innerEnd.y}` : undefined;
|
|
26
|
+
AA =
|
|
27
|
+
innerRadius > 0
|
|
28
|
+
? `A ${innerRadius}, ${innerRadius} 0 ${largeArcFlag},1 ${innerStart.x},${innerStart.y}`
|
|
29
|
+
: undefined;
|
|
30
|
+
// mirror rounder value, needed for a single circle
|
|
31
|
+
MR = `M ${outerStart.x},${outerStart.y}`;
|
|
32
|
+
mR = `M ${innerEnd.x},${innerEnd.y}`;
|
|
33
|
+
AR = `A ${radius},${radius} 0 ${largeArcFlag} 1 ${outerEnd.x},${outerEnd.y}`;
|
|
34
|
+
AAR = `A ${innerRadius},${innerRadius} 0 ${largeArcFlag} 0 ${innerStart.x},${innerStart.y}`;
|
|
35
|
+
Z = singleStroke ? undefined : 'Z';
|
|
36
|
+
}
|
|
37
|
+
// values
|
|
38
|
+
const base = [M, A, L, m, AA, Z];
|
|
39
|
+
const mirror = singleStroke ? [MR, AR, mR, AAR] : [];
|
|
40
|
+
return base.concat(mirror).filter(Boolean).join(' ');
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface RotateDirectionReturnValues {
|
|
2
|
+
initialAngle: number;
|
|
3
|
+
finalAngle: number;
|
|
4
|
+
carryAngle: number;
|
|
5
|
+
}
|
|
6
|
+
interface RotateDirectionProps {
|
|
7
|
+
startAngle: number;
|
|
8
|
+
angleEquivalent: number;
|
|
9
|
+
gapAngle: number;
|
|
10
|
+
direction?: (typeof RotateDirection)[keyof typeof RotateDirection];
|
|
11
|
+
}
|
|
12
|
+
export declare const RotateDirection: {
|
|
13
|
+
readonly CLOCKWISE: "CLOCKWISE";
|
|
14
|
+
readonly COUNTER_CLOCKWISE: "COUNTER_CLOCKWISE";
|
|
15
|
+
};
|
|
16
|
+
export declare const rotationDirection: ({ angleEquivalent, direction, gapAngle, startAngle, }: RotateDirectionProps) => RotateDirectionReturnValues;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=rotationDirection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotationDirection.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/utils/rotationDirection.ts"],"names":[],"mappings":"AAAA,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,oBAAoB;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;CACpE;AAED,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,eAAO,MAAM,iBAAiB,GAAI,uDAK/B,oBAAoB,KAAG,2BASzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export const RotateDirection = {
|
|
2
|
+
CLOCKWISE: 'CLOCKWISE',
|
|
3
|
+
COUNTER_CLOCKWISE: 'COUNTER_CLOCKWISE',
|
|
4
|
+
};
|
|
5
|
+
export const rotationDirection = ({ angleEquivalent, direction, gapAngle, startAngle, }) => {
|
|
6
|
+
const clockDir = direction === RotateDirection.CLOCKWISE;
|
|
7
|
+
const initialAngle = clockDir ? startAngle + gapAngle / 2 : startAngle - gapAngle / 2;
|
|
8
|
+
const finalAngle = clockDir
|
|
9
|
+
? startAngle + angleEquivalent - gapAngle / 2
|
|
10
|
+
: startAngle - angleEquivalent + gapAngle / 2;
|
|
11
|
+
const carryAngle = clockDir ? startAngle + angleEquivalent : startAngle - angleEquivalent;
|
|
12
|
+
return { carryAngle, finalAngle, initialAngle };
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/axisChart/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { LineProps } from '../../../../components/line/line.types';
|
|
2
|
+
/**
|
|
3
|
+
* Filters and extracts line-related properties from a given object.
|
|
4
|
+
*
|
|
5
|
+
* This utility function is designed to take a generic object `props` and extract from it
|
|
6
|
+
* properties that are relevant to rendering a line in SVG. It's particularly useful when
|
|
7
|
+
* you have a component that receives a mix of its own props and props that should be passed
|
|
8
|
+
* directly to a child `<Line>` component.
|
|
9
|
+
*
|
|
10
|
+
* @param props - The input object containing potential line properties.
|
|
11
|
+
* @returns An object containing only the properties relevant to a `<Line>` component.
|
|
12
|
+
*
|
|
13
|
+
* Note: The function uses a type assertion to treat the input `props` as any, allowing for
|
|
14
|
+
* flexible input types. However, this means the function assumes the caller has ensured that
|
|
15
|
+
* the input object contains properties compatible with `LineProps`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const filterLineProps: <T>(props: T) => LineProps;
|
|
18
|
+
//# sourceMappingURL=filterLineProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterLineProps.d.ts","sourceRoot":"","sources":["../../../../../../src/components/axisChart/utils/filterLineProps/filterLineProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAE9D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,OAAO,CAAC,KAAG,SAyC7C,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters and extracts line-related properties from a given object.
|
|
3
|
+
*
|
|
4
|
+
* This utility function is designed to take a generic object `props` and extract from it
|
|
5
|
+
* properties that are relevant to rendering a line in SVG. It's particularly useful when
|
|
6
|
+
* you have a component that receives a mix of its own props and props that should be passed
|
|
7
|
+
* directly to a child `<Line>` component.
|
|
8
|
+
*
|
|
9
|
+
* @param props - The input object containing potential line properties.
|
|
10
|
+
* @returns An object containing only the properties relevant to a `<Line>` component.
|
|
11
|
+
*
|
|
12
|
+
* Note: The function uses a type assertion to treat the input `props` as any, allowing for
|
|
13
|
+
* flexible input types. However, this means the function assumes the caller has ensured that
|
|
14
|
+
* the input object contains properties compatible with `LineProps`.
|
|
15
|
+
*/
|
|
16
|
+
export const filterLineProps = (props) => {
|
|
17
|
+
const { ariaLabel, className, dataTestId, opacity, stroke, strokeDasharray, strokeDashoffset, strokeLinecap, strokeLinejoin, strokeOpacity, strokeWidth, style, tabIndex, transform, x1, x2, y1, y2, } = props;
|
|
18
|
+
return {
|
|
19
|
+
ariaLabel,
|
|
20
|
+
className,
|
|
21
|
+
dataTestId,
|
|
22
|
+
opacity,
|
|
23
|
+
stroke,
|
|
24
|
+
strokeDasharray,
|
|
25
|
+
strokeDashoffset,
|
|
26
|
+
strokeLinecap,
|
|
27
|
+
strokeLinejoin,
|
|
28
|
+
strokeOpacity,
|
|
29
|
+
strokeWidth,
|
|
30
|
+
style,
|
|
31
|
+
tabIndex,
|
|
32
|
+
transform,
|
|
33
|
+
x1,
|
|
34
|
+
x2,
|
|
35
|
+
y1,
|
|
36
|
+
y2,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/axisChart/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './filterLineProps/filterLineProps';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/axisChart/xAxis/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { XAxisProps } from './xAxis.types';
|
|
3
|
+
/**
|
|
4
|
+
* Renders the X-axis of a chart, including tick marks and labels.
|
|
5
|
+
*
|
|
6
|
+
* This component dynamically calculates the position of each tick mark based on the provided `tickValues` and adjusts their positions to fit within the specified `canvasWidth`, taking into account any `extraSpace` margins.
|
|
7
|
+
*
|
|
8
|
+
* The component renders a `<g>` SVG element containing a `<Line>` component for the axis line and multiple `<Tick>` components for the tick marks and labels, adjusted for the canvas size and extra space.
|
|
9
|
+
*/
|
|
10
|
+
export declare const XAxis: FC<XAxisProps>;
|
|
11
|
+
//# sourceMappingURL=xAxis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xAxis.d.ts","sourceRoot":"","sources":["../../../../../src/components/axisChart/xAxis/xAxis.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAUhC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAqDhC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Line } from '../../../components/line/line';
|
|
3
|
+
import { Tick } from '../../../components/tick/tick';
|
|
4
|
+
import { DefaultCanvasConfig } from '../../../types/canvas.type';
|
|
5
|
+
import { Positions } from '../../../types/position.enum';
|
|
6
|
+
import { isNear } from '../../../utils/cursorNear/isNear';
|
|
7
|
+
import { pickCustomAttributes } from '../../../utils/pickCustomAttributes/pickCustomAttributes';
|
|
8
|
+
import { filterLineProps } from '../utils/filterLineProps/filterLineProps';
|
|
9
|
+
/**
|
|
10
|
+
* Renders the X-axis of a chart, including tick marks and labels.
|
|
11
|
+
*
|
|
12
|
+
* This component dynamically calculates the position of each tick mark based on the provided `tickValues` and adjusts their positions to fit within the specified `canvasWidth`, taking into account any `extraSpace` margins.
|
|
13
|
+
*
|
|
14
|
+
* The component renders a `<g>` SVG element containing a `<Line>` component for the axis line and multiple `<Tick>` components for the tick marks and labels, adjusted for the canvas size and extra space.
|
|
15
|
+
*/
|
|
16
|
+
export const XAxis = ({ canvasHeight = DefaultCanvasConfig.height, canvasWidth = DefaultCanvasConfig.width, cursor = 0, extraSpace = {
|
|
17
|
+
bottom: 0,
|
|
18
|
+
left: 0,
|
|
19
|
+
right: 0,
|
|
20
|
+
top: 0,
|
|
21
|
+
}, position = Positions.BOTTOM, showTickLines = false, tickLine, tickLineHover, tickText, tickValues = [], ...props }) => {
|
|
22
|
+
// Extract custom attributes for the g element
|
|
23
|
+
const customAttributes = pickCustomAttributes(props);
|
|
24
|
+
return (_jsxs("g", { ...customAttributes, children: [_jsx(Line, { ...filterLineProps(props) }), tickValues &&
|
|
25
|
+
tickValues.length > 0 &&
|
|
26
|
+
tickValues.map((tick, index) => {
|
|
27
|
+
const overrideTickLine = isNear(cursor, tick.position) && tickLineHover;
|
|
28
|
+
const tickLineProps = overrideTickLine ? { ...tickLine, ...tickLineHover } : tickLine;
|
|
29
|
+
const rotate = tickText?.transform === 'rotate'
|
|
30
|
+
? `rotate(-30, ${tick.position}, ${tickText.y})`
|
|
31
|
+
: undefined;
|
|
32
|
+
return (_jsx(Tick, { showTickLines: showTickLines, tick: tick, tickLine: {
|
|
33
|
+
...tickLineProps,
|
|
34
|
+
x1: tick.position,
|
|
35
|
+
x2: tick.position,
|
|
36
|
+
}, tickText: {
|
|
37
|
+
...tickText,
|
|
38
|
+
transform: rotate,
|
|
39
|
+
x: tick.position,
|
|
40
|
+
} }, `${index.toString()}`));
|
|
41
|
+
})] }));
|
|
42
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ChartTextProps } from '../../../components/chartText/chartText.types';
|
|
2
|
+
import type { LineProps } from '../../../components/line/line.types';
|
|
3
|
+
import type { TickData } from '../../../components/tick/tick.types';
|
|
4
|
+
import type { Positions } from '../../../types/position.enum';
|
|
5
|
+
/**
|
|
6
|
+
* Defines the properties for the XAxis component.
|
|
7
|
+
*
|
|
8
|
+
* @property {Positions} [position] - Specifies the position of the X-axis on the chart. Can be 'TOP' or 'BOTTOM'.
|
|
9
|
+
* @property {TickData[]} [tickValues] - An array of tick values to be displayed on the X-axis. Each tick is represented by a `TickData` object.
|
|
10
|
+
* @property {boolean} [showTickLines=true] - Determines whether tick lines should be displayed.
|
|
11
|
+
* @property {LineProps} [tickLine] - Custom properties for styling the tick lines.
|
|
12
|
+
* @property {Omit<ChartTextProps, 'y' | 'x' | 'dx' | 'dy'> & { top?: number; bottom?: number; }} [tickText] - Custom properties for styling the tick text, excluding position properties ('y', 'x', 'dx', 'dy') which are managed by the component. Additional properties `top` and `bottom` can be used to adjust the vertical position of the tick text.
|
|
13
|
+
* @property {number} [canvasWidth] - The width of the canvas on which the X-axis is rendered. This is used to calculate positioning and scaling.
|
|
14
|
+
* @property {number} [canvasHeight] - The height of the canvas on which the X-axis is rendered. This is used to calculate positioning and scaling.
|
|
15
|
+
* @property {{ left?: number; right?: number; top?: number; bottom?: number; }} [extraSpace] - Optional extra spacing around the X-axis to adjust its position within the canvas. Each property specifies the amount of space to add on each side.
|
|
16
|
+
*
|
|
17
|
+
* Extends `LineProps` for basic line styling properties.
|
|
18
|
+
*/
|
|
19
|
+
export interface XAxisProps extends LineProps {
|
|
20
|
+
position?: (typeof Positions)[keyof typeof Positions];
|
|
21
|
+
tickValues?: TickData[];
|
|
22
|
+
showTickLines?: boolean;
|
|
23
|
+
tickLine?: LineProps;
|
|
24
|
+
tickLineHover?: LineProps;
|
|
25
|
+
tickText?: Omit<ChartTextProps, 'dx' | 'dy' | 'transform'> & {
|
|
26
|
+
top?: number;
|
|
27
|
+
bottom?: number;
|
|
28
|
+
transform?: 'rotate';
|
|
29
|
+
};
|
|
30
|
+
canvasWidth?: number;
|
|
31
|
+
canvasHeight?: number;
|
|
32
|
+
extraSpace?: {
|
|
33
|
+
left?: number;
|
|
34
|
+
right?: number;
|
|
35
|
+
top?: number;
|
|
36
|
+
bottom?: number;
|
|
37
|
+
};
|
|
38
|
+
cursor?: number;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=xAxis.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xAxis.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/axisChart/xAxis/xAxis.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAEvD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,QAAQ,CAAC,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;IACtD,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,IAAI,GAAG,WAAW,CAAC,GAAG;QAC3D,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,QAAQ,CAAC;KACtB,CAAC;IAEF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IAEF,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/axisChart/yAxis/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { FC } from 'react';
|
|
2
|
+
import type { YAxisProps } from './yAxis.types';
|
|
3
|
+
/**
|
|
4
|
+
* Renders a Y-axis for a chart, including tick marks and labels.
|
|
5
|
+
* This component renders a `<g>` SVG element containing a `<Line>` component for the axis line and multiple `<Tick>` components for the tick marks and labels.
|
|
6
|
+
*/
|
|
7
|
+
export declare const YAxis: FC<YAxisProps>;
|
|
8
|
+
//# sourceMappingURL=yAxis.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yAxis.d.ts","sourceRoot":"","sources":["../../../../../src/components/axisChart/yAxis/yAxis.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAShC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,KAAK,EAAE,EAAE,CAAC,UAAU,CAgDhC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Line } from '../../../components/line/line';
|
|
3
|
+
import { Tick } from '../../../components/tick/tick';
|
|
4
|
+
import { Positions } from '../../../types/position.enum';
|
|
5
|
+
import { isNear } from '../../../utils/cursorNear/isNear';
|
|
6
|
+
import { pickCustomAttributes } from '../../../utils/pickCustomAttributes/pickCustomAttributes';
|
|
7
|
+
import { filterLineProps } from '../utils/filterLineProps/filterLineProps';
|
|
8
|
+
/**
|
|
9
|
+
* Renders a Y-axis for a chart, including tick marks and labels.
|
|
10
|
+
* This component renders a `<g>` SVG element containing a `<Line>` component for the axis line and multiple `<Tick>` components for the tick marks and labels.
|
|
11
|
+
*/
|
|
12
|
+
export const YAxis = ({ canvasWidth, cursor = 0, extraSpace = {
|
|
13
|
+
bottom: 0,
|
|
14
|
+
left: 0,
|
|
15
|
+
right: 0,
|
|
16
|
+
top: 0,
|
|
17
|
+
}, position = Positions.LEFT, showTickLines = true, tickLine, tickLineHover, tickText, tickValues = [], ...props }) => {
|
|
18
|
+
// Extract custom attributes for the g element
|
|
19
|
+
const customAttributes = pickCustomAttributes(props);
|
|
20
|
+
return (_jsxs("g", { ...customAttributes, children: [_jsx(Line, { ...filterLineProps(props) }), tickValues &&
|
|
21
|
+
tickValues.length > 0 &&
|
|
22
|
+
tickValues.map((tick, index) => {
|
|
23
|
+
const overrideTickLine = isNear(cursor, tick.position) && tickLineHover;
|
|
24
|
+
const tickLineProps = overrideTickLine ? { ...tickLine, ...tickLineHover } : tickLine;
|
|
25
|
+
const rotate = tickText?.transform === 'rotate'
|
|
26
|
+
? `rotate(-30, ${tickText.x}, ${tick.position})`
|
|
27
|
+
: undefined;
|
|
28
|
+
return (_jsx(Tick, { showTickLines: showTickLines, tick: tick, tickLine: {
|
|
29
|
+
...tickLineProps,
|
|
30
|
+
y1: tick.position,
|
|
31
|
+
y2: tick.position,
|
|
32
|
+
}, tickText: { ...tickText, transform: rotate, y: tick.position } }, `${index.toString()}`));
|
|
33
|
+
})] }));
|
|
34
|
+
};
|