@alfalab/core-components-chart 3.4.16 → 4.0.0-snapshot-6a9d3fc
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/Component.d.ts +2 -4
- package/Component.js +23 -28
- package/Component.js.map +1 -0
- package/components/CustomizedLabel.d.ts +1 -3
- package/components/CustomizedLabel.js +3 -2
- package/components/CustomizedLabel.js.map +1 -0
- package/components/Dot/index.css +7 -8
- package/components/Dot/index.d.ts +2 -4
- package/components/Dot/index.js +8 -9
- package/components/Dot/index.js.map +1 -0
- package/components/Dot/index.module.css.js +8 -0
- package/components/Dot/index.module.css.js.map +1 -0
- package/components/Legends/index.css +9 -31
- package/components/Legends/index.d.ts +5 -6
- package/components/Legends/index.js +16 -17
- package/components/Legends/index.js.map +1 -0
- package/components/Legends/index.module.css.js +8 -0
- package/components/Legends/index.module.css.js.map +1 -0
- package/components/LinearGradient.d.ts +2 -4
- package/components/LinearGradient.js +1 -0
- package/components/LinearGradient.js.map +1 -0
- package/components/RectBar.d.ts +1 -2
- package/components/RectBar.js +3 -2
- package/components/RectBar.js.map +1 -0
- package/components/Tick/index.css +5 -27
- package/components/Tick/index.d.ts +2 -4
- package/components/Tick/index.js +5 -6
- package/components/Tick/index.js.map +1 -0
- package/components/Tick/index.module.css.js +8 -0
- package/components/Tick/index.module.css.js.map +1 -0
- package/components/TooltipContent/index.css +14 -33
- package/components/TooltipContent/index.d.ts +5 -7
- package/components/TooltipContent/index.js +10 -11
- package/components/TooltipContent/index.js.map +1 -0
- package/components/TooltipContent/index.module.css.js +8 -0
- package/components/TooltipContent/index.module.css.js.map +1 -0
- package/cssm/Component.d.ts +2 -4
- package/cssm/Component.js +19 -22
- package/cssm/Component.js.map +1 -0
- package/cssm/components/CustomizedLabel.d.ts +1 -3
- package/cssm/components/CustomizedLabel.js +3 -2
- package/cssm/components/CustomizedLabel.js.map +1 -0
- package/cssm/components/Dot/index.d.ts +2 -4
- package/cssm/components/Dot/index.js +3 -2
- package/cssm/components/Dot/index.js.map +1 -0
- package/cssm/components/Legends/index.d.ts +5 -6
- package/cssm/components/Legends/index.js +12 -11
- package/cssm/components/Legends/index.js.map +1 -0
- package/cssm/components/Legends/index.module.css +3 -24
- package/cssm/components/LinearGradient.d.ts +2 -4
- package/cssm/components/LinearGradient.js +1 -0
- package/cssm/components/LinearGradient.js.map +1 -0
- package/cssm/components/RectBar.d.ts +1 -2
- package/cssm/components/RectBar.js +3 -2
- package/cssm/components/RectBar.js.map +1 -0
- package/cssm/components/Tick/index.d.ts +2 -4
- package/cssm/components/Tick/index.js +1 -0
- package/cssm/components/Tick/index.js.map +1 -0
- package/cssm/components/Tick/index.module.css +3 -24
- package/cssm/components/TooltipContent/index.d.ts +5 -7
- package/cssm/components/TooltipContent/index.js +5 -4
- package/cssm/components/TooltipContent/index.js.map +1 -0
- package/cssm/components/TooltipContent/index.module.css +9 -27
- package/cssm/hoc/Customized.d.ts +2 -0
- package/cssm/hoc/Customized.js +18 -0
- package/cssm/hoc/Customized.js.map +1 -0
- package/cssm/hooks/usePathBar/index.d.ts +3 -4
- package/cssm/hooks/usePathBar/index.js +4 -3
- package/cssm/hooks/usePathBar/index.js.map +1 -0
- package/cssm/hooks/usePathBar/utils/getRadius.d.ts +1 -2
- package/cssm/hooks/usePathBar/utils/getRadius.js +1 -0
- package/cssm/hooks/usePathBar/utils/getRadius.js.map +1 -0
- package/cssm/hooks/useSettings/index.d.ts +5 -5
- package/cssm/hooks/useSettings/index.js +11 -10
- package/cssm/hooks/useSettings/index.js.map +1 -0
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
- package/cssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
- package/cssm/hooks/useSettings/utils/setDatas.d.ts +5 -5
- package/cssm/hooks/useSettings/utils/setDatas.js +1 -0
- package/cssm/hooks/useSettings/utils/setDatas.js.map +1 -0
- package/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
- package/cssm/hooks/useSettings/utils/setGradientCharts.js +1 -0
- package/cssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
- package/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
- package/cssm/hooks/useSettings/utils/setLegendMargin.js +1 -0
- package/cssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
- package/cssm/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
- package/cssm/hooks/useSettings/utils/sortByIndex.js +1 -0
- package/cssm/hooks/useSettings/utils/sortByIndex.js.map +1 -0
- package/cssm/icons/Circle.d.ts +3 -4
- package/cssm/icons/Circle.js +1 -0
- package/cssm/icons/Circle.js.map +1 -0
- package/cssm/icons/CircleLine.d.ts +3 -4
- package/cssm/icons/CircleLine.js +1 -0
- package/cssm/icons/CircleLine.js.map +1 -0
- package/cssm/icons/FilledCircle.d.ts +3 -4
- package/cssm/icons/FilledCircle.js +1 -0
- package/cssm/icons/FilledCircle.js.map +1 -0
- package/cssm/icons/Point.d.ts +3 -4
- package/cssm/icons/Point.js +1 -0
- package/cssm/icons/Point.js.map +1 -0
- package/cssm/icons/StrokeCircle.d.ts +3 -4
- package/cssm/icons/StrokeCircle.js +1 -0
- package/cssm/icons/StrokeCircle.js.map +1 -0
- package/cssm/index.d.ts +2 -2
- package/cssm/index.js +1 -0
- package/cssm/index.js.map +1 -0
- package/cssm/index.module.css +3 -24
- package/cssm/types/brush.types.d.ts +1 -2
- package/cssm/types/brush.types.js +1 -0
- package/cssm/types/brush.types.js.map +1 -0
- package/cssm/types/cartesianGrid.types.d.ts +1 -2
- package/cssm/types/cartesianGrid.types.js +1 -0
- package/cssm/types/cartesianGrid.types.js.map +1 -0
- package/cssm/types/chart.types.d.ts +7 -7
- package/cssm/types/chart.types.js +1 -0
- package/cssm/types/chart.types.js.map +1 -0
- package/cssm/types/composedChart.types.d.ts +1 -2
- package/cssm/types/composedChart.types.js +1 -0
- package/cssm/types/composedChart.types.js.map +1 -0
- package/cssm/types/index.d.ts +14 -14
- package/cssm/types/index.js +1 -0
- package/cssm/types/index.js.map +1 -0
- package/cssm/types/labelList.types.d.ts +1 -2
- package/cssm/types/labelList.types.js +1 -0
- package/cssm/types/labelList.types.js.map +1 -0
- package/cssm/types/legend.types.d.ts +1 -2
- package/cssm/types/legend.types.js +1 -0
- package/cssm/types/legend.types.js.map +1 -0
- package/cssm/types/options.types.d.ts +10 -12
- package/cssm/types/options.types.js +1 -0
- package/cssm/types/options.types.js.map +1 -0
- package/cssm/types/payload.types.d.ts +2 -3
- package/cssm/types/payload.types.js +1 -0
- package/cssm/types/payload.types.js.map +1 -0
- package/cssm/types/responsiveContainer.types.d.ts +1 -3
- package/cssm/types/responsiveContainer.types.js +1 -0
- package/cssm/types/responsiveContainer.types.js.map +1 -0
- package/cssm/types/seria.types.d.ts +6 -7
- package/cssm/types/seria.types.js +1 -0
- package/cssm/types/seria.types.js.map +1 -0
- package/cssm/types/tooltip.types.d.ts +1 -2
- package/cssm/types/tooltip.types.js +1 -0
- package/cssm/types/tooltip.types.js.map +1 -0
- package/cssm/types/utils/axis.types.d.ts +1 -2
- package/cssm/types/utils/axis.types.js +1 -0
- package/cssm/types/utils/axis.types.js.map +1 -0
- package/cssm/types/utils/coordinates.types.d.ts +1 -2
- package/cssm/types/utils/coordinates.types.js +1 -0
- package/cssm/types/utils/coordinates.types.js.map +1 -0
- package/cssm/types/utils/data.types.d.ts +3 -4
- package/cssm/types/utils/data.types.js +1 -0
- package/cssm/types/utils/data.types.js.map +1 -0
- package/cssm/types/utils/dot.types.d.ts +6 -7
- package/cssm/types/utils/dot.types.js +1 -0
- package/cssm/types/utils/dot.types.js.map +1 -0
- package/cssm/types/utils/gradient.types.d.ts +2 -3
- package/cssm/types/utils/gradient.types.js +1 -0
- package/cssm/types/utils/gradient.types.js.map +1 -0
- package/cssm/types/utils/index.d.ts +6 -7
- package/cssm/types/utils/index.js +1 -0
- package/cssm/types/utils/index.js.map +1 -0
- package/cssm/types/utils/tick.types.d.ts +2 -3
- package/cssm/types/utils/tick.types.js +1 -0
- package/cssm/types/utils/tick.types.js.map +1 -0
- package/cssm/types/xAxis.types.d.ts +2 -3
- package/cssm/types/xAxis.types.js +1 -0
- package/cssm/types/xAxis.types.js.map +1 -0
- package/cssm/types/yAxis.types.d.ts +2 -3
- package/cssm/types/yAxis.types.js +1 -0
- package/cssm/types/yAxis.types.js.map +1 -0
- package/esm/Component.d.ts +2 -4
- package/esm/Component.js +3 -8
- package/esm/Component.js.map +1 -0
- package/esm/components/CustomizedLabel.d.ts +1 -3
- package/esm/components/CustomizedLabel.js +1 -0
- package/esm/components/CustomizedLabel.js.map +1 -0
- package/esm/components/Dot/index.css +7 -8
- package/esm/components/Dot/index.d.ts +2 -4
- package/esm/components/Dot/index.js +2 -3
- package/esm/components/Dot/index.js.map +1 -0
- package/esm/components/Dot/index.module.css.js +6 -0
- package/esm/components/Dot/index.module.css.js.map +1 -0
- package/esm/components/Legends/index.css +9 -31
- package/esm/components/Legends/index.d.ts +5 -6
- package/esm/components/Legends/index.js +2 -3
- package/esm/components/Legends/index.js.map +1 -0
- package/esm/components/Legends/index.module.css.js +6 -0
- package/esm/components/Legends/index.module.css.js.map +1 -0
- package/esm/components/LinearGradient.d.ts +2 -4
- package/esm/components/LinearGradient.js +1 -0
- package/esm/components/LinearGradient.js.map +1 -0
- package/esm/components/RectBar.d.ts +1 -2
- package/esm/components/RectBar.js +1 -0
- package/esm/components/RectBar.js.map +1 -0
- package/esm/components/Tick/index.css +5 -27
- package/esm/components/Tick/index.d.ts +2 -4
- package/esm/components/Tick/index.js +2 -3
- package/esm/components/Tick/index.js.map +1 -0
- package/esm/components/Tick/index.module.css.js +6 -0
- package/esm/components/Tick/index.module.css.js.map +1 -0
- package/esm/components/TooltipContent/index.css +14 -33
- package/esm/components/TooltipContent/index.d.ts +5 -7
- package/esm/components/TooltipContent/index.js +2 -3
- package/esm/components/TooltipContent/index.js.map +1 -0
- package/esm/components/TooltipContent/index.module.css.js +6 -0
- package/esm/components/TooltipContent/index.module.css.js.map +1 -0
- package/esm/hoc/Customized.d.ts +2 -0
- package/esm/hoc/Customized.js +10 -0
- package/esm/hoc/Customized.js.map +1 -0
- package/esm/hooks/usePathBar/index.d.ts +3 -4
- package/esm/hooks/usePathBar/index.js +1 -0
- package/esm/hooks/usePathBar/index.js.map +1 -0
- package/esm/hooks/usePathBar/utils/getRadius.d.ts +1 -2
- package/esm/hooks/usePathBar/utils/getRadius.js +1 -0
- package/esm/hooks/usePathBar/utils/getRadius.js.map +1 -0
- package/esm/hooks/useSettings/index.d.ts +5 -5
- package/esm/hooks/useSettings/index.js +1 -0
- package/esm/hooks/useSettings/index.js.map +1 -0
- package/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
- package/esm/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
- package/esm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
- package/esm/hooks/useSettings/utils/setDatas.d.ts +5 -5
- package/esm/hooks/useSettings/utils/setDatas.js +1 -0
- package/esm/hooks/useSettings/utils/setDatas.js.map +1 -0
- package/esm/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
- package/esm/hooks/useSettings/utils/setGradientCharts.js +1 -0
- package/esm/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
- package/esm/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
- package/esm/hooks/useSettings/utils/setLegendMargin.js +1 -0
- package/esm/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
- package/esm/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
- package/esm/hooks/useSettings/utils/sortByIndex.js +1 -0
- package/esm/hooks/useSettings/utils/sortByIndex.js.map +1 -0
- package/esm/icons/Circle.d.ts +3 -4
- package/esm/icons/Circle.js +1 -0
- package/esm/icons/Circle.js.map +1 -0
- package/esm/icons/CircleLine.d.ts +3 -4
- package/esm/icons/CircleLine.js +1 -0
- package/esm/icons/CircleLine.js.map +1 -0
- package/esm/icons/FilledCircle.d.ts +3 -4
- package/esm/icons/FilledCircle.js +1 -0
- package/esm/icons/FilledCircle.js.map +1 -0
- package/esm/icons/Point.d.ts +3 -4
- package/esm/icons/Point.js +1 -0
- package/esm/icons/Point.js.map +1 -0
- package/esm/icons/StrokeCircle.d.ts +3 -4
- package/esm/icons/StrokeCircle.js +1 -0
- package/esm/icons/StrokeCircle.js.map +1 -0
- package/esm/index.css +6 -28
- package/esm/index.d.ts +2 -2
- package/esm/index.js +1 -0
- package/esm/index.js.map +1 -0
- package/esm/index.module.css.js +6 -0
- package/esm/index.module.css.js.map +1 -0
- package/esm/types/brush.types.d.ts +1 -2
- package/esm/types/brush.types.js +1 -0
- package/esm/types/brush.types.js.map +1 -0
- package/esm/types/cartesianGrid.types.d.ts +1 -2
- package/esm/types/cartesianGrid.types.js +1 -0
- package/esm/types/cartesianGrid.types.js.map +1 -0
- package/esm/types/chart.types.d.ts +7 -7
- package/esm/types/chart.types.js +1 -0
- package/esm/types/chart.types.js.map +1 -0
- package/esm/types/composedChart.types.d.ts +1 -2
- package/esm/types/composedChart.types.js +1 -0
- package/esm/types/composedChart.types.js.map +1 -0
- package/esm/types/index.d.ts +14 -14
- package/esm/types/index.js +1 -0
- package/esm/types/index.js.map +1 -0
- package/esm/types/labelList.types.d.ts +1 -2
- package/esm/types/labelList.types.js +1 -0
- package/esm/types/labelList.types.js.map +1 -0
- package/esm/types/legend.types.d.ts +1 -2
- package/esm/types/legend.types.js +1 -0
- package/esm/types/legend.types.js.map +1 -0
- package/esm/types/options.types.d.ts +10 -12
- package/esm/types/options.types.js +1 -0
- package/esm/types/options.types.js.map +1 -0
- package/esm/types/payload.types.d.ts +2 -3
- package/esm/types/payload.types.js +1 -0
- package/esm/types/payload.types.js.map +1 -0
- package/esm/types/responsiveContainer.types.d.ts +1 -3
- package/esm/types/responsiveContainer.types.js +1 -0
- package/esm/types/responsiveContainer.types.js.map +1 -0
- package/esm/types/seria.types.d.ts +6 -7
- package/esm/types/seria.types.js +1 -0
- package/esm/types/seria.types.js.map +1 -0
- package/esm/types/tooltip.types.d.ts +1 -2
- package/esm/types/tooltip.types.js +1 -0
- package/esm/types/tooltip.types.js.map +1 -0
- package/esm/types/utils/axis.types.d.ts +1 -2
- package/esm/types/utils/axis.types.js +1 -0
- package/esm/types/utils/axis.types.js.map +1 -0
- package/esm/types/utils/coordinates.types.d.ts +1 -2
- package/esm/types/utils/coordinates.types.js +1 -0
- package/esm/types/utils/coordinates.types.js.map +1 -0
- package/esm/types/utils/data.types.d.ts +3 -4
- package/esm/types/utils/data.types.js +1 -0
- package/esm/types/utils/data.types.js.map +1 -0
- package/esm/types/utils/dot.types.d.ts +6 -7
- package/esm/types/utils/dot.types.js +1 -0
- package/esm/types/utils/dot.types.js.map +1 -0
- package/esm/types/utils/gradient.types.d.ts +2 -3
- package/esm/types/utils/gradient.types.js +1 -0
- package/esm/types/utils/gradient.types.js.map +1 -0
- package/esm/types/utils/index.d.ts +6 -7
- package/esm/types/utils/index.js +1 -0
- package/esm/types/utils/index.js.map +1 -0
- package/esm/types/utils/tick.types.d.ts +2 -3
- package/esm/types/utils/tick.types.js +1 -0
- package/esm/types/utils/tick.types.js.map +1 -0
- package/esm/types/xAxis.types.d.ts +2 -3
- package/esm/types/xAxis.types.js +1 -0
- package/esm/types/xAxis.types.js.map +1 -0
- package/esm/types/yAxis.types.d.ts +2 -3
- package/esm/types/yAxis.types.js +1 -0
- package/esm/types/yAxis.types.js.map +1 -0
- package/hoc/Customized.d.ts +2 -0
- package/hoc/Customized.js +18 -0
- package/hoc/Customized.js.map +1 -0
- package/hooks/usePathBar/index.d.ts +3 -4
- package/hooks/usePathBar/index.js +4 -3
- package/hooks/usePathBar/index.js.map +1 -0
- package/hooks/usePathBar/utils/getRadius.d.ts +1 -2
- package/hooks/usePathBar/utils/getRadius.js +1 -0
- package/hooks/usePathBar/utils/getRadius.js.map +1 -0
- package/hooks/useSettings/index.d.ts +5 -5
- package/hooks/useSettings/index.js +11 -10
- package/hooks/useSettings/index.js.map +1 -0
- package/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
- package/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
- package/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
- package/hooks/useSettings/utils/setDatas.d.ts +5 -5
- package/hooks/useSettings/utils/setDatas.js +1 -0
- package/hooks/useSettings/utils/setDatas.js.map +1 -0
- package/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
- package/hooks/useSettings/utils/setGradientCharts.js +1 -0
- package/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
- package/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
- package/hooks/useSettings/utils/setLegendMargin.js +1 -0
- package/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
- package/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
- package/hooks/useSettings/utils/sortByIndex.js +1 -0
- package/hooks/useSettings/utils/sortByIndex.js.map +1 -0
- package/icons/Circle.d.ts +3 -4
- package/icons/Circle.js +1 -0
- package/icons/Circle.js.map +1 -0
- package/icons/CircleLine.d.ts +3 -4
- package/icons/CircleLine.js +1 -0
- package/icons/CircleLine.js.map +1 -0
- package/icons/FilledCircle.d.ts +3 -4
- package/icons/FilledCircle.js +1 -0
- package/icons/FilledCircle.js.map +1 -0
- package/icons/Point.d.ts +3 -4
- package/icons/Point.js +1 -0
- package/icons/Point.js.map +1 -0
- package/icons/StrokeCircle.d.ts +3 -4
- package/icons/StrokeCircle.js +1 -0
- package/icons/StrokeCircle.js.map +1 -0
- package/index.css +6 -28
- package/index.d.ts +2 -2
- package/index.js +1 -0
- package/index.js.map +1 -0
- package/index.module.css.js +8 -0
- package/index.module.css.js.map +1 -0
- package/modern/Component.d.ts +2 -4
- package/modern/Component.js +3 -8
- package/modern/Component.js.map +1 -0
- package/modern/components/CustomizedLabel.d.ts +1 -3
- package/modern/components/CustomizedLabel.js +1 -0
- package/modern/components/CustomizedLabel.js.map +1 -0
- package/modern/components/Dot/index.css +7 -8
- package/modern/components/Dot/index.d.ts +2 -4
- package/modern/components/Dot/index.js +2 -3
- package/modern/components/Dot/index.js.map +1 -0
- package/modern/components/Dot/index.module.css.js +6 -0
- package/modern/components/Dot/index.module.css.js.map +1 -0
- package/modern/components/Legends/index.css +9 -31
- package/modern/components/Legends/index.d.ts +5 -6
- package/modern/components/Legends/index.js +2 -3
- package/modern/components/Legends/index.js.map +1 -0
- package/modern/components/Legends/index.module.css.js +6 -0
- package/modern/components/Legends/index.module.css.js.map +1 -0
- package/modern/components/LinearGradient.d.ts +2 -4
- package/modern/components/LinearGradient.js +1 -0
- package/modern/components/LinearGradient.js.map +1 -0
- package/modern/components/RectBar.d.ts +1 -2
- package/modern/components/RectBar.js +1 -0
- package/modern/components/RectBar.js.map +1 -0
- package/modern/components/Tick/index.css +5 -27
- package/modern/components/Tick/index.d.ts +2 -4
- package/modern/components/Tick/index.js +2 -3
- package/modern/components/Tick/index.js.map +1 -0
- package/modern/components/Tick/index.module.css.js +6 -0
- package/modern/components/Tick/index.module.css.js.map +1 -0
- package/modern/components/TooltipContent/index.css +14 -33
- package/modern/components/TooltipContent/index.d.ts +5 -7
- package/modern/components/TooltipContent/index.js +2 -3
- package/modern/components/TooltipContent/index.js.map +1 -0
- package/modern/components/TooltipContent/index.module.css.js +6 -0
- package/modern/components/TooltipContent/index.module.css.js.map +1 -0
- package/modern/hoc/Customized.d.ts +2 -0
- package/modern/hoc/Customized.js +10 -0
- package/modern/hoc/Customized.js.map +1 -0
- package/modern/hooks/usePathBar/index.d.ts +3 -4
- package/modern/hooks/usePathBar/index.js +1 -0
- package/modern/hooks/usePathBar/index.js.map +1 -0
- package/modern/hooks/usePathBar/utils/getRadius.d.ts +1 -2
- package/modern/hooks/usePathBar/utils/getRadius.js +1 -0
- package/modern/hooks/usePathBar/utils/getRadius.js.map +1 -0
- package/modern/hooks/useSettings/index.d.ts +5 -5
- package/modern/hooks/useSettings/index.js +1 -0
- package/modern/hooks/useSettings/index.js.map +1 -0
- package/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
- package/modern/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
- package/modern/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
- package/modern/hooks/useSettings/utils/setDatas.d.ts +5 -5
- package/modern/hooks/useSettings/utils/setDatas.js +1 -0
- package/modern/hooks/useSettings/utils/setDatas.js.map +1 -0
- package/modern/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
- package/modern/hooks/useSettings/utils/setGradientCharts.js +1 -0
- package/modern/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
- package/modern/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
- package/modern/hooks/useSettings/utils/setLegendMargin.js +1 -0
- package/modern/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
- package/modern/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
- package/modern/hooks/useSettings/utils/sortByIndex.js +1 -0
- package/modern/hooks/useSettings/utils/sortByIndex.js.map +1 -0
- package/modern/icons/Circle.d.ts +3 -4
- package/modern/icons/Circle.js +1 -0
- package/modern/icons/Circle.js.map +1 -0
- package/modern/icons/CircleLine.d.ts +3 -4
- package/modern/icons/CircleLine.js +1 -0
- package/modern/icons/CircleLine.js.map +1 -0
- package/modern/icons/FilledCircle.d.ts +3 -4
- package/modern/icons/FilledCircle.js +1 -0
- package/modern/icons/FilledCircle.js.map +1 -0
- package/modern/icons/Point.d.ts +3 -4
- package/modern/icons/Point.js +1 -0
- package/modern/icons/Point.js.map +1 -0
- package/modern/icons/StrokeCircle.d.ts +3 -4
- package/modern/icons/StrokeCircle.js +1 -0
- package/modern/icons/StrokeCircle.js.map +1 -0
- package/modern/index.css +6 -28
- package/modern/index.d.ts +2 -2
- package/modern/index.js +1 -0
- package/modern/index.js.map +1 -0
- package/modern/index.module.css.js +6 -0
- package/modern/index.module.css.js.map +1 -0
- package/modern/types/brush.types.d.ts +1 -2
- package/modern/types/brush.types.js +1 -0
- package/modern/types/brush.types.js.map +1 -0
- package/modern/types/cartesianGrid.types.d.ts +1 -2
- package/modern/types/cartesianGrid.types.js +1 -0
- package/modern/types/cartesianGrid.types.js.map +1 -0
- package/modern/types/chart.types.d.ts +7 -7
- package/modern/types/chart.types.js +1 -0
- package/modern/types/chart.types.js.map +1 -0
- package/modern/types/composedChart.types.d.ts +1 -2
- package/modern/types/composedChart.types.js +1 -0
- package/modern/types/composedChart.types.js.map +1 -0
- package/modern/types/index.d.ts +14 -14
- package/modern/types/index.js +1 -0
- package/modern/types/index.js.map +1 -0
- package/modern/types/labelList.types.d.ts +1 -2
- package/modern/types/labelList.types.js +1 -0
- package/modern/types/labelList.types.js.map +1 -0
- package/modern/types/legend.types.d.ts +1 -2
- package/modern/types/legend.types.js +1 -0
- package/modern/types/legend.types.js.map +1 -0
- package/modern/types/options.types.d.ts +10 -12
- package/modern/types/options.types.js +1 -0
- package/modern/types/options.types.js.map +1 -0
- package/modern/types/payload.types.d.ts +2 -3
- package/modern/types/payload.types.js +1 -0
- package/modern/types/payload.types.js.map +1 -0
- package/modern/types/responsiveContainer.types.d.ts +1 -3
- package/modern/types/responsiveContainer.types.js +1 -0
- package/modern/types/responsiveContainer.types.js.map +1 -0
- package/modern/types/seria.types.d.ts +6 -7
- package/modern/types/seria.types.js +1 -0
- package/modern/types/seria.types.js.map +1 -0
- package/modern/types/tooltip.types.d.ts +1 -2
- package/modern/types/tooltip.types.js +1 -0
- package/modern/types/tooltip.types.js.map +1 -0
- package/modern/types/utils/axis.types.d.ts +1 -2
- package/modern/types/utils/axis.types.js +1 -0
- package/modern/types/utils/axis.types.js.map +1 -0
- package/modern/types/utils/coordinates.types.d.ts +1 -2
- package/modern/types/utils/coordinates.types.js +1 -0
- package/modern/types/utils/coordinates.types.js.map +1 -0
- package/modern/types/utils/data.types.d.ts +3 -4
- package/modern/types/utils/data.types.js +1 -0
- package/modern/types/utils/data.types.js.map +1 -0
- package/modern/types/utils/dot.types.d.ts +6 -7
- package/modern/types/utils/dot.types.js +1 -0
- package/modern/types/utils/dot.types.js.map +1 -0
- package/modern/types/utils/gradient.types.d.ts +2 -3
- package/modern/types/utils/gradient.types.js +1 -0
- package/modern/types/utils/gradient.types.js.map +1 -0
- package/modern/types/utils/index.d.ts +6 -7
- package/modern/types/utils/index.js +1 -0
- package/modern/types/utils/index.js.map +1 -0
- package/modern/types/utils/tick.types.d.ts +2 -3
- package/modern/types/utils/tick.types.js +1 -0
- package/modern/types/utils/tick.types.js.map +1 -0
- package/modern/types/xAxis.types.d.ts +2 -3
- package/modern/types/xAxis.types.js +1 -0
- package/modern/types/xAxis.types.js.map +1 -0
- package/modern/types/yAxis.types.d.ts +2 -3
- package/modern/types/yAxis.types.js +1 -0
- package/modern/types/yAxis.types.js.map +1 -0
- package/moderncssm/Component.d.ts +2 -4
- package/moderncssm/Component.js +2 -5
- package/moderncssm/Component.js.map +1 -0
- package/moderncssm/components/CustomizedLabel.d.ts +1 -3
- package/moderncssm/components/CustomizedLabel.js +1 -0
- package/moderncssm/components/CustomizedLabel.js.map +1 -0
- package/moderncssm/components/Dot/index.d.ts +2 -4
- package/moderncssm/components/Dot/index.js +1 -0
- package/moderncssm/components/Dot/index.js.map +1 -0
- package/moderncssm/components/Legends/index.d.ts +5 -6
- package/moderncssm/components/Legends/index.js +1 -0
- package/moderncssm/components/Legends/index.js.map +1 -0
- package/moderncssm/components/Legends/index.module.css +0 -2
- package/moderncssm/components/LinearGradient.d.ts +2 -4
- package/moderncssm/components/LinearGradient.js +1 -0
- package/moderncssm/components/LinearGradient.js.map +1 -0
- package/moderncssm/components/RectBar.d.ts +1 -2
- package/moderncssm/components/RectBar.js +1 -0
- package/moderncssm/components/RectBar.js.map +1 -0
- package/moderncssm/components/Tick/index.d.ts +2 -4
- package/moderncssm/components/Tick/index.js +1 -0
- package/moderncssm/components/Tick/index.js.map +1 -0
- package/moderncssm/components/Tick/index.module.css +0 -2
- package/moderncssm/components/TooltipContent/index.d.ts +5 -7
- package/moderncssm/components/TooltipContent/index.js +1 -0
- package/moderncssm/components/TooltipContent/index.js.map +1 -0
- package/moderncssm/components/TooltipContent/index.module.css +0 -2
- package/moderncssm/hoc/Customized.d.ts +2 -0
- package/moderncssm/hoc/Customized.js +10 -0
- package/moderncssm/hoc/Customized.js.map +1 -0
- package/moderncssm/hooks/usePathBar/index.d.ts +3 -4
- package/moderncssm/hooks/usePathBar/index.js +1 -0
- package/moderncssm/hooks/usePathBar/index.js.map +1 -0
- package/moderncssm/hooks/usePathBar/utils/getRadius.d.ts +1 -2
- package/moderncssm/hooks/usePathBar/utils/getRadius.js +1 -0
- package/moderncssm/hooks/usePathBar/utils/getRadius.js.map +1 -0
- package/moderncssm/hooks/useSettings/index.d.ts +5 -5
- package/moderncssm/hooks/useSettings/index.js +1 -0
- package/moderncssm/hooks/useSettings/index.js.map +1 -0
- package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +7 -7
- package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.js +1 -0
- package/moderncssm/hooks/useSettings/utils/setComposedChartsMargin.js.map +1 -0
- package/moderncssm/hooks/useSettings/utils/setDatas.d.ts +5 -5
- package/moderncssm/hooks/useSettings/utils/setDatas.js +1 -0
- package/moderncssm/hooks/useSettings/utils/setDatas.js.map +1 -0
- package/moderncssm/hooks/useSettings/utils/setGradientCharts.d.ts +2 -3
- package/moderncssm/hooks/useSettings/utils/setGradientCharts.js +1 -0
- package/moderncssm/hooks/useSettings/utils/setGradientCharts.js.map +1 -0
- package/moderncssm/hooks/useSettings/utils/setLegendMargin.d.ts +3 -4
- package/moderncssm/hooks/useSettings/utils/setLegendMargin.js +1 -0
- package/moderncssm/hooks/useSettings/utils/setLegendMargin.js.map +1 -0
- package/moderncssm/hooks/useSettings/utils/sortByIndex.d.ts +2 -3
- package/moderncssm/hooks/useSettings/utils/sortByIndex.js +1 -0
- package/moderncssm/hooks/useSettings/utils/sortByIndex.js.map +1 -0
- package/moderncssm/icons/Circle.d.ts +3 -4
- package/moderncssm/icons/Circle.js +1 -0
- package/moderncssm/icons/Circle.js.map +1 -0
- package/moderncssm/icons/CircleLine.d.ts +3 -4
- package/moderncssm/icons/CircleLine.js +1 -0
- package/moderncssm/icons/CircleLine.js.map +1 -0
- package/moderncssm/icons/FilledCircle.d.ts +3 -4
- package/moderncssm/icons/FilledCircle.js +1 -0
- package/moderncssm/icons/FilledCircle.js.map +1 -0
- package/moderncssm/icons/Point.d.ts +3 -4
- package/moderncssm/icons/Point.js +1 -0
- package/moderncssm/icons/Point.js.map +1 -0
- package/moderncssm/icons/StrokeCircle.d.ts +3 -4
- package/moderncssm/icons/StrokeCircle.js +1 -0
- package/moderncssm/icons/StrokeCircle.js.map +1 -0
- package/moderncssm/index.d.ts +2 -2
- package/moderncssm/index.js +1 -0
- package/moderncssm/index.js.map +1 -0
- package/moderncssm/index.module.css +0 -2
- package/moderncssm/types/brush.types.d.ts +1 -2
- package/moderncssm/types/brush.types.js +1 -0
- package/moderncssm/types/brush.types.js.map +1 -0
- package/moderncssm/types/cartesianGrid.types.d.ts +1 -2
- package/moderncssm/types/cartesianGrid.types.js +1 -0
- package/moderncssm/types/cartesianGrid.types.js.map +1 -0
- package/moderncssm/types/chart.types.d.ts +7 -7
- package/moderncssm/types/chart.types.js +1 -0
- package/moderncssm/types/chart.types.js.map +1 -0
- package/moderncssm/types/composedChart.types.d.ts +1 -2
- package/moderncssm/types/composedChart.types.js +1 -0
- package/moderncssm/types/composedChart.types.js.map +1 -0
- package/moderncssm/types/index.d.ts +14 -14
- package/moderncssm/types/index.js +1 -0
- package/moderncssm/types/index.js.map +1 -0
- package/moderncssm/types/labelList.types.d.ts +1 -2
- package/moderncssm/types/labelList.types.js +1 -0
- package/moderncssm/types/labelList.types.js.map +1 -0
- package/moderncssm/types/legend.types.d.ts +1 -2
- package/moderncssm/types/legend.types.js +1 -0
- package/moderncssm/types/legend.types.js.map +1 -0
- package/moderncssm/types/options.types.d.ts +10 -12
- package/moderncssm/types/options.types.js +1 -0
- package/moderncssm/types/options.types.js.map +1 -0
- package/moderncssm/types/payload.types.d.ts +2 -3
- package/moderncssm/types/payload.types.js +1 -0
- package/moderncssm/types/payload.types.js.map +1 -0
- package/moderncssm/types/responsiveContainer.types.d.ts +1 -3
- package/moderncssm/types/responsiveContainer.types.js +1 -0
- package/moderncssm/types/responsiveContainer.types.js.map +1 -0
- package/moderncssm/types/seria.types.d.ts +6 -7
- package/moderncssm/types/seria.types.js +1 -0
- package/moderncssm/types/seria.types.js.map +1 -0
- package/moderncssm/types/tooltip.types.d.ts +1 -2
- package/moderncssm/types/tooltip.types.js +1 -0
- package/moderncssm/types/tooltip.types.js.map +1 -0
- package/moderncssm/types/utils/axis.types.d.ts +1 -2
- package/moderncssm/types/utils/axis.types.js +1 -0
- package/moderncssm/types/utils/axis.types.js.map +1 -0
- package/moderncssm/types/utils/coordinates.types.d.ts +1 -2
- package/moderncssm/types/utils/coordinates.types.js +1 -0
- package/moderncssm/types/utils/coordinates.types.js.map +1 -0
- package/moderncssm/types/utils/data.types.d.ts +3 -4
- package/moderncssm/types/utils/data.types.js +1 -0
- package/moderncssm/types/utils/data.types.js.map +1 -0
- package/moderncssm/types/utils/dot.types.d.ts +6 -7
- package/moderncssm/types/utils/dot.types.js +1 -0
- package/moderncssm/types/utils/dot.types.js.map +1 -0
- package/moderncssm/types/utils/gradient.types.d.ts +2 -3
- package/moderncssm/types/utils/gradient.types.js +1 -0
- package/moderncssm/types/utils/gradient.types.js.map +1 -0
- package/moderncssm/types/utils/index.d.ts +6 -7
- package/moderncssm/types/utils/index.js +1 -0
- package/moderncssm/types/utils/index.js.map +1 -0
- package/moderncssm/types/utils/tick.types.d.ts +2 -3
- package/moderncssm/types/utils/tick.types.js +1 -0
- package/moderncssm/types/utils/tick.types.js.map +1 -0
- package/moderncssm/types/xAxis.types.d.ts +2 -3
- package/moderncssm/types/xAxis.types.js +1 -0
- package/moderncssm/types/xAxis.types.js.map +1 -0
- package/moderncssm/types/yAxis.types.d.ts +2 -3
- package/moderncssm/types/yAxis.types.js +1 -0
- package/moderncssm/types/yAxis.types.js.map +1 -0
- package/package.json +6 -8
- package/src/hoc/Customized.tsx +8 -0
- package/types/brush.types.d.ts +1 -2
- package/types/brush.types.js +1 -0
- package/types/brush.types.js.map +1 -0
- package/types/cartesianGrid.types.d.ts +1 -2
- package/types/cartesianGrid.types.js +1 -0
- package/types/cartesianGrid.types.js.map +1 -0
- package/types/chart.types.d.ts +7 -7
- package/types/chart.types.js +1 -0
- package/types/chart.types.js.map +1 -0
- package/types/composedChart.types.d.ts +1 -2
- package/types/composedChart.types.js +1 -0
- package/types/composedChart.types.js.map +1 -0
- package/types/index.d.ts +14 -14
- package/types/index.js +1 -0
- package/types/index.js.map +1 -0
- package/types/labelList.types.d.ts +1 -2
- package/types/labelList.types.js +1 -0
- package/types/labelList.types.js.map +1 -0
- package/types/legend.types.d.ts +1 -2
- package/types/legend.types.js +1 -0
- package/types/legend.types.js.map +1 -0
- package/types/options.types.d.ts +10 -12
- package/types/options.types.js +1 -0
- package/types/options.types.js.map +1 -0
- package/types/payload.types.d.ts +2 -3
- package/types/payload.types.js +1 -0
- package/types/payload.types.js.map +1 -0
- package/types/responsiveContainer.types.d.ts +1 -3
- package/types/responsiveContainer.types.js +1 -0
- package/types/responsiveContainer.types.js.map +1 -0
- package/types/seria.types.d.ts +6 -7
- package/types/seria.types.js +1 -0
- package/types/seria.types.js.map +1 -0
- package/types/tooltip.types.d.ts +1 -2
- package/types/tooltip.types.js +1 -0
- package/types/tooltip.types.js.map +1 -0
- package/types/utils/axis.types.d.ts +1 -2
- package/types/utils/axis.types.js +1 -0
- package/types/utils/axis.types.js.map +1 -0
- package/types/utils/coordinates.types.d.ts +1 -2
- package/types/utils/coordinates.types.js +1 -0
- package/types/utils/coordinates.types.js.map +1 -0
- package/types/utils/data.types.d.ts +3 -4
- package/types/utils/data.types.js +1 -0
- package/types/utils/data.types.js.map +1 -0
- package/types/utils/dot.types.d.ts +6 -7
- package/types/utils/dot.types.js +1 -0
- package/types/utils/dot.types.js.map +1 -0
- package/types/utils/gradient.types.d.ts +2 -3
- package/types/utils/gradient.types.js +1 -0
- package/types/utils/gradient.types.js.map +1 -0
- package/types/utils/index.d.ts +6 -7
- package/types/utils/index.js +1 -0
- package/types/utils/index.js.map +1 -0
- package/types/utils/tick.types.d.ts +2 -3
- package/types/utils/tick.types.js +1 -0
- package/types/utils/tick.types.js.map +1 -0
- package/types/xAxis.types.d.ts +2 -3
- package/types/xAxis.types.js +1 -0
- package/types/xAxis.types.js.map +1 -0
- package/types/yAxis.types.d.ts +2 -3
- package/types/yAxis.types.js +1 -0
- package/types/yAxis.types.js.map +1 -0
- package/src/hoc/Customized.jsx +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setDatas.js","sources":["../../../src/hooks/useSettings/utils/setDatas.ts"],"sourcesContent":["import { SeriaProps } from '../../../types/seria.types';\nimport {\n DataDynamicBooleanProps,\n DataDynamicProps,\n DataProps,\n} from '../../../types/utils/data.types';\n\ntype DatasResultProps = [DataDynamicProps[], DataDynamicBooleanProps, number];\n\nexport const setDatas = (\n series: SeriaProps[],\n labels: Array<string | number>,\n): DatasResultProps => {\n const initData: DataDynamicProps[] = [];\n const chartsNames: DataDynamicBooleanProps = {};\n let count = 0;\n\n for (let i = 0; i < series.length; i++) {\n const {\n properties: { dataKey = '' } = {},\n data: seriaData = [],\n hideLegend,\n hide,\n } = series[i];\n\n if (!hideLegend && !hide) count += 1;\n\n labels.map((label) => {\n const item = seriaData.find((d: DataProps) => d.label === label);\n\n if (item) {\n const obj: DataDynamicProps = {\n label,\n };\n\n obj[`${dataKey}`] = item.value;\n\n if (!chartsNames[`${dataKey}`]) chartsNames[`${dataKey}`] = true;\n\n const index = initData\n .map((dataItem: DataDynamicProps) => dataItem.label)\n .indexOf(label);\n\n if (index === -1) initData.push(obj);\n else initData[index] = { ...initData[index], ...obj };\n }\n\n return null;\n });\n }\n\n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UAAC,QAA0B,EAAK,EAAA,OAAA,QAAQ,CAAC,KAAK,CAAd,EAAc;qBAClD,OAAO,CAAC,KAAK,CAAC;gBAEnB,IAAI,KAAK,KAAK,EAAE;AAAE,oBAAA,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;;oBAC/B,QAAQ,CAAC,KAAK,CAAC,GAAQA,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAA,QAAQ,CAAC,KAAK,CAAC,CAAA,EAAK,GAAG,CAAE;AACxD;AAED,YAAA,OAAO,IAAI;AACf,SAAC,CAAC;;AA/BN,IAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAA;gBAA7B,CAAC,CAAA;AAgCT;AAED,IAAA,OAAO,CAAC,QAAQ,EAAE,WAAW,EAAE,KAAK,CAAC;AACzC;;;;"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { SeriaProps } from
|
|
2
|
-
declare const setGradientCharts: (series: SeriaProps[]) => SeriaProps[];
|
|
3
|
-
export { setGradientCharts };
|
|
1
|
+
import { SeriaProps } from '../../../types/seria.types';
|
|
2
|
+
export declare const setGradientCharts: (series: SeriaProps[]) => SeriaProps[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setGradientCharts.js","sources":["../../../src/hooks/useSettings/utils/setGradientCharts.ts"],"sourcesContent":["import { SeriaProps } from '../../../types/seria.types';\nimport { DataProps } from '../../../types/utils/data.types';\n\nexport const setGradientCharts = (series: SeriaProps[]): SeriaProps[] => {\n const filterSeries = series.filter((item) => item.chart !== 'gradient');\n\n return filterSeries.reduce((accum: SeriaProps[], item: SeriaProps) => {\n const { chart, data: dataSeria, offset, fill } = item;\n\n if (chart === 'area') {\n let newData = null;\n\n if (offset) {\n newData = dataSeria.map((d: DataProps) => {\n const { label, value } = d;\n\n return {\n label,\n value: Math.ceil(value - value * offset),\n };\n });\n }\n\n accum.push({\n ...item,\n zIndex: -100,\n chart: 'gradient',\n hideLegend: true,\n hideTooltip: true,\n properties: {\n ...item.properties,\n dataKey: `${item.properties.dataKey}-gradient`,\n fill,\n },\n data: newData || item.data,\n });\n }\n\n accum.push(item);\n\n return accum;\n }, []);\n};\n"],"names":["__assign"],"mappings":";;;;;;AAGO,IAAM,iBAAiB,GAAG,UAAC,MAAoB,EAAA;AAClD,IAAA,IAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,UAAC,IAAI,EAAA,EAAK,OAAA,IAAI,CAAC,KAAK,KAAK,UAAU,CAAzB,EAAyB,CAAC;AAEvE,IAAA,OAAO,YAAY,CAAC,MAAM,CAAC,UAAC,KAAmB,EAAE,IAAgB,EAAA;AACrD,QAAA,IAAA,KAAK,GAAoC,IAAI,MAAxC,EAAQ,SAAS,GAAmB,IAAI,CAAA,IAAvB,EAAE,MAAM,GAAW,IAAI,CAAf,MAAA,EAAE,IAAI,GAAK,IAAI,KAAT;QAE5C,IAAI,KAAK,KAAK,MAAM,EAAE;YAClB,IAAI,OAAO,GAAG,IAAI;AAElB,YAAA,IAAI,MAAM,EAAE;AACR,gBAAA,OAAO,GAAG,SAAS,CAAC,GAAG,CAAC,UAAC,CAAY,EAAA;oBACzB,IAAA,KAAK,GAAY,CAAC,CAAA,KAAb,EAAE,KAAK,GAAK,CAAC,CAAA,KAAN;oBAEpB,OAAO;AACH,wBAAA,KAAK,EAAA,KAAA;wBACL,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,KAAK,GAAG,MAAM,CAAC;qBAC3C;AACL,iBAAC,CAAC;AACL;YAED,KAAK,CAAC,IAAI,CACHA,cAAA,CAAAA,cAAA,CAAA,EAAA,EAAA,IAAI,KACP,MAAM,EAAE,IAAI,EACZ,KAAK,EAAE,UAAU,EACjB,UAAU,EAAE,IAAI,EAChB,WAAW,EAAE,IAAI,EACjB,UAAU,EAAAA,cAAA,CAAAA,cAAA,CAAA,EAAA,EACH,IAAI,CAAC,UAAU,KAClB,OAAO,EAAE,UAAG,IAAI,CAAC,UAAU,CAAC,OAAO,EAAA,WAAA,CAAW,EAC9C,IAAI,EAAA,IAAA,EAER,CAAA,EAAA,IAAI,EAAE,OAAO,IAAI,IAAI,CAAC,IAAI,EAAA,CAAA,CAC5B;AACL;AAED,QAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;AAEhB,QAAA,OAAO,KAAK;KACf,EAAE,EAAE,CAAC;AACV;;;;"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BrushProps } from
|
|
2
|
-
import { LegendProps } from
|
|
3
|
-
declare const setLegendMargin: (brush: BrushProps, legend: LegendProps) => number;
|
|
4
|
-
export { setLegendMargin };
|
|
1
|
+
import { BrushProps } from '../../../types/brush.types';
|
|
2
|
+
import { LegendProps } from '../../../types/legend.types';
|
|
3
|
+
export declare const setLegendMargin: (brush: BrushProps, legend: LegendProps) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setLegendMargin.js","sources":["../../../src/hooks/useSettings/utils/setLegendMargin.ts"],"sourcesContent":["import { BrushProps } from '../../../types/brush.types';\nimport { LegendProps } from '../../../types/legend.types';\n\nexport const setLegendMargin = (brush: BrushProps, legend: LegendProps): number => {\n let top = 0;\n\n if (typeof brush?.brushMargin !== 'number' || !legend?.verticalAlign) return top;\n\n if (legend.verticalAlign === 'top') {\n top = legend.marginTop ? Number(legend.marginTop * -1) : 0;\n } else {\n top = legend?.marginTop ? legend.marginTop + (brush?.brushMargin || 0) : brush?.brushMargin;\n }\n\n return top;\n};\n"],"names":[],"mappings":";;;;AAGa,IAAA,eAAe,GAAG,UAAC,KAAiB,EAAE,MAAmB,EAAA;IAClE,IAAI,GAAG,GAAG,CAAC;IAEX,IAAI,QAAO,KAAK,KAAA,IAAA,IAAL,KAAK,KAAL,MAAA,GAAA,MAAA,GAAA,KAAK,CAAE,WAAW,CAAA,KAAK,QAAQ,IAAI,EAAC,MAAM,KAAA,IAAA,IAAN,MAAM,KAAN,MAAA,GAAA,MAAA,GAAA,MAAM,CAAE,aAAa,CAAA;AAAE,QAAA,OAAO,GAAG;AAEhF,IAAA,IAAI,MAAM,CAAC,aAAa,KAAK,KAAK,EAAE;QAChC,GAAG,GAAG,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,GAAG,EAAE,CAAC,GAAG,CAAC;AAC7D;AAAM,SAAA;AACH,QAAA,GAAG,GAAG,CAAA,MAAM,KAAN,IAAA,IAAA,MAAM,uBAAN,MAAM,CAAE,SAAS,IAAG,MAAM,CAAC,SAAS,IAAI,CAAA,KAAK,KAAL,IAAA,IAAA,KAAK,uBAAL,KAAK,CAAE,WAAW,KAAI,CAAC,CAAC,GAAG,KAAK,KAAL,IAAA,IAAA,KAAK,uBAAL,KAAK,CAAE,WAAW;AAC9F;AAED,IAAA,OAAO,GAAG;AACd;;;;"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { SeriaProps } from
|
|
2
|
-
declare const sortByIndex: (series: SeriaProps[]) => SeriaProps[];
|
|
3
|
-
export { sortByIndex };
|
|
1
|
+
import { SeriaProps } from '../../../types/seria.types';
|
|
2
|
+
export declare const sortByIndex: (series: SeriaProps[]) => SeriaProps[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortByIndex.js","sources":["../../../src/hooks/useSettings/utils/sortByIndex.ts"],"sourcesContent":["import { SeriaProps } from '../../../types/seria.types';\n\nexport const sortByIndex = (series: SeriaProps[]): SeriaProps[] =>\n series.sort((a: SeriaProps, b: SeriaProps) => {\n if (a?.zIndex && b?.zIndex && a?.zIndex > b?.zIndex) {\n return 1;\n }\n\n return -1;\n });\n"],"names":[],"mappings":";;;;AAEO,IAAM,WAAW,GAAG,UAAC,MAAoB,EAAA;AAC5C,IAAA,OAAA,MAAM,CAAC,IAAI,CAAC,UAAC,CAAa,EAAE,CAAa,EAAA;AACrC,QAAA,IAAI,CAAA,CAAC,KAAD,IAAA,IAAA,CAAC,uBAAD,CAAC,CAAE,MAAM,MAAI,CAAC,KAAD,IAAA,IAAA,CAAC,KAAD,MAAA,GAAA,MAAA,GAAA,CAAC,CAAE,MAAM,CAAA,IAAI,CAAA,CAAC,KAAD,IAAA,IAAA,CAAC,KAAD,MAAA,GAAA,MAAA,GAAA,CAAC,CAAE,MAAM,KAAG,CAAC,KAAA,IAAA,IAAD,CAAC,KAAD,MAAA,GAAA,MAAA,GAAA,CAAC,CAAE,MAAM,CAAA,EAAE;AACjD,YAAA,OAAO,CAAC;AACX;QAED,OAAO,EAAE;AACb,KAAC,CAAC;AANF;;;;"}
|
package/icons/Circle.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
type Props = {
|
|
2
|
+
declare type Props = {
|
|
4
3
|
fill?: string;
|
|
5
4
|
height?: number;
|
|
6
5
|
};
|
|
7
|
-
declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
8
|
-
export {
|
|
6
|
+
export declare const CircleIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
7
|
+
export {};
|
package/icons/Circle.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Circle.js","sources":["../src/icons/Circle.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const CircleIcon = ({ fill = '#FF5C5C', height = 16 }: Props) => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 16 16' fill='none'>\n <circle cx='8' cy='8' r='8' fill={fill} />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,UAAU,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAc,IAAA,QACpEA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;AACnF,QAAAA,sBAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAA,CAAI,CACxC;AAH8D;;;;"}
|
package/icons/CircleLine.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
type Props = {
|
|
2
|
+
declare type Props = {
|
|
4
3
|
fill?: string;
|
|
5
4
|
height?: number;
|
|
6
5
|
};
|
|
7
|
-
declare const CircleLineIcon: ({ fill, height }: Props) => React.ReactElement;
|
|
8
|
-
export {
|
|
6
|
+
export declare const CircleLineIcon: ({ fill, height }: Props) => React.ReactElement;
|
|
7
|
+
export {};
|
package/icons/CircleLine.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CircleLine.js","sources":["../src/icons/CircleLine.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const CircleLineIcon = ({ fill = '#FF5C5C', height = 16 }: Props): React.ReactElement => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 22 12' fill='none'>\n <circle cx='11' cy='6' r='6' fill={fill} />\n <rect y='5' width='22' height='2' fill={fill} />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,cAAc,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAkC,IAAA,QAC5FA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;AACnF,QAAAA,sBAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA;AAC3C,QAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAA,CAAI,CAC9C;AAJsF;;;;"}
|
package/icons/FilledCircle.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
type Props = {
|
|
2
|
+
declare type Props = {
|
|
4
3
|
fill?: string;
|
|
5
4
|
height?: number;
|
|
6
5
|
};
|
|
7
|
-
declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
8
|
-
export {
|
|
6
|
+
export declare const FilledCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
7
|
+
export {};
|
package/icons/FilledCircle.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilledCircle.js","sources":["../src/icons/FilledCircle.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const FilledCircleIcon = ({ fill = '#5A8ECF', height = 16 }: Props) => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 22 22' fill='none'>\n <circle cx='11' cy='11' r='10' fill='url(#paint0_linear)' stroke={fill} strokeWidth='2' />\n <defs>\n <linearGradient\n id='paint0_linear'\n x1='11'\n y1='1'\n x2='11'\n y2='21'\n gradientUnits='userSpaceOnUse'\n >\n <stop stopColor={fill} stopOpacity='0.2' />\n <stop offset='1' stopColor={fill} stopOpacity='0' />\n </linearGradient>\n </defs>\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,gBAAgB,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAc,IAAA,QAC1EA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;QACnFA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,IAAI,EAAC,qBAAqB,EAAC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAG,CAAA;AAC1F,QAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA;YACIA,sBACI,CAAA,aAAA,CAAA,gBAAA,EAAA,EAAA,EAAE,EAAC,eAAe,EAClB,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,GAAG,EACN,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,aAAa,EAAC,gBAAgB,EAAA;AAE9B,gBAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,KAAK,EAAG,CAAA;AAC3C,gBAAAA,sBAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,MAAM,EAAC,GAAG,EAAC,SAAS,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAA,CAAG,CACvC,CACd,CACL;AAhBoE;;;;"}
|
package/icons/Point.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
type Props = {
|
|
2
|
+
declare type Props = {
|
|
4
3
|
fill?: string;
|
|
5
4
|
height?: number;
|
|
6
5
|
};
|
|
7
|
-
declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
8
|
-
export {
|
|
6
|
+
export declare const PointIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
7
|
+
export {};
|
package/icons/Point.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point.js","sources":["../src/icons/Point.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const PointIcon = ({ fill = '#5A8ECF', height = 16 }: Props) => (\n <svg height={height} viewBox='0 0 18 18'>\n <circle cx='9' cy='9' r='9' strokeWidth='1' fill={fill} fillOpacity='0.4' />\n <circle cx='9' cy='9' r='3' strokeWidth='2' stroke='#fff' fill={fill} />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,SAAS,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;IAAc,QACnEA,8CAAK,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAA;QACpCA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,EAAE,WAAW,EAAC,KAAK,EAAG,CAAA;QAC5EA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,WAAW,EAAC,GAAG,EAAC,MAAM,EAAC,MAAM,EAAC,IAAI,EAAE,IAAI,EAAI,CAAA,CACtE;AAJ6D;;;;"}
|
package/icons/StrokeCircle.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
type Props = {
|
|
2
|
+
declare type Props = {
|
|
4
3
|
fill?: string;
|
|
5
4
|
height?: number;
|
|
6
5
|
};
|
|
7
|
-
declare const StrokeCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
8
|
-
export {
|
|
6
|
+
export declare const StrokeCircleIcon: ({ fill, height }: Props) => React.JSX.Element;
|
|
7
|
+
export {};
|
package/icons/StrokeCircle.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StrokeCircle.js","sources":["../src/icons/StrokeCircle.tsx"],"sourcesContent":["import React from 'react';\n\ntype Props = {\n fill?: string;\n height?: number;\n};\n\nexport const StrokeCircleIcon = ({ fill = '#5A8ECF', height = 16 }: Props) => (\n <svg xmlns='http://www.w3.org/2000/svg' height={height} viewBox='0 0 22 22' fill='none'>\n <circle cx='11' cy='11' r='10' stroke={fill} strokeWidth='2' strokeDasharray='8 8' />\n </svg>\n);\n"],"names":["React"],"mappings":";;;;;;;;;;AAOO,IAAM,gBAAgB,GAAG,UAAC,EAAwC,EAAA;QAAtC,EAAgB,GAAA,EAAA,CAAA,IAAA,EAAhB,IAAI,GAAA,EAAA,KAAA,MAAA,GAAG,SAAS,GAAA,EAAA,EAAE,EAAA,GAAA,EAAA,CAAA,MAAW,EAAX,MAAM,GAAG,EAAA,KAAA,MAAA,GAAA,EAAE,GAAA,EAAA;AAAc,IAAA,QAC1EA,sBAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAA;QACnFA,sBAAQ,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAC,GAAG,EAAC,eAAe,EAAC,KAAK,EAAG,CAAA,CACnF;AAHoE;;;;"}
|
package/index.css
CHANGED
|
@@ -1,35 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
:
|
|
3
|
-
}
|
|
4
|
-
--color-light-text-primary: rgba(3, 3, 6, 0.88); /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
6
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
7
|
-
} :root {
|
|
8
|
-
|
|
9
|
-
/* Hard */
|
|
10
|
-
|
|
11
|
-
/* Up */
|
|
12
|
-
|
|
13
|
-
/* Hard up */
|
|
14
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
15
|
-
|
|
16
|
-
/* новые значения, используйте их */
|
|
17
|
-
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
18
|
-
|
|
19
|
-
/* новые значения, используйте их */
|
|
20
|
-
|
|
21
|
-
/* no-unit может приводить к проблемам в calc (#1559) */
|
|
22
|
-
/* stylelint-disable-next-line length-zero-no-unit */
|
|
23
|
-
} :root {
|
|
24
|
-
} /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ /* @deprecated */ :root {
|
|
25
|
-
} /* сбрасывает синюю подсветку при нажатии */ .chart__coreChart_fap27 .recharts-line path {
|
|
1
|
+
:root {
|
|
2
|
+
--color-light-text-primary: rgba(3, 3, 6, 0.88);
|
|
3
|
+
} .chart__coreChart_1x2bj .recharts-line path {
|
|
26
4
|
transition: d 0.2s ease-out;
|
|
27
|
-
} .
|
|
5
|
+
} .chart__coreChart_1x2bj .recharts-text tspan {
|
|
28
6
|
fill: var(--color-light-text-primary);
|
|
29
7
|
font-size: 16px;
|
|
30
8
|
line-height: 22px;
|
|
31
|
-
} .
|
|
9
|
+
} .chart__bar_1x2bj {
|
|
32
10
|
transition: opacity 0.2s ease-out, d 0.2s ease-out;
|
|
33
|
-
} .
|
|
11
|
+
} .chart__unfocused_1x2bj {
|
|
34
12
|
opacity: 0.3;
|
|
35
13
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './Component';
|
|
2
|
+
export * from './types';
|
package/index.js
CHANGED
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["src/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.coreChart {\n & :global(.recharts-line path) {\n transition: d 0.2s ease-out;\n }\n\n & :global(.recharts-text tspan) {\n fill: var(--color-light-text-primary);\n font-size: 16px;\n line-height: 22px;\n }\n}\n\n.bar {\n transition: opacity 0.2s ease-out, d 0.2s ease-out;\n}\n\n.unfocused {\n opacity: 0.3;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,WAAW,CAAC,wBAAwB,CAAC,KAAK,CAAC,kBAAkB,CAAC,WAAW,CAAC,wBAAwB,CAAC;;;;"}
|
package/modern/Component.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { OptionsProps } from
|
|
4
|
-
declare const Chart: {
|
|
2
|
+
import { OptionsProps } from './types';
|
|
3
|
+
export declare const Chart: {
|
|
5
4
|
(props: OptionsProps): React.JSX.Element | null;
|
|
6
5
|
displayName: string;
|
|
7
6
|
};
|
|
8
|
-
export { Chart };
|
package/modern/Component.js
CHANGED
|
@@ -8,15 +8,9 @@ import { LinearGradient } from './components/LinearGradient.js';
|
|
|
8
8
|
import { RectBar } from './components/RectBar.js';
|
|
9
9
|
import { Tick } from './components/Tick/index.js';
|
|
10
10
|
import { TooltipContent } from './components/TooltipContent/index.js';
|
|
11
|
+
import { CustomizedHOC } from './hoc/Customized.js';
|
|
11
12
|
import { useSettings } from './hooks/useSettings/index.js';
|
|
12
|
-
|
|
13
|
-
const CustomizedHOC = (Component, options) => {
|
|
14
|
-
const NewComponent = (props) => React.createElement(Component, { ...props, ...options });
|
|
15
|
-
return NewComponent;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const styles = {"coreChart":"chart__coreChart_fap27","bar":"chart__bar_fap27","unfocused":"chart__unfocused_fap27"};
|
|
19
|
-
require('./index.css')
|
|
13
|
+
import styles from './index.module.css.js';
|
|
20
14
|
|
|
21
15
|
/* eslint-disable @typescript-eslint/no-explicit-any,prefer-template */
|
|
22
16
|
const Chart = (props) => {
|
|
@@ -251,3 +245,4 @@ Chart.displayName = 'Chart';
|
|
|
251
245
|
ResponsiveContainer.displayName = 'ResponsiveContainer';
|
|
252
246
|
|
|
253
247
|
export { Chart };
|
|
248
|
+
//# sourceMappingURL=Component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.js","sources":["../src/Component.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any,prefer-template */\nimport React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport cn from 'classnames';\nimport {\n Area,\n Bar,\n Brush,\n CartesianGrid,\n Cell,\n ComposedChart,\n LabelList,\n Legend,\n Line,\n ResponsiveContainer,\n Tooltip,\n XAxis,\n YAxis,\n} from 'recharts';\n\nimport { CustomizedLabel } from './components/CustomizedLabel';\nimport { Dot } from './components/Dot';\nimport { Legends } from './components/Legends';\nimport { LinearGradient } from './components/LinearGradient';\nimport { RectBar } from './components/RectBar';\nimport { Tick } from './components/Tick';\nimport { TooltipContent } from './components/TooltipContent';\nimport { CustomizedHOC } from './hoc/Customized';\nimport { useSettings } from './hooks/useSettings';\nimport {\n ActiveDotProps,\n CoordinatesProps,\n DataDynamicBooleanProps,\n DataDynamicProps,\n OptionsProps,\n SeriaProps,\n ToggleChartProps,\n} from './types';\n\nimport styles from './index.module.css';\n\nexport const Chart = (props: OptionsProps) => {\n const [{ state, data, charts, filterCount }, { setCharts, setFilterCount }] =\n useSettings(props);\n const [activeDotsState, setActiveDotsState] = useState<ActiveDotProps>({\n prev: null,\n active: null,\n });\n\n const [yBrush, setYBrush] = useState<number | null>(null);\n const [tooltipArrowSide, setTooltipArrowSide] = useState<boolean | null>(null);\n const [heightLegend, setHeightLegend] = useState<number>(0);\n\n const svgRef = useRef<HTMLDivElement>(null);\n const tooltipRef = useRef<any>(null);\n\n const renderGradient = useMemo(() => {\n if (!state) return null;\n\n return state.series.map((item: SeriaProps) => {\n const { chart, gradient } = item;\n\n if (chart !== 'gradient' || !gradient) return null;\n const { gid, points } = gradient;\n\n return (\n <LinearGradient\n key={`${state.id}-${gid}`}\n id={state.id}\n gid={gid}\n points={points}\n />\n );\n });\n }, [state]);\n\n const toggleChart = useCallback(\n (item: ToggleChartProps): void => {\n const {\n chart,\n properties: { dataKey },\n } = item;\n\n const withGrad = chart === 'area';\n let changed = false;\n\n if (charts[dataKey + ''] && filterCount > 1) {\n changed = true;\n setFilterCount((prev) => prev - 1);\n }\n\n if (!charts[dataKey + '']) {\n changed = true;\n setFilterCount((prev) => prev + 1);\n }\n\n if (!changed) return;\n setCharts((prev: DataDynamicBooleanProps) => {\n const newState = { ...prev };\n\n newState[dataKey + ''] = !newState[dataKey + ''];\n if (withGrad) newState[dataKey + '-gradient'] = !newState[dataKey + '-gradient'];\n\n return newState;\n });\n },\n [charts, filterCount, setCharts, setFilterCount],\n );\n\n const legendRef = useCallback((node: HTMLUListElement): void => {\n if (node !== null) {\n setTimeout(() => {\n const { height } = node.getBoundingClientRect();\n\n setHeightLegend(height);\n }, 0);\n }\n }, []);\n\n const renderLegend = useMemo((): React.ReactElement | null => {\n if (!state?.legend) return null;\n\n const translate =\n state?.xAxis?.tickMargin && state?.legend?.verticalAlign !== 'top'\n ? state.xAxis.tickMargin + (state?.brush?.brushMargin || 0)\n : 0;\n\n return (\n <Legend\n {...(state.legend || null)}\n content={\n <Legends\n legend={state.legend}\n series={state.series}\n id={state.id}\n toggleChart={toggleChart}\n ref={legendRef}\n charts={charts}\n />\n }\n wrapperStyle={{\n transform: `translateY(${translate}px)`,\n }}\n />\n );\n }, [state, charts, toggleChart, legendRef]);\n\n const renderCartesianGrid = useMemo((): React.ReactElement | null => {\n if (!state?.cartesianGrid) return null;\n\n return <CartesianGrid {...state.cartesianGrid} />;\n }, [state]);\n\n const renderXAxis = useMemo((): React.ReactElement | null => {\n if (!state?.xAxis) return null;\n\n let tick;\n\n if (state?.xAxis?.tickType === 'point') {\n tick = CustomizedHOC(Tick, { xAxis: state.xAxis });\n } else if (typeof state.xAxis.tick === 'boolean') {\n tick = state.xAxis.tick;\n } else {\n tick = true;\n }\n\n return <XAxis {...state.xAxis} tick={tick} />;\n }, [state]);\n\n const renderYAxis = useMemo((): React.ReactElement | null => {\n if (!state?.yAxis) return null;\n\n let tick;\n\n if (state?.yAxis?.tick) {\n tick = CustomizedHOC(state.yAxis.tick, { state });\n } else if (typeof state.yAxis.tick === 'boolean') {\n tick = state.yAxis.tick;\n } else {\n tick = true;\n }\n\n return <YAxis {...state.yAxis} tick={tick} />;\n }, [state]);\n\n const renderBrush = useMemo((): React.ReactElement | null => {\n if (!state?.brush) return null;\n\n return <Brush y={typeof yBrush === 'number' ? yBrush : 0} {...state.brush} />;\n }, [state, yBrush]);\n\n const renderTooltip = useMemo((): React.ReactElement | null => {\n if (!state?.tooltip) return null;\n\n return (\n <Tooltip\n ref={tooltipRef}\n {...state.tooltip}\n content={CustomizedHOC(TooltipContent, { series: state.series, tooltipArrowSide })}\n />\n );\n }, [state, tooltipArrowSide]);\n\n const renderChartsItems = useMemo(() => {\n if (!state || !charts) return null;\n\n return state.series.map((item: SeriaProps) => {\n const { chart, properties, radius, labelList } = item;\n const show = charts[`${properties.dataKey}`];\n\n switch (chart) {\n case 'bar':\n return show && !item?.hide ? (\n <Bar\n key={`${state.id}-${properties.dataKey}`}\n {...properties}\n shape={<RectBar radius={radius} />}\n >\n {labelList && (\n <LabelList\n dataKey={properties.dataKey.toString()}\n {...labelList}\n content={<CustomizedLabel radius={radius} />}\n />\n )}\n {data.map((_: DataDynamicProps, index: number) => {\n const key = `${state.id}-${properties.dataKey}-${index}`;\n\n return (\n <Cell\n key={key}\n className={cn(\n styles.bar,\n typeof activeDotsState.active === 'number' &&\n activeDotsState.active !== index\n ? styles.unfocused\n : '',\n )}\n />\n );\n })}\n </Bar>\n ) : null;\n\n case 'area':\n case 'line':\n return show && !item?.hide ? (\n <Line\n key={`${state.id}-${properties.dataKey}`}\n {...properties}\n dot={\n properties.dot && properties.dotSettings\n ? CustomizedHOC(Dot, {\n activeDot: activeDotsState.active,\n dotSettings: properties.dotSettings,\n inherit: properties?.inheritStroke\n ? properties.inheritStroke\n : false,\n })\n : false\n }\n activeDot={false}\n />\n ) : null;\n\n case 'gradient':\n return show && !item?.hide ? (\n <Area\n {...item.properties}\n key={`${state.id}-${item.properties.dataKey}`}\n dataKey={`${item.properties.dataKey}`}\n stroke='transparent'\n fill={\n item.gradient.gid\n ? `url(#${state.id}-${item.gradient.gid})`\n : item.properties.fill\n }\n dot={false}\n activeDot={false}\n />\n ) : null;\n\n default:\n return null;\n }\n });\n }, [charts, state, activeDotsState, data]);\n\n // Позиционирование brush\n useEffect(() => {\n if (!state || !state.brush) return;\n if (!heightLegend || heightLegend === 0) return;\n\n const align = state?.legend?.verticalAlign;\n const legendHeight = align === 'top' ? 0 : heightLegend;\n const marginTick = state?.xAxis?.tickMargin ? state?.xAxis?.tickMargin : 0;\n const brushY =\n (svgRef.current?.clientHeight ? svgRef.current.clientHeight : 0) -\n legendHeight -\n state.brush.height -\n (state?.composeChart?.margin?.bottom ? state.composeChart.margin.bottom : 0) +\n marginTick +\n (state.brush?.brushMargin ? state.brush.brushMargin : 0);\n\n setYBrush(brushY);\n }, [heightLegend, state]);\n\n const leaveEvent = (isTooltipActive: boolean): void => {\n if (isTooltipActive) return;\n\n if (typeof activeDotsState.prev !== 'number' || typeof activeDotsState.active !== 'number')\n return;\n\n setActiveDotsState({\n prev: null,\n active: null,\n });\n };\n\n const arrowTooltipEvent = (activeCoordinate: CoordinatesProps): void => {\n if (!state?.tooltip?.arrow) return;\n\n if (state?.tooltip?.arrow && activeCoordinate?.x) {\n const side =\n (svgRef?.current?.clientWidth || 0) -\n (state?.composeChart?.margin?.right || 0) -\n activeCoordinate.x -\n (tooltipRef.current?.state?.boxWidth || 0) >\n 20;\n\n setTooltipArrowSide(side);\n }\n };\n\n const hoverEvent = (isTooltipActive: boolean, activeTooltipIndex: number | undefined): void => {\n if (!isTooltipActive) return;\n\n if (\n typeof activeDotsState.active === 'number' &&\n activeTooltipIndex === activeDotsState.active\n )\n return;\n if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.active !== 'number') {\n setActiveDotsState({\n prev: activeTooltipIndex,\n active: activeTooltipIndex,\n });\n }\n\n if (typeof activeTooltipIndex === 'number' && typeof activeDotsState.prev === 'number') {\n setActiveDotsState((prev: ActiveDotProps) => ({\n prev: prev.active,\n active: activeTooltipIndex,\n }));\n }\n };\n\n const mouseMove = (e: any): void => {\n if (!state?.tooltip) return;\n\n arrowTooltipEvent(e.activeCoordinate);\n hoverEvent(e.isTooltipActive, e.activeTooltipIndex);\n leaveEvent(e.isTooltipActive);\n };\n\n const mouseLeave = (e: any): void => {\n if (!state?.tooltip) return;\n\n leaveEvent(e.isTooltipActive);\n };\n\n if (!data || !charts || !state) return null;\n\n return (\n <div\n className={styles.coreChart}\n ref={svgRef}\n id={state?.id || ''}\n style={{ width: '100%', height: '100%' }}\n >\n <ResponsiveContainer\n debounce={\n state?.responsiveContainer?.debounce ? state.responsiveContainer.debounce : 0\n }\n width='100%'\n >\n <ComposedChart\n {...state?.composeChart}\n onMouseMove={mouseMove}\n onMouseLeave={mouseLeave}\n data={data}\n >\n <defs>{renderGradient}</defs>\n {state.cartesianGrid && renderCartesianGrid}\n {state.xAxis && renderXAxis}\n {state.yAxis && renderYAxis}\n {renderChartsItems}\n {state.tooltip && renderTooltip}\n {state.brush && renderBrush}\n {state.legend && renderLegend}\n </ComposedChart>\n </ResponsiveContainer>\n </div>\n );\n};\n\nChart.displayName = 'Chart';\nResponsiveContainer.displayName = 'ResponsiveContainer';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;AAwCa,MAAA,KAAK,GAAG,CAAC,KAAmB,KAAI;IACzC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,GACvE,WAAW,CAAC,KAAK,CAAC;AACtB,IAAA,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAiB;AACnE,QAAA,IAAI,EAAE,IAAI;AACV,QA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AAQ,GAAG,KAAK,CAAC,mBAAmB,CAAC,QAAQ,GAAG,CAAC,EAEjF,KAAK,EAAC,MAAM,EAAA;AAEZ,YAAA,KAAA,CAAA,aAAA,CAAC,aAAa,EACN,EAAA,GAAA,KAAK,EAAE,YAAY,EACvB,WAAW,EAAE,SAAS,EACtB,YAAY,EAAE,UAAU,EACxB,IAAI,EAAE,IAAI,EAAA;AAEV,gBAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAO,cAAc,CAAQ;gBAC5B,KAAK,CAAC,aAAa,IAAI,mBAAmB;gBAC1C,KAAK,CAAC,KAAK,IAAI,WAAW;gBAC1B,KAAK,CAAC,KAAK,IAAI,WAAW;gBAC1B,iBAAiB;gBACjB,KAAK,CAAC,OAAO,IAAI,aAAa;gBAC9B,KAAK,CAAC,KAAK,IAAI,WAAW;gBAC1B,KAAK,CAAC,MAAM,IAAI,YAAY,CACjB,CACE,CACpB;AAEd;AAEA,KAAK,CAAC,WAAW,GAAG,OAAO;AAC3B,mBAAmB,CAAC,WAAW,GAAG,qBAAqB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomizedLabel.js","sources":["../../src/components/CustomizedLabel.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport React from 'react';\n\nimport { usePathBar } from '../hooks/usePathBar';\n\nexport const CustomizedLabel: React.FC<any> = ({\n x,\n y,\n value,\n offset,\n radius,\n height,\n width,\n formatter,\n}) => {\n const [initHeight] = usePathBar({ radius, height });\n\n return (\n <text\n x={x + width / 2}\n y={y + height - (initHeight + offset)}\n width={width}\n height={initHeight}\n textAnchor='middle'\n >\n <tspan x={x + width / 2}>{formatter ? formatter(value) : value}</tspan>\n </text>\n );\n};\n"],"names":[],"mappings":";;;AAAA;MAKa,eAAe,GAAkB,CAAC,EAC3C,CAAC,EACD,CAAC,EACD,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,KAAK,EACL,SAAS,GACZ,KAAI;AACD,IAAA,MAAM,CAAC,UAAU,CAAC,GAAG,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAEnD,IAAA,QACI,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACI,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,EAChB,CAAC,EAAE,CAAC,GAAG,MAAM,IAAI,UAAU,GAAG,MAAM,CAAC,EACrC,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,UAAU,EAClB,UAAU,EAAC,QAAQ,EAAA;QAEnB,KAAO,CAAA,aAAA,CAAA,OAAA,EAAA,EAAA,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,EAAG,EAAA,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,KAAK,CAAS,CACpE;AAEf;;;;"}
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
.chart__dotUnfocused_1yhxl {
|
|
1
|
+
.chart__dotUnfocused_h58u9 {
|
|
3
2
|
opacity: 0.3;
|
|
4
3
|
}
|
|
5
4
|
|
|
6
|
-
.
|
|
7
|
-
.
|
|
8
|
-
.
|
|
5
|
+
.chart__dot_h58u9,
|
|
6
|
+
.chart__dotItem_h58u9,
|
|
7
|
+
.chart__dotWrap_h58u9 {
|
|
9
8
|
transition: all 0.2s ease;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
.
|
|
13
|
-
animation:
|
|
11
|
+
.chart__dot_h58u9 {
|
|
12
|
+
animation: chart__showDot_h58u9 0.5s ease;
|
|
14
13
|
}
|
|
15
14
|
|
|
16
|
-
@keyframes
|
|
15
|
+
@keyframes chart__showDot_h58u9 {
|
|
17
16
|
from {
|
|
18
17
|
opacity: 0;
|
|
19
18
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import React from 'react';
|
|
3
|
-
import { DotProps } from
|
|
4
|
-
declare const Dot: React.ForwardRefExoticComponent<DotProps & React.RefAttributes<SVGSVGElement>>;
|
|
5
|
-
export { Dot };
|
|
2
|
+
import { DotProps } from '../../types/utils/dot.types';
|
|
3
|
+
export declare const Dot: React.ForwardRefExoticComponent<DotProps & React.RefAttributes<SVGSVGElement>>;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import cn from 'classnames';
|
|
3
3
|
import { PointIcon } from '../../icons/Point.js';
|
|
4
|
-
|
|
5
|
-
const styles = {"dotUnfocused":"chart__dotUnfocused_1yhxl","dot":"chart__dot_1yhxl","dotItem":"chart__dotItem_1yhxl","dotWrap":"chart__dotWrap_1yhxl","showDot":"chart__showDot_1yhxl"};
|
|
6
|
-
require('./index.css')
|
|
4
|
+
import styles from './index.module.css.js';
|
|
7
5
|
|
|
8
6
|
const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings, value, stroke }, ref) => {
|
|
9
7
|
const [windowWidth, setWindowWidth] = useState(0);
|
|
@@ -43,3 +41,4 @@ const Dot = React.forwardRef(({ cx, cy, index, activeDot, dataKey, dotSettings,
|
|
|
43
41
|
});
|
|
44
42
|
|
|
45
43
|
export { Dot };
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Dot/index.tsx"],"sourcesContent":["import React, { useEffect, useState } from 'react';\nimport cn from 'classnames';\n\nimport { PointIcon } from '../../icons/Point';\nimport { DotProps, DotSettingProps } from '../../types/utils/dot.types';\n\nimport styles from './index.module.css';\n\nexport const Dot = React.forwardRef<SVGSVGElement, DotProps>(\n (\n { cx, cy, index, activeDot, dataKey, dotSettings, value, stroke },\n ref,\n ): React.ReactElement | null => {\n const [windowWidth, setWindowWidth] = useState<number>(0);\n\n const [height, setHeight] = useState<number>(0);\n const [width, setWidth] = useState<number>(0);\n const [option, setOption] = useState<DotSettingProps | null>(null);\n\n useEffect(() => {\n let dotSetting: DotSettingProps =\n Array.isArray(dotSettings) && dotSettings.length > 0\n ? dotSettings.find((item) => item.media && windowWidth < item.media)\n : dotSettings;\n\n if (Array.isArray(dotSettings) && dotSettings.length > 0 && !dotSetting) {\n dotSetting = dotSettings[dotSettings.length - 1];\n }\n\n setWindowWidth(window.innerWidth);\n setOption(dotSetting);\n }, [dotSettings, windowWidth]);\n\n useEffect(() => {\n if (!option) return;\n\n if (typeof activeDot === 'number' && activeDot === index) {\n setHeight(option.height * option.scale);\n setWidth(option.width * option.scale);\n } else {\n setHeight(option.height * option.initScale);\n setWidth(option.width * option.initScale);\n }\n }, [activeDot, index, option]);\n\n if (!value) return null;\n\n return (\n <g\n ref={ref}\n className={cn(styles.dot)}\n transform={`translate(${cx - width / 2}, ${cy - height / 2})`}\n >\n <g\n className={cn(styles.dotWrap)}\n transform={`scale(${\n activeDot === index ? option?.scale || 0 : option?.initScale || 0\n })`}\n >\n <svg\n className={cn(\n styles.dotItem,\n activeDot === index ? styles.dotActive : '',\n typeof activeDot === 'number' && activeDot !== index\n ? styles.dotUnfocused\n : '',\n )}\n data-id={index}\n data-name={dataKey}\n width={option?.width || 0}\n height={option?.height || 0}\n >\n <PointIcon fill={stroke} />\n </svg>\n </g>\n </g>\n );\n },\n);\n"],"names":[],"mappings":";;;;;AAQO,MAAM,GAAG,GAAG,KAAK,CAAC,UAAU,CAC/B,CACI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,EAAE,EACjE,GAAG,KACwB;IAC3B,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAEzD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAC/C,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAS,CAAC,CAAC;IAC7C,MAAM,CAAC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SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EACzB,SAAS,EAAE,CAAA,UAAA,EAAa,EAAE,GAAG,KAAK,GAAG,CAAC,CAAA,EAAA,EAAK,EAAE,GAAG,MAAM,GAAG,CAAC,CAAG,CAAA,CAAA,EAAA;AAE7D,QAAA,KAAA,CAAA,aAAA,CAAA,GAAA,EAAA,EACI,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,EAC7B,SAAS,EAAE,CAAA,MAAA,EACP,SAAS,KAAK,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC,GAAG,MAAM,EAAE,SAAS,IAAI,CACpE,CAAG,CAAA,CAAA,EAAA;AAEH,YAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,OAAO,EACd,SAAS,KAAK,KAAK,GAAG,MAAM,CAAC,SAAS,GAAG,EAAE,EAC3C,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK;sBACzC,MAAM,CAAC;sBACP,EAAE,CACX,EAAA,SAAA,EACQ,KAAK,EACH,WAAA,EAAA,OAAO,EAClB,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC,EACzB,MAAM,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC,EAAA;gBAE3B,KAAC,CAAA,aAAA,CAAA,SAAS,EAAC,EAAA,IAAI,EAAE,MAAM,GAAI,CACzB,CACN,CACJ;AAEZ,CAAC;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../../src/components/Dot/index.module.css"],"sourcesContent":[".dotUnfocused {\n opacity: 0.3;\n}\n\n.dot,\n.dotItem,\n.dotWrap {\n transition: all 0.2s ease;\n}\n\n.dot {\n animation: showDot 0.5s ease;\n}\n\n@keyframes showDot {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n"],"names":[],"mappings":";;AAEgB,eAAe,CAAC,cAAc,CAAC,2BAA2B,CAAC,KAAK,CAAC,kBAAkB,CAAC,SAAS,CAAC,sBAAsB,CAAC,SAAS,CAAC,sBAAuD,CAAC;;;;"}
|