@syncfusion/ej2-treemap 20.2.45 → 20.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -6
- package/dist/ej2-treemap.min.js +10 -0
- package/dist/ej2-treemap.umd.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-treemap.es2015.js +135 -100
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +136 -104
- package/dist/es6/ej2-treemap.es5.js.map +1 -1
- package/dist/global/ej2-treemap.min.js +2 -2
- package/dist/global/ej2-treemap.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +13 -13
- package/src/treemap/layout/legend.d.ts +1 -2
- package/src/treemap/layout/legend.js +15 -5
- package/src/treemap/layout/render-panel.d.ts +6 -0
- package/src/treemap/layout/render-panel.js +14 -0
- package/src/treemap/model/image-export.d.ts +2 -4
- package/src/treemap/model/image-export.js +6 -11
- package/src/treemap/model/pdf-export.d.ts +3 -5
- package/src/treemap/model/pdf-export.js +9 -14
- package/src/treemap/model/print.d.ts +4 -7
- package/src/treemap/model/print.js +12 -19
- package/src/treemap/treemap.js +60 -47
- package/src/treemap/user-interaction/highlight-selection.d.ts +2 -3
- package/src/treemap/user-interaction/highlight-selection.js +11 -3
- package/src/treemap/user-interaction/tooltip.d.ts +1 -2
- package/src/treemap/user-interaction/tooltip.js +10 -6
|
@@ -2213,6 +2213,7 @@ var LayoutPanel = /** @__PURE__ @class */ (function () {
|
|
|
2213
2213
|
}
|
|
2214
2214
|
}
|
|
2215
2215
|
itemGroup.setAttribute('aria-label', item['name']);
|
|
2216
|
+
itemGroup.setAttribute('role', '');
|
|
2216
2217
|
itemGroup.setAttribute('tabindex', (_this.treemap.tabIndex + i + 2).toString());
|
|
2217
2218
|
maintainSelection(_this.treemap, itemGroup, 'treeMapSelection');
|
|
2218
2219
|
_this.layoutGroup.appendChild(itemGroup);
|
|
@@ -2381,6 +2382,19 @@ var LayoutPanel = /** @__PURE__ @class */ (function () {
|
|
|
2381
2382
|
}
|
|
2382
2383
|
return textValue;
|
|
2383
2384
|
};
|
|
2385
|
+
/**
|
|
2386
|
+
*
|
|
2387
|
+
* @returns {void}
|
|
2388
|
+
* @private
|
|
2389
|
+
*/
|
|
2390
|
+
LayoutPanel.prototype.destroy = function () {
|
|
2391
|
+
this.treemap = null;
|
|
2392
|
+
this.currentRect = null;
|
|
2393
|
+
this.layoutGroup = null;
|
|
2394
|
+
this.renderer = null;
|
|
2395
|
+
this.renderItems = [];
|
|
2396
|
+
this.parentData = [];
|
|
2397
|
+
};
|
|
2384
2398
|
return LayoutPanel;
|
|
2385
2399
|
}());
|
|
2386
2400
|
|
|
@@ -2613,7 +2627,6 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
2613
2627
|
*/
|
|
2614
2628
|
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
2615
2629
|
function Print(control) {
|
|
2616
|
-
this.control = control;
|
|
2617
2630
|
}
|
|
2618
2631
|
/**
|
|
2619
2632
|
* This method is used to perform the print functionality in treemap.
|
|
@@ -2622,17 +2635,16 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
2622
2635
|
* @returns {void}
|
|
2623
2636
|
* @private
|
|
2624
2637
|
*/
|
|
2625
|
-
Print.prototype.print = function (elements) {
|
|
2626
|
-
var
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
this.printWindow.resizeTo(screen.availWidth, screen.availHeight);
|
|
2638
|
+
Print.prototype.print = function (treeMap, elements) {
|
|
2639
|
+
var printWindow = window.open('', 'print', 'height=' + window.outerHeight + ',width=' + window.outerWidth + ',tabbar=no');
|
|
2640
|
+
printWindow.moveTo(0, 0);
|
|
2641
|
+
printWindow.resizeTo(screen.availWidth, screen.availHeight);
|
|
2630
2642
|
var argsData = {
|
|
2631
|
-
cancel: false, htmlContent: this.getHTMLContent(elements), name: beforePrint
|
|
2643
|
+
cancel: false, htmlContent: this.getHTMLContent(treeMap, elements), name: beforePrint
|
|
2632
2644
|
};
|
|
2633
|
-
|
|
2645
|
+
treeMap.trigger(beforePrint, argsData, function () {
|
|
2634
2646
|
if (!argsData.cancel) {
|
|
2635
|
-
print(argsData.htmlContent,
|
|
2647
|
+
print(argsData.htmlContent, printWindow);
|
|
2636
2648
|
}
|
|
2637
2649
|
});
|
|
2638
2650
|
};
|
|
@@ -2643,7 +2655,7 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
2643
2655
|
* @returns {Element} - Returns the element
|
|
2644
2656
|
* @private
|
|
2645
2657
|
*/
|
|
2646
|
-
Print.prototype.getHTMLContent = function (elements) {
|
|
2658
|
+
Print.prototype.getHTMLContent = function (treeMap, elements) {
|
|
2647
2659
|
var div = createElement('div');
|
|
2648
2660
|
if (elements) {
|
|
2649
2661
|
if (elements instanceof Array) {
|
|
@@ -2659,7 +2671,7 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
2659
2671
|
}
|
|
2660
2672
|
}
|
|
2661
2673
|
else {
|
|
2662
|
-
div.appendChild(
|
|
2674
|
+
div.appendChild(treeMap.element.cloneNode(true));
|
|
2663
2675
|
}
|
|
2664
2676
|
return div;
|
|
2665
2677
|
};
|
|
@@ -2673,17 +2685,12 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
2673
2685
|
return 'Print';
|
|
2674
2686
|
};
|
|
2675
2687
|
/**
|
|
2676
|
-
* To destroy the
|
|
2688
|
+
* To destroy the Print module.
|
|
2677
2689
|
*
|
|
2678
|
-
* @param {TreeMap} treemap - Specifies the treemap instance
|
|
2679
2690
|
* @returns {void}
|
|
2680
2691
|
* @private
|
|
2681
2692
|
*/
|
|
2682
|
-
Print.prototype.destroy = function (
|
|
2683
|
-
/**
|
|
2684
|
-
* Destroy method performed here
|
|
2685
|
-
*/
|
|
2686
|
-
};
|
|
2693
|
+
Print.prototype.destroy = function () { };
|
|
2687
2694
|
return Print;
|
|
2688
2695
|
}());
|
|
2689
2696
|
|
|
@@ -2700,7 +2707,6 @@ var ImageExport = /** @__PURE__ @class */ (function () {
|
|
|
2700
2707
|
*/
|
|
2701
2708
|
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
2702
2709
|
function ImageExport(control) {
|
|
2703
|
-
this.control = control;
|
|
2704
2710
|
}
|
|
2705
2711
|
/**
|
|
2706
2712
|
* This method is used to perform the export functionality for the rendered treemap.
|
|
@@ -2711,23 +2717,22 @@ var ImageExport = /** @__PURE__ @class */ (function () {
|
|
|
2711
2717
|
* @returns {Promise} - Returns the promise string.
|
|
2712
2718
|
* @private
|
|
2713
2719
|
*/
|
|
2714
|
-
ImageExport.prototype.export = function (type, fileName, allowDownload) {
|
|
2715
|
-
var _this = this;
|
|
2720
|
+
ImageExport.prototype.export = function (treeMap, type, fileName, allowDownload) {
|
|
2716
2721
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2717
2722
|
var promise = new Promise(function (resolve, reject) {
|
|
2718
2723
|
var element = createElement('canvas', {
|
|
2719
2724
|
id: 'ej2-canvas',
|
|
2720
2725
|
attrs: {
|
|
2721
|
-
'height':
|
|
2722
|
-
'width':
|
|
2726
|
+
'height': treeMap.availableSize.height.toString(),
|
|
2727
|
+
'width': treeMap.availableSize.width.toString()
|
|
2723
2728
|
}
|
|
2724
2729
|
});
|
|
2725
2730
|
var isDownload = !(Browser.userAgent.toString().indexOf('HeadlessChrome') > -1);
|
|
2726
2731
|
var svgData = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">' +
|
|
2727
|
-
|
|
2732
|
+
treeMap.svgObject.outerHTML +
|
|
2728
2733
|
'</svg>';
|
|
2729
2734
|
var url = window.URL.createObjectURL(new Blob(type === 'SVG' ? [svgData] :
|
|
2730
|
-
[(new XMLSerializer()).serializeToString(
|
|
2735
|
+
[(new XMLSerializer()).serializeToString(treeMap.svgObject)], { type: 'image/svg+xml' }));
|
|
2731
2736
|
if (type === 'SVG') {
|
|
2732
2737
|
if (allowDownload) {
|
|
2733
2738
|
triggerDownload(fileName, type, url, isDownload);
|
|
@@ -2766,13 +2771,10 @@ var ImageExport = /** @__PURE__ @class */ (function () {
|
|
|
2766
2771
|
/**
|
|
2767
2772
|
* To destroy the ImageExport.
|
|
2768
2773
|
*
|
|
2769
|
-
* @param {TreeMap} treemap - Specifies the instance of the treemap.
|
|
2770
2774
|
* @returns {void}
|
|
2771
2775
|
* @private
|
|
2772
2776
|
*/
|
|
2773
|
-
ImageExport.prototype.destroy = function (
|
|
2774
|
-
// Destroy method performed here
|
|
2775
|
-
};
|
|
2777
|
+
ImageExport.prototype.destroy = function () { };
|
|
2776
2778
|
return ImageExport;
|
|
2777
2779
|
}());
|
|
2778
2780
|
|
|
@@ -2789,7 +2791,6 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
2789
2791
|
*/
|
|
2790
2792
|
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
2791
2793
|
function PdfExport(control) {
|
|
2792
|
-
this.control = control;
|
|
2793
2794
|
}
|
|
2794
2795
|
/**
|
|
2795
2796
|
* This method is used to perform the export functionality for the rendered treemap.
|
|
@@ -2801,25 +2802,24 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
2801
2802
|
* @returns {Promise} - Returns the string.
|
|
2802
2803
|
* @private
|
|
2803
2804
|
*/
|
|
2804
|
-
PdfExport.prototype.export = function (type, fileName, orientation, allowDownload) {
|
|
2805
|
-
var _this = this;
|
|
2805
|
+
PdfExport.prototype.export = function (treeMap, type, fileName, orientation, allowDownload) {
|
|
2806
2806
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2807
2807
|
var promise = new Promise(function (resolve, reject) {
|
|
2808
2808
|
var element = createElement('canvas', {
|
|
2809
2809
|
id: 'ej2-canvas',
|
|
2810
2810
|
attrs: {
|
|
2811
|
-
'width':
|
|
2812
|
-
'height':
|
|
2811
|
+
'width': treeMap.availableSize.width.toString(),
|
|
2812
|
+
'height': treeMap.availableSize.height.toString()
|
|
2813
2813
|
}
|
|
2814
2814
|
});
|
|
2815
2815
|
var isDownload = !(Browser.userAgent.toString().indexOf('HeadlessChrome') > -1);
|
|
2816
2816
|
orientation = isNullOrUndefined(orientation) ? PdfPageOrientation.Landscape : orientation;
|
|
2817
|
-
var exportElement =
|
|
2817
|
+
var exportElement = treeMap.svgObject.cloneNode(true);
|
|
2818
2818
|
var backgroundElement = exportElement.childNodes[0];
|
|
2819
2819
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
2820
2820
|
var backgroundColor = backgroundElement.getAttribute('fill');
|
|
2821
|
-
if ((
|
|
2822
|
-
||
|
|
2821
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Bootstrap5Dark'
|
|
2822
|
+
|| treeMap.theme === 'Fluent' || treeMap.theme === 'FluentDark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
2823
2823
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
2824
2824
|
}
|
|
2825
2825
|
}
|
|
@@ -2833,7 +2833,7 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
2833
2833
|
var imageString = element.toDataURL('image/jpeg').replace('image/jpeg', 'image/octet-stream');
|
|
2834
2834
|
document.pageSettings.orientation = orientation;
|
|
2835
2835
|
imageString = imageString.slice(imageString.indexOf(',') + 1);
|
|
2836
|
-
document.pages.add().graphics.drawImage(new PdfBitmap(imageString), 0, 0, (
|
|
2836
|
+
document.pages.add().graphics.drawImage(new PdfBitmap(imageString), 0, 0, (treeMap.availableSize.width - 60), treeMap.availableSize.height);
|
|
2837
2837
|
if (allowDownload) {
|
|
2838
2838
|
document.save(fileName + '.pdf');
|
|
2839
2839
|
document.destroy();
|
|
@@ -2851,15 +2851,12 @@ var PdfExport = /** @__PURE__ @class */ (function () {
|
|
|
2851
2851
|
return 'PdfExport';
|
|
2852
2852
|
};
|
|
2853
2853
|
/**
|
|
2854
|
-
* To destroy the
|
|
2854
|
+
* To destroy the PdfExport.
|
|
2855
2855
|
*
|
|
2856
|
-
* @param {TreeMap} treemap - Specifies the treemap instance.
|
|
2857
2856
|
* @returns {void}
|
|
2858
2857
|
* @private
|
|
2859
2858
|
*/
|
|
2860
|
-
PdfExport.prototype.destroy = function (
|
|
2861
|
-
// Destroy method performed here
|
|
2862
|
-
};
|
|
2859
|
+
PdfExport.prototype.destroy = function () { };
|
|
2863
2860
|
return PdfExport;
|
|
2864
2861
|
}());
|
|
2865
2862
|
|
|
@@ -3002,6 +2999,12 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3002
2999
|
remove(this.svgObject);
|
|
3003
3000
|
}
|
|
3004
3001
|
}
|
|
3002
|
+
if (isNullOrUndefined(this.renderer)) {
|
|
3003
|
+
this.renderer = new SvgRenderer(this.element.id);
|
|
3004
|
+
}
|
|
3005
|
+
if (isNullOrUndefined(this.layout)) {
|
|
3006
|
+
this.layout = new LayoutPanel(this);
|
|
3007
|
+
}
|
|
3005
3008
|
this.clearTemplate();
|
|
3006
3009
|
var containerWidth = this.element.clientWidth;
|
|
3007
3010
|
var containerHeight = this.element.clientHeight;
|
|
@@ -3084,6 +3087,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3084
3087
|
var titleBounds = new Rect(location_1.x, location_1.y, elementSize.width, elementSize.height);
|
|
3085
3088
|
var element = renderTextElement(options, style, style.color || (type === 'title' ? this.themeStyle.titleFontColor : this.themeStyle.subTitleFontColor), groupEle);
|
|
3086
3089
|
element.setAttribute('aria-label', title.description || title.text);
|
|
3090
|
+
element.setAttribute('role', '');
|
|
3087
3091
|
element.setAttribute('tabindex', (this.tabIndex + (type === 'title' ? 1 : 2)).toString());
|
|
3088
3092
|
if ((type === 'title' && !title.subtitleSettings.text) || (type === 'subtitle')) {
|
|
3089
3093
|
height = (this.availableSize.height - titleBounds.y - titlePadding - this.margin.bottom);
|
|
@@ -3258,7 +3262,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3258
3262
|
*/
|
|
3259
3263
|
TreeMap.prototype.print = function (id) {
|
|
3260
3264
|
if (this.allowPrint && this.printModule) {
|
|
3261
|
-
this.printModule.print(id);
|
|
3265
|
+
this.printModule.print(this, id);
|
|
3262
3266
|
}
|
|
3263
3267
|
};
|
|
3264
3268
|
/**
|
|
@@ -3276,13 +3280,13 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3276
3280
|
if (type === 'PDF' && this.allowPdfExport && this.pdfExportModule) {
|
|
3277
3281
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3278
3282
|
return new Promise(function (resolve, reject) {
|
|
3279
|
-
resolve(_this.pdfExportModule.export(type, fileName, orientation, allowDownload));
|
|
3283
|
+
resolve(_this.pdfExportModule.export(_this, type, fileName, orientation, allowDownload));
|
|
3280
3284
|
});
|
|
3281
3285
|
}
|
|
3282
3286
|
else if (this.allowImageExport && (type !== 'PDF') && this.imageExportModule) {
|
|
3283
3287
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3284
3288
|
return new Promise(function (resolve, reject) {
|
|
3285
|
-
resolve(_this.imageExportModule.export(type, fileName, allowDownload));
|
|
3289
|
+
resolve(_this.imageExportModule.export(_this, type, fileName, allowDownload));
|
|
3286
3290
|
});
|
|
3287
3291
|
}
|
|
3288
3292
|
return null;
|
|
@@ -3453,6 +3457,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3453
3457
|
*/
|
|
3454
3458
|
TreeMap.prototype.addTabIndex = function () {
|
|
3455
3459
|
this.element.setAttribute('aria-label', this.description || 'TreeMap Element');
|
|
3460
|
+
this.element.setAttribute('role', '');
|
|
3456
3461
|
this.element.setAttribute('tabindex', this.tabIndex.toString());
|
|
3457
3462
|
};
|
|
3458
3463
|
/**
|
|
@@ -3462,28 +3467,30 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3462
3467
|
*/
|
|
3463
3468
|
TreeMap.prototype.resizeOnTreeMap = function (e) {
|
|
3464
3469
|
var _this = this;
|
|
3465
|
-
this.
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
this.
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
_this.
|
|
3485
|
-
|
|
3486
|
-
|
|
3470
|
+
if (!this.isDestroyed) {
|
|
3471
|
+
this.isResize = true;
|
|
3472
|
+
var args_1 = {
|
|
3473
|
+
name: resize,
|
|
3474
|
+
cancel: false,
|
|
3475
|
+
previousSize: this.availableSize,
|
|
3476
|
+
currentSize: new Size(0, 0),
|
|
3477
|
+
treemap: this
|
|
3478
|
+
};
|
|
3479
|
+
if (this.resizeTo) {
|
|
3480
|
+
clearTimeout(this.resizeTo);
|
|
3481
|
+
}
|
|
3482
|
+
if (!isNullOrUndefined(this.element) && this.element.classList.contains('e-treemap')) {
|
|
3483
|
+
this.resizeTo = setTimeout(function () {
|
|
3484
|
+
_this.unWireEVents();
|
|
3485
|
+
_this.createSvg();
|
|
3486
|
+
_this.refreshing = true;
|
|
3487
|
+
_this.wireEVents();
|
|
3488
|
+
args_1.currentSize = _this.availableSize;
|
|
3489
|
+
_this.trigger(resize, args_1, function (observedArgs) {
|
|
3490
|
+
_this.render();
|
|
3491
|
+
});
|
|
3492
|
+
}, 500);
|
|
3493
|
+
}
|
|
3487
3494
|
}
|
|
3488
3495
|
};
|
|
3489
3496
|
/**
|
|
@@ -3917,29 +3924,31 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3917
3924
|
* @private
|
|
3918
3925
|
*/
|
|
3919
3926
|
TreeMap.prototype.onPropertyChanged = function (newProp, oldProp) {
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
var
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3927
|
+
if (!this.isDestroyed) {
|
|
3928
|
+
var render = false;
|
|
3929
|
+
for (var _i = 0, _a = Object.keys(newProp); _i < _a.length; _i++) {
|
|
3930
|
+
var prop = _a[_i];
|
|
3931
|
+
switch (prop) {
|
|
3932
|
+
case 'background':
|
|
3933
|
+
this.renderBorder();
|
|
3934
|
+
break;
|
|
3935
|
+
case 'height':
|
|
3936
|
+
case 'width':
|
|
3937
|
+
case 'layoutType':
|
|
3938
|
+
case 'levels':
|
|
3939
|
+
case 'drillDownView':
|
|
3940
|
+
case 'renderDirection':
|
|
3941
|
+
case 'leafItemSettings':
|
|
3942
|
+
case 'legendSettings':
|
|
3943
|
+
case 'dataSource':
|
|
3944
|
+
render = true;
|
|
3945
|
+
break;
|
|
3946
|
+
}
|
|
3947
|
+
}
|
|
3948
|
+
if (render) {
|
|
3949
|
+
this.createSvg();
|
|
3950
|
+
this.renderElements();
|
|
3938
3951
|
}
|
|
3939
|
-
}
|
|
3940
|
-
if (render) {
|
|
3941
|
-
this.createSvg();
|
|
3942
|
-
this.renderElements();
|
|
3943
3952
|
}
|
|
3944
3953
|
};
|
|
3945
3954
|
/**
|
|
@@ -3953,6 +3962,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3953
3962
|
*/
|
|
3954
3963
|
TreeMap.prototype.destroy = function () {
|
|
3955
3964
|
this.unWireEVents();
|
|
3965
|
+
removeElement('treeMapMeasureText');
|
|
3956
3966
|
this.drilledItems = [];
|
|
3957
3967
|
this.levelSelection = [];
|
|
3958
3968
|
this.legendId = [];
|
|
@@ -5098,15 +5108,25 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5098
5108
|
/**
|
|
5099
5109
|
* To destroy the legend.
|
|
5100
5110
|
*
|
|
5101
|
-
* @param {TreeMap} treemap - Specifies treemap instance
|
|
5102
5111
|
* @returns {void}
|
|
5103
5112
|
* @private
|
|
5104
5113
|
*/
|
|
5105
|
-
TreeMapLegend.prototype.destroy = function (
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5114
|
+
TreeMapLegend.prototype.destroy = function () {
|
|
5115
|
+
this.legendRenderingCollections = [];
|
|
5116
|
+
this.legendCollections = [];
|
|
5117
|
+
this.outOfRangeLegend = null;
|
|
5118
|
+
this.totalPages = [];
|
|
5119
|
+
this.translate = null;
|
|
5120
|
+
this.legendBorderRect = null;
|
|
5121
|
+
this.legendGroup = null;
|
|
5122
|
+
this.legendNames = [];
|
|
5123
|
+
this.defsElement = null;
|
|
5124
|
+
this.legendLinearGradient = null;
|
|
5125
|
+
this.legendInteractiveGradient = [];
|
|
5126
|
+
this.legendItemRect = null;
|
|
5109
5127
|
this.removeEventListener();
|
|
5128
|
+
//TODO: The removeInteractivePointer method (calling method) is called in a timer in the mouseUpHandler method. Because of this handling, adding the below code results in a spec failure.
|
|
5129
|
+
//this.treemap = null;
|
|
5110
5130
|
};
|
|
5111
5131
|
// eslint-disable-next-line valid-jsdoc
|
|
5112
5132
|
/**
|
|
@@ -5342,12 +5362,16 @@ var TreeMapHighlight = /** @__PURE__ @class */ (function () {
|
|
|
5342
5362
|
/**
|
|
5343
5363
|
* To destroy the hightlight.
|
|
5344
5364
|
*
|
|
5345
|
-
* @param {TreeMap} treeMap - Specifies the instance of the treemap.
|
|
5346
5365
|
* @returns {void}
|
|
5347
5366
|
* @private
|
|
5348
5367
|
*/
|
|
5349
|
-
TreeMapHighlight.prototype.destroy = function (
|
|
5368
|
+
TreeMapHighlight.prototype.destroy = function () {
|
|
5369
|
+
this.shapeElement = null;
|
|
5370
|
+
this.shapeHighlightCollection = [];
|
|
5371
|
+
this.legendHighlightCollection = [];
|
|
5372
|
+
this.currentElement = [];
|
|
5350
5373
|
this.removeEventListener();
|
|
5374
|
+
this.treemap = null;
|
|
5351
5375
|
};
|
|
5352
5376
|
return TreeMapHighlight;
|
|
5353
5377
|
}());
|
|
@@ -5640,8 +5664,12 @@ var TreeMapSelection = /** @__PURE__ @class */ (function () {
|
|
|
5640
5664
|
* @returns {void}
|
|
5641
5665
|
* @private
|
|
5642
5666
|
*/
|
|
5643
|
-
TreeMapSelection.prototype.destroy = function (
|
|
5667
|
+
TreeMapSelection.prototype.destroy = function () {
|
|
5668
|
+
this.shapeElement = null;
|
|
5669
|
+
this.shapeSelectionCollection = [];
|
|
5670
|
+
this.legendSelectionCollection = [];
|
|
5644
5671
|
this.removeEventListener();
|
|
5672
|
+
this.treemap = null;
|
|
5645
5673
|
};
|
|
5646
5674
|
return TreeMapSelection;
|
|
5647
5675
|
}());
|
|
@@ -5703,7 +5731,9 @@ var TreeMapTooltip = /** @__PURE__ @class */ (function () {
|
|
|
5703
5731
|
toolTipHeader = item['name'];
|
|
5704
5732
|
value = item['weight'];
|
|
5705
5733
|
toolTipData = item['data'];
|
|
5706
|
-
|
|
5734
|
+
if (!isNullOrUndefined(item['options'])) {
|
|
5735
|
+
markerFill = item['options']['fill'];
|
|
5736
|
+
}
|
|
5707
5737
|
if (this.treemap.enableRtl) {
|
|
5708
5738
|
tooltipContent = [textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) ||
|
|
5709
5739
|
formatValue(value, this.treemap) + ' : ' + this.treemap.weightValuePath.toString()];
|
|
@@ -5837,15 +5867,17 @@ var TreeMapTooltip = /** @__PURE__ @class */ (function () {
|
|
|
5837
5867
|
/**
|
|
5838
5868
|
* To destroy the tooltip.
|
|
5839
5869
|
*
|
|
5840
|
-
* @param {TreeMap} treeMap - Specifies the instance of the treemap
|
|
5841
5870
|
* @returns {void}
|
|
5842
5871
|
* @private
|
|
5843
5872
|
*/
|
|
5844
|
-
TreeMapTooltip.prototype.destroy = function (
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5873
|
+
TreeMapTooltip.prototype.destroy = function () {
|
|
5874
|
+
if (!isNullOrUndefined(this.svgTooltip)) {
|
|
5875
|
+
this.svgTooltip.destroy();
|
|
5876
|
+
}
|
|
5877
|
+
this.svgTooltip = null;
|
|
5878
|
+
this.tooltipSettings = null;
|
|
5848
5879
|
this.removeEventListener();
|
|
5880
|
+
this.treemap = null;
|
|
5849
5881
|
};
|
|
5850
5882
|
return TreeMapTooltip;
|
|
5851
5883
|
}());
|