@syncfusion/ej2-treemap 19.3.53 → 19.4.38

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.
@@ -1017,13 +1017,11 @@ function findLabelLocation(rect, position, labelSize, type, treemap) {
1017
1017
  }
1018
1018
  function measureElement(element, parentElement) {
1019
1019
  var size = new Size(0, 0);
1020
- if (!isNullOrUndefined(parentElement)) {
1021
- parentElement.appendChild(element);
1022
- size.height = element.offsetHeight;
1023
- size.width = element.offsetWidth;
1024
- var measureElementId = document.getElementById(element.id);
1025
- measureElementId.parentNode.removeChild(measureElementId);
1026
- }
1020
+ parentElement.appendChild(element);
1021
+ size.height = element.offsetHeight;
1022
+ size.width = element.offsetWidth;
1023
+ var measureElementId = document.getElementById(element.id);
1024
+ measureElementId.parentNode.removeChild(measureElementId);
1027
1025
  return size;
1028
1026
  }
1029
1027
  function getArea(rect) {
@@ -2223,7 +2221,7 @@ var LayoutPanel = /** @__PURE__ @class */ (function () {
2223
2221
  for (var i = 0; i < this.renderItems.length; i++) {
2224
2222
  _loop_1(i);
2225
2223
  }
2226
- if (templateGroup.childNodes.length > 0 && !isNullOrUndefined(secondaryEle)) {
2224
+ if (templateGroup.childNodes.length > 0) {
2227
2225
  secondaryEle.appendChild(templateGroup);
2228
2226
  }
2229
2227
  this.treemap.svgObject.appendChild(this.layoutGroup);
@@ -2531,6 +2529,40 @@ function getThemeStyle(theme) {
2531
2529
  labelFontFamily: 'Helvetica Neue'
2532
2530
  };
2533
2531
  break;
2532
+ case 'fluentui':
2533
+ style = {
2534
+ backgroundColor: 'rgba(255,255,255, 0.0)',
2535
+ titleFontColor: '#201F1E',
2536
+ subTitleFontColor: '#201F1E',
2537
+ tooltipFillColor: '#FFFFFF',
2538
+ tooltipFontColor: '#323130',
2539
+ tooltipFillOpacity: 1,
2540
+ tooltipTextOpacity: 1,
2541
+ legendTitleColor: '#201F1E',
2542
+ legendTextColor: '#201F1E',
2543
+ fontFamily: 'Segoe UI',
2544
+ fontSize: '14px',
2545
+ legendFontSize: '12px',
2546
+ labelFontFamily: 'Segoe UI'
2547
+ };
2548
+ break;
2549
+ case 'fluentuidark':
2550
+ style = {
2551
+ backgroundColor: 'rgba(255,255,255, 0.0)',
2552
+ titleFontColor: '#F3F2F1',
2553
+ subTitleFontColor: '#F3F2F1',
2554
+ tooltipFillColor: '#252423',
2555
+ tooltipFontColor: '#F3F2F1',
2556
+ tooltipFillOpacity: 1,
2557
+ tooltipTextOpacity: 1,
2558
+ legendTitleColor: '#F3F2F1',
2559
+ legendTextColor: '#F3F2F1',
2560
+ fontFamily: 'Segoe UI',
2561
+ fontSize: '14px',
2562
+ legendFontSize: '12px',
2563
+ labelFontFamily: 'Segoe UI'
2564
+ };
2565
+ break;
2534
2566
  default:
2535
2567
  style = {
2536
2568
  backgroundColor: '#FFFFFF',