@syncfusion/ej2-treemap 30.1.37 → 30.2.4
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 +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 -51
- 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,724 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tree Map Components
|
|
3
|
-
*/
|
|
4
|
-
import { Component, INotifyPropertyChanged } from '@syncfusion/ej2-base';
|
|
5
|
-
import { ModuleDeclaration } from '@syncfusion/ej2-base';
|
|
6
|
-
import { EmitType, Internationalization } from '@syncfusion/ej2-base';
|
|
7
|
-
import { SvgRenderer } from '@syncfusion/ej2-svg-base';
|
|
8
|
-
import { BorderModel, TitleSettingsModel, MarginModel, LevelSettingsModel } from './model/base-model';
|
|
9
|
-
import { LeafItemSettingsModel, TooltipSettingsModel, LegendSettingsModel, InitialDrillSettingsModel } from './model/base-model';
|
|
10
|
-
import { HighlightSettingsModel, SelectionSettingsModel } from './model/base-model';
|
|
11
|
-
import { TreeMapModel } from './treemap-model';
|
|
12
|
-
import { LayoutMode, TreeMapTheme, RenderingMode } from './utils/enum';
|
|
13
|
-
import { ILoadEventArgs, ILoadedEventArgs, IPrintEventArgs } from '../treemap/model/interface';
|
|
14
|
-
import { ILegendItemRenderingEventArgs, ILegendRenderingEventArgs } from '../treemap/model/interface';
|
|
15
|
-
import { IItemRenderingEventArgs, IResizeEventArgs, IDoubleClickEventArgs } from '../treemap/model/interface';
|
|
16
|
-
import { IItemClickEventArgs, IItemMoveEventArgs, IMouseMoveEventArgs } from '../treemap/model/interface';
|
|
17
|
-
import { IDrillStartEventArgs, IItemSelectedEventArgs, ITreeMapTooltipRenderEventArgs } from '../treemap/model/interface';
|
|
18
|
-
import { IItemHighlightEventArgs, IDrillEndEventArgs, IThemeStyle } from '../treemap/model/interface';
|
|
19
|
-
import { Size, Rect } from '../treemap/utils/helper';
|
|
20
|
-
import { TreeMapAjax } from '../treemap/utils/helper';
|
|
21
|
-
import { LayoutPanel } from './layout/render-panel';
|
|
22
|
-
import { TreeMapTooltip } from './user-interaction/tooltip';
|
|
23
|
-
import { ExportType } from '../treemap/utils/enum';
|
|
24
|
-
import { PdfPageOrientation } from '@syncfusion/ej2-pdf-export';
|
|
25
|
-
import { TreeMapHighlight, TreeMapSelection } from './user-interaction/highlight-selection';
|
|
26
|
-
import { TreeMapLegend } from './layout/legend';
|
|
27
|
-
import { DataManager, Query } from '@syncfusion/ej2-data';
|
|
28
|
-
import { Print } from './model/print';
|
|
29
|
-
import { ImageExport } from './model/image-export';
|
|
30
|
-
import { PdfExport } from './model/pdf-export';
|
|
31
|
-
/**
|
|
32
|
-
* Represents the treemap control. It is used to visualize both hierarchical and flat data.
|
|
33
|
-
* ```html
|
|
34
|
-
* <div id="container"/>
|
|
35
|
-
* <script>
|
|
36
|
-
* var treemap = new TreeMap();
|
|
37
|
-
* treemap.appendTo("#container");
|
|
38
|
-
* </script>
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
export declare class TreeMap extends Component<HTMLElement> implements INotifyPropertyChanged {
|
|
42
|
-
/**
|
|
43
|
-
* Sets and gets the module that is used to add tooltip in the treemap.
|
|
44
|
-
*
|
|
45
|
-
* @private
|
|
46
|
-
*/
|
|
47
|
-
treeMapTooltipModule: TreeMapTooltip;
|
|
48
|
-
/**
|
|
49
|
-
* Sets and gets the module that is used to add highlight functionality in the treemap.
|
|
50
|
-
*
|
|
51
|
-
* @private
|
|
52
|
-
*/
|
|
53
|
-
treeMapHighlightModule: TreeMapHighlight;
|
|
54
|
-
/**
|
|
55
|
-
* Sets and gets the module that is used to add selection functionality in the treemap.
|
|
56
|
-
*
|
|
57
|
-
* @private
|
|
58
|
-
*/
|
|
59
|
-
treeMapSelectionModule: TreeMapSelection;
|
|
60
|
-
/**
|
|
61
|
-
* Sets and gets the module that is used to add legend in the treemap.
|
|
62
|
-
*
|
|
63
|
-
* @private
|
|
64
|
-
*/
|
|
65
|
-
treeMapLegendModule: TreeMapLegend;
|
|
66
|
-
/**
|
|
67
|
-
* Sets and gets the module that is used to add print functionality in the treemap.
|
|
68
|
-
*
|
|
69
|
-
* @private
|
|
70
|
-
*/
|
|
71
|
-
printModule: Print;
|
|
72
|
-
/**
|
|
73
|
-
* Sets and gets the module that is used to add imageExport functionality in the treemap.
|
|
74
|
-
*
|
|
75
|
-
* @private
|
|
76
|
-
*/
|
|
77
|
-
imageExportModule: ImageExport;
|
|
78
|
-
/**
|
|
79
|
-
* Sets and gets the module that is used to add pdf export functionality in the treemap.
|
|
80
|
-
*
|
|
81
|
-
* @private
|
|
82
|
-
*/
|
|
83
|
-
pdfExportModule: PdfExport;
|
|
84
|
-
/**
|
|
85
|
-
* Enables and disables the print functionality in treemap.
|
|
86
|
-
*
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
allowPrint: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Enables and disables the export to image functionality in treemap.
|
|
92
|
-
*
|
|
93
|
-
* @default false
|
|
94
|
-
*/
|
|
95
|
-
allowImageExport: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Enables and disables the export to pdf functionality in treemap.
|
|
98
|
-
*
|
|
99
|
-
* @default false
|
|
100
|
-
*/
|
|
101
|
-
allowPdfExport: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Sets and gets the width of the treemap.
|
|
104
|
-
*
|
|
105
|
-
* @default null
|
|
106
|
-
*/
|
|
107
|
-
width: string;
|
|
108
|
-
/**
|
|
109
|
-
* Sets and gets the height of the treemap.
|
|
110
|
-
*
|
|
111
|
-
* @default null
|
|
112
|
-
*/
|
|
113
|
-
height: string;
|
|
114
|
-
/**
|
|
115
|
-
* Sets and gets the options for customizing the color and width of the treemap border.
|
|
116
|
-
*/
|
|
117
|
-
border: BorderModel;
|
|
118
|
-
/**
|
|
119
|
-
* Sets and gets the options for customizing the margin in the treemap.
|
|
120
|
-
*/
|
|
121
|
-
margin: MarginModel;
|
|
122
|
-
/**
|
|
123
|
-
* Sets and gets the background color of the treemap.
|
|
124
|
-
*
|
|
125
|
-
* @default null
|
|
126
|
-
*/
|
|
127
|
-
background: string;
|
|
128
|
-
/**
|
|
129
|
-
* Sets and gets the theme styles supported for treemap. When the theme is set, the styles associated with the theme will be set in the treemap.
|
|
130
|
-
*
|
|
131
|
-
* @default Material
|
|
132
|
-
*/
|
|
133
|
-
theme: TreeMapTheme;
|
|
134
|
-
/**
|
|
135
|
-
* Sets and gets the options for customizing the title of the treemap.
|
|
136
|
-
*/
|
|
137
|
-
titleSettings: TitleSettingsModel;
|
|
138
|
-
/**
|
|
139
|
-
* Specifies the rendering type for the layout of the treemap.
|
|
140
|
-
*
|
|
141
|
-
* @default 'Squarified'
|
|
142
|
-
*/
|
|
143
|
-
layoutType: LayoutMode;
|
|
144
|
-
/**
|
|
145
|
-
* Sets and gets the data source for the treemap.
|
|
146
|
-
*
|
|
147
|
-
* @isGenericType true
|
|
148
|
-
* @isObservable true
|
|
149
|
-
* @default null
|
|
150
|
-
*/
|
|
151
|
-
dataSource: DataManager | TreeMapAjax | Object[];
|
|
152
|
-
/**
|
|
153
|
-
* Sets and gets the query to select particular data from the shape data.
|
|
154
|
-
* This property is applicable only when the data source is created by data manager.
|
|
155
|
-
*
|
|
156
|
-
* @default null
|
|
157
|
-
*/
|
|
158
|
-
query: Query;
|
|
159
|
-
/**
|
|
160
|
-
* Sets and gets the value path of the weight from the data source, based on which the treemap item is rendered.
|
|
161
|
-
*
|
|
162
|
-
* @default null
|
|
163
|
-
*/
|
|
164
|
-
weightValuePath: string;
|
|
165
|
-
/**
|
|
166
|
-
* Sets and gets the value path from the data source, based on it color is filled in treemap.
|
|
167
|
-
* This property is used when range color mapping is set in the treemap.
|
|
168
|
-
*
|
|
169
|
-
* @default ''
|
|
170
|
-
*/
|
|
171
|
-
rangeColorValuePath: string;
|
|
172
|
-
/**
|
|
173
|
-
* Sets and gets the value path from the data source, based on it color is filled in treemap.
|
|
174
|
-
* This property is used when equal color mapping is set in the treemap.
|
|
175
|
-
*
|
|
176
|
-
* @default ''
|
|
177
|
-
*/
|
|
178
|
-
equalColorValuePath: string;
|
|
179
|
-
/**
|
|
180
|
-
* Sets and gets the value path from the data source, based on it color is filled in treemap.
|
|
181
|
-
*
|
|
182
|
-
* @default null
|
|
183
|
-
*/
|
|
184
|
-
colorValuePath: string;
|
|
185
|
-
/**
|
|
186
|
-
* Sets and gets a set of colors to apply in the treemap items.
|
|
187
|
-
*
|
|
188
|
-
* @default []
|
|
189
|
-
*/
|
|
190
|
-
palette: string[];
|
|
191
|
-
/**
|
|
192
|
-
* Specifies the rendering direction of layout of the treemap items.
|
|
193
|
-
*
|
|
194
|
-
* @default TopLeftBottomRight
|
|
195
|
-
*/
|
|
196
|
-
renderDirection: RenderingMode;
|
|
197
|
-
/**
|
|
198
|
-
* Enables or disables the drill down functionality in treemap.
|
|
199
|
-
*
|
|
200
|
-
* @default false
|
|
201
|
-
*/
|
|
202
|
-
enableDrillDown: boolean;
|
|
203
|
-
/**
|
|
204
|
-
* Enables or disables the connection text in the header of the treemap when drill down is enabled.
|
|
205
|
-
*
|
|
206
|
-
* @default false
|
|
207
|
-
*/
|
|
208
|
-
enableBreadcrumb: boolean;
|
|
209
|
-
/**
|
|
210
|
-
* Specifies the symbol to show connection between the two words in the header of the treemap during drill down.
|
|
211
|
-
*
|
|
212
|
-
* @default ' - '
|
|
213
|
-
*/
|
|
214
|
-
breadcrumbConnector: string;
|
|
215
|
-
/**
|
|
216
|
-
* Enables or disables the initial drill in the treemap.
|
|
217
|
-
*
|
|
218
|
-
* @default false
|
|
219
|
-
*/
|
|
220
|
-
drillDownView: boolean;
|
|
221
|
-
/**
|
|
222
|
-
* Specifies whether to enable the rendering of untrusted HTML values in the TreeMap. If `enableHtmlSanitizer` set to **true**, the component will sanitize any suspected untrusted strings and scripts before rendering them.
|
|
223
|
-
*
|
|
224
|
-
* @default false
|
|
225
|
-
*/
|
|
226
|
-
enableHtmlSanitizer: boolean;
|
|
227
|
-
/**
|
|
228
|
-
* Specifies the options for customizing the initial drill down in treemap.
|
|
229
|
-
*/
|
|
230
|
-
initialDrillDown: InitialDrillSettingsModel;
|
|
231
|
-
/**
|
|
232
|
-
* Sets and gets the options for customizing the leaf item of the treemap.
|
|
233
|
-
*/
|
|
234
|
-
leafItemSettings: LeafItemSettingsModel;
|
|
235
|
-
/**
|
|
236
|
-
* Sets and gets the options to configure and customize the levels of treemap items.
|
|
237
|
-
*/
|
|
238
|
-
levels: LevelSettingsModel[];
|
|
239
|
-
/**
|
|
240
|
-
* Sets and gets the options to customize the highlight functionality of the treemap.
|
|
241
|
-
*/
|
|
242
|
-
highlightSettings: HighlightSettingsModel;
|
|
243
|
-
/**
|
|
244
|
-
* Sets and gets the options for customizing the selection functionality of the treemap.
|
|
245
|
-
*/
|
|
246
|
-
selectionSettings: SelectionSettingsModel;
|
|
247
|
-
/**
|
|
248
|
-
* Sets and gets the options for customizing the tooltip of the treemap.
|
|
249
|
-
*/
|
|
250
|
-
tooltipSettings: TooltipSettingsModel;
|
|
251
|
-
/**
|
|
252
|
-
* Sets and gets the options for customizing the legend of the treemap.
|
|
253
|
-
*/
|
|
254
|
-
legendSettings: LegendSettingsModel;
|
|
255
|
-
/**
|
|
256
|
-
* Enables or disables the visibility state of the separator for grouping.
|
|
257
|
-
*
|
|
258
|
-
* @default false
|
|
259
|
-
*/
|
|
260
|
-
useGroupingSeparator: boolean;
|
|
261
|
-
/**
|
|
262
|
-
* Sets and gets the description for treemap.
|
|
263
|
-
*
|
|
264
|
-
* @default null
|
|
265
|
-
*/
|
|
266
|
-
description: string;
|
|
267
|
-
/**
|
|
268
|
-
* Sets and gets the tab index value for treemap.
|
|
269
|
-
*
|
|
270
|
-
* @default 0
|
|
271
|
-
*/
|
|
272
|
-
tabIndex: number;
|
|
273
|
-
/**
|
|
274
|
-
* Sets and gets format for the texts in the treemap. This property accepts any global string format like 'C', 'N1', 'P' etc.
|
|
275
|
-
*
|
|
276
|
-
* @default null
|
|
277
|
-
*/
|
|
278
|
-
format: string;
|
|
279
|
-
/**
|
|
280
|
-
* Triggers before the treemap is rendered.
|
|
281
|
-
*
|
|
282
|
-
* @event load
|
|
283
|
-
*/
|
|
284
|
-
load: EmitType<ILoadEventArgs>;
|
|
285
|
-
/**
|
|
286
|
-
* Triggers before the print gets started.
|
|
287
|
-
*
|
|
288
|
-
* @event beforePrint
|
|
289
|
-
*/
|
|
290
|
-
beforePrint: EmitType<IPrintEventArgs>;
|
|
291
|
-
/**
|
|
292
|
-
* Triggers after treemap is rendered.
|
|
293
|
-
*
|
|
294
|
-
* @event loaded
|
|
295
|
-
*/
|
|
296
|
-
loaded: EmitType<ILoadedEventArgs>;
|
|
297
|
-
/**
|
|
298
|
-
* Triggers before item rendering in the treemap.
|
|
299
|
-
*
|
|
300
|
-
* @event itemRendering
|
|
301
|
-
*/
|
|
302
|
-
itemRendering: EmitType<IItemRenderingEventArgs>;
|
|
303
|
-
/**
|
|
304
|
-
* Triggers on performing drill down functionality in the treemap.
|
|
305
|
-
*
|
|
306
|
-
* @event drillStart
|
|
307
|
-
*/
|
|
308
|
-
drillStart: EmitType<IDrillStartEventArgs>;
|
|
309
|
-
/**
|
|
310
|
-
* Triggers after drill down functionality gets completed in the treemap.
|
|
311
|
-
*
|
|
312
|
-
* @event drillEnd
|
|
313
|
-
*/
|
|
314
|
-
drillEnd: EmitType<IDrillEndEventArgs>;
|
|
315
|
-
/**
|
|
316
|
-
* Triggers after selecting a treemap item.
|
|
317
|
-
*
|
|
318
|
-
* @event itemSelected
|
|
319
|
-
*/
|
|
320
|
-
itemSelected: EmitType<IItemSelectedEventArgs>;
|
|
321
|
-
/**
|
|
322
|
-
* Triggers after highlighting on the treemap item.
|
|
323
|
-
*
|
|
324
|
-
* @event itemHighlight
|
|
325
|
-
*/
|
|
326
|
-
itemHighlight: EmitType<IItemHighlightEventArgs>;
|
|
327
|
-
/**
|
|
328
|
-
* Triggers on rendering of the tooltip in the treemap.
|
|
329
|
-
*
|
|
330
|
-
* @event tooltipRendering
|
|
331
|
-
*/
|
|
332
|
-
tooltipRendering: EmitType<ITreeMapTooltipRenderEventArgs>;
|
|
333
|
-
/**
|
|
334
|
-
* Triggers after clicking an item in the treemap.
|
|
335
|
-
*
|
|
336
|
-
* @event itemClick
|
|
337
|
-
*/
|
|
338
|
-
itemClick: EmitType<IItemClickEventArgs>;
|
|
339
|
-
/**
|
|
340
|
-
* Triggers after mouse hover on the treemap item.
|
|
341
|
-
*
|
|
342
|
-
* @event itemMove
|
|
343
|
-
*/
|
|
344
|
-
itemMove: EmitType<IItemMoveEventArgs>;
|
|
345
|
-
/**
|
|
346
|
-
* Triggers after clicking on the treemap.
|
|
347
|
-
*
|
|
348
|
-
* @event click
|
|
349
|
-
*/
|
|
350
|
-
click: EmitType<IItemClickEventArgs>;
|
|
351
|
-
/**
|
|
352
|
-
* Triggers after double clicking on the treemap.
|
|
353
|
-
*
|
|
354
|
-
* @event doubleClick
|
|
355
|
-
*/
|
|
356
|
-
doubleClick: EmitType<IDoubleClickEventArgs>;
|
|
357
|
-
/**
|
|
358
|
-
* Triggers after right clicking on the treemap.
|
|
359
|
-
*
|
|
360
|
-
* @event rightClick
|
|
361
|
-
*/
|
|
362
|
-
rightClick: EmitType<IMouseMoveEventArgs>;
|
|
363
|
-
/**
|
|
364
|
-
* Triggers after mouse hover on the treemap.
|
|
365
|
-
*
|
|
366
|
-
* @event mouseMove
|
|
367
|
-
*/
|
|
368
|
-
mouseMove: EmitType<IMouseMoveEventArgs>;
|
|
369
|
-
/**
|
|
370
|
-
* Triggers to notify the resize of the treemap when the window is resized.
|
|
371
|
-
*
|
|
372
|
-
* @event resize
|
|
373
|
-
*/
|
|
374
|
-
resize: EmitType<IResizeEventArgs>;
|
|
375
|
-
/**
|
|
376
|
-
* Triggers before rendering each legend item in the treemap.
|
|
377
|
-
*
|
|
378
|
-
* @event legendItemRendering
|
|
379
|
-
*/
|
|
380
|
-
legendItemRendering: EmitType<ILegendItemRenderingEventArgs>;
|
|
381
|
-
/**
|
|
382
|
-
* Triggers before rendering the legend items in the treemap.
|
|
383
|
-
*
|
|
384
|
-
* @event legendRendering
|
|
385
|
-
* @deprecated
|
|
386
|
-
*/
|
|
387
|
-
legendRendering: EmitType<ILegendRenderingEventArgs>;
|
|
388
|
-
/**
|
|
389
|
-
* resize the treemap
|
|
390
|
-
*/
|
|
391
|
-
private isResize;
|
|
392
|
-
/**
|
|
393
|
-
* svg renderer object.
|
|
394
|
-
*
|
|
395
|
-
* @private
|
|
396
|
-
*/
|
|
397
|
-
renderer: SvgRenderer;
|
|
398
|
-
/**
|
|
399
|
-
* treemap svg element object
|
|
400
|
-
*
|
|
401
|
-
* @private
|
|
402
|
-
*/
|
|
403
|
-
svgObject: Element;
|
|
404
|
-
/**
|
|
405
|
-
* Stores the exact size of treemap.
|
|
406
|
-
*
|
|
407
|
-
* @private
|
|
408
|
-
*/
|
|
409
|
-
availableSize: Size;
|
|
410
|
-
/**
|
|
411
|
-
* Internal use of internationalization instance.
|
|
412
|
-
*
|
|
413
|
-
* @private
|
|
414
|
-
*/
|
|
415
|
-
intl: Internationalization;
|
|
416
|
-
/**
|
|
417
|
-
* Stores the area bounds.
|
|
418
|
-
*
|
|
419
|
-
* @private
|
|
420
|
-
*/
|
|
421
|
-
areaRect: Rect;
|
|
422
|
-
/**
|
|
423
|
-
* Define the theme style for treemap.
|
|
424
|
-
*
|
|
425
|
-
* @private
|
|
426
|
-
*/
|
|
427
|
-
themeStyle: IThemeStyle;
|
|
428
|
-
/**
|
|
429
|
-
* Stores the legend bounds.
|
|
430
|
-
*
|
|
431
|
-
* @private
|
|
432
|
-
*/
|
|
433
|
-
totalRect: Rect;
|
|
434
|
-
/** @private */
|
|
435
|
-
layout: LayoutPanel;
|
|
436
|
-
/** @private */
|
|
437
|
-
orientation: string;
|
|
438
|
-
/** @private */
|
|
439
|
-
drilledItems: any[];
|
|
440
|
-
/** @private */
|
|
441
|
-
drilledLegendItems: any;
|
|
442
|
-
/** @private */
|
|
443
|
-
currentLevel: number;
|
|
444
|
-
/** @private */
|
|
445
|
-
isHierarchicalData: boolean;
|
|
446
|
-
/** @private */
|
|
447
|
-
private resizeTo;
|
|
448
|
-
/** @private */
|
|
449
|
-
private mouseDown;
|
|
450
|
-
/** @private */
|
|
451
|
-
private drillMouseMove;
|
|
452
|
-
/** @private */
|
|
453
|
-
doubleTapTimer: any;
|
|
454
|
-
/** @private */
|
|
455
|
-
levelSelection: string[];
|
|
456
|
-
/** @private */
|
|
457
|
-
legendId: string[];
|
|
458
|
-
/** @private */
|
|
459
|
-
selectionId: string;
|
|
460
|
-
/** @private */
|
|
461
|
-
treemapLevelData: LevelsData;
|
|
462
|
-
private resizeEvent;
|
|
463
|
-
/**
|
|
464
|
-
* Constructor for TreeMap.
|
|
465
|
-
*
|
|
466
|
-
* @param {TreeMapModel} options - Specifies the treemap instance.
|
|
467
|
-
* @param {string | HTMLElement} element - Specifies the treemap element.
|
|
468
|
-
*/
|
|
469
|
-
constructor(options?: TreeMapModel, element?: string | HTMLElement);
|
|
470
|
-
protected preRender(): void;
|
|
471
|
-
protected render(): void;
|
|
472
|
-
private renderElements;
|
|
473
|
-
private processDataManager;
|
|
474
|
-
private renderTreeMapElements;
|
|
475
|
-
protected createSvg(): void;
|
|
476
|
-
/**
|
|
477
|
-
* To initilize the private varibales of treemap.
|
|
478
|
-
*
|
|
479
|
-
* @returns {void}
|
|
480
|
-
*/
|
|
481
|
-
private initPrivateVariable;
|
|
482
|
-
private createSecondaryElement;
|
|
483
|
-
private elementChange;
|
|
484
|
-
/**
|
|
485
|
-
* Render the treemap border
|
|
486
|
-
*
|
|
487
|
-
* @private
|
|
488
|
-
* @returns {void}
|
|
489
|
-
*/
|
|
490
|
-
private renderBorder;
|
|
491
|
-
private renderTitle;
|
|
492
|
-
protected processingData(): void;
|
|
493
|
-
private checkIsHierarchicalData;
|
|
494
|
-
private processHierarchicalData;
|
|
495
|
-
/**
|
|
496
|
-
* This method is used to perform the print functionality in treemap.
|
|
497
|
-
*
|
|
498
|
-
* @param {string[] | string | Element} id - Specifies the element to print the treemap.
|
|
499
|
-
* @returns {void}
|
|
500
|
-
*/
|
|
501
|
-
print(id?: string[] | string | Element): void;
|
|
502
|
-
/**
|
|
503
|
-
* This method is used to perform the export functionality for the rendered treemap.
|
|
504
|
-
*
|
|
505
|
-
* @param {ExportType} type - Specifies the extension type of the exported document.
|
|
506
|
-
* @param {string} fileName - Specifies file name for exporting the rendered TreeMap.
|
|
507
|
-
* @param {PdfPageOrientation} orientation - Specifies the orientation of the PDF document.
|
|
508
|
-
* @param {boolean} allowDownload - Specifies whether the exported file should be downloaded or not.
|
|
509
|
-
* @returns {string} - Specifies the base64 string of the exported image which is returned when the allowDownload is set to false.
|
|
510
|
-
*/
|
|
511
|
-
export(type: ExportType, fileName: string, orientation?: PdfPageOrientation, allowDownload?: boolean): Promise<string>;
|
|
512
|
-
private processFlatJsonData;
|
|
513
|
-
/**
|
|
514
|
-
* This method orders the treemap level data.
|
|
515
|
-
*
|
|
516
|
-
* @param {number} start - Specifies the start value of the treemap level.
|
|
517
|
-
* @returns {void}
|
|
518
|
-
* @private
|
|
519
|
-
*/
|
|
520
|
-
reOrderLevelData(start: number): void;
|
|
521
|
-
private IsChildHierarchy;
|
|
522
|
-
/**
|
|
523
|
-
* This method finds the weight value of the treemap level.
|
|
524
|
-
*
|
|
525
|
-
* @param {any[]} processData - Specifies the treemap data.
|
|
526
|
-
* @param {string} type - Specifies the type of the data.
|
|
527
|
-
* @returns {void}
|
|
528
|
-
* @private
|
|
529
|
-
*/
|
|
530
|
-
findTotalWeight(processData: any[], type: string): void;
|
|
531
|
-
/**
|
|
532
|
-
* To unbind event handlers for treemap.
|
|
533
|
-
*
|
|
534
|
-
* @returns {void}
|
|
535
|
-
* @private
|
|
536
|
-
*/
|
|
537
|
-
private unWireEVents;
|
|
538
|
-
/**
|
|
539
|
-
* To bind event handlers for treemap.
|
|
540
|
-
*
|
|
541
|
-
* @returns {void}
|
|
542
|
-
*/
|
|
543
|
-
private wireEVents;
|
|
544
|
-
/**
|
|
545
|
-
* Method to set culture for maps
|
|
546
|
-
*
|
|
547
|
-
* @returns {void}
|
|
548
|
-
*/
|
|
549
|
-
private setCulture;
|
|
550
|
-
/**
|
|
551
|
-
* To add tab index for treemap element
|
|
552
|
-
*
|
|
553
|
-
* @returns {void}
|
|
554
|
-
*/
|
|
555
|
-
private addTabIndex;
|
|
556
|
-
/**
|
|
557
|
-
* This method handles the window resize event on treemap.
|
|
558
|
-
*
|
|
559
|
-
* @param {Event} e - Specifies the pointer event.
|
|
560
|
-
* @returns {void}
|
|
561
|
-
* @private
|
|
562
|
-
*/
|
|
563
|
-
resizeOnTreeMap(e: Event): void;
|
|
564
|
-
/**
|
|
565
|
-
* This method handles the click event on the treemap.
|
|
566
|
-
*
|
|
567
|
-
* @param {PointerEvent} e - Specifies the mouse click event in the treemap.
|
|
568
|
-
* @returns {void}
|
|
569
|
-
* @private
|
|
570
|
-
*/
|
|
571
|
-
clickOnTreeMap(e: PointerEvent): void;
|
|
572
|
-
/**
|
|
573
|
-
* This method handles the double click event in the treemap.
|
|
574
|
-
*
|
|
575
|
-
* @param {PointerEvent} e - Specifies the pointer event of mouse click.
|
|
576
|
-
* @returns {void}
|
|
577
|
-
*/
|
|
578
|
-
doubleClickOnTreeMap(e: PointerEvent): void;
|
|
579
|
-
/**
|
|
580
|
-
* This method handles the right click event in the treemap.
|
|
581
|
-
*
|
|
582
|
-
* @param {PointerEvent} e - Specifies the pointer event of mouse click.
|
|
583
|
-
* @returns {void}
|
|
584
|
-
* @private
|
|
585
|
-
*/
|
|
586
|
-
rightClickOnTreeMap(e: PointerEvent): void;
|
|
587
|
-
/**
|
|
588
|
-
* This method handles the mouse down event in the treemap.
|
|
589
|
-
*
|
|
590
|
-
* @param {PointerEvent} e - Specifies the pointer event of mouse click.
|
|
591
|
-
* @returns {void}
|
|
592
|
-
* @private
|
|
593
|
-
*/
|
|
594
|
-
mouseDownOnTreeMap(e: PointerEvent): void;
|
|
595
|
-
/**
|
|
596
|
-
* This method handles the mouse move event in the treemap.
|
|
597
|
-
*
|
|
598
|
-
* @param {PointerEvent} e - Specifies the pointer event of mouse click.
|
|
599
|
-
* @returns {void}
|
|
600
|
-
* @private
|
|
601
|
-
*/
|
|
602
|
-
mouseMoveOnTreeMap(e: PointerEvent): void;
|
|
603
|
-
/**
|
|
604
|
-
* This method calculates the selected treemap levels.
|
|
605
|
-
*
|
|
606
|
-
* @param {string} labelText - Specifies the label text.
|
|
607
|
-
* @param {any} item - Specifies the treemap item.
|
|
608
|
-
* @returns {any} - Returns label of the drilled level.
|
|
609
|
-
* @private
|
|
610
|
-
*/
|
|
611
|
-
calculateSelectedTextLevels(labelText: string, item: any): any;
|
|
612
|
-
/**
|
|
613
|
-
* This method calculates the previous level of child items in treemap.
|
|
614
|
-
*
|
|
615
|
-
* @param {any} drillLevelValues - Specifies the values of drill level.
|
|
616
|
-
* @param {any} item - Specifies the treemap item.
|
|
617
|
-
* @param {boolean} directLevel - Specifies the current level.
|
|
618
|
-
* @returns {boolean} - check whether it is previous level or not.
|
|
619
|
-
* @private
|
|
620
|
-
*/
|
|
621
|
-
calculatePreviousLevelChildItems(drillLevelValues: any, item: any, directLevel: boolean): boolean;
|
|
622
|
-
/**
|
|
623
|
-
* This method compares the selected labels with the drill down items.
|
|
624
|
-
*
|
|
625
|
-
* @param {any} drillLevelValues - Specifies the values of drill level.
|
|
626
|
-
* @param {any} item - Specifies the treemap item.
|
|
627
|
-
* @param {number} i - Specifies the treemap item.
|
|
628
|
-
* @returns {any} - return the new drill down object.
|
|
629
|
-
* @private
|
|
630
|
-
*/
|
|
631
|
-
compareSelectedLabelWithDrillDownItems(drillLevelValues: any, item: any, i: number): any;
|
|
632
|
-
/**
|
|
633
|
-
* This method handles mouse end event in treemap.
|
|
634
|
-
*
|
|
635
|
-
* @param {PointerEvent} e - Specifies the pointer event of mouse.
|
|
636
|
-
* @returns {void}
|
|
637
|
-
* @private
|
|
638
|
-
*/
|
|
639
|
-
mouseEndOnTreeMap(e: PointerEvent | KeyboardEvent): void;
|
|
640
|
-
/**
|
|
641
|
-
* This method handles mouse leave event in treemap.
|
|
642
|
-
*
|
|
643
|
-
* @param {PointerEvent} e - Specifies the pointer event of mouse.
|
|
644
|
-
* @return {void}
|
|
645
|
-
* @private
|
|
646
|
-
*/
|
|
647
|
-
mouseLeaveOnTreeMap(e: PointerEvent): void;
|
|
648
|
-
/**
|
|
649
|
-
* This method is used to perform operations when keyboard up on TreeMap.
|
|
650
|
-
*
|
|
651
|
-
* @param {KeyboardEvent} event - Specifies the keyboard event on TreeMap.
|
|
652
|
-
* @returns {void}
|
|
653
|
-
* @private
|
|
654
|
-
*/
|
|
655
|
-
keyUpHandler(event: KeyboardEvent): void;
|
|
656
|
-
/**
|
|
657
|
-
* This method is used to perform operations when keyboard down on treemap.
|
|
658
|
-
*
|
|
659
|
-
* @param {KeyboardEvent} event - Specifies the keyboard event on treemap.
|
|
660
|
-
* @returns {void}
|
|
661
|
-
* @private
|
|
662
|
-
*/
|
|
663
|
-
keyDownHandler(event: KeyboardEvent): void;
|
|
664
|
-
/**
|
|
665
|
-
* This method is used to perform operations when focus out on treemap.
|
|
666
|
-
*
|
|
667
|
-
* @param {KeyboardEvent} event - Specifies the keyboard event on treemap.
|
|
668
|
-
* @returns {void}
|
|
669
|
-
* @private
|
|
670
|
-
*/
|
|
671
|
-
focusHandler(event: FocusEvent): void;
|
|
672
|
-
private removeFocus;
|
|
673
|
-
/**
|
|
674
|
-
* This method is used to select or remove the selection of treemap item based on the provided selection settings.
|
|
675
|
-
*
|
|
676
|
-
* @param {string[]} levelOrder - Specifies the order of the level.
|
|
677
|
-
* @param {boolean} isSelected - Specifies whether the treemap item should be selected or the selection should be removed.
|
|
678
|
-
* @return {void}
|
|
679
|
-
*/
|
|
680
|
-
selectItem(levelOrder: string[], isSelected?: boolean): void;
|
|
681
|
-
/**
|
|
682
|
-
* To provide the array of modules needed for maps rendering
|
|
683
|
-
*
|
|
684
|
-
* @returns {ModuleDeclaration[]} Returns the modules
|
|
685
|
-
* @private
|
|
686
|
-
*/
|
|
687
|
-
requiredModules(): ModuleDeclaration[];
|
|
688
|
-
/**
|
|
689
|
-
* Called internally if any of the property value changed.
|
|
690
|
-
*
|
|
691
|
-
* @param {TreeMapModel} newProp - Specifies the new property
|
|
692
|
-
* @param {TreeMapModel} oldProp - Specifies the old property
|
|
693
|
-
* @returns {void}
|
|
694
|
-
* @private
|
|
695
|
-
*/
|
|
696
|
-
onPropertyChanged(newProp: TreeMapModel, oldProp: TreeMapModel): void;
|
|
697
|
-
/**
|
|
698
|
-
* Gets component name.
|
|
699
|
-
*
|
|
700
|
-
* @returns {string} - return the treemap instance.
|
|
701
|
-
* @private
|
|
702
|
-
*/
|
|
703
|
-
getModuleName(): string;
|
|
704
|
-
/**
|
|
705
|
-
* This method destroys the treemap. This method removes the events associated with the treemap and disposes the objects created for rendering and updating the treemap.
|
|
706
|
-
*/
|
|
707
|
-
destroy(): void;
|
|
708
|
-
private removeSvg;
|
|
709
|
-
/**
|
|
710
|
-
* Get the properties to be maintained in the persisted state.
|
|
711
|
-
*
|
|
712
|
-
* @returns {string} - Returns the string value.
|
|
713
|
-
* @private
|
|
714
|
-
*/
|
|
715
|
-
getPersistData(): string;
|
|
716
|
-
}
|
|
717
|
-
/**
|
|
718
|
-
* @private
|
|
719
|
-
*/
|
|
720
|
-
export declare class LevelsData {
|
|
721
|
-
levelsData: any[];
|
|
722
|
-
defaultLevelsData: any[];
|
|
723
|
-
hierarchyData: any[];
|
|
724
|
-
}
|