@syncfusion/ej2-treemap 27.1.50 → 27.1.55

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 : 27.1.50
3
+ * version : 27.1.55
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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-treemap@*",
3
- "_id": "@syncfusion/ej2-treemap@27.1.48",
3
+ "_id": "@syncfusion/ej2-treemap@27.1.53",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-pb2oAzpHiG+szVNwZ5C2r53Ph1C2BUcTGtUnFGl0A/NEBR50yTkMQQrsXuUN6K1tjRBRcxeMiKdWqvIYR2pgCw==",
5
+ "_integrity": "sha512-+hzaGEi6Xd/IV3niTwsIGdPmZFsXIi8dGAtvOnxl6v5LelfRSEOt+2lPfCEo8kt9RsWnB6vJmu58r0gLfVp4zQ==",
6
6
  "_location": "/@syncfusion/ej2-treemap",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -23,8 +23,8 @@
23
23
  "/@syncfusion/ej2-react-treemap",
24
24
  "/@syncfusion/ej2-vue-treemap"
25
25
  ],
26
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-27.1.48.tgz",
27
- "_shasum": "51c081f10b22153d71c099385e7da15f57271013",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-treemap/-/ej2-treemap-27.1.53.tgz",
27
+ "_shasum": "99fd9c5350c65495873ddfa91d38fe5dda59b7ba",
28
28
  "_spec": "@syncfusion/ej2-treemap@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_27.1.1/packages/included",
30
30
  "author": {
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~27.1.50",
39
- "@syncfusion/ej2-compression": "~27.1.50",
40
- "@syncfusion/ej2-data": "~27.1.50",
41
- "@syncfusion/ej2-file-utils": "~27.1.50",
42
- "@syncfusion/ej2-pdf-export": "~27.1.50",
38
+ "@syncfusion/ej2-base": "~27.1.55",
39
+ "@syncfusion/ej2-compression": "~27.1.53",
40
+ "@syncfusion/ej2-data": "~27.1.52",
41
+ "@syncfusion/ej2-file-utils": "~27.1.53",
42
+ "@syncfusion/ej2-pdf-export": "~27.1.51",
43
43
  "@syncfusion/ej2-svg-base": "~27.1.50"
44
44
  },
45
45
  "deprecated": false,
@@ -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": "27.1.50",
84
+ "version": "27.1.55",
85
85
  "sideEffects": false
86
86
  }
@@ -515,10 +515,18 @@ var LayoutPanel = /** @class */ (function () {
515
515
  renderText = !isLeafItem && childItems && childItems.length > 0 && this_1.treemap.enableDrillDown ?
516
516
  !item['isDrilled'] ? treeMap.enableRtl ? renderText + ' [+]' : '[+] ' + renderText :
517
517
  treeMap.enableRtl ? renderText + ' [-]' : '[-] ' + renderText : renderText;
518
- textStyle = (isLeafItem ? leaf.labelStyle : levels[index].headerStyle);
519
- textStyle.fontFamily = this_1.treemap.themeStyle.labelFontFamily || textStyle.fontFamily;
520
- textStyle.fontWeight = textStyle.fontWeight || this_1.treemap.themeStyle.fontWeight;
521
- textStyle.size = textStyle.size || this_1.treemap.themeStyle.labelFontSize;
518
+ var fontFamily = (isLeafItem ? leaf.labelStyle.fontFamily : levels[index].headerStyle.fontFamily);
519
+ fontFamily = fontFamily || this_1.treemap.themeStyle.labelFontFamily;
520
+ var size = (isLeafItem ? leaf.labelStyle.size : levels[index].headerStyle.size);
521
+ size = size || this_1.treemap.themeStyle.labelFontSize;
522
+ var fontWeight = (isLeafItem ? leaf.labelStyle.fontWeight : levels[index].headerStyle.fontWeight);
523
+ fontWeight = fontWeight || this_1.treemap.themeStyle.fontWeight;
524
+ var color = (isLeafItem ? leaf.labelStyle.color : levels[index].headerStyle.color);
525
+ var fontStyle = (isLeafItem ? leaf.labelStyle.fontStyle : levels[index].headerStyle.fontStyle);
526
+ var textStyleOpacity = (isLeafItem ? leaf.labelStyle.opacity : levels[index].headerStyle.opacity);
527
+ textStyle = {
528
+ fontFamily: fontFamily, size: size, fontWeight: fontWeight, color: color, fontStyle: fontStyle, opacity: textStyleOpacity
529
+ };
522
530
  border = isLeafItem ? leaf.border : levels[index].border;
523
531
  position = !isLeafItem ? (levels[index].headerAlignment) === 'Near' ? 'TopLeft' : (levels[index].headerAlignment) === 'Center' ?
524
532
  'TopCenter' : 'TopRight' : leaf.labelPosition;
@@ -527,7 +535,7 @@ var LayoutPanel = /** @class */ (function () {
527
535
  item['options'] = { border: border, opacity: opacity, fill: fill };
528
536
  eventArgs = {
529
537
  cancel: false, name: itemRendering, treemap: this_1.treemap, text: renderText,
530
- currentItem: item, RenderItems: this_1.renderItems, options: item['options']
538
+ currentItem: item, RenderItems: this_1.renderItems, options: item['options'], textColor: textStyle.color
531
539
  };
532
540
  this_1.treemap.trigger(itemRendering, eventArgs, function (observedArgs) {
533
541
  if (!observedArgs.cancel) {
@@ -540,6 +548,7 @@ var LayoutPanel = /** @class */ (function () {
540
548
  if (eventArgs.text !== renderText) {
541
549
  eventArgs.text = textFormatter(eventArgs.text, item['data'], _this.treemap) || levelName;
542
550
  }
551
+ textStyle.color = eventArgs.textColor ? eventArgs.textColor : textStyle.color;
543
552
  _this.renderItemText(eventArgs.text.toString(), itemGroup, textStyle, rect, interSectAction, groupId, fill, position, connectorText);
544
553
  }
545
554
  if (template) {
@@ -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: null }, Font)
331
+ Complex({ color: null, size: null, fontFamily: null }, Font)
332
332
  ], LeafItemSettings.prototype, "labelStyle", void 0);
333
333
  __decorate([
334
334
  Property(null)
@@ -478,7 +478,7 @@ var LevelSettings = /** @class */ (function (_super) {
478
478
  Property('Near')
479
479
  ], LevelSettings.prototype, "headerAlignment", void 0);
480
480
  __decorate([
481
- Complex({ color: null, size: '13px' }, Font)
481
+ Complex({ color: null, size: '13px', fontFamily: null }, Font)
482
482
  ], LevelSettings.prototype, "headerStyle", void 0);
483
483
  __decorate([
484
484
  Property('TopLeft')
@@ -73,6 +73,10 @@ export interface IItemRenderingEventArgs extends ITreeMapEventArgs {
73
73
  * Defines the label of the treemap item.
74
74
  */
75
75
  text: string;
76
+ /**
77
+ * Defines the text color of the TreeMap item.
78
+ */
79
+ textColor: string;
76
80
  }
77
81
  /**
78
82
  * Specifies the event arguments for the drill down start event of treemap.
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Maps Themes doc
3
3
  */
4
+ import { defaultFont } from './constants';
4
5
  // eslint-disable-next-line @typescript-eslint/no-namespace
5
6
  export var Theme;
6
7
  (function (Theme) {
@@ -56,6 +57,7 @@ export function getThemeStyle(theme) {
56
57
  legendFontSize: '13px',
57
58
  fontFamily: 'Roboto, Noto, Sans-serif',
58
59
  labelFontSize: '12px',
60
+ labelFontFamily: defaultFont,
59
61
  legendBorderColor: '#000000',
60
62
  legendBorderWidth: 0
61
63
  };
@@ -77,6 +79,7 @@ export function getThemeStyle(theme) {
77
79
  legendFontSize: '13px',
78
80
  fontFamily: 'Roboto, Noto, Sans-serif',
79
81
  labelFontSize: '12px',
82
+ labelFontFamily: defaultFont,
80
83
  legendBorderColor: '#000000',
81
84
  legendBorderWidth: 0
82
85
  };
@@ -384,6 +387,7 @@ export function getThemeStyle(theme) {
384
387
  fontWeight: 'Normal',
385
388
  subtitleFontSize: '14px',
386
389
  legendFontSize: '13px',
390
+ labelFontFamily: defaultFont,
387
391
  fontFamily: 'Roboto, Noto, Sans-serif',
388
392
  labelFontSize: '12px',
389
393
  legendBorderColor: '#000000',