@moderneinc/react-charts 1.2.0-next.3312d9 → 1.2.0-next.3cc141
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/dist/components/chrono-chart/chrono-chart.component.d.ts +3 -0
- package/dist/components/chrono-chart/chrono-chart.types.d.ts +67 -0
- package/dist/components/chrono-chart/components/category-table.component.d.ts +3 -0
- package/dist/components/chrono-chart/components/category-table.types.d.ts +17 -0
- package/dist/components/chrono-chart/utils/data-transformer.d.ts +9 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.component.d.ts +7 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +89 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +34 -0
- package/dist/components/morph-chart/hooks/shared/computations.d.ts +27 -0
- package/dist/components/morph-chart/hooks/shared/types.d.ts +22 -0
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +85 -0
- package/dist/components/morph-chart/index.d.ts +2 -0
- package/dist/components/morph-chart/morph-chart.component.d.ts +14 -0
- package/dist/components/morph-chart/morph-chart.types.d.ts +154 -0
- package/dist/components/morph-chart/utils/animation-constants.d.ts +23 -0
- package/dist/components/morph-chart/utils/animation-utils.d.ts +44 -0
- package/dist/components/morph-chart/utils/arc-path-calculator.d.ts +53 -0
- package/dist/components/morph-chart/utils/area-renderer.d.ts +24 -0
- package/dist/components/morph-chart/utils/bar-renderer.d.ts +19 -0
- package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +252 -0
- package/dist/components/morph-chart/utils/morph-interpolator.d.ts +96 -0
- package/dist/components/morph-chart/utils/parliament-renderer.d.ts +23 -0
- package/dist/components/morph-chart/utils/parliament-seat-extractor.d.ts +33 -0
- package/dist/components/morph-chart/utils/position-mapper.d.ts +48 -0
- package/dist/components/morph-chart/utils/segment-transformer.d.ts +70 -0
- package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
- package/dist/components/parliament-chart/hooks/use-parliament-chart.hook.d.ts +5 -1
- package/dist/components/parliament-chart/parliament-chart.types.d.ts +5 -0
- package/dist/components/parliament-chart/utils/parliament-animation.d.ts +13 -0
- package/dist/components/stacked-area-chart/utils/color.utils.d.ts +0 -5
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +13 -0
- package/dist/index.cjs +109 -71
- package/dist/index.d.ts +7 -0
- package/dist/index.js +23562 -16429
- package/dist/theme/default-colors.d.ts +0 -4
- package/package.json +26 -9
|
@@ -3,6 +3,12 @@ export type TimelineEvent = {
|
|
|
3
3
|
date: Date;
|
|
4
4
|
timestamp: number;
|
|
5
5
|
eventName: string;
|
|
6
|
+
/**
|
|
7
|
+
* Optional color for the event marker.
|
|
8
|
+
* If not provided, defaults to #2F42FF (Digital Blue 500).
|
|
9
|
+
* Accepts any valid CSS color string.
|
|
10
|
+
*/
|
|
11
|
+
color?: string;
|
|
6
12
|
[key: string]: unknown;
|
|
7
13
|
};
|
|
8
14
|
export type TimelineSelection = {
|
|
@@ -42,6 +48,13 @@ export type TimelineChartProps = {
|
|
|
42
48
|
selectedRange?: TimelineSelection;
|
|
43
49
|
/** Height of the timeline container in pixels (default: 32) */
|
|
44
50
|
height?: number;
|
|
51
|
+
/** Margin around the timeline drawable area (for alignment with other charts) */
|
|
52
|
+
margin?: {
|
|
53
|
+
top: number;
|
|
54
|
+
right: number;
|
|
55
|
+
bottom: number;
|
|
56
|
+
left: number;
|
|
57
|
+
};
|
|
45
58
|
/** Custom date formatter */
|
|
46
59
|
formatDate?: (timestamp: number) => string;
|
|
47
60
|
/** Custom month/year formatter */
|