@syncfusion/ej2-treemap 21.2.3 → 22.1.34

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.
@@ -80,7 +80,10 @@ var TreeMapTooltip = /** @class */ (function () {
80
80
  }
81
81
  location = getMousePosition(pageX, pageY, this.treemap.svgObject);
82
82
  location.y = (this.tooltipSettings.template) ? location.y + 10 : location.y;
83
+ this.tooltipSettings.textStyle.size = this.tooltipSettings.textStyle.size || this.treemap.themeStyle.tooltipFontSize;
83
84
  this.tooltipSettings.textStyle.fontFamily = this.treemap.themeStyle.fontFamily;
85
+ this.tooltipSettings.textStyle.fontStyle = !isNullOrUndefined(this.tooltipSettings.textStyle.fontStyle) ? this.tooltipSettings.textStyle.fontStyle : 'Normal';
86
+ this.tooltipSettings.textStyle.fontWeight = this.tooltipSettings.textStyle.fontWeight || this.treemap.themeStyle.fontWeight;
84
87
  this.tooltipSettings.textStyle.color = this.treemap.themeStyle.tooltipFontColor
85
88
  || this.tooltipSettings.textStyle.color;
86
89
  this.tooltipSettings.textStyle.opacity = this.treemap.themeStyle.tooltipTextOpacity
@@ -201,7 +201,11 @@ export declare type TreeMapTheme =
201
201
  /** Render a treemap with Fluent theme. */
202
202
  'Fluent' |
203
203
  /** Render a treemap with Fluent dark theme. */
204
- 'FluentDark';
204
+ 'FluentDark' |
205
+ /** Render a treemap with Material3 theme. */
206
+ 'Material3' |
207
+ /** Render a treemap with Material3Dark theme. */
208
+ 'Material3Dark';
205
209
  /**
206
210
  * Defines the rendering directions to render the treemap items in the treemap.
207
211
  */
@@ -197,7 +197,7 @@ export declare function findHightLightItems(data: any, items: string[], mode: st
197
197
  * @returns {Function} - Returns the template function
198
198
  * @private
199
199
  */
200
- export declare function getTemplateFunction(template: string): any;
200
+ export declare function getTemplateFunction(template: string | Function): any;
201
201
  /**
202
202
  * @private
203
203
  * @param {HTMLCollection} element - Specifies the element
@@ -415,9 +415,12 @@ export function findHightLightItems(data, items, mode, treeMap) {
415
415
  export function getTemplateFunction(template) {
416
416
  var templateFn = null;
417
417
  try {
418
- if (document.querySelectorAll(template).length) {
418
+ if (typeof template !== 'function' && document.querySelectorAll(template).length) {
419
419
  templateFn = compile(document.querySelector(template).innerHTML.trim());
420
420
  }
421
+ else {
422
+ templateFn = compile(template);
423
+ }
421
424
  }
422
425
  catch (e) {
423
426
  templateFn = compile(template);