@syncfusion/ej2-treemap 27.1.53 → 27.2.2
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/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 +19 -7
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +19 -7
- 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 +11 -11
- package/src/treemap/layout/render-panel.js +14 -5
- package/src/treemap/model/base.js +2 -2
- package/src/treemap/model/interface.d.ts +4 -0
- package/src/treemap/model/theme.js +4 -0
|
@@ -437,7 +437,7 @@ var LeafItemSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
437
437
|
Property('TopLeft')
|
|
438
438
|
], LeafItemSettings.prototype, "labelPosition", void 0);
|
|
439
439
|
__decorate([
|
|
440
|
-
Complex({ color: null, size: null }, Font)
|
|
440
|
+
Complex({ color: null, size: null, fontFamily: null }, Font)
|
|
441
441
|
], LeafItemSettings.prototype, "labelStyle", void 0);
|
|
442
442
|
__decorate([
|
|
443
443
|
Property(null)
|
|
@@ -583,7 +583,7 @@ var LevelSettings = /** @__PURE__ @class */ (function (_super) {
|
|
|
583
583
|
Property('Near')
|
|
584
584
|
], LevelSettings.prototype, "headerAlignment", void 0);
|
|
585
585
|
__decorate([
|
|
586
|
-
Complex({ color: null, size: '13px' }, Font)
|
|
586
|
+
Complex({ color: null, size: '13px', fontFamily: null }, Font)
|
|
587
587
|
], LevelSettings.prototype, "headerStyle", void 0);
|
|
588
588
|
__decorate([
|
|
589
589
|
Property('TopLeft')
|
|
@@ -2421,10 +2421,18 @@ var LayoutPanel = /** @__PURE__ @class */ (function () {
|
|
|
2421
2421
|
renderText = !isLeafItem && childItems && childItems.length > 0 && this_1.treemap.enableDrillDown ?
|
|
2422
2422
|
!item['isDrilled'] ? treeMap.enableRtl ? renderText + ' [+]' : '[+] ' + renderText :
|
|
2423
2423
|
treeMap.enableRtl ? renderText + ' [-]' : '[-] ' + renderText : renderText;
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2424
|
+
var fontFamily = (isLeafItem ? leaf.labelStyle.fontFamily : levels[index].headerStyle.fontFamily);
|
|
2425
|
+
fontFamily = fontFamily || this_1.treemap.themeStyle.labelFontFamily;
|
|
2426
|
+
var size = (isLeafItem ? leaf.labelStyle.size : levels[index].headerStyle.size);
|
|
2427
|
+
size = size || this_1.treemap.themeStyle.labelFontSize;
|
|
2428
|
+
var fontWeight = (isLeafItem ? leaf.labelStyle.fontWeight : levels[index].headerStyle.fontWeight);
|
|
2429
|
+
fontWeight = fontWeight || this_1.treemap.themeStyle.fontWeight;
|
|
2430
|
+
var color = (isLeafItem ? leaf.labelStyle.color : levels[index].headerStyle.color);
|
|
2431
|
+
var fontStyle = (isLeafItem ? leaf.labelStyle.fontStyle : levels[index].headerStyle.fontStyle);
|
|
2432
|
+
var textStyleOpacity = (isLeafItem ? leaf.labelStyle.opacity : levels[index].headerStyle.opacity);
|
|
2433
|
+
textStyle = {
|
|
2434
|
+
fontFamily: fontFamily, size: size, fontWeight: fontWeight, color: color, fontStyle: fontStyle, opacity: textStyleOpacity
|
|
2435
|
+
};
|
|
2428
2436
|
border = isLeafItem ? leaf.border : levels[index].border;
|
|
2429
2437
|
position = !isLeafItem ? (levels[index].headerAlignment) === 'Near' ? 'TopLeft' : (levels[index].headerAlignment) === 'Center' ?
|
|
2430
2438
|
'TopCenter' : 'TopRight' : leaf.labelPosition;
|
|
@@ -2433,7 +2441,7 @@ var LayoutPanel = /** @__PURE__ @class */ (function () {
|
|
|
2433
2441
|
item['options'] = { border: border, opacity: opacity, fill: fill };
|
|
2434
2442
|
eventArgs = {
|
|
2435
2443
|
cancel: false, name: itemRendering, treemap: this_1.treemap, text: renderText,
|
|
2436
|
-
currentItem: item, RenderItems: this_1.renderItems, options: item['options']
|
|
2444
|
+
currentItem: item, RenderItems: this_1.renderItems, options: item['options'], textColor: textStyle.color
|
|
2437
2445
|
};
|
|
2438
2446
|
this_1.treemap.trigger(itemRendering, eventArgs, function (observedArgs) {
|
|
2439
2447
|
if (!observedArgs.cancel) {
|
|
@@ -2446,6 +2454,7 @@ var LayoutPanel = /** @__PURE__ @class */ (function () {
|
|
|
2446
2454
|
if (eventArgs.text !== renderText) {
|
|
2447
2455
|
eventArgs.text = textFormatter(eventArgs.text, item['data'], _this.treemap) || levelName;
|
|
2448
2456
|
}
|
|
2457
|
+
textStyle.color = eventArgs.textColor ? eventArgs.textColor : textStyle.color;
|
|
2449
2458
|
_this.renderItemText(eventArgs.text.toString(), itemGroup, textStyle, rect, interSectAction, groupId, fill, position, connectorText);
|
|
2450
2459
|
}
|
|
2451
2460
|
if (template) {
|
|
@@ -2708,6 +2717,7 @@ function getThemeStyle(theme) {
|
|
|
2708
2717
|
legendFontSize: '13px',
|
|
2709
2718
|
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
2710
2719
|
labelFontSize: '12px',
|
|
2720
|
+
labelFontFamily: defaultFont,
|
|
2711
2721
|
legendBorderColor: '#000000',
|
|
2712
2722
|
legendBorderWidth: 0
|
|
2713
2723
|
};
|
|
@@ -2729,6 +2739,7 @@ function getThemeStyle(theme) {
|
|
|
2729
2739
|
legendFontSize: '13px',
|
|
2730
2740
|
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
2731
2741
|
labelFontSize: '12px',
|
|
2742
|
+
labelFontFamily: defaultFont,
|
|
2732
2743
|
legendBorderColor: '#000000',
|
|
2733
2744
|
legendBorderWidth: 0
|
|
2734
2745
|
};
|
|
@@ -3036,6 +3047,7 @@ function getThemeStyle(theme) {
|
|
|
3036
3047
|
fontWeight: 'Normal',
|
|
3037
3048
|
subtitleFontSize: '14px',
|
|
3038
3049
|
legendFontSize: '13px',
|
|
3050
|
+
labelFontFamily: defaultFont,
|
|
3039
3051
|
fontFamily: 'Roboto, Noto, Sans-serif',
|
|
3040
3052
|
labelFontSize: '12px',
|
|
3041
3053
|
legendBorderColor: '#000000',
|