@ledgerhq/lumen-ui-react 0.1.56 → 0.1.58
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/ai-rules/RULES.md +5 -4
- package/dist/index.js +176 -172
- package/dist/lib/Components/core/DotIcon/DotIcon.d.ts +0 -13
- package/dist/lib/Components/core/DotIcon/DotIcon.d.ts.map +1 -1
- package/dist/lib/Components/core/DotIcon/DotIcon.js +15 -28
- package/dist/lib/Components/core/DotIcon/getDotIconProps.d.ts +66 -0
- package/dist/lib/Components/core/DotIcon/getDotIconProps.d.ts.map +1 -0
- package/dist/lib/Components/core/DotIcon/getDotIconProps.js +19 -0
- package/dist/lib/Components/core/DotIcon/index.d.ts +9 -1
- package/dist/lib/Components/core/DotIcon/index.d.ts.map +1 -1
- package/dist/lib/Components/core/DotIcon/index.js +10 -0
- package/dist/lib/Components/core/DotSymbol/DotSymbol.d.ts +1 -5
- package/dist/lib/Components/core/DotSymbol/DotSymbol.d.ts.map +1 -1
- package/dist/lib/Components/core/DotSymbol/DotSymbol.js +14 -33
- package/dist/lib/Components/core/DotSymbol/getDotSymbolProps.d.ts +102 -0
- package/dist/lib/Components/core/DotSymbol/getDotSymbolProps.d.ts.map +1 -0
- package/dist/lib/Components/core/DotSymbol/getDotSymbolProps.js +25 -0
- package/dist/lib/Components/core/DotSymbol/index.d.ts +14 -1
- package/dist/lib/Components/core/DotSymbol/index.d.ts.map +1 -1
- package/dist/lib/Components/core/DotSymbol/index.js +15 -0
- package/dist/lib/Components/core/Tooltip/Tooltip.d.ts +0 -8
- package/dist/lib/Components/core/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/lib/Components/core/Tooltip/Tooltip.js +1 -1
- package/dist/lib/Components/visualization/Axis/XAxis/XAxis.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/XAxis/XAxis.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/XAxis/XAxis.js +85 -0
- package/dist/lib/Components/visualization/Axis/XAxis/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/XAxis/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/XAxis/types.d.ts +9 -0
- package/dist/lib/Components/visualization/Axis/XAxis/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/YAxis/YAxis.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/YAxis/YAxis.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/YAxis/YAxis.js +85 -0
- package/dist/lib/Components/visualization/Axis/YAxis/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Axis/YAxis/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/YAxis/types.d.ts +14 -0
- package/dist/lib/Components/visualization/Axis/YAxis/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/index.d.ts +2 -0
- package/dist/lib/Components/visualization/Axis/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Axis/types.d.ts +80 -0
- package/dist/lib/Components/visualization/Axis/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/CartesianChart.js +107 -0
- package/dist/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts +11 -0
- package/dist/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/ChartEmptyLabel/ChartEmptyLabel.js +21 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/RevealAnimationProvider.js +41 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/context.d.ts +15 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/context.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/context.js +10 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/index.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/types.d.ts +57 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/utils.d.ts +35 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/RevealAnimation/utils.js +69 -0
- package/dist/lib/Components/visualization/CartesianChart/context/cartesianChartContext.d.ts +8 -0
- package/dist/lib/Components/visualization/CartesianChart/context/cartesianChartContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/context/cartesianChartContext.js +9 -0
- package/dist/lib/Components/visualization/CartesianChart/context/index.d.ts +3 -0
- package/dist/lib/Components/visualization/CartesianChart/context/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/context/useBuildChartContext.d.ts +25 -0
- package/dist/lib/Components/visualization/CartesianChart/context/useBuildChartContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/context/useBuildChartContext.js +61 -0
- package/dist/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.d.ts +18 -0
- package/dist/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/hooks/useShimmerAnimation.js +15 -0
- package/dist/lib/Components/visualization/CartesianChart/index.d.ts +4 -0
- package/dist/lib/Components/visualization/CartesianChart/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts +127 -0
- package/dist/lib/Components/visualization/CartesianChart/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/utils.d.ts +5 -0
- package/dist/lib/Components/visualization/CartesianChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/CartesianChart/utils.js +24 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChart.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChart.js +90 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.d.ts +10 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartAnimatedCenter.js +61 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.d.ts +9 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartCenter.js +20 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartDescription.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartDescription.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartDescription.js +49 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartTitle.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartTitle.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutChartTitle.js +55 -0
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts +12 -0
- package/dist/lib/Components/visualization/DonutChart/DonutRing.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/DonutRing.js +110 -0
- package/dist/lib/Components/visualization/DonutChart/RevealAnimation.d.ts +7 -0
- package/dist/lib/Components/visualization/DonutChart/RevealAnimation.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/RevealAnimation.js +28 -0
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.d.ts +18 -0
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/donutSizeContext.js +6 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.d.ts +12 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useContrastSafeSeries.js +13 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.d.ts +8 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/hooks/useDonutLoadingAnimation.js +16 -0
- package/dist/lib/Components/visualization/DonutChart/index.d.ts +7 -0
- package/dist/lib/Components/visualization/DonutChart/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/types.d.ts +172 -0
- package/dist/lib/Components/visualization/DonutChart/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/index.d.ts +3 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.d.ts +10 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/useDonutSeries.js +16 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/utils.d.ts +9 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/useDonutSeries/utils.js +46 -0
- package/dist/lib/Components/visualization/DonutChart/utils.d.ts +37 -0
- package/dist/lib/Components/visualization/DonutChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/DonutChart/utils.js +83 -0
- package/dist/lib/Components/visualization/Legend/Legend.d.ts +3 -0
- package/dist/lib/Components/visualization/Legend/Legend.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Legend/Legend.js +23 -0
- package/dist/lib/Components/visualization/Legend/LegendItem.d.ts +7 -0
- package/dist/lib/Components/visualization/Legend/LegendItem.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Legend/LegendItem.js +19 -0
- package/dist/lib/Components/visualization/Legend/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Legend/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Legend/types.d.ts +32 -0
- package/dist/lib/Components/visualization/Legend/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/Line.d.ts +3 -0
- package/dist/lib/Components/visualization/Line/Line.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/Line.js +82 -0
- package/dist/lib/Components/visualization/Line/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Line/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/types.d.ts +45 -0
- package/dist/lib/Components/visualization/Line/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/utils.d.ts +28 -0
- package/dist/lib/Components/visualization/Line/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Line/utils.js +34 -0
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/LineChart.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChart.js +181 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts +9 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/LineChartEmptyState.js +51 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/index.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/types.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/utils.d.ts +8 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/LineChartEmptyState/utils.js +8 -0
- package/dist/lib/Components/visualization/LineChart/index.d.ts +3 -0
- package/dist/lib/Components/visualization/LineChart/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/types.d.ts +82 -0
- package/dist/lib/Components/visualization/LineChart/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/utils.d.ts +56 -0
- package/dist/lib/Components/visualization/LineChart/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/LineChart/utils.js +57 -0
- package/dist/lib/Components/visualization/Point/Point.d.ts +4 -0
- package/dist/lib/Components/visualization/Point/Point.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/Point.js +122 -0
- package/dist/lib/Components/visualization/Point/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Point/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.d.ts +7 -0
- package/dist/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/MagneticPointsProvider.js +22 -0
- package/dist/lib/Components/visualization/Point/pointContext/index.d.ts +3 -0
- package/dist/lib/Components/visualization/Point/pointContext/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/magneticPointsContext.d.ts +30 -0
- package/dist/lib/Components/visualization/Point/pointContext/magneticPointsContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/pointContext/magneticPointsContext.js +14 -0
- package/dist/lib/Components/visualization/Point/types.d.ts +110 -0
- package/dist/lib/Components/visualization/Point/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/usePointGeometry.d.ts +33 -0
- package/dist/lib/Components/visualization/Point/usePointGeometry.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/usePointGeometry.js +30 -0
- package/dist/lib/Components/visualization/Point/utils.d.ts +51 -0
- package/dist/lib/Components/visualization/Point/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Point/utils.js +54 -0
- package/dist/lib/Components/visualization/ReferenceLine/ReferenceLine.d.ts +3 -0
- package/dist/lib/Components/visualization/ReferenceLine/ReferenceLine.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/ReferenceLine.js +42 -0
- package/dist/lib/Components/visualization/ReferenceLine/index.d.ts +3 -0
- package/dist/lib/Components/visualization/ReferenceLine/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/types.d.ts +74 -0
- package/dist/lib/Components/visualization/ReferenceLine/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/useReferenceLineGeometry.d.ts +21 -0
- package/dist/lib/Components/visualization/ReferenceLine/useReferenceLineGeometry.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/useReferenceLineGeometry.js +49 -0
- package/dist/lib/Components/visualization/ReferenceLine/utils.d.ts +50 -0
- package/dist/lib/Components/visualization/ReferenceLine/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/ReferenceLine/utils.js +66 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/ChartTooltipItem.d.ts +9 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/ChartTooltipItem.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/ChartTooltipItem.js +50 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts +12 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/DefaultScrubberTooltip.js +82 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.d.ts +58 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/DefaultScrubberTooltip/utils.js +80 -0
- package/dist/lib/Components/visualization/Scrubber/Scrubber.d.ts +29 -0
- package/dist/lib/Components/visualization/Scrubber/Scrubber.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/Scrubber.js +114 -0
- package/dist/lib/Components/visualization/Scrubber/ScrubberProvider.d.ts +3 -0
- package/dist/lib/Components/visualization/Scrubber/ScrubberProvider.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/ScrubberProvider.js +154 -0
- package/dist/lib/Components/visualization/Scrubber/context/index.d.ts +2 -0
- package/dist/lib/Components/visualization/Scrubber/context/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/context/scrubberContext.d.ts +8 -0
- package/dist/lib/Components/visualization/Scrubber/context/scrubberContext.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/context/scrubberContext.js +9 -0
- package/dist/lib/Components/visualization/Scrubber/index.d.ts +4 -0
- package/dist/lib/Components/visualization/Scrubber/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/types.d.ts +130 -0
- package/dist/lib/Components/visualization/Scrubber/types.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts +29 -0
- package/dist/lib/Components/visualization/Scrubber/useScrubberGeometry.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/useScrubberGeometry.js +37 -0
- package/dist/lib/Components/visualization/Scrubber/utils.d.ts +79 -0
- package/dist/lib/Components/visualization/Scrubber/utils.d.ts.map +1 -0
- package/dist/lib/Components/visualization/Scrubber/utils.js +104 -0
- package/dist/lib/Components/visualization/config.d.ts +162 -0
- package/dist/lib/Components/visualization/config.d.ts.map +1 -0
- package/dist/lib/Components/visualization/config.js +156 -0
- package/dist/lib/Components/visualization/index.d.ts +8 -0
- package/dist/lib/Components/visualization/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/index.js +27 -0
- package/dist/lib/Components/visualization/utils/domain/domain.d.ts +18 -0
- package/dist/lib/Components/visualization/utils/domain/domain.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/domain/domain.js +35 -0
- package/dist/lib/Components/visualization/utils/index.d.ts +2 -0
- package/dist/lib/Components/visualization/utils/index.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/numbers.d.ts +13 -0
- package/dist/lib/Components/visualization/utils/numbers.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/numbers.js +5 -0
- package/dist/lib/Components/visualization/utils/scales/scales.d.ts +47 -0
- package/dist/lib/Components/visualization/utils/scales/scales.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/scales/scales.js +32 -0
- package/dist/lib/Components/visualization/utils/ticks/ticks.d.ts +35 -0
- package/dist/lib/Components/visualization/utils/ticks/ticks.d.ts.map +1 -0
- package/dist/lib/Components/visualization/utils/ticks/ticks.js +23 -0
- package/dist/lib/Components/visualization/utils/types.d.ts +63 -0
- package/dist/lib/Components/visualization/utils/types.d.ts.map +1 -0
- package/dist/libs/design-core/dist/lib/colorContrast/colorContrast.js +15 -0
- package/dist/libs/design-core/dist/lib/colorContrast/hexToHsl.js +14 -0
- package/dist/libs/design-core/dist/lib/colorContrast/hslToHex.js +10 -0
- package/dist/libs/design-core/dist/lib/themes/js/primitives/primitive.colors.js +15 -0
- package/dist/libs/utils-shared/dist/index.js +115 -113
- package/dist/package.json +12 -4
- package/package.json +12 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/visualization/config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;8BAwBqC,UAAU;;;;;;;;;;;;;;;;;;;;;;;QA2BnE,yDAAyD;;;;;;;;;;;;;;QAezD,oEAAoE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8CpE,2EAA2E;;;;;QAE3E,wEAAwE;;;;YAItE,8EAA8E;;YAE9E;;;;eAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCC,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { cssVar as e } from "../../../libs/design-core/dist/lib/cssVar/cssVar.js";
|
|
2
|
+
const t = {
|
|
3
|
+
color: {
|
|
4
|
+
stroke: e("var(--border-muted)"),
|
|
5
|
+
gridLine: e("var(--border-muted-subtle-transparent)"),
|
|
6
|
+
mutedLine: e("var(--border-muted-subtle)"),
|
|
7
|
+
markOutline: e("var(--background-canvas)"),
|
|
8
|
+
textMuted: e("var(--text-muted)"),
|
|
9
|
+
text: e("var(--text-base)")
|
|
10
|
+
},
|
|
11
|
+
strokeWidth: {
|
|
12
|
+
hairline: e("var(--stroke-1)"),
|
|
13
|
+
line: e("var(--stroke-2)")
|
|
14
|
+
},
|
|
15
|
+
font: {
|
|
16
|
+
family: e("var(--font-family-font)"),
|
|
17
|
+
labelSize: e("var(--font-style-body-4-size)"),
|
|
18
|
+
labelWeightMedium: e("var(--font-style-body-4-weight-medium)"),
|
|
19
|
+
bodySize: e("var(--font-style-body-3-size)"),
|
|
20
|
+
bodyWeightMedium: e("var(--font-style-body-3-weight-medium)"),
|
|
21
|
+
bodyWeightSemiBold: e("var(--font-style-body-3-weight-semi-bold)")
|
|
22
|
+
},
|
|
23
|
+
root: {
|
|
24
|
+
defaultHeight: 240,
|
|
25
|
+
zeroPadding: { top: 0, right: 0, bottom: 0, left: 0 }
|
|
26
|
+
},
|
|
27
|
+
axis: {
|
|
28
|
+
defaultHeight: 28,
|
|
29
|
+
defaultWidth: 40,
|
|
30
|
+
tickMarkSize: 4,
|
|
31
|
+
tickLabelOffset: 6,
|
|
32
|
+
gridDashArray: "3 3",
|
|
33
|
+
lineColor: e("var(--border-muted)")
|
|
34
|
+
},
|
|
35
|
+
line: {
|
|
36
|
+
areaGradientOpacity: 0.25
|
|
37
|
+
},
|
|
38
|
+
referenceLine: {
|
|
39
|
+
dashArray: "0.1 6"
|
|
40
|
+
},
|
|
41
|
+
point: {
|
|
42
|
+
defaultSize: 10,
|
|
43
|
+
arrowWidth: 6,
|
|
44
|
+
arrowHeight: 4,
|
|
45
|
+
labelGap: 4,
|
|
46
|
+
labelFontSize: 10,
|
|
47
|
+
defaultColor: e("var(--background-muted-strong)"),
|
|
48
|
+
/** Character width as a ratio of the label font size. */
|
|
49
|
+
labelCharWidthRatio: 0.6
|
|
50
|
+
},
|
|
51
|
+
scrubber: {
|
|
52
|
+
beaconRadius: 5,
|
|
53
|
+
beaconStrokeWidth: 2,
|
|
54
|
+
lineColor: e("var(--border-base)"),
|
|
55
|
+
overlayColor: e("var(--background-base)"),
|
|
56
|
+
overlayOffset: 2,
|
|
57
|
+
overlayLineInset: 0.5,
|
|
58
|
+
overlayOpacity: 0.8,
|
|
59
|
+
lineGradientEdgeOpacity: 0.1,
|
|
60
|
+
defaultMagnetRadius: 8,
|
|
61
|
+
keyboardStep: 1,
|
|
62
|
+
/** Fraction of the data range moved per shift + arrow-key press. */
|
|
63
|
+
keyboardPageStepRatio: 0.1,
|
|
64
|
+
keyboardPageStepMin: 1,
|
|
65
|
+
keyboardPageStepMax: 10
|
|
66
|
+
},
|
|
67
|
+
tooltip: {
|
|
68
|
+
defaultOffset: 10,
|
|
69
|
+
paddingX: 8,
|
|
70
|
+
paddingY: 8,
|
|
71
|
+
rowHeight: 16,
|
|
72
|
+
rowGap: 4,
|
|
73
|
+
titleGap: 6,
|
|
74
|
+
labelValueGap: 12,
|
|
75
|
+
transition: "opacity 0.15s ease-out 0.05s",
|
|
76
|
+
defaultMinWidth: 80,
|
|
77
|
+
background: e("var(--background-muted)"),
|
|
78
|
+
borderRadius: e("var(--border-radius-sm)")
|
|
79
|
+
},
|
|
80
|
+
emptyState: {
|
|
81
|
+
minDrawablePoints: 2,
|
|
82
|
+
loadingAriaLabel: "Loading chart",
|
|
83
|
+
defaultLabel: "No data",
|
|
84
|
+
gridLineRatios: [0.3, 0.5, 0.7],
|
|
85
|
+
placeholderViewWidth: 728,
|
|
86
|
+
placeholderViewHeight: 208,
|
|
87
|
+
placeholderLinePath: "M1.00 128.27 C4.02 127.46 13.09 125.96 19.13 123.47 C25.19 120.97 31.23 116.53 37.28 113.31 C43.33 110.10 49.38 106.15 55.42 104.20 C61.48 102.24 67.52 102.53 73.57 101.61 C79.61 100.69 85.65 99.89 91.71 98.70 C97.75 97.51 103.80 95.67 109.84 94.47 C115.90 93.27 121.94 91.71 127.99 91.49 C134.03 91.26 140.09 91.53 146.13 93.16 C152.19 94.79 158.23 98.37 164.27 101.25 C170.32 104.13 176.36 108.16 182.42 110.45 C188.46 112.74 194.51 114.41 200.55 115.00 C206.61 115.60 212.65 114.56 218.70 114.03 C224.75 113.50 230.80 112.56 236.84 111.86 C242.88 111.17 248.94 110.27 254.98 109.87 C261.03 109.48 267.07 109.14 273.13 109.49 C279.17 109.82 285.22 110.90 291.26 111.90 C297.32 112.90 303.36 114.47 309.41 115.50 C315.46 116.54 321.50 118.12 327.55 118.11 C333.59 118.10 339.65 118.08 345.69 115.45 C351.74 112.81 357.78 107.02 363.84 102.29 C369.88 97.54 375.93 90.87 381.97 87.01 C388.03 83.16 394.07 79.81 400.11 79.12 C406.17 78.43 412.21 80.79 418.26 82.88 C424.30 84.99 430.36 88.88 436.40 91.74 C442.45 94.59 448.49 98.24 454.55 100.02 C460.59 101.80 466.64 102.08 472.68 102.44 C478.72 102.81 484.78 102.31 490.82 102.21 C496.87 102.11 502.92 101.95 508.97 101.84 C515.01 101.74 521.07 101.47 527.11 101.58 C533.16 101.68 539.20 101.57 545.26 102.48 C551.30 103.39 557.34 105.37 563.39 107.02 C569.43 108.68 575.49 111.02 581.53 112.40 C587.59 113.79 593.63 114.62 599.68 115.30 C605.72 115.98 611.78 115.81 617.82 116.48 C623.87 117.16 629.91 118.39 635.95 119.32 C642.01 120.25 648.05 121.51 654.10 122.04 C660.15 122.57 666.20 123.89 672.24 122.47 C678.30 121.07 684.34 117.39 690.39 113.54 C696.43 109.69 702.49 103.53 708.53 99.38 C714.57 95.23 722.31 90.65 726.66 88.61"
|
|
88
|
+
},
|
|
89
|
+
reveal: {
|
|
90
|
+
durationInSeconds: 0.8,
|
|
91
|
+
easing: "linear",
|
|
92
|
+
pointFadeDurationInSeconds: 0.2,
|
|
93
|
+
pointFadeInAfterClipInSeconds: -0.1
|
|
94
|
+
},
|
|
95
|
+
shimmer: {
|
|
96
|
+
pulseDurationInSeconds: 2,
|
|
97
|
+
pulseEasing: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
98
|
+
},
|
|
99
|
+
donut: {
|
|
100
|
+
defaultSegmentColor: e("var(--background-muted-strong)"),
|
|
101
|
+
emptyRingColor: e("var(--background-muted)"),
|
|
102
|
+
/** Horizontal inset (px per side) so center text clears the inner ring. */
|
|
103
|
+
centerContentInset: { md: 4, sm: 2 },
|
|
104
|
+
/** Defaults applied by `useDonutSeries` when preparing a raw series. */
|
|
105
|
+
series: {
|
|
106
|
+
maxSegments: 7,
|
|
107
|
+
otherId: "other",
|
|
108
|
+
/** A tail shorter than this is kept as-is rather than folded into `other`. */
|
|
109
|
+
minGroupedSegments: 2,
|
|
110
|
+
/**
|
|
111
|
+
* Floor on the segments kept before the tail, so an out-of-range
|
|
112
|
+
* `groupBelowShare` (`1`, or `4` misread as "4%") can never fold the
|
|
113
|
+
* whole series away.
|
|
114
|
+
*/
|
|
115
|
+
minKeptSegments: 1
|
|
116
|
+
},
|
|
117
|
+
hover: {
|
|
118
|
+
dimOpacity: 0.3,
|
|
119
|
+
opacityTransition: "opacity 150ms ease",
|
|
120
|
+
popTransition: "transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1)",
|
|
121
|
+
centerTextTransition: "opacity 180ms ease, transform 180ms ease"
|
|
122
|
+
},
|
|
123
|
+
placeholder: {
|
|
124
|
+
segmentValues: [25, 19, 15, 13, 10, 10, 8]
|
|
125
|
+
},
|
|
126
|
+
loading: {
|
|
127
|
+
durationInSeconds: 2,
|
|
128
|
+
minOpacity: 0.5,
|
|
129
|
+
easing: "cubic-bezier(0.4, 0, 0.6, 1)",
|
|
130
|
+
ariaLabel: "Loading donut chart"
|
|
131
|
+
},
|
|
132
|
+
size: {
|
|
133
|
+
md: {
|
|
134
|
+
box: 168,
|
|
135
|
+
innerRadius: 61,
|
|
136
|
+
outerRadius: 83,
|
|
137
|
+
cornerRadius: 4,
|
|
138
|
+
padAngle: 0.06,
|
|
139
|
+
hoverOffset: 3.36,
|
|
140
|
+
minSegmentArc: 8
|
|
141
|
+
},
|
|
142
|
+
sm: {
|
|
143
|
+
box: 80,
|
|
144
|
+
innerRadius: 28,
|
|
145
|
+
outerRadius: 39,
|
|
146
|
+
cornerRadius: 2,
|
|
147
|
+
padAngle: 0.08,
|
|
148
|
+
hoverOffset: 2,
|
|
149
|
+
minSegmentArc: 4
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
export {
|
|
155
|
+
t as chartConfig
|
|
156
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/Components/visualization/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DonutChart as o } from "./DonutChart/DonutChart.js";
|
|
2
|
+
import { DonutChartCenter as n } from "./DonutChart/DonutChartCenter.js";
|
|
3
|
+
import { DonutChartDescription as f } from "./DonutChart/DonutChartDescription.js";
|
|
4
|
+
import { DonutChartTitle as m } from "./DonutChart/DonutChartTitle.js";
|
|
5
|
+
import { prepareDonutSeries as i } from "./DonutChart/useDonutSeries/utils.js";
|
|
6
|
+
import { useDonutSeries as C } from "./DonutChart/useDonutSeries/useDonutSeries.js";
|
|
7
|
+
import { Legend as b } from "./Legend/Legend.js";
|
|
8
|
+
import { LineChart as s } from "./LineChart/LineChart.js";
|
|
9
|
+
import { Point as L, PointLabel as S } from "./Point/Point.js";
|
|
10
|
+
import { ReferenceLine as P } from "./ReferenceLine/ReferenceLine.js";
|
|
11
|
+
import { Scrubber as g } from "./Scrubber/Scrubber.js";
|
|
12
|
+
import { useScrubberContext as T } from "./Scrubber/context/scrubberContext.js";
|
|
13
|
+
export {
|
|
14
|
+
o as DonutChart,
|
|
15
|
+
n as DonutChartCenter,
|
|
16
|
+
f as DonutChartDescription,
|
|
17
|
+
m as DonutChartTitle,
|
|
18
|
+
b as Legend,
|
|
19
|
+
s as LineChart,
|
|
20
|
+
L as Point,
|
|
21
|
+
S as PointLabel,
|
|
22
|
+
P as ReferenceLine,
|
|
23
|
+
g as Scrubber,
|
|
24
|
+
i as prepareDonutSeries,
|
|
25
|
+
C as useDonutSeries,
|
|
26
|
+
T as useScrubberContext
|
|
27
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AxisBounds, BaseAxisProps } from '../../Axis';
|
|
2
|
+
import { Series } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Compute the X domain (index-based) from series data and axis config.
|
|
5
|
+
* For the X axis the domain is typically 0..N-1 where N = longest series length,
|
|
6
|
+
* unless explicit `data` is provided on the axis config.
|
|
7
|
+
*/
|
|
8
|
+
export declare const computeXDomain: (series: Series[], axisConfig?: Partial<BaseAxisProps>) => AxisBounds;
|
|
9
|
+
/**
|
|
10
|
+
* Compute the Y domain (value-based) from series data and axis config.
|
|
11
|
+
* Scans all non-null values across all series to find min/max.
|
|
12
|
+
*/
|
|
13
|
+
export declare const computeYDomain: (series: Series[], axisConfig?: Partial<BaseAxisProps>) => AxisBounds;
|
|
14
|
+
/**
|
|
15
|
+
* Compute the data length (number of discrete positions on the index axis).
|
|
16
|
+
*/
|
|
17
|
+
export declare const computeDataLength: (series: Series[], axisConfig?: Partial<BaseAxisProps>) => number;
|
|
18
|
+
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/utils/domain/domain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAWvC;;;;GAIG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EAAE,EAChB,aAAa,OAAO,CAAC,aAAa,CAAC,KAClC,UAIA,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,cAAc,GACzB,QAAQ,MAAM,EAAE,EAChB,aAAa,OAAO,CAAC,aAAa,CAAC,KAClC,UAC8D,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,MAAM,EAAE,EAChB,aAAa,OAAO,CAAC,aAAa,CAAC,KAClC,MAAiE,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
const h = (t, n) => r(
|
|
2
|
+
f(t, n?.data),
|
|
3
|
+
n?.domain
|
|
4
|
+
), p = (t, n) => r(u(t), n?.domain), g = (t, n) => n?.data?.length || c(t), f = (t, n) => n?.length ? a(n) ? x(n, { min: 0, max: 0 }) : { min: 0, max: n.length - 1 } : { min: 0, max: Math.max(0, c(t) - 1) }, u = (t) => {
|
|
5
|
+
const n = o();
|
|
6
|
+
for (const { data: e } of t)
|
|
7
|
+
if (e)
|
|
8
|
+
for (const m of e)
|
|
9
|
+
m !== null && i(n, m);
|
|
10
|
+
return s(n, { min: 0, max: 1 });
|
|
11
|
+
}, a = (t) => typeof t[0] == "number", x = (t, n) => {
|
|
12
|
+
const e = o();
|
|
13
|
+
for (const m of t) i(e, m);
|
|
14
|
+
return s(e, n);
|
|
15
|
+
}, o = () => ({
|
|
16
|
+
min: 0,
|
|
17
|
+
max: 0,
|
|
18
|
+
hasValue: !1
|
|
19
|
+
}), i = (t, n) => {
|
|
20
|
+
if (Number.isFinite(n)) {
|
|
21
|
+
if (!t.hasValue) {
|
|
22
|
+
t.min = n, t.max = n, t.hasValue = !0;
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
n < t.min && (t.min = n), n > t.max && (t.max = n);
|
|
26
|
+
}
|
|
27
|
+
}, s = ({ min: t, max: n, hasValue: e }, m) => e ? { min: t, max: n } : m, c = (t) => t.reduce((n, e) => Math.max(n, e.data?.length ?? 0), 0), r = (t, n) => n ? typeof n == "function" ? n(t) : {
|
|
28
|
+
min: n.min ?? t.min,
|
|
29
|
+
max: n.max ?? t.max
|
|
30
|
+
} : t;
|
|
31
|
+
export {
|
|
32
|
+
g as computeDataLength,
|
|
33
|
+
h as computeXDomain,
|
|
34
|
+
p as computeYDomain
|
|
35
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/visualization/utils/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,YAAY,EACZ,MAAM,GACP,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type guard for a finite number. Narrows out `null`, `undefined`, `NaN` and
|
|
3
|
+
* `Infinity`, i.e. any value that cannot be projected to a valid coordinate or
|
|
4
|
+
* counted as a drawable data point.
|
|
5
|
+
*/
|
|
6
|
+
export declare const isFiniteNumber: (value: unknown) => value is number;
|
|
7
|
+
/**
|
|
8
|
+
* Constrains `value` to the inclusive `[min, max]` range. For a degenerate
|
|
9
|
+
* range where `min > max` (e.g. an index range `[0, length - 1]` for empty
|
|
10
|
+
* data), `min` takes precedence and is returned — matching `lodash.clamp`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const clamp: (value: number, min: number, max: number) => number;
|
|
13
|
+
//# sourceMappingURL=numbers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"numbers.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/visualization/utils/numbers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACjC,CAAC;AAEzB;;;;GAIG;AACH,eAAO,MAAM,KAAK,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,KAAG,MAC3B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { AxisBounds, BaseAxisProps } from '../../Axis';
|
|
2
|
+
import { CategoricalScale, ChartScaleFunction, NumericScale } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Creates a numeric scale.
|
|
5
|
+
*
|
|
6
|
+
* When `nice` is `true` (default), the domain is rounded outward to clean
|
|
7
|
+
* boundaries via d3's `.nice()` (e.g. `[4, 98]` → `[0, 100]`). Set `nice` to
|
|
8
|
+
* `false` to keep the domain exactly as provided so data fills the range
|
|
9
|
+
* boundary-to-boundary.
|
|
10
|
+
*/
|
|
11
|
+
export declare const getNumericScale: ({ scaleType, domain, range, nice, }: {
|
|
12
|
+
scaleType: "linear" | "log";
|
|
13
|
+
domain: AxisBounds;
|
|
14
|
+
range: AxisBounds;
|
|
15
|
+
nice?: boolean;
|
|
16
|
+
}) => NumericScale;
|
|
17
|
+
export declare const getCategoricalScale: ({ domain, range, padding, }: {
|
|
18
|
+
domain: AxisBounds;
|
|
19
|
+
range: AxisBounds;
|
|
20
|
+
padding?: number;
|
|
21
|
+
}) => CategoricalScale;
|
|
22
|
+
/**
|
|
23
|
+
* Checks if a scale type config value refers to a band (categorical) scale.
|
|
24
|
+
*/
|
|
25
|
+
export declare const isBandScaleType: (scaleType: BaseAxisProps["scaleType"]) => scaleType is "band";
|
|
26
|
+
/**
|
|
27
|
+
* Checks if a scale is a categorical scale.
|
|
28
|
+
*/
|
|
29
|
+
export declare const isCategoricalScale: (scale: ChartScaleFunction) => scale is CategoricalScale;
|
|
30
|
+
/**
|
|
31
|
+
* Checks if a scale is a numeric scale.
|
|
32
|
+
*/
|
|
33
|
+
export declare const isNumericScale: (scale: ChartScaleFunction) => scale is NumericScale;
|
|
34
|
+
/**
|
|
35
|
+
* Converts a single data-space value to pixel-space on a given scale.
|
|
36
|
+
* For band scales the result is centered within the band.
|
|
37
|
+
*/
|
|
38
|
+
export declare const getPointOnScale: (value: number, scale: ChartScaleFunction) => number;
|
|
39
|
+
/**
|
|
40
|
+
* Projects a single data-space coordinate pair into pixel-space.
|
|
41
|
+
* Handles centering for categorical (band) scales.
|
|
42
|
+
*/
|
|
43
|
+
export declare const projectPoint: (dataX: number, dataY: number, xScale: ChartScaleFunction, yScale: ChartScaleFunction) => {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=scales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/utils/scales/scales.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EACV,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACb,MAAM,UAAU,CAAC;AAElB;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,qCAK7B;IACD,SAAS,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC5B,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,KAAG,YAOH,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,6BAIjC;IACD,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,KAAG,gBAUH,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,aAAa,CAAC,WAAW,CAAC,KACpC,SAAS,IAAI,MAA8B,CAAC;AAE/C;;GAEG;AACH,eAAO,MAAM,kBAAkB,GAC7B,OAAO,kBAAkB,KACxB,KAAK,IAAI,gBAEX,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,kBAAkB,KACxB,KAAK,IAAI,YAEX,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EACb,OAAO,kBAAkB,KACxB,MAKF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,OAAO,MAAM,EACb,QAAQ,kBAAkB,EAC1B,QAAQ,kBAAkB,KACzB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAGvB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { scaleBand as m, scaleLog as s, scaleLinear as d } from "d3-scale";
|
|
2
|
+
const g = ({
|
|
3
|
+
scaleType: n,
|
|
4
|
+
domain: t,
|
|
5
|
+
range: r,
|
|
6
|
+
nice: e = !0
|
|
7
|
+
}) => {
|
|
8
|
+
const i = n === "log" ? s() : d();
|
|
9
|
+
return i.domain([t.min, t.max]), e && i.nice(), i.range([r.min, r.max]);
|
|
10
|
+
}, l = ({
|
|
11
|
+
domain: n,
|
|
12
|
+
range: t,
|
|
13
|
+
padding: r = 0.1
|
|
14
|
+
}) => {
|
|
15
|
+
const e = Array.from(
|
|
16
|
+
{ length: n.max - n.min + 1 },
|
|
17
|
+
(i, o) => n.min + o
|
|
18
|
+
);
|
|
19
|
+
return m().domain(e).range([t.min, t.max]).paddingInner(r).paddingOuter(r / 2);
|
|
20
|
+
}, f = (n) => n === "band", c = (n) => "bandwidth" in n && typeof n.bandwidth == "function", p = (n) => !c(n), a = (n, t) => c(t) ? (t(n) ?? 0) + t.bandwidth() / 2 : t(n), x = (n, t, r, e) => ({
|
|
21
|
+
x: a(n, r),
|
|
22
|
+
y: a(t, e)
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
l as getCategoricalScale,
|
|
26
|
+
g as getNumericScale,
|
|
27
|
+
a as getPointOnScale,
|
|
28
|
+
f as isBandScaleType,
|
|
29
|
+
c as isCategoricalScale,
|
|
30
|
+
p as isNumericScale,
|
|
31
|
+
x as projectPoint
|
|
32
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { BaseAxisProps } from '../../Axis';
|
|
2
|
+
import { ChartScaleFunction } from '../types';
|
|
3
|
+
export declare const APPROXIMATE_TICK_COUNT = 5;
|
|
4
|
+
export type TickData = {
|
|
5
|
+
position: number;
|
|
6
|
+
value: number;
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Resolves which numeric tick values should appear on the axis.
|
|
11
|
+
*
|
|
12
|
+
* Priority:
|
|
13
|
+
* 1. Explicit `ticks` provided by the consumer.
|
|
14
|
+
* 2. Axis `data` — when provided, ticks come from the data itself (numeric
|
|
15
|
+
* values for numeric data, indices for string data) so the rendered ticks
|
|
16
|
+
* mirror exactly what the consumer asked for, with no d3-invented
|
|
17
|
+
* intermediate values.
|
|
18
|
+
* 3. Scale-specific defaults (band domain, or `scale.ticks()` for numeric).
|
|
19
|
+
*/
|
|
20
|
+
export declare const getTickValues: (scale: ChartScaleFunction, explicitTicks?: number[], axisData?: BaseAxisProps["data"]) => number[];
|
|
21
|
+
/**
|
|
22
|
+
* Converts a tick value to its pixel position on the axis.
|
|
23
|
+
* Band scales are centered within the band.
|
|
24
|
+
*/
|
|
25
|
+
export declare const getTickPosition: (scale: ChartScaleFunction, tick: number) => number;
|
|
26
|
+
/**
|
|
27
|
+
* Resolves the display label for a tick value.
|
|
28
|
+
* Priority: formatter > string label lookup > raw value.
|
|
29
|
+
*/
|
|
30
|
+
export declare const getTickLabel: (tick: number, axisData: BaseAxisProps["data"], formatter?: (value: number | string) => string) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Builds the complete tick data array from a scale and axis configuration.
|
|
33
|
+
*/
|
|
34
|
+
export declare const buildTicksData: (scale: ChartScaleFunction, axisConfig?: BaseAxisProps, explicitTicks?: number[], formatter?: (value: number | string) => string) => TickData[];
|
|
35
|
+
//# sourceMappingURL=ticks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/Components/visualization/utils/ticks/ticks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAEnD,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,kBAAkB,EACzB,gBAAgB,MAAM,EAAE,EACxB,WAAW,aAAa,CAAC,MAAM,CAAC,KAC/B,MAAM,EAUR,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,kBAAkB,EACzB,MAAM,MAAM,KACX,MAKF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GACvB,MAAM,MAAM,EACZ,UAAU,aAAa,CAAC,MAAM,CAAC,EAC/B,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,KAC7C,MAeF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,GACzB,OAAO,kBAAkB,EACzB,aAAa,aAAa,EAC1B,gBAAgB,MAAM,EAAE,EACxB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,KAC7C,QAAQ,EASV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { isCategoricalScale as i, isNumericScale as g } from "../scales/scales.js";
|
|
2
|
+
const f = 5, d = (r, n, e) => n || (e && e.length > 0 ? typeof e[0] == "number" ? e : e.map((o, t) => t) : i(r) ? r.domain() : g(r) ? r.ticks(f) : []), b = (r, n) => i(r) ? (r(n) ?? 0) + r.bandwidth() / 2 : r(n), l = (r, n, e) => {
|
|
3
|
+
const o = n && Array.isArray(n) && typeof n[0] == "string";
|
|
4
|
+
if (e) {
|
|
5
|
+
const t = o && n[r] !== void 0 ? n[r] : r;
|
|
6
|
+
return String(e(t));
|
|
7
|
+
}
|
|
8
|
+
return o && n[r] !== void 0 ? String(n[r]) : String(r);
|
|
9
|
+
}, S = (r, n, e, o) => {
|
|
10
|
+
const t = n?.data;
|
|
11
|
+
return d(r, e, t).map((u) => ({
|
|
12
|
+
position: b(r, u),
|
|
13
|
+
value: u,
|
|
14
|
+
label: l(u, t, o)
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
f as APPROXIMATE_TICK_COUNT,
|
|
19
|
+
S as buildTicksData,
|
|
20
|
+
l as getTickLabel,
|
|
21
|
+
b as getTickPosition,
|
|
22
|
+
d as getTickValues
|
|
23
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ScaleBand, ScaleLinear, ScaleLogarithmic } from 'd3-scale';
|
|
2
|
+
export type ChartInset = {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Pixel bounds of the drawable region.
|
|
10
|
+
*/
|
|
11
|
+
export type DrawingArea = {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Interpolation used to draw a line (and its area) between data points.
|
|
19
|
+
* Each value maps to a [d3-shape](https://d3js.org/d3-shape/curve) curve:
|
|
20
|
+
* - `'bump'` — smooth cubic curve with horizontal tangents (`curveBumpX`).
|
|
21
|
+
* - `'natural'` — natural cubic spline through every point (`curveNatural`).
|
|
22
|
+
* - `'monotone'` — smooth curve that preserves monotonicity (`curveMonotoneX`).
|
|
23
|
+
* - `'linear'` — straight segments between points (`curveLinear`).
|
|
24
|
+
* - `'step'` — stepped, piecewise-constant line (`curveStep`).
|
|
25
|
+
* - `'stepAfter'` — stepped line where changes occur after the x-coordinate (`curveStepAfter`).
|
|
26
|
+
* - `'stepBefore'` — stepped line where changes occur before the x-coordinate (`curveStepBefore`).
|
|
27
|
+
*/
|
|
28
|
+
export type CurveType = 'bump' | 'natural' | 'monotone' | 'linear' | 'step' | 'stepAfter' | 'stepBefore';
|
|
29
|
+
export type Series = {
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier for the series.
|
|
32
|
+
*/
|
|
33
|
+
id: string;
|
|
34
|
+
/**
|
|
35
|
+
* Numeric data points; `null` entries represent gaps.
|
|
36
|
+
*/
|
|
37
|
+
data?: (number | null)[];
|
|
38
|
+
/**
|
|
39
|
+
* Human-readable label used in legends and tooltips.
|
|
40
|
+
*/
|
|
41
|
+
label?: string;
|
|
42
|
+
/**
|
|
43
|
+
* CSS color applied to the series line/mark.
|
|
44
|
+
* @default border-muted
|
|
45
|
+
*/
|
|
46
|
+
stroke?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Interpolation used to draw the line between data points.
|
|
49
|
+
* @default 'bump'
|
|
50
|
+
*/
|
|
51
|
+
curve?: CurveType;
|
|
52
|
+
/**
|
|
53
|
+
* When true, skips null values and draws a continuous line across gaps.
|
|
54
|
+
* When false (default), null values create gaps in the line.
|
|
55
|
+
* Overridden by the chart-level `connectNulls` prop when that is set.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
connectNulls?: boolean;
|
|
59
|
+
};
|
|
60
|
+
export type NumericScale = ScaleLinear<number, number> | ScaleLogarithmic<number, number>;
|
|
61
|
+
export type CategoricalScale = ScaleBand<number>;
|
|
62
|
+
export type ChartScaleFunction = NumericScale | CategoricalScale;
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/Components/visualization/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEzE,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,SAAS,GACT,UAAU,GACV,QAAQ,GACR,MAAM,GACN,WAAW,GACX,YAAY,CAAC;AAEjB,MAAM,MAAM,MAAM,GAAG;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GACpB,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAErC,MAAM,MAAM,gBAAgB,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { hexToHsl as i } from "./hexToHsl.js";
|
|
2
|
+
import { hslToHex as l } from "./hslToHex.js";
|
|
3
|
+
const o = /^#[a-f\d]{6}$/i;
|
|
4
|
+
function x(e, n, s = 20) {
|
|
5
|
+
if (!o.test(e) || !o.test(n))
|
|
6
|
+
return e;
|
|
7
|
+
const t = i(e), a = i(n), f = Math.abs(t.l - a.l);
|
|
8
|
+
if (f >= s)
|
|
9
|
+
return e;
|
|
10
|
+
const r = s - f;
|
|
11
|
+
return t.l = t.l >= a.l ? Math.min(100, t.l + r) : Math.max(0, t.l - r), l(t);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
x as getContrastSafeColor
|
|
15
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function x(h) {
|
|
2
|
+
const c = /^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(h);
|
|
3
|
+
if (c === null)
|
|
4
|
+
throw new Error("could not parse hex color");
|
|
5
|
+
const [, d, f, i] = c, o = Number.parseInt(d, 16) / 255, n = Number.parseInt(f, 16) / 255, r = Number.parseInt(i, 16) / 255, e = Math.max(o, n, r), s = Math.min(o, n, r);
|
|
6
|
+
let t = (e + s) / 2, u = t, a = t;
|
|
7
|
+
if (e === s)
|
|
8
|
+
return { h: 0, s: 0, l: Math.round(a * 100) };
|
|
9
|
+
const l = e - s;
|
|
10
|
+
return u = a > 0.5 ? l / (2 - e - s) : l / (e + s), e === o ? t = (n - r) / l + (n < r ? 6 : 0) : e === n ? t = (r - o) / l + 2 : e === r && (t = (o - n) / l + 4), t /= 6, t = Math.round(t * 360), u = Math.round(u * 100), a = Math.round(a * 100), { h: t, s: u, l: a };
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
x as hexToHsl
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function l(a) {
|
|
2
|
+
const { h: c, s: r, l: s } = a, t = s / 100, h = r * Math.min(t, 1 - t) / 100, n = (e) => {
|
|
3
|
+
const o = (e + c / 30) % 12, i = t - h * Math.max(Math.min(o - 3, 9 - o, 1), -1);
|
|
4
|
+
return Math.round(255 * i).toString(16).padStart(2, "0");
|
|
5
|
+
};
|
|
6
|
+
return `#${n(0)}${n(8)}${n(4)}`;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
l as hslToHex
|
|
10
|
+
};
|