@syncfusion/ej2-treemap 19.3.53 → 19.4.38
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/.github/PULL_REQUEST_TEMPLATE/Bug.md +72 -0
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +49 -0
- 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 +40 -8
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +40 -8
- 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/dist/ts/treemap/layout/legend.ts +991 -0
- package/dist/ts/treemap/layout/render-panel.ts +717 -0
- package/dist/ts/treemap/model/base.ts +800 -0
- package/dist/ts/treemap/model/constants.ts +118 -0
- package/dist/ts/treemap/model/image-export.ts +109 -0
- package/dist/ts/treemap/model/interface.ts +554 -0
- package/dist/ts/treemap/model/pdf-export.ts +103 -0
- package/dist/ts/treemap/model/print.ts +93 -0
- package/dist/ts/treemap/model/theme.ts +202 -0
- package/dist/ts/treemap/treemap.ts +1571 -0
- package/dist/ts/treemap/user-interaction/highlight-selection.ts +530 -0
- package/dist/ts/treemap/user-interaction/tooltip.ts +199 -0
- package/dist/ts/treemap/utils/enum.ts +218 -0
- package/dist/ts/treemap/utils/helper.ts +1181 -0
- package/package.json +11 -11
- package/src/treemap/layout/render-panel.js +1 -1
- package/src/treemap/model/theme.js +34 -0
- package/src/treemap/utils/helper.js +5 -7
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/dot-notation */
|
|
2
|
+
import { TreeMap } from '../treemap';
|
|
3
|
+
import { Tooltip } from '@syncfusion/ej2-svg-base';
|
|
4
|
+
import { Browser, createElement, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
+
import { Location, getMousePosition, textFormatter, formatValue } from '../utils/helper';
|
|
6
|
+
import { TooltipSettingsModel } from '../model/base-model';
|
|
7
|
+
import { ITreeMapTooltipRenderEventArgs, ITreeMapTooltipArgs } from '../model/interface';
|
|
8
|
+
import { tooltipRendering } from '../model/constants';
|
|
9
|
+
/**
|
|
10
|
+
* Render Tooltip
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export class TreeMapTooltip {
|
|
14
|
+
private treemap: TreeMap;
|
|
15
|
+
private tooltipSettings: TooltipSettingsModel;
|
|
16
|
+
private svgTooltip: Tooltip;
|
|
17
|
+
private isTouch: boolean;
|
|
18
|
+
private tooltipId: string;
|
|
19
|
+
private clearTimeout: number;
|
|
20
|
+
// eslint-disable-next-line @typescript-eslint/explicit-member-accessibility
|
|
21
|
+
constructor(treeMap: TreeMap) {
|
|
22
|
+
this.treemap = treeMap;
|
|
23
|
+
this.tooltipSettings = this.treemap.tooltipSettings;
|
|
24
|
+
this.tooltipId = this.treemap.element.id + '_TreeMapTooltip';
|
|
25
|
+
this.addEventListener();
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public renderTooltip(e: PointerEvent): void {
|
|
29
|
+
let pageX: number; let pageY: number;
|
|
30
|
+
let target: Element; let touchArg: TouchEvent;
|
|
31
|
+
let tootipArgs: ITreeMapTooltipRenderEventArgs;
|
|
32
|
+
if (e.type.indexOf('touch') !== - 1) {
|
|
33
|
+
this.isTouch = true;
|
|
34
|
+
touchArg = <TouchEvent & PointerEvent>e;
|
|
35
|
+
pageX = touchArg.changedTouches[0].pageX;
|
|
36
|
+
pageY = touchArg.changedTouches[0].pageY;
|
|
37
|
+
target = <Element>touchArg.target;
|
|
38
|
+
} else {
|
|
39
|
+
this.isTouch = e.pointerType === 'touch';
|
|
40
|
+
pageX = e.pageX;
|
|
41
|
+
pageY = e.pageY;
|
|
42
|
+
target = <Element>e.target;
|
|
43
|
+
}
|
|
44
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
|
+
let value: number; const targetId: string = target.id; let item: any = {}; let tooltipEle: HTMLElement;
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
47
|
+
let location: Location; let toolTipHeader: string; let toolTipData: any = {};
|
|
48
|
+
let tooltipContent: string[] = []; let markerFill: string;
|
|
49
|
+
if (targetId.indexOf('_Item_Index') > -1) {
|
|
50
|
+
item = this.treemap.layout.renderItems[parseFloat(targetId.split('_')[6])];
|
|
51
|
+
if (!isNullOrUndefined(item)) {
|
|
52
|
+
toolTipHeader = item['name'];
|
|
53
|
+
value = item['weight'];
|
|
54
|
+
toolTipData = item['data'];
|
|
55
|
+
markerFill = item['options']['fill'];
|
|
56
|
+
if (this.treemap.enableRtl) {
|
|
57
|
+
tooltipContent = [textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) ||
|
|
58
|
+
formatValue(value, this.treemap) + ' : ' + this.treemap.weightValuePath.toString()];
|
|
59
|
+
} else {
|
|
60
|
+
tooltipContent = [textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) ||
|
|
61
|
+
this.treemap.weightValuePath.toString() + ' : ' + formatValue(value, this.treemap)];
|
|
62
|
+
}
|
|
63
|
+
if (document.getElementById(this.tooltipId)) {
|
|
64
|
+
tooltipEle = document.getElementById(this.tooltipId);
|
|
65
|
+
} else {
|
|
66
|
+
tooltipEle = createElement('div', {
|
|
67
|
+
id: this.treemap.element.id + '_TreeMapTooltip',
|
|
68
|
+
className: 'EJ2-TreeMap-Tooltip',
|
|
69
|
+
styles: 'position: absolute;pointer-events:none;'
|
|
70
|
+
});
|
|
71
|
+
document.getElementById(this.treemap.element.id + '_Secondary_Element').appendChild(tooltipEle);
|
|
72
|
+
}
|
|
73
|
+
location = getMousePosition(pageX, pageY, this.treemap.svgObject);
|
|
74
|
+
location.y = (this.tooltipSettings.template) ? location.y + 10 : location.y;
|
|
75
|
+
this.tooltipSettings.textStyle.fontFamily = this.treemap.themeStyle.fontFamily;
|
|
76
|
+
this.tooltipSettings.textStyle.color = this.treemap.themeStyle.tooltipFontColor
|
|
77
|
+
|| this.tooltipSettings.textStyle.color;
|
|
78
|
+
this.tooltipSettings.textStyle.opacity = this.treemap.themeStyle.tooltipTextOpacity
|
|
79
|
+
|| this.tooltipSettings.textStyle.opacity;
|
|
80
|
+
tootipArgs = {
|
|
81
|
+
cancel: false, name: tooltipRendering, item: item,
|
|
82
|
+
options: {
|
|
83
|
+
location: location, text: tooltipContent, data: toolTipData,
|
|
84
|
+
textStyle: this.tooltipSettings.textStyle, template: this.tooltipSettings.template
|
|
85
|
+
},
|
|
86
|
+
treemap: this.treemap,
|
|
87
|
+
element: target, eventArgs: e
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
this.treemap.trigger(tooltipRendering, tootipArgs, (args?: ITreeMapTooltipRenderEventArgs) => {
|
|
91
|
+
this.addTooltip(tootipArgs, markerFill, tooltipEle);
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
} else {
|
|
96
|
+
this.removeTooltip();
|
|
97
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
98
|
+
(this.treemap as any).clearTemplate();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private addTooltip(
|
|
103
|
+
tootipArgs: ITreeMapTooltipRenderEventArgs, markerFill: string, tooltipEle: HTMLElement, eventArgs?: ITreeMapTooltipArgs
|
|
104
|
+
) : void {
|
|
105
|
+
let cancel : boolean;
|
|
106
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
107
|
+
let args : any;
|
|
108
|
+
if (!isNullOrUndefined(tootipArgs)) {
|
|
109
|
+
const {cancel : c, ...otherArgs} : ITreeMapTooltipRenderEventArgs = tootipArgs;
|
|
110
|
+
cancel = c;
|
|
111
|
+
args = otherArgs.options;
|
|
112
|
+
} else {
|
|
113
|
+
cancel = eventArgs.cancel;
|
|
114
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
115
|
+
args = eventArgs as any;
|
|
116
|
+
}
|
|
117
|
+
if (!cancel) {
|
|
118
|
+
this.svgTooltip = new Tooltip({
|
|
119
|
+
enable: true,
|
|
120
|
+
header: '',
|
|
121
|
+
data: args['data'],
|
|
122
|
+
template: args['template'],
|
|
123
|
+
content: args['text'],
|
|
124
|
+
shapes: [],
|
|
125
|
+
location: args['location'],
|
|
126
|
+
palette: [markerFill],
|
|
127
|
+
areaBounds: this.treemap.areaRect,
|
|
128
|
+
textStyle: args['textStyle'],
|
|
129
|
+
fill:this.treemap.tooltipSettings.fill ? this.treemap.tooltipSettings.fill : this.treemap.themeStyle.tooltipFillColor
|
|
130
|
+
});
|
|
131
|
+
this.svgTooltip.opacity = this.treemap.themeStyle.tooltipFillOpacity || this.svgTooltip.opacity;
|
|
132
|
+
this.svgTooltip.appendTo(tooltipEle);
|
|
133
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
134
|
+
(this.treemap as any).renderReactTemplates();
|
|
135
|
+
} else {
|
|
136
|
+
this.removeTooltip();
|
|
137
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
138
|
+
(this.treemap as any).clearTemplate();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public mouseUpHandler(e: PointerEvent): void {
|
|
143
|
+
this.renderTooltip(e);
|
|
144
|
+
clearTimeout(this.clearTimeout);
|
|
145
|
+
this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
public removeTooltip(): void {
|
|
149
|
+
if (document.getElementsByClassName('EJ2-TreeMap-Tooltip').length > 0) {
|
|
150
|
+
const tooltipElementId: Element = document.getElementsByClassName('EJ2-TreeMap-Tooltip')[0];
|
|
151
|
+
tooltipElementId.parentNode.removeChild(tooltipElementId);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// eslint-disable-next-line valid-jsdoc
|
|
156
|
+
/**
|
|
157
|
+
* To bind events for tooltip module
|
|
158
|
+
*/
|
|
159
|
+
public addEventListener(): void {
|
|
160
|
+
if (this.treemap.isDestroyed) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
this.treemap.on(Browser.touchMoveEvent, this.renderTooltip, this);
|
|
164
|
+
this.treemap.on(Browser.touchEndEvent, this.mouseUpHandler, this);
|
|
165
|
+
}
|
|
166
|
+
// eslint-disable-next-line valid-jsdoc
|
|
167
|
+
/**
|
|
168
|
+
* To unbind events for tooltip module
|
|
169
|
+
*/
|
|
170
|
+
public removeEventListener(): void {
|
|
171
|
+
if (this.treemap.isDestroyed) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this.treemap.off(Browser.touchMoveEvent, this.renderTooltip);
|
|
175
|
+
this.treemap.off(Browser.touchEndEvent, this.mouseUpHandler);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Get module name.
|
|
180
|
+
*
|
|
181
|
+
* @returns {string} returns string
|
|
182
|
+
*/
|
|
183
|
+
protected getModuleName(): string {
|
|
184
|
+
return 'treeMapTooltip';
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* To destroy the tooltip.
|
|
188
|
+
*
|
|
189
|
+
* @param {TreeMap} treeMap - Specifies the instance of the treemap
|
|
190
|
+
* @returns {void}
|
|
191
|
+
* @private
|
|
192
|
+
*/
|
|
193
|
+
public destroy(treeMap: TreeMap): void {
|
|
194
|
+
/**
|
|
195
|
+
* Destroy method performed here
|
|
196
|
+
*/
|
|
197
|
+
this.removeEventListener();
|
|
198
|
+
}
|
|
199
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Defines the position of the label in treemap leaf node.
|
|
4
|
+
*/
|
|
5
|
+
export type LabelPosition =
|
|
6
|
+
/** To show the position of the label based on the top and left of the treemap leaf nodes. */
|
|
7
|
+
'TopLeft' |
|
|
8
|
+
/** To show the position of the label based on the top and center of the treemap leaf nodes. */
|
|
9
|
+
'TopCenter' |
|
|
10
|
+
/** To show the position of the label based on the top and right of the treemap leaf nodes. */
|
|
11
|
+
'TopRight' |
|
|
12
|
+
/** To show the position of the label based on the center and left of the treemap leaf nodes. */
|
|
13
|
+
'CenterLeft' |
|
|
14
|
+
/** To show the position of the label based on the center of the treemap leaf nodes. */
|
|
15
|
+
'Center' |
|
|
16
|
+
/** To show the position of the label based on the center and right of the treemap leaf nodes. */
|
|
17
|
+
'CenterRight' |
|
|
18
|
+
/** To show the position of the label based on the bottom and left of the treemap leaf nodes. */
|
|
19
|
+
'BottomLeft' |
|
|
20
|
+
/** To show the position of the label based on the bottom and center of the treemap leaf nodes. */
|
|
21
|
+
'BottomCenter' |
|
|
22
|
+
/** To show the position of the label based on the bottom and right of the treemap leaf nodes. */
|
|
23
|
+
'BottomRight';
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Specifies the layout rendering mode of the treemap.
|
|
27
|
+
*/
|
|
28
|
+
export type LayoutMode =
|
|
29
|
+
/** This visualizes the treemap as the nested rectangles having size proportionate to weight value */
|
|
30
|
+
'Squarified' |
|
|
31
|
+
/** This visualizes the treemap as the horizontal rectangles having size proportionate to weight value */
|
|
32
|
+
'SliceAndDiceHorizontal' |
|
|
33
|
+
/** This visualizes the treemap as the vertical rectangles having size proportionate to weight value */
|
|
34
|
+
'SliceAndDiceVertical' |
|
|
35
|
+
/** This visualizes the treemap as the auto rectangles having size proportionate to weight value */
|
|
36
|
+
'SliceAndDiceAuto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the alignment of the elements in the treemap.
|
|
40
|
+
*/
|
|
41
|
+
export type Alignment =
|
|
42
|
+
/** Defines the alignment is near the treemap with respect the element position. */
|
|
43
|
+
'Near' |
|
|
44
|
+
/** Defines the alignment is at center of the treemap with respect the element position. */
|
|
45
|
+
'Center' |
|
|
46
|
+
/** Defines the alignment is far from the treemap with respect the element position. */
|
|
47
|
+
'Far';
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the element which must be highlighted when mouse over is performed in treemap.
|
|
50
|
+
*/
|
|
51
|
+
export type HighLightMode =
|
|
52
|
+
/** Highlights the treemap item when the mouse over is done on the treemap item. */
|
|
53
|
+
'Item' |
|
|
54
|
+
/** Highlights the treemap item and level when the mouse over is done on the treemap item. */
|
|
55
|
+
'Child' |
|
|
56
|
+
/** Highlights the treemap item and parent level when the mouse over is done on the treemap item. */
|
|
57
|
+
'Parent' |
|
|
58
|
+
/** Highlights all the related nodes when the mouse over is done on the treemap item. */
|
|
59
|
+
'All';
|
|
60
|
+
/**
|
|
61
|
+
* Specifies the element which must be selected when click event is performed in treemap.
|
|
62
|
+
*/
|
|
63
|
+
export type SelectionMode =
|
|
64
|
+
/** Selects the treemap item when the click operation is done on the treemap item. */
|
|
65
|
+
'Item' |
|
|
66
|
+
/** Selects the treemap item and level when the click operation is done on the treemap item. */
|
|
67
|
+
'Child' |
|
|
68
|
+
/** Selects the treemap item and parent level when the click operation is done on the treemap item.. */
|
|
69
|
+
'Parent' |
|
|
70
|
+
/** Selects all the related nodes when the click operation is done on the treemap item. */
|
|
71
|
+
'All';
|
|
72
|
+
/**
|
|
73
|
+
* Specifies the export type for the treemap
|
|
74
|
+
*/
|
|
75
|
+
export type ExportType =
|
|
76
|
+
/** Specifies the rendered treemap to be exported in the png format. */
|
|
77
|
+
'PNG' |
|
|
78
|
+
/** Specifies the rendered treemap to be exported in the jpeg format. */
|
|
79
|
+
'JPEG' |
|
|
80
|
+
/** Specifies the rendered treemap to be exported in the svg format. */
|
|
81
|
+
'SVG' |
|
|
82
|
+
/** Specifies the rendered treemap to be exported in the pdf format. */
|
|
83
|
+
'PDF';
|
|
84
|
+
/**
|
|
85
|
+
* Defines the text to be placed within the defined margins.
|
|
86
|
+
*/
|
|
87
|
+
export type LabelAlignment =
|
|
88
|
+
/** Specifies that the data label will trim if exceeded the defined margins. */
|
|
89
|
+
'Trim' |
|
|
90
|
+
/** Specifies that the data label will hide if exceeded the defined margins. */
|
|
91
|
+
'Hide' |
|
|
92
|
+
/** Specifies the word to force all text to fit within the defined margins. */
|
|
93
|
+
'WrapByWord' |
|
|
94
|
+
/** Specifies to wrap the data label if exceed the defined margins. */
|
|
95
|
+
'Wrap';
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Defines the shape of legend in the treemap component.
|
|
99
|
+
*/
|
|
100
|
+
export type LegendShape =
|
|
101
|
+
/** Defines the legend shape as circle. */
|
|
102
|
+
'Circle' |
|
|
103
|
+
/** Defines the legend shape as rectangle. */
|
|
104
|
+
'Rectangle' |
|
|
105
|
+
/** Defines the legend shape as triangle. */
|
|
106
|
+
'Triangle' |
|
|
107
|
+
/** Defines the legend shape as diamond. */
|
|
108
|
+
'Diamond' |
|
|
109
|
+
/** Defines the legend shape as cross. */
|
|
110
|
+
'Cross' |
|
|
111
|
+
/** Defines the legend shape as star. */
|
|
112
|
+
'Star' |
|
|
113
|
+
/** Defines the legend shape as horizontal line. */
|
|
114
|
+
'HorizontalLine' |
|
|
115
|
+
/** Defines the legend shape as vertical line. */
|
|
116
|
+
'VerticalLine' |
|
|
117
|
+
/** Defines the legend shape as pentagon. */
|
|
118
|
+
'Pentagon' |
|
|
119
|
+
/** Defines the legend shape as inverted triangle. */
|
|
120
|
+
'InvertedTriangle' |
|
|
121
|
+
/** Defines the legend shape as image. */
|
|
122
|
+
'Image';
|
|
123
|
+
/**
|
|
124
|
+
* Defines the position of the legend in the treemap component.
|
|
125
|
+
*/
|
|
126
|
+
export type LegendPosition =
|
|
127
|
+
/** Specifies to place the legend at the top of the treemap. */
|
|
128
|
+
'Top' |
|
|
129
|
+
/** Specifies to place the legend on the left of the treemap. */
|
|
130
|
+
'Left' |
|
|
131
|
+
/** Specifies to place the legend at the bottom of the treemap. */
|
|
132
|
+
'Bottom' |
|
|
133
|
+
/** Specifies to place the legend on the right of the treemap. */
|
|
134
|
+
'Right' |
|
|
135
|
+
/** Specifies to place the legend based on given x and y positions. */
|
|
136
|
+
'Float' |
|
|
137
|
+
/** Specifies to place the legend based on width and height. */
|
|
138
|
+
'Auto';
|
|
139
|
+
/**
|
|
140
|
+
* Defines the legend rendering modes. The modes are default and interactive modes.
|
|
141
|
+
*/
|
|
142
|
+
export type LegendMode =
|
|
143
|
+
/** Specifies the legend as static. */
|
|
144
|
+
'Default' |
|
|
145
|
+
/** Specifies the legend as interactive. */
|
|
146
|
+
'Interactive';
|
|
147
|
+
/**
|
|
148
|
+
* Specifies the orientation of the legend in the treemap.
|
|
149
|
+
*/
|
|
150
|
+
export type LegendOrientation =
|
|
151
|
+
/** Defines the legend renders with default behavior. */
|
|
152
|
+
'None' |
|
|
153
|
+
/** Defines the legend renders with items places horizontally. */
|
|
154
|
+
'Horizontal' |
|
|
155
|
+
/** Defines the legend renders with items places vertically. */
|
|
156
|
+
'Vertical';
|
|
157
|
+
/**
|
|
158
|
+
* Defines the label intersect action in treemap component.
|
|
159
|
+
*/
|
|
160
|
+
export type LabelIntersectAction =
|
|
161
|
+
/** Specifies that no action will be taken when the label contents intersect. */
|
|
162
|
+
'None' |
|
|
163
|
+
/** Specifies the data label to be trimmed when it intersects. */
|
|
164
|
+
'Trim' |
|
|
165
|
+
/** Specifies the data label to be hidden when it intersects. */
|
|
166
|
+
'Hide';
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Defines the placement type of the label.
|
|
170
|
+
*/
|
|
171
|
+
export type LabelPlacement =
|
|
172
|
+
/** Specifies the label placement as before. */
|
|
173
|
+
'Before' |
|
|
174
|
+
/** Specifies the label placement as after */
|
|
175
|
+
'After';
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Defines the theme supported for treemap.
|
|
179
|
+
*/
|
|
180
|
+
export type TreeMapTheme =
|
|
181
|
+
/** Render a treemap with material theme. */
|
|
182
|
+
'Material' |
|
|
183
|
+
/** Render a treemap with fabric theme. */
|
|
184
|
+
'Fabric' |
|
|
185
|
+
/** Render a treemap with highcontrast light theme. */
|
|
186
|
+
'HighContrastLight' |
|
|
187
|
+
/** Render a treemap with bootstrap theme. */
|
|
188
|
+
'Bootstrap' |
|
|
189
|
+
/** Render a treemap with material dark theme. */
|
|
190
|
+
'MaterialDark' |
|
|
191
|
+
/** Render a treemap with fabric dark theme. */
|
|
192
|
+
'FabricDark' |
|
|
193
|
+
/** Render a treemap with highcontrast dark theme. */
|
|
194
|
+
'HighContrast' |
|
|
195
|
+
/** Render a treemap with bootstrap dark theme. */
|
|
196
|
+
'BootstrapDark'|
|
|
197
|
+
/** Render a treemap with bootstrap4 theme. */
|
|
198
|
+
'Bootstrap4'|
|
|
199
|
+
/** Render a treemap with Tailwind theme. */
|
|
200
|
+
'Tailwind' |
|
|
201
|
+
/** Render a treemap with TailwindDark theme. */
|
|
202
|
+
'TailwindDark' |
|
|
203
|
+
/** Render a treemap with Bootstrap5 theme. */
|
|
204
|
+
'Bootstrap5' |
|
|
205
|
+
/** Render a treemap with Bootstrap5 dark theme. */
|
|
206
|
+
'Bootstrap5Dark';
|
|
207
|
+
/**
|
|
208
|
+
* Defines the rendering directions to render the treemap items in the treemap.
|
|
209
|
+
*/
|
|
210
|
+
export type RenderingMode =
|
|
211
|
+
/** Renders the treemap items from top right to bottom left direction */
|
|
212
|
+
'TopRightBottomLeft' |
|
|
213
|
+
/** Renders the treemap items from bottom left to top right direction */
|
|
214
|
+
'BottomLeftTopRight' |
|
|
215
|
+
/** Renders the treemap items from bottom right to top left direction */
|
|
216
|
+
'BottomRightTopLeft' |
|
|
217
|
+
/** Renders the treemap items from top left to bottom right direction */
|
|
218
|
+
'TopLeftBottomRight';
|