@syncfusion/ej2-treemap 31.1.17 → 31.2.12

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