@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,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getChildrenAttr = void 0;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const getChildrenAttr = ({ attrName, children, originalValue, updateValue, }) => {
|
|
6
|
+
let combineString = '';
|
|
7
|
+
react_1.Children.toArray(children).forEach((child) => {
|
|
8
|
+
if ((0, react_1.isValidElement)(child)) {
|
|
9
|
+
const attrValue = child.props[attrName];
|
|
10
|
+
if (attrValue) {
|
|
11
|
+
combineString += attrValue;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
if (combineString !== originalValue) {
|
|
16
|
+
updateValue(combineString);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.getChildrenAttr = getChildrenAttr;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Positions } from '../../types/position.enum';
|
|
2
|
+
interface GetCoordinatesProps {
|
|
3
|
+
position: (typeof Positions)[keyof typeof Positions];
|
|
4
|
+
canvasHeight: number;
|
|
5
|
+
canvasWidth: number;
|
|
6
|
+
extraSpaceLeftX: number;
|
|
7
|
+
extraSpaceRightX: number;
|
|
8
|
+
extraSpaceTopY: number;
|
|
9
|
+
extraSpaceBottomY: number;
|
|
10
|
+
securityYSpace: number;
|
|
11
|
+
customBreakAxis: number;
|
|
12
|
+
}
|
|
13
|
+
interface GetCoordinatesReturn {
|
|
14
|
+
x1: number;
|
|
15
|
+
x2: number;
|
|
16
|
+
y1: number;
|
|
17
|
+
y2: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Calculates the X coordinates for drawing lines in a chart.
|
|
21
|
+
* @param position - The position of the line.
|
|
22
|
+
* @param canvasHeight - The height of the canvas.
|
|
23
|
+
* @param canvasWidth - The width of the canvas.
|
|
24
|
+
* @param extraSpaceLeftX - The extra space on the left side of the chart.
|
|
25
|
+
* @param extraSpaceRightX - The extra space on the right side of the chart.
|
|
26
|
+
* @param extraSpaceTopY - The extra space on the top side of the chart.
|
|
27
|
+
* @param extraSpaceBottomY - The extra space on the bottom side of the chart.
|
|
28
|
+
* @param customBreakAxis - The custom break axis value.
|
|
29
|
+
* @returns The X coordinates for drawing lines.
|
|
30
|
+
*/
|
|
31
|
+
export declare const getXCoordinates: ({ canvasHeight, canvasWidth, customBreakAxis, extraSpaceBottomY, extraSpaceLeftX, extraSpaceRightX, extraSpaceTopY, position, }: GetCoordinatesProps) => GetCoordinatesReturn;
|
|
32
|
+
/**
|
|
33
|
+
* Calculates the y-coordinates for drawing lines in a chart.
|
|
34
|
+
*
|
|
35
|
+
* @param position - The position of the line (RIGHT, CENTER, CUSTOM).
|
|
36
|
+
* @param canvasHeight - The height of the canvas.
|
|
37
|
+
* @param canvasWidth - The width of the canvas.
|
|
38
|
+
* @param extraSpaceLeftX - The extra space on the left side of the chart.
|
|
39
|
+
* @param extraSpaceRightX - The extra space on the right side of the chart.
|
|
40
|
+
* @param extraSpaceTopY - The extra space on the top of the chart.
|
|
41
|
+
* @param extraSpaceBottomY - The extra space on the bottom of the chart.
|
|
42
|
+
* @param customBreakAxis - The custom break axis position (used when position is CUSTOM).
|
|
43
|
+
* @returns The y-coordinates for drawing lines in the chart.
|
|
44
|
+
*/
|
|
45
|
+
export declare const getYCoordinates: ({ canvasHeight, canvasWidth, customBreakAxis, extraSpaceBottomY, extraSpaceLeftX, extraSpaceRightX, extraSpaceTopY, position, }: GetCoordinatesProps) => GetCoordinatesReturn;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=getCoordinates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getCoordinates.d.ts","sourceRoot":"","sources":["../../../../src/utils/getCoordinates/getCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;IACrD,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,oBAAoB;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAI,iIAS7B,mBAAmB,KAAG,oBA+BxB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,GAAI,iIAS7B,mBAAmB,KAAG,oBAgCxB,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getYCoordinates = exports.getXCoordinates = void 0;
|
|
4
|
+
const position_enum_1 = require("../../types/position.enum");
|
|
5
|
+
/**
|
|
6
|
+
* Calculates the X coordinates for drawing lines in a chart.
|
|
7
|
+
* @param position - The position of the line.
|
|
8
|
+
* @param canvasHeight - The height of the canvas.
|
|
9
|
+
* @param canvasWidth - The width of the canvas.
|
|
10
|
+
* @param extraSpaceLeftX - The extra space on the left side of the chart.
|
|
11
|
+
* @param extraSpaceRightX - The extra space on the right side of the chart.
|
|
12
|
+
* @param extraSpaceTopY - The extra space on the top side of the chart.
|
|
13
|
+
* @param extraSpaceBottomY - The extra space on the bottom side of the chart.
|
|
14
|
+
* @param customBreakAxis - The custom break axis value.
|
|
15
|
+
* @returns The X coordinates for drawing lines.
|
|
16
|
+
*/
|
|
17
|
+
const getXCoordinates = ({ canvasHeight, canvasWidth, customBreakAxis, extraSpaceBottomY, extraSpaceLeftX, extraSpaceRightX, extraSpaceTopY, position, }) => {
|
|
18
|
+
if (position === position_enum_1.Positions.TOP) {
|
|
19
|
+
return {
|
|
20
|
+
x1: extraSpaceLeftX,
|
|
21
|
+
x2: canvasWidth - extraSpaceRightX,
|
|
22
|
+
y1: extraSpaceTopY,
|
|
23
|
+
y2: extraSpaceTopY,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (position === position_enum_1.Positions.CENTER) {
|
|
27
|
+
return {
|
|
28
|
+
x1: extraSpaceLeftX,
|
|
29
|
+
x2: canvasWidth - extraSpaceRightX,
|
|
30
|
+
y1: canvasHeight / 2,
|
|
31
|
+
y2: canvasHeight / 2,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
if (position === position_enum_1.Positions.CUSTOM) {
|
|
35
|
+
return {
|
|
36
|
+
x1: extraSpaceLeftX,
|
|
37
|
+
x2: canvasWidth - extraSpaceRightX,
|
|
38
|
+
y1: customBreakAxis,
|
|
39
|
+
y2: customBreakAxis,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
x1: extraSpaceLeftX,
|
|
44
|
+
x2: canvasWidth - extraSpaceRightX,
|
|
45
|
+
y1: canvasHeight - extraSpaceBottomY,
|
|
46
|
+
y2: canvasHeight - extraSpaceBottomY,
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.getXCoordinates = getXCoordinates;
|
|
50
|
+
/**
|
|
51
|
+
* Calculates the y-coordinates for drawing lines in a chart.
|
|
52
|
+
*
|
|
53
|
+
* @param position - The position of the line (RIGHT, CENTER, CUSTOM).
|
|
54
|
+
* @param canvasHeight - The height of the canvas.
|
|
55
|
+
* @param canvasWidth - The width of the canvas.
|
|
56
|
+
* @param extraSpaceLeftX - The extra space on the left side of the chart.
|
|
57
|
+
* @param extraSpaceRightX - The extra space on the right side of the chart.
|
|
58
|
+
* @param extraSpaceTopY - The extra space on the top of the chart.
|
|
59
|
+
* @param extraSpaceBottomY - The extra space on the bottom of the chart.
|
|
60
|
+
* @param customBreakAxis - The custom break axis position (used when position is CUSTOM).
|
|
61
|
+
* @returns The y-coordinates for drawing lines in the chart.
|
|
62
|
+
*/
|
|
63
|
+
const getYCoordinates = ({ canvasHeight, canvasWidth, customBreakAxis, extraSpaceBottomY, extraSpaceLeftX, extraSpaceRightX, extraSpaceTopY, position, }) => {
|
|
64
|
+
if (position === position_enum_1.Positions.RIGHT) {
|
|
65
|
+
return {
|
|
66
|
+
x1: canvasWidth - extraSpaceRightX,
|
|
67
|
+
x2: canvasWidth - extraSpaceRightX,
|
|
68
|
+
y1: extraSpaceTopY,
|
|
69
|
+
y2: canvasHeight - extraSpaceBottomY,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
if (position === position_enum_1.Positions.CENTER) {
|
|
73
|
+
return {
|
|
74
|
+
x1: canvasWidth / 2,
|
|
75
|
+
x2: canvasWidth / 2,
|
|
76
|
+
y1: extraSpaceTopY,
|
|
77
|
+
y2: canvasHeight - extraSpaceBottomY,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
if (position === position_enum_1.Positions.CUSTOM) {
|
|
81
|
+
return {
|
|
82
|
+
x1: customBreakAxis,
|
|
83
|
+
x2: customBreakAxis,
|
|
84
|
+
y1: extraSpaceTopY,
|
|
85
|
+
y2: canvasHeight - extraSpaceBottomY,
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
x1: extraSpaceLeftX,
|
|
90
|
+
x2: extraSpaceLeftX,
|
|
91
|
+
y1: extraSpaceTopY,
|
|
92
|
+
y2: canvasHeight - extraSpaceBottomY,
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
exports.getYCoordinates = getYCoordinates;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { BarChartIDataPoint } from '../../charts/barChart/barChart.type';
|
|
2
|
+
import type { IDataPoint } from '../../charts/lineChart/lineChart.type';
|
|
3
|
+
import type { DataItem } from '../../charts/pieChart/pieChart.type';
|
|
4
|
+
type ChartDataType = IDataPoint[] | BarChartIDataPoint[] | DataItem;
|
|
5
|
+
/**
|
|
6
|
+
* Generates a fingerprint of chart data for use in React.useMemo dependencies
|
|
7
|
+
* @param data - Chart data from LineChart, BarChart, or PieChart
|
|
8
|
+
* @returns JSON string representation of the data
|
|
9
|
+
*/
|
|
10
|
+
export declare const getDataFingerprint: (data: ChartDataType) => string;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=getDataFingerprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDataFingerprint.d.ts","sourceRoot":"","sources":["../../../../src/utils/getDataFingerprint/getDataFingerprint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEhE,KAAK,aAAa,GAAG,UAAU,EAAE,GAAG,kBAAkB,EAAE,GAAG,QAAQ,CAAC;AAEpE;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,MAAM,aAAa,KAAG,MAIxD,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDataFingerprint = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Generates a fingerprint of chart data for use in React.useMemo dependencies
|
|
6
|
+
* @param data - Chart data from LineChart, BarChart, or PieChart
|
|
7
|
+
* @returns JSON string representation of the data
|
|
8
|
+
*/
|
|
9
|
+
const getDataFingerprint = (data) => {
|
|
10
|
+
// TODO: study and compare performance with other hash libraries or manual methods
|
|
11
|
+
// ! Data might grow a lot in size, that is because this may be reviewed in the future
|
|
12
|
+
return JSON.stringify(data);
|
|
13
|
+
};
|
|
14
|
+
exports.getDataFingerprint = getDataFingerprint;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TickData } from '../../components/tick/tick.types';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the positions of data points on the chart based on tick values and data values.
|
|
4
|
+
* @param tickValues - An array of tick data objects.
|
|
5
|
+
* @param data - An array of data values.
|
|
6
|
+
* @param xAxis - Optional parameter indicating whether the points are for the x-axis. Defaults to false.
|
|
7
|
+
* @returns An array of numbers representing the positions of the data points.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getPoints: (tickValues: TickData[], data: string[], xAxis?: boolean) => number[];
|
|
10
|
+
//# sourceMappingURL=getPoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPoints.d.ts","sourceRoot":"","sources":["../../../../src/utils/getPoints/getPoints.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,YAAY,QAAQ,EAAE,EAAE,MAAM,MAAM,EAAE,EAAE,QAAQ,OAAO,KAAG,MAAM,EA+CzF,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPoints = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the positions of data points on the chart based on tick values and data values.
|
|
6
|
+
* @param tickValues - An array of tick data objects.
|
|
7
|
+
* @param data - An array of data values.
|
|
8
|
+
* @param xAxis - Optional parameter indicating whether the points are for the x-axis. Defaults to false.
|
|
9
|
+
* @returns An array of numbers representing the positions of the data points.
|
|
10
|
+
*/
|
|
11
|
+
const getPoints = (tickValues, data, xAxis) => {
|
|
12
|
+
return data.map(dt => {
|
|
13
|
+
// IF NOT A NUMBER, FIND THE POSITION OF THE TICK
|
|
14
|
+
if (isNaN(Number(dt))) {
|
|
15
|
+
const located = tickValues.find(tick => String(tick.value) === String(dt));
|
|
16
|
+
return located ? located.position : 0;
|
|
17
|
+
}
|
|
18
|
+
// FIND THE CLOSEST TICK
|
|
19
|
+
const { index, tick } = tickValues.reduce((prev, curr, tickiIndex) => {
|
|
20
|
+
return Math.abs(Number(curr.value) - Number(dt)) <=
|
|
21
|
+
Math.abs(Number(prev.tick.value) - Number(dt))
|
|
22
|
+
? { index: tickiIndex, tick: curr }
|
|
23
|
+
: prev;
|
|
24
|
+
}, { index: 0, tick: tickValues[0] });
|
|
25
|
+
const dtNumber = Number(dt);
|
|
26
|
+
const tickValueNumber = Number(tick.value);
|
|
27
|
+
if (dtNumber !== tickValueNumber) {
|
|
28
|
+
const currentAxisValues = tickValues.map(tickVal => Number(tickVal.value));
|
|
29
|
+
const min = Math.min(...currentAxisValues);
|
|
30
|
+
const max = Math.max(...currentAxisValues);
|
|
31
|
+
if (dtNumber < min) {
|
|
32
|
+
return tickValues.at(0)?.position;
|
|
33
|
+
}
|
|
34
|
+
if (dtNumber > max) {
|
|
35
|
+
return tickValues.at(-1)?.position;
|
|
36
|
+
}
|
|
37
|
+
const diff = Math.abs(tickValueNumber - dtNumber);
|
|
38
|
+
const isGreaterThan = dtNumber > tickValueNumber;
|
|
39
|
+
const closeTick = isGreaterThan ? tickValues[index + 1] : tickValues[index - 1];
|
|
40
|
+
const diffBetweenTicks = Math.abs(Number(closeTick.value) - tickValueNumber);
|
|
41
|
+
const diffPercentaje = (diff * 100) / diffBetweenTicks;
|
|
42
|
+
const posBetweenTicks = Math.abs(tick.position - closeTick.position);
|
|
43
|
+
const ajustedAmount = (posBetweenTicks * diffPercentaje) / 100;
|
|
44
|
+
// This is because the X axis is drawn from left to right and the Y axis from top to bottom.
|
|
45
|
+
if (xAxis) {
|
|
46
|
+
return isGreaterThan ? tick.position + ajustedAmount : tick.position - ajustedAmount;
|
|
47
|
+
}
|
|
48
|
+
return isGreaterThan ? tick.position - ajustedAmount : tick.position + ajustedAmount;
|
|
49
|
+
}
|
|
50
|
+
return tick.position;
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
exports.getPoints = getPoints;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Positions } from '../../types/position.enum';
|
|
2
|
+
/**
|
|
3
|
+
* Calculates the x-coordinate for the tick text based on the position, x-coordinate, and font size.
|
|
4
|
+
*
|
|
5
|
+
* @param position - The position of the tick text.
|
|
6
|
+
* @param x - The x-coordinate of the tick text.
|
|
7
|
+
* @param fontSize - The font size of the tick text.
|
|
8
|
+
* @returns The calculated x-coordinate for the tick text.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getTickTextXCoordinate: (position: (typeof Positions)[keyof typeof Positions], x: number, fontSize: number) => number;
|
|
11
|
+
/**
|
|
12
|
+
* Calculates the y-coordinate for the tick text based on the position, y-coordinate, font size, and security space.
|
|
13
|
+
*
|
|
14
|
+
* @param position - The position of the tick text.
|
|
15
|
+
* @param y - The y-coordinate of the tick text.
|
|
16
|
+
* @param fontSize - The font size of the tick text.
|
|
17
|
+
* @param securitySpace - The security space between the tick text and the chart.
|
|
18
|
+
* @returns The calculated y-coordinate for the tick text.
|
|
19
|
+
*/
|
|
20
|
+
export declare const getTickTextYCoordinate: (position: (typeof Positions)[keyof typeof Positions], y: number, fontSize: number, securitySpace: number) => number;
|
|
21
|
+
//# sourceMappingURL=getTickTextCoordinates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTickTextCoordinates.d.ts","sourceRoot":"","sources":["../../../../src/utils/getTickTextCoordinate/getTickTextCoordinates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,OAAO,SAAS,CAAC,EACpD,GAAG,MAAM,EACT,UAAU,MAAM,KACf,MAKF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,CAAC,OAAO,SAAS,EAAE,MAAM,OAAO,SAAS,CAAC,EACpD,GAAG,MAAM,EACT,UAAU,MAAM,EAChB,eAAe,MAAM,KACpB,MAKF,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTickTextYCoordinate = exports.getTickTextXCoordinate = void 0;
|
|
4
|
+
const position_enum_1 = require("../../types/position.enum");
|
|
5
|
+
/**
|
|
6
|
+
* Calculates the x-coordinate for the tick text based on the position, x-coordinate, and font size.
|
|
7
|
+
*
|
|
8
|
+
* @param position - The position of the tick text.
|
|
9
|
+
* @param x - The x-coordinate of the tick text.
|
|
10
|
+
* @param fontSize - The font size of the tick text.
|
|
11
|
+
* @returns The calculated x-coordinate for the tick text.
|
|
12
|
+
*/
|
|
13
|
+
const getTickTextXCoordinate = (position, x, fontSize) => {
|
|
14
|
+
if (position === position_enum_1.Positions.RIGHT) {
|
|
15
|
+
return x + fontSize;
|
|
16
|
+
}
|
|
17
|
+
return x - fontSize;
|
|
18
|
+
};
|
|
19
|
+
exports.getTickTextXCoordinate = getTickTextXCoordinate;
|
|
20
|
+
/**
|
|
21
|
+
* Calculates the y-coordinate for the tick text based on the position, y-coordinate, font size, and security space.
|
|
22
|
+
*
|
|
23
|
+
* @param position - The position of the tick text.
|
|
24
|
+
* @param y - The y-coordinate of the tick text.
|
|
25
|
+
* @param fontSize - The font size of the tick text.
|
|
26
|
+
* @param securitySpace - The security space between the tick text and the chart.
|
|
27
|
+
* @returns The calculated y-coordinate for the tick text.
|
|
28
|
+
*/
|
|
29
|
+
const getTickTextYCoordinate = (position, y, fontSize, securitySpace) => {
|
|
30
|
+
if (position === position_enum_1.Positions.TOP) {
|
|
31
|
+
return fontSize;
|
|
32
|
+
}
|
|
33
|
+
return y + fontSize + securitySpace;
|
|
34
|
+
};
|
|
35
|
+
exports.getTickTextYCoordinate = getTickTextYCoordinate;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { TickData } from '../../components/tick/tick.types';
|
|
2
|
+
interface GetTickProps {
|
|
3
|
+
tickValues: string[];
|
|
4
|
+
maxSpaceAvailable: number;
|
|
5
|
+
securitySpace: number;
|
|
6
|
+
otherAxisSpace: number;
|
|
7
|
+
initPos: number;
|
|
8
|
+
needAjusted?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Calculates the tick positions and values for the x-axis of a line chart.
|
|
12
|
+
*
|
|
13
|
+
* @param tickValues - The values to be displayed as ticks on the x-axis.
|
|
14
|
+
* @param maxSpaceAvailable - The maximum space available for the x-axis.
|
|
15
|
+
* @param securitySpace - The space reserved for security purposes.
|
|
16
|
+
* @param crossAxis - The cross axis of the chart.
|
|
17
|
+
* @param otherAxisSpace - The space occupied by the other axis.
|
|
18
|
+
* @param initPos - The initial position of the x-axis.
|
|
19
|
+
* @returns An array of objects containing the tick values and their corresponding positions.
|
|
20
|
+
*/
|
|
21
|
+
export declare const getXTicks: ({ initPos, maxSpaceAvailable, otherAxisSpace, securitySpace, tickValues, }: GetTickProps) => TickData[] | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Calculates the tick positions and values for the y-axis of a line chart.
|
|
24
|
+
*
|
|
25
|
+
* @param tickValues - The values to be displayed as ticks on the y-axis.
|
|
26
|
+
* @param maxSpaceAvailable - The maximum space available for the y-axis.
|
|
27
|
+
* @param securitySpace - The space reserved for security purposes.
|
|
28
|
+
* @param crossAxis - The cross axis of the chart.
|
|
29
|
+
* @param otherAxisSpace - The space occupied by the other axis.
|
|
30
|
+
* @param initPos - The initial position of the y-axis.
|
|
31
|
+
* @returns An array of objects containing the tick values and their corresponding positions.
|
|
32
|
+
*/
|
|
33
|
+
export declare const getYTicks: ({ initPos, maxSpaceAvailable, needAjusted, otherAxisSpace, securitySpace, tickValues, }: GetTickProps) => TickData[] | undefined;
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=getTicks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTicks.d.ts","sourceRoot":"","sources":["../../../../src/utils/getTicks/getTicks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,UAAU,YAAY;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,GAAI,4EAMvB,YAAY,KAAG,QAAQ,EAAE,GAAG,SAa9B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS,GAAI,yFAOvB,YAAY,KAAG,QAAQ,EAAE,GAAG,SAc9B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getYTicks = exports.getXTicks = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the tick positions and values for the x-axis of a line chart.
|
|
6
|
+
*
|
|
7
|
+
* @param tickValues - The values to be displayed as ticks on the x-axis.
|
|
8
|
+
* @param maxSpaceAvailable - The maximum space available for the x-axis.
|
|
9
|
+
* @param securitySpace - The space reserved for security purposes.
|
|
10
|
+
* @param crossAxis - The cross axis of the chart.
|
|
11
|
+
* @param otherAxisSpace - The space occupied by the other axis.
|
|
12
|
+
* @param initPos - The initial position of the x-axis.
|
|
13
|
+
* @returns An array of objects containing the tick values and their corresponding positions.
|
|
14
|
+
*/
|
|
15
|
+
const getXTicks = ({ initPos, maxSpaceAvailable, otherAxisSpace, securitySpace, tickValues, }) => {
|
|
16
|
+
const ticksNumber = tickValues.length - 1;
|
|
17
|
+
const maxSpace = maxSpaceAvailable - otherAxisSpace - securitySpace;
|
|
18
|
+
const stepValue = maxSpace / ticksNumber;
|
|
19
|
+
const ticks = tickValues.map((value, idx) => {
|
|
20
|
+
const currentStep = idx * stepValue;
|
|
21
|
+
return {
|
|
22
|
+
position: initPos + currentStep + securitySpace / 2,
|
|
23
|
+
value,
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
return ticks;
|
|
27
|
+
};
|
|
28
|
+
exports.getXTicks = getXTicks;
|
|
29
|
+
/**
|
|
30
|
+
* Calculates the tick positions and values for the y-axis of a line chart.
|
|
31
|
+
*
|
|
32
|
+
* @param tickValues - The values to be displayed as ticks on the y-axis.
|
|
33
|
+
* @param maxSpaceAvailable - The maximum space available for the y-axis.
|
|
34
|
+
* @param securitySpace - The space reserved for security purposes.
|
|
35
|
+
* @param crossAxis - The cross axis of the chart.
|
|
36
|
+
* @param otherAxisSpace - The space occupied by the other axis.
|
|
37
|
+
* @param initPos - The initial position of the y-axis.
|
|
38
|
+
* @returns An array of objects containing the tick values and their corresponding positions.
|
|
39
|
+
*/
|
|
40
|
+
const getYTicks = ({ initPos, maxSpaceAvailable, needAjusted, otherAxisSpace, securitySpace, tickValues, }) => {
|
|
41
|
+
const ticksNumber = tickValues.length - 1;
|
|
42
|
+
const maxSpace = maxSpaceAvailable - otherAxisSpace - securitySpace;
|
|
43
|
+
const stepValue = maxSpace / ticksNumber;
|
|
44
|
+
const additionalSpace = needAjusted ? securitySpace / 2 : 0;
|
|
45
|
+
const ticks = tickValues.map((value, idx) => {
|
|
46
|
+
const currentStep = idx * stepValue;
|
|
47
|
+
return {
|
|
48
|
+
position: initPos - currentStep - additionalSpace,
|
|
49
|
+
value,
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return ticks;
|
|
53
|
+
};
|
|
54
|
+
exports.getYTicks = getYTicks;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './ajustedTextSpace/ajustedTextSpace';
|
|
2
|
+
export * from './buildTickValues/buildTickValues';
|
|
3
|
+
export * from './classNames/classNames';
|
|
4
|
+
export * from './cssGradientToSvg/cssGradientToSvg';
|
|
5
|
+
export * from './cursorNear/isNear';
|
|
6
|
+
export * from './shadowSvg/shadowSvg';
|
|
7
|
+
export * from './shadowSvg/shadowSvg.types';
|
|
8
|
+
export * from './textBound/textBound';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC;AACpD,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ajustedTextSpace/ajustedTextSpace"), exports);
|
|
18
|
+
__exportStar(require("./buildTickValues/buildTickValues"), exports);
|
|
19
|
+
__exportStar(require("./classNames/classNames"), exports);
|
|
20
|
+
__exportStar(require("./cssGradientToSvg/cssGradientToSvg"), exports);
|
|
21
|
+
__exportStar(require("./cursorNear/isNear"), exports);
|
|
22
|
+
__exportStar(require("./shadowSvg/shadowSvg"), exports);
|
|
23
|
+
__exportStar(require("./shadowSvg/shadowSvg.types"), exports);
|
|
24
|
+
__exportStar(require("./textBound/textBound"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parses a string or number to a pixel value.
|
|
3
|
+
* If the input is a string, it can be in the format '2px', '2rem', or '2'.
|
|
4
|
+
* If the input is a number, it returns the number as is.
|
|
5
|
+
*
|
|
6
|
+
* @param value - The value to parse (string or number).
|
|
7
|
+
* @returns The parsed pixel value as a number.
|
|
8
|
+
* @throws Will throw an error if the string format is invalid.
|
|
9
|
+
*/
|
|
10
|
+
export declare const parseStringToNumberPx: (value: string | number) => number;
|
|
11
|
+
//# sourceMappingURL=parseStringToNumberPx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseStringToNumberPx.d.ts","sourceRoot":"","sources":["../../../../src/utils/parseStringToNumberPx.ts/parseStringToNumberPx.ts"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,GAAG,MAAM,KAAG,MAkB9D,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseStringToNumberPx = void 0;
|
|
4
|
+
const unit_enum_1 = require("../../types/unit.enum");
|
|
5
|
+
const UNIT_VALUE_REGEX = /^(\d+(\.\d+)?)(px|rem|%)?$/;
|
|
6
|
+
const MATCH_VALUE_INDEX = 1;
|
|
7
|
+
const MATCH_UNIT_INDEX = 3;
|
|
8
|
+
/**
|
|
9
|
+
* Parses a string or number to a pixel value.
|
|
10
|
+
* If the input is a string, it can be in the format '2px', '2rem', or '2'.
|
|
11
|
+
* If the input is a number, it returns the number as is.
|
|
12
|
+
*
|
|
13
|
+
* @param value - The value to parse (string or number).
|
|
14
|
+
* @returns The parsed pixel value as a number.
|
|
15
|
+
* @throws Will throw an error if the string format is invalid.
|
|
16
|
+
*/
|
|
17
|
+
const parseStringToNumberPx = (value) => {
|
|
18
|
+
if (typeof value === 'number') {
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
//detect if the value is '2px' or '2rem' or '2'
|
|
22
|
+
const match = value.match(UNIT_VALUE_REGEX);
|
|
23
|
+
if (!match) {
|
|
24
|
+
throw new Error(`Invalid string format: "${value}"`);
|
|
25
|
+
}
|
|
26
|
+
const number = match[MATCH_VALUE_INDEX]; // match for group (\d+(\.\d+)?)
|
|
27
|
+
const unit = match[MATCH_UNIT_INDEX]; // match for group (px|rem|%)
|
|
28
|
+
if (unit === unit_enum_1.Unit.REM) {
|
|
29
|
+
return parseFloat(number) * 16;
|
|
30
|
+
}
|
|
31
|
+
return parseFloat(number);
|
|
32
|
+
};
|
|
33
|
+
exports.parseStringToNumberPx = parseStringToNumberPx;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filters and extracts only aria-* and data-* attributes from a given object,
|
|
3
|
+
* converting all values to strings for HTML compatibility.
|
|
4
|
+
*
|
|
5
|
+
* This function is useful for extracting accessibility and data attributes
|
|
6
|
+
* from props or configuration objects and ensuring they are properly formatted
|
|
7
|
+
* for HTML rendering.
|
|
8
|
+
*
|
|
9
|
+
* @param attributes - An optional object containing key-value pairs of attributes.
|
|
10
|
+
* - Keys can be strings representing attribute names.
|
|
11
|
+
* - Values can be strings, booleans, numbers, or any other type.
|
|
12
|
+
*
|
|
13
|
+
* @returns A new object containing only aria-* and data-* attributes:
|
|
14
|
+
* - Only includes attributes that start with `aria-` or `data-`.
|
|
15
|
+
* - All values are converted to strings for HTML compatibility.
|
|
16
|
+
* - Null and undefined values are excluded.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```typescript
|
|
20
|
+
* const props = {
|
|
21
|
+
* 'aria-label': 'Button',
|
|
22
|
+
* 'data-testid': 'my-button',
|
|
23
|
+
* 'onClick': () => {},
|
|
24
|
+
* 'className': 'btn',
|
|
25
|
+
* 'aria-hidden': true
|
|
26
|
+
* };
|
|
27
|
+
*
|
|
28
|
+
* const result = pickCustomAttributes(props);
|
|
29
|
+
* // Result: { 'aria-label': 'Button', 'data-testid': 'my-button', 'aria-hidden': 'true' }
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare const pickCustomAttributes: (attributes?: Record<string, any>) => Record<string, string>;
|
|
33
|
+
//# sourceMappingURL=pickCustomAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickCustomAttributes.d.ts","sourceRoot":"","sources":["../../../../src/utils/pickCustomAttributes/pickCustomAttributes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,oBAAoB,GAE/B,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAkBvB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pickCustomAttributes = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Filters and extracts only aria-* and data-* attributes from a given object,
|
|
6
|
+
* converting all values to strings for HTML compatibility.
|
|
7
|
+
*
|
|
8
|
+
* This function is useful for extracting accessibility and data attributes
|
|
9
|
+
* from props or configuration objects and ensuring they are properly formatted
|
|
10
|
+
* for HTML rendering.
|
|
11
|
+
*
|
|
12
|
+
* @param attributes - An optional object containing key-value pairs of attributes.
|
|
13
|
+
* - Keys can be strings representing attribute names.
|
|
14
|
+
* - Values can be strings, booleans, numbers, or any other type.
|
|
15
|
+
*
|
|
16
|
+
* @returns A new object containing only aria-* and data-* attributes:
|
|
17
|
+
* - Only includes attributes that start with `aria-` or `data-`.
|
|
18
|
+
* - All values are converted to strings for HTML compatibility.
|
|
19
|
+
* - Null and undefined values are excluded.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```typescript
|
|
23
|
+
* const props = {
|
|
24
|
+
* 'aria-label': 'Button',
|
|
25
|
+
* 'data-testid': 'my-button',
|
|
26
|
+
* 'onClick': () => {},
|
|
27
|
+
* 'className': 'btn',
|
|
28
|
+
* 'aria-hidden': true
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* const result = pickCustomAttributes(props);
|
|
32
|
+
* // Result: { 'aria-label': 'Button', 'data-testid': 'my-button', 'aria-hidden': 'true' }
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
const pickCustomAttributes = (
|
|
36
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
37
|
+
attributes) => {
|
|
38
|
+
if (!attributes) {
|
|
39
|
+
return {};
|
|
40
|
+
}
|
|
41
|
+
return Object.entries(attributes).reduce((acc, [key, value]) => {
|
|
42
|
+
if ((key.startsWith('aria-') || key.startsWith('data-')) &&
|
|
43
|
+
value !== null &&
|
|
44
|
+
value !== undefined) {
|
|
45
|
+
acc[key] = String(value);
|
|
46
|
+
}
|
|
47
|
+
return acc;
|
|
48
|
+
}, {});
|
|
49
|
+
};
|
|
50
|
+
exports.pickCustomAttributes = pickCustomAttributes;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadowSvg.d.ts","sourceRoot":"","sources":["../../../../src/utils/shadowSvg/shadowSvg.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,SAAS,GAAI,mCAMvB,cAAc,KAAG,GAAG,CAAC,OAQvB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShadowSvg = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const ShadowSvg = ({ height = '140%', width = '140%', x = '-20%', y = '-20%', ...props }) => {
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("filter", { height: height, id: props.id, width: width, x: x, y: y, children: (0, jsx_runtime_1.jsx)("feDropShadow", { ...props.shadowSvgConfig }) }) }));
|
|
7
|
+
};
|
|
8
|
+
exports.ShadowSvg = ShadowSvg;
|