@syncfusion/ej2-treemap 24.1.41 → 25.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/ej2-treemap.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-treemap.es2015.js +38 -12
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +38 -12
- 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 +11 -11
- package/src/treemap/layout/legend.js +9 -4
- package/src/treemap/treemap.js +29 -8
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -72
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -49
|
@@ -3458,7 +3458,7 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
3458
3458
|
var titleBounds = new Rect(location_1.x, location_1.y, elementSize.width, elementSize.height);
|
|
3459
3459
|
var element = renderTextElement(options, style, style.color || (type === 'title' ? this.themeStyle.titleFontColor : this.themeStyle.subTitleFontColor), groupEle);
|
|
3460
3460
|
element.setAttribute('aria-label', title.description || title.text);
|
|
3461
|
-
element.setAttribute('role', '');
|
|
3461
|
+
element.setAttribute('role', 'region');
|
|
3462
3462
|
element.setAttribute('tabindex', this.tabIndex.toString());
|
|
3463
3463
|
if ((type === 'title' && !title.subtitleSettings.text) || (type === 'subtitle')) {
|
|
3464
3464
|
height = (this.availableSize.height - titleBounds.y - titlePadding - this.margin.bottom);
|
|
@@ -4284,43 +4284,50 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
4284
4284
|
if (this.tooltipSettings.visible) {
|
|
4285
4285
|
modules.push({
|
|
4286
4286
|
member: 'treeMapTooltip',
|
|
4287
|
-
args: [this]
|
|
4287
|
+
args: [this],
|
|
4288
|
+
name: 'TreeMapTooltip'
|
|
4288
4289
|
});
|
|
4289
4290
|
}
|
|
4290
4291
|
if (this.highlightSettings.enable) {
|
|
4291
4292
|
modules.push({
|
|
4292
4293
|
member: 'treeMapHighlight',
|
|
4293
|
-
args: [this]
|
|
4294
|
+
args: [this],
|
|
4295
|
+
name: 'TreeMapHighlight'
|
|
4294
4296
|
});
|
|
4295
4297
|
}
|
|
4296
4298
|
if (this.selectionSettings.enable) {
|
|
4297
4299
|
modules.push({
|
|
4298
4300
|
member: 'treeMapSelection',
|
|
4299
|
-
args: [this]
|
|
4301
|
+
args: [this],
|
|
4302
|
+
name: 'TreeMapSelection'
|
|
4300
4303
|
});
|
|
4301
4304
|
}
|
|
4302
4305
|
if (this.legendSettings.visible) {
|
|
4303
4306
|
modules.push({
|
|
4304
4307
|
member: 'treeMapLegend',
|
|
4305
|
-
args: [this]
|
|
4308
|
+
args: [this],
|
|
4309
|
+
name: 'TreeMapLegend'
|
|
4306
4310
|
});
|
|
4307
4311
|
}
|
|
4308
4312
|
if (this.allowPrint) {
|
|
4309
4313
|
modules.push({
|
|
4310
4314
|
member: 'Print',
|
|
4311
|
-
args: [this, Print]
|
|
4315
|
+
args: [this, Print],
|
|
4316
|
+
name: 'Print'
|
|
4312
4317
|
});
|
|
4313
4318
|
}
|
|
4314
4319
|
if (this.allowImageExport) {
|
|
4315
4320
|
modules.push({
|
|
4316
4321
|
member: 'ImageExport',
|
|
4317
|
-
args: [this, ImageExport]
|
|
4322
|
+
args: [this, ImageExport],
|
|
4323
|
+
name: 'ImageExport'
|
|
4318
4324
|
});
|
|
4319
4325
|
}
|
|
4320
4326
|
if (this.allowPdfExport) {
|
|
4321
4327
|
modules.push({
|
|
4322
4328
|
member: 'PdfExport',
|
|
4323
|
-
args: [this, PdfExport]
|
|
4329
|
+
args: [this, PdfExport],
|
|
4330
|
+
name: 'PdfExport'
|
|
4324
4331
|
});
|
|
4325
4332
|
}
|
|
4326
4333
|
return modules;
|
|
@@ -4382,6 +4389,20 @@ var TreeMap = /** @__PURE__ @class */ (function (_super) {
|
|
|
4382
4389
|
this.legendId = [];
|
|
4383
4390
|
this.removeSvg();
|
|
4384
4391
|
_super.prototype.destroy.call(this);
|
|
4392
|
+
this.areaRect = null;
|
|
4393
|
+
this.themeStyle = null;
|
|
4394
|
+
this.totalRect = null;
|
|
4395
|
+
this.drilledLegendItems = null;
|
|
4396
|
+
this.doubleTapTimer = null;
|
|
4397
|
+
this.treemapLevelData = null;
|
|
4398
|
+
this.resizeEvent = null;
|
|
4399
|
+
this.availableSize = null;
|
|
4400
|
+
this.intl = null;
|
|
4401
|
+
if (!isNullOrUndefined(this.layout)) {
|
|
4402
|
+
this.layout.destroy();
|
|
4403
|
+
}
|
|
4404
|
+
this.layout = null;
|
|
4405
|
+
this.renderer = null;
|
|
4385
4406
|
};
|
|
4386
4407
|
TreeMap.prototype.removeSvg = function () {
|
|
4387
4408
|
removeElement(this.element.id + '_Secondary_Element');
|
|
@@ -5287,7 +5308,9 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5287
5308
|
'text-anchor': 'middle',
|
|
5288
5309
|
'transform': '',
|
|
5289
5310
|
'opacity': 1,
|
|
5290
|
-
'dominant-baseline': ''
|
|
5311
|
+
'dominant-baseline': '',
|
|
5312
|
+
'role': 'region',
|
|
5313
|
+
'aria-label': pagingText
|
|
5291
5314
|
};
|
|
5292
5315
|
pagingGroup.appendChild(render.createText(pageTextOptions, pagingText));
|
|
5293
5316
|
this.legendGroup.appendChild(pagingGroup);
|
|
@@ -5323,7 +5346,9 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5323
5346
|
var textSize = measureText(trimTitle, textStyle);
|
|
5324
5347
|
if (legendTitle) {
|
|
5325
5348
|
textOptions = new TextOption(this.treemap.element.id + '_LegendTitle', (this.legendItemRect.x) + (this.legendItemRect.width / 2), this.legendItemRect.y - (textSize.height / 2) - (spacing / 2), 'middle', trimTitle, '');
|
|
5326
|
-
renderTextElement(textOptions, textStyle, textStyle.color || this.treemap.themeStyle.legendTitleColor, this.legendGroup);
|
|
5349
|
+
var textElement = renderTextElement(textOptions, textStyle, textStyle.color || this.treemap.themeStyle.legendTitleColor, this.legendGroup);
|
|
5350
|
+
textElement.setAttribute('role', 'region');
|
|
5351
|
+
textElement.setAttribute('aria-label', legendTitle);
|
|
5327
5352
|
}
|
|
5328
5353
|
};
|
|
5329
5354
|
/**
|
|
@@ -5557,6 +5582,8 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5557
5582
|
* @private
|
|
5558
5583
|
*/
|
|
5559
5584
|
TreeMapLegend.prototype.destroy = function () {
|
|
5585
|
+
clearTimeout(this.clearTimeout);
|
|
5586
|
+
this.clearTimeout = null;
|
|
5560
5587
|
this.legendRenderingCollections = [];
|
|
5561
5588
|
this.legendCollections = [];
|
|
5562
5589
|
this.outOfRangeLegend = null;
|
|
@@ -5570,8 +5597,7 @@ var TreeMapLegend = /** @__PURE__ @class */ (function () {
|
|
|
5570
5597
|
this.legendInteractiveGradient = [];
|
|
5571
5598
|
this.legendItemRect = null;
|
|
5572
5599
|
this.removeEventListener();
|
|
5573
|
-
|
|
5574
|
-
//this.treemap = null;
|
|
5600
|
+
this.treemap = null;
|
|
5575
5601
|
};
|
|
5576
5602
|
/**
|
|
5577
5603
|
* Get the gradient color for interactive legend.
|