@moderneinc/react-charts 1.2.0-next.54ab37 → 1.2.0-next.6a7b47
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.types.d.ts +6 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +6 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +2 -1
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +2 -1
- package/dist/components/morph-chart/morph-chart.types.d.ts +6 -0
- package/dist/index.cjs +64 -64
- package/dist/index.js +10653 -10764
- package/package.json +1 -1
|
@@ -93,6 +93,12 @@ export type ChronoChartProps = {
|
|
|
93
93
|
* @default undefined (inherits from SVG default, typically black)
|
|
94
94
|
*/
|
|
95
95
|
axisLabelColor?: string;
|
|
96
|
+
/**
|
|
97
|
+
* Font size for axis labels in pixels.
|
|
98
|
+
* Increase this value when displaying charts at smaller sizes (e.g., in dashboards).
|
|
99
|
+
* @default 14
|
|
100
|
+
*/
|
|
101
|
+
axisLabelSize?: number;
|
|
96
102
|
/** Enable animations when switching between modes */
|
|
97
103
|
enableAnimation?: boolean;
|
|
98
104
|
/** Duration of animations in milliseconds */
|
|
@@ -72,6 +72,12 @@ export type D3StackedAreaChartProps = {
|
|
|
72
72
|
}>;
|
|
73
73
|
/** Marker visibility mode: 'hover' shows only nearest marker on hover, 'always' shows all markers */
|
|
74
74
|
markerVisibilityMode?: 'always' | 'hover';
|
|
75
|
+
/**
|
|
76
|
+
* Color for brush selection overlay.
|
|
77
|
+
* Used for both the selection area and drag handles.
|
|
78
|
+
* @default '#69b3a2'
|
|
79
|
+
*/
|
|
80
|
+
brushColor?: string;
|
|
75
81
|
/** Mode for morphing animation */
|
|
76
82
|
morphMode?: 'area' | 'parliament' | 'morphing';
|
|
77
83
|
/** Parliament layout data (for morphing) */
|
|
@@ -29,6 +29,7 @@ type UseD3StackedAreaProps = {
|
|
|
29
29
|
}>;
|
|
30
30
|
markerVisibilityMode?: 'always' | 'hover';
|
|
31
31
|
onMarkerHoverChange?: (isHovering: boolean) => void;
|
|
32
|
+
brushColor?: string;
|
|
32
33
|
};
|
|
33
|
-
export declare const useD3StackedArea: ({ containerRef, data, categories, width, height, margin, timeRange, showGrid, showXAxis, showYAxis, enableBrush, zoomToSelection, onTimeRangeChange, formatDate, formatValue, markers, markerVisibilityMode, onMarkerHoverChange }: UseD3StackedAreaProps) => void;
|
|
34
|
+
export declare const useD3StackedArea: ({ containerRef, data, categories, width, height, margin, timeRange, showGrid, showXAxis, showYAxis, enableBrush, zoomToSelection, onTimeRangeChange, formatDate, formatValue, markers, markerVisibilityMode, onMarkerHoverChange, brushColor }: UseD3StackedAreaProps) => void;
|
|
34
35
|
export {};
|
|
@@ -17,6 +17,7 @@ type UseMorphChartProps = {
|
|
|
17
17
|
showGrid?: boolean;
|
|
18
18
|
showAxes?: boolean;
|
|
19
19
|
axisLabelColor?: string;
|
|
20
|
+
axisLabelSize?: number;
|
|
20
21
|
formatDate?: (timestamp: number) => string;
|
|
21
22
|
formatValue?: (value: number) => string;
|
|
22
23
|
markers?: Array<{
|
|
@@ -52,7 +53,7 @@ type UseMorphChartProps = {
|
|
|
52
53
|
timelineOffset?: number;
|
|
53
54
|
brushColor?: string;
|
|
54
55
|
};
|
|
55
|
-
export declare const useMorphChart: ({ containerRef, data, categories, mode, width, height, margin, timeRange, showGrid, showAxes, axisLabelColor, formatDate, formatValue, markers, arcAngle, parliamentRadius, seatSize, animationDuration, onMorphComplete, onAnimationStateChange, onTimelineReady, onAnimationProgress, onHoveredDataChange, hoveredCategory: externalHoveredCategory, maxSeats, parliamentTimestamp, enableBrush, onTimeRangeChange, minAllowedTime: minAllowedTimeConstraint, maxAllowedTime: maxAllowedTimeConstraint, showScaleIndicator, reposPerSeat, timelineEvents, showTimeline, timelineHeight, timelineOffset, brushColor }: UseMorphChartProps) => {
|
|
56
|
+
export declare const useMorphChart: ({ containerRef, data, categories, mode, width, height, margin, timeRange, showGrid, showAxes, axisLabelColor, axisLabelSize, formatDate, formatValue, markers, arcAngle, parliamentRadius, seatSize, animationDuration, onMorphComplete, onAnimationStateChange, onTimelineReady, onAnimationProgress, onHoveredDataChange, hoveredCategory: externalHoveredCategory, maxSeats, parliamentTimestamp, enableBrush, onTimeRangeChange, minAllowedTime: minAllowedTimeConstraint, maxAllowedTime: maxAllowedTimeConstraint, showScaleIndicator, reposPerSeat, timelineEvents, showTimeline, timelineHeight, timelineOffset, brushColor }: UseMorphChartProps) => {
|
|
56
57
|
isMorphing: boolean;
|
|
57
58
|
currentMode: MorphMode;
|
|
58
59
|
hoveredCategory: string | null;
|
|
@@ -48,6 +48,12 @@ export type MorphChartProps = {
|
|
|
48
48
|
* @default undefined (inherits from SVG default, typically black)
|
|
49
49
|
*/
|
|
50
50
|
axisLabelColor?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Font size for axis labels in pixels.
|
|
53
|
+
* Increase this value when displaying charts at smaller sizes (e.g., in dashboards).
|
|
54
|
+
* @default 14
|
|
55
|
+
*/
|
|
56
|
+
axisLabelSize?: number;
|
|
51
57
|
/** Enable brush selection */
|
|
52
58
|
enableBrush?: boolean;
|
|
53
59
|
/** Callback when time range changes */
|