@syncfusion/ej2-treemap 25.1.35 → 26.1.35
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.
- package/.eslintrc.json +3 -2
- package/dist/ej2-treemap.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js +2 -2
- package/dist/ej2-treemap.umd.min.js.map +1 -1
- package/dist/es6/ej2-treemap.es2015.js +407 -271
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +422 -286
- package/dist/es6/ej2-treemap.es5.js.map +1 -1
- package/dist/global/ej2-treemap.min.js +2 -2
- package/dist/global/ej2-treemap.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/treemap/layout/legend.d.ts +11 -1
- package/src/treemap/layout/legend.js +20 -7
- package/src/treemap/layout/render-panel.js +11 -7
- package/src/treemap/model/base.js +3 -3
- package/src/treemap/model/image-export.js +5 -2
- package/src/treemap/model/interface.d.ts +23 -0
- package/src/treemap/model/interface.js +0 -1
- package/src/treemap/model/pdf-export.js +5 -2
- package/src/treemap/model/print.js +6 -2
- package/src/treemap/model/theme.js +122 -12
- package/src/treemap/treemap.d.ts +4 -0
- package/src/treemap/treemap.js +19 -16
- package/src/treemap/user-interaction/tooltip.d.ts +2 -0
- package/src/treemap/user-interaction/tooltip.js +13 -3
- package/src/treemap/utils/enum.d.ts +8 -1
- package/src/treemap/utils/enum.js +0 -1
- package/src/treemap/utils/helper.d.ts +1 -2
- package/src/treemap/utils/helper.js +1 -2
- package/CHANGELOG.md +0 -80
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChildProperty, Property, Complex, Collection, createElement, SanitizeHtmlHelper, isNullOrUndefined, compile, merge, remove, extend, print, Browser, Component, Fetch, EventHandler, Internationalization, Event, NotifyPropertyChanges } from '@syncfusion/ej2-base';
|
|
2
2
|
import { SvgRenderer, Tooltip } from '@syncfusion/ej2-svg-base';
|
|
3
3
|
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
4
|
-
import {
|
|
4
|
+
import { PdfPageOrientation, PdfDocument, PdfBitmap } from '@syncfusion/ej2-pdf-export';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* TreeMap constants doc
|
|
@@ -121,24 +121,21 @@ const resize = 'resize';
|
|
|
121
121
|
*/
|
|
122
122
|
const defaultFont = 'Roboto, Segoe UI, Noto, Sans-serif';
|
|
123
123
|
|
|
124
|
-
var __decorate
|
|
124
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
125
125
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
126
126
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
127
127
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
128
128
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
129
129
|
};
|
|
130
|
-
/**
|
|
131
|
-
* Maps base doc
|
|
132
|
-
*/
|
|
133
130
|
/**
|
|
134
131
|
* Sets and gets the options for customizing the color and width of the border in treemap.
|
|
135
132
|
*/
|
|
136
133
|
class Border extends ChildProperty {
|
|
137
134
|
}
|
|
138
|
-
__decorate
|
|
135
|
+
__decorate([
|
|
139
136
|
Property('#808080')
|
|
140
137
|
], Border.prototype, "color", void 0);
|
|
141
|
-
__decorate
|
|
138
|
+
__decorate([
|
|
142
139
|
Property(0)
|
|
143
140
|
], Border.prototype, "width", void 0);
|
|
144
141
|
/**
|
|
@@ -146,16 +143,16 @@ __decorate$1([
|
|
|
146
143
|
*/
|
|
147
144
|
class Margin extends ChildProperty {
|
|
148
145
|
}
|
|
149
|
-
__decorate
|
|
146
|
+
__decorate([
|
|
150
147
|
Property(10)
|
|
151
148
|
], Margin.prototype, "left", void 0);
|
|
152
|
-
__decorate
|
|
149
|
+
__decorate([
|
|
153
150
|
Property(10)
|
|
154
151
|
], Margin.prototype, "right", void 0);
|
|
155
|
-
__decorate
|
|
152
|
+
__decorate([
|
|
156
153
|
Property(10)
|
|
157
154
|
], Margin.prototype, "top", void 0);
|
|
158
|
-
__decorate
|
|
155
|
+
__decorate([
|
|
159
156
|
Property(10)
|
|
160
157
|
], Margin.prototype, "bottom", void 0);
|
|
161
158
|
/**
|
|
@@ -163,22 +160,22 @@ __decorate$1([
|
|
|
163
160
|
*/
|
|
164
161
|
class Font extends ChildProperty {
|
|
165
162
|
}
|
|
166
|
-
__decorate
|
|
163
|
+
__decorate([
|
|
167
164
|
Property(null)
|
|
168
165
|
], Font.prototype, "size", void 0);
|
|
169
|
-
__decorate
|
|
166
|
+
__decorate([
|
|
170
167
|
Property(null)
|
|
171
168
|
], Font.prototype, "color", void 0);
|
|
172
|
-
__decorate
|
|
169
|
+
__decorate([
|
|
173
170
|
Property(defaultFont)
|
|
174
171
|
], Font.prototype, "fontFamily", void 0);
|
|
175
|
-
__decorate
|
|
172
|
+
__decorate([
|
|
176
173
|
Property('')
|
|
177
174
|
], Font.prototype, "fontWeight", void 0);
|
|
178
|
-
__decorate
|
|
175
|
+
__decorate([
|
|
179
176
|
Property('Normal')
|
|
180
177
|
], Font.prototype, "fontStyle", void 0);
|
|
181
|
-
__decorate
|
|
178
|
+
__decorate([
|
|
182
179
|
Property(1)
|
|
183
180
|
], Font.prototype, "opacity", void 0);
|
|
184
181
|
/**
|
|
@@ -186,10 +183,10 @@ __decorate$1([
|
|
|
186
183
|
*/
|
|
187
184
|
class CommonTitleSettings extends ChildProperty {
|
|
188
185
|
}
|
|
189
|
-
__decorate
|
|
186
|
+
__decorate([
|
|
190
187
|
Property('')
|
|
191
188
|
], CommonTitleSettings.prototype, "text", void 0);
|
|
192
|
-
__decorate
|
|
189
|
+
__decorate([
|
|
193
190
|
Property('')
|
|
194
191
|
], CommonTitleSettings.prototype, "description", void 0);
|
|
195
192
|
/**
|
|
@@ -197,10 +194,10 @@ __decorate$1([
|
|
|
197
194
|
*/
|
|
198
195
|
class SubTitleSettings extends CommonTitleSettings {
|
|
199
196
|
}
|
|
200
|
-
__decorate
|
|
197
|
+
__decorate([
|
|
201
198
|
Complex({ fontFamily: null, fontWeight: null }, Font)
|
|
202
199
|
], SubTitleSettings.prototype, "textStyle", void 0);
|
|
203
|
-
__decorate
|
|
200
|
+
__decorate([
|
|
204
201
|
Property('Center')
|
|
205
202
|
], SubTitleSettings.prototype, "alignment", void 0);
|
|
206
203
|
/**
|
|
@@ -208,13 +205,13 @@ __decorate$1([
|
|
|
208
205
|
*/
|
|
209
206
|
class TitleSettings extends CommonTitleSettings {
|
|
210
207
|
}
|
|
211
|
-
__decorate
|
|
208
|
+
__decorate([
|
|
212
209
|
Complex({ fontFamily: null, fontWeight: null }, Font)
|
|
213
210
|
], TitleSettings.prototype, "textStyle", void 0);
|
|
214
|
-
__decorate
|
|
211
|
+
__decorate([
|
|
215
212
|
Property('Center')
|
|
216
213
|
], TitleSettings.prototype, "alignment", void 0);
|
|
217
|
-
__decorate
|
|
214
|
+
__decorate([
|
|
218
215
|
Complex({}, SubTitleSettings)
|
|
219
216
|
], TitleSettings.prototype, "subtitleSettings", void 0);
|
|
220
217
|
/**
|
|
@@ -222,28 +219,28 @@ __decorate$1([
|
|
|
222
219
|
*/
|
|
223
220
|
class ColorMapping extends ChildProperty {
|
|
224
221
|
}
|
|
225
|
-
__decorate
|
|
222
|
+
__decorate([
|
|
226
223
|
Property(null)
|
|
227
224
|
], ColorMapping.prototype, "from", void 0);
|
|
228
|
-
__decorate
|
|
225
|
+
__decorate([
|
|
229
226
|
Property(null)
|
|
230
227
|
], ColorMapping.prototype, "to", void 0);
|
|
231
|
-
__decorate
|
|
228
|
+
__decorate([
|
|
232
229
|
Property(null)
|
|
233
230
|
], ColorMapping.prototype, "color", void 0);
|
|
234
|
-
__decorate
|
|
231
|
+
__decorate([
|
|
235
232
|
Property(null)
|
|
236
233
|
], ColorMapping.prototype, "label", void 0);
|
|
237
|
-
__decorate
|
|
234
|
+
__decorate([
|
|
238
235
|
Property(null)
|
|
239
236
|
], ColorMapping.prototype, "value", void 0);
|
|
240
|
-
__decorate
|
|
237
|
+
__decorate([
|
|
241
238
|
Property(null)
|
|
242
239
|
], ColorMapping.prototype, "minOpacity", void 0);
|
|
243
|
-
__decorate
|
|
240
|
+
__decorate([
|
|
244
241
|
Property(null)
|
|
245
242
|
], ColorMapping.prototype, "maxOpacity", void 0);
|
|
246
|
-
__decorate
|
|
243
|
+
__decorate([
|
|
247
244
|
Property(true)
|
|
248
245
|
], ColorMapping.prototype, "showLegend", void 0);
|
|
249
246
|
/**
|
|
@@ -251,85 +248,85 @@ __decorate$1([
|
|
|
251
248
|
*/
|
|
252
249
|
class LegendSettings extends ChildProperty {
|
|
253
250
|
}
|
|
254
|
-
__decorate
|
|
251
|
+
__decorate([
|
|
255
252
|
Property(false)
|
|
256
253
|
], LegendSettings.prototype, "visible", void 0);
|
|
257
|
-
__decorate
|
|
254
|
+
__decorate([
|
|
258
255
|
Property('Default')
|
|
259
256
|
], LegendSettings.prototype, "mode", void 0);
|
|
260
|
-
__decorate
|
|
257
|
+
__decorate([
|
|
261
258
|
Property('transparent')
|
|
262
259
|
], LegendSettings.prototype, "background", void 0);
|
|
263
|
-
__decorate
|
|
260
|
+
__decorate([
|
|
264
261
|
Property('Circle')
|
|
265
262
|
], LegendSettings.prototype, "shape", void 0);
|
|
266
|
-
__decorate
|
|
263
|
+
__decorate([
|
|
267
264
|
Property('')
|
|
268
265
|
], LegendSettings.prototype, "width", void 0);
|
|
269
|
-
__decorate
|
|
266
|
+
__decorate([
|
|
270
267
|
Property('')
|
|
271
268
|
], LegendSettings.prototype, "height", void 0);
|
|
272
|
-
__decorate
|
|
269
|
+
__decorate([
|
|
273
270
|
Complex({ size: null, fontFamily: null, fontWeight: null }, Font)
|
|
274
271
|
], LegendSettings.prototype, "textStyle", void 0);
|
|
275
|
-
__decorate
|
|
272
|
+
__decorate([
|
|
276
273
|
Property(null)
|
|
277
274
|
], LegendSettings.prototype, "fill", void 0);
|
|
278
|
-
__decorate
|
|
275
|
+
__decorate([
|
|
279
276
|
Property(1)
|
|
280
277
|
], LegendSettings.prototype, "opacity", void 0);
|
|
281
|
-
__decorate
|
|
278
|
+
__decorate([
|
|
282
279
|
Property(15)
|
|
283
280
|
], LegendSettings.prototype, "shapeWidth", void 0);
|
|
284
|
-
__decorate
|
|
281
|
+
__decorate([
|
|
285
282
|
Property(15)
|
|
286
283
|
], LegendSettings.prototype, "shapeHeight", void 0);
|
|
287
|
-
__decorate
|
|
284
|
+
__decorate([
|
|
288
285
|
Property(10)
|
|
289
286
|
], LegendSettings.prototype, "shapePadding", void 0);
|
|
290
|
-
__decorate
|
|
287
|
+
__decorate([
|
|
291
288
|
Property(null)
|
|
292
289
|
], LegendSettings.prototype, "imageUrl", void 0);
|
|
293
|
-
__decorate
|
|
294
|
-
Complex({ color:
|
|
290
|
+
__decorate([
|
|
291
|
+
Complex({ color: null, width: null }, Border)
|
|
295
292
|
], LegendSettings.prototype, "border", void 0);
|
|
296
|
-
__decorate
|
|
293
|
+
__decorate([
|
|
297
294
|
Complex({ color: '#000000', width: 0 }, Border)
|
|
298
295
|
], LegendSettings.prototype, "shapeBorder", void 0);
|
|
299
|
-
__decorate
|
|
296
|
+
__decorate([
|
|
300
297
|
Complex({}, CommonTitleSettings)
|
|
301
298
|
], LegendSettings.prototype, "title", void 0);
|
|
302
|
-
__decorate
|
|
299
|
+
__decorate([
|
|
303
300
|
Complex({ size: null, fontFamily: null, fontWeight: null }, Font)
|
|
304
301
|
], LegendSettings.prototype, "titleStyle", void 0);
|
|
305
|
-
__decorate
|
|
302
|
+
__decorate([
|
|
306
303
|
Property('Bottom')
|
|
307
304
|
], LegendSettings.prototype, "position", void 0);
|
|
308
|
-
__decorate
|
|
305
|
+
__decorate([
|
|
309
306
|
Property('None')
|
|
310
307
|
], LegendSettings.prototype, "orientation", void 0);
|
|
311
|
-
__decorate
|
|
308
|
+
__decorate([
|
|
312
309
|
Property(false)
|
|
313
310
|
], LegendSettings.prototype, "invertedPointer", void 0);
|
|
314
|
-
__decorate
|
|
311
|
+
__decorate([
|
|
315
312
|
Property('After')
|
|
316
313
|
], LegendSettings.prototype, "labelPosition", void 0);
|
|
317
|
-
__decorate
|
|
314
|
+
__decorate([
|
|
318
315
|
Property('None')
|
|
319
316
|
], LegendSettings.prototype, "labelDisplayMode", void 0);
|
|
320
|
-
__decorate
|
|
317
|
+
__decorate([
|
|
321
318
|
Property('Center')
|
|
322
319
|
], LegendSettings.prototype, "alignment", void 0);
|
|
323
|
-
__decorate
|
|
320
|
+
__decorate([
|
|
324
321
|
Property({ x: 0, y: 0 })
|
|
325
322
|
], LegendSettings.prototype, "location", void 0);
|
|
326
|
-
__decorate
|
|
323
|
+
__decorate([
|
|
327
324
|
Property(null)
|
|
328
325
|
], LegendSettings.prototype, "showLegendPath", void 0);
|
|
329
|
-
__decorate
|
|
326
|
+
__decorate([
|
|
330
327
|
Property(null)
|
|
331
328
|
], LegendSettings.prototype, "valuePath", void 0);
|
|
332
|
-
__decorate
|
|
329
|
+
__decorate([
|
|
333
330
|
Property(false)
|
|
334
331
|
], LegendSettings.prototype, "removeDuplicateLegend", void 0);
|
|
335
332
|
/**
|
|
@@ -337,10 +334,10 @@ __decorate$1([
|
|
|
337
334
|
*/
|
|
338
335
|
class InitialDrillSettings extends ChildProperty {
|
|
339
336
|
}
|
|
340
|
-
__decorate
|
|
337
|
+
__decorate([
|
|
341
338
|
Property(null)
|
|
342
339
|
], InitialDrillSettings.prototype, "groupIndex", void 0);
|
|
343
|
-
__decorate
|
|
340
|
+
__decorate([
|
|
344
341
|
Property(null)
|
|
345
342
|
], InitialDrillSettings.prototype, "groupName", void 0);
|
|
346
343
|
/**
|
|
@@ -348,49 +345,49 @@ __decorate$1([
|
|
|
348
345
|
*/
|
|
349
346
|
class LeafItemSettings extends ChildProperty {
|
|
350
347
|
}
|
|
351
|
-
__decorate
|
|
348
|
+
__decorate([
|
|
352
349
|
Property(null)
|
|
353
350
|
], LeafItemSettings.prototype, "fill", void 0);
|
|
354
|
-
__decorate
|
|
351
|
+
__decorate([
|
|
355
352
|
Property(false)
|
|
356
353
|
], LeafItemSettings.prototype, "autoFill", void 0);
|
|
357
|
-
__decorate
|
|
354
|
+
__decorate([
|
|
358
355
|
Complex({}, Border)
|
|
359
356
|
], LeafItemSettings.prototype, "border", void 0);
|
|
360
|
-
__decorate
|
|
357
|
+
__decorate([
|
|
361
358
|
Property(0)
|
|
362
359
|
], LeafItemSettings.prototype, "gap", void 0);
|
|
363
|
-
__decorate
|
|
360
|
+
__decorate([
|
|
364
361
|
Property(10)
|
|
365
362
|
], LeafItemSettings.prototype, "padding", void 0);
|
|
366
|
-
__decorate
|
|
363
|
+
__decorate([
|
|
367
364
|
Property(1)
|
|
368
365
|
], LeafItemSettings.prototype, "opacity", void 0);
|
|
369
|
-
__decorate
|
|
366
|
+
__decorate([
|
|
370
367
|
Property(true)
|
|
371
368
|
], LeafItemSettings.prototype, "showLabels", void 0);
|
|
372
|
-
__decorate
|
|
369
|
+
__decorate([
|
|
373
370
|
Property(null)
|
|
374
371
|
], LeafItemSettings.prototype, "labelPath", void 0);
|
|
375
|
-
__decorate
|
|
372
|
+
__decorate([
|
|
376
373
|
Property(null)
|
|
377
374
|
], LeafItemSettings.prototype, "labelFormat", void 0);
|
|
378
|
-
__decorate
|
|
375
|
+
__decorate([
|
|
379
376
|
Property('TopLeft')
|
|
380
377
|
], LeafItemSettings.prototype, "labelPosition", void 0);
|
|
381
|
-
__decorate
|
|
382
|
-
Complex({ color: null, size:
|
|
378
|
+
__decorate([
|
|
379
|
+
Complex({ color: null, size: null }, Font)
|
|
383
380
|
], LeafItemSettings.prototype, "labelStyle", void 0);
|
|
384
|
-
__decorate
|
|
381
|
+
__decorate([
|
|
385
382
|
Property(null)
|
|
386
383
|
], LeafItemSettings.prototype, "labelTemplate", void 0);
|
|
387
|
-
__decorate
|
|
384
|
+
__decorate([
|
|
388
385
|
Property('Center')
|
|
389
386
|
], LeafItemSettings.prototype, "templatePosition", void 0);
|
|
390
|
-
__decorate
|
|
387
|
+
__decorate([
|
|
391
388
|
Property('Trim')
|
|
392
389
|
], LeafItemSettings.prototype, "interSectAction", void 0);
|
|
393
|
-
__decorate
|
|
390
|
+
__decorate([
|
|
394
391
|
Collection([], ColorMapping)
|
|
395
392
|
], LeafItemSettings.prototype, "colorMapping", void 0);
|
|
396
393
|
/**
|
|
@@ -398,28 +395,28 @@ __decorate$1([
|
|
|
398
395
|
*/
|
|
399
396
|
class TooltipSettings extends ChildProperty {
|
|
400
397
|
}
|
|
401
|
-
__decorate
|
|
398
|
+
__decorate([
|
|
402
399
|
Property(false)
|
|
403
400
|
], TooltipSettings.prototype, "visible", void 0);
|
|
404
|
-
__decorate
|
|
401
|
+
__decorate([
|
|
405
402
|
Property('')
|
|
406
403
|
], TooltipSettings.prototype, "template", void 0);
|
|
407
|
-
__decorate
|
|
404
|
+
__decorate([
|
|
408
405
|
Property(null)
|
|
409
406
|
], TooltipSettings.prototype, "format", void 0);
|
|
410
|
-
__decorate
|
|
407
|
+
__decorate([
|
|
411
408
|
Property(null)
|
|
412
409
|
], TooltipSettings.prototype, "fill", void 0);
|
|
413
|
-
__decorate
|
|
410
|
+
__decorate([
|
|
414
411
|
Property(0.75)
|
|
415
412
|
], TooltipSettings.prototype, "opacity", void 0);
|
|
416
|
-
__decorate
|
|
413
|
+
__decorate([
|
|
417
414
|
Property(['Circle'])
|
|
418
415
|
], TooltipSettings.prototype, "markerShapes", void 0);
|
|
419
|
-
__decorate
|
|
420
|
-
Complex({}, Border)
|
|
416
|
+
__decorate([
|
|
417
|
+
Complex({ width: null, color: null }, Border)
|
|
421
418
|
], TooltipSettings.prototype, "border", void 0);
|
|
422
|
-
__decorate
|
|
419
|
+
__decorate([
|
|
423
420
|
Complex({ fontFamily: null, size: null, fontWeight: null }, Font)
|
|
424
421
|
], TooltipSettings.prototype, "textStyle", void 0);
|
|
425
422
|
/**
|
|
@@ -427,19 +424,19 @@ __decorate$1([
|
|
|
427
424
|
*/
|
|
428
425
|
class SelectionSettings extends ChildProperty {
|
|
429
426
|
}
|
|
430
|
-
__decorate
|
|
427
|
+
__decorate([
|
|
431
428
|
Property(false)
|
|
432
429
|
], SelectionSettings.prototype, "enable", void 0);
|
|
433
|
-
__decorate
|
|
430
|
+
__decorate([
|
|
434
431
|
Property(null)
|
|
435
432
|
], SelectionSettings.prototype, "fill", void 0);
|
|
436
|
-
__decorate
|
|
433
|
+
__decorate([
|
|
437
434
|
Property('0.5')
|
|
438
435
|
], SelectionSettings.prototype, "opacity", void 0);
|
|
439
|
-
__decorate
|
|
436
|
+
__decorate([
|
|
440
437
|
Complex({}, Border)
|
|
441
438
|
], SelectionSettings.prototype, "border", void 0);
|
|
442
|
-
__decorate
|
|
439
|
+
__decorate([
|
|
443
440
|
Property('Item')
|
|
444
441
|
], SelectionSettings.prototype, "mode", void 0);
|
|
445
442
|
/**
|
|
@@ -448,19 +445,19 @@ __decorate$1([
|
|
|
448
445
|
*/
|
|
449
446
|
class HighlightSettings extends ChildProperty {
|
|
450
447
|
}
|
|
451
|
-
__decorate
|
|
448
|
+
__decorate([
|
|
452
449
|
Property(false)
|
|
453
450
|
], HighlightSettings.prototype, "enable", void 0);
|
|
454
|
-
__decorate
|
|
451
|
+
__decorate([
|
|
455
452
|
Property('#808080')
|
|
456
453
|
], HighlightSettings.prototype, "fill", void 0);
|
|
457
|
-
__decorate
|
|
454
|
+
__decorate([
|
|
458
455
|
Property('0.5')
|
|
459
456
|
], HighlightSettings.prototype, "opacity", void 0);
|
|
460
|
-
__decorate
|
|
457
|
+
__decorate([
|
|
461
458
|
Complex({}, Border)
|
|
462
459
|
], HighlightSettings.prototype, "border", void 0);
|
|
463
|
-
__decorate
|
|
460
|
+
__decorate([
|
|
464
461
|
Property('Item')
|
|
465
462
|
], HighlightSettings.prototype, "mode", void 0);
|
|
466
463
|
/**
|
|
@@ -468,49 +465,49 @@ __decorate$1([
|
|
|
468
465
|
*/
|
|
469
466
|
class LevelSettings extends ChildProperty {
|
|
470
467
|
}
|
|
471
|
-
__decorate
|
|
468
|
+
__decorate([
|
|
472
469
|
Property(null)
|
|
473
470
|
], LevelSettings.prototype, "groupPath", void 0);
|
|
474
|
-
__decorate
|
|
471
|
+
__decorate([
|
|
475
472
|
Property(0)
|
|
476
473
|
], LevelSettings.prototype, "groupGap", void 0);
|
|
477
|
-
__decorate
|
|
474
|
+
__decorate([
|
|
478
475
|
Property(10)
|
|
479
476
|
], LevelSettings.prototype, "groupPadding", void 0);
|
|
480
|
-
__decorate
|
|
477
|
+
__decorate([
|
|
481
478
|
Complex({}, Border)
|
|
482
479
|
], LevelSettings.prototype, "border", void 0);
|
|
483
|
-
__decorate
|
|
480
|
+
__decorate([
|
|
484
481
|
Property(null)
|
|
485
482
|
], LevelSettings.prototype, "fill", void 0);
|
|
486
|
-
__decorate
|
|
483
|
+
__decorate([
|
|
487
484
|
Property(false)
|
|
488
485
|
], LevelSettings.prototype, "autoFill", void 0);
|
|
489
|
-
__decorate
|
|
486
|
+
__decorate([
|
|
490
487
|
Property(1)
|
|
491
488
|
], LevelSettings.prototype, "opacity", void 0);
|
|
492
|
-
__decorate
|
|
489
|
+
__decorate([
|
|
493
490
|
Property(true)
|
|
494
491
|
], LevelSettings.prototype, "showHeader", void 0);
|
|
495
|
-
__decorate
|
|
492
|
+
__decorate([
|
|
496
493
|
Property(20)
|
|
497
494
|
], LevelSettings.prototype, "headerHeight", void 0);
|
|
498
|
-
__decorate
|
|
495
|
+
__decorate([
|
|
499
496
|
Property(null)
|
|
500
497
|
], LevelSettings.prototype, "headerTemplate", void 0);
|
|
501
|
-
__decorate
|
|
498
|
+
__decorate([
|
|
502
499
|
Property(null)
|
|
503
500
|
], LevelSettings.prototype, "headerFormat", void 0);
|
|
504
|
-
__decorate
|
|
501
|
+
__decorate([
|
|
505
502
|
Property('Near')
|
|
506
503
|
], LevelSettings.prototype, "headerAlignment", void 0);
|
|
507
|
-
__decorate
|
|
504
|
+
__decorate([
|
|
508
505
|
Complex({ color: null, size: '13px' }, Font)
|
|
509
506
|
], LevelSettings.prototype, "headerStyle", void 0);
|
|
510
|
-
__decorate
|
|
507
|
+
__decorate([
|
|
511
508
|
Property('TopLeft')
|
|
512
509
|
], LevelSettings.prototype, "templatePosition", void 0);
|
|
513
|
-
__decorate
|
|
510
|
+
__decorate([
|
|
514
511
|
Collection([], ColorMapping)
|
|
515
512
|
], LevelSettings.prototype, "colorMapping", void 0);
|
|
516
513
|
|
|
@@ -1549,11 +1546,10 @@ function colorNameToHex(color) {
|
|
|
1549
1546
|
* @param {Size} size - Specifies the size
|
|
1550
1547
|
* @param {string} url - Specifies the url
|
|
1551
1548
|
* @param {PathOption} options - Specifies the options
|
|
1552
|
-
* @param {string} label - Specifies the label
|
|
1553
1549
|
* @returns {Element} - Returns the element
|
|
1554
1550
|
* @private
|
|
1555
1551
|
*/
|
|
1556
|
-
function drawSymbol(location, shape, size, url, options
|
|
1552
|
+
function drawSymbol(location, shape, size, url, options) {
|
|
1557
1553
|
const svgRenderer = new SvgRenderer('');
|
|
1558
1554
|
const temp = renderLegendShape(location, size, shape, options, url);
|
|
1559
1555
|
const htmlElement = svgRenderer['draw' + temp.functionName](temp.renderOption);
|
|
@@ -1742,7 +1738,6 @@ function setColor(element, fill, opacity, borderColor, borderWidth) {
|
|
|
1742
1738
|
*/
|
|
1743
1739
|
function removeSelectionWithHighlight(collection, element, treemap) {
|
|
1744
1740
|
removeShape(collection);
|
|
1745
|
-
element = [];
|
|
1746
1741
|
removeClassNames(document.getElementsByClassName('treeMapHighLight'), 'treeMapHighLight', treemap);
|
|
1747
1742
|
}
|
|
1748
1743
|
/**
|
|
@@ -1890,7 +1885,7 @@ class LayoutPanel {
|
|
|
1890
1885
|
}
|
|
1891
1886
|
return drillData;
|
|
1892
1887
|
}
|
|
1893
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1888
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1894
1889
|
calculateLayoutItems(data, rect) {
|
|
1895
1890
|
this.renderItems = [];
|
|
1896
1891
|
this.parentData = [];
|
|
@@ -2195,7 +2190,7 @@ class LayoutPanel {
|
|
|
2195
2190
|
}
|
|
2196
2191
|
return result;
|
|
2197
2192
|
}
|
|
2198
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2193
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2199
2194
|
onDemandProcess(childItems) {
|
|
2200
2195
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2201
2196
|
let parentItem = {};
|
|
@@ -2334,6 +2329,7 @@ class LayoutPanel {
|
|
|
2334
2329
|
textStyle = (isLeafItem ? leaf.labelStyle : levels[index].headerStyle);
|
|
2335
2330
|
textStyle.fontFamily = this.treemap.themeStyle.labelFontFamily || textStyle.fontFamily;
|
|
2336
2331
|
textStyle.fontWeight = textStyle.fontWeight || this.treemap.themeStyle.fontWeight;
|
|
2332
|
+
textStyle.size = textStyle.size || this.treemap.themeStyle.labelFontSize;
|
|
2337
2333
|
border = isLeafItem ? leaf.border : levels[index].border;
|
|
2338
2334
|
position = !isLeafItem ? (levels[index].headerAlignment) === 'Near' ? 'TopLeft' : (levels[index].headerAlignment) === 'Center' ?
|
|
2339
2335
|
'TopCenter' : 'TopRight' : leaf.labelPosition;
|
|
@@ -2366,10 +2362,11 @@ class LayoutPanel {
|
|
|
2366
2362
|
}
|
|
2367
2363
|
}
|
|
2368
2364
|
itemGroup.setAttribute('aria-label', item['name']);
|
|
2369
|
-
if ((this.treemap.enableDrillDown && isLeafItem) || (this.treemap.selectionSettings.enable ||
|
|
2365
|
+
if ((this.treemap.enableDrillDown && isLeafItem) || (this.treemap.selectionSettings.enable ||
|
|
2366
|
+
this.treemap.highlightSettings.enable)) {
|
|
2370
2367
|
itemGroup.setAttribute('role', 'button');
|
|
2371
2368
|
itemGroup.setAttribute('tabindex', this.treemap.tabIndex.toString());
|
|
2372
|
-
itemGroup.style.cursor = this.treemap.highlightSettings.enable && !this.treemap.selectionSettings.enable && (this.treemap.enableDrillDown && item['groupIndex']
|
|
2369
|
+
itemGroup.style.cursor = this.treemap.highlightSettings.enable && !this.treemap.selectionSettings.enable && (this.treemap.enableDrillDown && item['groupIndex'] === (this.treemap.levels.length - 1)) ? 'default' :
|
|
2373
2370
|
this.treemap.highlightSettings.enable && !this.treemap.selectionSettings.enable && !this.treemap.enableDrillDown ? 'default' : 'pointer';
|
|
2374
2371
|
}
|
|
2375
2372
|
else {
|
|
@@ -2464,14 +2461,16 @@ class LayoutPanel {
|
|
|
2464
2461
|
if (colorMapping.length > 0) {
|
|
2465
2462
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2466
2463
|
const option = colorMap(colorMapping, item['data'][treemap.equalColorValuePath], item['data'][treemap.rangeColorValuePath]);
|
|
2467
|
-
|
|
2468
|
-
|
|
2464
|
+
if (!isNullOrUndefined(option)) {
|
|
2465
|
+
itemFill = !isNullOrUndefined(option['fill']) ? option['fill'] : treemap.leafItemSettings.fill;
|
|
2466
|
+
itemOpacity = option['opacity'];
|
|
2467
|
+
}
|
|
2469
2468
|
}
|
|
2470
2469
|
else {
|
|
2471
2470
|
for (let i = 0; i < parentData.length; i++) {
|
|
2472
2471
|
if (parentData[i]['levelOrderName'] === item['levelOrderName'].split('#')[0]) {
|
|
2473
2472
|
itemFill = !isNullOrUndefined(itemFill) ? itemFill : !isNullOrUndefined(treemap.colorValuePath) ?
|
|
2474
|
-
parentData[i]['data'][treemap.colorValuePath] : treemap.palette.length > 0 ?
|
|
2473
|
+
parentData[i]['data'][treemap.colorValuePath] : (!isNullOrUndefined(treemap.palette) && treemap.palette.length > 0) ?
|
|
2475
2474
|
treemap.palette[i % treemap.palette.length] : '#808080';
|
|
2476
2475
|
}
|
|
2477
2476
|
}
|
|
@@ -2607,7 +2606,10 @@ function getThemeStyle(theme) {
|
|
|
2607
2606
|
fontWeight: 'Normal',
|
|
2608
2607
|
subtitleFontSize: '14px',
|
|
2609
2608
|
legendFontSize: '13px',
|
|
2610
|
-
fontFamily: 'Roboto, Noto, Sans-serif'
|
|
2609
|
+
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
2610
|
+
labelFontSize: '12px',
|
|
2611
|
+
legendBorderColor: '#000000',
|
|
2612
|
+
legendBorderWidth: 0
|
|
2611
2613
|
};
|
|
2612
2614
|
break;
|
|
2613
2615
|
case 'highcontrast':
|
|
@@ -2625,7 +2627,10 @@ function getThemeStyle(theme) {
|
|
|
2625
2627
|
fontWeight: 'Normal',
|
|
2626
2628
|
subtitleFontSize: '14px',
|
|
2627
2629
|
legendFontSize: '13px',
|
|
2628
|
-
fontFamily: 'Roboto, Noto, Sans-serif'
|
|
2630
|
+
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
2631
|
+
labelFontSize: '12px',
|
|
2632
|
+
legendBorderColor: '#000000',
|
|
2633
|
+
legendBorderWidth: 0
|
|
2629
2634
|
};
|
|
2630
2635
|
break;
|
|
2631
2636
|
case 'bootstrap4':
|
|
@@ -2646,7 +2651,10 @@ function getThemeStyle(theme) {
|
|
|
2646
2651
|
fontWeight: 'Normal',
|
|
2647
2652
|
subtitleFontSize: '14px',
|
|
2648
2653
|
legendFontSize: '14px',
|
|
2649
|
-
labelFontFamily: 'HelveticaNeue'
|
|
2654
|
+
labelFontFamily: 'HelveticaNeue',
|
|
2655
|
+
labelFontSize: '12px',
|
|
2656
|
+
legendBorderColor: '#000000',
|
|
2657
|
+
legendBorderWidth: 0
|
|
2650
2658
|
};
|
|
2651
2659
|
break;
|
|
2652
2660
|
case 'tailwind':
|
|
@@ -2667,7 +2675,10 @@ function getThemeStyle(theme) {
|
|
|
2667
2675
|
fontWeight: 'Normal',
|
|
2668
2676
|
subtitleFontSize: '12px',
|
|
2669
2677
|
legendFontSize: '12px',
|
|
2670
|
-
labelFontFamily: 'Inter'
|
|
2678
|
+
labelFontFamily: 'Inter',
|
|
2679
|
+
labelFontSize: '12px',
|
|
2680
|
+
legendBorderColor: '#000000',
|
|
2681
|
+
legendBorderWidth: 0
|
|
2671
2682
|
};
|
|
2672
2683
|
break;
|
|
2673
2684
|
case 'tailwinddark':
|
|
@@ -2688,7 +2699,10 @@ function getThemeStyle(theme) {
|
|
|
2688
2699
|
fontSize: '14px',
|
|
2689
2700
|
subtitleFontSize: '12px',
|
|
2690
2701
|
legendFontSize: '12px',
|
|
2691
|
-
labelFontFamily: 'Inter'
|
|
2702
|
+
labelFontFamily: 'Inter',
|
|
2703
|
+
labelFontSize: '12px',
|
|
2704
|
+
legendBorderColor: '#000000',
|
|
2705
|
+
legendBorderWidth: 0
|
|
2692
2706
|
};
|
|
2693
2707
|
break;
|
|
2694
2708
|
case 'bootstrap5':
|
|
@@ -2709,7 +2723,10 @@ function getThemeStyle(theme) {
|
|
|
2709
2723
|
fontWeight: 'Normal',
|
|
2710
2724
|
subtitleFontSize: '12px',
|
|
2711
2725
|
legendFontSize: '12px',
|
|
2712
|
-
labelFontFamily: 'Helvetica Neue'
|
|
2726
|
+
labelFontFamily: 'Helvetica Neue',
|
|
2727
|
+
labelFontSize: '12px',
|
|
2728
|
+
legendBorderColor: '#000000',
|
|
2729
|
+
legendBorderWidth: 0
|
|
2713
2730
|
};
|
|
2714
2731
|
break;
|
|
2715
2732
|
case 'bootstrap5dark':
|
|
@@ -2730,7 +2747,10 @@ function getThemeStyle(theme) {
|
|
|
2730
2747
|
fontWeight: 'Normal',
|
|
2731
2748
|
subtitleFontSize: '12px',
|
|
2732
2749
|
legendFontSize: '12px',
|
|
2733
|
-
labelFontFamily: 'Helvetica Neue'
|
|
2750
|
+
labelFontFamily: 'Helvetica Neue',
|
|
2751
|
+
labelFontSize: '12px',
|
|
2752
|
+
legendBorderColor: '#000000',
|
|
2753
|
+
legendBorderWidth: 0
|
|
2734
2754
|
};
|
|
2735
2755
|
break;
|
|
2736
2756
|
case 'fluent':
|
|
@@ -2751,7 +2771,10 @@ function getThemeStyle(theme) {
|
|
|
2751
2771
|
fontWeight: 'Normal',
|
|
2752
2772
|
subtitleFontSize: '12px',
|
|
2753
2773
|
legendFontSize: '12px',
|
|
2754
|
-
labelFontFamily: 'Segoe UI'
|
|
2774
|
+
labelFontFamily: 'Segoe UI',
|
|
2775
|
+
labelFontSize: '12px',
|
|
2776
|
+
legendBorderColor: '#000000',
|
|
2777
|
+
legendBorderWidth: 0
|
|
2755
2778
|
};
|
|
2756
2779
|
break;
|
|
2757
2780
|
case 'fluentdark':
|
|
@@ -2772,7 +2795,10 @@ function getThemeStyle(theme) {
|
|
|
2772
2795
|
fontWeight: 'Normal',
|
|
2773
2796
|
subtitleFontSize: '12px',
|
|
2774
2797
|
legendFontSize: '12px',
|
|
2775
|
-
labelFontFamily: 'Segoe UI'
|
|
2798
|
+
labelFontFamily: 'Segoe UI',
|
|
2799
|
+
labelFontSize: '12px',
|
|
2800
|
+
legendBorderColor: '#000000',
|
|
2801
|
+
legendBorderWidth: 0
|
|
2776
2802
|
};
|
|
2777
2803
|
break;
|
|
2778
2804
|
case 'material3':
|
|
@@ -2793,7 +2819,10 @@ function getThemeStyle(theme) {
|
|
|
2793
2819
|
fontWeight: '400',
|
|
2794
2820
|
subtitleFontSize: '14px',
|
|
2795
2821
|
legendFontSize: '14px',
|
|
2796
|
-
labelFontFamily: 'Roboto'
|
|
2822
|
+
labelFontFamily: 'Roboto',
|
|
2823
|
+
labelFontSize: '12px',
|
|
2824
|
+
legendBorderColor: '#000000',
|
|
2825
|
+
legendBorderWidth: 0
|
|
2797
2826
|
};
|
|
2798
2827
|
break;
|
|
2799
2828
|
case 'material3dark':
|
|
@@ -2814,7 +2843,84 @@ function getThemeStyle(theme) {
|
|
|
2814
2843
|
fontWeight: '400',
|
|
2815
2844
|
subtitleFontSize: '14px',
|
|
2816
2845
|
legendFontSize: '14px',
|
|
2817
|
-
labelFontFamily: 'Roboto'
|
|
2846
|
+
labelFontFamily: 'Roboto',
|
|
2847
|
+
labelFontSize: '12px',
|
|
2848
|
+
legendBorderColor: '#000000',
|
|
2849
|
+
legendBorderWidth: 0
|
|
2850
|
+
};
|
|
2851
|
+
break;
|
|
2852
|
+
case 'fluent2':
|
|
2853
|
+
style = {
|
|
2854
|
+
backgroundColor: 'transparent',
|
|
2855
|
+
titleFontColor: '#242424',
|
|
2856
|
+
titleFontWeight: '600',
|
|
2857
|
+
subTitleFontColor: '#242424',
|
|
2858
|
+
tooltipFillColor: '#FFFFFF',
|
|
2859
|
+
tooltipFontColor: '#242424',
|
|
2860
|
+
tooltipFontSize: '12px',
|
|
2861
|
+
tooltipFillOpacity: 1,
|
|
2862
|
+
tooltipTextOpacity: 1,
|
|
2863
|
+
legendTitleColor: '#242424',
|
|
2864
|
+
legendTextColor: '#242424',
|
|
2865
|
+
fontFamily: 'Segoe UI',
|
|
2866
|
+
fontSize: '14px',
|
|
2867
|
+
fontWeight: '400',
|
|
2868
|
+
subtitleFontSize: '12px',
|
|
2869
|
+
legendFontSize: '12px',
|
|
2870
|
+
labelFontFamily: 'Segoe UI',
|
|
2871
|
+
labelFontSize: '10px',
|
|
2872
|
+
legendBorderColor: '#000000',
|
|
2873
|
+
legendBorderWidth: 0
|
|
2874
|
+
};
|
|
2875
|
+
break;
|
|
2876
|
+
case 'fluent2dark':
|
|
2877
|
+
style = {
|
|
2878
|
+
backgroundColor: 'transparent',
|
|
2879
|
+
titleFontColor: '#FFFFFF',
|
|
2880
|
+
titleFontWeight: '600',
|
|
2881
|
+
subTitleFontColor: '#FFFFFF',
|
|
2882
|
+
tooltipFillColor: '#292929',
|
|
2883
|
+
tooltipFontColor: '#FFFFFF',
|
|
2884
|
+
tooltipFontSize: '12px',
|
|
2885
|
+
tooltipFillOpacity: 1,
|
|
2886
|
+
tooltipTextOpacity: 1,
|
|
2887
|
+
legendTitleColor: '#FFFFFF',
|
|
2888
|
+
legendTextColor: '#FFFFFF',
|
|
2889
|
+
fontFamily: 'Segoe UI',
|
|
2890
|
+
fontSize: '14px',
|
|
2891
|
+
fontWeight: '400',
|
|
2892
|
+
subtitleFontSize: '12px',
|
|
2893
|
+
legendFontSize: '12px',
|
|
2894
|
+
labelFontFamily: 'Segoe UI',
|
|
2895
|
+
labelFontSize: '10px',
|
|
2896
|
+
legendBorderColor: '#000000',
|
|
2897
|
+
legendBorderWidth: 0
|
|
2898
|
+
};
|
|
2899
|
+
break;
|
|
2900
|
+
case 'fluent2highcontrast':
|
|
2901
|
+
style = {
|
|
2902
|
+
backgroundColor: 'transparent',
|
|
2903
|
+
titleFontColor: '#FFFFFF',
|
|
2904
|
+
titleFontWeight: '600',
|
|
2905
|
+
subTitleFontColor: '#FFFFFF',
|
|
2906
|
+
tooltipFillColor: '#000000',
|
|
2907
|
+
tooltipFontColor: '#FFFFFF',
|
|
2908
|
+
tooltipFontSize: '12px',
|
|
2909
|
+
tooltipFillOpacity: 1,
|
|
2910
|
+
tooltipTextOpacity: 1,
|
|
2911
|
+
legendTitleColor: '#FFFFFF',
|
|
2912
|
+
legendTextColor: '#FFFFFF',
|
|
2913
|
+
fontFamily: 'Segoe UI',
|
|
2914
|
+
fontSize: '14px',
|
|
2915
|
+
fontWeight: '400',
|
|
2916
|
+
subtitleFontSize: '12px',
|
|
2917
|
+
legendFontSize: '12px',
|
|
2918
|
+
labelFontFamily: 'Segoe UI',
|
|
2919
|
+
labelFontSize: '10px',
|
|
2920
|
+
legendBorderColor: '#FFF',
|
|
2921
|
+
legendBorderWidth: 1,
|
|
2922
|
+
tooltipBorderColor: '#FFF',
|
|
2923
|
+
tooltipBorderWidth: 1
|
|
2818
2924
|
};
|
|
2819
2925
|
break;
|
|
2820
2926
|
default:
|
|
@@ -2832,7 +2938,10 @@ function getThemeStyle(theme) {
|
|
|
2832
2938
|
fontWeight: 'Normal',
|
|
2833
2939
|
subtitleFontSize: '14px',
|
|
2834
2940
|
legendFontSize: '13px',
|
|
2835
|
-
fontFamily: 'Roboto, Noto, Sans-serif'
|
|
2941
|
+
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
2942
|
+
labelFontSize: '12px',
|
|
2943
|
+
legendBorderColor: '#000000',
|
|
2944
|
+
legendBorderWidth: 0
|
|
2836
2945
|
};
|
|
2837
2946
|
break;
|
|
2838
2947
|
}
|
|
@@ -2899,15 +3008,19 @@ class Print {
|
|
|
2899
3008
|
}
|
|
2900
3009
|
else {
|
|
2901
3010
|
const exportElement = treeMap.element.cloneNode(true);
|
|
3011
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2902
3012
|
let backgroundElement = exportElement.getElementsByTagName('svg')[0];
|
|
2903
3013
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
2904
3014
|
backgroundElement = backgroundElement.childNodes[0];
|
|
2905
3015
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
2906
3016
|
const backgroundColor = backgroundElement.getAttribute('fill');
|
|
2907
|
-
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3'
|
|
3017
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
|
|
3018
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
2908
3019
|
backgroundElement.setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
2909
3020
|
}
|
|
2910
|
-
else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark'
|
|
3021
|
+
else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark' ||
|
|
3022
|
+
treeMap.theme === 'Fluent2Dark' || treeMap.theme === 'Fluent2HighContrast')
|
|
3023
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
2911
3024
|
backgroundElement.setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
2912
3025
|
}
|
|
2913
3026
|
}
|
|
@@ -2973,10 +3086,13 @@ class ImageExport {
|
|
|
2973
3086
|
const backgroundElement = exportElement.childNodes[0];
|
|
2974
3087
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
2975
3088
|
const backgroundColor = backgroundElement.getAttribute('fill');
|
|
2976
|
-
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3'
|
|
3089
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
|
|
3090
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
2977
3091
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
2978
3092
|
}
|
|
2979
|
-
else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark'
|
|
3093
|
+
else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark' ||
|
|
3094
|
+
treeMap.theme === 'Fluent2Dark' || treeMap.theme === 'Fluent2HighContrast')
|
|
3095
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
2980
3096
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
2981
3097
|
}
|
|
2982
3098
|
}
|
|
@@ -3071,10 +3187,13 @@ class PdfExport {
|
|
|
3071
3187
|
const backgroundElement = exportElement.childNodes[0];
|
|
3072
3188
|
if (!isNullOrUndefined(backgroundElement)) {
|
|
3073
3189
|
const backgroundColor = backgroundElement.getAttribute('fill');
|
|
3074
|
-
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3'
|
|
3190
|
+
if ((treeMap.theme === 'Tailwind' || treeMap.theme === 'Bootstrap5' || treeMap.theme === 'Fluent' || treeMap.theme === 'Material3' || treeMap.theme === 'Fluent2')
|
|
3191
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
3075
3192
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(255,255,255, 1)');
|
|
3076
3193
|
}
|
|
3077
|
-
else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark'
|
|
3194
|
+
else if ((treeMap.theme === 'TailwindDark' || treeMap.theme === 'Bootstrap5Dark' || treeMap.theme === 'FluentDark' || treeMap.theme === 'Material3Dark' ||
|
|
3195
|
+
treeMap.theme === 'Fluent2Dark' || treeMap.theme === 'Fluent2HighContrast')
|
|
3196
|
+
&& (backgroundColor === 'rgba(255,255,255, 0.0)' || backgroundColor === 'transparent')) {
|
|
3078
3197
|
exportElement.childNodes[0].setAttribute('fill', 'rgba(0, 0, 0, 1)');
|
|
3079
3198
|
}
|
|
3080
3199
|
}
|
|
@@ -3118,7 +3237,7 @@ class PdfExport {
|
|
|
3118
3237
|
/**
|
|
3119
3238
|
* Tree Map Components
|
|
3120
3239
|
*/
|
|
3121
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3240
|
+
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3122
3241
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3123
3242
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3124
3243
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3208,9 +3327,10 @@ let TreeMap = class TreeMap extends Component {
|
|
|
3208
3327
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3209
3328
|
fetchApiModule.onSuccess = (args) => {
|
|
3210
3329
|
if (!isNullOrUndefined(args.type) && args.type === 'application/octet-stream') {
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3330
|
+
const reader = new FileReader();
|
|
3331
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
3332
|
+
const treemap = this;
|
|
3333
|
+
reader.onload = function () {
|
|
3214
3334
|
args = JSON.parse(reader.result.toString());
|
|
3215
3335
|
treemap.dataSource = args;
|
|
3216
3336
|
treemap.renderTreeMapElements();
|
|
@@ -3486,19 +3606,21 @@ let TreeMap = class TreeMap extends Component {
|
|
|
3486
3606
|
if (dataCount === this.treemapLevelData.hierarchyData.length - 1) {
|
|
3487
3607
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3488
3608
|
let mainData = this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath];
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3609
|
+
if (!isNullOrUndefined(mainData)) {
|
|
3610
|
+
for (let k = 0; k < this.treemapLevelData.hierarchyData.length; k++) {
|
|
3611
|
+
childData = findChildren(this.treemapLevelData.hierarchyData[k])['values'];
|
|
3612
|
+
if (k !== 0 && childData) {
|
|
3613
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3614
|
+
childData.forEach((currentData) => { mainData.push(currentData); });
|
|
3615
|
+
this.treemapLevelData.hierarchyData.splice(k, 1);
|
|
3616
|
+
k -= 1;
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
mainData = this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath];
|
|
3620
|
+
for (let l = 0; l < mainData.length; l++) {
|
|
3621
|
+
newData[this.levels[0].groupPath] = mainData;
|
|
3622
|
+
mainData[l]['parent'] = newData;
|
|
3496
3623
|
}
|
|
3497
|
-
}
|
|
3498
|
-
mainData = this.treemapLevelData.hierarchyData[0][this.levels[0].groupPath];
|
|
3499
|
-
for (let l = 0; l < mainData.length; l++) {
|
|
3500
|
-
newData[this.levels[0].groupPath] = mainData;
|
|
3501
|
-
mainData[l]['parent'] = newData;
|
|
3502
3624
|
}
|
|
3503
3625
|
}
|
|
3504
3626
|
}
|
|
@@ -3866,7 +3988,7 @@ let TreeMap = class TreeMap extends Component {
|
|
|
3866
3988
|
* @returns {any} - Returns label of the drilled level.
|
|
3867
3989
|
* @private
|
|
3868
3990
|
*/
|
|
3869
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3991
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3870
3992
|
calculateSelectedTextLevels(labelText, item) {
|
|
3871
3993
|
//to find the levels by clicking the particular text both for drillDownView as true / false.
|
|
3872
3994
|
let drillLevel;
|
|
@@ -3891,7 +4013,7 @@ let TreeMap = class TreeMap extends Component {
|
|
|
3891
4013
|
* @returns {boolean} - check whether it is previous level or not.
|
|
3892
4014
|
* @private
|
|
3893
4015
|
*/
|
|
3894
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4016
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3895
4017
|
calculatePreviousLevelChildItems(drillLevelValues, item, directLevel) {
|
|
3896
4018
|
//By clicking any child items drilldown to the particular level.
|
|
3897
4019
|
//At the time store all the previous drilled level items in drilledItems
|
|
@@ -3932,7 +4054,7 @@ let TreeMap = class TreeMap extends Component {
|
|
|
3932
4054
|
* @returns {any} - return the new drill down object.
|
|
3933
4055
|
* @private
|
|
3934
4056
|
*/
|
|
3935
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4057
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3936
4058
|
compareSelectedLabelWithDrillDownItems(drillLevelValues, item, i) {
|
|
3937
4059
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3938
4060
|
let drillLevelChild;
|
|
@@ -3970,7 +4092,6 @@ let TreeMap = class TreeMap extends Component {
|
|
|
3970
4092
|
let index;
|
|
3971
4093
|
let newDrillItem = {};
|
|
3972
4094
|
let item;
|
|
3973
|
-
const process = true;
|
|
3974
4095
|
const layoutID = this.element.id + '_TreeMap_' + this.layoutType + '_Layout';
|
|
3975
4096
|
let drillLevel;
|
|
3976
4097
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -4085,7 +4206,7 @@ let TreeMap = class TreeMap extends Component {
|
|
|
4085
4206
|
});
|
|
4086
4207
|
endEvent = { cancel: false, name: drillEnd, treemap: this, renderItems: this.layout.renderItems };
|
|
4087
4208
|
this.trigger(drillEnd, endEvent);
|
|
4088
|
-
|
|
4209
|
+
{
|
|
4089
4210
|
if (!directLevel && isNullOrUndefined(drillLevel)) {
|
|
4090
4211
|
this.drilledItems.push({ name: item['levelOrderName'], data: item });
|
|
4091
4212
|
}
|
|
@@ -4291,163 +4412,163 @@ let TreeMap = class TreeMap extends Component {
|
|
|
4291
4412
|
return '';
|
|
4292
4413
|
}
|
|
4293
4414
|
};
|
|
4294
|
-
__decorate([
|
|
4415
|
+
__decorate$1([
|
|
4295
4416
|
Property(false)
|
|
4296
4417
|
], TreeMap.prototype, "allowPrint", void 0);
|
|
4297
|
-
__decorate([
|
|
4418
|
+
__decorate$1([
|
|
4298
4419
|
Property(false)
|
|
4299
4420
|
], TreeMap.prototype, "allowImageExport", void 0);
|
|
4300
|
-
__decorate([
|
|
4421
|
+
__decorate$1([
|
|
4301
4422
|
Property(false)
|
|
4302
4423
|
], TreeMap.prototype, "allowPdfExport", void 0);
|
|
4303
|
-
__decorate([
|
|
4424
|
+
__decorate$1([
|
|
4304
4425
|
Property(null)
|
|
4305
4426
|
], TreeMap.prototype, "width", void 0);
|
|
4306
|
-
__decorate([
|
|
4427
|
+
__decorate$1([
|
|
4307
4428
|
Property(null)
|
|
4308
4429
|
], TreeMap.prototype, "height", void 0);
|
|
4309
|
-
__decorate([
|
|
4430
|
+
__decorate$1([
|
|
4310
4431
|
Complex({}, Border)
|
|
4311
4432
|
], TreeMap.prototype, "border", void 0);
|
|
4312
|
-
__decorate([
|
|
4433
|
+
__decorate$1([
|
|
4313
4434
|
Complex({}, Margin)
|
|
4314
4435
|
], TreeMap.prototype, "margin", void 0);
|
|
4315
|
-
__decorate([
|
|
4436
|
+
__decorate$1([
|
|
4316
4437
|
Property(null)
|
|
4317
4438
|
], TreeMap.prototype, "background", void 0);
|
|
4318
|
-
__decorate([
|
|
4439
|
+
__decorate$1([
|
|
4319
4440
|
Property('Material')
|
|
4320
4441
|
], TreeMap.prototype, "theme", void 0);
|
|
4321
|
-
__decorate([
|
|
4442
|
+
__decorate$1([
|
|
4322
4443
|
Complex({}, TitleSettings)
|
|
4323
4444
|
], TreeMap.prototype, "titleSettings", void 0);
|
|
4324
|
-
__decorate([
|
|
4445
|
+
__decorate$1([
|
|
4325
4446
|
Property('Squarified')
|
|
4326
4447
|
], TreeMap.prototype, "layoutType", void 0);
|
|
4327
|
-
__decorate([
|
|
4448
|
+
__decorate$1([
|
|
4328
4449
|
Property(null)
|
|
4329
4450
|
], TreeMap.prototype, "dataSource", void 0);
|
|
4330
|
-
__decorate([
|
|
4451
|
+
__decorate$1([
|
|
4331
4452
|
Property(null)
|
|
4332
4453
|
], TreeMap.prototype, "query", void 0);
|
|
4333
|
-
__decorate([
|
|
4454
|
+
__decorate$1([
|
|
4334
4455
|
Property(null)
|
|
4335
4456
|
], TreeMap.prototype, "weightValuePath", void 0);
|
|
4336
|
-
__decorate([
|
|
4457
|
+
__decorate$1([
|
|
4337
4458
|
Property('')
|
|
4338
4459
|
], TreeMap.prototype, "rangeColorValuePath", void 0);
|
|
4339
|
-
__decorate([
|
|
4460
|
+
__decorate$1([
|
|
4340
4461
|
Property('')
|
|
4341
4462
|
], TreeMap.prototype, "equalColorValuePath", void 0);
|
|
4342
|
-
__decorate([
|
|
4463
|
+
__decorate$1([
|
|
4343
4464
|
Property(null)
|
|
4344
4465
|
], TreeMap.prototype, "colorValuePath", void 0);
|
|
4345
|
-
__decorate([
|
|
4466
|
+
__decorate$1([
|
|
4346
4467
|
Property([])
|
|
4347
4468
|
], TreeMap.prototype, "palette", void 0);
|
|
4348
|
-
__decorate([
|
|
4469
|
+
__decorate$1([
|
|
4349
4470
|
Property('TopLeftBottomRight')
|
|
4350
4471
|
], TreeMap.prototype, "renderDirection", void 0);
|
|
4351
|
-
__decorate([
|
|
4472
|
+
__decorate$1([
|
|
4352
4473
|
Property(false)
|
|
4353
4474
|
], TreeMap.prototype, "enableDrillDown", void 0);
|
|
4354
|
-
__decorate([
|
|
4475
|
+
__decorate$1([
|
|
4355
4476
|
Property(false)
|
|
4356
4477
|
], TreeMap.prototype, "enableBreadcrumb", void 0);
|
|
4357
|
-
__decorate([
|
|
4478
|
+
__decorate$1([
|
|
4358
4479
|
Property(' - ')
|
|
4359
4480
|
], TreeMap.prototype, "breadcrumbConnector", void 0);
|
|
4360
|
-
__decorate([
|
|
4481
|
+
__decorate$1([
|
|
4361
4482
|
Property(false)
|
|
4362
4483
|
], TreeMap.prototype, "drillDownView", void 0);
|
|
4363
|
-
__decorate([
|
|
4484
|
+
__decorate$1([
|
|
4364
4485
|
Complex({}, InitialDrillSettings)
|
|
4365
4486
|
], TreeMap.prototype, "initialDrillDown", void 0);
|
|
4366
|
-
__decorate([
|
|
4487
|
+
__decorate$1([
|
|
4367
4488
|
Complex({}, LeafItemSettings)
|
|
4368
4489
|
], TreeMap.prototype, "leafItemSettings", void 0);
|
|
4369
|
-
__decorate([
|
|
4490
|
+
__decorate$1([
|
|
4370
4491
|
Collection([], LevelSettings)
|
|
4371
4492
|
], TreeMap.prototype, "levels", void 0);
|
|
4372
|
-
__decorate([
|
|
4493
|
+
__decorate$1([
|
|
4373
4494
|
Complex({}, HighlightSettings)
|
|
4374
4495
|
], TreeMap.prototype, "highlightSettings", void 0);
|
|
4375
|
-
__decorate([
|
|
4496
|
+
__decorate$1([
|
|
4376
4497
|
Complex({}, SelectionSettings)
|
|
4377
4498
|
], TreeMap.prototype, "selectionSettings", void 0);
|
|
4378
|
-
__decorate([
|
|
4499
|
+
__decorate$1([
|
|
4379
4500
|
Complex({}, TooltipSettings)
|
|
4380
4501
|
], TreeMap.prototype, "tooltipSettings", void 0);
|
|
4381
|
-
__decorate([
|
|
4502
|
+
__decorate$1([
|
|
4382
4503
|
Complex({}, LegendSettings)
|
|
4383
4504
|
], TreeMap.prototype, "legendSettings", void 0);
|
|
4384
|
-
__decorate([
|
|
4505
|
+
__decorate$1([
|
|
4385
4506
|
Property(false)
|
|
4386
4507
|
], TreeMap.prototype, "useGroupingSeparator", void 0);
|
|
4387
|
-
__decorate([
|
|
4508
|
+
__decorate$1([
|
|
4388
4509
|
Property(null)
|
|
4389
4510
|
], TreeMap.prototype, "description", void 0);
|
|
4390
|
-
__decorate([
|
|
4511
|
+
__decorate$1([
|
|
4391
4512
|
Property(0)
|
|
4392
4513
|
], TreeMap.prototype, "tabIndex", void 0);
|
|
4393
|
-
__decorate([
|
|
4514
|
+
__decorate$1([
|
|
4394
4515
|
Property(null)
|
|
4395
4516
|
], TreeMap.prototype, "format", void 0);
|
|
4396
|
-
__decorate([
|
|
4517
|
+
__decorate$1([
|
|
4397
4518
|
Event()
|
|
4398
4519
|
], TreeMap.prototype, "load", void 0);
|
|
4399
|
-
__decorate([
|
|
4520
|
+
__decorate$1([
|
|
4400
4521
|
Event()
|
|
4401
4522
|
], TreeMap.prototype, "beforePrint", void 0);
|
|
4402
|
-
__decorate([
|
|
4523
|
+
__decorate$1([
|
|
4403
4524
|
Event()
|
|
4404
4525
|
], TreeMap.prototype, "loaded", void 0);
|
|
4405
|
-
__decorate([
|
|
4526
|
+
__decorate$1([
|
|
4406
4527
|
Event()
|
|
4407
4528
|
], TreeMap.prototype, "itemRendering", void 0);
|
|
4408
|
-
__decorate([
|
|
4529
|
+
__decorate$1([
|
|
4409
4530
|
Event()
|
|
4410
4531
|
], TreeMap.prototype, "drillStart", void 0);
|
|
4411
|
-
__decorate([
|
|
4532
|
+
__decorate$1([
|
|
4412
4533
|
Event()
|
|
4413
4534
|
], TreeMap.prototype, "drillEnd", void 0);
|
|
4414
|
-
__decorate([
|
|
4535
|
+
__decorate$1([
|
|
4415
4536
|
Event()
|
|
4416
4537
|
], TreeMap.prototype, "itemSelected", void 0);
|
|
4417
|
-
__decorate([
|
|
4538
|
+
__decorate$1([
|
|
4418
4539
|
Event()
|
|
4419
4540
|
], TreeMap.prototype, "itemHighlight", void 0);
|
|
4420
|
-
__decorate([
|
|
4541
|
+
__decorate$1([
|
|
4421
4542
|
Event()
|
|
4422
4543
|
], TreeMap.prototype, "tooltipRendering", void 0);
|
|
4423
|
-
__decorate([
|
|
4544
|
+
__decorate$1([
|
|
4424
4545
|
Event()
|
|
4425
4546
|
], TreeMap.prototype, "itemClick", void 0);
|
|
4426
|
-
__decorate([
|
|
4547
|
+
__decorate$1([
|
|
4427
4548
|
Event()
|
|
4428
4549
|
], TreeMap.prototype, "itemMove", void 0);
|
|
4429
|
-
__decorate([
|
|
4550
|
+
__decorate$1([
|
|
4430
4551
|
Event()
|
|
4431
4552
|
], TreeMap.prototype, "click", void 0);
|
|
4432
|
-
__decorate([
|
|
4553
|
+
__decorate$1([
|
|
4433
4554
|
Event()
|
|
4434
4555
|
], TreeMap.prototype, "doubleClick", void 0);
|
|
4435
|
-
__decorate([
|
|
4556
|
+
__decorate$1([
|
|
4436
4557
|
Event()
|
|
4437
4558
|
], TreeMap.prototype, "rightClick", void 0);
|
|
4438
|
-
__decorate([
|
|
4559
|
+
__decorate$1([
|
|
4439
4560
|
Event()
|
|
4440
4561
|
], TreeMap.prototype, "mouseMove", void 0);
|
|
4441
|
-
__decorate([
|
|
4562
|
+
__decorate$1([
|
|
4442
4563
|
Event()
|
|
4443
4564
|
], TreeMap.prototype, "resize", void 0);
|
|
4444
|
-
__decorate([
|
|
4565
|
+
__decorate$1([
|
|
4445
4566
|
Event()
|
|
4446
4567
|
], TreeMap.prototype, "legendItemRendering", void 0);
|
|
4447
|
-
__decorate([
|
|
4568
|
+
__decorate$1([
|
|
4448
4569
|
Event()
|
|
4449
4570
|
], TreeMap.prototype, "legendRendering", void 0);
|
|
4450
|
-
TreeMap = __decorate([
|
|
4571
|
+
TreeMap = __decorate$1([
|
|
4451
4572
|
NotifyPropertyChanges
|
|
4452
4573
|
], TreeMap);
|
|
4453
4574
|
/**
|
|
@@ -4475,9 +4596,10 @@ class TreeMapLegend {
|
|
|
4475
4596
|
this.treemap = treemap;
|
|
4476
4597
|
this.addEventListener();
|
|
4477
4598
|
}
|
|
4478
|
-
// eslint-disable-next-line valid-jsdoc
|
|
4479
4599
|
/**
|
|
4480
4600
|
* method for legend
|
|
4601
|
+
*
|
|
4602
|
+
* @returns {void}
|
|
4481
4603
|
* @private
|
|
4482
4604
|
*/
|
|
4483
4605
|
renderLegend() {
|
|
@@ -4511,7 +4633,7 @@ class TreeMapLegend {
|
|
|
4511
4633
|
const treemap = this.treemap;
|
|
4512
4634
|
const legend = treemap.legendSettings;
|
|
4513
4635
|
this.findColorMappingLegendItems(treemap.treemapLevelData.levelsData[0]);
|
|
4514
|
-
if ((this.treemap.palette.length > 0 || !isNullOrUndefined(treemap.colorValuePath))
|
|
4636
|
+
if (((!isNullOrUndefined(this.treemap.palette) && this.treemap.palette.length > 0) || !isNullOrUndefined(treemap.colorValuePath))
|
|
4515
4637
|
&& this.legendCollections.length === 0) {
|
|
4516
4638
|
this.findPaletteLegendItems(treemap.treemapLevelData.levelsData[0]);
|
|
4517
4639
|
}
|
|
@@ -4862,38 +4984,38 @@ class TreeMapLegend {
|
|
|
4862
4984
|
isLeafItem = (this.treemap.levels.length === 0 || groupIndex === this.treemap.levels.length);
|
|
4863
4985
|
colorMapping = isLeafItem ? leaf.colorMapping : levels[groupIndex].colorMapping;
|
|
4864
4986
|
for (let j = 0; j < colorMapping.length; j++) {
|
|
4865
|
-
const colorMap
|
|
4987
|
+
const colorMap = colorMapping[j];
|
|
4866
4988
|
gradientElement = null;
|
|
4867
4989
|
rangeValue = Number(currentData[this.treemap.rangeColorValuePath]);
|
|
4868
4990
|
equalValue = currentData[this.treemap.equalColorValuePath];
|
|
4869
|
-
colorMap
|
|
4870
|
-
if (!isNullOrUndefined(colorMap
|
|
4871
|
-
rangeValue >= colorMap
|
|
4991
|
+
colorMap.value = !isNullOrUndefined(colorMap.value) ? colorMap.value.toString() : colorMap.value;
|
|
4992
|
+
if (!isNullOrUndefined(colorMap.from) && !isNullOrUndefined(colorMap.to) &&
|
|
4993
|
+
rangeValue >= colorMap.from && rangeValue <= colorMap.to && colorMap.showLegend) {
|
|
4872
4994
|
colorMapProcess = true;
|
|
4873
4995
|
isRange = true;
|
|
4874
|
-
actualValue = colorMap
|
|
4875
|
-
legendText = !isNullOrUndefined(colorMap
|
|
4876
|
-
fill = isNullOrUndefined(colorMap
|
|
4996
|
+
actualValue = colorMap.from + ' - ' + colorMap.to;
|
|
4997
|
+
legendText = !isNullOrUndefined(colorMap.label) ? colorMap.label : colorMap.from + ' - ' + colorMap.to;
|
|
4998
|
+
fill = isNullOrUndefined(colorMap.color) ? fill : colorMap.color;
|
|
4877
4999
|
isAddData = this.isAddNewLegendData(actualValue);
|
|
4878
5000
|
}
|
|
4879
|
-
else if (!isNullOrUndefined(colorMap
|
|
5001
|
+
else if (!isNullOrUndefined(colorMap.value) && equalValue === colorMap.value && colorMap.showLegend) {
|
|
4880
5002
|
colorMapProcess = true;
|
|
4881
5003
|
isEqualColor = true;
|
|
4882
|
-
actualValue = colorMap
|
|
4883
|
-
legendText = !isNullOrUndefined(colorMap
|
|
4884
|
-
fill = isNullOrUndefined(colorMap
|
|
4885
|
-
Object.prototype.toString.call(colorMap
|
|
5004
|
+
actualValue = colorMap.value.toString();
|
|
5005
|
+
legendText = !isNullOrUndefined(colorMap.label) ? colorMap.label : colorMap.value.toString();
|
|
5006
|
+
fill = isNullOrUndefined(colorMap.color) ? fill :
|
|
5007
|
+
Object.prototype.toString.call(colorMap.color) === '[object Array]' ? colorMap.color[0] : colorMap.color;
|
|
4886
5008
|
isAddData = this.isAddNewLegendData(actualValue);
|
|
4887
5009
|
}
|
|
4888
|
-
if (colorMapProcess && isNullOrUndefined(colorMap
|
|
5010
|
+
if (colorMapProcess && isNullOrUndefined(colorMap.value) && colorMap.maxOpacity && colorMap.minOpacity
|
|
4889
5011
|
&& this.treemap.legendSettings.mode === 'Interactive') {
|
|
4890
5012
|
const colors = [];
|
|
4891
5013
|
isDesaturation = true;
|
|
4892
|
-
if (Object.prototype.toString.call(colorMap
|
|
4893
|
-
for (let q = 0; q < colorMap
|
|
4894
|
-
const offsetColor = 100 / (colorMap
|
|
5014
|
+
if (Object.prototype.toString.call(colorMap.color) === '[object Array]') {
|
|
5015
|
+
for (let q = 0; q < colorMap.color.length; q++) {
|
|
5016
|
+
const offsetColor = 100 / (colorMap.color.length - 1);
|
|
4895
5017
|
const offsetValue = q * offsetColor + '%';
|
|
4896
|
-
const stop1Color = { colorStop: offsetValue.toString(), color: colorMap
|
|
5018
|
+
const stop1Color = { colorStop: offsetValue.toString(), color: colorMap.color[q] };
|
|
4897
5019
|
colors.push(stop1Color);
|
|
4898
5020
|
}
|
|
4899
5021
|
}
|
|
@@ -4909,9 +5031,9 @@ class TreeMapLegend {
|
|
|
4909
5031
|
id: 'groupIndex_' + groupIndex + '_colorIndex_' + this.gradientCount, x1: '0%', y1: '0%', x2: x2, y2: y2
|
|
4910
5032
|
};
|
|
4911
5033
|
gradientElement = this.treemap.renderer.drawGradient('linearGradient', gradient, colors).childNodes[0];
|
|
4912
|
-
if (Object.prototype.toString.call(colorMap
|
|
4913
|
-
gradientElement.childNodes[0].setAttribute('stop-opacity', colorMap
|
|
4914
|
-
gradientElement.childNodes[1].setAttribute('stop-opacity', colorMap
|
|
5034
|
+
if (Object.prototype.toString.call(colorMap.color) !== '[object Array]') {
|
|
5035
|
+
gradientElement.childNodes[0].setAttribute('stop-opacity', colorMap.minOpacity.toString());
|
|
5036
|
+
gradientElement.childNodes[1].setAttribute('stop-opacity', colorMap.maxOpacity.toString());
|
|
4915
5037
|
}
|
|
4916
5038
|
this.defsElement.appendChild(gradientElement);
|
|
4917
5039
|
this.gradientCount++;
|
|
@@ -4920,12 +5042,12 @@ class TreeMapLegend {
|
|
|
4920
5042
|
this.removeDuplicates(this.legendCollections, legendText) : false;
|
|
4921
5043
|
if (isAddData && isAddData['process'] && colorMapProcess && !isDuplicate) {
|
|
4922
5044
|
colorMapProcess = false;
|
|
4923
|
-
fill = ((Object.prototype.toString.call(colorMap
|
|
4924
|
-
&& isNullOrUndefined(colorMap
|
|
5045
|
+
fill = ((Object.prototype.toString.call(colorMap.color) === '[object Array]')) && isNullOrUndefined(gradientElement)
|
|
5046
|
+
&& isNullOrUndefined(colorMap.value) ? this.legendGradientColor(colorMap, legendIndex) : fill;
|
|
4925
5047
|
this.legendCollections.push({
|
|
4926
5048
|
actualValue: actualValue, levelIndex: !isLeafItem ? j : -1, leafIndex: isLeafItem ? j : -1,
|
|
4927
5049
|
legendName: legendText, legendFill: fill, legendData: [], groupIndex: !isLeafItem ? groupIndex : -1,
|
|
4928
|
-
gradientElement: !isNullOrUndefined(gradientElement) ? gradientElement : isNullOrUndefined(colorMap
|
|
5050
|
+
gradientElement: !isNullOrUndefined(gradientElement) ? gradientElement : isNullOrUndefined(colorMap.value)
|
|
4929
5051
|
? this.legendLinearGradient : null, name: data[i]['name'],
|
|
4930
5052
|
opacity: this.treemap.legendSettings.opacity, borderColor: this.treemap.legendSettings.border.color,
|
|
4931
5053
|
borderWidth: this.treemap.legendSettings.border.width
|
|
@@ -4940,13 +5062,13 @@ class TreeMapLegend {
|
|
|
4940
5062
|
this.legendCollections[isAddData['value']]['legendData'].push(data[i]);
|
|
4941
5063
|
}
|
|
4942
5064
|
if (!isRange && !isDesaturation && !isEqualColor) {
|
|
4943
|
-
if (isNullOrUndefined(colorMap
|
|
4944
|
-
&& isNullOrUndefined(colorMap
|
|
4945
|
-
isNullOrUndefined(colorMap
|
|
4946
|
-
!isNullOrUndefined(colorMap
|
|
4947
|
-
outfill = ((Object.prototype.toString.call(colorMap
|
|
4948
|
-
? colorMap
|
|
4949
|
-
labelLegend = !isNullOrUndefined(colorMap
|
|
5065
|
+
if (isNullOrUndefined(colorMap.from) && isNullOrUndefined(colorMap.to)
|
|
5066
|
+
&& isNullOrUndefined(colorMap.minOpacity) &&
|
|
5067
|
+
isNullOrUndefined(colorMap.maxOpacity) && isNullOrUndefined(colorMap.value) &&
|
|
5068
|
+
!isNullOrUndefined(colorMap.color)) {
|
|
5069
|
+
outfill = ((Object.prototype.toString.call(colorMap.color) === '[object Array]'))
|
|
5070
|
+
? colorMap.color[0] : colorMap.color;
|
|
5071
|
+
labelLegend = !isNullOrUndefined(colorMap.label) ? colorMap.label : 'Others';
|
|
4950
5072
|
if (isNullOrUndefined(this.outOfRangeLegend)) {
|
|
4951
5073
|
this.legendCollections.push({
|
|
4952
5074
|
actualValue: labelLegend, legendData: [],
|
|
@@ -5001,6 +5123,7 @@ class TreeMapLegend {
|
|
|
5001
5123
|
// eslint-disable-next-line valid-jsdoc
|
|
5002
5124
|
/**
|
|
5003
5125
|
* To draw the legend
|
|
5126
|
+
*
|
|
5004
5127
|
* @private
|
|
5005
5128
|
*/
|
|
5006
5129
|
drawLegend() {
|
|
@@ -5113,7 +5236,7 @@ class TreeMapLegend {
|
|
|
5113
5236
|
};
|
|
5114
5237
|
treemap.trigger(legendItemRendering, eventArgs, (observedArgs) => {
|
|
5115
5238
|
const renderOptions = new PathOption(shapeId, observedArgs.fill, strokeWidth, isLineShape ? collection['Fill'] : strokeColor, legend.opacity, '');
|
|
5116
|
-
legendElement.appendChild(drawSymbol(shapeLocation, observedArgs.shape, shapeSize, observedArgs.imageUrl, renderOptions
|
|
5239
|
+
legendElement.appendChild(drawSymbol(shapeLocation, observedArgs.shape, shapeSize, observedArgs.imageUrl, renderOptions));
|
|
5117
5240
|
textOptions = new TextOption(textId, textLocation.x, textLocation.y, 'start', legendText, '', '');
|
|
5118
5241
|
renderTextElement(textOptions, legend.textStyle, legend.textStyle.color || treemap.themeStyle.legendTextColor, legendElement);
|
|
5119
5242
|
this.legendGroup.appendChild(legendElement);
|
|
@@ -5182,7 +5305,11 @@ class TreeMapLegend {
|
|
|
5182
5305
|
const textSize = measureText(title, textStyle);
|
|
5183
5306
|
this.legendBorderRect = new Rect((this.legendItemRect.x - spacing), (this.legendItemRect.y - spacing - textSize.height), (this.legendItemRect.width) + (spacing * 2), (this.legendItemRect.height) + (spacing * 2) + textSize.height +
|
|
5184
5307
|
(legend.mode === 'Interactive' ? 0 : (this.page !== 0) ? spacing : 0));
|
|
5185
|
-
|
|
5308
|
+
let borderStyle = {
|
|
5309
|
+
color: legend.border.color || this.treemap.themeStyle.legendBorderColor,
|
|
5310
|
+
width: legend.border.width || this.treemap.themeStyle.legendBorderWidth
|
|
5311
|
+
};
|
|
5312
|
+
const renderOptions = new RectOption(treemap.element.id + '_Legend_Border', legend.background, borderStyle, 1, this.legendBorderRect, '');
|
|
5186
5313
|
const legendBorder = treemap.renderer.drawRectangle(renderOptions);
|
|
5187
5314
|
legendBorder.style.pointerEvents = 'none';
|
|
5188
5315
|
this.legendGroup.appendChild(legendBorder);
|
|
@@ -5201,7 +5328,8 @@ class TreeMapLegend {
|
|
|
5201
5328
|
const textSize = measureText(trimTitle, textStyle);
|
|
5202
5329
|
if (legendTitle) {
|
|
5203
5330
|
textOptions = new TextOption(this.treemap.element.id + '_LegendTitle', (this.legendItemRect.x) + (this.legendItemRect.width / 2), this.legendItemRect.y - (textSize.height / 2) - (spacing / 2), 'middle', trimTitle, '');
|
|
5204
|
-
|
|
5331
|
+
const textElement = renderTextElement(textOptions, textStyle, textStyle.color ||
|
|
5332
|
+
this.treemap.themeStyle.legendTitleColor, this.legendGroup);
|
|
5205
5333
|
textElement.setAttribute('role', 'region');
|
|
5206
5334
|
textElement.setAttribute('aria-label', legendTitle);
|
|
5207
5335
|
}
|
|
@@ -5353,8 +5481,11 @@ class TreeMapLegend {
|
|
|
5353
5481
|
this.translate = new Location(x, y);
|
|
5354
5482
|
}
|
|
5355
5483
|
}
|
|
5356
|
-
|
|
5357
|
-
|
|
5484
|
+
/**
|
|
5485
|
+
* @param {PointerEvent} e - Specifies the event.
|
|
5486
|
+
* @returns {void}
|
|
5487
|
+
* @private
|
|
5488
|
+
*/
|
|
5358
5489
|
mouseUpHandler(e) {
|
|
5359
5490
|
this.renderInteractivePointer(e);
|
|
5360
5491
|
clearTimeout(this.clearTimeout);
|
|
@@ -5363,6 +5494,7 @@ class TreeMapLegend {
|
|
|
5363
5494
|
// eslint-disable-next-line valid-jsdoc
|
|
5364
5495
|
/**
|
|
5365
5496
|
* To remove the interactive pointer
|
|
5497
|
+
*
|
|
5366
5498
|
* @private
|
|
5367
5499
|
*/
|
|
5368
5500
|
removeInteractivePointer() {
|
|
@@ -5401,6 +5533,7 @@ class TreeMapLegend {
|
|
|
5401
5533
|
// eslint-disable-next-line valid-jsdoc
|
|
5402
5534
|
/**
|
|
5403
5535
|
* To add the event listener
|
|
5536
|
+
*
|
|
5404
5537
|
* @private
|
|
5405
5538
|
*/
|
|
5406
5539
|
addEventListener() {
|
|
@@ -5413,6 +5546,7 @@ class TreeMapLegend {
|
|
|
5413
5546
|
// eslint-disable-next-line valid-jsdoc
|
|
5414
5547
|
/**
|
|
5415
5548
|
* To remove the event listener
|
|
5549
|
+
*
|
|
5416
5550
|
* @private
|
|
5417
5551
|
*/
|
|
5418
5552
|
removeEventListener() {
|
|
@@ -5462,10 +5596,10 @@ class TreeMapLegend {
|
|
|
5462
5596
|
* @returns {string} - Returns the legend color.
|
|
5463
5597
|
* @private
|
|
5464
5598
|
*/
|
|
5465
|
-
legendGradientColor(colorMap
|
|
5599
|
+
legendGradientColor(colorMap, legendIndex) {
|
|
5466
5600
|
let legendFillColor;
|
|
5467
5601
|
const xmlns = 'http://www.w3.org/2000/svg';
|
|
5468
|
-
if (!isNullOrUndefined(colorMap
|
|
5602
|
+
if (!isNullOrUndefined(colorMap.color) && Object.prototype.toString.call(colorMap.color) === '[object Array]') {
|
|
5469
5603
|
const defElement = this.treemap.renderer.createDefs();
|
|
5470
5604
|
const linerGradientEle = document.createElementNS(xmlns, 'linearGradient');
|
|
5471
5605
|
const opacity = 1;
|
|
@@ -5477,11 +5611,11 @@ class TreeMapLegend {
|
|
|
5477
5611
|
linerGradientEle.setAttribute('y1', 0 + '%');
|
|
5478
5612
|
linerGradientEle.setAttribute('x2', x2 + '%');
|
|
5479
5613
|
linerGradientEle.setAttribute('y2', y2 + '%');
|
|
5480
|
-
for (let b = 0; b < colorMap
|
|
5481
|
-
const offsetColor = 100 / (colorMap
|
|
5614
|
+
for (let b = 0; b < colorMap.color.length; b++) {
|
|
5615
|
+
const offsetColor = 100 / (colorMap.color.length - 1);
|
|
5482
5616
|
const stopEle = document.createElementNS(xmlns, 'stop');
|
|
5483
5617
|
stopEle.setAttribute('offset', b * offsetColor + '%');
|
|
5484
|
-
stopEle.setAttribute('stop-color', colorMap
|
|
5618
|
+
stopEle.setAttribute('stop-color', colorMap.color[b]);
|
|
5485
5619
|
stopEle.setAttribute('stop-opacity', opacity.toString());
|
|
5486
5620
|
linerGradientEle.appendChild(stopEle);
|
|
5487
5621
|
}
|
|
@@ -5641,13 +5775,13 @@ class TreeMapHighlight {
|
|
|
5641
5775
|
}
|
|
5642
5776
|
else {
|
|
5643
5777
|
if (selectionModule ? this.shapeElement ? this.shapeElement.getAttribute('id') !== selectionModule.legendSelectId : true : true) {
|
|
5644
|
-
if (selectionModule ? this.shapeElement !== selectionModule.shapeElement :
|
|
5778
|
+
if (selectionModule ? this.shapeElement !== selectionModule.shapeElement : this.treemap.legendSettings.visible) {
|
|
5645
5779
|
removeClassNames(document.getElementsByClassName('treeMapHighLight'), 'treeMapHighLight', treemap);
|
|
5646
5780
|
}
|
|
5647
5781
|
}
|
|
5648
5782
|
if ((this.shapeTarget === 'highlight' || this.target === 'highlight') && this.treemap.legendSettings.visible) {
|
|
5649
5783
|
if (selectionModule ? this.shapeElement ? this.shapeElement.getAttribute('id') !== selectionModule.legendSelectId : true : true) {
|
|
5650
|
-
if (selectionModule ? this.shapeElement !== selectionModule.shapeElement :
|
|
5784
|
+
if (selectionModule ? this.shapeElement !== selectionModule.shapeElement : selectionModule ?
|
|
5651
5785
|
selectionModule.legendSelect : true) {
|
|
5652
5786
|
removeShape(this.shapeHighlightCollection);
|
|
5653
5787
|
this.shapeHighlightCollection = [];
|
|
@@ -6062,11 +6196,13 @@ class TreeMapTooltip {
|
|
|
6062
6196
|
markerFill = item['options']['fill'];
|
|
6063
6197
|
}
|
|
6064
6198
|
if (this.treemap.enableRtl) {
|
|
6065
|
-
tooltipContent = [(!isNullOrUndefined(this.tooltipSettings.format) ?
|
|
6199
|
+
tooltipContent = [(!isNullOrUndefined(this.tooltipSettings.format) ?
|
|
6200
|
+
textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) : null)
|
|
6066
6201
|
|| formatValue(value, this.treemap) + ' : ' + this.treemap.weightValuePath.toString()];
|
|
6067
6202
|
}
|
|
6068
6203
|
else {
|
|
6069
|
-
tooltipContent = [(!isNullOrUndefined(this.tooltipSettings.format) ?
|
|
6204
|
+
tooltipContent = [(!isNullOrUndefined(this.tooltipSettings.format) ?
|
|
6205
|
+
textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) : null)
|
|
6070
6206
|
|| this.treemap.weightValuePath.toString() + ' : ' + formatValue(value, this.treemap)];
|
|
6071
6207
|
}
|
|
6072
6208
|
if (document.getElementById(this.tooltipId)) {
|
|
@@ -6090,10 +6226,14 @@ class TreeMapTooltip {
|
|
|
6090
6226
|
|| this.tooltipSettings.textStyle.color;
|
|
6091
6227
|
this.tooltipSettings.textStyle.opacity = this.treemap.themeStyle.tooltipTextOpacity
|
|
6092
6228
|
|| this.tooltipSettings.textStyle.opacity;
|
|
6229
|
+
let border = {
|
|
6230
|
+
width: this.tooltipSettings.border.width || this.treemap.themeStyle.tooltipBorderWidth || 0,
|
|
6231
|
+
color: this.tooltipSettings.border.color || this.treemap.themeStyle.tooltipBorderColor || 'transparent'
|
|
6232
|
+
};
|
|
6093
6233
|
tootipArgs = {
|
|
6094
6234
|
cancel: false, name: tooltipRendering, item: item,
|
|
6095
6235
|
options: {
|
|
6096
|
-
location: location, text: tooltipContent, data: toolTipData,
|
|
6236
|
+
location: location, text: tooltipContent, data: toolTipData, border: border,
|
|
6097
6237
|
textStyle: this.tooltipSettings.textStyle, template: this.tooltipSettings.template
|
|
6098
6238
|
},
|
|
6099
6239
|
treemap: this.treemap,
|
|
@@ -6127,6 +6267,7 @@ class TreeMapTooltip {
|
|
|
6127
6267
|
}
|
|
6128
6268
|
if (!cancel) {
|
|
6129
6269
|
this.svgTooltip = new Tooltip({
|
|
6270
|
+
theme: this.treemap.theme,
|
|
6130
6271
|
enable: true,
|
|
6131
6272
|
header: '',
|
|
6132
6273
|
data: args['data'],
|
|
@@ -6139,6 +6280,7 @@ class TreeMapTooltip {
|
|
|
6139
6280
|
areaBounds: this.treemap.areaRect,
|
|
6140
6281
|
textStyle: args['textStyle'],
|
|
6141
6282
|
fill: this.treemap.tooltipSettings.fill ? this.treemap.tooltipSettings.fill : this.treemap.themeStyle.tooltipFillColor,
|
|
6283
|
+
border: args['border'],
|
|
6142
6284
|
enableShadow: true
|
|
6143
6285
|
});
|
|
6144
6286
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -6170,6 +6312,7 @@ class TreeMapTooltip {
|
|
|
6170
6312
|
// eslint-disable-next-line valid-jsdoc
|
|
6171
6313
|
/**
|
|
6172
6314
|
* To bind events for tooltip module
|
|
6315
|
+
*
|
|
6173
6316
|
* @private
|
|
6174
6317
|
*/
|
|
6175
6318
|
addEventListener() {
|
|
@@ -6182,6 +6325,7 @@ class TreeMapTooltip {
|
|
|
6182
6325
|
// eslint-disable-next-line valid-jsdoc
|
|
6183
6326
|
/**
|
|
6184
6327
|
* To unbind events for tooltip module
|
|
6328
|
+
*
|
|
6185
6329
|
* @private
|
|
6186
6330
|
*/
|
|
6187
6331
|
removeEventListener() {
|
|
@@ -6216,13 +6360,5 @@ class TreeMapTooltip {
|
|
|
6216
6360
|
}
|
|
6217
6361
|
}
|
|
6218
6362
|
|
|
6219
|
-
|
|
6220
|
-
* export all modules from treemap component
|
|
6221
|
-
*/
|
|
6222
|
-
|
|
6223
|
-
/**
|
|
6224
|
-
* exporting all modules from tree map index
|
|
6225
|
-
*/
|
|
6226
|
-
|
|
6227
|
-
export { TreeMap, LevelsData, Border, Margin, Font, CommonTitleSettings, SubTitleSettings, TitleSettings, ColorMapping, LegendSettings, InitialDrillSettings, LeafItemSettings, TooltipSettings, SelectionSettings, HighlightSettings, LevelSettings, load, loaded, beforePrint, itemRendering, drillStart, drillEnd, itemSelected, itemHighlight, tooltipRendering, itemClick, itemMove, click, doubleClick, rightClick, mouseMove, legendItemRendering, legendRendering, resize, defaultFont, Theme, getThemeStyle, Size, stringToNumber, Rect, RectOption, PathOption, measureText, TextOption, textTrim, Location, findPosition, createTextStyle, renderTextElement, setItemTemplateContent, getElement, itemsToOrder, isContainsData, findChildren, findHightLightItems, getTemplateFunction, convertElement, findLabelLocation, measureElement, getArea, getShortestEdge, convertToContainer, convertToRect, getMousePosition, colorMap, deSaturationColor, colorCollections, rgbToHex, getColorByValue, getGradientColor, getPercentageColor, getPercentage, wordWrap, textWrap, hide, orderByArea, maintainSelection, legendMaintain, removeClassNames, applyOptions, textFormatter, formatValue, ColorValue, convertToHexCode, componentToHex, convertHexToColor, colorNameToHex, drawSymbol, renderLegendShape, isParentItem, TreeMapAjax, removeShape, removeLegend, setColor, removeSelectionWithHighlight, getLegendIndex, pushCollection, triggerDownload, removeElement, TreeMapLegend, LayoutPanel, TreeMapHighlight, TreeMapSelection, TreeMapTooltip, ImageExport, PdfExport, Print };
|
|
6363
|
+
export { Border, ColorMapping, ColorValue, CommonTitleSettings, Font, HighlightSettings, ImageExport, InitialDrillSettings, LayoutPanel, LeafItemSettings, LegendSettings, LevelSettings, LevelsData, Location, Margin, PathOption, PdfExport, Print, Rect, RectOption, SelectionSettings, Size, SubTitleSettings, TextOption, Theme, TitleSettings, TooltipSettings, TreeMap, TreeMapAjax, TreeMapHighlight, TreeMapLegend, TreeMapSelection, TreeMapTooltip, applyOptions, beforePrint, click, colorCollections, colorMap, colorNameToHex, componentToHex, convertElement, convertHexToColor, convertToContainer, convertToHexCode, convertToRect, createTextStyle, deSaturationColor, defaultFont, doubleClick, drawSymbol, drillEnd, drillStart, findChildren, findHightLightItems, findLabelLocation, findPosition, formatValue, getArea, getColorByValue, getElement, getGradientColor, getLegendIndex, getMousePosition, getPercentage, getPercentageColor, getShortestEdge, getTemplateFunction, getThemeStyle, hide, isContainsData, isParentItem, itemClick, itemHighlight, itemMove, itemRendering, itemSelected, itemsToOrder, legendItemRendering, legendMaintain, legendRendering, load, loaded, maintainSelection, measureElement, measureText, mouseMove, orderByArea, pushCollection, removeClassNames, removeElement, removeLegend, removeSelectionWithHighlight, removeShape, renderLegendShape, renderTextElement, resize, rgbToHex, rightClick, setColor, setItemTemplateContent, stringToNumber, textFormatter, textTrim, textWrap, tooltipRendering, triggerDownload, wordWrap };
|
|
6228
6364
|
//# sourceMappingURL=ej2-treemap.es2015.js.map
|