@progress/kendo-charts 2.3.0-dev.202404221217 → 2.3.0-dev.202404250846
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/cdn/js/kendo-charts.js +1 -1
- package/dist/cdn/main.js +1 -1
- package/dist/es/chart/chart.js +47 -5
- package/dist/es/common/constants.js +2 -0
- package/dist/es2015/chart/chart.js +43 -5
- package/dist/es2015/common/constants.js +2 -0
- package/dist/npm/main.js +48 -5
- package/dist/npm/sankey.d.ts +163 -29
- package/dist/systemjs/kendo-charts.js +1 -1
- package/package.json +1 -1
package/dist/npm/sankey.d.ts
CHANGED
|
@@ -25,7 +25,13 @@ export interface SankeyLinkHighlight {
|
|
|
25
25
|
* @default `{ top: 0, left: 0 }`
|
|
26
26
|
*/
|
|
27
27
|
export interface SankeyOffset {
|
|
28
|
+
/**
|
|
29
|
+
* The left offset of the element.
|
|
30
|
+
*/
|
|
28
31
|
left?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The top offset of the element.
|
|
34
|
+
*/
|
|
29
35
|
top?: number;
|
|
30
36
|
}
|
|
31
37
|
|
|
@@ -74,6 +80,39 @@ export interface SankeyLink {
|
|
|
74
80
|
highlight?: SankeyLinkHighlight;
|
|
75
81
|
}
|
|
76
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Represents the horizontal margin of a Sankey element.
|
|
85
|
+
*/
|
|
86
|
+
export interface SankeyHorizontalMargin extends Pick<Margin, 'left' | 'right'> { }
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Represents the stroke options of the Sankey label.
|
|
90
|
+
*/
|
|
91
|
+
export interface SankeyLabelStroke {
|
|
92
|
+
/**
|
|
93
|
+
* The stroke color of the label.
|
|
94
|
+
* Accepts a valid CSS color string, including hex and rgb.
|
|
95
|
+
*/
|
|
96
|
+
color?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The stroke width of the label.
|
|
99
|
+
*
|
|
100
|
+
* @default 1
|
|
101
|
+
*/
|
|
102
|
+
width?: number;
|
|
103
|
+
/**
|
|
104
|
+
* The line join option of the label.
|
|
105
|
+
*
|
|
106
|
+
* The supported values are:
|
|
107
|
+
* * `round`—The outer corners of the stroke will be rounded.
|
|
108
|
+
* * `bevel`—The outer corners of the stroke will be beveled.
|
|
109
|
+
* * `miter`—The outer corners of the stroke will be squared off.
|
|
110
|
+
*
|
|
111
|
+
* @default 'round'
|
|
112
|
+
*/
|
|
113
|
+
lineJoin?: 'round' | 'bevel' | 'miter';
|
|
114
|
+
}
|
|
115
|
+
|
|
77
116
|
/**
|
|
78
117
|
* Represents the labels options of the Sankey widget.
|
|
79
118
|
*/
|
|
@@ -124,10 +163,7 @@ export interface SankeyLabel {
|
|
|
124
163
|
*
|
|
125
164
|
* @default `{ left: 8, right: 8 }`
|
|
126
165
|
*/
|
|
127
|
-
margin?:
|
|
128
|
-
left?: number;
|
|
129
|
-
right?: number;
|
|
130
|
-
};
|
|
166
|
+
margin?: SankeyHorizontalMargin;
|
|
131
167
|
/**
|
|
132
168
|
* The border of the label.
|
|
133
169
|
*
|
|
@@ -146,11 +182,7 @@ export interface SankeyLabel {
|
|
|
146
182
|
*
|
|
147
183
|
* @default `{ width: 1, lineJoin: 'round' }`
|
|
148
184
|
*/
|
|
149
|
-
stroke?:
|
|
150
|
-
color?: string;
|
|
151
|
-
width?: number;
|
|
152
|
-
lineJoin?: 'round' | 'bevel' | 'miter';
|
|
153
|
-
};
|
|
185
|
+
stroke?: SankeyLabelStroke;
|
|
154
186
|
}
|
|
155
187
|
|
|
156
188
|
/**
|
|
@@ -257,6 +289,55 @@ export interface SankeyTitle {
|
|
|
257
289
|
*/
|
|
258
290
|
interface LegendTitle extends Omit<SankeyTitle, 'description'> { }
|
|
259
291
|
|
|
292
|
+
/**
|
|
293
|
+
* Represents the legend item options of the Sankey widget.
|
|
294
|
+
*/
|
|
295
|
+
export interface SankeyLegendItem {
|
|
296
|
+
/**
|
|
297
|
+
* The background color of the legend item square element. Accepts a valid CSS color string, including HEX and RGB.
|
|
298
|
+
* Defaults to the corresponding node color.
|
|
299
|
+
*/
|
|
300
|
+
areaBackground?: string;
|
|
301
|
+
/**
|
|
302
|
+
* The opacity of the legend item square element.
|
|
303
|
+
* Defaults to the corresponding node opacity.
|
|
304
|
+
*/
|
|
305
|
+
areaOpacity?: number;
|
|
306
|
+
/**
|
|
307
|
+
* The [cursor style](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) of the legend item.
|
|
308
|
+
*/
|
|
309
|
+
cursor?: string;
|
|
310
|
+
/**
|
|
311
|
+
* A function that can be used to create a custom visual for the legend items. The available argument fields are:
|
|
312
|
+
*
|
|
313
|
+
* * `options`—The options of the legend item.
|
|
314
|
+
* * `createVisual`—A function for getting the default visual.
|
|
315
|
+
*/
|
|
316
|
+
visual?: (args: { options: any; createVisual: () => Group }) => Group;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Represents the legend label options of the Sankey widget.
|
|
321
|
+
*/
|
|
322
|
+
export interface SankeyLegendLabel {
|
|
323
|
+
/**
|
|
324
|
+
* The color of the legend item label.
|
|
325
|
+
*/
|
|
326
|
+
color?: string;
|
|
327
|
+
/**
|
|
328
|
+
* The font of the legend item label.
|
|
329
|
+
*/
|
|
330
|
+
font?: string;
|
|
331
|
+
/**
|
|
332
|
+
* The margin of the legend item label.
|
|
333
|
+
*/
|
|
334
|
+
margin?: Margin | number;
|
|
335
|
+
/**
|
|
336
|
+
* The padding of the legend item label.
|
|
337
|
+
*/
|
|
338
|
+
padding?: Padding | number;
|
|
339
|
+
}
|
|
340
|
+
|
|
260
341
|
/**
|
|
261
342
|
* Represents the legend options of the Sankey widget.
|
|
262
343
|
*/
|
|
@@ -280,21 +361,11 @@ export interface SankeyLegend {
|
|
|
280
361
|
/**
|
|
281
362
|
* The item options of the legend. The item options apply to the legend items and will override the default options.
|
|
282
363
|
*/
|
|
283
|
-
item?:
|
|
284
|
-
areaBackground?: string;
|
|
285
|
-
areaOpacity?: number;
|
|
286
|
-
cursor?: string;
|
|
287
|
-
visual?: any;
|
|
288
|
-
};
|
|
364
|
+
item?: SankeyLegendItem;
|
|
289
365
|
/**
|
|
290
366
|
* The labels options of the legend.
|
|
291
367
|
*/
|
|
292
|
-
labels?:
|
|
293
|
-
color?: string;
|
|
294
|
-
font?: string;
|
|
295
|
-
margin?: Margin | number;
|
|
296
|
-
padding?: Padding | number;
|
|
297
|
-
};
|
|
368
|
+
labels?: SankeyLegendLabel;
|
|
298
369
|
/**
|
|
299
370
|
* The margin of the legend.
|
|
300
371
|
*/
|
|
@@ -391,24 +462,63 @@ export interface SankeyLabelDefaults extends Omit<SankeyLabel, 'text'> { }
|
|
|
391
462
|
*/
|
|
392
463
|
export interface SankeyNodeDefaults extends Omit<SankeyNode, 'id' | 'label'> { }
|
|
393
464
|
|
|
465
|
+
/**
|
|
466
|
+
* Represents the Sankey data object.
|
|
467
|
+
*/
|
|
468
|
+
export interface SankeyData {
|
|
469
|
+
/**
|
|
470
|
+
* The links of the Sankey. The links are the connections between the nodes.
|
|
471
|
+
* Each link has a `sourceId` and `targetId` that correspond to the id of the source and target nodes, and a `value` that represents the value of the link.
|
|
472
|
+
*/
|
|
473
|
+
links: SankeyLink[];
|
|
474
|
+
/**
|
|
475
|
+
* The nodes of the Sankey. The nodes are the elements that are connected by the links.
|
|
476
|
+
* Each node has an `id` that is used to connect the nodes with the links.
|
|
477
|
+
*/
|
|
478
|
+
nodes: SankeyNode[];
|
|
479
|
+
}
|
|
480
|
+
|
|
394
481
|
/**
|
|
395
482
|
* Sankey options.
|
|
396
483
|
*/
|
|
397
484
|
export interface SankeyOptions {
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
485
|
+
/**
|
|
486
|
+
* The data of the Sankey. The data object contains the Sankey nodes and links configuration.
|
|
487
|
+
*/
|
|
488
|
+
data: SankeyData;
|
|
489
|
+
/**
|
|
490
|
+
* The default label options of the Sankey.
|
|
491
|
+
*/
|
|
403
492
|
labels?: SankeyLabelDefaults;
|
|
493
|
+
/**
|
|
494
|
+
* The default link options of the Sankey.
|
|
495
|
+
*/
|
|
404
496
|
links?: SankeyLinkDefaults;
|
|
497
|
+
/**
|
|
498
|
+
* The default node options of the Sankey.
|
|
499
|
+
*/
|
|
405
500
|
nodes?: SankeyNodeDefaults;
|
|
501
|
+
/**
|
|
502
|
+
* If set to `true`, the Sankey will not automatically reorder the nodes to reduce the number of links that cross over each other.
|
|
503
|
+
*/
|
|
406
504
|
disableAutoLayout?: boolean;
|
|
505
|
+
/**
|
|
506
|
+
* The Sankey title configuration options.
|
|
507
|
+
*/
|
|
407
508
|
title?: SankeyTitle;
|
|
509
|
+
/**
|
|
510
|
+
* The legend configuration options of the Sankey.
|
|
511
|
+
*/
|
|
408
512
|
legend?: SankeyLegend;
|
|
513
|
+
/**
|
|
514
|
+
* The tooltip configuration options of the Sankey.
|
|
515
|
+
*/
|
|
409
516
|
tooltip?: SankeyTooltip;
|
|
410
517
|
}
|
|
411
518
|
|
|
519
|
+
/**
|
|
520
|
+
* @hidden
|
|
521
|
+
*/
|
|
412
522
|
export interface SankeyTheme {
|
|
413
523
|
labels?: SankeyLabelDefaults;
|
|
414
524
|
links?: SankeyLinkDefaults;
|
|
@@ -483,14 +593,38 @@ export interface SankeyEvent {
|
|
|
483
593
|
isDefaultPrevented(): boolean;
|
|
484
594
|
}
|
|
485
595
|
|
|
486
|
-
|
|
596
|
+
/**
|
|
597
|
+
* Represents the Sankey dataItem of the link element.
|
|
598
|
+
*/
|
|
599
|
+
export interface SankeyLinkDataItem {
|
|
600
|
+
/**
|
|
601
|
+
* The source node dataItem.
|
|
602
|
+
*/
|
|
487
603
|
source: SankeyNodeDataItem;
|
|
604
|
+
/**
|
|
605
|
+
* The target node dataItem.
|
|
606
|
+
*/
|
|
488
607
|
target: SankeyNodeDataItem;
|
|
608
|
+
/**
|
|
609
|
+
* The value of the link.
|
|
610
|
+
*/
|
|
611
|
+
value: number;
|
|
489
612
|
}
|
|
490
613
|
|
|
614
|
+
/**
|
|
615
|
+
* Represents the Sankey dataItem of the node element.
|
|
616
|
+
*/
|
|
491
617
|
export interface SankeyNodeDataItem extends SankeyNode {
|
|
492
|
-
|
|
493
|
-
|
|
618
|
+
/**
|
|
619
|
+
* The source links that are connected to the node.
|
|
620
|
+
* Contains the `sourceId`, `targetId` and `value` of the links.
|
|
621
|
+
*/
|
|
622
|
+
sourceLinks: SankeyLink[];
|
|
623
|
+
/**
|
|
624
|
+
* The target links that are connected to the node.
|
|
625
|
+
* Contains the `sourceId`, `targetId` and `value` of the links.
|
|
626
|
+
*/
|
|
627
|
+
targetLinks: SankeyLink[];
|
|
494
628
|
}
|
|
495
629
|
|
|
496
630
|
/**
|