@progress/kendo-charts 2.0.0-dev.202401111417 → 2.1.0-dev.202401181402

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.
Files changed (39) hide show
  1. package/dist/cdn/js/kendo-charts.js +1 -1
  2. package/dist/cdn/main.js +1 -1
  3. package/dist/es/{map/scroller → common}/observable.js +1 -1
  4. package/dist/es/main.js +1 -0
  5. package/dist/es/map/attribution.js +1 -1
  6. package/dist/es/map/map.js +1 -1
  7. package/dist/es/map/navigator.js +1 -1
  8. package/dist/es/map/scroller/draggable.js +1 -1
  9. package/dist/es/map/scroller/scroller.js +1 -1
  10. package/dist/es/map/scroller/user-events.js +1 -1
  11. package/dist/es/map/zoom.js +1 -1
  12. package/dist/es/sankey/calculation.js +176 -0
  13. package/dist/es/sankey/element.js +49 -0
  14. package/dist/es/sankey/label.js +83 -0
  15. package/dist/es/sankey/link.js +62 -0
  16. package/dist/es/sankey/node.js +50 -0
  17. package/dist/es/sankey/sankey.js +345 -0
  18. package/dist/es/sankey.js +1 -0
  19. package/dist/es2015/{map/scroller → common}/observable.js +1 -1
  20. package/dist/es2015/main.js +1 -0
  21. package/dist/es2015/map/attribution.js +1 -1
  22. package/dist/es2015/map/map.js +1 -1
  23. package/dist/es2015/map/navigator.js +1 -1
  24. package/dist/es2015/map/scroller/draggable.js +1 -1
  25. package/dist/es2015/map/scroller/scroller.js +1 -1
  26. package/dist/es2015/map/scroller/user-events.js +1 -1
  27. package/dist/es2015/map/zoom.js +1 -1
  28. package/dist/es2015/sankey/calculation.js +170 -0
  29. package/dist/es2015/sankey/element.js +41 -0
  30. package/dist/es2015/sankey/label.js +69 -0
  31. package/dist/es2015/sankey/link.js +49 -0
  32. package/dist/es2015/sankey/node.js +40 -0
  33. package/dist/es2015/sankey/sankey.js +315 -0
  34. package/dist/es2015/sankey.js +1 -0
  35. package/dist/npm/main.d.ts +1 -0
  36. package/dist/npm/main.js +743 -1
  37. package/dist/npm/sankey.d.ts +244 -0
  38. package/dist/systemjs/kendo-charts.js +1 -1
  39. package/package.json +1 -1
@@ -0,0 +1,244 @@
1
+ /**
2
+ * Represents the highlight options of the Sankey links.
3
+ */
4
+ export interface SankeyLinkHighlight {
5
+ /**
6
+ * The opacity of the link.
7
+ */
8
+ opacity?: number;
9
+ /**
10
+ * The opacity of the inactive link.
11
+ */
12
+ inactiveOpacity?: number;
13
+ }
14
+
15
+ /**
16
+ * Represents the offset option of the Sankey node and label elements.
17
+ */
18
+ export interface SankeyOffset {
19
+ left?: number;
20
+ top?: number;
21
+ }
22
+
23
+ /**
24
+ * Represents the links options of the Sankey widget.
25
+ */
26
+ export interface SankeyLink {
27
+ /**
28
+ * The source node ID of the link.
29
+ */
30
+ sourceId: string | number;
31
+ /**
32
+ * The target node ID of the link.
33
+ */
34
+ targetId: string | number;
35
+ /**
36
+ * The value of the link.
37
+ */
38
+ value: number;
39
+ /**
40
+ * The color type of the link.
41
+ * The supported values are:
42
+ * * `static`—The link color is static. The color is determined by the link's `color` option.
43
+ * * `source`—The link color is the same as the source node color.
44
+ * * `target`—The link color is the same as the target node color.
45
+ */
46
+ colorType?: 'static' | 'source' | 'target';
47
+ /**
48
+ * The color of the link.
49
+ * The color is used when the `colorType` option is set to `static`.
50
+ */
51
+ color?: string;
52
+ /**
53
+ * The opacity of the link.
54
+ */
55
+ opacity?: number;
56
+ /**
57
+ * The highlight options of the link.
58
+ */
59
+ highlight?: SankeyLinkHighlight;
60
+ }
61
+
62
+ /**
63
+ * Represents the labels options of the Sankey widget.
64
+ */
65
+ export interface SankeyLabel {
66
+ /**
67
+ * The text of the label.
68
+ */
69
+ text?: string;
70
+ /**
71
+ * The visibility of the label.
72
+ */
73
+ visible?: boolean;
74
+ /**
75
+ * The font of the label.
76
+ */
77
+ font?: string;
78
+ /**
79
+ * The color of the label.
80
+ */
81
+ color?: string;
82
+ /**
83
+ * The opacity of the label.
84
+ */
85
+ opacity?: number;
86
+ /**
87
+ * The alignment of the label.
88
+ */
89
+ align?: 'left' | 'right' | 'center';
90
+ /**
91
+ * The position of the label.
92
+ *
93
+ * The supported values are:
94
+ * * `inside`—The label is positioned after the node, except for the nodes at the end of the sankey, that are placed before the node.
95
+ * * `before`—The label is positioned before the node.
96
+ * * `after`—The label is positioned after the node.
97
+ *
98
+ * @default 'inside'
99
+ */
100
+ position?: 'inside' | 'before' | 'after';
101
+ /**
102
+ * The padding of the label.
103
+ */
104
+ padding?: number | {
105
+ left?: number;
106
+ right?: number;
107
+ top?: number;
108
+ bottom?: number;
109
+ };
110
+ /**
111
+ * The margin of the label.
112
+ */
113
+ margin?: {
114
+ left?: number;
115
+ right?: number;
116
+ };
117
+ /**
118
+ * The border of the label.
119
+ */
120
+ border?: {
121
+ width?: number;
122
+ color?: string;
123
+ opacity?: number;
124
+ dashType?: string;
125
+ };
126
+ /**
127
+ * The offset of the label applied to the label position.
128
+ *
129
+ * @default `{ top: 0, left: 0 }`
130
+ */
131
+ offset?: SankeyOffset;
132
+ }
133
+
134
+ /**
135
+ * Represents the nodes options of the Sankey widget.
136
+ */
137
+ export interface SankeyNode {
138
+ /**
139
+ * The ID of the node.
140
+ */
141
+ id: string | number;
142
+ /**
143
+ * The label options of the node.
144
+ */
145
+ label: SankeyLabel;
146
+ /**
147
+ * The color of the node.
148
+ */
149
+ color?: string;
150
+ /**
151
+ * The opacity of the node.
152
+ */
153
+ opacity?: number;
154
+ /**
155
+ * The offset of the node applied to the node position.
156
+ *
157
+ * @default `{ top: 0, left: 0 }`
158
+ */
159
+ offset?: SankeyOffset;
160
+ /**
161
+ * The minimum vertical space between two nodes.
162
+ */
163
+ padding?: number;
164
+ /**
165
+ * The width of the node.
166
+ */
167
+ width?: number;
168
+ }
169
+
170
+ /**
171
+ * Represents the default links options of the Sankey widget.
172
+ * The value will be applied to all links unless overridden by the `links` prop of the Sankey data option.
173
+ */
174
+ export interface SankeyLinkDefaults extends Omit<SankeyLink, 'sourceId' | 'targetId' | 'value'> { }
175
+ /**
176
+ * Represents the default labels options of the Sankey widget.
177
+ * The value will be applied to all labels unless overridden by the `nodes` label prop of the Sankey data option.
178
+ */
179
+ export interface SankeyLabelDefaults extends Omit<SankeyLabel, 'text'> { }
180
+
181
+ /**
182
+ * Represents the default nodes options of the Sankey widget.
183
+ * The value will be applied to all nodes unless overridden by the `nodes` prop of the Sankey data option.
184
+ */
185
+ export interface SankeyNodeDefaults extends Omit<SankeyNode, 'id' | 'label'> { }
186
+
187
+ /**
188
+ * Sankey options.
189
+ */
190
+ export interface SankeyOptions {
191
+ data: {
192
+ links: SankeyLink[];
193
+ nodes: SankeyNode[];
194
+ };
195
+
196
+ labels?: SankeyLabelDefaults;
197
+ links?: SankeyLinkDefaults;
198
+ nodes?: SankeyNodeDefaults;
199
+ }
200
+
201
+ export interface SankeyTheme {
202
+ labels?: SankeyLabelDefaults;
203
+ links?: SankeyLinkDefaults;
204
+ nodes?: SankeyNodeDefaults;
205
+ nodesColors: string[];
206
+ }
207
+
208
+ /**
209
+ * Represents the Kendo Sankey widget.
210
+ */
211
+ export class Sankey {
212
+ constructor(element: Element, options: SankeyOptions, theme?: SankeyTheme);
213
+
214
+ public setOptions(options: SankeyOptions): void;
215
+ public bind(event: any, handlers: any): void;
216
+ public unbind(event?: any, handlers?: any): void;
217
+ public destroy(): void;
218
+ }
219
+
220
+ /**
221
+ * Represents the Sankey widget event object.
222
+ */
223
+ export interface SankeyEvent {
224
+ /**
225
+ * The Sankey widget instance.
226
+ */
227
+ sender: Sankey;
228
+ /**
229
+ * The native DOM event.
230
+ */
231
+ originalEvent: Event;
232
+ /**
233
+ * The event type.
234
+ */
235
+ type: string;
236
+ /**
237
+ * Prevents the default action.
238
+ */
239
+ preventDefault(): void;
240
+ /**
241
+ * Indicates whether the default action has been prevented.
242
+ */
243
+ isDefaultPrevented(): boolean;
244
+ }