@syncfusion/ej2-treemap 25.1.35 → 26.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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 25.1.35
3
+ * version : 26.1.35
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "_from": "@syncfusion/ej2-treemap@*",
3
3
  "_id": "@syncfusion/ej2-treemap@16.31.24",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-M7wDWdumPsBh/y8Gu2LFXBbVkACeJ7mBkOQpbx4p/sTEox27aAS8IYQcbHWHIlgluXzY9hZxQGJ0VBW7wZsIfA==",
5
+ "_integrity": "sha512-b/dFOdJGVefu4RMoPpY+rfnAQDaAllqX5mAkRftg/H/F4qazDrvrccaastX2enGhjyzgxSSLKEPnkcH2PUoEbQ==",
6
6
  "_location": "/@syncfusion/ej2-treemap",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -24,9 +24,9 @@
24
24
  "/@syncfusion/ej2-vue-treemap"
25
25
  ],
26
26
  "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-release/@syncfusion/ej2-treemap/-/ej2-treemap-16.31.24.tgz",
27
- "_shasum": "d048a4830bb8785823ecf0f51980fc3fac6f4c22",
27
+ "_shasum": "09d0f241172187e28742b8bf186b0671f1664d1f",
28
28
  "_spec": "@syncfusion/ej2-treemap@*",
29
- "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
29
+ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
30
30
  "author": {
31
31
  "name": "Syncfusion Inc."
32
32
  },
@@ -35,12 +35,12 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~25.1.35",
39
- "@syncfusion/ej2-compression": "~25.1.35",
40
- "@syncfusion/ej2-data": "~25.1.35",
41
- "@syncfusion/ej2-file-utils": "~25.1.35",
42
- "@syncfusion/ej2-pdf-export": "~25.1.35",
43
- "@syncfusion/ej2-svg-base": "~25.1.35"
38
+ "@syncfusion/ej2-base": "~26.1.35",
39
+ "@syncfusion/ej2-compression": "~26.1.35",
40
+ "@syncfusion/ej2-data": "~26.1.35",
41
+ "@syncfusion/ej2-file-utils": "~26.1.35",
42
+ "@syncfusion/ej2-pdf-export": "~26.1.35",
43
+ "@syncfusion/ej2-svg-base": "~26.1.35"
44
44
  },
45
45
  "deprecated": false,
46
46
  "description": "Essential JS 2 TreeMap Components",
@@ -81,6 +81,6 @@
81
81
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
82
82
  },
83
83
  "typings": "index.d.ts",
84
- "version": "25.1.35",
84
+ "version": "26.1.35",
85
85
  "sideEffects": false
86
86
  }
@@ -39,6 +39,8 @@ export declare class TreeMapLegend {
39
39
  constructor(treemap: TreeMap);
40
40
  /**
41
41
  * method for legend
42
+ *
43
+ * @returns {void}
42
44
  * @private
43
45
  */
44
46
  renderLegend(): void;
@@ -52,6 +54,7 @@ export declare class TreeMapLegend {
52
54
  private isAddNewLegendData;
53
55
  /**
54
56
  * To draw the legend
57
+ *
55
58
  * @private
56
59
  */
57
60
  drawLegend(): void;
@@ -69,10 +72,15 @@ export declare class TreeMapLegend {
69
72
  renderInteractivePointer(e: PointerEvent | TouchEvent): void;
70
73
  private drawInteractivePointer;
71
74
  private getLegendAlignment;
72
- /** @private */
75
+ /**
76
+ * @param {PointerEvent} e - Specifies the event.
77
+ * @returns {void}
78
+ * @private
79
+ */
73
80
  mouseUpHandler(e: PointerEvent): void;
74
81
  /**
75
82
  * To remove the interactive pointer
83
+ *
76
84
  * @private
77
85
  */
78
86
  removeInteractivePointer(): void;
@@ -94,11 +102,13 @@ export declare class TreeMapLegend {
94
102
  wireEvents(element: Element): void;
95
103
  /**
96
104
  * To add the event listener
105
+ *
97
106
  * @private
98
107
  */
99
108
  addEventListener(): void;
100
109
  /**
101
110
  * To remove the event listener
111
+ *
102
112
  * @private
103
113
  */
104
114
  removeEventListener(): void;
@@ -21,9 +21,10 @@ var TreeMapLegend = /** @class */ (function () {
21
21
  this.treemap = treemap;
22
22
  this.addEventListener();
23
23
  }
24
- // eslint-disable-next-line valid-jsdoc
25
24
  /**
26
25
  * method for legend
26
+ *
27
+ * @returns {void}
27
28
  * @private
28
29
  */
29
30
  TreeMapLegend.prototype.renderLegend = function () {
@@ -59,7 +60,7 @@ var TreeMapLegend = /** @class */ (function () {
59
60
  var treemap = this.treemap;
60
61
  var legend = treemap.legendSettings;
61
62
  this.findColorMappingLegendItems(treemap.treemapLevelData.levelsData[0]);
62
- if ((this.treemap.palette.length > 0 || !isNullOrUndefined(treemap.colorValuePath))
63
+ if (((!isNullOrUndefined(this.treemap.palette) && this.treemap.palette.length > 0) || !isNullOrUndefined(treemap.colorValuePath))
63
64
  && this.legendCollections.length === 0) {
64
65
  this.findPaletteLegendItems(treemap.treemapLevelData.levelsData[0]);
65
66
  }
@@ -549,6 +550,7 @@ var TreeMapLegend = /** @class */ (function () {
549
550
  // eslint-disable-next-line valid-jsdoc
550
551
  /**
551
552
  * To draw the legend
553
+ *
552
554
  * @private
553
555
  */
554
556
  TreeMapLegend.prototype.drawLegend = function () {
@@ -661,7 +663,7 @@ var TreeMapLegend = /** @class */ (function () {
661
663
  };
662
664
  treemap.trigger(legendItemRendering, eventArgs, function (observedArgs) {
663
665
  var renderOptions = new PathOption(shapeId, observedArgs.fill, strokeWidth_1, isLineShape_1 ? collection['Fill'] : strokeColor_1, legend.opacity, '');
664
- legendElement.appendChild(drawSymbol(shapeLocation, observedArgs.shape, shapeSize, observedArgs.imageUrl, renderOptions, legendText));
666
+ legendElement.appendChild(drawSymbol(shapeLocation, observedArgs.shape, shapeSize, observedArgs.imageUrl, renderOptions));
665
667
  textOptions = new TextOption(textId, textLocation.x, textLocation.y, 'start', legendText, '', '');
666
668
  renderTextElement(textOptions, legend.textStyle, legend.textStyle.color || treemap.themeStyle.legendTextColor, legendElement);
667
669
  _this.legendGroup.appendChild(legendElement);
@@ -735,7 +737,11 @@ var TreeMapLegend = /** @class */ (function () {
735
737
  var textSize = measureText(title, textStyle);
736
738
  this.legendBorderRect = new Rect((this.legendItemRect.x - spacing), (this.legendItemRect.y - spacing - textSize.height), (this.legendItemRect.width) + (spacing * 2), (this.legendItemRect.height) + (spacing * 2) + textSize.height +
737
739
  (legend.mode === 'Interactive' ? 0 : (this.page !== 0) ? spacing : 0));
738
- var renderOptions = new RectOption(treemap.element.id + '_Legend_Border', legend.background, legend.border, 1, this.legendBorderRect, '');
740
+ var borderStyle = {
741
+ color: legend.border.color || this.treemap.themeStyle.legendBorderColor,
742
+ width: legend.border.width || this.treemap.themeStyle.legendBorderWidth
743
+ };
744
+ var renderOptions = new RectOption(treemap.element.id + '_Legend_Border', legend.background, borderStyle, 1, this.legendBorderRect, '');
739
745
  var legendBorder = treemap.renderer.drawRectangle(renderOptions);
740
746
  legendBorder.style.pointerEvents = 'none';
741
747
  this.legendGroup.appendChild(legendBorder);
@@ -754,7 +760,8 @@ var TreeMapLegend = /** @class */ (function () {
754
760
  var textSize = measureText(trimTitle, textStyle);
755
761
  if (legendTitle) {
756
762
  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, '');
757
- var textElement = renderTextElement(textOptions, textStyle, textStyle.color || this.treemap.themeStyle.legendTitleColor, this.legendGroup);
763
+ var textElement = renderTextElement(textOptions, textStyle, textStyle.color ||
764
+ this.treemap.themeStyle.legendTitleColor, this.legendGroup);
758
765
  textElement.setAttribute('role', 'region');
759
766
  textElement.setAttribute('aria-label', legendTitle);
760
767
  }
@@ -906,8 +913,11 @@ var TreeMapLegend = /** @class */ (function () {
906
913
  this.translate = new Location(x, y);
907
914
  }
908
915
  };
909
- // eslint-disable-next-line valid-jsdoc
910
- /** @private */
916
+ /**
917
+ * @param {PointerEvent} e - Specifies the event.
918
+ * @returns {void}
919
+ * @private
920
+ */
911
921
  TreeMapLegend.prototype.mouseUpHandler = function (e) {
912
922
  this.renderInteractivePointer(e);
913
923
  clearTimeout(this.clearTimeout);
@@ -916,6 +926,7 @@ var TreeMapLegend = /** @class */ (function () {
916
926
  // eslint-disable-next-line valid-jsdoc
917
927
  /**
918
928
  * To remove the interactive pointer
929
+ *
919
930
  * @private
920
931
  */
921
932
  TreeMapLegend.prototype.removeInteractivePointer = function () {
@@ -954,6 +965,7 @@ var TreeMapLegend = /** @class */ (function () {
954
965
  // eslint-disable-next-line valid-jsdoc
955
966
  /**
956
967
  * To add the event listener
968
+ *
957
969
  * @private
958
970
  */
959
971
  TreeMapLegend.prototype.addEventListener = function () {
@@ -966,6 +978,7 @@ var TreeMapLegend = /** @class */ (function () {
966
978
  // eslint-disable-next-line valid-jsdoc
967
979
  /**
968
980
  * To remove the event listener
981
+ *
969
982
  * @private
970
983
  */
971
984
  TreeMapLegend.prototype.removeEventListener = function () {
@@ -73,7 +73,7 @@ var LayoutPanel = /** @class */ (function () {
73
73
  }
74
74
  return drillData;
75
75
  };
76
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
76
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
77
77
  LayoutPanel.prototype.calculateLayoutItems = function (data, rect) {
78
78
  this.renderItems = [];
79
79
  this.parentData = [];
@@ -378,7 +378,7 @@ var LayoutPanel = /** @class */ (function () {
378
378
  }
379
379
  return result;
380
380
  };
381
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
381
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
382
382
  LayoutPanel.prototype.onDemandProcess = function (childItems) {
383
383
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
384
384
  var parentItem = {};
@@ -518,6 +518,7 @@ var LayoutPanel = /** @class */ (function () {
518
518
  textStyle = (isLeafItem ? leaf.labelStyle : levels[index].headerStyle);
519
519
  textStyle.fontFamily = this_1.treemap.themeStyle.labelFontFamily || textStyle.fontFamily;
520
520
  textStyle.fontWeight = textStyle.fontWeight || this_1.treemap.themeStyle.fontWeight;
521
+ textStyle.size = textStyle.size || this_1.treemap.themeStyle.labelFontSize;
521
522
  border = isLeafItem ? leaf.border : levels[index].border;
522
523
  position = !isLeafItem ? (levels[index].headerAlignment) === 'Near' ? 'TopLeft' : (levels[index].headerAlignment) === 'Center' ?
523
524
  'TopCenter' : 'TopRight' : leaf.labelPosition;
@@ -550,10 +551,11 @@ var LayoutPanel = /** @class */ (function () {
550
551
  }
551
552
  }
552
553
  itemGroup.setAttribute('aria-label', item['name']);
553
- if ((_this.treemap.enableDrillDown && isLeafItem) || (_this.treemap.selectionSettings.enable || _this.treemap.highlightSettings.enable)) {
554
+ if ((_this.treemap.enableDrillDown && isLeafItem) || (_this.treemap.selectionSettings.enable ||
555
+ _this.treemap.highlightSettings.enable)) {
554
556
  itemGroup.setAttribute('role', 'button');
555
557
  itemGroup.setAttribute('tabindex', _this.treemap.tabIndex.toString());
556
- itemGroup.style.cursor = _this.treemap.highlightSettings.enable && !_this.treemap.selectionSettings.enable && (_this.treemap.enableDrillDown && item['groupIndex'] == (_this.treemap.levels.length - 1)) ? 'default' :
558
+ itemGroup.style.cursor = _this.treemap.highlightSettings.enable && !_this.treemap.selectionSettings.enable && (_this.treemap.enableDrillDown && item['groupIndex'] === (_this.treemap.levels.length - 1)) ? 'default' :
557
559
  _this.treemap.highlightSettings.enable && !_this.treemap.selectionSettings.enable && !_this.treemap.enableDrillDown ? 'default' : 'pointer';
558
560
  }
559
561
  else {
@@ -652,14 +654,16 @@ var LayoutPanel = /** @class */ (function () {
652
654
  if (colorMapping.length > 0) {
653
655
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
654
656
  var option = colorMap(colorMapping, item['data'][treemap.equalColorValuePath], item['data'][treemap.rangeColorValuePath]);
655
- itemFill = !isNullOrUndefined(option['fill']) ? option['fill'] : treemap.leafItemSettings.fill;
656
- itemOpacity = option['opacity'];
657
+ if (!isNullOrUndefined(option)) {
658
+ itemFill = !isNullOrUndefined(option['fill']) ? option['fill'] : treemap.leafItemSettings.fill;
659
+ itemOpacity = option['opacity'];
660
+ }
657
661
  }
658
662
  else {
659
663
  for (var i = 0; i < parentData.length; i++) {
660
664
  if (parentData[i]['levelOrderName'] === item['levelOrderName'].split('#')[0]) {
661
665
  itemFill = !isNullOrUndefined(itemFill) ? itemFill : !isNullOrUndefined(treemap.colorValuePath) ?
662
- parentData[i]['data'][treemap.colorValuePath] : treemap.palette.length > 0 ?
666
+ parentData[i]['data'][treemap.colorValuePath] : (!isNullOrUndefined(treemap.palette) && treemap.palette.length > 0) ?
663
667
  treemap.palette[i % treemap.palette.length] : '#808080';
664
668
  }
665
669
  }
@@ -228,7 +228,7 @@ var LegendSettings = /** @class */ (function (_super) {
228
228
  Property(null)
229
229
  ], LegendSettings.prototype, "imageUrl", void 0);
230
230
  __decorate([
231
- Complex({ color: '#000000', width: 0 }, Border)
231
+ Complex({ color: null, width: null }, Border)
232
232
  ], LegendSettings.prototype, "border", void 0);
233
233
  __decorate([
234
234
  Complex({ color: '#000000', width: 0 }, Border)
@@ -328,7 +328,7 @@ var LeafItemSettings = /** @class */ (function (_super) {
328
328
  Property('TopLeft')
329
329
  ], LeafItemSettings.prototype, "labelPosition", void 0);
330
330
  __decorate([
331
- Complex({ color: null, size: '12px' }, Font)
331
+ Complex({ color: null, size: null }, Font)
332
332
  ], LeafItemSettings.prototype, "labelStyle", void 0);
333
333
  __decorate([
334
334
  Property(null)
@@ -372,7 +372,7 @@ var TooltipSettings = /** @class */ (function (_super) {
372
372
  Property(['Circle'])
373
373
  ], TooltipSettings.prototype, "markerShapes", void 0);
374
374
  __decorate([
375
- Complex({}, Border)
375
+ Complex({ width: null, color: null }, Border)
376
376
  ], TooltipSettings.prototype, "border", void 0);
377
377
  __decorate([
378
378
  Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
@@ -38,10 +38,13 @@ var ImageExport = /** @class */ (function () {
38
38
  var backgroundElement = exportElement.childNodes[0];
39
39
  if (!isNullOrUndefined(backgroundElement)) {
40
40
  var backgroundColor = backgroundElement.getAttribute('fill');
41
- if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
41
+ if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
42
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
42
43
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
43
44
  }
44
- else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
45
+ else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark' ||
46
+ treeMap.theme === 'Fluent2Dark' || treeMap.theme === 'Fluent2HighContrast')
47
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
45
48
  exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
46
49
  }
47
50
  }
@@ -160,6 +160,7 @@ export interface IItemClickEventArgs extends ITreeMapEventArgs {
160
160
  }
161
161
  /**
162
162
  * Defines the event argument of the treemap item data.
163
+ *
163
164
  * @private
164
165
  */
165
166
  export interface IItemDataEventArgs {
@@ -349,6 +350,7 @@ export interface ITreeMapTooltipRenderEventArgs extends ITreeMapEventArgs {
349
350
  }
350
351
  /**
351
352
  * Specifies the event arguments available for the tooltip events in the treemap.
353
+ *
352
354
  * @private
353
355
  */
354
356
  export interface ITreeMapTooltipArgs extends ITreeMapEventArgs {
@@ -454,6 +456,7 @@ export interface IShapes {
454
456
  }
455
457
  /**
456
458
  * Defines the theme supported for treemap.
459
+ *
457
460
  * @private
458
461
  */
459
462
  export interface IThemeStyle {
@@ -525,4 +528,24 @@ export interface IThemeStyle {
525
528
  * Defines the font family of the label contents in the treemap, supporting the theme.
526
529
  */
527
530
  labelFontFamily?: string;
531
+ /**
532
+ * Defines the font size of the label contents in the treemap, supporting the theme.
533
+ */
534
+ labelFontSize?: string;
535
+ /**
536
+ * Defines the border color of the legend in the treemap, supporting the theme.
537
+ */
538
+ legendBorderColor?: string;
539
+ /**
540
+ * Defines the border width of the legend in the treemap, supporting the theme.
541
+ */
542
+ legendBorderWidth?: number;
543
+ /**
544
+ * Defines the border color of the tooltip in the treemap, supporting the theme.
545
+ */
546
+ tooltipBorderColor?: string;
547
+ /**
548
+ * Defines the border width of the tooltip in the treemap, supporting the theme.
549
+ */
550
+ tooltipBorderWidth?: number;
528
551
  }
@@ -1 +0,0 @@
1
-
@@ -40,10 +40,13 @@ var PdfExport = /** @class */ (function () {
40
40
  var backgroundElement = exportElement.childNodes[0];
41
41
  if (!isNullOrUndefined(backgroundElement)) {
42
42
  var backgroundColor = backgroundElement.getAttribute('fill');
43
- if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
43
+ if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
44
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
44
45
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
45
46
  }
46
- else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
47
+ else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark' ||
48
+ treeMap.theme === 'Fluent2Dark' || treeMap.theme === 'Fluent2HighContrast')
49
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
47
50
  exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
48
51
  }
49
52
  }
@@ -61,15 +61,19 @@ var Print = /** @class */ (function () {
61
61
  }
62
62
  else {
63
63
  var exportElement = treeMap.element.cloneNode(true);
64
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
64
65
  var backgroundElement = exportElement.getElementsByTagName('svg')[0];
65
66
  if (!isNullOrUndefined(backgroundElement)) {
66
67
  backgroundElement = backgroundElement.childNodes[0];
67
68
  if (!isNullOrUndefined(backgroundElement)) {
68
69
  var backgroundColor = backgroundElement.getAttribute('fill');
69
- if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
70
+ if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
71
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
70
72
  backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
71
73
  }
72
- else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
74
+ else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark' ||
75
+ treeMap.theme === 'Fluent2Dark' || treeMap.theme === 'Fluent2HighContrast')
76
+ && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
73
77
  backgroundElement.setAttribute('fill', 'rgba(0, 0, 0, 1)');
74
78
  }
75
79
  }
@@ -54,7 +54,10 @@ export function getThemeStyle(theme) {
54
54
  fontWeight: 'Normal',
55
55
  subtitleFontSize: '14px',
56
56
  legendFontSize: '13px',
57
- fontFamily: 'Roboto, Noto, Sans-serif'
57
+ fontFamily: 'Roboto, Noto, Sans-serif',
58
+ labelFontSize: '12px',
59
+ legendBorderColor: '#000000',
60
+ legendBorderWidth: 0
58
61
  };
59
62
  break;
60
63
  case 'highcontrast':
@@ -72,7 +75,10 @@ export function getThemeStyle(theme) {
72
75
  fontWeight: 'Normal',
73
76
  subtitleFontSize: '14px',
74
77
  legendFontSize: '13px',
75
- fontFamily: 'Roboto, Noto, Sans-serif'
78
+ fontFamily: 'Roboto, Noto, Sans-serif',
79
+ labelFontSize: '12px',
80
+ legendBorderColor: '#000000',
81
+ legendBorderWidth: 0
76
82
  };
77
83
  break;
78
84
  case 'bootstrap4':
@@ -93,7 +99,10 @@ export function getThemeStyle(theme) {
93
99
  fontWeight: 'Normal',
94
100
  subtitleFontSize: '14px',
95
101
  legendFontSize: '14px',
96
- labelFontFamily: 'HelveticaNeue'
102
+ labelFontFamily: 'HelveticaNeue',
103
+ labelFontSize: '12px',
104
+ legendBorderColor: '#000000',
105
+ legendBorderWidth: 0
97
106
  };
98
107
  break;
99
108
  case 'tailwind':
@@ -114,7 +123,10 @@ export function getThemeStyle(theme) {
114
123
  fontWeight: 'Normal',
115
124
  subtitleFontSize: '12px',
116
125
  legendFontSize: '12px',
117
- labelFontFamily: 'Inter'
126
+ labelFontFamily: 'Inter',
127
+ labelFontSize: '12px',
128
+ legendBorderColor: '#000000',
129
+ legendBorderWidth: 0
118
130
  };
119
131
  break;
120
132
  case 'tailwinddark':
@@ -135,7 +147,10 @@ export function getThemeStyle(theme) {
135
147
  fontSize: '14px',
136
148
  subtitleFontSize: '12px',
137
149
  legendFontSize: '12px',
138
- labelFontFamily: 'Inter'
150
+ labelFontFamily: 'Inter',
151
+ labelFontSize: '12px',
152
+ legendBorderColor: '#000000',
153
+ legendBorderWidth: 0
139
154
  };
140
155
  break;
141
156
  case 'bootstrap5':
@@ -156,7 +171,10 @@ export function getThemeStyle(theme) {
156
171
  fontWeight: 'Normal',
157
172
  subtitleFontSize: '12px',
158
173
  legendFontSize: '12px',
159
- labelFontFamily: 'Helvetica Neue'
174
+ labelFontFamily: 'Helvetica Neue',
175
+ labelFontSize: '12px',
176
+ legendBorderColor: '#000000',
177
+ legendBorderWidth: 0
160
178
  };
161
179
  break;
162
180
  case 'bootstrap5dark':
@@ -177,7 +195,10 @@ export function getThemeStyle(theme) {
177
195
  fontWeight: 'Normal',
178
196
  subtitleFontSize: '12px',
179
197
  legendFontSize: '12px',
180
- labelFontFamily: 'Helvetica Neue'
198
+ labelFontFamily: 'Helvetica Neue',
199
+ labelFontSize: '12px',
200
+ legendBorderColor: '#000000',
201
+ legendBorderWidth: 0
181
202
  };
182
203
  break;
183
204
  case 'fluent':
@@ -198,7 +219,10 @@ export function getThemeStyle(theme) {
198
219
  fontWeight: 'Normal',
199
220
  subtitleFontSize: '12px',
200
221
  legendFontSize: '12px',
201
- labelFontFamily: 'Segoe UI'
222
+ labelFontFamily: 'Segoe UI',
223
+ labelFontSize: '12px',
224
+ legendBorderColor: '#000000',
225
+ legendBorderWidth: 0
202
226
  };
203
227
  break;
204
228
  case 'fluentdark':
@@ -219,7 +243,10 @@ export function getThemeStyle(theme) {
219
243
  fontWeight: 'Normal',
220
244
  subtitleFontSize: '12px',
221
245
  legendFontSize: '12px',
222
- labelFontFamily: 'Segoe UI'
246
+ labelFontFamily: 'Segoe UI',
247
+ labelFontSize: '12px',
248
+ legendBorderColor: '#000000',
249
+ legendBorderWidth: 0
223
250
  };
224
251
  break;
225
252
  case 'material3':
@@ -240,7 +267,10 @@ export function getThemeStyle(theme) {
240
267
  fontWeight: '400',
241
268
  subtitleFontSize: '14px',
242
269
  legendFontSize: '14px',
243
- labelFontFamily: 'Roboto'
270
+ labelFontFamily: 'Roboto',
271
+ labelFontSize: '12px',
272
+ legendBorderColor: '#000000',
273
+ legendBorderWidth: 0
244
274
  };
245
275
  break;
246
276
  case 'material3dark':
@@ -261,7 +291,84 @@ export function getThemeStyle(theme) {
261
291
  fontWeight: '400',
262
292
  subtitleFontSize: '14px',
263
293
  legendFontSize: '14px',
264
- labelFontFamily: 'Roboto'
294
+ labelFontFamily: 'Roboto',
295
+ labelFontSize: '12px',
296
+ legendBorderColor: '#000000',
297
+ legendBorderWidth: 0
298
+ };
299
+ break;
300
+ case 'fluent2':
301
+ style = {
302
+ backgroundColor: 'transparent',
303
+ titleFontColor: '#242424',
304
+ titleFontWeight: '600',
305
+ subTitleFontColor: '#242424',
306
+ tooltipFillColor: '#FFFFFF',
307
+ tooltipFontColor: '#242424',
308
+ tooltipFontSize: '12px',
309
+ tooltipFillOpacity: 1,
310
+ tooltipTextOpacity: 1,
311
+ legendTitleColor: '#242424',
312
+ legendTextColor: '#242424',
313
+ fontFamily: 'Segoe UI',
314
+ fontSize: '14px',
315
+ fontWeight: '400',
316
+ subtitleFontSize: '12px',
317
+ legendFontSize: '12px',
318
+ labelFontFamily: 'Segoe UI',
319
+ labelFontSize: '10px',
320
+ legendBorderColor: '#000000',
321
+ legendBorderWidth: 0
322
+ };
323
+ break;
324
+ case 'fluent2dark':
325
+ style = {
326
+ backgroundColor: 'transparent',
327
+ titleFontColor: '#FFFFFF',
328
+ titleFontWeight: '600',
329
+ subTitleFontColor: '#FFFFFF',
330
+ tooltipFillColor: '#292929',
331
+ tooltipFontColor: '#FFFFFF',
332
+ tooltipFontSize: '12px',
333
+ tooltipFillOpacity: 1,
334
+ tooltipTextOpacity: 1,
335
+ legendTitleColor: '#FFFFFF',
336
+ legendTextColor: '#FFFFFF',
337
+ fontFamily: 'Segoe UI',
338
+ fontSize: '14px',
339
+ fontWeight: '400',
340
+ subtitleFontSize: '12px',
341
+ legendFontSize: '12px',
342
+ labelFontFamily: 'Segoe UI',
343
+ labelFontSize: '10px',
344
+ legendBorderColor: '#000000',
345
+ legendBorderWidth: 0
346
+ };
347
+ break;
348
+ case 'fluent2highcontrast':
349
+ style = {
350
+ backgroundColor: 'transparent',
351
+ titleFontColor: '#FFFFFF',
352
+ titleFontWeight: '600',
353
+ subTitleFontColor: '#FFFFFF',
354
+ tooltipFillColor: '#000000',
355
+ tooltipFontColor: '#FFFFFF',
356
+ tooltipFontSize: '12px',
357
+ tooltipFillOpacity: 1,
358
+ tooltipTextOpacity: 1,
359
+ legendTitleColor: '#FFFFFF',
360
+ legendTextColor: '#FFFFFF',
361
+ fontFamily: 'Segoe UI',
362
+ fontSize: '14px',
363
+ fontWeight: '400',
364
+ subtitleFontSize: '12px',
365
+ legendFontSize: '12px',
366
+ labelFontFamily: 'Segoe UI',
367
+ labelFontSize: '10px',
368
+ legendBorderColor: '#FFF',
369
+ legendBorderWidth: 1,
370
+ tooltipBorderColor: '#FFF',
371
+ tooltipBorderWidth: 1
265
372
  };
266
373
  break;
267
374
  default:
@@ -279,7 +386,10 @@ export function getThemeStyle(theme) {
279
386
  fontWeight: 'Normal',
280
387
  subtitleFontSize: '14px',
281
388
  legendFontSize: '13px',
282
- fontFamily: 'Roboto, Noto, Sans-serif'
389
+ fontFamily: 'Roboto, Noto, Sans-serif',
390
+ labelFontSize: '12px',
391
+ legendBorderColor: '#000000',
392
+ legendBorderWidth: 0
283
393
  };
284
394
  break;
285
395
  }
@@ -41,21 +41,25 @@ 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
+ *
44
45
  * @private
45
46
  */
46
47
  treeMapTooltipModule: TreeMapTooltip;
47
48
  /**
48
49
  * Sets and gets the module that is used to add highlight functionality in the treemap.
50
+ *
49
51
  * @private
50
52
  */
51
53
  treeMapHighlightModule: TreeMapHighlight;
52
54
  /**
53
55
  * Sets and gets the module that is used to add selection functionality in the treemap.
56
+ *
54
57
  * @private
55
58
  */
56
59
  treeMapSelectionModule: TreeMapSelection;
57
60
  /**
58
61
  * Sets and gets the module that is used to add legend in the treemap.
62
+ *
59
63
  * @private
60
64
  */
61
65
  treeMapLegendModule: TreeMapLegend;