@progress/kendo-react-charts 7.0.3-develop.9 → 7.1.0-develop.10

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.
@@ -3,15 +3,40 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { drawing } from '@progress/kendo-drawing';
6
- import { LegendItemVisualArgs } from '../../common/property-types';
6
+ import { Border, DashType, LegendItemVisualArgs } from '../../common/property-types';
7
+ import { SeriesMarkers } from './../series-item/markers.interface';
7
8
  /**
8
- * @hidden
9
+ * The configuration of the Chart legend item.
9
10
  */
10
11
  export interface LegendItem {
11
12
  /**
12
13
  * The cursor style of the legend item.
13
14
  */
14
15
  cursor?: string;
16
+ /**
17
+ * Sets the type of the legend item.
18
+ * The default value is based on the series type.
19
+ */
20
+ type?: LegendItemType;
21
+ /**
22
+ * Sets the configuration of the legend items of type `line`.
23
+ * This is the default legend item type for all line and scatter series.
24
+ */
25
+ line?: LegendItemLine;
26
+ /**
27
+ * Sets the configuration of the legend items of type `area`.
28
+ * By default, all series except line and scatter use this legend type.
29
+ */
30
+ area?: LegendItemArea;
31
+ /**
32
+ * The markers configuration of the legend item.
33
+ * Defaults to the series options.
34
+ */
35
+ markers?: LegendItemMarkers;
36
+ /**
37
+ * The highlight configuration of the legend item.
38
+ */
39
+ highlight?: LegendItemHighlight;
15
40
  /**
16
41
  * A function for creating a custom visual for the legend items.
17
42
  *
@@ -23,3 +48,74 @@ export interface LegendItem {
23
48
  */
24
49
  visual?: (e: LegendItemVisualArgs) => drawing.Element;
25
50
  }
51
+ /**
52
+ * The configuration of the Chart legend item markers border.
53
+ */
54
+ export interface LegendItemMarkersBorder extends Omit<Border, 'width'> {
55
+ }
56
+ /**
57
+ * The configuration of the Chart legend item markers.
58
+ */
59
+ export interface LegendItemMarkers extends Omit<SeriesMarkers, 'size' | 'border' | 'rotation' | 'from' | 'to'> {
60
+ /**
61
+ * The border of the markers.
62
+ */
63
+ border?: LegendItemMarkersBorder;
64
+ }
65
+ /**
66
+ * The configuration of the Chart legend item highlight state.
67
+ */
68
+ export interface LegendItemHighlight {
69
+ /**
70
+ * If set to `false`, the hover effect of the legend item is disabled.
71
+ */
72
+ visible?: boolean;
73
+ /**
74
+ * The `markers` configuration of the legend item when it is hovered.
75
+ */
76
+ markers?: LegendItemMarkers;
77
+ }
78
+ /**
79
+ * The configuration of the Chart legend item of type `line`.
80
+ * Defaults to the series options.
81
+ */
82
+ export interface LegendItemLine {
83
+ /**
84
+ * The color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
85
+ * Defaults to the series color.
86
+ */
87
+ color?: string;
88
+ /**
89
+ * The opacity of the legend item.
90
+ * Defaults to the series opacity.
91
+ */
92
+ opacity?: number;
93
+ /**
94
+ * The dash type of the legend item.
95
+ * Defaults to the series dash type.
96
+ */
97
+ dashType?: DashType;
98
+ }
99
+ /**
100
+ * The configuration of the Chart legend items of type `area`.
101
+ * Defaults to the series options.
102
+ */
103
+ export interface LegendItemArea {
104
+ /**
105
+ * The background color of the legend item. Accepts a valid CSS color string, including HEX and RGB.
106
+ * Defaults to the series color.
107
+ */
108
+ background?: string;
109
+ /**
110
+ * The opacity of the legend item.
111
+ * Defaults to the series opacity.
112
+ */
113
+ opacity?: number;
114
+ }
115
+ /**
116
+ * The type of the Chart legend item.
117
+ *
118
+ * - `"line"`&mdash;the legend items are rendered as a line. This is the default value for line charts.
119
+ * - `"area"`&mdash;the legend items are rendered as a filled rectangle. This is the default value for area charts.
120
+ */
121
+ export type LegendItemType = 'line' | 'area';
@@ -19,4 +19,16 @@ export interface SeriesTrendline {
19
19
  * The period setting is supported only for Moving Average trendlines.
20
20
  */
21
21
  period?: number;
22
+ /**
23
+ * The order (degree) of the Polynomial trendline. The default value is 2.
24
+ *
25
+ * Accepted values are from 2 to 6:
26
+ * * 2: a Quadratic polynomial trendline with a single extreme point (minimum or maximum) point.
27
+ * * 3: a Cubic polynomial trendline with up to 2 extreme points.
28
+ * * 4: a polynomial trendline of 4th degree with up to 3 extreme points.
29
+ * * 5: a polynomial trendline of 5th degree with up to 4 extreme points.
30
+ * * 6: a polynomial trendline of 6th degree with up to 5 extreme points.
31
+ *
32
+ */
33
+ order?: number;
22
34
  }
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the package root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { drawing } from '@progress/kendo-drawing';
6
- import { Border, BulletTarget, DashType, LabelConnectors, SeriesTrendline } from '../common/property-types';
6
+ import { Border, BulletTarget, DashType, LabelConnectors, LegendItem, SeriesTrendline } from '../common/property-types';
7
7
  import { Margin, NegativeBubbleValues, Overlay, SeriesLine, SeriesType } from '../common/property-types';
8
8
  import { LineStyle, SeriesStack, SeriesVisualArgs } from '../common/property-types';
9
9
  import { SeriesErrorBars } from './series-item/error-bars.interface';
@@ -140,7 +140,8 @@ export interface Series {
140
140
  /**
141
141
  * The name of the parent series of the trendline.
142
142
  *
143
- * The `for` option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to `"linearTrendline"` or `"movingAverageTrendline"`.
143
+ * The `for` option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to
144
+ * "`linearTrendline`", "`exponentialTrendline`", "`logarithmicTrendline`", "`powerTrendline`", "`polynomialTrendline`" or "`movingAverageTrendline`".
144
145
  */
145
146
  for?: string;
146
147
  /**
@@ -313,14 +314,22 @@ export interface Series {
313
314
  * - `candlestick`
314
315
  * - `column`
315
316
  * - `donut`
317
+ * - `exponentialTrendline`
316
318
  * - `funnel`
319
+ * - `pyramid`
320
+ * - `heatmap`
317
321
  * - `horizontalWaterfall`
318
322
  * - `line`
323
+ * - `linearTrendline`
324
+ * - `logarithmicTrendline`
325
+ * - `movingAverageTrendline`
319
326
  * - `ohlc`
320
327
  * - `pie`
321
328
  * - `polarArea`
322
329
  * - `polarLine`
323
330
  * - `polarScatter`
331
+ * - `polynomialTrendline`
332
+ * - `powerTrendline`
324
333
  * - `radarArea`
325
334
  * - `radarColumn`
326
335
  * - `radarLine`
@@ -435,9 +444,14 @@ export interface Series {
435
444
  */
436
445
  labels?: SeriesLabels;
437
446
  /**
438
- * The configuration of the Chart series marker. The Chart displays the series labels when the [`series.markers.visible`]({% slug api_charts_chartseriesmarkersprops %}#toc-visible) option is set to `true`. The markers option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to `"area"`, `"rangeArea"`, `"line"`, `"scatter"`, `"scatterLine"`, `"radarLine"`, `"radarArea"`, `"polarLine"`, `"polarScatter"`, or `"polarArea"`.
447
+ * The configuration of the Chart series marker. The Chart displays the series markers when the [`series.markers.visible`]({% slug api_charts_chartseriesmarkersprops %}#toc-visible) option is set to `true`. The markers option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to `"area"`, `"rangeArea"`, `"line"`, `"scatter"`, `"scatterLine"`, `"radarLine"`, `"radarArea"`, `"polarLine"`, `"polarScatter"`, or `"polarArea"`.
439
448
  */
440
449
  markers?: SeriesMarkers;
450
+ /**
451
+ * The configuration of the Chart legend item.
452
+ * By default, the Legend item type and markers are inherited from the series.
453
+ */
454
+ legendItem?: LegendItem;
441
455
  /**
442
456
  * The configuration of the series notes.
443
457
  */
@@ -452,6 +466,9 @@ export interface Series {
452
466
  tooltip?: SeriesTooltip;
453
467
  /**
454
468
  * The configuration options of the series trendlines.
469
+ *
470
+ * The `trendline` option is supported when [`series.type`]({% slug api_charts_chartseriesitemprops %}#toc-type) is set to
471
+ * "`linearTrendline`", "`exponentialTrendline`", "`logarithmicTrendline`", "`powerTrendline`", "`polynomialTrendline`" or "`movingAverageTrendline`".
455
472
  */
456
473
  trendline?: SeriesTrendline;
457
474
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-react-charts",
3
- "version": "7.0.3-develop.9",
3
+ "version": "7.1.0-develop.10",
4
4
  "description": "React Chart renders a wide range of high-quality data visualizations. KendoReact Charts package",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -24,17 +24,17 @@
24
24
  "peerDependencies": {
25
25
  "@progress/kendo-drawing": "^1.19.0",
26
26
  "@progress/kendo-licensing": "^1.3.4",
27
- "@progress/kendo-react-common": "7.0.3-develop.9",
28
- "@progress/kendo-react-intl": "7.0.3-develop.9",
29
- "@progress/kendo-react-layout": "7.0.3-develop.9",
30
- "@progress/kendo-react-popup": "7.0.3-develop.9",
27
+ "@progress/kendo-react-common": "7.1.0-develop.10",
28
+ "@progress/kendo-react-intl": "7.1.0-develop.10",
29
+ "@progress/kendo-react-layout": "7.1.0-develop.10",
30
+ "@progress/kendo-react-popup": "7.1.0-develop.10",
31
31
  "@progress/kendo-svg-icons": "^2.1.0",
32
32
  "hammerjs": "^2.0.0",
33
33
  "react": "^16.8.2 || ^17.0.0 || ^18.0.0",
34
34
  "react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
35
35
  },
36
36
  "dependencies": {
37
- "@progress/kendo-charts": "1.32.1",
37
+ "@progress/kendo-charts": "2.1.0",
38
38
  "prop-types": "^15.6.0"
39
39
  },
40
40
  "keywords": [
@@ -0,0 +1,10 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import * as React from 'react';
6
+ import { SankeyHandle, SankeyProps } from './types';
7
+ /**
8
+ * The KendoReact Sankey component.
9
+ */
10
+ export declare const Sankey: React.ForwardRefExoticComponent<SankeyProps & React.RefAttributes<SankeyHandle | null>>;
@@ -0,0 +1,7 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { Sankey } from './Sankey';
6
+ import { type SankeyProps, type SankeyHandle, type SankeyEvent, type SankeyNode, type SankeyLink, type SankeyLabel, type SankeyData, type SankeyEventHandler, type SankeyLinkHighlight, type SankeyLinkDefaults, type SankeyLabelDefaults, type SankeyNodeDefaults } from './types';
7
+ export { Sankey, SankeyProps, SankeyHandle, SankeyEvent, SankeyEventHandler, SankeyLinkHighlight, SankeyNode, SankeyLink, SankeyLabel, SankeyLinkDefaults, SankeyLabelDefaults, SankeyNodeDefaults, SankeyData };
@@ -0,0 +1,117 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import PropTypes from 'prop-types';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare const sankeyPropTypes: {
10
+ data: PropTypes.Validator<Required<PropTypes.InferProps<{
11
+ nodes: PropTypes.Validator<Required<PropTypes.InferProps<{
12
+ color: PropTypes.Requireable<string>;
13
+ opacity: PropTypes.Requireable<number>;
14
+ offset: PropTypes.Requireable<Required<PropTypes.InferProps<{
15
+ left: PropTypes.Requireable<number>;
16
+ top: PropTypes.Requireable<number>;
17
+ }>>>;
18
+ padding: PropTypes.Requireable<number>;
19
+ width: PropTypes.Requireable<number>;
20
+ id: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
21
+ label: PropTypes.Validator<Required<PropTypes.InferProps<{
22
+ visible: PropTypes.Requireable<boolean>;
23
+ font: PropTypes.Requireable<string>;
24
+ color: PropTypes.Requireable<string>;
25
+ opacity: PropTypes.Requireable<number>;
26
+ align: PropTypes.Requireable<string>;
27
+ position: PropTypes.Requireable<string>;
28
+ padding: PropTypes.Requireable<NonNullable<number | Required<PropTypes.InferProps<{
29
+ top: PropTypes.Requireable<number>;
30
+ bottom: PropTypes.Requireable<number>;
31
+ left: PropTypes.Requireable<number>;
32
+ right: PropTypes.Requireable<number>;
33
+ }>> | null | undefined>>;
34
+ margin: PropTypes.Requireable<Required<PropTypes.InferProps<{
35
+ left: PropTypes.Requireable<number>;
36
+ right: PropTypes.Requireable<number>;
37
+ }>>>;
38
+ border: PropTypes.Requireable<Required<PropTypes.InferProps<{
39
+ width: PropTypes.Requireable<number>;
40
+ color: PropTypes.Requireable<string>;
41
+ opacity: PropTypes.Requireable<number>;
42
+ dashType: PropTypes.Requireable<string>;
43
+ }>>>;
44
+ offset: PropTypes.Requireable<Required<PropTypes.InferProps<{
45
+ left: PropTypes.Requireable<number>;
46
+ top: PropTypes.Requireable<number>;
47
+ }>>>;
48
+ text: PropTypes.Requireable<string>;
49
+ }>>>;
50
+ }>>[]>;
51
+ links: PropTypes.Validator<Required<PropTypes.InferProps<{
52
+ colorType: PropTypes.Requireable<string>;
53
+ color: PropTypes.Requireable<string>;
54
+ opacity: PropTypes.Requireable<number>;
55
+ highlight: PropTypes.Requireable<Required<PropTypes.InferProps<{
56
+ opacity: PropTypes.Requireable<number>;
57
+ inactiveOpacity: PropTypes.Requireable<number>;
58
+ }>>>;
59
+ sourceId: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
60
+ targetId: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
61
+ value: PropTypes.Validator<number>;
62
+ }>>[]>;
63
+ }>>>;
64
+ links: PropTypes.Requireable<Required<PropTypes.InferProps<{
65
+ colorType: PropTypes.Requireable<string>;
66
+ color: PropTypes.Requireable<string>;
67
+ opacity: PropTypes.Requireable<number>;
68
+ highlight: PropTypes.Requireable<Required<PropTypes.InferProps<{
69
+ opacity: PropTypes.Requireable<number>;
70
+ inactiveOpacity: PropTypes.Requireable<number>;
71
+ }>>>;
72
+ }>>>;
73
+ nodes: PropTypes.Requireable<Required<PropTypes.InferProps<{
74
+ color: PropTypes.Requireable<string>;
75
+ opacity: PropTypes.Requireable<number>;
76
+ offset: PropTypes.Requireable<Required<PropTypes.InferProps<{
77
+ left: PropTypes.Requireable<number>;
78
+ top: PropTypes.Requireable<number>;
79
+ }>>>;
80
+ padding: PropTypes.Requireable<number>;
81
+ width: PropTypes.Requireable<number>;
82
+ }>>>;
83
+ labels: PropTypes.Requireable<Required<PropTypes.InferProps<{
84
+ visible: PropTypes.Requireable<boolean>;
85
+ font: PropTypes.Requireable<string>;
86
+ color: PropTypes.Requireable<string>;
87
+ opacity: PropTypes.Requireable<number>;
88
+ align: PropTypes.Requireable<string>;
89
+ position: PropTypes.Requireable<string>;
90
+ padding: PropTypes.Requireable<NonNullable<number | Required<PropTypes.InferProps<{
91
+ top: PropTypes.Requireable<number>;
92
+ bottom: PropTypes.Requireable<number>;
93
+ left: PropTypes.Requireable<number>;
94
+ right: PropTypes.Requireable<number>;
95
+ }>> | null | undefined>>;
96
+ margin: PropTypes.Requireable<Required<PropTypes.InferProps<{
97
+ left: PropTypes.Requireable<number>;
98
+ right: PropTypes.Requireable<number>;
99
+ }>>>;
100
+ border: PropTypes.Requireable<Required<PropTypes.InferProps<{
101
+ width: PropTypes.Requireable<number>;
102
+ color: PropTypes.Requireable<string>;
103
+ opacity: PropTypes.Requireable<number>;
104
+ dashType: PropTypes.Requireable<string>;
105
+ }>>>;
106
+ offset: PropTypes.Requireable<Required<PropTypes.InferProps<{
107
+ left: PropTypes.Requireable<number>;
108
+ top: PropTypes.Requireable<number>;
109
+ }>>>;
110
+ }>>>;
111
+ className: PropTypes.Requireable<string>;
112
+ style: PropTypes.Requireable<object>;
113
+ onNodeEnter: PropTypes.Requireable<(...args: any[]) => any>;
114
+ onNodeLeave: PropTypes.Requireable<(...args: any[]) => any>;
115
+ onLinkEnter: PropTypes.Requireable<(...args: any[]) => any>;
116
+ onLinkLeave: PropTypes.Requireable<(...args: any[]) => any>;
117
+ };
@@ -0,0 +1,9 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SankeyTheme } from '@progress/kendo-charts';
6
+ /**
7
+ * @hidden
8
+ */
9
+ export declare const loadTheme: (doc: Document, done: (store: SankeyTheme) => void) => void;
@@ -0,0 +1,124 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { SankeyEvent as SankeyWidgetEvent, SankeyNode as SankeyNodeOptions, SankeyLink as SankeyLinkOptions, SankeyLabel as SankeyLabelOptions, SankeyLinkHighlight, SankeyLinkDefaults as SankeyLinkDefaultsOptions, SankeyNodeDefaults as SankeyNodeDefaultsOptions, SankeyLabelDefaults as SankeyLabelDefaultsOptions } from '@progress/kendo-charts';
6
+ import { BaseEvent } from '@progress/kendo-react-common';
7
+ export { SankeyLinkHighlight };
8
+ /**
9
+ * Represents the default link options of the Sankey component.
10
+ * The value will be applied to all links unless overridden by the `links` prop of the Sankey data option.
11
+ */
12
+ export interface SankeyLinkDefaults extends SankeyLinkDefaultsOptions {
13
+ }
14
+ /**
15
+ * Represents the default label options of the Sankey component.
16
+ * The value will be applied to all labels unless overridden by the `nodes` label prop of the Sankey data option.
17
+ */
18
+ export interface SankeyLabelDefaults extends SankeyLabelDefaultsOptions {
19
+ }
20
+ /**
21
+ * Represents the default node options of the Sankey component.
22
+ * The value will be applied to all nodes unless overridden by the `nodes` prop of the Sankey data option.
23
+ */
24
+ export interface SankeyNodeDefaults extends SankeyNodeDefaultsOptions {
25
+ }
26
+ /**
27
+ * Represents the Sankey label options.
28
+ */
29
+ export interface SankeyLabel extends SankeyLabelOptions {
30
+ }
31
+ /**
32
+ * Represents the Sankey link options.
33
+ */
34
+ export interface SankeyLink extends SankeyLinkOptions {
35
+ }
36
+ /**
37
+ * Represents the Sankey node options.
38
+ */
39
+ export interface SankeyNode extends SankeyNodeOptions {
40
+ }
41
+ /**
42
+ * The KendoReact Sankey event object.
43
+ */
44
+ export interface SankeyEvent extends Omit<SankeyWidgetEvent, 'originalEvent'>, BaseEvent<SankeyHandle> {
45
+ }
46
+ /**
47
+ * Represents the event handler type of the [Sankey]({% slug api_charts_sankey %}) component.
48
+ */
49
+ export type SankeyEventHandler = (event: SankeyEvent) => void;
50
+ /**
51
+ * Represents the data of the [Sankey]({% slug api_charts_sankey %}) component.
52
+ */
53
+ export interface SankeyData {
54
+ /**
55
+ * The links of the Sankey component.
56
+ */
57
+ links: SankeyLink[];
58
+ /**
59
+ * The nodes of the Sankey component.
60
+ */
61
+ nodes: SankeyNode[];
62
+ }
63
+ /**
64
+ * Represents the props of the KendoReact [Sankey]({% slug api_charts_sankey %}) component.
65
+ */
66
+ export interface SankeyProps {
67
+ /**
68
+ * The styles that are applied to the Sankey component.
69
+ */
70
+ style?: React.CSSProperties;
71
+ /**
72
+ * Sets additional CSS classes to the Sankey component.
73
+ */
74
+ className?: string;
75
+ /**
76
+ * The data of the Sankey component containing the `links` and `nodes` props.
77
+ */
78
+ data: SankeyData;
79
+ /**
80
+ * The `links` default props of the Sankey component.
81
+ * The value will be applied to all links unless overridden by the `links` prop of the `data` prop.
82
+ */
83
+ links?: SankeyLinkDefaults;
84
+ /**
85
+ * The `nodes` default props of the Sankey component.
86
+ * The value will be applied to all nodes unless overridden by the `nodes` prop of the `data` prop.
87
+ */
88
+ nodes?: SankeyNodeDefaults;
89
+ /**
90
+ * The `labels` default props of the Sankey component.
91
+ * The value will be applied to all labels unless overridden by the `nodes` label prop of the `data` prop.
92
+ */
93
+ labels?: SankeyLabelDefaults;
94
+ /**
95
+ * Fires when the mouse pointer enters a node. Similar to the `mouseenter` event.
96
+ */
97
+ onNodeEnter?: SankeyEventHandler;
98
+ /**
99
+ * Fires when the mouse pointer leaves a node. Similar to the `mouseleave` event.
100
+ */
101
+ onNodeLeave?: SankeyEventHandler;
102
+ /**
103
+ * Fires when the mouse pointer enters a link. Similar to the `mouseenter` event,
104
+ */
105
+ onLinkEnter?: SankeyEventHandler;
106
+ /**
107
+ * Fires when the mouse pointer leaves a link. Similar to the `mouseleave` event.
108
+ */
109
+ onLinkLeave?: SankeyEventHandler;
110
+ }
111
+ /**
112
+ * Represents the object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html)
113
+ * callback of the [Sankey]({% slug api_charts_sankey %}) component.
114
+ */
115
+ export interface SankeyHandle {
116
+ /**
117
+ * The root DOM element of the Sankey component.
118
+ */
119
+ element: HTMLDivElement | null;
120
+ /**
121
+ * The props of the Sankey component.
122
+ */
123
+ props: SankeyProps;
124
+ }