@syncfusion/ej2-treemap 19.4.52 → 20.1.47-14088

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.
@@ -121,32 +121,32 @@ var resize = 'resize';
121
121
  */
122
122
  var defaultFont = 'Roboto, Segoe UI, Noto, Sans-serif';
123
123
 
124
- var __extends$1 = (undefined && undefined.__extends) || (function () {
125
- var extendStatics = function (d, b) {
126
- extendStatics = Object.setPrototypeOf ||
127
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
128
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
129
- return extendStatics(d, b);
130
- };
131
- return function (d, b) {
132
- extendStatics(d, b);
133
- function __() { this.constructor = d; }
134
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
135
- };
136
- })();
137
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
138
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
139
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
140
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
141
- return c > 3 && r && Object.defineProperty(target, key, r), r;
142
- };
124
+ var __extends$1 = (undefined && undefined.__extends) || (function () {
125
+ var extendStatics = function (d, b) {
126
+ extendStatics = Object.setPrototypeOf ||
127
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
128
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
129
+ return extendStatics(d, b);
130
+ };
131
+ return function (d, b) {
132
+ extendStatics(d, b);
133
+ function __() { this.constructor = d; }
134
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
135
+ };
136
+ })();
137
+ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
138
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
139
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
140
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
141
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
142
+ };
143
143
  /**
144
144
  * Maps base doc
145
145
  */
146
146
  /**
147
147
  * Sets and gets the options for customizing the color and width of the border in treemap component.
148
148
  */
149
- var Border = /** @__PURE__ @class */ (function (_super) {
149
+ var Border = /** @class */ (function (_super) {
150
150
  __extends$1(Border, _super);
151
151
  function Border() {
152
152
  return _super !== null && _super.apply(this, arguments) || this;
@@ -162,7 +162,7 @@ var Border = /** @__PURE__ @class */ (function (_super) {
162
162
  /**
163
163
  * Sets and gets the margin for the treemap component.
164
164
  */
165
- var Margin = /** @__PURE__ @class */ (function (_super) {
165
+ var Margin = /** @class */ (function (_super) {
166
166
  __extends$1(Margin, _super);
167
167
  function Margin() {
168
168
  return _super !== null && _super.apply(this, arguments) || this;
@@ -184,7 +184,7 @@ var Margin = /** @__PURE__ @class */ (function (_super) {
184
184
  /**
185
185
  * Sets and gets the options to customize the style of the text contents in the treemap component.
186
186
  */
187
- var Font = /** @__PURE__ @class */ (function (_super) {
187
+ var Font = /** @class */ (function (_super) {
188
188
  __extends$1(Font, _super);
189
189
  function Font() {
190
190
  return _super !== null && _super.apply(this, arguments) || this;
@@ -212,7 +212,7 @@ var Font = /** @__PURE__ @class */ (function (_super) {
212
212
  /**
213
213
  * Sets and gets the options for customizing the common title of the treemap component.
214
214
  */
215
- var CommonTitleSettings = /** @__PURE__ @class */ (function (_super) {
215
+ var CommonTitleSettings = /** @class */ (function (_super) {
216
216
  __extends$1(CommonTitleSettings, _super);
217
217
  function CommonTitleSettings() {
218
218
  return _super !== null && _super.apply(this, arguments) || this;
@@ -228,7 +228,7 @@ var CommonTitleSettings = /** @__PURE__ @class */ (function (_super) {
228
228
  /**
229
229
  * Sets and gets the options for customizing the subtitle of the treemap component.
230
230
  */
231
- var SubTitleSettings = /** @__PURE__ @class */ (function (_super) {
231
+ var SubTitleSettings = /** @class */ (function (_super) {
232
232
  __extends$1(SubTitleSettings, _super);
233
233
  function SubTitleSettings() {
234
234
  return _super !== null && _super.apply(this, arguments) || this;
@@ -244,7 +244,7 @@ var SubTitleSettings = /** @__PURE__ @class */ (function (_super) {
244
244
  /**
245
245
  * Sets and gets the options for customizing the title of the treemap component.
246
246
  */
247
- var TitleSettings = /** @__PURE__ @class */ (function (_super) {
247
+ var TitleSettings = /** @class */ (function (_super) {
248
248
  __extends$1(TitleSettings, _super);
249
249
  function TitleSettings() {
250
250
  return _super !== null && _super.apply(this, arguments) || this;
@@ -263,7 +263,7 @@ var TitleSettings = /** @__PURE__ @class */ (function (_super) {
263
263
  /**
264
264
  * Sets and gets the options to customize the color-mapping in treemap component.
265
265
  */
266
- var ColorMapping = /** @__PURE__ @class */ (function (_super) {
266
+ var ColorMapping = /** @class */ (function (_super) {
267
267
  __extends$1(ColorMapping, _super);
268
268
  function ColorMapping() {
269
269
  return _super !== null && _super.apply(this, arguments) || this;
@@ -297,7 +297,7 @@ var ColorMapping = /** @__PURE__ @class */ (function (_super) {
297
297
  /**
298
298
  * Sets and gets the options for customizing the legend of the treemap component.
299
299
  */
300
- var LegendSettings = /** @__PURE__ @class */ (function (_super) {
300
+ var LegendSettings = /** @class */ (function (_super) {
301
301
  __extends$1(LegendSettings, _super);
302
302
  function LegendSettings() {
303
303
  return _super !== null && _super.apply(this, arguments) || this;
@@ -388,7 +388,7 @@ var LegendSettings = /** @__PURE__ @class */ (function (_super) {
388
388
  /**
389
389
  * Sets and gets the settings for drill to visualize the treemap rendered in the initial state.
390
390
  */
391
- var InitialDrillSettings = /** @__PURE__ @class */ (function (_super) {
391
+ var InitialDrillSettings = /** @class */ (function (_super) {
392
392
  __extends$1(InitialDrillSettings, _super);
393
393
  function InitialDrillSettings() {
394
394
  return _super !== null && _super.apply(this, arguments) || this;
@@ -404,7 +404,7 @@ var InitialDrillSettings = /** @__PURE__ @class */ (function (_super) {
404
404
  /**
405
405
  * Sets and gets the options for customizing the leaf item of the treemap component.
406
406
  */
407
- var LeafItemSettings = /** @__PURE__ @class */ (function (_super) {
407
+ var LeafItemSettings = /** @class */ (function (_super) {
408
408
  __extends$1(LeafItemSettings, _super);
409
409
  function LeafItemSettings() {
410
410
  return _super !== null && _super.apply(this, arguments) || this;
@@ -459,7 +459,7 @@ var LeafItemSettings = /** @__PURE__ @class */ (function (_super) {
459
459
  /**
460
460
  * Sets and gets the options for customizing the tooltip of the treemap component.
461
461
  */
462
- var TooltipSettings = /** @__PURE__ @class */ (function (_super) {
462
+ var TooltipSettings = /** @class */ (function (_super) {
463
463
  __extends$1(TooltipSettings, _super);
464
464
  function TooltipSettings() {
465
465
  return _super !== null && _super.apply(this, arguments) || this;
@@ -493,7 +493,7 @@ var TooltipSettings = /** @__PURE__ @class */ (function (_super) {
493
493
  /**
494
494
  * Sets and gets the options for customizing the selection of the leaf items in treemap component.
495
495
  */
496
- var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
496
+ var SelectionSettings = /** @class */ (function (_super) {
497
497
  __extends$1(SelectionSettings, _super);
498
498
  function SelectionSettings() {
499
499
  return _super !== null && _super.apply(this, arguments) || this;
@@ -519,7 +519,7 @@ var SelectionSettings = /** @__PURE__ @class */ (function (_super) {
519
519
  * Sets and gets the options for customizing the highlighting of the treemap item,
520
520
  * when the mouse hover is performed in it.
521
521
  */
522
- var HighlightSettings = /** @__PURE__ @class */ (function (_super) {
522
+ var HighlightSettings = /** @class */ (function (_super) {
523
523
  __extends$1(HighlightSettings, _super);
524
524
  function HighlightSettings() {
525
525
  return _super !== null && _super.apply(this, arguments) || this;
@@ -544,7 +544,7 @@ var HighlightSettings = /** @__PURE__ @class */ (function (_super) {
544
544
  /**
545
545
  * Sets and gets the options for customizing the levels of the treemap component.
546
546
  */
547
- var LevelSettings = /** @__PURE__ @class */ (function (_super) {
547
+ var LevelSettings = /** @class */ (function (_super) {
548
548
  __extends$1(LevelSettings, _super);
549
549
  function LevelSettings() {
550
550
  return _super !== null && _super.apply(this, arguments) || this;
@@ -600,7 +600,7 @@ var LevelSettings = /** @__PURE__ @class */ (function (_super) {
600
600
  /**
601
601
  * Create the class for size
602
602
  */
603
- var Size = /** @__PURE__ @class */ (function () {
603
+ var Size = /** @class */ (function () {
604
604
  function Size(width, height) {
605
605
  this.width = width;
606
606
  this.height = height;
@@ -618,7 +618,7 @@ function stringToNumber(value, containerSize) {
618
618
  *
619
619
  * @private
620
620
  */
621
- var Rect = /** @__PURE__ @class */ (function () {
621
+ var Rect = /** @class */ (function () {
622
622
  function Rect(x, y, width, height) {
623
623
  this.x = x;
624
624
  this.y = y;
@@ -632,7 +632,7 @@ var Rect = /** @__PURE__ @class */ (function () {
632
632
  *
633
633
  * @private
634
634
  */
635
- var RectOption = /** @__PURE__ @class */ (function () {
635
+ var RectOption = /** @class */ (function () {
636
636
  function RectOption(id, fill, border, opacity, rect, dashArray) {
637
637
  this.y = rect.y;
638
638
  this.x = rect.x;
@@ -647,7 +647,7 @@ var RectOption = /** @__PURE__ @class */ (function () {
647
647
  }
648
648
  return RectOption;
649
649
  }());
650
- var PathOption = /** @__PURE__ @class */ (function () {
650
+ var PathOption = /** @class */ (function () {
651
651
  function PathOption(id, fill, width, color, opacity, dashArray, d) {
652
652
  this.id = id;
653
653
  this.opacity = opacity;
@@ -693,7 +693,7 @@ function measureText(text, font) {
693
693
  *
694
694
  * @private
695
695
  */
696
- var TextOption = /** @__PURE__ @class */ (function () {
696
+ var TextOption = /** @class */ (function () {
697
697
  function TextOption(id, x, y, anchor, text, transform, baseLine, connectorText) {
698
698
  if (transform === void 0) { transform = ''; }
699
699
  this.transform = '';
@@ -739,7 +739,7 @@ function textTrim(maxWidth, text, font) {
739
739
  /**
740
740
  * Map internal class for Point
741
741
  */
742
- var Location = /** @__PURE__ @class */ (function () {
742
+ var Location = /** @class */ (function () {
743
743
  function Location(x, y) {
744
744
  this.x = x;
745
745
  this.y = y;
@@ -1082,7 +1082,7 @@ value, weightValuePath) {
1082
1082
  var dataValue = value;
1083
1083
  if (!isNullOrUndefined(colorMapping[i].from) && !isNullOrUndefined(colorMapping[i].to)
1084
1084
  && !isNullOrUndefined(colorMapping[i].value)) {
1085
- if ((value >= colorMapping[i].from && colorMapping[i].to >= value) && (colorMapping[i].value === equalValue)) {
1085
+ if ((value >= colorMapping[i].from && colorMapping[i].to >= value) && (colorMapping[i].value.toString() === equalValue)) {
1086
1086
  isEqualColor = true;
1087
1087
  if (Object.prototype.toString.call(colorMapping[i].color) === '[object Array]') {
1088
1088
  fill = !isEqualColor ? colorCollections(colorMapping[i], dataValue) : colorMapping[i].color[0];
@@ -1094,8 +1094,8 @@ value, weightValuePath) {
1094
1094
  }
1095
1095
  else if ((!isNullOrUndefined(colorMapping[i].from) && !isNullOrUndefined(colorMapping[i].to))
1096
1096
  || !isNullOrUndefined((colorMapping[i].value))) {
1097
- if ((value >= colorMapping[i].from && colorMapping[i].to >= value) || (colorMapping[i].value === equalValue)) {
1098
- if (colorMapping[i].value === equalValue) {
1097
+ if ((value >= colorMapping[i].from && colorMapping[i].to >= value) || (colorMapping[i].value.toString() === equalValue)) {
1098
+ if (colorMapping[i].value.toString() === equalValue) {
1099
1099
  isEqualColor = true;
1100
1100
  }
1101
1101
  if (Object.prototype.toString.call(colorMapping[i].color) === '[object Array]') {
@@ -1106,7 +1106,7 @@ value, weightValuePath) {
1106
1106
  }
1107
1107
  }
1108
1108
  }
1109
- if (((value >= colorMapping[i].from && value <= colorMapping[i].to) || (colorMapping[i].value === equalValue))
1109
+ if (((value >= colorMapping[i].from && value <= colorMapping[i].to) || (colorMapping[i].value.toString() === equalValue))
1110
1110
  && !isNullOrUndefined(colorMapping[i].minOpacity) && !isNullOrUndefined(colorMapping[i].maxOpacity) && fill) {
1111
1111
  opacity = deSaturationColor(weightValuePath, colorMapping[i], fill, value);
1112
1112
  }
@@ -1343,7 +1343,7 @@ function removeClassNames(elements, type, treemap) {
1343
1343
  for (var j = 0; j < elements.length; j++) {
1344
1344
  element = isNullOrUndefined(elements[j].childNodes[0]) ? elements[j] :
1345
1345
  elements[j].childNodes[0];
1346
- options = treemap.layout.renderItems[element.id.split('_')[6]]['options'];
1346
+ options = treemap.layout.renderItems[parseFloat(element.id.split('_Item_Index_')[1])]['options'];
1347
1347
  applyOptions(element, options);
1348
1348
  elements[j].classList.remove(type);
1349
1349
  j -= 1;
@@ -1386,7 +1386,7 @@ function formatValue(value, treemap) {
1386
1386
  /**
1387
1387
  * @private
1388
1388
  */
1389
- var ColorValue = /** @__PURE__ @class */ (function () {
1389
+ var ColorValue = /** @class */ (function () {
1390
1390
  function ColorValue(r, g, b) {
1391
1391
  this.r = r;
1392
1392
  this.g = g;
@@ -1564,7 +1564,7 @@ function isParentItem(data, item) {
1564
1564
  /**
1565
1565
  * Ajax support for treemap
1566
1566
  */
1567
- var TreeMapAjax = /** @__PURE__ @class */ (function () {
1567
+ var TreeMapAjax = /** @class */ (function () {
1568
1568
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1569
1569
  function TreeMapAjax(options, type, async, contentType, sendData) {
1570
1570
  this.dataOptions = options;
@@ -1669,7 +1669,7 @@ function removeElement(id) {
1669
1669
  /**
1670
1670
  * To calculate and render the shape layer
1671
1671
  */
1672
- var LayoutPanel = /** @__PURE__ @class */ (function () {
1672
+ var LayoutPanel = /** @class */ (function () {
1673
1673
  // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
1674
1674
  function LayoutPanel(treemap) {
1675
1675
  this.treemap = treemap;
@@ -2529,7 +2529,7 @@ function getThemeStyle(theme) {
2529
2529
  labelFontFamily: 'Helvetica Neue'
2530
2530
  };
2531
2531
  break;
2532
- case 'fluentui':
2532
+ case 'fluent':
2533
2533
  style = {
2534
2534
  backgroundColor: 'rgba(255,255,255, 0.0)',
2535
2535
  titleFontColor: '#201F1E',
@@ -2546,7 +2546,7 @@ function getThemeStyle(theme) {
2546
2546
  labelFontFamily: 'Segoe UI'
2547
2547
  };
2548
2548
  break;
2549
- case 'fluentuidark':
2549
+ case 'fluentdark':
2550
2550
  style = {
2551
2551
  backgroundColor: 'rgba(255,255,255, 0.0)',
2552
2552
  titleFontColor: '#F3F2F1',
@@ -2584,7 +2584,7 @@ function getThemeStyle(theme) {
2584
2584
  *
2585
2585
  * @hidden
2586
2586
  */
2587
- var Print = /** @__PURE__ @class */ (function () {
2587
+ var Print = /** @class */ (function () {
2588
2588
  /**
2589
2589
  * Constructor for Maps
2590
2590
  *
@@ -2671,7 +2671,7 @@ var Print = /** @__PURE__ @class */ (function () {
2671
2671
  *
2672
2672
  * @hidden
2673
2673
  */
2674
- var ImageExport = /** @__PURE__ @class */ (function () {
2674
+ var ImageExport = /** @class */ (function () {
2675
2675
  /**
2676
2676
  * Constructor for Maps
2677
2677
  *
@@ -2760,7 +2760,7 @@ var ImageExport = /** @__PURE__ @class */ (function () {
2760
2760
  *
2761
2761
  * @hidden
2762
2762
  */
2763
- var PdfExport = /** @__PURE__ @class */ (function () {
2763
+ var PdfExport = /** @class */ (function () {
2764
2764
  /**
2765
2765
  * Constructor for Maps
2766
2766
  *
@@ -2797,8 +2797,8 @@ var PdfExport = /** @__PURE__ @class */ (function () {
2797
2797
  var backgroundElement = exportElement.childNodes[0];
2798
2798
  if (!isNullOrUndefined(backgroundElement)) {
2799
2799
  var backgroundColor = backgroundElement.getAttribute('fill');
2800
- if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark')
2801
- && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
2800
+ if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark'
2801
+ || _this.control.theme === 'Fluent' || _this.control.theme === 'FluentDark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
2802
2802
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
2803
2803
  }
2804
2804
  }
@@ -2849,25 +2849,25 @@ var PdfExport = /** @__PURE__ @class */ (function () {
2849
2849
  /**
2850
2850
  * Tree Map Components
2851
2851
  */
2852
- var __extends = (undefined && undefined.__extends) || (function () {
2853
- var extendStatics = function (d, b) {
2854
- extendStatics = Object.setPrototypeOf ||
2855
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2856
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2857
- return extendStatics(d, b);
2858
- };
2859
- return function (d, b) {
2860
- extendStatics(d, b);
2861
- function __() { this.constructor = d; }
2862
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2863
- };
2864
- })();
2865
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2866
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2867
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2868
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2869
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2870
- };
2852
+ var __extends = (undefined && undefined.__extends) || (function () {
2853
+ var extendStatics = function (d, b) {
2854
+ extendStatics = Object.setPrototypeOf ||
2855
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2856
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2857
+ return extendStatics(d, b);
2858
+ };
2859
+ return function (d, b) {
2860
+ extendStatics(d, b);
2861
+ function __() { this.constructor = d; }
2862
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2863
+ };
2864
+ })();
2865
+ var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2866
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2867
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2868
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2869
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
2870
+ };
2871
2871
  /**
2872
2872
  * Represents the treemap component.
2873
2873
  * ```html
@@ -2878,7 +2878,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
2878
2878
  * </script>
2879
2879
  * ```
2880
2880
  */
2881
- var TreeMap = /** @__PURE__ @class */ (function (_super) {
2881
+ var TreeMap = /** @class */ (function (_super) {
2882
2882
  __extends(TreeMap, _super);
2883
2883
  /**s
2884
2884
  * Constructor for TreeMap component.
@@ -3396,7 +3396,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
3396
3396
  EventHandler.remove(this.element, Browser.touchMoveEvent, this.mouseMoveOnTreeMap);
3397
3397
  EventHandler.remove(this.element, Browser.touchEndEvent, this.mouseEndOnTreeMap);
3398
3398
  EventHandler.remove(this.element, 'pointerleave mouseleave', this.mouseLeaveOnTreeMap);
3399
- window.removeEventListener('resize', this.resizeOnTreeMap);
3399
+ window.removeEventListener('resize', this.resizeEvent);
3400
3400
  };
3401
3401
  /**
3402
3402
  * To bind event handlers for treemap.
@@ -3411,7 +3411,8 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
3411
3411
  EventHandler.add(this.element, Browser.touchMoveEvent, this.mouseMoveOnTreeMap, this);
3412
3412
  EventHandler.add(this.element, Browser.touchEndEvent, this.mouseEndOnTreeMap, this);
3413
3413
  EventHandler.add(this.element, 'pointerleave mouseleave', this.mouseLeaveOnTreeMap, this);
3414
- window.addEventListener('resize', this.resizeOnTreeMap.bind(this));
3414
+ this.resizeEvent = this.resizeOnTreeMap.bind(this);
3415
+ window.addEventListener('resize', this.resizeEvent);
3415
3416
  };
3416
3417
  /**
3417
3418
  * Method to set culture for maps
@@ -3437,28 +3438,32 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
3437
3438
  */
3438
3439
  TreeMap.prototype.resizeOnTreeMap = function (e) {
3439
3440
  var _this = this;
3440
- this.isResize = true;
3441
- var args = {
3442
- name: resize,
3443
- cancel: false,
3444
- previousSize: this.availableSize,
3445
- currentSize: new Size(0, 0),
3446
- treemap: this
3447
- };
3448
- if (this.resizeTo) {
3449
- clearTimeout(this.resizeTo);
3450
- }
3451
- if (!isNullOrUndefined(this.element) && this.element.classList.contains('e-treemap')) {
3452
- this.resizeTo = setTimeout(function () {
3453
- _this.unWireEVents();
3454
- _this.createSvg();
3455
- _this.refreshing = true;
3456
- _this.wireEVents();
3457
- args.currentSize = _this.availableSize;
3458
- _this.trigger(resize, args, function (observedArgs) {
3459
- _this.render();
3460
- });
3461
- }, 500);
3441
+ if (!this.isDestroyed) {
3442
+ this.isResize = true;
3443
+ var args_1 = {
3444
+ name: resize,
3445
+ cancel: false,
3446
+ previousSize: this.availableSize,
3447
+ currentSize: new Size(0, 0),
3448
+ treemap: this
3449
+ };
3450
+ if (this.resizeTo) {
3451
+ clearTimeout(this.resizeTo);
3452
+ }
3453
+ if (!isNullOrUndefined(this.element) && this.element.classList.contains('e-treemap')) {
3454
+ this.resizeTo = setTimeout(function () {
3455
+ _this.unWireEVents();
3456
+ _this.createSvg();
3457
+ _this.refreshing = true;
3458
+ _this.wireEVents();
3459
+ args_1.currentSize = _this.availableSize;
3460
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
3461
+ _this.trigger(resize, args_1, function (observedArgs) {
3462
+ _this.render();
3463
+ _this.refreshing = false;
3464
+ });
3465
+ }, 500);
3466
+ }
3462
3467
  }
3463
3468
  };
3464
3469
  /**
@@ -3477,7 +3482,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
3477
3482
  this.trigger(click, clickArgs);
3478
3483
  if (targetId.indexOf('_Item_Index') > -1) {
3479
3484
  e.preventDefault();
3480
- itemIndex = parseFloat(targetId.split('_')[6]);
3485
+ itemIndex = parseFloat(targetId.split('_Item_Index_')[1]);
3481
3486
  eventArgs = {
3482
3487
  cancel: false, name: itemClick, treemap: this, item: this.layout.renderItems[itemIndex], mouseEvent: e,
3483
3488
  groupIndex: this.layout.renderItems[itemIndex]['groupIndex'], groupName: this.layout.renderItems[itemIndex]['name'],
@@ -3550,7 +3555,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
3550
3555
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3551
3556
  var childItems;
3552
3557
  if (targetId.indexOf('_Item_Index') > -1) {
3553
- item = this.layout.renderItems[parseFloat(targetId.split('_')[6])];
3558
+ item = this.layout.renderItems[parseFloat(targetId.split('_Item_Index_')[1])];
3554
3559
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
3555
3560
  childItems = findChildren(item)['values'];
3556
3561
  this.element.style.cursor = (!item['isLeafItem'] && childItems && childItems.length > 0 && this.enableDrillDown) ?
@@ -3678,7 +3683,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
3678
3683
  if (e.cancelable) {
3679
3684
  e.preventDefault();
3680
3685
  }
3681
- index = parseFloat(targetId.split('_')[6]);
3686
+ index = parseFloat(targetId.split('_Item_Index_')[1]);
3682
3687
  item = this.layout.renderItems[index];
3683
3688
  var labelText = targetEle.innerHTML;
3684
3689
  if (this.enableBreadcrumb) {
@@ -4118,7 +4123,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
4118
4123
  /**
4119
4124
  * @private
4120
4125
  */
4121
- var LevelsData = /** @__PURE__ @class */ (function () {
4126
+ var LevelsData = /** @class */ (function () {
4122
4127
  function LevelsData() {
4123
4128
  }
4124
4129
  return LevelsData;
@@ -4130,7 +4135,7 @@ var LevelsData = /** @__PURE__ @class */ (function () {
4130
4135
  /**
4131
4136
  * Legend module class
4132
4137
  */
4133
- var TreeMapLegend = /** @__PURE__ @class */ (function () {
4138
+ var TreeMapLegend = /** @class */ (function () {
4134
4139
  // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
4135
4140
  function TreeMapLegend(treemap) {
4136
4141
  this.page = 0;
@@ -4890,7 +4895,7 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
4890
4895
  var stroke = void 0;
4891
4896
  var strokeWidth = void 0;
4892
4897
  var legendElement = void 0;
4893
- targetItem = treemap.layout.renderItems[parseFloat(target.id.split('_')[6])];
4898
+ targetItem = treemap.layout.renderItems[parseFloat(target.id.split('_Item_Index_')[1])];
4894
4899
  var svgRect = treemap.svgObject.getBoundingClientRect();
4895
4900
  for (var i = 0; i < this.legendCollections.length; i++) {
4896
4901
  currentData = this.legendCollections[i];
@@ -5125,7 +5130,7 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
5125
5130
  /**
5126
5131
  * Performing treemap highlight
5127
5132
  */
5128
- var TreeMapHighlight = /** @__PURE__ @class */ (function () {
5133
+ var TreeMapHighlight = /** @class */ (function () {
5129
5134
  // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
5130
5135
  function TreeMapHighlight(treeMap) {
5131
5136
  this.target = 'highlight';
@@ -5164,14 +5169,14 @@ var TreeMapHighlight = /** @__PURE__ @class */ (function () {
5164
5169
  if (this.highLightId !== targetId) {
5165
5170
  treeMapElement = document.getElementById(treemap.element.id + '_TreeMap_' + treemap.layoutType + '_Layout');
5166
5171
  var selectionElements = document.getElementsByClassName('treeMapSelection');
5167
- item = this.treemap.layout.renderItems[parseFloat(targetId.split('_')[6])];
5172
+ item = this.treemap.layout.renderItems[parseFloat(targetId.split('_Item_Index_')[1])];
5168
5173
  var index = void 0;
5169
5174
  if (this.treemap.legendSettings.visible) {
5170
5175
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5171
5176
  var collection = this.treemap.treeMapLegendModule.legendCollections;
5172
5177
  var length_1 = this.treemap.treeMapLegendModule.legendCollections.length;
5173
5178
  index = getLegendIndex(length_1, item, treemap);
5174
- this.shapeElement = this.treemap.legendSettings.mode === 'Default' ? document.getElementById('container_Legend_Shape_Index_' + index) : document.getElementById('container_Legend_Index_' + index);
5179
+ this.shapeElement = this.treemap.legendSettings.mode === 'Default' ? document.getElementById(this.treemap.element.id + '_Legend_Shape_Index_' + index) : document.getElementById(this.treemap.element.id + '_Legend_Index_' + index);
5175
5180
  if (this.shapeElement !== null && (selectionModule ? this.shapeElement.getAttribute('id') !== selectionModule.legendSelectId : true)) {
5176
5181
  if (selectionModule ? this.shapeElement !== selectionModule.shapeElement : true) {
5177
5182
  this.currentElement.push({ currentElement: this.shapeElement });
@@ -5199,7 +5204,7 @@ var TreeMapHighlight = /** @__PURE__ @class */ (function () {
5199
5204
  for (var i = 0; i < treeMapElement.childElementCount; i++) {
5200
5205
  element = treeMapElement.childNodes[i];
5201
5206
  process = true;
5202
- item = treemap.layout.renderItems[element.id.split('_')[6]];
5207
+ item = treemap.layout.renderItems[parseFloat(element.id.split('_Item_Index_')[1])];
5203
5208
  for (var j = 0; j < selectionElements.length; j++) {
5204
5209
  if (element.id === selectionElements[j].id) {
5205
5210
  process = false;
@@ -5237,7 +5242,7 @@ var TreeMapHighlight = /** @__PURE__ @class */ (function () {
5237
5242
  removeLegend(this.legendHighlightCollection, 'highlight');
5238
5243
  }
5239
5244
  this.shapeTarget = 'highlight';
5240
- var index = this.treemap.legendSettings.mode === 'Default' ? parseFloat(targetId.split('_')[4]) : parseFloat(targetId.split('_')[3]);
5245
+ var index = this.treemap.legendSettings.mode === 'Default' ? parseFloat(targetId.split('_Legend_Shape_Index_')[1]) : parseFloat(targetId.split('_Legend_Index_')[1]);
5241
5246
  var dataLength = this.treemap.treeMapLegendModule.legendCollections[index]['legendData'].length;
5242
5247
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5243
5248
  var collection = this.treemap.treeMapLegendModule.legendCollections;
@@ -5247,7 +5252,7 @@ var TreeMapHighlight = /** @__PURE__ @class */ (function () {
5247
5252
  if (this.treemap.treeMapLegendModule.legendCollections[index]['legendData'][i]['levelOrderName'] === this.treemap.layout.renderItems[j]['levelOrderName']) {
5248
5253
  itemIndex = j;
5249
5254
  groupIndex = this.treemap.layout.renderItems[j]['groupIndex'];
5250
- var nodeEle = document.getElementById('container_Level_Index_' + groupIndex + '_Item_Index_' + itemIndex + '_RectPath');
5255
+ var nodeEle = document.getElementById(this.treemap.element.id + '_Level_Index_' + groupIndex + '_Item_Index_' + itemIndex + '_RectPath');
5251
5256
  if (i === 0) {
5252
5257
  this.legendHighlightCollection = [];
5253
5258
  pushCollection(this.legendHighlightCollection, legendIndex, j, targetEle, nodeEle, this.treemap.layout.renderItems, collection);
@@ -5330,7 +5335,7 @@ var TreeMapHighlight = /** @__PURE__ @class */ (function () {
5330
5335
  /**
5331
5336
  * Performing treemap selection
5332
5337
  */
5333
- var TreeMapSelection = /** @__PURE__ @class */ (function () {
5338
+ var TreeMapSelection = /** @class */ (function () {
5334
5339
  // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
5335
5340
  function TreeMapSelection(treeMap) {
5336
5341
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -5369,7 +5374,7 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5369
5374
  e.preventDefault();
5370
5375
  if (this.treemap.selectionId !== targetId && this.legendSelect) {
5371
5376
  treeMapElement = document.getElementById(layoutID);
5372
- item = treemap.layout.renderItems[parseFloat(targetId.split('_')[6])];
5377
+ item = treemap.layout.renderItems[parseFloat(targetId.split('_Item_Index_')[1])];
5373
5378
  var index = void 0;
5374
5379
  if (this.treemap.legendSettings.visible) {
5375
5380
  this.shapeSelect = false;
@@ -5383,7 +5388,7 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5383
5388
  highlightModule.shapeHighlightCollection = [];
5384
5389
  }
5385
5390
  index = getLegendIndex(length_3, item, treemap);
5386
- this.shapeElement = this.treemap.legendSettings.mode === 'Default' ? document.getElementById('container_Legend_Shape_Index_' + index) : document.getElementById('container_Legend_Index_' + index);
5391
+ this.shapeElement = this.treemap.legendSettings.mode === 'Default' ? document.getElementById(this.treemap.element.id + '_Legend_Shape_Index_' + index) : document.getElementById(this.treemap.element.id + '_Legend_Index_' + index);
5387
5392
  if (this.shapeElement !== null) {
5388
5393
  this.shapeSelectId = this.shapeElement.getAttribute('id');
5389
5394
  this.shapeSelectionCollection.push({ legendEle: this.shapeElement, oldFill: collection[index]['legendFill'],
@@ -5396,7 +5401,7 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5396
5401
  orders = findHightLightItems(item, [], selection.mode, treemap);
5397
5402
  for (var i = 0; i < treeMapElement.childElementCount; i++) {
5398
5403
  element = treeMapElement.childNodes[i];
5399
- item = treemap.layout.renderItems[element.id.split('_')[6]];
5404
+ item = treemap.layout.renderItems[parseFloat(element.id.split('_Item_Index_')[1])];
5400
5405
  if (orders.indexOf(item['levelOrderName']) > -1) {
5401
5406
  selectionElements.push(element);
5402
5407
  treemap.levelSelection.push(element.id);
@@ -5456,14 +5461,14 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5456
5461
  if (highlightModule) {
5457
5462
  highlightModule.shapeTarget = 'selection';
5458
5463
  }
5459
- var index = this.treemap.legendSettings.mode === 'Default' ? parseFloat(targetId.split('_')[4]) : parseFloat(targetId.split('_')[3]);
5464
+ var index = this.treemap.legendSettings.mode === 'Default' ? parseFloat(targetId.split('_Legend_Shape_Index_')[1]) : parseFloat(targetId.split('_Legend_Index_')[1]);
5460
5465
  var dataLength = this.treemap.treeMapLegendModule.legendCollections[index]['legendData'].length;
5461
5466
  for (var k = 0; k < dataLength; k++) {
5462
5467
  for (var l = 0; l < this.treemap.layout.renderItems.length; l++) {
5463
5468
  if (this.treemap.treeMapLegendModule.legendCollections[index]['legendData'][k]['levelOrderName'] === this.treemap.layout.renderItems[l]['levelOrderName']) {
5464
5469
  itemIndex = l;
5465
5470
  groupIndex = this.treemap.layout.renderItems[l]['groupIndex'];
5466
- var nodeEle = document.getElementById('container_Level_Index_' + groupIndex + '_Item_Index_' + itemIndex + '_RectPath');
5471
+ var nodeEle = document.getElementById(this.treemap.element.id + '_Level_Index_' + groupIndex + '_Item_Index_' + itemIndex + '_RectPath');
5467
5472
  if (k === 0) {
5468
5473
  pushCollection(this.legendSelectionCollection, legendIndex, l, targetEle_1, nodeEle, this.treemap.layout.renderItems, collection);
5469
5474
  length_4 = this.legendSelectionCollection.length;
@@ -5515,7 +5520,7 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5515
5520
  var orders = findHightLightItems(item, [], selection.mode, this.treemap);
5516
5521
  for (var i = 0; i < treeMapElement.childElementCount; i++) {
5517
5522
  element = treeMapElement.childNodes[i];
5518
- item = this.treemap.layout.renderItems[element.id.split('_')[6]];
5523
+ item = this.treemap.layout.renderItems[parseFloat(element.id.split('_Item_Index_')[1])];
5519
5524
  if (orders.indexOf(item['levelOrderName']) > -1) {
5520
5525
  selectionElements.push(element);
5521
5526
  this.treemap.levelSelection.push(element.id);
@@ -5531,7 +5536,7 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5531
5536
  this.shapeElement = undefined;
5532
5537
  removeShape(this.shapeSelectionCollection, 'selection');
5533
5538
  index = getLegendIndex(length_5, items[m], this.treemap);
5534
- this.shapeElement = this.treemap.legendSettings.mode === 'Default' ? document.getElementById('container_Legend_Shape_Index_' + index) : document.getElementById('container_Legend_Index_' + index);
5539
+ this.shapeElement = this.treemap.legendSettings.mode === 'Default' ? document.getElementById(this.treemap.element.id + '_Legend_Shape_Index_' + index) : document.getElementById(this.treemap.element.id + '_Legend_Index_' + index);
5535
5540
  if (this.shapeElement !== null) {
5536
5541
  this.shapeSelectId = this.shapeElement.getAttribute('id');
5537
5542
  this.treemap.legendId.push(this.shapeSelectId);
@@ -5622,19 +5627,19 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
5622
5627
  return TreeMapSelection;
5623
5628
  }());
5624
5629
 
5625
- var __rest = (undefined && undefined.__rest) || function (s, e) {
5626
- var t = {};
5627
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5628
- t[p] = s[p];
5629
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
5630
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
5631
- t[p[i]] = s[p[i]];
5632
- return t;
5633
- };
5630
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
5631
+ var t = {};
5632
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5633
+ t[p] = s[p];
5634
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
5635
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
5636
+ t[p[i]] = s[p[i]];
5637
+ return t;
5638
+ };
5634
5639
  /**
5635
5640
  * Render Tooltip
5636
5641
  */
5637
- var TreeMapTooltip = /** @__PURE__ @class */ (function () {
5642
+ var TreeMapTooltip = /** @class */ (function () {
5638
5643
  // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
5639
5644
  function TreeMapTooltip(treeMap) {
5640
5645
  this.treemap = treeMap;
@@ -5674,7 +5679,7 @@ var TreeMapTooltip = /** @__PURE__ @class */ (function () {
5674
5679
  var tooltipContent = [];
5675
5680
  var markerFill;
5676
5681
  if (targetId.indexOf('_Item_Index') > -1) {
5677
- item = this.treemap.layout.renderItems[parseFloat(targetId.split('_')[6])];
5682
+ item = this.treemap.layout.renderItems[parseFloat(targetId.split('_Item_Index_')[1])];
5678
5683
  if (!isNullOrUndefined(item)) {
5679
5684
  toolTipHeader = item['name'];
5680
5685
  value = item['weight'];
@@ -5754,6 +5759,10 @@ var TreeMapTooltip = /** @__PURE__ @class */ (function () {
5754
5759
  textStyle: args['textStyle'],
5755
5760
  fill: this.treemap.tooltipSettings.fill ? this.treemap.tooltipSettings.fill : this.treemap.themeStyle.tooltipFillColor
5756
5761
  });
5762
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
5763
+ if (this.treemap.isVue || this.treemap.isVue3) {
5764
+ this.svgTooltip.controlInstance = this.treemap;
5765
+ }
5757
5766
  this.svgTooltip.opacity = this.treemap.themeStyle.tooltipFillOpacity || this.svgTooltip.opacity;
5758
5767
  this.svgTooltip.appendTo(tooltipEle);
5759
5768
  // eslint-disable-next-line @typescript-eslint/no-explicit-any