@syncfusion/ej2-treemap 19.4.38 → 20.1.47

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 : 19.4.38
3
+ * version : 20.1.47
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. 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@16.28.1",
3
+ "_id": "@syncfusion/ej2-treemap@16.30.0",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-Iy/+1aBnp4r7ljoh40MlLZjy3qQ5BX9t1wEcSaZrjGqdmJnJiHWCChBNlLSbCZN4seENkhkLP9FZ1tysjJMJ8Q==",
5
+ "_integrity": "sha512-i83IhaEJA73qbu4DcCcSWmrAL5NSpcEFL1GOeyqPcrJBgX5+gNPLsxmWtkc99ucRsB7m4ens6r8ObQGiSCV/IQ==",
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": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treemap/-/ej2-treemap-16.28.1.tgz",
27
- "_shasum": "eef18fe35e45cf02701889a03f6626019710d6f6",
26
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-treemap/-/ej2-treemap-16.30.0.tgz",
27
+ "_shasum": "59e551156bb37ac70fadb6f78d1880c897926ef4",
28
28
  "_spec": "@syncfusion/ej2-treemap@*",
29
29
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
30
30
  "author": {
@@ -35,12 +35,12 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~19.4.38",
39
- "@syncfusion/ej2-compression": "~19.4.38",
40
- "@syncfusion/ej2-data": "~19.4.38",
41
- "@syncfusion/ej2-file-utils": "~19.4.38",
42
- "@syncfusion/ej2-pdf-export": "~19.4.38",
43
- "@syncfusion/ej2-svg-base": "~19.4.38"
38
+ "@syncfusion/ej2-base": "~20.1.47",
39
+ "@syncfusion/ej2-compression": "~20.1.47",
40
+ "@syncfusion/ej2-data": "~20.1.47",
41
+ "@syncfusion/ej2-file-utils": "~20.1.47",
42
+ "@syncfusion/ej2-pdf-export": "~20.1.47",
43
+ "@syncfusion/ej2-svg-base": "~20.1.47"
44
44
  },
45
45
  "deprecated": false,
46
46
  "description": "Essential JS 2 TreeMap Components",
@@ -73,6 +73,6 @@
73
73
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
74
74
  },
75
75
  "typings": "index.d.ts",
76
- "version": "19.4.38",
76
+ "version": "20.1.47",
77
77
  "sideEffects": false
78
78
  }
@@ -42,8 +42,8 @@ var PdfExport = /** @class */ (function () {
42
42
  var backgroundElement = exportElement.childNodes[0];
43
43
  if (!isNullOrUndefined(backgroundElement)) {
44
44
  var backgroundColor = backgroundElement.getAttribute('fill');
45
- if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark')
46
- && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
45
+ if ((_this.control.theme === 'Tailwind' || _this.control.theme === 'TailwindDark' || _this.control.theme === 'Bootstrap5' || _this.control.theme === 'Bootstrap5Dark'
46
+ || _this.control.theme === 'Fluent' || _this.control.theme === 'FluentDark') && (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
47
47
  exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
48
48
  }
49
49
  }
@@ -148,7 +148,7 @@ export function getThemeStyle(theme) {
148
148
  labelFontFamily: 'Helvetica Neue'
149
149
  };
150
150
  break;
151
- case 'fluentui':
151
+ case 'fluent':
152
152
  style = {
153
153
  backgroundColor: 'rgba(255,255,255, 0.0)',
154
154
  titleFontColor: '#201F1E',
@@ -165,7 +165,7 @@ export function getThemeStyle(theme) {
165
165
  labelFontFamily: 'Segoe UI'
166
166
  };
167
167
  break;
168
- case 'fluentuidark':
168
+ case 'fluentdark':
169
169
  style = {
170
170
  backgroundColor: 'rgba(255,255,255, 0.0)',
171
171
  titleFontColor: '#F3F2F1',
@@ -192,7 +192,8 @@ var TreeMap = /** @class */ (function (_super) {
192
192
  }
193
193
  };
194
194
  TreeMap.prototype.elementChange = function () {
195
- if (this.treeMapLegendModule && this.legendSettings.visible && this.treeMapLegendModule.legendGroup && this.layout.layoutGroup) {
195
+ if (this.treeMapLegendModule && this.legendSettings.visible && this.treeMapLegendModule.legendGroup && this.layout.layoutGroup
196
+ && !isNullOrUndefined(this.svgObject)) {
196
197
  this.svgObject.insertBefore(this.layout.layoutGroup, this.treeMapLegendModule.legendGroup);
197
198
  }
198
199
  };
@@ -134,6 +134,10 @@ var TreeMapTooltip = /** @class */ (function () {
134
134
  textStyle: args['textStyle'],
135
135
  fill: this.treemap.tooltipSettings.fill ? this.treemap.tooltipSettings.fill : this.treemap.themeStyle.tooltipFillColor
136
136
  });
137
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
138
+ if (this.treemap.isVue || this.treemap.isVue3) {
139
+ this.svgTooltip.controlInstance = this.treemap;
140
+ }
137
141
  this.svgTooltip.opacity = this.treemap.themeStyle.tooltipFillOpacity || this.svgTooltip.opacity;
138
142
  this.svgTooltip.appendTo(tooltipEle);
139
143
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -197,7 +197,11 @@ export declare type TreeMapTheme =
197
197
  /** Render a treemap with Bootstrap5 theme. */
198
198
  'Bootstrap5' |
199
199
  /** Render a treemap with Bootstrap5 dark theme. */
200
- 'Bootstrap5Dark';
200
+ 'Bootstrap5Dark' |
201
+ /** Render a treemap with Fluent theme. */
202
+ 'Fluent' |
203
+ /** Render a treemap with Fluent dark theme. */
204
+ 'FluentDark';
201
205
  /**
202
206
  * Defines the rendering directions to render the treemap items in the treemap.
203
207
  */