@syncfusion/ej2-treemap 20.4.48 → 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.
Files changed (32) hide show
  1. package/dist/ej2-treemap.min.js +2 -2
  2. package/dist/ej2-treemap.umd.min.js +2 -2
  3. package/dist/ej2-treemap.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-treemap.es2015.js +122 -83
  5. package/dist/es6/ej2-treemap.es2015.js.map +1 -1
  6. package/dist/es6/ej2-treemap.es5.js +122 -83
  7. package/dist/es6/ej2-treemap.es5.js.map +1 -1
  8. package/dist/global/ej2-treemap.min.js +2 -2
  9. package/dist/global/ej2-treemap.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +12 -12
  12. package/src/treemap/layout/legend.d.ts +18 -1
  13. package/src/treemap/layout/legend.js +35 -18
  14. package/src/treemap/layout/render-panel.js +9 -10
  15. package/src/treemap/model/base-model.d.ts +97 -97
  16. package/src/treemap/model/base.d.ts +110 -113
  17. package/src/treemap/model/base.js +13 -13
  18. package/src/treemap/model/constants.d.ts +1 -1
  19. package/src/treemap/model/constants.js +1 -1
  20. package/src/treemap/model/interface.d.ts +41 -38
  21. package/src/treemap/model/pdf-export.d.ts +1 -1
  22. package/src/treemap/model/pdf-export.js +1 -1
  23. package/src/treemap/treemap-model.d.ts +46 -20
  24. package/src/treemap/treemap.d.ts +73 -28
  25. package/src/treemap/treemap.js +47 -33
  26. package/src/treemap/user-interaction/highlight-selection.d.ts +2 -0
  27. package/src/treemap/user-interaction/highlight-selection.js +2 -0
  28. package/src/treemap/user-interaction/tooltip.d.ts +2 -0
  29. package/src/treemap/user-interaction/tooltip.js +7 -5
  30. package/src/treemap/utils/enum.d.ts +74 -49
  31. package/src/treemap/utils/helper.d.ts +15 -12
  32. package/src/treemap/utils/helper.js +8 -5
@@ -29,7 +29,7 @@ import { Print } from './model/print';
29
29
  import { ImageExport } from './model/image-export';
30
30
  import { PdfExport } from './model/pdf-export';
31
31
  /**
32
- * Represents the treemap component.
32
+ * Represents the treemap control. It is used to visualize both hierarchical and flat data.
33
33
  * ```html
34
34
  * <div id="container"/>
35
35
  * <script>
@@ -41,18 +41,22 @@ import { PdfExport } from './model/pdf-export';
41
41
  export declare class TreeMap extends Component<HTMLElement> implements INotifyPropertyChanged {
42
42
  /**
43
43
  * Sets and gets the module that is used to add tooltip in the treemap.
44
+ * @private
44
45
  */
45
46
  treeMapTooltipModule: TreeMapTooltip;
46
47
  /**
47
48
  * Sets and gets the module that is used to add highlight functionality in the treemap.
49
+ * @private
48
50
  */
49
51
  treeMapHighlightModule: TreeMapHighlight;
50
52
  /**
51
53
  * Sets and gets the module that is used to add selection functionality in the treemap.
54
+ * @private
52
55
  */
53
56
  treeMapSelectionModule: TreeMapSelection;
54
57
  /**
55
58
  * Sets and gets the module that is used to add legend in the treemap.
59
+ * @private
56
60
  */
57
61
  treeMapLegendModule: TreeMapLegend;
58
62
  /**
@@ -92,13 +96,13 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
92
96
  */
93
97
  allowPdfExport: boolean;
94
98
  /**
95
- * Sets and gets the width of the treemap component.
99
+ * Sets and gets the width of the treemap.
96
100
  *
97
101
  * @default null
98
102
  */
99
103
  width: string;
100
104
  /**
101
- * Sets and gets the height of the treemap component.
105
+ * Sets and gets the height of the treemap.
102
106
  *
103
107
  * @default null
104
108
  */
@@ -108,27 +112,33 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
108
112
  */
109
113
  border: BorderModel;
110
114
  /**
111
- * Sets and gets the options for customizing the margin in the treemap component.
115
+ * Sets and gets the options for customizing the margin in the treemap.
112
116
  */
113
117
  margin: MarginModel;
114
118
  /**
115
119
  * Sets and gets the background color of the treemap.
120
+ *
121
+ * @default null
116
122
  */
117
123
  background: string;
118
124
  /**
119
- * Sets and gets the options for customizing the theme of the treemap component.
125
+ * Sets and gets the theme styles supported for treemap. When the theme is set, the styles associated with the theme will be set in the treemap.
126
+ *
127
+ * @default Material
120
128
  */
121
129
  theme: TreeMapTheme;
122
130
  /**
123
- * Sets and gets the options for customizing the title of the treemap component.
131
+ * Sets and gets the options for customizing the title of the treemap.
124
132
  */
125
133
  titleSettings: TitleSettingsModel;
126
134
  /**
127
- * Specifies the rendering type of layout of the treemap component.
135
+ * Specifies the rendering type for the layout of the treemap.
136
+ *
137
+ * @default 'Squarified'
128
138
  */
129
139
  layoutType: LayoutMode;
130
140
  /**
131
- * Sets and gets the data source for the treemap component.
141
+ * Sets and gets the data source for the treemap.
132
142
  *
133
143
  * @isGenericType true
134
144
  * @isObservable true
@@ -143,23 +153,35 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
143
153
  */
144
154
  query: Query;
145
155
  /**
146
- * Sets and gets the value path of the weight from the data source, based on which the map item is rendered.
156
+ * Sets and gets the value path of the weight from the data source, based on which the treemap item is rendered.
157
+ *
158
+ * @default null
147
159
  */
148
160
  weightValuePath: string;
149
161
  /**
150
162
  * Sets and gets the value path from the data source, based on it color is filled in treemap.
163
+ * This property is used when range color mapping is set in the treemap.
164
+ *
165
+ * @default ''
151
166
  */
152
167
  rangeColorValuePath: string;
153
168
  /**
154
169
  * Sets and gets the value path from the data source, based on it color is filled in treemap.
170
+ * This property is used when equal color mapping is set in the treemap.
171
+ *
172
+ * @default ''
155
173
  */
156
174
  equalColorValuePath: string;
157
175
  /**
158
176
  * Sets and gets the value path from the data source, based on it color is filled in treemap.
177
+ *
178
+ * @default null
159
179
  */
160
180
  colorValuePath: string;
161
181
  /**
162
- * Sets and gets the set of colors to apply in the treemap items.
182
+ * Sets and gets a set of colors to apply in the treemap items.
183
+ *
184
+ * @default []
163
185
  */
164
186
  palette: string[];
165
187
  /**
@@ -170,18 +192,26 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
170
192
  renderDirection: RenderingMode;
171
193
  /**
172
194
  * Enables or disables the drill down functionality in treemap.
195
+ *
196
+ * @default false
173
197
  */
174
198
  enableDrillDown: boolean;
175
199
  /**
176
- * Enables or disables the connection text in the header of the treemap.
200
+ * Enables or disables the connection text in the header of the treemap when drill down is enabled.
201
+ *
202
+ * @default false
177
203
  */
178
204
  enableBreadcrumb: boolean;
179
205
  /**
180
- * Specifies the connection between the two words.
206
+ * Specifies the symbol to show connection between the two words in the header of the treemap during drill down.
207
+ *
208
+ * @default ' - '
181
209
  */
182
210
  breadcrumbConnector: string;
183
211
  /**
184
212
  * Enables or disables the initial drill in the treemap.
213
+ *
214
+ * @default false
185
215
  */
186
216
  drillDownView: boolean;
187
217
  /**
@@ -193,15 +223,15 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
193
223
  */
194
224
  leafItemSettings: LeafItemSettingsModel;
195
225
  /**
196
- * Sets and gets the options for customizing the levels of the treemap.
226
+ * Sets and gets the options to configure and customize the levels of treemap items.
197
227
  */
198
228
  levels: LevelSettingsModel[];
199
229
  /**
200
- * Sets and gets the options for customizing the highlight of the treemap item on mouse over on the treemap component.
230
+ * Sets and gets the options to customize the highlight functionality of the treemap.
201
231
  */
202
232
  highlightSettings: HighlightSettingsModel;
203
233
  /**
204
- * Sets and gets the options for customizing the selection of the treemap item on click event on the treemap component.
234
+ * Sets and gets the options for customizing the selection functionality of the treemap.
205
235
  */
206
236
  selectionSettings: SelectionSettingsModel;
207
237
  /**
@@ -231,19 +261,19 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
231
261
  */
232
262
  tabIndex: number;
233
263
  /**
234
- * Sets and gets format for the texts in the treemap.
264
+ * Sets and gets format for the texts in the treemap. This property accepts any global string format like 'C', 'N1', 'P' etc.
235
265
  *
236
266
  * @default null
237
267
  */
238
268
  format: string;
239
269
  /**
240
- * Triggers when the treemap is on load.
270
+ * Triggers before the treemap is rendered.
241
271
  *
242
272
  * @event load
243
273
  */
244
274
  load: EmitType<ILoadEventArgs>;
245
275
  /**
246
- * Triggers before the prints gets started.
276
+ * Triggers before the print gets started.
247
277
  *
248
278
  * @event beforePrint
249
279
  */
@@ -255,7 +285,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
255
285
  */
256
286
  loaded: EmitType<ILoadedEventArgs>;
257
287
  /**
258
- * Triggers before item rendering in the treemap component.
288
+ * Triggers before item rendering in the treemap.
259
289
  *
260
290
  * @event itemRendering
261
291
  */
@@ -285,7 +315,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
285
315
  */
286
316
  itemHighlight: EmitType<IItemHighlightEventArgs>;
287
317
  /**
288
- * Triggers on rendering of the tooltip in the treemap component.
318
+ * Triggers on rendering of the tooltip in the treemap.
289
319
  *
290
320
  * @event tooltipRendering
291
321
  */
@@ -327,7 +357,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
327
357
  */
328
358
  mouseMove: EmitType<IMouseMoveEventArgs>;
329
359
  /**
330
- * Triggers after resizing the treemap component.
360
+ * Triggers to notify the resize of the treemap when the window is resized.
331
361
  *
332
362
  * @event resize
333
363
  */
@@ -380,7 +410,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
380
410
  */
381
411
  areaRect: Rect;
382
412
  /**
383
- * Define the theme style for treemap components
413
+ * Define the theme style for treemap.
384
414
  *
385
415
  * @private
386
416
  */
@@ -417,9 +447,11 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
417
447
  legendId: string[];
418
448
  /** @private */
419
449
  selectionId: string;
450
+ /** @private */
451
+ treemapLevelData: LevelsData;
420
452
  private resizeEvent;
421
453
  /**
422
- * Constructor for TreeMap component.
454
+ * Constructor for TreeMap.
423
455
  *
424
456
  * @param {TreeMapModel} options - Specifies the treemap instance.
425
457
  * @param {string | HTMLElement} element - Specifies the treemap element.
@@ -473,6 +505,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
473
505
  *
474
506
  * @param {number} start - Specifies the start value of the treemap level.
475
507
  * @returns {void}
508
+ * @private
476
509
  */
477
510
  reOrderLevelData(start: number): void;
478
511
  private IsChildHierarchy;
@@ -482,12 +515,14 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
482
515
  * @param {any[]} processData - Specifies the treemap data.
483
516
  * @param {string} type - Specifies the type of the data.
484
517
  * @returns {void}
518
+ * @private
485
519
  */
486
520
  findTotalWeight(processData: any[], type: string): void;
487
521
  /**
488
522
  * To unbind event handlers for treemap.
489
523
  *
490
524
  * @returns {void}
525
+ * @private
491
526
  */
492
527
  private unWireEVents;
493
528
  /**
@@ -513,6 +548,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
513
548
  *
514
549
  * @param {Event} e - Specifies the pointer event.
515
550
  * @returns {void}
551
+ * @private
516
552
  */
517
553
  resizeOnTreeMap(e: Event): void;
518
554
  /**
@@ -520,6 +556,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
520
556
  *
521
557
  * @param {PointerEvent} e - Specifies the mouse click event in the treemap.
522
558
  * @returns {void}
559
+ * @private
523
560
  */
524
561
  clickOnTreeMap(e: PointerEvent): void;
525
562
  /**
@@ -534,6 +571,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
534
571
  *
535
572
  * @param {PointerEvent} e - Specifies the pointer event of mouse click.
536
573
  * @returns {void}
574
+ * @private
537
575
  */
538
576
  rightClickOnTreeMap(e: PointerEvent): void;
539
577
  /**
@@ -541,6 +579,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
541
579
  *
542
580
  * @param {PointerEvent} e - Specifies the pointer event of mouse click.
543
581
  * @returns {void}
582
+ * @private
544
583
  */
545
584
  mouseDownOnTreeMap(e: PointerEvent): void;
546
585
  /**
@@ -548,6 +587,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
548
587
  *
549
588
  * @param {PointerEvent} e - Specifies the pointer event of mouse click.
550
589
  * @returns {void}
590
+ * @private
551
591
  */
552
592
  mouseMoveOnTreeMap(e: PointerEvent): void;
553
593
  /**
@@ -556,6 +596,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
556
596
  * @param {string} labelText - Specifies the label text.
557
597
  * @param {any} item - Specifies the treemap item.
558
598
  * @returns {any} - Returns label of the drilled level.
599
+ * @private
559
600
  */
560
601
  calculateSelectedTextLevels(labelText: string, item: any): any;
561
602
  /**
@@ -575,6 +616,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
575
616
  * @param {any} item - Specifies the treemap item.
576
617
  * @param {number} i - Specifies the treemap item.
577
618
  * @returns {any} - return the new drill down object.
619
+ * @private
578
620
  */
579
621
  compareSelectedLabelWithDrillDownItems(drillLevelValues: any, item: any, i: number): any;
580
622
  /**
@@ -582,6 +624,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
582
624
  *
583
625
  * @param {PointerEvent} e - Specifies the pointer event of mouse.
584
626
  * @returns {void}
627
+ * @private
585
628
  */
586
629
  mouseEndOnTreeMap(e: PointerEvent): void;
587
630
  /**
@@ -589,13 +632,14 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
589
632
  *
590
633
  * @param {PointerEvent} e - Specifies the pointer event of mouse.
591
634
  * @return {void}
635
+ * @private
592
636
  */
593
637
  mouseLeaveOnTreeMap(e: PointerEvent): void;
594
638
  /**
595
639
  * This method is used to select or remove the selection of treemap item based on the provided selection settings.
596
640
  *
597
641
  * @param {string[]} levelOrder - Specifies the order of the level.
598
- * @param {boolean} isSelected - check whether it is selected or not.
642
+ * @param {boolean} isSelected - Specifies whether the treemap item should be selected or the selection should be removed.
599
643
  * @return {void}
600
644
  */
601
645
  selectItem(levelOrder: string[], isSelected?: boolean): void;
@@ -619,10 +663,11 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
619
663
  * Gets component name.
620
664
  *
621
665
  * @returns {string} - return the treemap instance.
666
+ * @private
622
667
  */
623
668
  getModuleName(): string;
624
669
  /**
625
- * This method is used to dispose the treemap component.
670
+ * This method destroys the treemap. This method removes the events associated with the treemap and disposes the objects created for rendering and updating the treemap.
626
671
  */
627
672
  destroy(): void;
628
673
  private removeSvg;
@@ -638,7 +683,7 @@ export declare class TreeMap extends Component<HTMLElement> implements INotifyPr
638
683
  * @private
639
684
  */
640
685
  export declare class LevelsData {
641
- static levelsData: any[];
642
- static defaultLevelsData: any[];
643
- static hierarchyData: any[];
686
+ levelsData: any[];
687
+ defaultLevelsData: any[];
688
+ hierarchyData: any[];
644
689
  }
@@ -39,7 +39,7 @@ import { Print } from './model/print';
39
39
  import { ImageExport } from './model/image-export';
40
40
  import { PdfExport } from './model/pdf-export';
41
41
  /**
42
- * Represents the treemap component.
42
+ * Represents the treemap control. It is used to visualize both hierarchical and flat data.
43
43
  * ```html
44
44
  * <div id="container"/>
45
45
  * <script>
@@ -51,7 +51,7 @@ import { PdfExport } from './model/pdf-export';
51
51
  var TreeMap = /** @class */ (function (_super) {
52
52
  __extends(TreeMap, _super);
53
53
  /**
54
- * Constructor for TreeMap component.
54
+ * Constructor for TreeMap.
55
55
  *
56
56
  * @param {TreeMapModel} options - Specifies the treemap instance.
57
57
  * @param {string | HTMLElement} element - Specifies the treemap element.
@@ -89,16 +89,17 @@ var TreeMap = /** @class */ (function (_super) {
89
89
  this.renderElements();
90
90
  };
91
91
  TreeMap.prototype.renderElements = function () {
92
- LevelsData.levelsData = null;
93
- LevelsData.defaultLevelsData = null;
94
- LevelsData.hierarchyData = null;
92
+ this.treemapLevelData = new LevelsData();
93
+ this.treemapLevelData.levelsData = null;
94
+ this.treemapLevelData.defaultLevelsData = null;
95
+ this.treemapLevelData.hierarchyData = null;
95
96
  this.createSecondaryElement();
96
97
  this.addTabIndex();
97
98
  this.themeStyle = getThemeStyle(this.theme);
98
99
  this.renderBorder();
99
100
  this.renderTitle(this.titleSettings, 'title', null, null);
100
- if (!isNullOrUndefined(LevelsData.levelsData)) {
101
- LevelsData.defaultLevelsData = LevelsData.levelsData;
101
+ if (!isNullOrUndefined(this.treemapLevelData.levelsData)) {
102
+ this.treemapLevelData.defaultLevelsData = this.treemapLevelData.levelsData;
102
103
  }
103
104
  this.processDataManager();
104
105
  };
@@ -265,7 +266,7 @@ var TreeMap = /** @class */ (function (_super) {
265
266
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
266
267
  this.dataSource = this.dataSource;
267
268
  if (!isNullOrUndefined(this.dataSource) && this.dataSource.length > 0 && this.weightValuePath) {
268
- LevelsData.levelsData = [];
269
+ this.treemapLevelData.levelsData = [];
269
270
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
270
271
  this.dataSource.map(function (data) {
271
272
  data[_this.weightValuePath] = (data[_this.weightValuePath]) ? data[_this.weightValuePath].toString() :
@@ -305,28 +306,28 @@ var TreeMap = /** @class */ (function (_super) {
305
306
  }
306
307
  }
307
308
  }
308
- LevelsData.levelsData.push(data_1);
309
+ this.treemapLevelData.levelsData.push(data_1);
309
310
  }
310
311
  else {
311
312
  if (this.isHierarchicalData) {
312
- LevelsData.hierarchyData = [];
313
+ this.treemapLevelData.hierarchyData = [];
313
314
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
314
- LevelsData.hierarchyData = extend([], this.dataSource, LevelsData.hierarchyData, true);
315
- for (var i = 0; i < LevelsData.hierarchyData.length; i++) {
316
- this.processHierarchicalData(LevelsData.hierarchyData[i], i);
315
+ this.treemapLevelData.hierarchyData = extend([], this.dataSource, this.treemapLevelData.hierarchyData, true);
316
+ for (var i = 0; i < this.treemapLevelData.hierarchyData.length; i++) {
317
+ this.processHierarchicalData(this.treemapLevelData.hierarchyData[i], i);
317
318
  }
318
- LevelsData.levelsData = LevelsData.hierarchyData;
319
+ this.treemapLevelData.levelsData = this.treemapLevelData.hierarchyData;
319
320
  }
320
321
  else {
321
322
  this.processFlatJsonData();
322
- if (LevelsData.levelsData.length > 1) {
323
- this.reOrderLevelData(LevelsData.levelsData.length - 1);
323
+ if (this.treemapLevelData.levelsData.length > 1) {
324
+ this.reOrderLevelData(this.treemapLevelData.levelsData.length - 1);
324
325
  }
325
326
  }
326
327
  path = this.levels[0].groupPath;
327
328
  }
328
329
  if (!this.isHierarchicalData) {
329
- this.findTotalWeight(LevelsData.levelsData[0][path], 'Parent');
330
+ this.findTotalWeight(this.treemapLevelData.levelsData[0][path], 'Parent');
330
331
  }
331
332
  }
332
333
  };
@@ -388,19 +389,19 @@ var TreeMap = /** @class */ (function (_super) {
388
389
  _this.processHierarchicalData(currentData, dataCount);
389
390
  });
390
391
  }
391
- if (dataCount === LevelsData.hierarchyData.length - 1) {
392
+ if (dataCount === this.treemapLevelData.hierarchyData.length - 1) {
392
393
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
393
- var mainData_1 = LevelsData.hierarchyData[0][this.levels[0].groupPath];
394
- for (var k = 0; k < LevelsData.hierarchyData.length; k++) {
395
- childData = findChildren(LevelsData.hierarchyData[k])['values'];
394
+ var mainData_1 = this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath];
395
+ for (var k = 0; k < this.treemapLevelData.hierarchyData.length; k++) {
396
+ childData = findChildren(this.treemapLevelData.hierarchyData[k])['values'];
396
397
  if (k !== 0 && childData) {
397
398
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
398
399
  childData.forEach(function (currentData) { mainData_1.push(currentData); });
399
- LevelsData.hierarchyData.splice(k, 1);
400
+ this.treemapLevelData.hierarchyData.splice(k, 1);
400
401
  k -= 1;
401
402
  }
402
403
  }
403
- mainData_1 = LevelsData.hierarchyData[0][this.levels[0].groupPath];
404
+ mainData_1 = this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath];
404
405
  for (var l = 0; l < mainData_1.length; l++) {
405
406
  newData[this.levels[0].groupPath] = mainData_1;
406
407
  mainData_1[l]['parent'] = newData;
@@ -458,7 +459,7 @@ var TreeMap = /** @class */ (function (_super) {
458
459
  var level = {};
459
460
  level['level'] = i;
460
461
  level[groupPath] = [];
461
- LevelsData.levelsData.push(level);
462
+ this.treemapLevelData.levelsData.push(level);
462
463
  for (var j = 0; j < this.dataSource.length; j++) {
463
464
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
464
465
  var currentData = {};
@@ -480,7 +481,7 @@ var TreeMap = /** @class */ (function (_super) {
480
481
  currentData['groupName'] = groupPath;
481
482
  currentData['data'] = this.dataSource[j];
482
483
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
483
- LevelsData.levelsData[(LevelsData.levelsData.length - 1)][groupPath].push(currentData);
484
+ this.treemapLevelData.levelsData[(this.treemapLevelData.levelsData.length - 1)][groupPath].push(currentData);
484
485
  orderNames.push((childName) ? childName : name_1);
485
486
  }
486
487
  }
@@ -492,15 +493,16 @@ var TreeMap = /** @class */ (function (_super) {
492
493
  *
493
494
  * @param {number} start - Specifies the start value of the treemap level.
494
495
  * @returns {void}
496
+ * @private
495
497
  */
496
498
  TreeMap.prototype.reOrderLevelData = function (start) {
497
499
  var currentName;
498
500
  var currentPath = this.levels[start] ? this.levels[start].groupPath : this.leafItemSettings.labelPath;
499
501
  var prevPath = this.levels[start - 1].groupPath;
500
502
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
501
- var currentData = LevelsData.levelsData[start][currentPath];
503
+ var currentData = this.treemapLevelData.levelsData[start][currentPath];
502
504
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
503
- var previousData = LevelsData.levelsData[start - 1][prevPath];
505
+ var previousData = this.treemapLevelData.levelsData[start - 1][prevPath];
504
506
  for (var i = 0; i < currentData.length; i++) {
505
507
  currentName = currentData[i]['levelOrderName'];
506
508
  for (var j = 0; j < previousData.length; j++) {
@@ -516,8 +518,8 @@ var TreeMap = /** @class */ (function (_super) {
516
518
  }
517
519
  }
518
520
  }
519
- this.findTotalWeight(LevelsData.levelsData[LevelsData.levelsData.length - 1][currentPath], 'Child');
520
- LevelsData.levelsData.splice(start, 1);
521
+ this.findTotalWeight(this.treemapLevelData.levelsData[this.treemapLevelData.levelsData.length - 1][currentPath], 'Child');
522
+ this.treemapLevelData.levelsData.splice(start, 1);
521
523
  if ((start - 1) > 0) {
522
524
  this.reOrderLevelData(start - 1);
523
525
  }
@@ -540,6 +542,7 @@ var TreeMap = /** @class */ (function (_super) {
540
542
  * @param {any[]} processData - Specifies the treemap data.
541
543
  * @param {string} type - Specifies the type of the data.
542
544
  * @returns {void}
545
+ * @private
543
546
  */
544
547
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
545
548
  TreeMap.prototype.findTotalWeight = function (processData, type) {
@@ -574,6 +577,7 @@ var TreeMap = /** @class */ (function (_super) {
574
577
  * To unbind event handlers for treemap.
575
578
  *
576
579
  * @returns {void}
580
+ * @private
577
581
  */
578
582
  TreeMap.prototype.unWireEVents = function () {
579
583
  EventHandler.remove(this.element, 'click', this.clickOnTreeMap);
@@ -624,6 +628,7 @@ var TreeMap = /** @class */ (function (_super) {
624
628
  *
625
629
  * @param {Event} e - Specifies the pointer event.
626
630
  * @returns {void}
631
+ * @private
627
632
  */
628
633
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
629
634
  TreeMap.prototype.resizeOnTreeMap = function (e) {
@@ -660,6 +665,7 @@ var TreeMap = /** @class */ (function (_super) {
660
665
  *
661
666
  * @param {PointerEvent} e - Specifies the mouse click event in the treemap.
662
667
  * @returns {void}
668
+ * @private
663
669
  */
664
670
  TreeMap.prototype.clickOnTreeMap = function (e) {
665
671
  var _this = this;
@@ -682,7 +688,7 @@ var TreeMap = /** @class */ (function (_super) {
682
688
  if (observedArgs.text !== labelText || observedArgs.contentItemTemplate !== labelText) {
683
689
  if (isNullOrUndefined(_this.leafItemSettings.labelTemplate)) {
684
690
  observedArgs.text = textFormatter(observedArgs.text, observedArgs['item']['data'], observedArgs.treemap);
685
- targetEle.innerHTML = observedArgs.text;
691
+ targetEle.textContent = observedArgs.text;
686
692
  }
687
693
  else {
688
694
  setItemTemplateContent(targetId, targetEle, observedArgs.contentItemTemplate);
@@ -715,6 +721,7 @@ var TreeMap = /** @class */ (function (_super) {
715
721
  *
716
722
  * @param {PointerEvent} e - Specifies the pointer event of mouse click.
717
723
  * @returns {void}
724
+ * @private
718
725
  */
719
726
  TreeMap.prototype.rightClickOnTreeMap = function (e) {
720
727
  var rightClickArgs = { cancel: false, name: rightClick, treemap: this, mouseEvent: e };
@@ -725,6 +732,7 @@ var TreeMap = /** @class */ (function (_super) {
725
732
  *
726
733
  * @param {PointerEvent} e - Specifies the pointer event of mouse click.
727
734
  * @returns {void}
735
+ * @private
728
736
  */
729
737
  TreeMap.prototype.mouseDownOnTreeMap = function (e) {
730
738
  if (e.target.id.indexOf('_Item_Index') > -1) {
@@ -737,6 +745,7 @@ var TreeMap = /** @class */ (function (_super) {
737
745
  *
738
746
  * @param {PointerEvent} e - Specifies the pointer event of mouse click.
739
747
  * @returns {void}
748
+ * @private
740
749
  */
741
750
  TreeMap.prototype.mouseMoveOnTreeMap = function (e) {
742
751
  var targetEle = e.target;
@@ -765,6 +774,7 @@ var TreeMap = /** @class */ (function (_super) {
765
774
  * @param {string} labelText - Specifies the label text.
766
775
  * @param {any} item - Specifies the treemap item.
767
776
  * @returns {any} - Returns label of the drilled level.
777
+ * @private
768
778
  */
769
779
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
770
780
  TreeMap.prototype.calculateSelectedTextLevels = function (labelText, item) {
@@ -832,6 +842,7 @@ var TreeMap = /** @class */ (function (_super) {
832
842
  * @param {any} item - Specifies the treemap item.
833
843
  * @param {number} i - Specifies the treemap item.
834
844
  * @returns {any} - return the new drill down object.
845
+ * @private
835
846
  */
836
847
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
837
848
  TreeMap.prototype.compareSelectedLabelWithDrillDownItems = function (drillLevelValues, item, i) {
@@ -858,6 +869,7 @@ var TreeMap = /** @class */ (function (_super) {
858
869
  *
859
870
  * @param {PointerEvent} e - Specifies the pointer event of mouse.
860
871
  * @returns {void}
872
+ * @private
861
873
  */
862
874
  TreeMap.prototype.mouseEndOnTreeMap = function (e) {
863
875
  var _this = this;
@@ -883,7 +895,7 @@ var TreeMap = /** @class */ (function (_super) {
883
895
  }
884
896
  index = parseFloat(targetId.split('_Item_Index_')[1]);
885
897
  item = this.layout.renderItems[index];
886
- var labelText = targetEle.innerHTML;
898
+ var labelText = targetEle.textContent;
887
899
  if (this.enableBreadcrumb) {
888
900
  drillLevelValues = this.calculateSelectedTextLevels(labelText, item);
889
901
  drillLevel = drillLevelValues['drillLevel'];
@@ -1001,6 +1013,7 @@ var TreeMap = /** @class */ (function (_super) {
1001
1013
  *
1002
1014
  * @param {PointerEvent} e - Specifies the pointer event of mouse.
1003
1015
  * @return {void}
1016
+ * @private
1004
1017
  */
1005
1018
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1006
1019
  TreeMap.prototype.mouseLeaveOnTreeMap = function (e) {
@@ -1020,7 +1033,7 @@ var TreeMap = /** @class */ (function (_super) {
1020
1033
  * This method is used to select or remove the selection of treemap item based on the provided selection settings.
1021
1034
  *
1022
1035
  * @param {string[]} levelOrder - Specifies the order of the level.
1023
- * @param {boolean} isSelected - check whether it is selected or not.
1036
+ * @param {boolean} isSelected - Specifies whether the treemap item should be selected or the selection should be removed.
1024
1037
  * @return {void}
1025
1038
  */
1026
1039
  TreeMap.prototype.selectItem = function (levelOrder, isSelected) {
@@ -1133,12 +1146,13 @@ var TreeMap = /** @class */ (function (_super) {
1133
1146
  * Gets component name.
1134
1147
  *
1135
1148
  * @returns {string} - return the treemap instance.
1149
+ * @private
1136
1150
  */
1137
1151
  TreeMap.prototype.getModuleName = function () {
1138
1152
  return 'treemap';
1139
1153
  };
1140
1154
  /**
1141
- * This method is used to dispose the treemap component.
1155
+ * This method destroys the treemap. This method removes the events associated with the treemap and disposes the objects created for rendering and updating the treemap.
1142
1156
  */
1143
1157
  TreeMap.prototype.destroy = function () {
1144
1158
  this.unWireEVents();
@@ -17,6 +17,7 @@ export declare class TreeMapHighlight {
17
17
  *
18
18
  * @param {PointerEvent} e - Specifies the pointer argument.
19
19
  * @returns {boolean} - return the highlight process is true or false.
20
+ * @private
20
21
  */
21
22
  mouseMove(e: PointerEvent): boolean;
22
23
  /**
@@ -63,6 +64,7 @@ export declare class TreeMapSelection {
63
64
  *
64
65
  * @param {PointerEvent} e - Specifies the pointer argument.
65
66
  * @returns {void}
67
+ * @private
66
68
  */
67
69
  mouseDown(e: PointerEvent): void;
68
70
  /**