@progress/kendo-charts 2.3.0-dev.202404011240 → 2.3.0-dev.202404030928

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.
@@ -124,12 +124,7 @@ export interface SankeyLabel {
124
124
  *
125
125
  * @default 0
126
126
  */
127
- padding?: number | {
128
- left?: number;
129
- right?: number;
130
- top?: number;
131
- bottom?: number;
132
- };
127
+ padding?: number | Padding;
133
128
  /**
134
129
  * The margin of the label.
135
130
  *
@@ -214,40 +209,154 @@ export interface SankeyNode {
214
209
  }
215
210
 
216
211
  /**
217
- * @hidden
212
+ * Represents the title options of the Sankey widget.
218
213
  */
219
214
  export interface SankeyTitle {
215
+ /**
216
+ * The alignment of the title.
217
+ */
220
218
  align?: 'center' | 'left' | 'right';
219
+ /**
220
+ * The background of the title. Accepts a valid CSS color string, including hex and rgb.
221
+ */
221
222
  background?: string;
223
+ /**
224
+ * The border of the title.
225
+ */
222
226
  border?: Border;
227
+ /**
228
+ * The color of the title. Accepts a valid CSS color string, including hex and rgb.
229
+ */
223
230
  color?: string;
231
+ /**
232
+ * The font of the title.
233
+ */
224
234
  font?: string;
235
+ /**
236
+ * The margin of the title.
237
+ */
225
238
  margin?: Margin | number;
239
+ /**
240
+ * The padding of the title.
241
+ */
226
242
  padding?: Padding | number;
243
+ /**
244
+ * The position of the title.
245
+ */
227
246
  position?: 'top' | 'bottom';
247
+ /**
248
+ * The text of the title.
249
+ */
228
250
  text?: string;
251
+ /**
252
+ * The accessible description of the Sankey. The description is announced by screen readers when the Sankey is focused.
253
+ */
254
+ description?: string;
255
+ /**
256
+ * The visibility of the title. If set to `false`, the title will not be displayed.
257
+ */
229
258
  visible?: boolean;
230
259
  }
231
260
 
232
261
  /**
233
262
  * @hidden
234
263
  */
264
+ interface LegendTitle extends Omit<SankeyTitle, 'description'> { }
265
+
266
+ /**
267
+ * Represents the legend options of the Sankey widget.
268
+ */
235
269
  export interface SankeyLegend {
270
+ /**
271
+ * The alignment of the legend.
272
+ */
236
273
  align?: 'start' | 'center' | 'end';
274
+ /**
275
+ * The background of the legend. Accepts a valid CSS color string, including hex and rgb.
276
+ */
237
277
  background?: string;
278
+ /**
279
+ * The border of the legend.
280
+ */
238
281
  border?: Border;
282
+ /**
283
+ * The height of the legend.
284
+ */
239
285
  height?: number;
240
- labels?: any;
286
+ /**
287
+ * The item options of the legend. The item options apply to the legend items and will override the default options.
288
+ */
289
+ item?: {
290
+ areaBackground?: string;
291
+ areaOpacity?: number;
292
+ cursor?: string;
293
+ visual?: any;
294
+ };
295
+ /**
296
+ * The labels options of the legend.
297
+ */
298
+ labels?: {
299
+ color?: string;
300
+ font?: string;
301
+ margin?: Margin | number;
302
+ padding?: Padding | number;
303
+ };
304
+ /**
305
+ * The margin of the legend.
306
+ */
241
307
  margin?: Margin | number;
308
+ /**
309
+ * The X offset of the Sankey legend. The offset is relative to the default position of the legend.
310
+ * For instance, a value of 20 will move the legend 20 pixels to the right of its initial position.
311
+ * A negative value will move the legend to the left of its current position.
312
+ */
313
+ offsetX?: number;
314
+ /**
315
+ * The Y offset of the Sankey legend. The offset is relative to the current position of the legend.
316
+ * For instance, a value of 20 will move the legend 20 pixels down from its initial position.
317
+ * A negative value will move the legend upwards from its current position.
318
+ */
319
+ offsetY?: number;
320
+ /**
321
+ * The orientation of the legend items.
322
+ */
242
323
  orientation?: 'vertical' | 'horizontal';
324
+ /**
325
+ * The padding of the legend. A numeric value will set all paddings.
326
+ */
243
327
  padding?: Padding | number;
244
- position?: 'top' | 'bottom' | 'left' | 'right';
328
+ /**
329
+ * The position of the legend.
330
+ *
331
+ * The supported values are:
332
+ *
333
+ * * `top`&mdash;The legend is positioned on the top.
334
+ * * `bottom`&mdash;The legend is positioned on the bottom.
335
+ * * `left`&mdash;The legend is positioned on the left.
336
+ * * `right`&mdash;The legend is positioned on the right.
337
+ * * `custom`&mdash;The legend is positioned based on the `offsetX` and `offsetY` options.
338
+ */
339
+ position?: 'top' | 'bottom' | 'left' | 'right' | 'custom';
340
+ /**
341
+ * If set to `true` the legend items will be reversed.
342
+ */
245
343
  reverse?: boolean;
344
+ /**
345
+ * The spacing between the labels in pixels when the `legend.orientation` is "horizontal".
346
+ */
347
+ spacing?: number;
348
+ /**
349
+ * The title options of the legend.
350
+ */
351
+ title?: LegendTitle;
352
+ /**
353
+ * The visibility of the legend.
354
+ */
246
355
  visible?: boolean;
356
+ /**
357
+ * The width of the legend.
358
+ */
247
359
  width?: number;
248
- inactiveItems?: any;
249
- item?: any;
250
- title?: any;
251
360
  }
252
361
 
253
362
  /**