@syncfusion/ej2-treemap 34.2.6 → 35.1.37

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.
@@ -6805,13 +6805,12 @@ class TreeMapTooltip {
6805
6805
  }
6806
6806
  location = getMousePosition(pageX, pageY, this.treemap.svgObject);
6807
6807
  location.y = (this.tooltipSettings.template) ? location.y + 10 : location.y;
6808
- this.tooltipSettings.textStyle.size = this.tooltipSettings.textStyle.size || this.treemap.themeStyle.tooltipFontSize;
6809
- this.tooltipSettings.textStyle.fontFamily = this.tooltipSettings.textStyle.fontFamily || this.treemap.themeStyle.fontFamily;
6810
- this.tooltipSettings.textStyle.fontStyle = !isNullOrUndefined(this.tooltipSettings.textStyle.fontStyle) ? this.tooltipSettings.textStyle.fontStyle : 'Normal';
6811
- this.tooltipSettings.textStyle.fontWeight = this.tooltipSettings.textStyle.fontWeight || this.treemap.themeStyle.fontWeight;
6812
- this.tooltipSettings.textStyle.color = this.tooltipSettings.textStyle.color || this.treemap.themeStyle.tooltipFontColor;
6813
- // eslint-disable-next-line max-len
6814
- this.tooltipSettings.textStyle.opacity = this.tooltipSettings.textStyle.opacity || this.treemap.themeStyle.tooltipTextOpacity;
6808
+ const tooltipTextStyle = {
6809
+ // eslint-disable-next-line max-len
6810
+ color: this.tooltipSettings.textStyle.color || this.treemap.themeStyle.tooltipFontColor, fontFamily: this.tooltipSettings.textStyle.fontFamily || this.treemap.themeStyle.fontFamily, fontStyle: !isNullOrUndefined(this.tooltipSettings.textStyle.fontStyle) ? this.tooltipSettings.textStyle.fontStyle : 'Normal',
6811
+ // eslint-disable-next-line max-len
6812
+ fontWeight: this.tooltipSettings.textStyle.fontWeight || this.treemap.themeStyle.fontWeight, opacity: this.tooltipSettings.textStyle.opacity || this.treemap.themeStyle.tooltipTextOpacity, size: this.tooltipSettings.textStyle.size || this.treemap.themeStyle.tooltipFontSize
6813
+ };
6815
6814
  const border = {
6816
6815
  width: this.tooltipSettings.border.width || this.treemap.themeStyle.tooltipBorderWidth || 0,
6817
6816
  color: this.tooltipSettings.border.color || this.treemap.themeStyle.tooltipBorderColor || 'transparent'
@@ -6825,7 +6824,7 @@ class TreeMapTooltip {
6825
6824
  cancel: false, name: tooltipRendering, item: item,
6826
6825
  options: {
6827
6826
  location: location, text: tooltipContent, data: toolTipData, border: border,
6828
- textStyle: this.tooltipSettings.textStyle, template: this.tooltipSettings.template
6827
+ textStyle: tooltipTextStyle, template: this.tooltipSettings.template
6829
6828
  },
6830
6829
  treemap: this.treemap,
6831
6830
  element: target, eventArgs: e