@coinbase/cds-web-visualization 3.4.0-beta.5 → 3.4.0-beta.7
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/CHANGELOG.md +15 -0
- package/dts/chart/CartesianChart.d.ts +38 -2
- package/dts/chart/CartesianChart.d.ts.map +1 -1
- package/dts/chart/Path.d.ts +27 -7
- package/dts/chart/Path.d.ts.map +1 -1
- package/dts/chart/PeriodSelector.d.ts +0 -4
- package/dts/chart/PeriodSelector.d.ts.map +1 -1
- package/dts/chart/area/Area.d.ts +54 -24
- package/dts/chart/area/Area.d.ts.map +1 -1
- package/dts/chart/area/AreaChart.d.ts +33 -6
- package/dts/chart/area/AreaChart.d.ts.map +1 -1
- package/dts/chart/area/DottedArea.d.ts +21 -44
- package/dts/chart/area/DottedArea.d.ts.map +1 -1
- package/dts/chart/area/GradientArea.d.ts +21 -12
- package/dts/chart/area/GradientArea.d.ts.map +1 -1
- package/dts/chart/area/SolidArea.d.ts +16 -1
- package/dts/chart/area/SolidArea.d.ts.map +1 -1
- package/dts/chart/axis/Axis.d.ts +89 -43
- package/dts/chart/axis/Axis.d.ts.map +1 -1
- package/dts/chart/axis/DefaultAxisTickLabel.d.ts +8 -0
- package/dts/chart/axis/DefaultAxisTickLabel.d.ts.map +1 -0
- package/dts/chart/axis/XAxis.d.ts +1 -1
- package/dts/chart/axis/XAxis.d.ts.map +1 -1
- package/dts/chart/axis/YAxis.d.ts +1 -1
- package/dts/chart/axis/YAxis.d.ts.map +1 -1
- package/dts/chart/axis/index.d.ts +1 -0
- package/dts/chart/axis/index.d.ts.map +1 -1
- package/dts/chart/bar/Bar.d.ts +16 -13
- package/dts/chart/bar/Bar.d.ts.map +1 -1
- package/dts/chart/bar/BarChart.d.ts +17 -8
- package/dts/chart/bar/BarChart.d.ts.map +1 -1
- package/dts/chart/bar/BarPlot.d.ts +2 -1
- package/dts/chart/bar/BarPlot.d.ts.map +1 -1
- package/dts/chart/bar/BarStack.d.ts +40 -48
- package/dts/chart/bar/BarStack.d.ts.map +1 -1
- package/dts/chart/bar/BarStackGroup.d.ts +1 -0
- package/dts/chart/bar/BarStackGroup.d.ts.map +1 -1
- package/dts/chart/bar/DefaultBar.d.ts.map +1 -1
- package/dts/chart/bar/DefaultBarStack.d.ts.map +1 -1
- package/dts/chart/gradient/Gradient.d.ts +35 -0
- package/dts/chart/gradient/Gradient.d.ts.map +1 -0
- package/dts/chart/gradient/index.d.ts +2 -0
- package/dts/chart/gradient/index.d.ts.map +1 -0
- package/dts/chart/index.d.ts +2 -1
- package/dts/chart/index.d.ts.map +1 -1
- package/dts/chart/line/DefaultReferenceLineLabel.d.ts +9 -0
- package/dts/chart/line/DefaultReferenceLineLabel.d.ts.map +1 -0
- package/dts/chart/line/DottedLine.d.ts +15 -3
- package/dts/chart/line/DottedLine.d.ts.map +1 -1
- package/dts/chart/line/Line.d.ts +70 -28
- package/dts/chart/line/Line.d.ts.map +1 -1
- package/dts/chart/line/LineChart.d.ts +26 -8
- package/dts/chart/line/LineChart.d.ts.map +1 -1
- package/dts/chart/line/ReferenceLine.d.ts +91 -44
- package/dts/chart/line/ReferenceLine.d.ts.map +1 -1
- package/dts/chart/line/SolidLine.d.ts +14 -3
- package/dts/chart/line/SolidLine.d.ts.map +1 -1
- package/dts/chart/line/index.d.ts +1 -1
- package/dts/chart/line/index.d.ts.map +1 -1
- package/dts/chart/point/DefaultPointLabel.d.ts +10 -0
- package/dts/chart/point/DefaultPointLabel.d.ts.map +1 -0
- package/dts/chart/point/Point.d.ts +201 -0
- package/dts/chart/point/Point.d.ts.map +1 -0
- package/dts/chart/point/index.d.ts +3 -0
- package/dts/chart/point/index.d.ts.map +1 -0
- package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts +24 -0
- package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts.map +1 -0
- package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts +12 -0
- package/dts/chart/scrubber/DefaultScrubberBeaconLabel.d.ts.map +1 -0
- package/dts/chart/scrubber/DefaultScrubberLabel.d.ts +10 -0
- package/dts/chart/scrubber/DefaultScrubberLabel.d.ts.map +1 -0
- package/dts/chart/scrubber/Scrubber.d.ts +207 -66
- package/dts/chart/scrubber/Scrubber.d.ts.map +1 -1
- package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts +70 -0
- package/dts/chart/scrubber/ScrubberBeaconGroup.d.ts.map +1 -0
- package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts +32 -0
- package/dts/chart/scrubber/ScrubberBeaconLabelGroup.d.ts.map +1 -0
- package/dts/chart/scrubber/index.d.ts +3 -0
- package/dts/chart/scrubber/index.d.ts.map +1 -1
- package/dts/chart/text/ChartText.d.ts +46 -43
- package/dts/chart/text/ChartText.d.ts.map +1 -1
- package/dts/chart/text/{SmartChartTextGroup.d.ts → ChartTextGroup.d.ts} +9 -3
- package/dts/chart/text/ChartTextGroup.d.ts.map +1 -0
- package/dts/chart/text/index.d.ts +1 -1
- package/dts/chart/text/index.d.ts.map +1 -1
- package/dts/chart/utils/chart.d.ts +27 -7
- package/dts/chart/utils/chart.d.ts.map +1 -1
- package/dts/chart/utils/context.d.ts +6 -0
- package/dts/chart/utils/context.d.ts.map +1 -1
- package/dts/chart/utils/gradient.d.ts +104 -0
- package/dts/chart/utils/gradient.d.ts.map +1 -0
- package/dts/chart/utils/index.d.ts +4 -0
- package/dts/chart/utils/index.d.ts.map +1 -1
- package/dts/chart/utils/interpolate.d.ts +112 -0
- package/dts/chart/utils/interpolate.d.ts.map +1 -0
- package/dts/chart/utils/path.d.ts +24 -1
- package/dts/chart/utils/path.d.ts.map +1 -1
- package/dts/chart/utils/point.d.ts +29 -0
- package/dts/chart/utils/point.d.ts.map +1 -1
- package/dts/chart/utils/scrubber.d.ts +39 -0
- package/dts/chart/utils/scrubber.d.ts.map +1 -0
- package/dts/chart/utils/transition.d.ts +65 -0
- package/dts/chart/utils/transition.d.ts.map +1 -0
- package/esm/chart/CartesianChart.js +140 -85
- package/esm/chart/Path.js +51 -46
- package/esm/chart/PeriodSelector.js +4 -18
- package/esm/chart/area/Area.js +24 -34
- package/esm/chart/area/AreaChart.js +24 -15
- package/esm/chart/area/DottedArea.js +35 -89
- package/esm/chart/area/GradientArea.js +34 -80
- package/esm/chart/area/SolidArea.js +29 -11
- package/esm/chart/axis/Axis.js +4 -25
- package/esm/chart/axis/DefaultAxisTickLabel.js +15 -0
- package/esm/chart/axis/XAxis.js +53 -36
- package/esm/chart/axis/YAxis.js +55 -32
- package/esm/chart/axis/index.js +1 -0
- package/esm/chart/bar/Bar.js +3 -1
- package/esm/chart/bar/BarChart.js +15 -32
- package/esm/chart/bar/BarPlot.js +3 -2
- package/esm/chart/bar/BarStack.js +65 -23
- package/esm/chart/bar/BarStackGroup.js +7 -17
- package/esm/chart/bar/DefaultBar.js +4 -7
- package/esm/chart/bar/DefaultBarStack.js +5 -7
- package/esm/chart/gradient/Gradient.js +104 -0
- package/esm/chart/gradient/index.js +1 -0
- package/esm/chart/index.js +2 -1
- package/esm/chart/line/DefaultReferenceLineLabel.js +81 -0
- package/esm/chart/line/DottedLine.js +38 -17
- package/esm/chart/line/Line.js +96 -70
- package/esm/chart/line/LineChart.js +18 -6
- package/esm/chart/line/ReferenceLine.js +41 -43
- package/esm/chart/line/SolidLine.js +36 -15
- package/esm/chart/line/index.js +1 -1
- package/esm/chart/{line/GradientLine.js → point/DefaultPointLabel.js} +31 -45
- package/esm/chart/point/Point.css +2 -0
- package/esm/chart/{Point.js → point/Point.js} +66 -57
- package/esm/chart/point/index.js +2 -0
- package/esm/chart/scrubber/DefaultScrubberBeacon.js +155 -0
- package/esm/chart/scrubber/{ScrubberBeaconLabel.js → DefaultScrubberBeaconLabel.js} +23 -10
- package/esm/chart/scrubber/DefaultScrubberLabel.js +30 -0
- package/esm/chart/scrubber/Scrubber.js +98 -392
- package/esm/chart/scrubber/ScrubberBeaconGroup.js +166 -0
- package/esm/chart/scrubber/ScrubberBeaconLabelGroup.js +186 -0
- package/esm/chart/scrubber/index.js +3 -1
- package/esm/chart/text/ChartText.js +13 -19
- package/esm/chart/text/{SmartChartTextGroup.js → ChartTextGroup.js} +4 -3
- package/esm/chart/text/index.js +1 -1
- package/esm/chart/utils/chart.js +29 -3
- package/esm/chart/utils/gradient.js +257 -0
- package/esm/chart/utils/index.js +4 -0
- package/esm/chart/utils/interpolate.js +644 -0
- package/esm/chart/utils/path.js +32 -9
- package/esm/chart/utils/point.js +69 -0
- package/esm/chart/utils/scrubber.js +132 -0
- package/esm/chart/utils/transition.js +111 -0
- package/package.json +5 -5
- package/dts/chart/Point.d.ts +0 -153
- package/dts/chart/Point.d.ts.map +0 -1
- package/dts/chart/line/GradientLine.d.ts +0 -42
- package/dts/chart/line/GradientLine.d.ts.map +0 -1
- package/dts/chart/scrubber/ScrubberBeacon.d.ts +0 -93
- package/dts/chart/scrubber/ScrubberBeacon.d.ts.map +0 -1
- package/dts/chart/scrubber/ScrubberBeaconLabel.d.ts +0 -7
- package/dts/chart/scrubber/ScrubberBeaconLabel.d.ts.map +0 -1
- package/dts/chart/text/SmartChartTextGroup.d.ts.map +0 -1
- package/esm/chart/Point.css +0 -2
- package/esm/chart/scrubber/ScrubberBeacon.js +0 -195
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import React, { type SVGProps } from 'react';
|
|
2
|
+
import type { SharedProps } from '@coinbase/cds-common/types';
|
|
3
|
+
import { type Transition } from 'framer-motion';
|
|
4
|
+
import type { ChartTextChildren, ChartTextProps } from '../text/ChartText';
|
|
5
|
+
import { type PointLabelPosition } from '../utils';
|
|
6
|
+
export type PointBaseProps = SharedProps & {
|
|
7
|
+
/**
|
|
8
|
+
* X coordinate in data space (not pixel coordinates).
|
|
9
|
+
*/
|
|
10
|
+
dataX: number;
|
|
11
|
+
/**
|
|
12
|
+
* Y coordinate in data space (not pixel coordinates).
|
|
13
|
+
*/
|
|
14
|
+
dataY: number;
|
|
15
|
+
/**
|
|
16
|
+
* The fill color of the point.
|
|
17
|
+
* @default 'var(--color-fgPrimary)'
|
|
18
|
+
*/
|
|
19
|
+
fill?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Optional Y-axis id to specify which axis to plot along.
|
|
22
|
+
* @default first y-axis defined in chart props.
|
|
23
|
+
*/
|
|
24
|
+
yAxisId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Radius of the point.
|
|
27
|
+
* @default 5
|
|
28
|
+
*/
|
|
29
|
+
radius?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Opacity of the point.
|
|
32
|
+
*/
|
|
33
|
+
opacity?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Color of the outer stroke around the point.
|
|
36
|
+
* @default 'var(--color-bg)'
|
|
37
|
+
*/
|
|
38
|
+
stroke?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Outer stroke width of the point.
|
|
41
|
+
* Set to 0 to remove the stroke.
|
|
42
|
+
* @default 2
|
|
43
|
+
*/
|
|
44
|
+
strokeWidth?: number;
|
|
45
|
+
/**
|
|
46
|
+
* When set, overrides the chart's animation setting for this specific point.
|
|
47
|
+
*/
|
|
48
|
+
animate?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Custom component to render the label.
|
|
51
|
+
* @default DefaultPointLabel
|
|
52
|
+
*/
|
|
53
|
+
LabelComponent?: PointLabelComponent;
|
|
54
|
+
/**
|
|
55
|
+
* Position of the label relative to the point.
|
|
56
|
+
* @default 'center'
|
|
57
|
+
*/
|
|
58
|
+
labelPosition?: PointLabelPosition;
|
|
59
|
+
/**
|
|
60
|
+
* Distance in pixels to offset the label from the point.
|
|
61
|
+
* @default 2 * radius
|
|
62
|
+
*/
|
|
63
|
+
labelOffset?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Font style for the label text.
|
|
66
|
+
*/
|
|
67
|
+
labelFont?: ChartTextProps['font'];
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Props for point label components.
|
|
71
|
+
*/
|
|
72
|
+
export type PointLabelProps = {
|
|
73
|
+
/**
|
|
74
|
+
* X coordinate in SVG pixel space.
|
|
75
|
+
*/
|
|
76
|
+
x: number;
|
|
77
|
+
/**
|
|
78
|
+
* Y coordinate in SVG pixel space.
|
|
79
|
+
*/
|
|
80
|
+
y: number;
|
|
81
|
+
/**
|
|
82
|
+
* X coordinate in data space (usually same as index).
|
|
83
|
+
*/
|
|
84
|
+
dataX: number;
|
|
85
|
+
/**
|
|
86
|
+
* Y coordinate in data space (same as value).
|
|
87
|
+
*/
|
|
88
|
+
dataY: number;
|
|
89
|
+
/**
|
|
90
|
+
* Fill color for the point.
|
|
91
|
+
*/
|
|
92
|
+
fill: string;
|
|
93
|
+
/**
|
|
94
|
+
* Position of the label relative to the point.
|
|
95
|
+
* @default 'center'
|
|
96
|
+
*/
|
|
97
|
+
position?: PointLabelPosition;
|
|
98
|
+
/**
|
|
99
|
+
* Distance in pixels to offset the label from the point.
|
|
100
|
+
*/
|
|
101
|
+
offset?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Content to display in the label.
|
|
104
|
+
*/
|
|
105
|
+
children: ChartTextChildren;
|
|
106
|
+
};
|
|
107
|
+
export type PointLabelComponent = React.FC<PointLabelProps>;
|
|
108
|
+
export type PointProps = PointBaseProps &
|
|
109
|
+
Omit<
|
|
110
|
+
SVGProps<SVGCircleElement>,
|
|
111
|
+
| 'onClick'
|
|
112
|
+
| 'onAnimationStart'
|
|
113
|
+
| 'onAnimationEnd'
|
|
114
|
+
| 'onAnimationIteration'
|
|
115
|
+
| 'onAnimationStartCapture'
|
|
116
|
+
| 'onAnimationEndCapture'
|
|
117
|
+
| 'onAnimationIterationCapture'
|
|
118
|
+
| 'onDrag'
|
|
119
|
+
| 'onDragEnd'
|
|
120
|
+
| 'onDragStart'
|
|
121
|
+
| 'onDragCapture'
|
|
122
|
+
| 'onDragEndCapture'
|
|
123
|
+
| 'onDragStartCapture'
|
|
124
|
+
| 'cx'
|
|
125
|
+
| 'cy'
|
|
126
|
+
| 'r'
|
|
127
|
+
| 'fill'
|
|
128
|
+
| 'stroke'
|
|
129
|
+
| 'strokeWidth'
|
|
130
|
+
| 'opacity'
|
|
131
|
+
| 'className'
|
|
132
|
+
| 'style'
|
|
133
|
+
| 'aria-label'
|
|
134
|
+
| 'role'
|
|
135
|
+
| 'tabIndex'
|
|
136
|
+
| 'onKeyDown'
|
|
137
|
+
> & {
|
|
138
|
+
/**
|
|
139
|
+
* Simple text label to display at the point position.
|
|
140
|
+
* If provided, a label component will be automatically rendered.
|
|
141
|
+
*/
|
|
142
|
+
label?: ChartTextChildren;
|
|
143
|
+
/**
|
|
144
|
+
* Handler for when the point is clicked.
|
|
145
|
+
*/
|
|
146
|
+
onClick?: (
|
|
147
|
+
event: React.MouseEvent,
|
|
148
|
+
point: {
|
|
149
|
+
x: number;
|
|
150
|
+
y: number;
|
|
151
|
+
dataX: number;
|
|
152
|
+
dataY: number;
|
|
153
|
+
},
|
|
154
|
+
) => void;
|
|
155
|
+
/**
|
|
156
|
+
* Custom class name for the point.
|
|
157
|
+
*/
|
|
158
|
+
className?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Custom styles for the point.
|
|
161
|
+
*/
|
|
162
|
+
style?: React.CSSProperties;
|
|
163
|
+
/**
|
|
164
|
+
* Custom class names for the component.
|
|
165
|
+
*/
|
|
166
|
+
classNames?: {
|
|
167
|
+
/**
|
|
168
|
+
* Custom class name for the point root element.
|
|
169
|
+
*/
|
|
170
|
+
root?: string;
|
|
171
|
+
/**
|
|
172
|
+
* Custom class name for the inner circle element.
|
|
173
|
+
*/
|
|
174
|
+
point?: string;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Custom styles for the component.
|
|
178
|
+
*/
|
|
179
|
+
styles?: {
|
|
180
|
+
/**
|
|
181
|
+
* Custom styles for the point root element.
|
|
182
|
+
*/
|
|
183
|
+
root?: React.CSSProperties;
|
|
184
|
+
/**
|
|
185
|
+
* Custom styles for the inner circle element.
|
|
186
|
+
*/
|
|
187
|
+
point?: React.CSSProperties;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Accessibility label for screen readers to describe the point.
|
|
191
|
+
* If not provided, a default label will be generated using the data coordinates.
|
|
192
|
+
*/
|
|
193
|
+
accessibilityLabel?: string;
|
|
194
|
+
/**
|
|
195
|
+
* Transition configuration for animation.
|
|
196
|
+
* @default defaultTransition
|
|
197
|
+
*/
|
|
198
|
+
transition?: Transition;
|
|
199
|
+
};
|
|
200
|
+
export declare const Point: React.NamedExoticComponent<PointProps>;
|
|
201
|
+
//# sourceMappingURL=Point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../src/chart/point/Point.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAQ,KAAK,QAAQ,EAAW,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,KAAK,kBAAkB,EAAgB,MAAM,UAAU,CAAC;AAsBjE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;I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AO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,UAAU,EACvB,KAAK,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAC1D,IAAI,CAAC;IACV;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE;QACX;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QACd;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE;QACP;;WAEG;QACH,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAC3B;;WAEG;QACH,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;KAC7B,CAAC;IACF;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEJ,eAAO,MAAM,KAAK,wCAsMjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chart/point/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Transition } from 'framer-motion';
|
|
2
|
+
import type { ScrubberBeaconProps, ScrubberBeaconRef } from './Scrubber';
|
|
3
|
+
export type DefaultScrubberBeaconProps = ScrubberBeaconProps;
|
|
4
|
+
export declare const DefaultScrubberBeacon: import('react').MemoExoticComponent<
|
|
5
|
+
import('react').ForwardRefExoticComponent<
|
|
6
|
+
import('@coinbase/cds-common').SharedProps & {
|
|
7
|
+
seriesId: import('..').Series['id'];
|
|
8
|
+
color?: string;
|
|
9
|
+
dataX: number;
|
|
10
|
+
dataY: number;
|
|
11
|
+
isIdle?: boolean;
|
|
12
|
+
idlePulse?: boolean;
|
|
13
|
+
transitions?: {
|
|
14
|
+
update?: Transition;
|
|
15
|
+
pulse?: Transition;
|
|
16
|
+
pulseRepeatDelay?: number;
|
|
17
|
+
};
|
|
18
|
+
opacity?: number;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
} & import('react').RefAttributes<ScrubberBeaconRef>
|
|
22
|
+
>
|
|
23
|
+
>;
|
|
24
|
+
//# sourceMappingURL=DefaultScrubberBeacon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultScrubberBeacon.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberBeacon.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,UAAU,EAGhB,MAAM,eAAe,CAAC;AAKvB,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAiBzE,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;AAE7D,eAAO,MAAM,qBAAqB;;;;;;;;cAwCT,CAAC;aAKI,CAAA;wBAMZ,CAAC;;;;;sDA4GlB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ChartTextProps } from '../text';
|
|
2
|
+
import type { ScrubberBeaconLabelProps } from './Scrubber';
|
|
3
|
+
export type DefaultScrubberBeaconLabelProps = ScrubberBeaconLabelProps &
|
|
4
|
+
Pick<
|
|
5
|
+
ChartTextProps,
|
|
6
|
+
'background' | 'elevated' | 'borderRadius' | 'font' | 'verticalAlignment' | 'inset' | 'opacity'
|
|
7
|
+
>;
|
|
8
|
+
/**
|
|
9
|
+
* DefaultScrubberBeaconLabel is a special instance of ChartText used to label a series' scrubber beacon (i.e. a point on the series pinned to the scrubber position).
|
|
10
|
+
*/
|
|
11
|
+
export declare const DefaultScrubberBeaconLabel: import('react').NamedExoticComponent<DefaultScrubberBeaconLabelProps>;
|
|
12
|
+
//# sourceMappingURL=DefaultScrubberBeaconLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultScrubberBeaconLabel.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberBeaconLabel.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAK3D,MAAM,MAAM,+BAA+B,GAAG,wBAAwB,GACpE,IAAI,CACF,cAAc,EACd,YAAY,GAAG,UAAU,GAAG,cAAc,GAAG,MAAM,GAAG,mBAAmB,GAAG,OAAO,GAAG,SAAS,CAChG,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,0BAA0B,uEAiCtC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ScrubberLabelProps } from './Scrubber';
|
|
2
|
+
export type DefaultScrubberLabelProps = ScrubberLabelProps;
|
|
3
|
+
/**
|
|
4
|
+
* DefaultScrubberLabel is the default label component for the scrubber line.
|
|
5
|
+
* It will center the label vertically with the top available area.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DefaultScrubberLabel: import('react').NamedExoticComponent<
|
|
8
|
+
import('..').ReferenceLineLabelComponentProps
|
|
9
|
+
>;
|
|
10
|
+
//# sourceMappingURL=DefaultScrubberLabel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefaultScrubberLabel.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberLabel.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAE3D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,qFAYhC,CAAC"}
|
|
@@ -1,27 +1,124 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SharedProps } from '@coinbase/cds-common/types';
|
|
3
|
-
import { type
|
|
4
|
-
import { type
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
import { type Transition } from 'framer-motion';
|
|
4
|
+
import { type ReferenceLineBaseProps, type ReferenceLineLabelComponentProps } from '../line';
|
|
5
|
+
import type { ChartTextProps } from '../text';
|
|
6
|
+
import { type ChartInset, type Series } from '../utils';
|
|
7
|
+
import {
|
|
8
|
+
type ScrubberBeaconGroupBaseProps,
|
|
9
|
+
type ScrubberBeaconGroupProps,
|
|
10
|
+
type ScrubberBeaconGroupRef,
|
|
11
|
+
} from './ScrubberBeaconGroup';
|
|
12
|
+
import {
|
|
13
|
+
type ScrubberBeaconLabelGroupBaseProps,
|
|
14
|
+
type ScrubberBeaconLabelGroupProps,
|
|
15
|
+
} from './ScrubberBeaconLabelGroup';
|
|
16
|
+
export type ScrubberBeaconRef = {
|
|
17
|
+
/**
|
|
18
|
+
* Triggers a single pulse animation.
|
|
19
|
+
* Only works when the beacon is in idle state (not actively scrubbing).
|
|
20
|
+
*/
|
|
21
|
+
pulse: () => void;
|
|
22
|
+
};
|
|
23
|
+
export type ScrubberBeaconProps = SharedProps & {
|
|
24
|
+
/**
|
|
25
|
+
* Id of the series.
|
|
26
|
+
*/
|
|
27
|
+
seriesId: Series['id'];
|
|
28
|
+
/**
|
|
29
|
+
* Color of the series.
|
|
30
|
+
*/
|
|
31
|
+
color?: string;
|
|
32
|
+
/**
|
|
33
|
+
* X coordinate in data space.
|
|
34
|
+
*/
|
|
35
|
+
dataX: number;
|
|
36
|
+
/**
|
|
37
|
+
* Y coordinate in data space.
|
|
38
|
+
*/
|
|
39
|
+
dataY: number;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the beacon is in idle state (not actively scrubbing).
|
|
42
|
+
*/
|
|
43
|
+
isIdle?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Pulse the beacon while it is at rest.
|
|
46
|
+
*/
|
|
47
|
+
idlePulse?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Transition configuration for beacon animations.
|
|
50
|
+
*/
|
|
51
|
+
transitions?: {
|
|
52
|
+
/**
|
|
53
|
+
* Transition used for beacon position updates.
|
|
54
|
+
* @default defaultTransition
|
|
55
|
+
*/
|
|
56
|
+
update?: Transition;
|
|
57
|
+
/**
|
|
58
|
+
* Transition used for the pulse animation.
|
|
59
|
+
* @default { duration: 1.6, ease: 'easeInOut' }
|
|
60
|
+
*/
|
|
61
|
+
pulse?: Transition;
|
|
62
|
+
/**
|
|
63
|
+
* Delay, in seconds between pulse transitions
|
|
64
|
+
* when `idlePulse` is enabled.
|
|
65
|
+
* @default 0.4
|
|
66
|
+
*/
|
|
67
|
+
pulseRepeatDelay?: number;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Opacity of the beacon.
|
|
71
|
+
* @default 1
|
|
72
|
+
*/
|
|
73
|
+
opacity?: number;
|
|
74
|
+
/**
|
|
75
|
+
* Custom className for styling.
|
|
76
|
+
*/
|
|
77
|
+
className?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Custom inline styles.
|
|
80
|
+
*/
|
|
81
|
+
style?: React.CSSProperties;
|
|
82
|
+
};
|
|
83
|
+
export type ScrubberBeaconComponent = React.FC<
|
|
84
|
+
ScrubberBeaconProps & {
|
|
85
|
+
ref?: React.Ref<ScrubberBeaconRef>;
|
|
86
|
+
}
|
|
87
|
+
>;
|
|
88
|
+
export type ScrubberBeaconLabelProps = Pick<Series, 'color'> &
|
|
89
|
+
Pick<
|
|
90
|
+
ChartTextProps,
|
|
91
|
+
'x' | 'y' | 'dx' | 'horizontalAlignment' | 'onDimensionsChange' | 'opacity' | 'font'
|
|
92
|
+
> & {
|
|
13
93
|
/**
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
|
|
94
|
+
* Label for the series.
|
|
95
|
+
*/
|
|
96
|
+
label: string;
|
|
97
|
+
/**
|
|
98
|
+
* Id of the series.
|
|
99
|
+
*/
|
|
100
|
+
seriesId: Series['id'];
|
|
101
|
+
};
|
|
102
|
+
export type ScrubberBeaconLabelComponent = React.FC<ScrubberBeaconLabelProps>;
|
|
103
|
+
export type ScrubberLabelProps = ReferenceLineLabelComponentProps;
|
|
104
|
+
export type ScrubberLabelComponent = React.FC<ScrubberLabelProps>;
|
|
105
|
+
export type ScrubberBaseProps = SharedProps &
|
|
106
|
+
Pick<ScrubberBeaconGroupBaseProps, 'idlePulse'> &
|
|
107
|
+
Pick<ReferenceLineBaseProps, 'LineComponent' | 'LabelComponent' | 'labelElevated'> &
|
|
108
|
+
Pick<ScrubberBeaconGroupProps, 'BeaconComponent'> &
|
|
109
|
+
Pick<ScrubberBeaconLabelGroupProps, 'BeaconLabelComponent'> & {
|
|
110
|
+
/**
|
|
111
|
+
* Array of series IDs to highlight when scrubbing with scrubber beacons.
|
|
112
|
+
* By default, all series will be highlighted.
|
|
17
113
|
*/
|
|
18
114
|
seriesIds?: string[];
|
|
19
115
|
/**
|
|
20
|
-
* Hides the scrubber line
|
|
116
|
+
* Hides the scrubber line.
|
|
117
|
+
* @note This hides Scrubber's ReferenceLine including the label.
|
|
21
118
|
*/
|
|
22
119
|
hideLine?: boolean;
|
|
23
120
|
/**
|
|
24
|
-
*
|
|
121
|
+
* Hides the overlay rect which obscures data beyond the scrubber position.
|
|
25
122
|
*/
|
|
26
123
|
hideOverlay?: boolean;
|
|
27
124
|
/**
|
|
@@ -31,68 +128,92 @@ export type ScrubberProps = SharedProps &
|
|
|
31
128
|
*/
|
|
32
129
|
overlayOffset?: number;
|
|
33
130
|
/**
|
|
34
|
-
*
|
|
131
|
+
* Minimum gap between beacon labels to prevent overlap.
|
|
132
|
+
* Measured in pixels.
|
|
35
133
|
*/
|
|
36
|
-
|
|
134
|
+
beaconLabelMinGap?: ScrubberBeaconLabelGroupBaseProps['labelMinGap'];
|
|
37
135
|
/**
|
|
38
|
-
*
|
|
136
|
+
* Horizontal offset for beacon labels from their beacon position.
|
|
137
|
+
* Measured in pixels.
|
|
39
138
|
*/
|
|
40
|
-
|
|
139
|
+
beaconLabelHorizontalOffset?: ScrubberBeaconLabelGroupBaseProps['labelHorizontalOffset'];
|
|
41
140
|
/**
|
|
42
|
-
*
|
|
141
|
+
* Label text displayed above the scrubber line.
|
|
142
|
+
* Can be a static string or a function that receives the current dataIndex.
|
|
43
143
|
*/
|
|
44
|
-
|
|
144
|
+
label?:
|
|
145
|
+
| ReferenceLineBaseProps['label']
|
|
146
|
+
| ((dataIndex: number) => ReferenceLineBaseProps['label']);
|
|
45
147
|
/**
|
|
46
|
-
*
|
|
148
|
+
* Font style for the scrubber line label.
|
|
47
149
|
*/
|
|
48
|
-
|
|
49
|
-
overlay?: React.CSSProperties;
|
|
50
|
-
beacon?: React.CSSProperties;
|
|
51
|
-
line?: React.CSSProperties;
|
|
52
|
-
beaconLabel?: React.CSSProperties;
|
|
53
|
-
};
|
|
150
|
+
labelFont?: ChartTextProps['font'];
|
|
54
151
|
/**
|
|
55
|
-
*
|
|
152
|
+
* Bounds inset for the scrubber line label to prevent cutoff at chart edges.
|
|
153
|
+
* @default { top: 4, bottom: 20, left: 12, right: 12 } when labelElevated is true, otherwise none
|
|
56
154
|
*/
|
|
57
|
-
|
|
58
|
-
overlay?: string;
|
|
59
|
-
beacon?: string;
|
|
60
|
-
line?: string;
|
|
61
|
-
beaconLabel?: string;
|
|
62
|
-
};
|
|
155
|
+
labelBoundsInset?: number | ChartInset;
|
|
63
156
|
/**
|
|
64
|
-
*
|
|
157
|
+
* Font style for the beacon labels.
|
|
65
158
|
*/
|
|
66
|
-
|
|
159
|
+
beaconLabelFont?: ChartTextProps['font'];
|
|
67
160
|
/**
|
|
68
|
-
*
|
|
161
|
+
* Stroke color for the scrubber line.
|
|
69
162
|
*/
|
|
70
|
-
|
|
163
|
+
lineStroke?: ReferenceLineBaseProps['stroke'];
|
|
71
164
|
/**
|
|
72
|
-
*
|
|
165
|
+
* Transition configuration for the scrubber beacon.
|
|
73
166
|
*/
|
|
74
|
-
|
|
167
|
+
beaconTransitions?: ScrubberBeaconProps['transitions'];
|
|
168
|
+
};
|
|
169
|
+
export type ScrubberProps = ScrubberBaseProps & {
|
|
170
|
+
/**
|
|
171
|
+
* Accessibility label for the scrubber. Can be a static string or a function that receives the current dataIndex.
|
|
172
|
+
* If not provided, label will be used if it resolves to a string.
|
|
173
|
+
*/
|
|
174
|
+
accessibilityLabel?: string | ((dataIndex: number) => string);
|
|
175
|
+
/**
|
|
176
|
+
* Custom styles for scrubber elements.
|
|
177
|
+
*/
|
|
178
|
+
styles?: {
|
|
179
|
+
overlay?: React.CSSProperties;
|
|
180
|
+
beacon?: React.CSSProperties;
|
|
181
|
+
line?: React.CSSProperties;
|
|
182
|
+
beaconLabel?: React.CSSProperties;
|
|
75
183
|
};
|
|
184
|
+
/**
|
|
185
|
+
* Custom class names for scrubber elements.
|
|
186
|
+
*/
|
|
187
|
+
classNames?: {
|
|
188
|
+
overlay?: string;
|
|
189
|
+
beacon?: string;
|
|
190
|
+
line?: string;
|
|
191
|
+
beaconLabel?: string;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export type ScrubberRef = ScrubberBeaconGroupRef;
|
|
76
195
|
/**
|
|
77
|
-
* Unified component that manages all scrubber elements (beacons, line, labels)
|
|
78
|
-
* with intelligent collision detection and consistent positioning.
|
|
196
|
+
* Unified component that manages all scrubber elements (beacons, line, labels).
|
|
79
197
|
*/
|
|
80
198
|
export declare const Scrubber: React.MemoExoticComponent<
|
|
81
199
|
React.ForwardRefExoticComponent<
|
|
82
200
|
SharedProps &
|
|
83
|
-
Pick<
|
|
201
|
+
Pick<ScrubberBeaconGroupBaseProps, 'idlePulse'> &
|
|
202
|
+
Pick<ReferenceLineBaseProps, 'LabelComponent' | 'LineComponent' | 'labelElevated'> &
|
|
203
|
+
Pick<ScrubberBeaconGroupProps, 'BeaconComponent'> &
|
|
204
|
+
Pick<ScrubberBeaconLabelGroupProps, 'BeaconLabelComponent'> & {
|
|
84
205
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
* By default, all series will be highlighted by the Scrubber.
|
|
206
|
+
* Array of series IDs to highlight when scrubbing with scrubber beacons.
|
|
207
|
+
* By default, all series will be highlighted.
|
|
88
208
|
*/
|
|
89
209
|
seriesIds?: string[];
|
|
90
210
|
/**
|
|
91
|
-
* Hides the scrubber line
|
|
211
|
+
* Hides the scrubber line.
|
|
212
|
+
* @note This hides Scrubber's ReferenceLine including the label.
|
|
92
213
|
*/
|
|
93
214
|
hideLine?: boolean;
|
|
94
215
|
/**
|
|
95
|
-
*
|
|
216
|
+
* Hides the overlay rect which obscures data beyond the scrubber position.
|
|
96
217
|
*/
|
|
97
218
|
hideOverlay?: boolean;
|
|
98
219
|
/**
|
|
@@ -101,18 +222,50 @@ export declare const Scrubber: React.MemoExoticComponent<
|
|
|
101
222
|
* @default 2
|
|
102
223
|
*/
|
|
103
224
|
overlayOffset?: number;
|
|
225
|
+
/**
|
|
226
|
+
* Minimum gap between beacon labels to prevent overlap.
|
|
227
|
+
* Measured in pixels.
|
|
228
|
+
*/
|
|
229
|
+
beaconLabelMinGap?: ScrubberBeaconLabelGroupBaseProps['labelMinGap'];
|
|
230
|
+
/**
|
|
231
|
+
* Horizontal offset for beacon labels from their beacon position.
|
|
232
|
+
* Measured in pixels.
|
|
233
|
+
*/
|
|
234
|
+
beaconLabelHorizontalOffset?: ScrubberBeaconLabelGroupBaseProps['labelHorizontalOffset'];
|
|
104
235
|
/**
|
|
105
236
|
* Label text displayed above the scrubber line.
|
|
237
|
+
* Can be a static string or a function that receives the current dataIndex.
|
|
106
238
|
*/
|
|
107
|
-
label?:
|
|
239
|
+
label?:
|
|
240
|
+
| ReferenceLineBaseProps['label']
|
|
241
|
+
| ((dataIndex: number) => ReferenceLineBaseProps['label']);
|
|
108
242
|
/**
|
|
109
|
-
*
|
|
243
|
+
* Font style for the scrubber line label.
|
|
110
244
|
*/
|
|
111
|
-
|
|
245
|
+
labelFont?: ChartTextProps['font'];
|
|
246
|
+
/**
|
|
247
|
+
* Bounds inset for the scrubber line label to prevent cutoff at chart edges.
|
|
248
|
+
* @default { top: 4, bottom: 20, left: 12, right: 12 } when labelElevated is true, otherwise none
|
|
249
|
+
*/
|
|
250
|
+
labelBoundsInset?: number | ChartInset;
|
|
251
|
+
/**
|
|
252
|
+
* Font style for the beacon labels.
|
|
253
|
+
*/
|
|
254
|
+
beaconLabelFont?: ChartTextProps['font'];
|
|
112
255
|
/**
|
|
113
256
|
* Stroke color for the scrubber line.
|
|
114
257
|
*/
|
|
115
|
-
lineStroke?:
|
|
258
|
+
lineStroke?: ReferenceLineBaseProps['stroke'];
|
|
259
|
+
/**
|
|
260
|
+
* Transition configuration for the scrubber beacon.
|
|
261
|
+
*/
|
|
262
|
+
beaconTransitions?: ScrubberBeaconProps['transitions'];
|
|
263
|
+
} & {
|
|
264
|
+
/**
|
|
265
|
+
* Accessibility label for the scrubber. Can be a static string or a function that receives the current dataIndex.
|
|
266
|
+
* If not provided, label will be used if it resolves to a string.
|
|
267
|
+
*/
|
|
268
|
+
accessibilityLabel?: string | ((dataIndex: number) => string);
|
|
116
269
|
/**
|
|
117
270
|
* Custom styles for scrubber elements.
|
|
118
271
|
*/
|
|
@@ -131,19 +284,7 @@ export declare const Scrubber: React.MemoExoticComponent<
|
|
|
131
284
|
line?: string;
|
|
132
285
|
beaconLabel?: string;
|
|
133
286
|
};
|
|
134
|
-
|
|
135
|
-
* Custom component for the scrubber beacon.
|
|
136
|
-
*/
|
|
137
|
-
BeaconComponent?: React.ComponentType<ScrubberBeaconProps>;
|
|
138
|
-
/**
|
|
139
|
-
* Custom component for the scrubber beacon label.
|
|
140
|
-
*/
|
|
141
|
-
BeaconLabelComponent?: React.ComponentType<ScrubberBeaconLabelProps>;
|
|
142
|
-
/**
|
|
143
|
-
* Custom component for the scrubber line.
|
|
144
|
-
*/
|
|
145
|
-
LineComponent?: React.ComponentType<ReferenceLineProps>;
|
|
146
|
-
} & React.RefAttributes<ScrubberBeaconRef>
|
|
287
|
+
} & React.RefAttributes<ScrubberBeaconGroupRef>
|
|
147
288
|
>
|
|
148
289
|
>;
|
|
149
290
|
//# sourceMappingURL=Scrubber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Scrubber.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/Scrubber.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Scrubber.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/Scrubber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACtC,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAGL,KAAK,UAAU,EAGf,KAAK,MAAM,EAEZ,MAAM,UAAU,CAAC;AAIlB,OAAO,EAEL,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,KAAK,iCAAiC,EACtC,KAAK,6BAA6B,EACnC,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,WAAW,GAAG;IAC9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