@coinbase/cds-web-visualization 3.4.0-beta.1 → 3.4.0-beta.11
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 +53 -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 +109 -63
- 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 +2 -2
- 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 +87 -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/axis.d.ts +25 -1
- package/dts/chart/utils/axis.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 +40 -7
- package/dts/chart/utils/point.d.ts.map +1 -1
- package/dts/chart/utils/scale.d.ts +11 -0
- package/dts/chart/utils/scale.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/dts/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.d.ts.map +1 -1
- package/esm/chart/CartesianChart.js +140 -85
- package/esm/chart/Path.js +53 -47
- 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 -39
- package/esm/chart/axis/DefaultAxisTickLabel.js +15 -0
- package/esm/chart/axis/XAxis.js +184 -63
- package/esm/chart/axis/YAxis.js +190 -57
- 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 +15 -20
- package/esm/chart/text/{SmartChartTextGroup.js → ChartTextGroup.js} +4 -3
- package/esm/chart/text/index.js +1 -1
- package/esm/chart/utils/axis.js +45 -29
- 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 +99 -12
- package/esm/chart/utils/scale.js +13 -2
- package/esm/chart/utils/scrubber.js +132 -0
- package/esm/chart/utils/transition.js +111 -0
- package/esm/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.js +8 -4
- package/package.json +9 -9
- 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,112 @@
|
|
|
1
|
+
type CommandType =
|
|
2
|
+
| 'M'
|
|
3
|
+
| 'L'
|
|
4
|
+
| 'H'
|
|
5
|
+
| 'V'
|
|
6
|
+
| 'C'
|
|
7
|
+
| 'S'
|
|
8
|
+
| 'Q'
|
|
9
|
+
| 'T'
|
|
10
|
+
| 'A'
|
|
11
|
+
| 'Z'
|
|
12
|
+
| 'm'
|
|
13
|
+
| 'l'
|
|
14
|
+
| 'h'
|
|
15
|
+
| 'v'
|
|
16
|
+
| 'c'
|
|
17
|
+
| 's'
|
|
18
|
+
| 'q'
|
|
19
|
+
| 't'
|
|
20
|
+
| 'a'
|
|
21
|
+
| 'z';
|
|
22
|
+
type PathCommand = {
|
|
23
|
+
type: CommandType;
|
|
24
|
+
x?: number;
|
|
25
|
+
y?: number;
|
|
26
|
+
x1?: number;
|
|
27
|
+
y1?: number;
|
|
28
|
+
x2?: number;
|
|
29
|
+
y2?: number;
|
|
30
|
+
rx?: number;
|
|
31
|
+
ry?: number;
|
|
32
|
+
xAxisRotation?: number;
|
|
33
|
+
largeArcFlag?: number;
|
|
34
|
+
sweepFlag?: number;
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Convert command objects to arrays of points, run de Casteljau's algorithm on it
|
|
39
|
+
* to split into to the desired number of segments.
|
|
40
|
+
*
|
|
41
|
+
* @param {Object} commandStart The start command object
|
|
42
|
+
* @param {Object} commandEnd The end command object
|
|
43
|
+
* @param {Number} segmentCount The number of segments to create
|
|
44
|
+
* @return {Object[]} An array of commands representing the segments in sequence
|
|
45
|
+
*/
|
|
46
|
+
export declare function splitCurve(
|
|
47
|
+
commandStart: PathCommand,
|
|
48
|
+
commandEnd: PathCommand,
|
|
49
|
+
segmentCount?: number,
|
|
50
|
+
): PathCommand[];
|
|
51
|
+
type ExcludeSegmentFn = (commandStart: PathCommand, commandEnd: PathCommand) => boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Takes a path `d` string and converts it into an array of command
|
|
54
|
+
* objects. Drops the `Z` character.
|
|
55
|
+
*
|
|
56
|
+
* @param {String|null} d A path `d` string
|
|
57
|
+
*/
|
|
58
|
+
export declare function pathCommandsFromString(d: string | null | undefined): PathCommand[];
|
|
59
|
+
type InterpolateOptions = {
|
|
60
|
+
excludeSegment?: ExcludeSegmentFn;
|
|
61
|
+
snapEndsToInput?: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Interpolate from A to B by extending A and B during interpolation to have
|
|
65
|
+
* the same number of points. This allows for a smooth transition when they
|
|
66
|
+
* have a different number of points.
|
|
67
|
+
*
|
|
68
|
+
* Ignores the `Z` command in paths unless both A and B end with it.
|
|
69
|
+
*
|
|
70
|
+
* This function works directly with arrays of command objects instead of with
|
|
71
|
+
* path `d` strings (see interpolatePath for working with `d` strings).
|
|
72
|
+
*
|
|
73
|
+
* @param {Object[]} aCommandsInput Array of path commands
|
|
74
|
+
* @param {Object[]} bCommandsInput Array of path commands
|
|
75
|
+
* @param {(Function|Object)} interpolateOptions
|
|
76
|
+
* @param {Function} interpolateOptions.excludeSegment a function that takes a start command object and
|
|
77
|
+
* end command object and returns true if the segment should be excluded from splitting.
|
|
78
|
+
* @param {Boolean} interpolateOptions.snapEndsToInput a boolean indicating whether end of input should
|
|
79
|
+
* be sourced from input argument or computed.
|
|
80
|
+
* @returns {Function} Interpolation function that maps t ([0, 1]) to an array of path commands.
|
|
81
|
+
*/
|
|
82
|
+
export declare function interpolatePathCommands(
|
|
83
|
+
aCommandsInput: PathCommand[] | null | undefined,
|
|
84
|
+
bCommandsInput: PathCommand[] | null | undefined,
|
|
85
|
+
interpolateOptions?: ExcludeSegmentFn | InterpolateOptions,
|
|
86
|
+
): (t: number) => PathCommand[];
|
|
87
|
+
/**
|
|
88
|
+
* Interpolate from A to B by extending A and B during interpolation to have
|
|
89
|
+
* the same number of points. This allows for a smooth transition when they
|
|
90
|
+
* have a different number of points.
|
|
91
|
+
*
|
|
92
|
+
* Ignores the `Z` character in paths unless both A and B end with it.
|
|
93
|
+
*
|
|
94
|
+
* @param {String} a The `d` attribute for a path
|
|
95
|
+
* @param {String} b The `d` attribute for a path
|
|
96
|
+
* @param {((command1, command2) => boolean|{
|
|
97
|
+
* excludeSegment?: (command1, command2) => boolean;
|
|
98
|
+
* snapEndsToInput?: boolean
|
|
99
|
+
* })} interpolateOptions The excludeSegment function or an options object
|
|
100
|
+
* - interpolateOptions.excludeSegment a function that takes a start command object and
|
|
101
|
+
* end command object and returns true if the segment should be excluded from splitting.
|
|
102
|
+
* - interpolateOptions.snapEndsToInput a boolean indicating whether end of input should
|
|
103
|
+
* be sourced from input argument or computed.
|
|
104
|
+
* @returns {Function} Interpolation function that maps t ([0, 1]) to a path `d` string.
|
|
105
|
+
*/
|
|
106
|
+
export declare function interpolatePath(
|
|
107
|
+
a: string | null | undefined,
|
|
108
|
+
b: string | null | undefined,
|
|
109
|
+
interpolateOptions?: ExcludeSegmentFn | InterpolateOptions,
|
|
110
|
+
): (t: number) => string;
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=interpolate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interpolate.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/interpolate.ts"],"names":[],"mappings":"AAIA,KAAK,WAAW,GACZ,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AAER,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,WAAW,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC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
* ```typescript
|
|
26
26
|
* const chartScale = getChartScale({ chartRect, domain, range, xScale, yScale });
|
|
27
|
-
* const path = getLinePath({ data: [1, 2, 3], chartScale, curve: '
|
|
27
|
+
* const path = getLinePath({ data: [1, 2, 3], chartScale, curve: 'bump' });
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
30
|
export declare const getLinePath: ({
|
|
@@ -33,6 +33,7 @@ export declare const getLinePath: ({
|
|
|
33
33
|
xScale,
|
|
34
34
|
yScale,
|
|
35
35
|
xData,
|
|
36
|
+
connectNulls,
|
|
36
37
|
}: {
|
|
37
38
|
data: (
|
|
38
39
|
| number
|
|
@@ -46,6 +47,11 @@ export declare const getLinePath: ({
|
|
|
46
47
|
xScale: ChartScaleFunction;
|
|
47
48
|
yScale: ChartScaleFunction;
|
|
48
49
|
xData?: number[];
|
|
50
|
+
/**
|
|
51
|
+
* When true, null values are skipped and the line connects across gaps.
|
|
52
|
+
* By default, null values create gaps in the line.
|
|
53
|
+
*/
|
|
54
|
+
connectNulls?: boolean;
|
|
49
55
|
}) => string;
|
|
50
56
|
/**
|
|
51
57
|
* Generates an SVG area path string from data using chart scale functions.
|
|
@@ -75,13 +81,30 @@ export declare const getAreaPath: ({
|
|
|
75
81
|
xScale,
|
|
76
82
|
yScale,
|
|
77
83
|
xData,
|
|
84
|
+
connectNulls,
|
|
78
85
|
}: {
|
|
79
86
|
data: (number | null)[] | Array<[number, number] | null>;
|
|
80
87
|
xScale: ChartScaleFunction;
|
|
81
88
|
yScale: ChartScaleFunction;
|
|
82
89
|
curve: ChartPathCurveType;
|
|
83
90
|
xData?: number[];
|
|
91
|
+
/**
|
|
92
|
+
* When true, null values are skipped and the area connects across gaps.
|
|
93
|
+
* By default null values create gaps in the area.
|
|
94
|
+
*/
|
|
95
|
+
connectNulls?: boolean;
|
|
84
96
|
}) => string;
|
|
97
|
+
/**
|
|
98
|
+
* Converts line coordinates to an SVG path string.
|
|
99
|
+
* Useful for rendering axis lines and tick marks.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```typescript
|
|
103
|
+
* const path = lineToPath(0, 0, 100, 100);
|
|
104
|
+
* // Returns: "M 0 0 L 100 100"
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare const lineToPath: (x1: number, y1: number, x2: number, y2: number) => string;
|
|
85
108
|
/**
|
|
86
109
|
* Creates an SVG path string for a rectangle with selective corner rounding.
|
|
87
110
|
* Useful for creating bars in charts with optional rounded corners.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/path.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,UAAU,GACV,SAAS,GACT,MAAM,GACN,YAAY,GACZ,WAAW,CAAC;AAEhB;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAO,kBAA6B,oCAsBxE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GAAI,
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/path.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,SAAS,CAAC;AAEtE,MAAM,MAAM,kBAAkB,GAC1B,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,cAAc,GACd,UAAU,GACV,SAAS,GACT,MAAM,GACN,YAAY,GACZ,WAAW,CAAC;AAEhB;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAO,kBAA6B,oCAsBxE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,GAAI,uDAOzB;IACD,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACnD,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,KAAG,MAoBH,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,WAAW,GAAI,uDAOzB;IACD,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC;IACzD,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,KAAG,MAoFH,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,MAAM,EAAE,IAAI,MAAM,EAAE,IAAI,MAAM,EAAE,IAAI,MAAM,KAAG,MAE3E,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GACrB,GAAG,MAAM,EACT,GAAG,MAAM,EACT,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,QAAQ,MAAM,EACd,UAAU,OAAO,EACjB,aAAa,OAAO,KACnB,MA0BF,CAAC"}
|
|
@@ -1,13 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TextHorizontalAlignment, TextVerticalAlignment } from '../text';
|
|
2
|
+
import { type ChartScaleFunction, type PointAnchor } from './scale';
|
|
3
|
+
/**
|
|
4
|
+
* Position a label should be placed relative to the point
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* 'top' would have the label be located above the point itself,
|
|
8
|
+
* and thus the vertical alignment of that text would be bottom.
|
|
9
|
+
*/
|
|
10
|
+
export type PointLabelPosition = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
2
11
|
/**
|
|
3
12
|
* Get a point from a data value and a scale.
|
|
4
|
-
*
|
|
5
|
-
* @
|
|
6
|
-
* @param
|
|
7
|
-
* @param
|
|
8
|
-
* @returns
|
|
13
|
+
*
|
|
14
|
+
* @param dataValue - The data value to convert to a pixel position.
|
|
15
|
+
* @param scale - The scale function.
|
|
16
|
+
* @param anchor (@default 'middle') - For band scales, where to anchor the point within the band.
|
|
17
|
+
* @returns The pixel value (@default 0 if data value is not defined in scale).
|
|
9
18
|
*/
|
|
10
|
-
export declare const getPointOnScale: (
|
|
19
|
+
export declare const getPointOnScale: (
|
|
20
|
+
dataValue: number,
|
|
21
|
+
scale: ChartScaleFunction,
|
|
22
|
+
anchor?: PointAnchor,
|
|
23
|
+
) => number;
|
|
11
24
|
/**
|
|
12
25
|
* Projects a data point to pixel coordinates using the chart scale.
|
|
13
26
|
* Automatically handles log scale transformations for zero/negative values.
|
|
@@ -72,4 +85,24 @@ export declare const projectPoints: ({
|
|
|
72
85
|
x: number;
|
|
73
86
|
y: number;
|
|
74
87
|
} | null>;
|
|
88
|
+
/**
|
|
89
|
+
* Determines text alignment based on label position.
|
|
90
|
+
* For example, a 'top' position needs the text aligned to the 'bottom' so it appears above the point.
|
|
91
|
+
*/
|
|
92
|
+
export declare const getAlignmentFromPosition: (position: PointLabelPosition) => {
|
|
93
|
+
horizontalAlignment: TextHorizontalAlignment;
|
|
94
|
+
verticalAlignment: TextVerticalAlignment;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Calculates the final label coordinates by applying offset based on position.
|
|
98
|
+
*/
|
|
99
|
+
export declare const getLabelCoordinates: (
|
|
100
|
+
x: number,
|
|
101
|
+
y: number,
|
|
102
|
+
position: PointLabelPosition,
|
|
103
|
+
offset: number,
|
|
104
|
+
) => {
|
|
105
|
+
x: number;
|
|
106
|
+
y: number;
|
|
107
|
+
};
|
|
75
108
|
//# sourceMappingURL=point.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE9E,OAAO,EAEL,KAAK,kBAAkB,EAIvB,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAEjB;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,MAAM,EACjB,OAAO,kBAAkB,EACzB,SAAQ,WAAsB,KAC7B,MAiCF,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,GAAI,2BAK1B;IACD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;CAC5B,KAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAEzB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,aAAa,GAAI,yCAM3B;IACD,IAAI,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,EAAE,kBAAkB,CAAC;CAC5B,KAAG,KAAK,CAAC;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAqDxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,GACnC,UAAU,kBAAkB,KAC3B;IAAE,mBAAmB,EAAE,uBAAuB,CAAC;IAAC,iBAAiB,EAAE,qBAAqB,CAAA;CAyB1F,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,GAC9B,GAAG,MAAM,EACT,GAAG,MAAM,EACT,UAAU,kBAAkB,EAC5B,QAAQ,MAAM,KACb;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CA0BxB,CAAC"}
|
|
@@ -40,4 +40,15 @@ export declare const getCategoricalScale: ({
|
|
|
40
40
|
range: AxisBounds;
|
|
41
41
|
padding?: number;
|
|
42
42
|
}) => CategoricalScale;
|
|
43
|
+
/**
|
|
44
|
+
* Anchor position for points on a scale. Currently used only for band scales.
|
|
45
|
+
*
|
|
46
|
+
* For band scales, this determines where within the band to position a point:
|
|
47
|
+
* - `'stepStart'` - At the start of the step
|
|
48
|
+
* - `'bandStart'` - At the start of the band
|
|
49
|
+
* - `'middle'` - At the center of the band
|
|
50
|
+
* - `'bandEnd'` - At the end of the band
|
|
51
|
+
* - `'stepEnd'` - At the end of the step
|
|
52
|
+
*/
|
|
53
|
+
export type PointAnchor = 'stepStart' | 'bandStart' | 'middle' | 'bandEnd' | 'stepEnd';
|
|
43
54
|
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAA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= 'left' | 'right';
|
|
3
|
+
export type LabelPosition = {
|
|
4
|
+
seriesId: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
export type LabelDimensions = {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Determines which side (left/right) to place scrubber labels based on available space.
|
|
14
|
+
* Prefers right side, switches to left when labels would overflow.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getLabelPosition: (
|
|
17
|
+
beaconX: number,
|
|
18
|
+
maxLabelWidth: number,
|
|
19
|
+
drawingArea: Rect,
|
|
20
|
+
xOffset?: number,
|
|
21
|
+
) => ScrubberLabelPosition;
|
|
22
|
+
type LabelDimension = {
|
|
23
|
+
seriesId: string;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
preferredX: number;
|
|
27
|
+
preferredY: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Calculates Y positions for all labels avoiding overlaps while maintaining order.
|
|
31
|
+
*/
|
|
32
|
+
export declare const calculateLabelYPositions: (
|
|
33
|
+
dimensions: LabelDimension[],
|
|
34
|
+
drawingArea: Rect,
|
|
35
|
+
labelHeight: number,
|
|
36
|
+
minGap: number,
|
|
37
|
+
) => Map<string, number>;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=scrubber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrubber.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/scrubber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD,MAAM,MAAM,qBAAqB,GAAG,MAAM,GAAG,OAAO,CAAC;AAErD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,MAAM,EACf,eAAe,MAAM,EACrB,aAAa,IAAI,EACjB,UAAS,MAAW,KACnB,qBASF,CAAC;AAQF,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,cAAc,EAAE,EAC5B,aAAa,IAAI,EACjB,aAAa,MAAM,EACnB,QAAQ,MAAM,KACb,GAAG,CAAC,MAAM,EAAE,MAAM,CAoIpB,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type MotionValue, type Transition } from 'framer-motion';
|
|
2
|
+
/**
|
|
3
|
+
* Default transition configuration used across all chart components.
|
|
4
|
+
*/
|
|
5
|
+
export declare const defaultTransition: Transition;
|
|
6
|
+
/**
|
|
7
|
+
* Duration in seconds for accessory elements to fade in.
|
|
8
|
+
*/
|
|
9
|
+
export declare const accessoryFadeTransitionDuration = 0.15;
|
|
10
|
+
/**
|
|
11
|
+
* Delay in seconds before accessory elements fade in.
|
|
12
|
+
*/
|
|
13
|
+
export declare const accessoryFadeTransitionDelay = 0.35;
|
|
14
|
+
/**
|
|
15
|
+
* Hook for path animation state and transitions.
|
|
16
|
+
*
|
|
17
|
+
* @param currentPath - Current target path to animate to
|
|
18
|
+
* @param initialPath - Initial path for enter animation. When provided, the first animation will go from initialPath to currentPath.
|
|
19
|
+
* @param transition - Transition configuration
|
|
20
|
+
* @returns MotionValue containing the current interpolated path string
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Simple path transition
|
|
24
|
+
* const animatedPath = usePathTransition({
|
|
25
|
+
* currentPath: d ?? '',
|
|
26
|
+
* transition: {
|
|
27
|
+
* type: 'spring',
|
|
28
|
+
* stiffness: 300,
|
|
29
|
+
* damping: 20
|
|
30
|
+
* }
|
|
31
|
+
* });
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Time based animation
|
|
35
|
+
* const animatedPath = usePathTransition({
|
|
36
|
+
* currentPath: targetPath,
|
|
37
|
+
* initialPath: baselinePath,
|
|
38
|
+
* transition: {
|
|
39
|
+
* type: 'tween',
|
|
40
|
+
* duration: 0.3,
|
|
41
|
+
* ease: 'easeInOut'
|
|
42
|
+
* }
|
|
43
|
+
* });
|
|
44
|
+
*/
|
|
45
|
+
export declare const usePathTransition: ({
|
|
46
|
+
currentPath,
|
|
47
|
+
initialPath,
|
|
48
|
+
transition,
|
|
49
|
+
}: {
|
|
50
|
+
/**
|
|
51
|
+
* Current target path to animate to.
|
|
52
|
+
*/
|
|
53
|
+
currentPath: string;
|
|
54
|
+
/**
|
|
55
|
+
* Initial path for enter animation.
|
|
56
|
+
* When provided, the first animation will go from initialPath to currentPath.
|
|
57
|
+
* If not provided, defaults to currentPath (no enter animation).
|
|
58
|
+
*/
|
|
59
|
+
initialPath?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Transition configuration
|
|
62
|
+
*/
|
|
63
|
+
transition?: Transition;
|
|
64
|
+
}) => MotionValue<string>;
|
|
65
|
+
//# sourceMappingURL=transition.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/transition.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,UAAU,EAIhB,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,UAK/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,OAAO,CAAC;AAEpD;;GAEG;AACH,eAAO,MAAM,4BAA4B,OAAO,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,iBAAiB,GAAI,2CAI/B;IACD;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,KAAG,WAAW,CAAC,MAAM,CAwDrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SparklineInteractiveMarkerDates.d.ts","sourceRoot":"","sources":["../../../src/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AASjE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"SparklineInteractiveMarkerDates.d.ts","sourceRoot":"","sources":["../../../src/sparkline/sparkline-interactive/SparklineInteractiveMarkerDates.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AASjE,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAkD9E,MAAM,MAAM,oCAAoC,CAAC,MAAM,SAAS,MAAM,IAAI;IACxE,SAAS,EAAE,cAAc,CAAC;IAC1B,UAAU,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC;CACpC,CAAC;AAEF,iBAAS,0CAA0C,CAAC,MAAM,SAAS,MAAM,EAAE,EACzE,UAAU,EACV,cAAc,EACd,SAAS,EACT,gBAAoB,GACrB,EAAE,oCAAoC,CAAC,MAAM,CAAC,2CA0C9C;AAED,eAAO,MAAM,+BAA+B,EAEvC,OAAO,0CAA0C,CAAC"}
|