@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,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getExtraSpacing = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const position_enum_1 = require("../../../types/position.enum");
|
|
6
|
+
const buildTickValues_1 = require("../../../utils/buildTickValues/buildTickValues");
|
|
7
|
+
const textBound_1 = require("../../../utils/textBound/textBound");
|
|
8
|
+
const lineChartXAxis_1 = require("../fragments/lineChartXAxis");
|
|
9
|
+
const lineChartYAxis_1 = require("../fragments/lineChartYAxis");
|
|
10
|
+
const getDataValues_1 = require("./getDataValues");
|
|
11
|
+
const getRoundedMaxValue_1 = require("./getRoundedMaxValue");
|
|
12
|
+
const handleLineChartXAxis = (child, data, xKey, ajustedX, viewBox, canvasHeight, canvasWidth) => {
|
|
13
|
+
const { position, tickText, tickValues, valueFormatter } = child.props;
|
|
14
|
+
const fontSize = tickText?.fontSize ?? 0;
|
|
15
|
+
const spaceFontSize = fontSize * ajustedX;
|
|
16
|
+
const xData = tickValues ? (0, getDataValues_1.getDataValues)(tickValues) : data.map(d => d[xKey]);
|
|
17
|
+
// Apply the valueFormatter if provided to get the actual rendered text width
|
|
18
|
+
const formattedXData = valueFormatter ? xData.map(valueFormatter) : xData;
|
|
19
|
+
const securityXSpace = (0, textBound_1.textBound)({
|
|
20
|
+
bound: 'width',
|
|
21
|
+
data: formattedXData,
|
|
22
|
+
fontSize,
|
|
23
|
+
svgHeight: `${canvasHeight}`,
|
|
24
|
+
svgWidth: `${canvasWidth}`,
|
|
25
|
+
viewBox,
|
|
26
|
+
});
|
|
27
|
+
const isBottomPosition = position === position_enum_1.Positions.BOTTOM;
|
|
28
|
+
const isTopPosition = position === position_enum_1.Positions.TOP;
|
|
29
|
+
const extraSpaceBottomY = isBottomPosition ? spaceFontSize + (tickText?.top ?? 0) : 0;
|
|
30
|
+
const extraSpaceTopY = isTopPosition ? spaceFontSize + (tickText?.bottom ?? 0) : 0;
|
|
31
|
+
const lineChartXPosition = (() => position || position_enum_1.Positions.BOTTOM)();
|
|
32
|
+
const getBreakAxis = () => {
|
|
33
|
+
if (tickValues?.numeric) {
|
|
34
|
+
return tickValues.numeric.breakAxis ?? 0;
|
|
35
|
+
}
|
|
36
|
+
return tickText?.custom?.breakAxis ?? 0;
|
|
37
|
+
};
|
|
38
|
+
const xBreakAxis = getBreakAxis();
|
|
39
|
+
return {
|
|
40
|
+
extraSpaceBottomY,
|
|
41
|
+
extraSpaceTopY,
|
|
42
|
+
lineChartXPosition,
|
|
43
|
+
securityXSpace,
|
|
44
|
+
xBreakAxis,
|
|
45
|
+
xData,
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const handleLineChartYAxis = (child, data, xKey, ajustedY, viewBox, canvasHeight, canvasWidth) => {
|
|
49
|
+
const { position, tickText, tickValues, valueFormatter } = child.props;
|
|
50
|
+
const fontSize = tickText?.fontSize ?? '0';
|
|
51
|
+
const spaceFontSize = fontSize * ajustedY;
|
|
52
|
+
const dataValues = tickValues ||
|
|
53
|
+
(0, buildTickValues_1.buildTickValues)([...new Set((0, getRoundedMaxValue_1.getYKeyRoundMaxValue)(data, xKey))]);
|
|
54
|
+
const yData = (0, getDataValues_1.getDataValues)(dataValues);
|
|
55
|
+
// Apply the valueFormatter if provided to get the actual rendered text width
|
|
56
|
+
const formattedYData = valueFormatter ? yData.map(valueFormatter) : yData;
|
|
57
|
+
const yAxisText = (0, textBound_1.textBound)({
|
|
58
|
+
bound: 'width',
|
|
59
|
+
data: formattedYData,
|
|
60
|
+
fontSize: fontSize,
|
|
61
|
+
svgHeight: `${canvasHeight}`,
|
|
62
|
+
svgWidth: `${canvasWidth}`,
|
|
63
|
+
viewBox,
|
|
64
|
+
});
|
|
65
|
+
const securityYSpace = spaceFontSize;
|
|
66
|
+
const isLeftPosition = position === position_enum_1.Positions.LEFT;
|
|
67
|
+
const isRightPosition = position === position_enum_1.Positions.RIGHT;
|
|
68
|
+
const extraSpaceLeftX = isLeftPosition ? yAxisText + (tickText?.right ?? 0) : 0;
|
|
69
|
+
const extraSpaceRightX = isRightPosition ? yAxisText + (tickText?.left ?? 0) : 0;
|
|
70
|
+
const lineChartYPosition = position || position_enum_1.Positions.LEFT;
|
|
71
|
+
const getBreakAxis = () => {
|
|
72
|
+
if (tickValues?.numeric) {
|
|
73
|
+
return tickValues.numeric.breakAxis ?? 0;
|
|
74
|
+
}
|
|
75
|
+
return tickText?.custom?.breakAxis ?? 0;
|
|
76
|
+
};
|
|
77
|
+
const yBreakAxis = getBreakAxis();
|
|
78
|
+
return {
|
|
79
|
+
extraSpaceLeftX,
|
|
80
|
+
extraSpaceRightX,
|
|
81
|
+
lineChartYPosition,
|
|
82
|
+
securityYSpace,
|
|
83
|
+
yAxisText,
|
|
84
|
+
yBreakAxis,
|
|
85
|
+
yData,
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* Calculates the extra spacing required for a line chart.
|
|
90
|
+
* @param {GetExtraSpacing} options - The options for calculating extra spacing.
|
|
91
|
+
* @returns {LineChartExtraSpacings} - The calculated extra spacings for the line chart.
|
|
92
|
+
*/
|
|
93
|
+
const getExtraSpacing = ({ ajustedX, ajustedY, canvasHeight, canvasWidth, children, data, viewBox, xKey, }) => {
|
|
94
|
+
let result = {
|
|
95
|
+
extraSpaceBottomY: 0,
|
|
96
|
+
extraSpaceLeftX: 0,
|
|
97
|
+
extraSpaceRightX: 0,
|
|
98
|
+
extraSpaceTopY: 0,
|
|
99
|
+
lineChartXPosition: position_enum_1.Positions.BOTTOM,
|
|
100
|
+
lineChartYPosition: position_enum_1.Positions.LEFT,
|
|
101
|
+
securityXSpace: 0,
|
|
102
|
+
securityYSpace: 0,
|
|
103
|
+
xAxisText: 0,
|
|
104
|
+
xBreakAxis: 0,
|
|
105
|
+
xData: [],
|
|
106
|
+
yAxisText: 0,
|
|
107
|
+
yBreakAxis: 0,
|
|
108
|
+
yData: [],
|
|
109
|
+
};
|
|
110
|
+
react_1.Children.forEach(children, (child) => {
|
|
111
|
+
if ((0, react_1.isValidElement)(child)) {
|
|
112
|
+
if (child.type === lineChartXAxis_1.LineChartXAxis) {
|
|
113
|
+
result = {
|
|
114
|
+
...result,
|
|
115
|
+
...handleLineChartXAxis(child, data, xKey, ajustedX, viewBox, canvasHeight, canvasWidth),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
else if (child.type === lineChartYAxis_1.LineChartYAxis) {
|
|
119
|
+
result = {
|
|
120
|
+
...result,
|
|
121
|
+
...handleLineChartYAxis(child, data, xKey, ajustedY, viewBox, canvasHeight, canvasWidth),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
return result;
|
|
127
|
+
};
|
|
128
|
+
exports.getExtraSpacing = getExtraSpacing;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
interface GetPathDataParamsType {
|
|
2
|
+
points: [number, number][];
|
|
3
|
+
curved?: boolean;
|
|
4
|
+
svgHeight: number;
|
|
5
|
+
extendToBottom?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Generates SVG path data from an array of points.
|
|
9
|
+
* @param points - An array of points, where each point is an array of two numbers representing the x and y coordinates.
|
|
10
|
+
* @param curved - A boolean indicating whether the path should be a cubic Bezier curve (true) or a straight line (false). Defaults to false.
|
|
11
|
+
* @param svgWidth - The width of the SVG container.
|
|
12
|
+
* @param svgHeight - The height of the SVG container.
|
|
13
|
+
* @param extendToBottom - A boolean indicating whether the path should extend to the bottom of the SVG container. Defaults to false.
|
|
14
|
+
* @returns The SVG path data as a string.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getPathData: ({ curved, extendToBottom, points, svgHeight, }: GetPathDataParamsType) => string;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=getPathData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPathData.d.ts","sourceRoot":"","sources":["../../../../../src/charts/lineChart/utils/getPathData.ts"],"names":[],"mappings":"AAAA,UAAU,qBAAqB;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GAAI,gDAKzB,qBAAqB,KAAG,MAwB1B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPathData = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generates SVG path data from an array of points.
|
|
6
|
+
* @param points - An array of points, where each point is an array of two numbers representing the x and y coordinates.
|
|
7
|
+
* @param curved - A boolean indicating whether the path should be a cubic Bezier curve (true) or a straight line (false). Defaults to false.
|
|
8
|
+
* @param svgWidth - The width of the SVG container.
|
|
9
|
+
* @param svgHeight - The height of the SVG container.
|
|
10
|
+
* @param extendToBottom - A boolean indicating whether the path should extend to the bottom of the SVG container. Defaults to false.
|
|
11
|
+
* @returns The SVG path data as a string.
|
|
12
|
+
*/
|
|
13
|
+
const getPathData = ({ curved = false, extendToBottom = false, points, svgHeight, }) => {
|
|
14
|
+
if (points.length === 0) {
|
|
15
|
+
return '';
|
|
16
|
+
}
|
|
17
|
+
const [firstPoint, ...remainingPoints] = points;
|
|
18
|
+
let pathData = `M ${firstPoint[0]} ${firstPoint[1]}`;
|
|
19
|
+
if (curved) {
|
|
20
|
+
pathData += remainingPoints.reduce((data, point, i) => {
|
|
21
|
+
const [x1, y1] = points[i];
|
|
22
|
+
const [x2, y2] = point;
|
|
23
|
+
const dx = (x2 - x1) * 0.3;
|
|
24
|
+
const controlPoint1 = [x1 + dx, y1];
|
|
25
|
+
const controlPoint2 = [x2 - dx, y2];
|
|
26
|
+
return `${data} C ${controlPoint1[0]} ${controlPoint1[1]}, ${controlPoint2[0]} ${controlPoint2[1]}, ${x2} ${y2}`;
|
|
27
|
+
}, '');
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
pathData += remainingPoints.reduce((data, point) => `${data} L ${point[0]} ${point[1]}`, '');
|
|
31
|
+
}
|
|
32
|
+
if (extendToBottom) {
|
|
33
|
+
pathData += ` L ${remainingPoints[remainingPoints.length - 1][0]} ${svgHeight} L ${firstPoint[0]} ${svgHeight} Z`;
|
|
34
|
+
}
|
|
35
|
+
return pathData;
|
|
36
|
+
};
|
|
37
|
+
exports.getPathData = getPathData;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
type PointType = Array<[number, number]>;
|
|
2
|
+
interface GetProjectionPropsType {
|
|
3
|
+
points: PointType;
|
|
4
|
+
curved?: boolean;
|
|
5
|
+
svgHeight: number;
|
|
6
|
+
upperProjection?: {
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
};
|
|
10
|
+
lowerProjection?: {
|
|
11
|
+
x?: number;
|
|
12
|
+
y?: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
interface GetProjectionReturnType {
|
|
16
|
+
shapePath: string;
|
|
17
|
+
upPath?: string;
|
|
18
|
+
downPath?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Generates the SVG path data for a line chart with optional upper and lower projections.
|
|
22
|
+
*
|
|
23
|
+
* @param {Object} params - The parameters for generating the projection.
|
|
24
|
+
* @param {PointType[]} params.points - The data points for the line chart.
|
|
25
|
+
* @param {boolean} params.curved - Whether the line should be curved.
|
|
26
|
+
* @param {number} params.svgHeight - The height of the SVG element.
|
|
27
|
+
* @param {ProjectionType} [params.upperProjection] - The upper projection data.
|
|
28
|
+
* @param {ProjectionType} [params.lowerProjection] - The lower projection data.
|
|
29
|
+
* @returns {GetProjectionReturnType} The generated SVG path data.
|
|
30
|
+
*/
|
|
31
|
+
export declare const getProjection: ({ curved, lowerProjection, points, svgHeight, upperProjection, }: GetProjectionPropsType) => GetProjectionReturnType;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=getProjection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getProjection.d.ts","sourceRoot":"","sources":["../../../../../src/charts/lineChart/utils/getProjection.ts"],"names":[],"mappings":"AAAA,KAAK,SAAS,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEzC,UAAU,sBAAsB;IAC9B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,eAAe,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC9C;AAED,UAAU,uBAAuB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAuBD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,GAAI,kEAM3B,sBAAsB,KAAG,uBA8E3B,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getProjection = void 0;
|
|
4
|
+
const addXProjection = (point, projection) => {
|
|
5
|
+
if (!projection) {
|
|
6
|
+
return point;
|
|
7
|
+
}
|
|
8
|
+
const isNegative = projection < 0;
|
|
9
|
+
const diff = Math.abs(projection);
|
|
10
|
+
const pointDiff = (point * diff) / 100;
|
|
11
|
+
return isNegative ? point - pointDiff : point + pointDiff;
|
|
12
|
+
};
|
|
13
|
+
const addYProjection = (point, svgHeight, projection) => {
|
|
14
|
+
if (!projection) {
|
|
15
|
+
return point;
|
|
16
|
+
}
|
|
17
|
+
const isNegative = projection < 0;
|
|
18
|
+
const diff = Math.abs(projection);
|
|
19
|
+
const ref = point === 0 ? svgHeight : point;
|
|
20
|
+
const pointDiff = (ref * diff) / 100;
|
|
21
|
+
return isNegative ? point + pointDiff : point - pointDiff;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Generates the SVG path data for a line chart with optional upper and lower projections.
|
|
25
|
+
*
|
|
26
|
+
* @param {Object} params - The parameters for generating the projection.
|
|
27
|
+
* @param {PointType[]} params.points - The data points for the line chart.
|
|
28
|
+
* @param {boolean} params.curved - Whether the line should be curved.
|
|
29
|
+
* @param {number} params.svgHeight - The height of the SVG element.
|
|
30
|
+
* @param {ProjectionType} [params.upperProjection] - The upper projection data.
|
|
31
|
+
* @param {ProjectionType} [params.lowerProjection] - The lower projection data.
|
|
32
|
+
* @returns {GetProjectionReturnType} The generated SVG path data.
|
|
33
|
+
*/
|
|
34
|
+
const getProjection = ({ curved, lowerProjection, points, svgHeight, upperProjection, }) => {
|
|
35
|
+
const hasProjections = upperProjection || lowerProjection;
|
|
36
|
+
if (points.length === 0 && !hasProjections) {
|
|
37
|
+
return { shapePath: '' };
|
|
38
|
+
}
|
|
39
|
+
const [firstPoint, ...remainingPoints] = points;
|
|
40
|
+
const startPath = `M ${firstPoint[0]} ${firstPoint[1]}`;
|
|
41
|
+
let shapePath = startPath;
|
|
42
|
+
let upPath = upperProjection ? startPath : undefined;
|
|
43
|
+
let downPath = lowerProjection ? startPath : undefined;
|
|
44
|
+
const upperData = [];
|
|
45
|
+
const lowerData = [];
|
|
46
|
+
remainingPoints.forEach(([x, y]) => {
|
|
47
|
+
const lineUp = upperProjection
|
|
48
|
+
? [addXProjection(x, upperProjection.x), addYProjection(y, svgHeight, upperProjection.y)]
|
|
49
|
+
: [x, y];
|
|
50
|
+
const lineDown = lowerProjection
|
|
51
|
+
? [
|
|
52
|
+
addXProjection(x, -(lowerProjection.x ?? 0)),
|
|
53
|
+
addYProjection(y, svgHeight, -(lowerProjection.y ?? 0)),
|
|
54
|
+
]
|
|
55
|
+
: [x, y];
|
|
56
|
+
upperData.push(lineUp);
|
|
57
|
+
lowerData.push(lineDown);
|
|
58
|
+
});
|
|
59
|
+
const hasAllProjections = upperProjection && lowerProjection;
|
|
60
|
+
const combinedData = hasAllProjections
|
|
61
|
+
? [...upperData, remainingPoints.at(-1), ...lowerData.reverse(), firstPoint]
|
|
62
|
+
: [...upperData, ...lowerData.reverse(), firstPoint];
|
|
63
|
+
if (curved) {
|
|
64
|
+
shapePath += combinedData.reduce((data, point, i) => {
|
|
65
|
+
const start = i === 0 ? firstPoint : combinedData[i - 1];
|
|
66
|
+
const [x1, y1] = start;
|
|
67
|
+
const [x2, y2] = point;
|
|
68
|
+
const dx = (x2 - x1) * 0.3;
|
|
69
|
+
const controlPoint1 = [x1 + dx, y1];
|
|
70
|
+
const controlPoint2 = [x2 - dx, y2];
|
|
71
|
+
return `${data} C ${controlPoint1[0]} ${controlPoint1[1]}, ${controlPoint2[0]} ${controlPoint2[1]}, ${x2} ${y2}`;
|
|
72
|
+
}, '');
|
|
73
|
+
if (upPath) {
|
|
74
|
+
upPath += upperData.reduce((data, point, i) => {
|
|
75
|
+
const start = i === 0 ? firstPoint : upperData[i - 1];
|
|
76
|
+
const [x1, y1] = start;
|
|
77
|
+
const [x2, y2] = point;
|
|
78
|
+
const dx = (x2 - x1) * 0.3;
|
|
79
|
+
const controlPoint1 = [x1 + dx, y1];
|
|
80
|
+
const controlPoint2 = [x2 - dx, y2];
|
|
81
|
+
return `${data} C ${controlPoint1[0]} ${controlPoint1[1]}, ${controlPoint2[0]} ${controlPoint2[1]}, ${x2} ${y2}`;
|
|
82
|
+
}, '');
|
|
83
|
+
}
|
|
84
|
+
if (downPath) {
|
|
85
|
+
downPath += lowerData.reverse().reduce((data, point, i) => {
|
|
86
|
+
const start = i === 0 ? firstPoint : lowerData[i - 1];
|
|
87
|
+
const [x1, y1] = start;
|
|
88
|
+
const [x2, y2] = point;
|
|
89
|
+
const dx = (x2 - x1) * 0.3;
|
|
90
|
+
const controlPoint1 = [x1 + dx, y1];
|
|
91
|
+
const controlPoint2 = [x2 - dx, y2];
|
|
92
|
+
return `${data} C ${controlPoint1[0]} ${controlPoint1[1]}, ${controlPoint2[0]} ${controlPoint2[1]}, ${x2} ${y2}`;
|
|
93
|
+
}, '');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
shapePath += combinedData.reduce((data, point) => `${data} L ${point?.[0]} ${point?.[1]}`, '');
|
|
98
|
+
if (upPath) {
|
|
99
|
+
upPath += upperData.reduce((data, point) => `${data} L ${point[0]} ${point[1]}`, '');
|
|
100
|
+
}
|
|
101
|
+
if (downPath) {
|
|
102
|
+
downPath += lowerData
|
|
103
|
+
.reverse()
|
|
104
|
+
.reduce((data, point) => `${data} L ${point[0]} ${point[1]}`, '');
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return { downPath, shapePath, upPath };
|
|
108
|
+
};
|
|
109
|
+
exports.getProjection = getProjection;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IDataPoint } from '../lineChart.type';
|
|
2
|
+
/**
|
|
3
|
+
* Extracts the maximum value from the data points that do not correspond to the provided key.
|
|
4
|
+
* The maximum value is rounded up to the nearest multiple of 10.
|
|
5
|
+
* @param data - The data points.
|
|
6
|
+
* @param key - The key to exclude in the data.
|
|
7
|
+
* @returns The rounded maximum value.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getRoundedMaxValue: (data: IDataPoint[], key: string) => number;
|
|
10
|
+
/**
|
|
11
|
+
* Returns an array of rounded maximum values for each yKey in the given data.
|
|
12
|
+
* @param data - The array of data points.
|
|
13
|
+
* @param xKey - The xKey used for filtering the data.
|
|
14
|
+
* @returns An array of rounded maximum values.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getYKeyRoundMaxValue: (data: IDataPoint[], xKey: string) => number[];
|
|
17
|
+
//# sourceMappingURL=getRoundedMaxValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRoundedMaxValue.d.ts","sourceRoot":"","sources":["../../../../../src/charts/lineChart/utils/getRoundedMaxValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,UAAU,EAAE,EAAE,KAAK,MAAM,KAAG,MASpE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,MAAM,UAAU,EAAE,EAAE,MAAM,MAAM,KAAG,MAAM,EAM7E,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getYKeyRoundMaxValue = exports.getRoundedMaxValue = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Extracts the maximum value from the data points that do not correspond to the provided key.
|
|
6
|
+
* The maximum value is rounded up to the nearest multiple of 10.
|
|
7
|
+
* @param data - The data points.
|
|
8
|
+
* @param key - The key to exclude in the data.
|
|
9
|
+
* @returns The rounded maximum value.
|
|
10
|
+
*/
|
|
11
|
+
const getRoundedMaxValue = (data, key) => {
|
|
12
|
+
const values = data.flatMap(point => Object.keys(point)
|
|
13
|
+
.filter(k => k !== key && typeof point[k] === 'number')
|
|
14
|
+
.map(k => point[k]));
|
|
15
|
+
const maxNumber = Math.max(...values);
|
|
16
|
+
return Math.ceil(maxNumber / 10) * 10;
|
|
17
|
+
};
|
|
18
|
+
exports.getRoundedMaxValue = getRoundedMaxValue;
|
|
19
|
+
/**
|
|
20
|
+
* Returns an array of rounded maximum values for each yKey in the given data.
|
|
21
|
+
* @param data - The array of data points.
|
|
22
|
+
* @param xKey - The xKey used for filtering the data.
|
|
23
|
+
* @returns An array of rounded maximum values.
|
|
24
|
+
*/
|
|
25
|
+
const getYKeyRoundMaxValue = (data, xKey) => {
|
|
26
|
+
return data.flatMap(point => Object.keys(point)
|
|
27
|
+
.filter(k => k !== xKey && typeof point[k] === 'number')
|
|
28
|
+
.map(k => point[k]));
|
|
29
|
+
};
|
|
30
|
+
exports.getYKeyRoundMaxValue = getYKeyRoundMaxValue;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface HandlerCoord {
|
|
2
|
+
x: string;
|
|
3
|
+
y: string;
|
|
4
|
+
}
|
|
5
|
+
interface HandleNodesFocusReturn {
|
|
6
|
+
mount: () => void;
|
|
7
|
+
unmount: () => void;
|
|
8
|
+
}
|
|
9
|
+
interface HandleNodesFocusProps {
|
|
10
|
+
ref: ParentNode;
|
|
11
|
+
nodes: SVGSVGElement[];
|
|
12
|
+
data: HandlerCoord[];
|
|
13
|
+
getNodeFocusInfo?: (info: HandlerCoord) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const handleNodesFocus: ({ data, getNodeFocusInfo, nodes, ref, }: HandleNodesFocusProps) => HandleNodesFocusReturn;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=handleNodesFocus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handleNodesFocus.d.ts","sourceRoot":"","sources":["../../../../../src/charts/lineChart/utils/handleNodesFocus.ts"],"names":[],"mappings":"AAAA,UAAU,YAAY;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,UAAU,qBAAqB;IAC7B,GAAG,EAAE,UAAU,CAAC;IAChB,KAAK,EAAE,aAAa,EAAE,CAAC;IACvB,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CACjD;AAED,eAAO,MAAM,gBAAgB,GAAI,yCAK9B,qBAAqB,KAAG,sBA8C1B,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.handleNodesFocus = void 0;
|
|
4
|
+
const handleNodesFocus = ({ data, getNodeFocusInfo, nodes, ref, }) => {
|
|
5
|
+
let refFocused = false;
|
|
6
|
+
let currentNode = undefined;
|
|
7
|
+
const g = ref.querySelector('[data-draw]');
|
|
8
|
+
//* callbacks
|
|
9
|
+
const handleKeyDown = (e) => {
|
|
10
|
+
if (refFocused) {
|
|
11
|
+
if (e.key === 'ArrowRight') {
|
|
12
|
+
currentNode =
|
|
13
|
+
currentNode === undefined || currentNode === nodes.length - 1 ? 0 : currentNode + 1;
|
|
14
|
+
nodes[currentNode].focus();
|
|
15
|
+
getNodeFocusInfo?.(data[currentNode]);
|
|
16
|
+
}
|
|
17
|
+
else if (e.key === 'ArrowLeft') {
|
|
18
|
+
currentNode =
|
|
19
|
+
currentNode === undefined || currentNode === 0 ? nodes.length - 1 : currentNode - 1;
|
|
20
|
+
nodes[currentNode].focus();
|
|
21
|
+
getNodeFocusInfo?.(data[currentNode]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const handleFocusin = () => {
|
|
26
|
+
refFocused = true;
|
|
27
|
+
};
|
|
28
|
+
const handleFocusout = () => {
|
|
29
|
+
refFocused = false;
|
|
30
|
+
};
|
|
31
|
+
const handleFocus = () => {
|
|
32
|
+
currentNode = undefined;
|
|
33
|
+
};
|
|
34
|
+
//* listeners
|
|
35
|
+
const mount = () => {
|
|
36
|
+
ref.addEventListener('focusin', handleFocusin);
|
|
37
|
+
ref.addEventListener('focusout', handleFocusout);
|
|
38
|
+
g?.addEventListener('focus', handleFocus);
|
|
39
|
+
window.addEventListener('keydown', (e) => handleKeyDown(e));
|
|
40
|
+
};
|
|
41
|
+
const unmount = () => {
|
|
42
|
+
ref.removeEventListener('focusin', handleFocusin);
|
|
43
|
+
ref.removeEventListener('focusout', handleFocusout);
|
|
44
|
+
g?.removeEventListener('focus', handleFocus);
|
|
45
|
+
window.removeEventListener('keydown', (e) => handleKeyDown(e));
|
|
46
|
+
};
|
|
47
|
+
return { mount, unmount };
|
|
48
|
+
};
|
|
49
|
+
exports.handleNodesFocus = handleNodesFocus;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { findSurroundingNumber, findClosestNumber } from './findSurroundingNumber';
|
|
2
|
+
export { getDataValues } from './getDataValues';
|
|
3
|
+
export { getExtraSpacing } from './getExtraSpacing';
|
|
4
|
+
export { getPathData } from './getPathData';
|
|
5
|
+
export { getProjection } from './getProjection';
|
|
6
|
+
export { getRoundedMaxValue, getYKeyRoundMaxValue } from './getRoundedMaxValue';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/charts/lineChart/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getYKeyRoundMaxValue = exports.getRoundedMaxValue = exports.getProjection = exports.getPathData = exports.getExtraSpacing = exports.getDataValues = exports.findClosestNumber = exports.findSurroundingNumber = void 0;
|
|
4
|
+
var findSurroundingNumber_1 = require("./findSurroundingNumber");
|
|
5
|
+
Object.defineProperty(exports, "findSurroundingNumber", { enumerable: true, get: function () { return findSurroundingNumber_1.findSurroundingNumber; } });
|
|
6
|
+
Object.defineProperty(exports, "findClosestNumber", { enumerable: true, get: function () { return findSurroundingNumber_1.findClosestNumber; } });
|
|
7
|
+
var getDataValues_1 = require("./getDataValues");
|
|
8
|
+
Object.defineProperty(exports, "getDataValues", { enumerable: true, get: function () { return getDataValues_1.getDataValues; } });
|
|
9
|
+
var getExtraSpacing_1 = require("./getExtraSpacing");
|
|
10
|
+
Object.defineProperty(exports, "getExtraSpacing", { enumerable: true, get: function () { return getExtraSpacing_1.getExtraSpacing; } });
|
|
11
|
+
var getPathData_1 = require("./getPathData");
|
|
12
|
+
Object.defineProperty(exports, "getPathData", { enumerable: true, get: function () { return getPathData_1.getPathData; } });
|
|
13
|
+
var getProjection_1 = require("./getProjection");
|
|
14
|
+
Object.defineProperty(exports, "getProjection", { enumerable: true, get: function () { return getProjection_1.getProjection; } });
|
|
15
|
+
var getRoundedMaxValue_1 = require("./getRoundedMaxValue");
|
|
16
|
+
Object.defineProperty(exports, "getRoundedMaxValue", { enumerable: true, get: function () { return getRoundedMaxValue_1.getRoundedMaxValue; } });
|
|
17
|
+
Object.defineProperty(exports, "getYKeyRoundMaxValue", { enumerable: true, get: function () { return getRoundedMaxValue_1.getYKeyRoundMaxValue; } });
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PieChartChildrenType, PieChartContextType } from '../pieChart.type';
|
|
2
|
+
interface BuildPieContextValueProps {
|
|
3
|
+
children: PieChartChildrenType;
|
|
4
|
+
canvasWidth: number;
|
|
5
|
+
canvasHeight: number;
|
|
6
|
+
halfChart?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Builds the context value for the PieChart component.
|
|
10
|
+
*
|
|
11
|
+
* @param {BuildPieContextValueProps} props - The props for building the context value.
|
|
12
|
+
* @returns {Omit<PieChartContextType, 'canvasHeight' | 'canvasWidth' | 'data'>} The context value.
|
|
13
|
+
*/
|
|
14
|
+
export declare const buildPieContextValue: ({ canvasHeight, canvasWidth, children, halfChart, }: BuildPieContextValueProps) => Omit<PieChartContextType, "canvasHeight" | "canvasWidth" | "data">;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=buildPieContextValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildPieContextValue.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/context/buildPieContextValue.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAElF,UAAU,yBAAyB;IACjC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,GAAI,qDAKlC,yBAAyB,KAAG,IAAI,CACjC,mBAAmB,EACnB,cAAc,GAAG,aAAa,GAAG,MAAM,CAsCxC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.buildPieContextValue = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const parseStringToNumberPx_1 = require("../../../utils/parseStringToNumberPx.ts/parseStringToNumberPx");
|
|
6
|
+
const pieChartPath_1 = require("../fragments/pieChartPath");
|
|
7
|
+
/**
|
|
8
|
+
* Builds the context value for the PieChart component.
|
|
9
|
+
*
|
|
10
|
+
* @param {BuildPieContextValueProps} props - The props for building the context value.
|
|
11
|
+
* @returns {Omit<PieChartContextType, 'canvasHeight' | 'canvasWidth' | 'data'>} The context value.
|
|
12
|
+
*/
|
|
13
|
+
const buildPieContextValue = ({ canvasHeight, canvasWidth, children, halfChart, }) => {
|
|
14
|
+
// Use the min inner radious of the paths to calculate the size
|
|
15
|
+
let minRadius = undefined;
|
|
16
|
+
let foreignObjectSize = undefined;
|
|
17
|
+
react_1.Children.forEach(children, (child) => {
|
|
18
|
+
if (!(0, react_1.isValidElement)(child)) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (child.type === pieChartPath_1.PieChartPath) {
|
|
22
|
+
const { innerRadius } = child.props;
|
|
23
|
+
if (!innerRadius) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const parsedInnerRadius = (0, parseStringToNumberPx_1.parseStringToNumberPx)(innerRadius);
|
|
27
|
+
if (!minRadius || parsedInnerRadius < minRadius) {
|
|
28
|
+
minRadius = parsedInnerRadius;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
if (minRadius) {
|
|
33
|
+
foreignObjectSize = minRadius * 2;
|
|
34
|
+
}
|
|
35
|
+
const sizeFixed = foreignObjectSize ?? 0;
|
|
36
|
+
const height = halfChart ? sizeFixed / 2 : sizeFixed;
|
|
37
|
+
const width = sizeFixed;
|
|
38
|
+
const x = canvasWidth / 2;
|
|
39
|
+
const y = halfChart ? canvasHeight : canvasHeight / 2;
|
|
40
|
+
return {
|
|
41
|
+
foreignObject: {
|
|
42
|
+
height,
|
|
43
|
+
width,
|
|
44
|
+
x: x - width / 2,
|
|
45
|
+
y: halfChart ? y - height : y - height / 2,
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.buildPieContextValue = buildPieContextValue;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PieChartContext = exports.buildPieContextValue = void 0;
|
|
4
|
+
var buildPieContextValue_1 = require("./buildPieContextValue");
|
|
5
|
+
Object.defineProperty(exports, "buildPieContextValue", { enumerable: true, get: function () { return buildPieContextValue_1.buildPieContextValue; } });
|
|
6
|
+
var pieChartContext_1 = require("./pieChartContext");
|
|
7
|
+
Object.defineProperty(exports, "PieChartContext", { enumerable: true, get: function () { return pieChartContext_1.PieChartContext; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pieChartContext.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/context/pieChartContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,eAAe,8CAA2C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PieChartPath = exports.PieChartForeign = void 0;
|
|
4
|
+
var pieChartForeign_1 = require("./pieChartForeign");
|
|
5
|
+
Object.defineProperty(exports, "PieChartForeign", { enumerable: true, get: function () { return pieChartForeign_1.PieChartForeign; } });
|
|
6
|
+
var pieChartPath_1 = require("./pieChartPath");
|
|
7
|
+
Object.defineProperty(exports, "PieChartPath", { enumerable: true, get: function () { return pieChartPath_1.PieChartPath; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pieChartForeign.d.ts","sourceRoot":"","sources":["../../../../../src/charts/pieChart/fragments/pieChartForeign.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAiC,MAAM,OAAO,CAAC;AAG/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAIzF,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,kBAAkB,CAuBlD,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PieChartForeign = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const foreignObject_1 = require("../../../components/foreignObject/foreignObject");
|
|
7
|
+
const pieChartContext_1 = require("../context/pieChartContext");
|
|
8
|
+
const PieChartForeign = ({ children, dataTestId: childDataTestId, height: childHeight, width: childWidth, x: childX, y: childY, ...props }) => {
|
|
9
|
+
const { dataTestId: canvasDataTestId, foreignObject } = (0, react_1.useContext)(pieChartContext_1.PieChartContext);
|
|
10
|
+
const width = !childWidth && foreignObject?.width ? foreignObject.width : childWidth;
|
|
11
|
+
const height = !childHeight && foreignObject?.height ? foreignObject.height : childHeight;
|
|
12
|
+
const x = !childX && foreignObject?.x ? foreignObject.x : childX;
|
|
13
|
+
const y = !childY && foreignObject?.y ? foreignObject.y : childY;
|
|
14
|
+
const dataTestId = !childDataTestId && canvasDataTestId ? `${canvasDataTestId}-foreign-object` : childDataTestId;
|
|
15
|
+
return ((0, jsx_runtime_1.jsx)(foreignObject_1.ForeignObject, { ...props, dataTestId: dataTestId, height: height, width: width, x: x, y: y, children: children }));
|
|
16
|
+
};
|
|
17
|
+
exports.PieChartForeign = PieChartForeign;
|