@progress/kendo-charts 2.1.0-dev.202401181402 → 2.1.0
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/npm/sankey.d.ts +37 -6
- package/package.json +1 -1
package/dist/npm/sankey.d.ts
CHANGED
|
@@ -4,16 +4,22 @@
|
|
|
4
4
|
export interface SankeyLinkHighlight {
|
|
5
5
|
/**
|
|
6
6
|
* The opacity of the link.
|
|
7
|
+
*
|
|
8
|
+
* @default 0.8
|
|
7
9
|
*/
|
|
8
10
|
opacity?: number;
|
|
9
11
|
/**
|
|
10
12
|
* The opacity of the inactive link.
|
|
13
|
+
*
|
|
14
|
+
* @default 0.2
|
|
11
15
|
*/
|
|
12
16
|
inactiveOpacity?: number;
|
|
13
17
|
}
|
|
14
18
|
|
|
15
19
|
/**
|
|
16
20
|
* Represents the offset option of the Sankey node and label elements.
|
|
21
|
+
*
|
|
22
|
+
* @default `{ top: 0, left: 0 }`
|
|
17
23
|
*/
|
|
18
24
|
export interface SankeyOffset {
|
|
19
25
|
left?: number;
|
|
@@ -42,6 +48,8 @@ export interface SankeyLink {
|
|
|
42
48
|
* * `static`—The link color is static. The color is determined by the link's `color` option.
|
|
43
49
|
* * `source`—The link color is the same as the source node color.
|
|
44
50
|
* * `target`—The link color is the same as the target node color.
|
|
51
|
+
*
|
|
52
|
+
* @default 'static'
|
|
45
53
|
*/
|
|
46
54
|
colorType?: 'static' | 'source' | 'target';
|
|
47
55
|
/**
|
|
@@ -51,10 +59,14 @@ export interface SankeyLink {
|
|
|
51
59
|
color?: string;
|
|
52
60
|
/**
|
|
53
61
|
* The opacity of the link.
|
|
62
|
+
*
|
|
63
|
+
* @default 0.4
|
|
54
64
|
*/
|
|
55
65
|
opacity?: number;
|
|
56
66
|
/**
|
|
57
67
|
* The highlight options of the link.
|
|
68
|
+
*
|
|
69
|
+
* @default `{ opacity: 0.8, inactiveOpacity: 0.2 }`
|
|
58
70
|
*/
|
|
59
71
|
highlight?: SankeyLinkHighlight;
|
|
60
72
|
}
|
|
@@ -69,6 +81,8 @@ export interface SankeyLabel {
|
|
|
69
81
|
text?: string;
|
|
70
82
|
/**
|
|
71
83
|
* The visibility of the label.
|
|
84
|
+
*
|
|
85
|
+
* @default true
|
|
72
86
|
*/
|
|
73
87
|
visible?: boolean;
|
|
74
88
|
/**
|
|
@@ -81,17 +95,21 @@ export interface SankeyLabel {
|
|
|
81
95
|
color?: string;
|
|
82
96
|
/**
|
|
83
97
|
* The opacity of the label.
|
|
98
|
+
*
|
|
99
|
+
* @default 1
|
|
84
100
|
*/
|
|
85
101
|
opacity?: number;
|
|
86
102
|
/**
|
|
87
103
|
* The alignment of the label.
|
|
104
|
+
*
|
|
105
|
+
* @default 'left'
|
|
88
106
|
*/
|
|
89
107
|
align?: 'left' | 'right' | 'center';
|
|
90
108
|
/**
|
|
91
109
|
* The position of the label.
|
|
92
110
|
*
|
|
93
111
|
* The supported values are:
|
|
94
|
-
* * `inside`—The label is positioned after the node, except for the nodes at the end of the
|
|
112
|
+
* * `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
113
|
* * `before`—The label is positioned before the node.
|
|
96
114
|
* * `after`—The label is positioned after the node.
|
|
97
115
|
*
|
|
@@ -100,6 +118,8 @@ export interface SankeyLabel {
|
|
|
100
118
|
position?: 'inside' | 'before' | 'after';
|
|
101
119
|
/**
|
|
102
120
|
* The padding of the label.
|
|
121
|
+
*
|
|
122
|
+
* @default 0
|
|
103
123
|
*/
|
|
104
124
|
padding?: number | {
|
|
105
125
|
left?: number;
|
|
@@ -109,6 +129,8 @@ export interface SankeyLabel {
|
|
|
109
129
|
};
|
|
110
130
|
/**
|
|
111
131
|
* The margin of the label.
|
|
132
|
+
*
|
|
133
|
+
* @default `{ left: 8, right: 8 }`
|
|
112
134
|
*/
|
|
113
135
|
margin?: {
|
|
114
136
|
left?: number;
|
|
@@ -116,6 +138,8 @@ export interface SankeyLabel {
|
|
|
116
138
|
};
|
|
117
139
|
/**
|
|
118
140
|
* The border of the label.
|
|
141
|
+
*
|
|
142
|
+
* @default `{ width: 0 }`
|
|
119
143
|
*/
|
|
120
144
|
border?: {
|
|
121
145
|
width?: number;
|
|
@@ -124,7 +148,7 @@ export interface SankeyLabel {
|
|
|
124
148
|
dashType?: string;
|
|
125
149
|
};
|
|
126
150
|
/**
|
|
127
|
-
* The offset
|
|
151
|
+
* The offset applied to the label's position.
|
|
128
152
|
*
|
|
129
153
|
* @default `{ top: 0, left: 0 }`
|
|
130
154
|
*/
|
|
@@ -149,37 +173,44 @@ export interface SankeyNode {
|
|
|
149
173
|
color?: string;
|
|
150
174
|
/**
|
|
151
175
|
* The opacity of the node.
|
|
176
|
+
*
|
|
177
|
+
* @default 1
|
|
152
178
|
*/
|
|
153
179
|
opacity?: number;
|
|
154
180
|
/**
|
|
155
|
-
* The offset
|
|
181
|
+
* The offset applied to the node's position.
|
|
156
182
|
*
|
|
157
183
|
* @default `{ top: 0, left: 0 }`
|
|
158
184
|
*/
|
|
159
185
|
offset?: SankeyOffset;
|
|
160
186
|
/**
|
|
161
187
|
* The minimum vertical space between two nodes.
|
|
188
|
+
*
|
|
189
|
+
* @default 16
|
|
162
190
|
*/
|
|
163
191
|
padding?: number;
|
|
164
192
|
/**
|
|
165
193
|
* The width of the node.
|
|
194
|
+
*
|
|
195
|
+
* @default 24
|
|
166
196
|
*/
|
|
167
197
|
width?: number;
|
|
168
198
|
}
|
|
169
199
|
|
|
170
200
|
/**
|
|
171
|
-
* Represents the default
|
|
201
|
+
* Represents the default link options of the Sankey widget.
|
|
172
202
|
* The value will be applied to all links unless overridden by the `links` prop of the Sankey data option.
|
|
173
203
|
*/
|
|
174
204
|
export interface SankeyLinkDefaults extends Omit<SankeyLink, 'sourceId' | 'targetId' | 'value'> { }
|
|
205
|
+
|
|
175
206
|
/**
|
|
176
|
-
* Represents the default
|
|
207
|
+
* Represents the default label options of the Sankey widget.
|
|
177
208
|
* The value will be applied to all labels unless overridden by the `nodes` label prop of the Sankey data option.
|
|
178
209
|
*/
|
|
179
210
|
export interface SankeyLabelDefaults extends Omit<SankeyLabel, 'text'> { }
|
|
180
211
|
|
|
181
212
|
/**
|
|
182
|
-
* Represents the default
|
|
213
|
+
* Represents the default node options of the Sankey widget.
|
|
183
214
|
* The value will be applied to all nodes unless overridden by the `nodes` prop of the Sankey data option.
|
|
184
215
|
*/
|
|
185
216
|
export interface SankeyNodeDefaults extends Omit<SankeyNode, 'id' | 'label'> { }
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Kendo UI platform-independent Charts library",
|
|
4
4
|
"author": "Progress",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
|
-
"version": "2.1.0
|
|
6
|
+
"version": "2.1.0",
|
|
7
7
|
"main": "dist/npm/main.js",
|
|
8
8
|
"module": "dist/es/main.js",
|
|
9
9
|
"jsnext:main": "dist/es/main.js",
|