@syncfusion/ej2-treemap 31.2.2 → 31.2.12
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/README.md +11 -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 +4 -0
- package/dist/es6/ej2-treemap.es2015.js.map +1 -1
- package/dist/es6/ej2-treemap.es5.js +4 -0
- 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 +17 -52
- package/src/treemap/treemap.d.ts +1 -0
- package/src/treemap/treemap.js +4 -0
- package/dist/ts/index.d.ts +0 -4
- package/dist/ts/index.ts +0 -4
- package/dist/ts/treemap/index.d.ts +0 -19
- package/dist/ts/treemap/index.ts +0 -19
- package/dist/ts/treemap/layout/legend.d.ts +0 -137
- package/dist/ts/treemap/layout/legend.ts +0 -1095
- package/dist/ts/treemap/layout/render-panel.d.ts +0 -47
- package/dist/ts/treemap/layout/render-panel.ts +0 -758
- package/dist/ts/treemap/model/base-model.d.ts +0 -795
- package/dist/ts/treemap/model/base.d.ts +0 -671
- package/dist/ts/treemap/model/base.ts +0 -798
- package/dist/ts/treemap/model/constants.d.ts +0 -117
- package/dist/ts/treemap/model/constants.ts +0 -118
- package/dist/ts/treemap/model/image-export.d.ts +0 -34
- package/dist/ts/treemap/model/image-export.ts +0 -117
- package/dist/ts/treemap/model/interface.d.ts +0 -555
- package/dist/ts/treemap/model/interface.ts +0 -583
- package/dist/ts/treemap/model/pdf-export.d.ts +0 -36
- package/dist/ts/treemap/model/pdf-export.ts +0 -105
- package/dist/ts/treemap/model/print.d.ts +0 -45
- package/dist/ts/treemap/model/print.ts +0 -106
- package/dist/ts/treemap/model/theme.d.ts +0 -19
- package/dist/ts/treemap/model/theme.ts +0 -450
- package/dist/ts/treemap/treemap-model.d.ts +0 -374
- package/dist/ts/treemap/treemap.d.ts +0 -724
- package/dist/ts/treemap/treemap.ts +0 -1817
- package/dist/ts/treemap/user-interaction/highlight-selection.d.ts +0 -118
- package/dist/ts/treemap/user-interaction/highlight-selection.ts +0 -799
- package/dist/ts/treemap/user-interaction/tooltip.d.ts +0 -42
- package/dist/ts/treemap/user-interaction/tooltip.ts +0 -228
- package/dist/ts/treemap/utils/enum.d.ts +0 -256
- package/dist/ts/treemap/utils/enum.ts +0 -263
- package/dist/ts/treemap/utils/helper.d.ts +0 -543
- package/dist/ts/treemap/utils/helper.ts +0 -1453
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { TreeMap } from '../treemap';
|
|
2
|
-
/**
|
|
3
|
-
* Render Tooltip
|
|
4
|
-
*/
|
|
5
|
-
export declare class TreeMapTooltip {
|
|
6
|
-
private treemap;
|
|
7
|
-
private tooltipSettings;
|
|
8
|
-
private svgTooltip;
|
|
9
|
-
private isTouch;
|
|
10
|
-
private tooltipId;
|
|
11
|
-
private clearTimeout;
|
|
12
|
-
constructor(treeMap: TreeMap);
|
|
13
|
-
renderTooltip(e: PointerEvent): void;
|
|
14
|
-
private addTooltip;
|
|
15
|
-
mouseUpHandler(e: PointerEvent): void;
|
|
16
|
-
removeTooltip(): void;
|
|
17
|
-
/**
|
|
18
|
-
* To bind events for tooltip module
|
|
19
|
-
*
|
|
20
|
-
* @private
|
|
21
|
-
*/
|
|
22
|
-
addEventListener(): void;
|
|
23
|
-
/**
|
|
24
|
-
* To unbind events for tooltip module
|
|
25
|
-
*
|
|
26
|
-
* @private
|
|
27
|
-
*/
|
|
28
|
-
removeEventListener(): void;
|
|
29
|
-
/**
|
|
30
|
-
* Get module name.
|
|
31
|
-
*
|
|
32
|
-
* @returns {string} returns string
|
|
33
|
-
*/
|
|
34
|
-
protected getModuleName(): string;
|
|
35
|
-
/**
|
|
36
|
-
* To destroy the tooltip.
|
|
37
|
-
*
|
|
38
|
-
* @returns {void}
|
|
39
|
-
* @private
|
|
40
|
-
*/
|
|
41
|
-
destroy(): void;
|
|
42
|
-
}
|
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
import { TreeMap } from '../treemap';
|
|
2
|
-
import { Tooltip, TooltipTheme } from '@syncfusion/ej2-svg-base';
|
|
3
|
-
import { Browser, createElement, isNullOrUndefined, SanitizeHtmlHelper } from '@syncfusion/ej2-base';
|
|
4
|
-
import { Location, getMousePosition, textFormatter, formatValue, removeElement } from '../utils/helper';
|
|
5
|
-
import { BorderModel, TooltipSettingsModel } from '../model/base-model';
|
|
6
|
-
import { ITreeMapTooltipRenderEventArgs, ITreeMapTooltipArgs } from '../model/interface';
|
|
7
|
-
import { tooltipRendering } from '../model/constants';
|
|
8
|
-
/**
|
|
9
|
-
* Render Tooltip
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
export class TreeMapTooltip {
|
|
13
|
-
private treemap: TreeMap;
|
|
14
|
-
private tooltipSettings: TooltipSettingsModel;
|
|
15
|
-
private svgTooltip: Tooltip;
|
|
16
|
-
private isTouch: boolean;
|
|
17
|
-
private tooltipId: string;
|
|
18
|
-
private clearTimeout: number;
|
|
19
|
-
constructor(treeMap: TreeMap) {
|
|
20
|
-
this.treemap = treeMap;
|
|
21
|
-
this.tooltipSettings = this.treemap.tooltipSettings;
|
|
22
|
-
this.tooltipId = this.treemap.element.id + '_TreeMapTooltip';
|
|
23
|
-
this.addEventListener();
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public renderTooltip(e: PointerEvent): void {
|
|
27
|
-
let pageX: number; let pageY: number;
|
|
28
|
-
let target: Element; let touchArg: TouchEvent;
|
|
29
|
-
let tootipArgs: ITreeMapTooltipRenderEventArgs;
|
|
30
|
-
if (e.type.indexOf('touch') !== - 1) {
|
|
31
|
-
this.isTouch = true;
|
|
32
|
-
touchArg = <TouchEvent & PointerEvent>e;
|
|
33
|
-
pageX = touchArg.changedTouches[0].pageX;
|
|
34
|
-
pageY = touchArg.changedTouches[0].pageY;
|
|
35
|
-
target = <Element>touchArg.target;
|
|
36
|
-
} else {
|
|
37
|
-
this.isTouch = e.pointerType === 'touch';
|
|
38
|
-
pageX = e.pageX;
|
|
39
|
-
pageY = e.pageY;
|
|
40
|
-
target = <Element>e.target;
|
|
41
|
-
}
|
|
42
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
43
|
-
let value: number; const targetId: string = target.id; let item: any = {}; let tooltipEle: HTMLElement;
|
|
44
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
45
|
-
let location: Location; let toolTipData: any = {};
|
|
46
|
-
let tooltipContent: string[] = []; let markerFill: string;
|
|
47
|
-
if (targetId.indexOf('_Item_Index') > -1 && e.type.indexOf('key') === - 1) {
|
|
48
|
-
item = this.treemap.layout.renderItems[parseFloat(targetId.split('_Item_Index_')[1])];
|
|
49
|
-
if (!isNullOrUndefined(item)) {
|
|
50
|
-
value = item['weight'];
|
|
51
|
-
toolTipData = item['data'];
|
|
52
|
-
if (!isNullOrUndefined(item['options'])) {
|
|
53
|
-
markerFill = item['options']['fill'];
|
|
54
|
-
}
|
|
55
|
-
if (this.treemap.enableRtl) {
|
|
56
|
-
tooltipContent = [(!isNullOrUndefined(this.tooltipSettings.format) ?
|
|
57
|
-
textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) : null)
|
|
58
|
-
|| formatValue(value, this.treemap) + ' : ' + this.treemap.weightValuePath.toString()];
|
|
59
|
-
} else {
|
|
60
|
-
tooltipContent = [(!isNullOrUndefined(this.tooltipSettings.format) ?
|
|
61
|
-
textFormatter(this.tooltipSettings.format, toolTipData, this.treemap) : null)
|
|
62
|
-
|| this.treemap.weightValuePath.toString() + ' : ' + formatValue(value, this.treemap)];
|
|
63
|
-
}
|
|
64
|
-
if (document.getElementById(this.tooltipId)) {
|
|
65
|
-
tooltipEle = document.getElementById(this.tooltipId);
|
|
66
|
-
} else {
|
|
67
|
-
tooltipEle = createElement('div', {
|
|
68
|
-
id: this.treemap.element.id + '_TreeMapTooltip',
|
|
69
|
-
className: 'EJ2-TreeMap-Tooltip'
|
|
70
|
-
});
|
|
71
|
-
tooltipEle.style.cssText = 'position: absolute;pointer-events:none;';
|
|
72
|
-
document.getElementById(this.treemap.element.id + '_Secondary_Element').appendChild(tooltipEle);
|
|
73
|
-
}
|
|
74
|
-
location = getMousePosition(pageX, pageY, this.treemap.svgObject);
|
|
75
|
-
location.y = (this.tooltipSettings.template) ? location.y + 10 : location.y;
|
|
76
|
-
this.tooltipSettings.textStyle.size = this.tooltipSettings.textStyle.size || this.treemap.themeStyle.tooltipFontSize;
|
|
77
|
-
this.tooltipSettings.textStyle.fontFamily = this.tooltipSettings.textStyle.fontFamily || this.treemap.themeStyle.fontFamily;
|
|
78
|
-
this.tooltipSettings.textStyle.fontStyle = !isNullOrUndefined(this.tooltipSettings.textStyle.fontStyle) ? this.tooltipSettings.textStyle.fontStyle : 'Normal';
|
|
79
|
-
this.tooltipSettings.textStyle.fontWeight = this.tooltipSettings.textStyle.fontWeight || this.treemap.themeStyle.fontWeight;
|
|
80
|
-
this.tooltipSettings.textStyle.color = this.tooltipSettings.textStyle.color || this.treemap.themeStyle.tooltipFontColor;
|
|
81
|
-
// eslint-disable-next-line max-len
|
|
82
|
-
this.tooltipSettings.textStyle.opacity = this.tooltipSettings.textStyle.opacity || this.treemap.themeStyle.tooltipTextOpacity;
|
|
83
|
-
const border: BorderModel = {
|
|
84
|
-
width: this.tooltipSettings.border.width || this.treemap.themeStyle.tooltipBorderWidth || 0,
|
|
85
|
-
color: this.tooltipSettings.border.color || this.treemap.themeStyle.tooltipBorderColor || 'transparent'
|
|
86
|
-
};
|
|
87
|
-
if (this.treemap.enableHtmlSanitizer) {
|
|
88
|
-
for (let a: number = 0; a < tooltipContent.length; a++) {
|
|
89
|
-
tooltipContent[a as number] = SanitizeHtmlHelper.sanitize(tooltipContent[a as number]);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
tootipArgs = {
|
|
93
|
-
cancel: false, name: tooltipRendering, item: item,
|
|
94
|
-
options: {
|
|
95
|
-
location: location, text: tooltipContent, data: toolTipData, border: border,
|
|
96
|
-
textStyle: this.tooltipSettings.textStyle, template: this.tooltipSettings.template
|
|
97
|
-
},
|
|
98
|
-
treemap: this.treemap,
|
|
99
|
-
element: target, eventArgs: e
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
103
|
-
this.treemap.trigger(tooltipRendering, tootipArgs, (args?: ITreeMapTooltipRenderEventArgs) => {
|
|
104
|
-
this.addTooltip(tootipArgs, markerFill, tooltipEle);
|
|
105
|
-
});
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
} else {
|
|
109
|
-
this.removeTooltip();
|
|
110
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
111
|
-
(this.treemap as any).clearTemplate();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private addTooltip(
|
|
116
|
-
tootipArgs: ITreeMapTooltipRenderEventArgs, markerFill: string, tooltipEle: HTMLElement, eventArgs?: ITreeMapTooltipArgs
|
|
117
|
-
) : void {
|
|
118
|
-
let cancel : boolean;
|
|
119
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
120
|
-
let args : any;
|
|
121
|
-
if (!isNullOrUndefined(tootipArgs)) {
|
|
122
|
-
const {cancel : c, ...otherArgs} : ITreeMapTooltipRenderEventArgs = tootipArgs;
|
|
123
|
-
cancel = c;
|
|
124
|
-
args = otherArgs.options;
|
|
125
|
-
} else {
|
|
126
|
-
cancel = eventArgs.cancel;
|
|
127
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
128
|
-
args = eventArgs as any;
|
|
129
|
-
}
|
|
130
|
-
if (!cancel) {
|
|
131
|
-
this.svgTooltip = new Tooltip({
|
|
132
|
-
theme: this.treemap.theme as TooltipTheme,
|
|
133
|
-
enable: true,
|
|
134
|
-
header: '',
|
|
135
|
-
data: args['data'],
|
|
136
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
137
|
-
template: args['template'] as any,
|
|
138
|
-
content: args['text'],
|
|
139
|
-
shapes: [],
|
|
140
|
-
location: args['location'],
|
|
141
|
-
palette: [markerFill],
|
|
142
|
-
areaBounds: this.treemap.areaRect,
|
|
143
|
-
textStyle: args['textStyle'],
|
|
144
|
-
fill: this.treemap.tooltipSettings.fill ? this.treemap.tooltipSettings.fill : this.treemap.themeStyle.tooltipFillColor,
|
|
145
|
-
border: args['border'],
|
|
146
|
-
enableShadow: true
|
|
147
|
-
});
|
|
148
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
149
|
-
if ((this.treemap as any).isVue || (this.treemap as any).isVue3) {
|
|
150
|
-
this.svgTooltip.controlInstance = this.treemap;
|
|
151
|
-
}
|
|
152
|
-
this.svgTooltip.opacity = this.treemap.themeStyle.tooltipFillOpacity || this.svgTooltip.opacity;
|
|
153
|
-
this.svgTooltip.appendTo(tooltipEle);
|
|
154
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
155
|
-
(this.treemap as any).renderReactTemplates();
|
|
156
|
-
} else {
|
|
157
|
-
this.removeTooltip();
|
|
158
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
159
|
-
(this.treemap as any).clearTemplate();
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
public mouseUpHandler(e: PointerEvent): void {
|
|
164
|
-
this.renderTooltip(e);
|
|
165
|
-
clearTimeout(this.clearTimeout);
|
|
166
|
-
this.clearTimeout = setTimeout(this.removeTooltip.bind(this), 2000);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
public removeTooltip(): void {
|
|
170
|
-
if (document.getElementsByClassName('EJ2-TreeMap-Tooltip').length > 0) {
|
|
171
|
-
const tooltipElementId: Element = document.getElementsByClassName('EJ2-TreeMap-Tooltip')[0];
|
|
172
|
-
tooltipElementId.parentNode.removeChild(tooltipElementId);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// eslint-disable-next-line valid-jsdoc
|
|
177
|
-
/**
|
|
178
|
-
* To bind events for tooltip module
|
|
179
|
-
*
|
|
180
|
-
* @private
|
|
181
|
-
*/
|
|
182
|
-
public addEventListener(): void {
|
|
183
|
-
if (this.treemap.isDestroyed) {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
this.treemap.on(Browser.touchMoveEvent, this.renderTooltip, this);
|
|
187
|
-
this.treemap.on(Browser.touchEndEvent, this.mouseUpHandler, this);
|
|
188
|
-
}
|
|
189
|
-
// eslint-disable-next-line valid-jsdoc
|
|
190
|
-
/**
|
|
191
|
-
* To unbind events for tooltip module
|
|
192
|
-
*
|
|
193
|
-
* @private
|
|
194
|
-
*/
|
|
195
|
-
public removeEventListener(): void {
|
|
196
|
-
if (this.treemap.isDestroyed) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
this.treemap.off(Browser.touchMoveEvent, this.renderTooltip);
|
|
200
|
-
this.treemap.off(Browser.touchEndEvent, this.mouseUpHandler);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Get module name.
|
|
205
|
-
*
|
|
206
|
-
* @returns {string} returns string
|
|
207
|
-
*/
|
|
208
|
-
protected getModuleName(): string {
|
|
209
|
-
return 'treeMapTooltip';
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* To destroy the tooltip.
|
|
213
|
-
*
|
|
214
|
-
* @returns {void}
|
|
215
|
-
* @private
|
|
216
|
-
*/
|
|
217
|
-
public destroy(): void {
|
|
218
|
-
if (!isNullOrUndefined(this.svgTooltip)) {
|
|
219
|
-
this.svgTooltip.destroy();
|
|
220
|
-
this.svgTooltip.controlInstance = null;
|
|
221
|
-
removeElement(this.treemap.element.id + '_TreeMapTooltip');
|
|
222
|
-
}
|
|
223
|
-
this.svgTooltip = null;
|
|
224
|
-
this.tooltipSettings = null;
|
|
225
|
-
this.removeEventListener();
|
|
226
|
-
this.treemap = null;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines the position of the label in treemap leaf node.
|
|
3
|
-
*/
|
|
4
|
-
export declare type LabelPosition =
|
|
5
|
-
/** Specifies to show the position of the label based on the top and left of the treemap leaf nodes. */
|
|
6
|
-
'TopLeft' |
|
|
7
|
-
/** Specifies to show the position of the label based on the top and center of the treemap leaf nodes. */
|
|
8
|
-
'TopCenter' |
|
|
9
|
-
/** Specifies to show the position of the label based on the top and right of the treemap leaf nodes. */
|
|
10
|
-
'TopRight' |
|
|
11
|
-
/** Specifies to show the position of the label based on the center and left of the treemap leaf nodes. */
|
|
12
|
-
'CenterLeft' |
|
|
13
|
-
/** Specifies to show the position of the label based on the center of the treemap leaf nodes. */
|
|
14
|
-
'Center' |
|
|
15
|
-
/** Specifies to show the position of the label based on the center and right of the treemap leaf nodes. */
|
|
16
|
-
'CenterRight' |
|
|
17
|
-
/** Specifies to show the position of the label based on the bottom and left of the treemap leaf nodes. */
|
|
18
|
-
'BottomLeft' |
|
|
19
|
-
/** Specifies to show the position of the label based on the bottom and center of the treemap leaf nodes. */
|
|
20
|
-
'BottomCenter' |
|
|
21
|
-
/** Specifies to show the position of the label based on the bottom and right of the treemap leaf nodes. */
|
|
22
|
-
'BottomRight';
|
|
23
|
-
/**
|
|
24
|
-
* Specifies the layout rendering mode of the treemap.
|
|
25
|
-
*/
|
|
26
|
-
export declare type LayoutMode =
|
|
27
|
-
/** This visualizes the treemap as the nested rectangles having size proportionate to weight value. */
|
|
28
|
-
'Squarified' |
|
|
29
|
-
/** This visualizes the treemap as the horizontal rectangles having size proportionate to weight value. */
|
|
30
|
-
'SliceAndDiceHorizontal' |
|
|
31
|
-
/** This visualizes the treemap as the vertical rectangles having size proportionate to weight value. */
|
|
32
|
-
'SliceAndDiceVertical' |
|
|
33
|
-
/** This visualizes the treemap rectangles having size proportionate to weight value. This type automatically provides the orientation based on the size of the treemap. */
|
|
34
|
-
'SliceAndDiceAuto';
|
|
35
|
-
/**
|
|
36
|
-
* Specifies the alignment of the elements in the treemap.
|
|
37
|
-
*/
|
|
38
|
-
export declare type Alignment =
|
|
39
|
-
/** Defines the alignment is near the treemap with respect the element position. */
|
|
40
|
-
'Near' |
|
|
41
|
-
/** Defines the alignment is at center of the treemap with respect the element position. */
|
|
42
|
-
'Center' |
|
|
43
|
-
/** Defines the alignment is far from the treemap with respect the element position. */
|
|
44
|
-
'Far';
|
|
45
|
-
/**
|
|
46
|
-
* Specifies the element which must be highlighted when mouse over is performed in treemap.
|
|
47
|
-
*/
|
|
48
|
-
export declare type HighLightMode =
|
|
49
|
-
/** Highlights the treemap item when the mouse over is done on the treemap item. */
|
|
50
|
-
'Item' |
|
|
51
|
-
/** Highlights the treemap item and all its children when the mouse over is done on the treemap item. */
|
|
52
|
-
'Child' |
|
|
53
|
-
/** Highlights the treemap item and all its parent levels when the mouse over is done on the treemap item. */
|
|
54
|
-
'Parent' |
|
|
55
|
-
/** Highlights all the related nodes such as child and parent when the mouse over is done on the treemap item. */
|
|
56
|
-
'All';
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the element which must be selected when click event is performed in treemap.
|
|
59
|
-
*/
|
|
60
|
-
export declare type SelectionMode =
|
|
61
|
-
/** Selects the treemap item when the click operation is done on the treemap item. */
|
|
62
|
-
'Item' |
|
|
63
|
-
/** Selects the treemap item and all its children when the click operation is done on the treemap item. */
|
|
64
|
-
'Child' |
|
|
65
|
-
/** Selects the treemap item and all its parent levels when the click operation is done on the treemap item.. */
|
|
66
|
-
'Parent' |
|
|
67
|
-
/** Selects all the related nodes such as child and parent when the click operation is done on the treemap item. */
|
|
68
|
-
'All';
|
|
69
|
-
/**
|
|
70
|
-
* Specifies the export type for the treemap.
|
|
71
|
-
*/
|
|
72
|
-
export declare type ExportType =
|
|
73
|
-
/** Specifies that the rendered treemap is to be exported in the PNG format. */
|
|
74
|
-
'PNG' |
|
|
75
|
-
/** Specifies that the rendered treemap is to be exported in the JPEG format. */
|
|
76
|
-
'JPEG' |
|
|
77
|
-
/** Specifies that the rendered treemap is to be exported in the SVG format. */
|
|
78
|
-
'SVG' |
|
|
79
|
-
/** Specifies that the rendered treemap is to be exported in the PDF format. */
|
|
80
|
-
'PDF';
|
|
81
|
-
/**
|
|
82
|
-
* Defines the action of the label to be placed within the defined margins.
|
|
83
|
-
*/
|
|
84
|
-
export declare type LabelAlignment =
|
|
85
|
-
/** Specifies that the label will be trimmed if it exceeds the defined margins. */
|
|
86
|
-
'Trim' |
|
|
87
|
-
/** Specifies that the label will be hidden if it exceeds the defined margins. */
|
|
88
|
-
'Hide' |
|
|
89
|
-
/** Specifies that the label will be wrapped by word to fit within the defined margins. */
|
|
90
|
-
'WrapByWord' |
|
|
91
|
-
/** Specifies to wrap the data label if exceed the defined margins. */
|
|
92
|
-
'Wrap';
|
|
93
|
-
/**
|
|
94
|
-
* Defines the shape of legend item in the treemap.
|
|
95
|
-
*/
|
|
96
|
-
export declare type LegendShape =
|
|
97
|
-
/** Defines the legend shape as circle. */
|
|
98
|
-
'Circle' |
|
|
99
|
-
/** Defines the legend shape as rectangle. */
|
|
100
|
-
'Rectangle' |
|
|
101
|
-
/** Defines the legend shape as triangle. */
|
|
102
|
-
'Triangle' |
|
|
103
|
-
/** Defines the legend shape as diamond. */
|
|
104
|
-
'Diamond' |
|
|
105
|
-
/** Defines the legend shape as cross. */
|
|
106
|
-
'Cross' |
|
|
107
|
-
/** Defines the legend shape as star. */
|
|
108
|
-
'Star' |
|
|
109
|
-
/** Defines the legend shape as horizontal line. */
|
|
110
|
-
'HorizontalLine' |
|
|
111
|
-
/** Defines the legend shape as vertical line. */
|
|
112
|
-
'VerticalLine' |
|
|
113
|
-
/** Defines the legend shape as pentagon. */
|
|
114
|
-
'Pentagon' |
|
|
115
|
-
/** Defines the legend shape as inverted triangle. */
|
|
116
|
-
'InvertedTriangle' |
|
|
117
|
-
/** Defines the legend shape as image. */
|
|
118
|
-
'Image';
|
|
119
|
-
/**
|
|
120
|
-
* Defines the position of the legend in the treemap.
|
|
121
|
-
*/
|
|
122
|
-
export declare type LegendPosition =
|
|
123
|
-
/** Specifies to place the legend at the top of the treemap. */
|
|
124
|
-
'Top' |
|
|
125
|
-
/** Specifies to place the legend on the left of the treemap. */
|
|
126
|
-
'Left' |
|
|
127
|
-
/** Specifies to place the legend at the bottom of the treemap. */
|
|
128
|
-
'Bottom' |
|
|
129
|
-
/** Specifies to place the legend on the right of the treemap. */
|
|
130
|
-
'Right' |
|
|
131
|
-
/** Specifies to place the legend based on given custom positions. */
|
|
132
|
-
'Float' |
|
|
133
|
-
/** Specifies to place the legend in a automatic position based on width and height. */
|
|
134
|
-
'Auto';
|
|
135
|
-
/**
|
|
136
|
-
* Defines the modes for rendering the legend.
|
|
137
|
-
*/
|
|
138
|
-
export declare type LegendMode =
|
|
139
|
-
/** Sets the legend as fixed, and has the option to add different shapes showcasing legend items. */
|
|
140
|
-
'Default' |
|
|
141
|
-
/** Set the legend as interactive, which is rectangular in shape with an indicator showcasing legend items. */
|
|
142
|
-
'Interactive';
|
|
143
|
-
/**
|
|
144
|
-
* Specifies the orientation of the legend in the treemap.
|
|
145
|
-
*/
|
|
146
|
-
export declare type LegendOrientation =
|
|
147
|
-
/** Defines the legend renders with default behavior. */
|
|
148
|
-
'None' |
|
|
149
|
-
/** Defines the legend rendered with items placed horizontally. */
|
|
150
|
-
'Horizontal' |
|
|
151
|
-
/** Defines the legend rendered with items placed vertically. */
|
|
152
|
-
'Vertical';
|
|
153
|
-
/**
|
|
154
|
-
* Defines the action to perform when the labels intersect each other in the treemap.
|
|
155
|
-
*/
|
|
156
|
-
export declare type LabelIntersectAction =
|
|
157
|
-
/** Specifies that no action will be taken when the label contents intersect. */
|
|
158
|
-
'None' |
|
|
159
|
-
/** Specifies that the data label should be trimmed when it intersects. */
|
|
160
|
-
'Trim' |
|
|
161
|
-
/** Specifies that the data label should be hidden when it intersects. */
|
|
162
|
-
'Hide';
|
|
163
|
-
/**
|
|
164
|
-
* Defines the placement type of the label.
|
|
165
|
-
*/
|
|
166
|
-
export declare type LabelPlacement =
|
|
167
|
-
/** Specifies the label placement as before. */
|
|
168
|
-
'Before' |
|
|
169
|
-
/** Specifies the label placement as after */
|
|
170
|
-
'After';
|
|
171
|
-
/**
|
|
172
|
-
* Defines the theme supported for treemap.
|
|
173
|
-
*/
|
|
174
|
-
export declare type TreeMapTheme =
|
|
175
|
-
/** Render a treemap with Material theme. */
|
|
176
|
-
'Material' |
|
|
177
|
-
/** Render a treemap with Fabric theme. */
|
|
178
|
-
'Fabric' |
|
|
179
|
-
/** Render a treemap with HighContrast light theme. */
|
|
180
|
-
'HighContrastLight' |
|
|
181
|
-
/** Render a treemap with Bootstrap theme. */
|
|
182
|
-
'Bootstrap' |
|
|
183
|
-
/** Render a treemap with Material dark theme. */
|
|
184
|
-
'MaterialDark' |
|
|
185
|
-
/** Render a treemap with Fabric dark theme. */
|
|
186
|
-
'FabricDark' |
|
|
187
|
-
/** Render a treemap with HighContrast dark theme. */
|
|
188
|
-
'HighContrast' |
|
|
189
|
-
/** Render a treemap with Bootstrap dark theme. */
|
|
190
|
-
'BootstrapDark' |
|
|
191
|
-
/** Render a treemap with Bootstrap4 theme. */
|
|
192
|
-
'Bootstrap4' |
|
|
193
|
-
/** Render a treemap with Tailwind theme. */
|
|
194
|
-
'Tailwind' |
|
|
195
|
-
/** Render a treemap with TailwindDark theme. */
|
|
196
|
-
'TailwindDark' |
|
|
197
|
-
/** Render a treemap with Tailwind3 theme. */
|
|
198
|
-
'Tailwind3' |
|
|
199
|
-
/** Render a treemap with Tailwind3Dark theme. */
|
|
200
|
-
'Tailwind3Dark' |
|
|
201
|
-
/** Render a treemap with Bootstrap5 theme. */
|
|
202
|
-
'Bootstrap5' |
|
|
203
|
-
/** Render a treemap with Bootstrap5 dark theme. */
|
|
204
|
-
'Bootstrap5Dark' |
|
|
205
|
-
/** Render a treemap with Fluent theme. */
|
|
206
|
-
'Fluent' |
|
|
207
|
-
/** Render a treemap with Fluent dark theme. */
|
|
208
|
-
'FluentDark' |
|
|
209
|
-
/** Render a treemap with Material3 theme. */
|
|
210
|
-
'Material3' |
|
|
211
|
-
/** Render a treemap with Material3Dark theme. */
|
|
212
|
-
'Material3Dark' |
|
|
213
|
-
/** Render a treemap with Fluent2 theme. */
|
|
214
|
-
'Fluent2' |
|
|
215
|
-
/** Render a treemap with Fluent2 dark theme. */
|
|
216
|
-
'Fluent2Dark' |
|
|
217
|
-
/** Render a treemap with Fluent2 high contrast theme. */
|
|
218
|
-
'Fluent2HighContrast';
|
|
219
|
-
/**
|
|
220
|
-
* Defines the rendering directions to render the treemap items in the treemap.
|
|
221
|
-
*/
|
|
222
|
-
export declare type RenderingMode =
|
|
223
|
-
/** Renders the treemap items from top right to bottom left direction */
|
|
224
|
-
'TopRightBottomLeft' |
|
|
225
|
-
/** Renders the treemap items from bottom left to top right direction */
|
|
226
|
-
'BottomLeftTopRight' |
|
|
227
|
-
/** Renders the treemap items from bottom right to top left direction */
|
|
228
|
-
'BottomRightTopLeft' |
|
|
229
|
-
/** Renders the treemap items from top left to bottom right direction */
|
|
230
|
-
'TopLeftBottomRight';
|
|
231
|
-
/**
|
|
232
|
-
* Defines the shape of the marker in the tooltip of the treemap.
|
|
233
|
-
*
|
|
234
|
-
* @private
|
|
235
|
-
*/
|
|
236
|
-
export declare type MarkerShape =
|
|
237
|
-
/** Renders circle shape marker in the tooltip. */
|
|
238
|
-
'Circle' |
|
|
239
|
-
/** Renders rectangle shape marker in the tooltip. */
|
|
240
|
-
'Rectangle' |
|
|
241
|
-
/** Renders triangle shape marker in the tooltip. */
|
|
242
|
-
'Triangle' |
|
|
243
|
-
/** Renders diamond shape marker in the tooltip. */
|
|
244
|
-
'Diamond' |
|
|
245
|
-
/** Renders cross shape marker in the tooltip. */
|
|
246
|
-
'Cross' |
|
|
247
|
-
/** Renders horizontal line shape marker in the tooltip. */
|
|
248
|
-
'HorizontalLine' |
|
|
249
|
-
/** Renders vertical line shape marker in the tooltip. */
|
|
250
|
-
'VerticalLine' |
|
|
251
|
-
/** Renders pentagon shape marker in the tooltip. */
|
|
252
|
-
'Pentagon' |
|
|
253
|
-
/** Renders inverted triangle shape marker in the tooltip. */
|
|
254
|
-
'InvertedTriangle' |
|
|
255
|
-
/** Renders image marker in the tooltip. */
|
|
256
|
-
'Image';
|