@syncfusion/ej2-treemap 20.4.42 → 21.1.35
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/ej2-treemap.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-treemap.es2015.js +122 -83
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +122 -83
- package/dist/es6/ej2-treemap.es5.js.map +1 -1
- package/dist/global/ej2-treemap.min.js +2 -2
- package/dist/global/ej2-treemap.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/treemap/layout/legend.d.ts +18 -1
- package/src/treemap/layout/legend.js +35 -18
- package/src/treemap/layout/render-panel.js +9 -10
- package/src/treemap/model/base-model.d.ts +97 -97
- package/src/treemap/model/base.d.ts +110 -113
- package/src/treemap/model/base.js +13 -13
- package/src/treemap/model/constants.d.ts +1 -1
- package/src/treemap/model/constants.js +1 -1
- package/src/treemap/model/interface.d.ts +41 -38
- package/src/treemap/model/pdf-export.d.ts +1 -1
- package/src/treemap/model/pdf-export.js +1 -1
- package/src/treemap/treemap-model.d.ts +46 -20
- package/src/treemap/treemap.d.ts +73 -28
- package/src/treemap/treemap.js +47 -33
- package/src/treemap/user-interaction/highlight-selection.d.ts +2 -0
- package/src/treemap/user-interaction/highlight-selection.js +2 -0
- package/src/treemap/user-interaction/tooltip.d.ts +2 -0
- package/src/treemap/user-interaction/tooltip.js +7 -5
- package/src/treemap/utils/enum.d.ts +74 -49
- package/src/treemap/utils/helper.d.ts +15 -12
- package/src/treemap/utils/helper.js +8 -5
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { LabelPosition, Alignment, HighLightMode, SelectionMode, LabelIntersectAction, LabelPlacement } from '../utils/enum';import { LabelAlignment, LegendShape, LegendPosition, LegendMode, LegendOrientation } from '../utils/enum';import { Location } from '../utils/helper';import { defaultFont } from './constants';
|
|
2
|
-
import {MarkerShape} from "./base";
|
|
1
|
+
import { Property, ChildProperty, Complex, Collection } from '@syncfusion/ej2-base';import { LabelPosition, Alignment, HighLightMode, SelectionMode, LabelIntersectAction, LabelPlacement } from '../utils/enum';import { LabelAlignment, LegendShape, LegendPosition, LegendMode, LegendOrientation, MarkerShape } from '../utils/enum';import { Location } from '../utils/helper';import { defaultFont } from './constants';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* Interface for a class Border
|
|
@@ -14,7 +13,7 @@ export interface BorderModel {
|
|
|
14
13
|
color?: string;
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
|
-
* Defines the width of the border in the treemap
|
|
16
|
+
* Defines the width of the border in the treemap.
|
|
18
17
|
*
|
|
19
18
|
* @default 0
|
|
20
19
|
*/
|
|
@@ -28,28 +27,28 @@ export interface BorderModel {
|
|
|
28
27
|
export interface MarginModel {
|
|
29
28
|
|
|
30
29
|
/**
|
|
31
|
-
* Sets and gets the left margin for the treemap
|
|
30
|
+
* Sets and gets the left margin for the treemap.
|
|
32
31
|
*
|
|
33
32
|
* @default 10
|
|
34
33
|
*/
|
|
35
34
|
left?: number;
|
|
36
35
|
|
|
37
36
|
/**
|
|
38
|
-
* Sets and gets the right margin for the treemap
|
|
37
|
+
* Sets and gets the right margin for the treemap.
|
|
39
38
|
*
|
|
40
39
|
* @default 10
|
|
41
40
|
*/
|
|
42
41
|
right?: number;
|
|
43
42
|
|
|
44
43
|
/**
|
|
45
|
-
* Sets and gets the top margin for the treemap
|
|
44
|
+
* Sets and gets the top margin for the treemap.
|
|
46
45
|
*
|
|
47
46
|
* @default 10
|
|
48
47
|
*/
|
|
49
48
|
top?: number;
|
|
50
49
|
|
|
51
50
|
/**
|
|
52
|
-
* Sets and gets the bottom margin for the treemap
|
|
51
|
+
* Sets and gets the bottom margin for the treemap.
|
|
53
52
|
*
|
|
54
53
|
* @default 10
|
|
55
54
|
*/
|
|
@@ -63,42 +62,42 @@ export interface MarginModel {
|
|
|
63
62
|
export interface FontModel {
|
|
64
63
|
|
|
65
64
|
/**
|
|
66
|
-
* Sets and gets the size for the text in the treemap
|
|
65
|
+
* Sets and gets the size for the text in the treemap.
|
|
67
66
|
*
|
|
68
67
|
* @default null
|
|
69
68
|
*/
|
|
70
69
|
size?: string;
|
|
71
70
|
|
|
72
71
|
/**
|
|
73
|
-
* Sets and gets the color for the text in the treemap
|
|
72
|
+
* Sets and gets the color for the text in the treemap.
|
|
74
73
|
*
|
|
75
74
|
* @default null
|
|
76
75
|
*/
|
|
77
76
|
color?: string;
|
|
78
77
|
|
|
79
78
|
/**
|
|
80
|
-
* Sets and gets the font family for the text in the treemap
|
|
79
|
+
* Sets and gets the font family for the text in the treemap.
|
|
81
80
|
*
|
|
82
81
|
* @default ''
|
|
83
82
|
*/
|
|
84
83
|
fontFamily?: string;
|
|
85
84
|
|
|
86
85
|
/**
|
|
87
|
-
* Sets and gets the font weight for the text in the treemap
|
|
86
|
+
* Sets and gets the font weight for the text in the treemap.
|
|
88
87
|
*
|
|
89
88
|
* @default 'Normal'
|
|
90
89
|
*/
|
|
91
90
|
fontWeight?: string;
|
|
92
91
|
|
|
93
92
|
/**
|
|
94
|
-
* Sets and gets the font style for the text in the treemap
|
|
93
|
+
* Sets and gets the font style for the text in the treemap.
|
|
95
94
|
*
|
|
96
95
|
* @default 'Normal'
|
|
97
96
|
*/
|
|
98
97
|
fontStyle?: string;
|
|
99
98
|
|
|
100
99
|
/**
|
|
101
|
-
* Sets and gets the opacity of the text in the treemap
|
|
100
|
+
* Sets and gets the opacity of the text in the treemap.
|
|
102
101
|
*
|
|
103
102
|
* @default 1
|
|
104
103
|
*/
|
|
@@ -112,14 +111,14 @@ export interface FontModel {
|
|
|
112
111
|
export interface CommonTitleSettingsModel {
|
|
113
112
|
|
|
114
113
|
/**
|
|
115
|
-
* Sets and gets the text for the title in the treemap
|
|
114
|
+
* Sets and gets the text for the title in the treemap.
|
|
116
115
|
*
|
|
117
116
|
* @default ''
|
|
118
117
|
*/
|
|
119
118
|
text?: string;
|
|
120
119
|
|
|
121
120
|
/**
|
|
122
|
-
* Define the description of the title for the accessibility in the treemap
|
|
121
|
+
* Define the description of the title for the accessibility in the treemap.
|
|
123
122
|
*
|
|
124
123
|
* @default ''
|
|
125
124
|
*/
|
|
@@ -133,12 +132,12 @@ export interface CommonTitleSettingsModel {
|
|
|
133
132
|
export interface SubTitleSettingsModel extends CommonTitleSettingsModel{
|
|
134
133
|
|
|
135
134
|
/**
|
|
136
|
-
* Sets and gets the text style for the subtitle in the treemap
|
|
135
|
+
* Sets and gets the options to customize the text style for the subtitle in the treemap.
|
|
137
136
|
*/
|
|
138
137
|
textStyle?: FontModel;
|
|
139
138
|
|
|
140
139
|
/**
|
|
141
|
-
* Sets and gets the alignment of the subtitle text in the treemap
|
|
140
|
+
* Sets and gets the alignment of the subtitle text in the treemap.
|
|
142
141
|
*
|
|
143
142
|
* @default 'Center'
|
|
144
143
|
*/
|
|
@@ -152,12 +151,12 @@ export interface SubTitleSettingsModel extends CommonTitleSettingsModel{
|
|
|
152
151
|
export interface TitleSettingsModel extends CommonTitleSettingsModel{
|
|
153
152
|
|
|
154
153
|
/**
|
|
155
|
-
* Sets and gets the options to
|
|
154
|
+
* Sets and gets the options to customize the text style of the title of the treemap.
|
|
156
155
|
*/
|
|
157
156
|
textStyle?: FontModel;
|
|
158
157
|
|
|
159
158
|
/**
|
|
160
|
-
* Sets and gets the text position of the title text in the treemap
|
|
159
|
+
* Sets and gets the text position of the title text in the treemap.
|
|
161
160
|
*
|
|
162
161
|
* @default 'Center'
|
|
163
162
|
*/
|
|
@@ -197,7 +196,7 @@ export interface ColorMappingModel {
|
|
|
197
196
|
color?: string | string[];
|
|
198
197
|
|
|
199
198
|
/**
|
|
200
|
-
* Sets and gets the label text for the legend based on color mapping.
|
|
199
|
+
* Sets and gets the label text for the legend when it is rendered based on color mapping.
|
|
201
200
|
*
|
|
202
201
|
* @default null
|
|
203
202
|
*/
|
|
@@ -211,21 +210,21 @@ export interface ColorMappingModel {
|
|
|
211
210
|
value?: string | number;
|
|
212
211
|
|
|
213
212
|
/**
|
|
214
|
-
* Sets and gets the minimum opacity for the color-mapping in the treemap
|
|
213
|
+
* Sets and gets the minimum opacity for the color-mapping in the treemap.
|
|
215
214
|
*
|
|
216
215
|
* @default null
|
|
217
216
|
*/
|
|
218
217
|
minOpacity?: number;
|
|
219
218
|
|
|
220
219
|
/**
|
|
221
|
-
* Sets and gets the maximum opacity for the color-mapping in the treemap
|
|
220
|
+
* Sets and gets the maximum opacity for the color-mapping in the treemap.
|
|
222
221
|
*
|
|
223
222
|
* @default null
|
|
224
223
|
*/
|
|
225
224
|
maxOpacity?: number;
|
|
226
225
|
|
|
227
226
|
/**
|
|
228
|
-
* Enables or disables the visibility of the legend for color mapping in the treemap
|
|
227
|
+
* Enables or disables the visibility of the legend for color mapping in the treemap.
|
|
229
228
|
*
|
|
230
229
|
* @default true
|
|
231
230
|
*/
|
|
@@ -239,96 +238,96 @@ export interface ColorMappingModel {
|
|
|
239
238
|
export interface LegendSettingsModel {
|
|
240
239
|
|
|
241
240
|
/**
|
|
242
|
-
* Enables or disables the visibility of legend in the treemap
|
|
241
|
+
* Enables or disables the visibility of legend in the treemap.
|
|
243
242
|
*
|
|
244
243
|
* @default false
|
|
245
244
|
*/
|
|
246
245
|
visible?: boolean;
|
|
247
246
|
|
|
248
247
|
/**
|
|
249
|
-
* Sets and gets the mode of legend in the treemap
|
|
248
|
+
* Sets and gets the mode of legend in the treemap. The modes available are default and interactive modes.
|
|
250
249
|
*
|
|
251
250
|
* @default 'Default'
|
|
252
251
|
*/
|
|
253
252
|
mode?: LegendMode;
|
|
254
253
|
|
|
255
254
|
/**
|
|
256
|
-
* Sets and gets the background color of legend in the treemap
|
|
255
|
+
* Sets and gets the background color of legend in the treemap.
|
|
257
256
|
*
|
|
258
257
|
* @default 'transparent'
|
|
259
258
|
*/
|
|
260
259
|
background?: string;
|
|
261
260
|
|
|
262
261
|
/**
|
|
263
|
-
* Sets and gets the shape of legend in the treemap
|
|
262
|
+
* Sets and gets the shape of legend in the treemap.
|
|
264
263
|
*
|
|
265
264
|
* @default 'Circle'
|
|
266
265
|
*/
|
|
267
266
|
shape?: LegendShape;
|
|
268
267
|
|
|
269
268
|
/**
|
|
270
|
-
* Sets and gets the width of legend in the treemap
|
|
269
|
+
* Sets and gets the width of legend in the treemap.
|
|
271
270
|
*
|
|
272
271
|
* @default ''
|
|
273
272
|
*/
|
|
274
273
|
width?: string;
|
|
275
274
|
|
|
276
275
|
/**
|
|
277
|
-
* Sets and gets the height of legend in the treemap
|
|
276
|
+
* Sets and gets the height of legend in the treemap.
|
|
278
277
|
*
|
|
279
278
|
* @default ''
|
|
280
279
|
*/
|
|
281
280
|
height?: string;
|
|
282
281
|
|
|
283
282
|
/**
|
|
284
|
-
* Sets and gets the options to customize the text style of legend in the treemap
|
|
283
|
+
* Sets and gets the options to customize the text style of legend in the treemap.
|
|
285
284
|
*/
|
|
286
285
|
textStyle?: FontModel;
|
|
287
286
|
|
|
288
287
|
/**
|
|
289
|
-
* Sets and gets the shape color of legend in the treemap
|
|
288
|
+
* Sets and gets the shape color of legend in the treemap.
|
|
290
289
|
*
|
|
291
290
|
* @default null
|
|
292
291
|
*/
|
|
293
292
|
fill?: string;
|
|
294
293
|
|
|
295
294
|
/**
|
|
296
|
-
* Sets and gets the opacity of
|
|
295
|
+
* Sets and gets the opacity of the legend in the treemap.
|
|
297
296
|
*
|
|
298
297
|
* @default 1
|
|
299
298
|
*/
|
|
300
299
|
opacity?: number;
|
|
301
300
|
|
|
302
301
|
/**
|
|
303
|
-
* Sets and gets the width of the shapes in legend in the treemap
|
|
302
|
+
* Sets and gets the width of the shapes in legend in the treemap.
|
|
304
303
|
*
|
|
305
304
|
* @default 15
|
|
306
305
|
*/
|
|
307
306
|
shapeWidth?: number;
|
|
308
307
|
|
|
309
308
|
/**
|
|
310
|
-
* Sets and gets the height of the shapes of legend in the treemap
|
|
309
|
+
* Sets and gets the height of the shapes of legend in the treemap.
|
|
311
310
|
*
|
|
312
311
|
* @default 15
|
|
313
312
|
*/
|
|
314
313
|
shapeHeight?: number;
|
|
315
314
|
|
|
316
315
|
/**
|
|
317
|
-
* Sets and gets the shape padding of legend in the treemap
|
|
316
|
+
* Sets and gets the shape padding of legend in the treemap.
|
|
318
317
|
*
|
|
319
318
|
* @default 10
|
|
320
319
|
*/
|
|
321
320
|
shapePadding?: number;
|
|
322
321
|
|
|
323
322
|
/**
|
|
324
|
-
* Sets and gets the URL path of the legend shapes
|
|
323
|
+
* Sets and gets the URL path of the legend shapes that is set as image.
|
|
325
324
|
*
|
|
326
325
|
* @default null
|
|
327
326
|
*/
|
|
328
327
|
imageUrl?: string;
|
|
329
328
|
|
|
330
329
|
/**
|
|
331
|
-
* Sets and gets the options for customizing the color and width of the border of the legend in the treemap
|
|
330
|
+
* Sets and gets the options for customizing the color and width of the border of the legend in the treemap.
|
|
332
331
|
*/
|
|
333
332
|
border?: BorderModel;
|
|
334
333
|
|
|
@@ -338,71 +337,71 @@ export interface LegendSettingsModel {
|
|
|
338
337
|
shapeBorder?: BorderModel;
|
|
339
338
|
|
|
340
339
|
/**
|
|
341
|
-
* Sets and gets the options to customize the title of the legend in the treemap
|
|
340
|
+
* Sets and gets the options to customize the title of the legend in the treemap.
|
|
342
341
|
*/
|
|
343
342
|
title?: CommonTitleSettingsModel;
|
|
344
343
|
|
|
345
344
|
/**
|
|
346
|
-
* Sets and gets the options to customize the text style of the legend in the treemap
|
|
345
|
+
* Sets and gets the options to customize the text style of the legend item text in the treemap.
|
|
347
346
|
*/
|
|
348
347
|
titleStyle?: FontModel;
|
|
349
348
|
|
|
350
349
|
/**
|
|
351
|
-
* Sets and gets the position of legend in the treemap
|
|
350
|
+
* Sets and gets the position of legend in the treemap.
|
|
352
351
|
*
|
|
353
352
|
* @default 'Bottom'
|
|
354
353
|
*/
|
|
355
354
|
position?: LegendPosition;
|
|
356
355
|
|
|
357
356
|
/**
|
|
358
|
-
* Sets and gets the orientation of legend in the treemap
|
|
357
|
+
* Sets and gets the orientation of legend in the treemap.
|
|
359
358
|
*
|
|
360
359
|
* @default 'None'
|
|
361
360
|
*/
|
|
362
361
|
orientation?: LegendOrientation;
|
|
363
362
|
|
|
364
363
|
/**
|
|
365
|
-
* Enables or disables the pointer for interactive legend in the treemap
|
|
364
|
+
* Enables or disables the pointer for interactive legend in the treemap.
|
|
366
365
|
*
|
|
367
366
|
* @default false
|
|
368
367
|
*/
|
|
369
368
|
invertedPointer?: boolean;
|
|
370
369
|
|
|
371
370
|
/**
|
|
372
|
-
* Sets and gets the label position for interactive legend in the treemap
|
|
371
|
+
* Sets and gets the label position for interactive legend in the treemap.
|
|
373
372
|
*
|
|
374
373
|
* @default 'After'
|
|
375
374
|
*/
|
|
376
375
|
labelPosition?: LabelPlacement;
|
|
377
376
|
|
|
378
377
|
/**
|
|
379
|
-
* Sets and gets the
|
|
378
|
+
* Sets and gets the action of legend item text when they intersect with each other.
|
|
380
379
|
*
|
|
381
380
|
* @default 'None'
|
|
382
381
|
*/
|
|
383
382
|
labelDisplayMode?: LabelIntersectAction;
|
|
384
383
|
|
|
385
384
|
/**
|
|
386
|
-
* Sets and gets the alignment of legend in the treemap
|
|
385
|
+
* Sets and gets the alignment of legend in the treemap.
|
|
387
386
|
*
|
|
388
387
|
* @default 'Center'
|
|
389
388
|
*/
|
|
390
389
|
alignment?: Alignment;
|
|
391
390
|
|
|
392
391
|
/**
|
|
393
|
-
* Sets and gets the location
|
|
392
|
+
* Sets and gets the location to place the legend in a custom location in the treemap.
|
|
394
393
|
*/
|
|
395
394
|
location?: Location;
|
|
396
395
|
|
|
397
396
|
/**
|
|
398
|
-
* Sets and gets the visibility state of the legend in the treemap
|
|
397
|
+
* Sets and gets the value path from the data source for the visibility state of the legend item in the treemap.
|
|
399
398
|
*
|
|
400
399
|
* @default null
|
|
401
400
|
*/
|
|
402
401
|
showLegendPath?: string;
|
|
403
402
|
|
|
404
403
|
/**
|
|
405
|
-
* Sets and gets the value path from the data source to render legend in the treemap
|
|
404
|
+
* Sets and gets the value path from the data source to render legend in the treemap.
|
|
406
405
|
*
|
|
407
406
|
* @default null
|
|
408
407
|
*/
|
|
@@ -423,14 +422,14 @@ export interface LegendSettingsModel {
|
|
|
423
422
|
export interface InitialDrillSettingsModel {
|
|
424
423
|
|
|
425
424
|
/**
|
|
426
|
-
* Sets and gets the initial rendering level index in the treemap
|
|
425
|
+
* Sets and gets the initial rendering level index in the treemap.
|
|
427
426
|
*
|
|
428
427
|
* @default null
|
|
429
428
|
*/
|
|
430
429
|
groupIndex?: number;
|
|
431
430
|
|
|
432
431
|
/**
|
|
433
|
-
* Sets and gets the initial rendering level name in the treemap
|
|
432
|
+
* Sets and gets the initial rendering level name in the treemap.
|
|
434
433
|
*
|
|
435
434
|
* @default null
|
|
436
435
|
*/
|
|
@@ -444,101 +443,101 @@ export interface InitialDrillSettingsModel {
|
|
|
444
443
|
export interface LeafItemSettingsModel {
|
|
445
444
|
|
|
446
445
|
/**
|
|
447
|
-
* Sets and gets the fill color of leaf items in the treemap
|
|
446
|
+
* Sets and gets the fill color of leaf items in the treemap.
|
|
448
447
|
*
|
|
449
448
|
* @default null
|
|
450
449
|
*/
|
|
451
450
|
fill?: string;
|
|
452
451
|
|
|
453
452
|
/**
|
|
454
|
-
* Enables or disables automatic filling of colors in leaf items of the treemap
|
|
453
|
+
* Enables or disables automatic filling of colors from the palette in the leaf items of the treemap.
|
|
455
454
|
*
|
|
456
455
|
* @default false
|
|
457
456
|
*/
|
|
458
457
|
autoFill?: boolean;
|
|
459
458
|
|
|
460
459
|
/**
|
|
461
|
-
* Sets and gets the options for customizing the color and width of the border of the leaf item in the treemap
|
|
460
|
+
* Sets and gets the options for customizing the color and width of the border of the leaf item in the treemap.
|
|
462
461
|
*/
|
|
463
462
|
border?: BorderModel;
|
|
464
463
|
|
|
465
464
|
/**
|
|
466
|
-
* Sets and gets the gap between the leaf item in the treemap
|
|
465
|
+
* Sets and gets the gap between the leaf item in the treemap.
|
|
467
466
|
*
|
|
468
467
|
* @default 0
|
|
469
468
|
*/
|
|
470
469
|
gap?: number;
|
|
471
470
|
|
|
472
471
|
/**
|
|
473
|
-
* Sets and gets the padding of leaf item in the treemap
|
|
472
|
+
* Sets and gets the padding of leaf item in the treemap.
|
|
474
473
|
*
|
|
475
474
|
* @default 10
|
|
476
475
|
*/
|
|
477
476
|
padding?: number;
|
|
478
477
|
|
|
479
478
|
/**
|
|
480
|
-
* Sets and gets the opacity of leaf item in the treemap
|
|
479
|
+
* Sets and gets the opacity of leaf item in the treemap.
|
|
481
480
|
*
|
|
482
481
|
* @default 1
|
|
483
482
|
*/
|
|
484
483
|
opacity?: number;
|
|
485
484
|
|
|
486
485
|
/**
|
|
487
|
-
* Shows or hides the labels in the treemap
|
|
486
|
+
* Shows or hides the labels in the treemap.
|
|
488
487
|
*
|
|
489
488
|
* @default true
|
|
490
489
|
*/
|
|
491
490
|
showLabels?: boolean;
|
|
492
491
|
|
|
493
492
|
/**
|
|
494
|
-
* Sets and gets the value path from the data source for label of leaf item in the treemap
|
|
493
|
+
* Sets and gets the value path from the data source for label of leaf item in the treemap.
|
|
495
494
|
*
|
|
496
495
|
* @default null
|
|
497
496
|
*/
|
|
498
497
|
labelPath?: string;
|
|
499
498
|
|
|
500
499
|
/**
|
|
501
|
-
* Sets and gets the label text
|
|
500
|
+
* Sets and gets the string to format the label text of leaf item in the treemap.
|
|
502
501
|
*
|
|
503
502
|
* @default null
|
|
504
503
|
*/
|
|
505
504
|
labelFormat?: string;
|
|
506
505
|
|
|
507
506
|
/**
|
|
508
|
-
* Sets and gets the position of the labels in the treemap
|
|
507
|
+
* Sets and gets the position of the labels in the treemap.
|
|
509
508
|
*
|
|
510
509
|
* @default 'TopLeft'
|
|
511
510
|
*/
|
|
512
511
|
labelPosition?: LabelPosition;
|
|
513
512
|
|
|
514
513
|
/**
|
|
515
|
-
* Sets and gets the style of the labels of leaf item
|
|
514
|
+
* Sets and gets the options to customize the style of the labels of treemap leaf item.
|
|
516
515
|
*/
|
|
517
516
|
labelStyle?: FontModel;
|
|
518
517
|
|
|
519
518
|
/**
|
|
520
|
-
* Sets and gets the label template of leaf item in the treemap
|
|
519
|
+
* Sets and gets the label template of leaf item in the treemap to render custom elements in the labels.
|
|
521
520
|
*
|
|
522
521
|
* @default null
|
|
523
522
|
*/
|
|
524
523
|
labelTemplate?: string;
|
|
525
524
|
|
|
526
525
|
/**
|
|
527
|
-
* Sets and gets the position of the template of leaf item
|
|
526
|
+
* Sets and gets the position of the label template of treemap leaf item.
|
|
528
527
|
*
|
|
529
528
|
* @default 'Center'
|
|
530
529
|
*/
|
|
531
530
|
templatePosition?: LabelPosition;
|
|
532
531
|
|
|
533
532
|
/**
|
|
534
|
-
* Sets and gets the
|
|
533
|
+
* Sets and gets the actions to perform when labels intersects with other labels in a treemap leaf item.
|
|
535
534
|
*
|
|
536
535
|
* @default 'Trim'
|
|
537
536
|
*/
|
|
538
537
|
interSectAction?: LabelAlignment;
|
|
539
538
|
|
|
540
539
|
/**
|
|
541
|
-
* Sets and gets the options to customize color-mapping of the treemap
|
|
540
|
+
* Sets and gets the options to customize color-mapping of the treemap leaf items.
|
|
542
541
|
*/
|
|
543
542
|
colorMapping?: ColorMappingModel[];
|
|
544
543
|
|
|
@@ -550,44 +549,45 @@ export interface LeafItemSettingsModel {
|
|
|
550
549
|
export interface TooltipSettingsModel {
|
|
551
550
|
|
|
552
551
|
/**
|
|
553
|
-
* Enables or disables the visibility
|
|
552
|
+
* Enables or disables the visibility of the tooltip in the treemap.
|
|
554
553
|
*
|
|
555
554
|
* @default false
|
|
556
555
|
*/
|
|
557
556
|
visible?: boolean;
|
|
558
557
|
|
|
559
558
|
/**
|
|
560
|
-
* Sets and gets the template for tooltip in the treemap
|
|
559
|
+
* Sets and gets the template for tooltip in the treemap.
|
|
561
560
|
*
|
|
562
561
|
* @default ''
|
|
563
562
|
*/
|
|
564
563
|
template?: string;
|
|
565
564
|
|
|
566
565
|
/**
|
|
567
|
-
* Sets and gets the format
|
|
566
|
+
* Sets and gets the string to format the tooltip in the treemap.
|
|
568
567
|
*
|
|
569
568
|
* @default null
|
|
570
569
|
*/
|
|
571
570
|
format?: string;
|
|
572
571
|
|
|
573
572
|
/**
|
|
574
|
-
* Sets and gets the background color of tooltip in the treemap
|
|
573
|
+
* Sets and gets the background color of tooltip in the treemap.
|
|
575
574
|
*
|
|
576
575
|
* @default null
|
|
577
576
|
*/
|
|
578
577
|
fill?: string;
|
|
579
578
|
|
|
580
579
|
/**
|
|
581
|
-
* Sets and gets the opacity of tooltip in the treemap
|
|
580
|
+
* Sets and gets the opacity of tooltip in the treemap.
|
|
582
581
|
*
|
|
583
582
|
* @default 0.75
|
|
584
583
|
*/
|
|
585
584
|
opacity?: number;
|
|
586
585
|
|
|
587
586
|
/**
|
|
588
|
-
* Sets and gets the marker shapes in the treemap
|
|
587
|
+
* Sets and gets the marker shapes in the treemap.
|
|
589
588
|
*
|
|
590
589
|
* @default '[Circle]'
|
|
590
|
+
* @private
|
|
591
591
|
*/
|
|
592
592
|
markerShapes?: MarkerShape[];
|
|
593
593
|
|
|
@@ -597,7 +597,7 @@ export interface TooltipSettingsModel {
|
|
|
597
597
|
border?: BorderModel;
|
|
598
598
|
|
|
599
599
|
/**
|
|
600
|
-
* Sets and gets the options for customizing the text style of tooltip of the treemap
|
|
600
|
+
* Sets and gets the options for customizing the text style of tooltip of the treemap.
|
|
601
601
|
*/
|
|
602
602
|
textStyle?: FontModel;
|
|
603
603
|
|
|
@@ -609,33 +609,33 @@ export interface TooltipSettingsModel {
|
|
|
609
609
|
export interface SelectionSettingsModel {
|
|
610
610
|
|
|
611
611
|
/**
|
|
612
|
-
* Enables or disables the selection functionality in the treemap
|
|
612
|
+
* Enables or disables the selection functionality in the treemap.
|
|
613
613
|
*
|
|
614
614
|
* @default false
|
|
615
615
|
*/
|
|
616
616
|
enable?: boolean;
|
|
617
617
|
|
|
618
618
|
/**
|
|
619
|
-
* Sets and gets the color of the selection when the leaf item is selected in the treemap
|
|
619
|
+
* Sets and gets the color of the selection when the leaf item is selected in the treemap.
|
|
620
620
|
*
|
|
621
621
|
* @default null
|
|
622
622
|
*/
|
|
623
623
|
fill?: string;
|
|
624
624
|
|
|
625
625
|
/**
|
|
626
|
-
* Sets and gets the opacity of the selection when the leaf item is selected in the treemap
|
|
626
|
+
* Sets and gets the opacity of the selection when the leaf item is selected in the treemap.
|
|
627
627
|
*
|
|
628
628
|
* @default '0.5'
|
|
629
629
|
*/
|
|
630
630
|
opacity?: string;
|
|
631
631
|
|
|
632
632
|
/**
|
|
633
|
-
* Sets and gets the border of the selected items in the treemap
|
|
633
|
+
* Sets and gets the options to customize the border of the selected items in the treemap.
|
|
634
634
|
*/
|
|
635
635
|
border?: BorderModel;
|
|
636
636
|
|
|
637
637
|
/**
|
|
638
|
-
* Sets and gets the
|
|
638
|
+
* Sets and gets the type of the elements in which selection must be done in the treemap.
|
|
639
639
|
*
|
|
640
640
|
* @default 'Item'
|
|
641
641
|
*/
|
|
@@ -649,21 +649,21 @@ export interface SelectionSettingsModel {
|
|
|
649
649
|
export interface HighlightSettingsModel {
|
|
650
650
|
|
|
651
651
|
/**
|
|
652
|
-
* Enables or disables the highlight functionality of the treemap
|
|
652
|
+
* Enables or disables the highlight functionality of the treemap.
|
|
653
653
|
*
|
|
654
654
|
* @default false
|
|
655
655
|
*/
|
|
656
656
|
enable?: boolean;
|
|
657
657
|
|
|
658
658
|
/**
|
|
659
|
-
* Sets and gets the highlight color of the treemap
|
|
659
|
+
* Sets and gets the highlight color of the treemap.
|
|
660
660
|
*
|
|
661
661
|
* @default '#808080'
|
|
662
662
|
*/
|
|
663
663
|
fill?: string;
|
|
664
664
|
|
|
665
665
|
/**
|
|
666
|
-
* Sets and gets the opacity of the treemap
|
|
666
|
+
* Sets and gets the opacity of the treemap.
|
|
667
667
|
*
|
|
668
668
|
* @default '0.5'
|
|
669
669
|
*/
|
|
@@ -671,12 +671,12 @@ export interface HighlightSettingsModel {
|
|
|
671
671
|
|
|
672
672
|
/**
|
|
673
673
|
* Sets and gets the options for customizing the color and width of the border of the
|
|
674
|
-
* highlighted item in the treemap
|
|
674
|
+
* highlighted item in the treemap.
|
|
675
675
|
*/
|
|
676
676
|
border?: BorderModel;
|
|
677
677
|
|
|
678
678
|
/**
|
|
679
|
-
* Sets and gets the element in which highlight must be done in the treemap
|
|
679
|
+
* Sets and gets the element in which highlight must be done in the treemap.
|
|
680
680
|
*
|
|
681
681
|
* @default 'Item'
|
|
682
682
|
*/
|
|
@@ -690,21 +690,21 @@ export interface HighlightSettingsModel {
|
|
|
690
690
|
export interface LevelSettingsModel {
|
|
691
691
|
|
|
692
692
|
/**
|
|
693
|
-
* Sets and gets the value path from the data source in the treemap
|
|
693
|
+
* Sets and gets the value path from the data source in the treemap to render the item.
|
|
694
694
|
*
|
|
695
695
|
* @default null
|
|
696
696
|
*/
|
|
697
697
|
groupPath?: string;
|
|
698
698
|
|
|
699
699
|
/**
|
|
700
|
-
* Sets and gets the gap between the
|
|
700
|
+
* Sets and gets the gap between the level leaf items in the treemap.
|
|
701
701
|
*
|
|
702
702
|
* @default 0
|
|
703
703
|
*/
|
|
704
704
|
groupGap?: number;
|
|
705
705
|
|
|
706
706
|
/**
|
|
707
|
-
* Sets and gets the padding of
|
|
707
|
+
* Sets and gets the padding of level leaf items in the treemap.
|
|
708
708
|
*
|
|
709
709
|
* @default 10
|
|
710
710
|
*/
|
|
@@ -712,80 +712,80 @@ export interface LevelSettingsModel {
|
|
|
712
712
|
|
|
713
713
|
/**
|
|
714
714
|
* Sets and gets the options for customizing the color and width of the border of
|
|
715
|
-
* the
|
|
715
|
+
* the level leaf items of the treemap.
|
|
716
716
|
*/
|
|
717
717
|
border?: BorderModel;
|
|
718
718
|
|
|
719
719
|
/**
|
|
720
|
-
* Sets and gets the fill color of the level in the treemap
|
|
720
|
+
* Sets and gets the fill color of the level leaf item in the treemap.
|
|
721
721
|
*
|
|
722
722
|
* @default null
|
|
723
723
|
*/
|
|
724
724
|
fill?: string;
|
|
725
725
|
|
|
726
726
|
/**
|
|
727
|
-
* Enables or disables the automatic filling of the colors in the items
|
|
727
|
+
* Enables or disables the automatic filling of the colors from the palette in the items of the treemap.
|
|
728
728
|
*
|
|
729
729
|
* @default false
|
|
730
730
|
*/
|
|
731
731
|
autoFill?: boolean;
|
|
732
732
|
|
|
733
733
|
/**
|
|
734
|
-
* Sets and gets the opacity in the treemap
|
|
734
|
+
* Sets and gets the opacity in the level leaf item of the treemap.
|
|
735
735
|
*
|
|
736
736
|
* @default 1
|
|
737
737
|
*/
|
|
738
738
|
opacity?: number;
|
|
739
739
|
|
|
740
740
|
/**
|
|
741
|
-
* Shows or hides the header in level of the treemap
|
|
741
|
+
* Shows or hides the header in level leaf item of the treemap.
|
|
742
742
|
*
|
|
743
743
|
* @default true
|
|
744
744
|
*/
|
|
745
745
|
showHeader?: boolean;
|
|
746
746
|
|
|
747
747
|
/**
|
|
748
|
-
* Sets and gets the height of header in the treemap
|
|
748
|
+
* Sets and gets the height of header in the treemap.
|
|
749
749
|
*
|
|
750
750
|
* @default 20
|
|
751
751
|
*/
|
|
752
752
|
headerHeight?: number;
|
|
753
753
|
|
|
754
754
|
/**
|
|
755
|
-
* Sets and gets the template for header in the treemap
|
|
755
|
+
* Sets and gets the template for header in the treemap.
|
|
756
756
|
*
|
|
757
757
|
* @default null
|
|
758
758
|
*/
|
|
759
759
|
headerTemplate?: string;
|
|
760
760
|
|
|
761
761
|
/**
|
|
762
|
-
* Sets and gets the format
|
|
762
|
+
* Sets and gets the string to format the header label of the level leaf items in the treemap.
|
|
763
763
|
*
|
|
764
764
|
* @default null
|
|
765
765
|
*/
|
|
766
766
|
headerFormat?: string;
|
|
767
767
|
|
|
768
768
|
/**
|
|
769
|
-
* Sets and gets the alignment of the header of the treemap
|
|
769
|
+
* Sets and gets the alignment of the header of the treemap.
|
|
770
770
|
*
|
|
771
771
|
* @default 'Near'
|
|
772
772
|
*/
|
|
773
773
|
headerAlignment?: Alignment;
|
|
774
774
|
|
|
775
775
|
/**
|
|
776
|
-
* Sets and gets the options for customizing the style of header of the
|
|
776
|
+
* Sets and gets the options for customizing the text style of header label of the level leaf item.
|
|
777
777
|
*/
|
|
778
778
|
headerStyle?: FontModel;
|
|
779
779
|
|
|
780
780
|
/**
|
|
781
|
-
* Sets and gets the options for customizing the template position of the treemap
|
|
781
|
+
* Sets and gets the options for customizing the template position of the treemap.
|
|
782
782
|
*
|
|
783
783
|
* @default 'TopLeft'
|
|
784
784
|
*/
|
|
785
785
|
templatePosition?: LabelPosition;
|
|
786
786
|
|
|
787
787
|
/**
|
|
788
|
-
* Sets and gets the options for customizing the color-mapping in the treemap
|
|
788
|
+
* Sets and gets the options for customizing the color-mapping of the level leaf items in the treemap.
|
|
789
789
|
*/
|
|
790
790
|
colorMapping?: ColorMappingModel[];
|
|
791
791
|
|