@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,543 +0,0 @@
|
|
|
1
|
-
import { BorderModel, FontModel, ColorMappingModel } from '../model/base-model';
|
|
2
|
-
import { SvgRenderer } from '@syncfusion/ej2-svg-base';
|
|
3
|
-
import { Alignment, LabelPosition } from '../utils/enum';
|
|
4
|
-
import { TreeMap } from '../treemap';
|
|
5
|
-
import { IShapes } from '../model/interface';
|
|
6
|
-
import { ExportType } from '../utils/enum';
|
|
7
|
-
/**
|
|
8
|
-
* Specifies the size parameters.
|
|
9
|
-
*/
|
|
10
|
-
export declare class Size {
|
|
11
|
-
/**
|
|
12
|
-
* Defines the height in the size object.
|
|
13
|
-
*/
|
|
14
|
-
height: number;
|
|
15
|
-
/**
|
|
16
|
-
* Defines the width in the size object.
|
|
17
|
-
*/
|
|
18
|
-
width: number;
|
|
19
|
-
constructor(width: number, height: number);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @param {string} value - specifies the text.
|
|
24
|
-
* @param {number} containerSize - specifies the container size value.
|
|
25
|
-
* @returns {number} - Returns the number value which is converted from string.
|
|
26
|
-
*/
|
|
27
|
-
export declare function stringToNumber(value: string, containerSize: number): number;
|
|
28
|
-
/**
|
|
29
|
-
* Internal use of type rect
|
|
30
|
-
*
|
|
31
|
-
* @private
|
|
32
|
-
*/
|
|
33
|
-
export declare class Rect {
|
|
34
|
-
x: number;
|
|
35
|
-
y: number;
|
|
36
|
-
height: number;
|
|
37
|
-
width: number;
|
|
38
|
-
constructor(x: number, y: number, width: number, height: number);
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Internal use of rectangle options
|
|
42
|
-
*
|
|
43
|
-
* @private
|
|
44
|
-
*/
|
|
45
|
-
export declare class RectOption {
|
|
46
|
-
id: string;
|
|
47
|
-
fill: string;
|
|
48
|
-
x: number;
|
|
49
|
-
y: number;
|
|
50
|
-
height: number;
|
|
51
|
-
width: number;
|
|
52
|
-
opacity: number;
|
|
53
|
-
stroke: string;
|
|
54
|
-
['stroke-width']: number;
|
|
55
|
-
['stroke-dasharray']: string;
|
|
56
|
-
constructor(id: string, fill: string, border: BorderModel, opacity: number, rect: Rect, dashArray?: string);
|
|
57
|
-
}
|
|
58
|
-
export declare class PathOption {
|
|
59
|
-
id: string;
|
|
60
|
-
opacity: number;
|
|
61
|
-
fill: string;
|
|
62
|
-
stroke: string;
|
|
63
|
-
['stroke-width']: number;
|
|
64
|
-
['stroke-dasharray']: string;
|
|
65
|
-
d: string;
|
|
66
|
-
constructor(id: string, fill: string, width: number, color: string, opacity?: number, dashArray?: string, d?: string);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Function to measure the height and width of the text.
|
|
70
|
-
*
|
|
71
|
-
* @param {string} text - Specifies the text.
|
|
72
|
-
* @param {FontModel} font - Specifies the font.
|
|
73
|
-
* @returns {Size} - Returns the size.
|
|
74
|
-
* @private
|
|
75
|
-
*/
|
|
76
|
-
export declare function measureText(text: string, font: FontModel): Size;
|
|
77
|
-
/**
|
|
78
|
-
* Internal use of text options
|
|
79
|
-
*
|
|
80
|
-
* @private
|
|
81
|
-
*/
|
|
82
|
-
export declare class TextOption {
|
|
83
|
-
anchor: string;
|
|
84
|
-
id: string;
|
|
85
|
-
transform: string;
|
|
86
|
-
x: number;
|
|
87
|
-
y: number;
|
|
88
|
-
text: string | string[];
|
|
89
|
-
baseLine: string;
|
|
90
|
-
connectorText: string;
|
|
91
|
-
constructor(id?: string, x?: number, y?: number, anchor?: string, text?: string | string[], transform?: string, baseLine?: string, connectorText?: string);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Trim the title text
|
|
95
|
-
*
|
|
96
|
-
* @param {number} maxWidth - Specifies the maximum width
|
|
97
|
-
* @param {string} text - Specifies the text
|
|
98
|
-
* @param {FontModel} font - Specifies the font
|
|
99
|
-
* @returns {string} - Returns the string
|
|
100
|
-
* @private
|
|
101
|
-
*/
|
|
102
|
-
export declare function textTrim(maxWidth: number, text: string, font: FontModel): string;
|
|
103
|
-
/**
|
|
104
|
-
* Specifies the location parameters.
|
|
105
|
-
*/
|
|
106
|
-
export declare class Location {
|
|
107
|
-
/**
|
|
108
|
-
* Defines the horizontal position.
|
|
109
|
-
*/
|
|
110
|
-
x: number;
|
|
111
|
-
/**
|
|
112
|
-
* Defines the vertical position.
|
|
113
|
-
*/
|
|
114
|
-
y: number;
|
|
115
|
-
constructor(x: number, y: number);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Method to calculate x position of title
|
|
119
|
-
*
|
|
120
|
-
* @param {Rect} location - Specifies the location of text.
|
|
121
|
-
* @param {Alignment} alignment - Specifies the alignment of the text.
|
|
122
|
-
* @param {Size} textSize - Specifies the size of the text.
|
|
123
|
-
* @param {type} type - Specifies whether the provided text is title or subtitle.
|
|
124
|
-
* @returns {Location} - Returns the location of text.
|
|
125
|
-
* @private
|
|
126
|
-
*/
|
|
127
|
-
export declare function findPosition(location: Rect, alignment: Alignment, textSize: Size, type: string): Location;
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @param {SvgRenderer} renderer - Specifies the rendering element of the SVG.
|
|
131
|
-
* @param {any} renderOptions - Specifies the settings of the text.
|
|
132
|
-
* @param {string} text - Specifies the text.
|
|
133
|
-
* @returns {HTMLElement} - Returns the HTML element for the text.
|
|
134
|
-
*/
|
|
135
|
-
export declare function createTextStyle(renderer: SvgRenderer, renderOptions: any, text: string): HTMLElement;
|
|
136
|
-
/**
|
|
137
|
-
* Internal rendering of text
|
|
138
|
-
*
|
|
139
|
-
* @param {TextOption} options - Specifies the text option
|
|
140
|
-
* @param {FontModel} font - Specifies the font model
|
|
141
|
-
* @param {string} color - Specifies the color
|
|
142
|
-
* @param {HTMLElement | Element} parent - Specifies the parent element of the text
|
|
143
|
-
* @param {boolean} isMinus - Specifies the boolean value
|
|
144
|
-
* @returns {Element} - Returns the element
|
|
145
|
-
* @private
|
|
146
|
-
*/
|
|
147
|
-
export declare function renderTextElement(options: TextOption, font: FontModel, color: string, parent: HTMLElement | Element, isMinus?: boolean): Element;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @param {string} targetId - Specifies the id of the element to which template is to be appended.
|
|
151
|
-
* @param {Element} targetElement - Specifies the element to which template is to be appended.
|
|
152
|
-
* @param {string} contentItemTemplate - Specifies the content to be appended as template.
|
|
153
|
-
* @returns {void}
|
|
154
|
-
*/
|
|
155
|
-
export declare function setItemTemplateContent(targetId: string, targetElement: Element, contentItemTemplate: string): void;
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @param {string} id - Specifies the id of the element.
|
|
159
|
-
* @returns {Element} - Returns the element.
|
|
160
|
-
*/
|
|
161
|
-
export declare function getElement(id: string): Element;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @param {any} a - Specifies the first order of TreeMap leaf elements.
|
|
165
|
-
* @param {any} b - Specifies the second order of TreeMap leaf elements.
|
|
166
|
-
* @returns {number} - Returns the order of the TreeMap leaf element.
|
|
167
|
-
*/
|
|
168
|
-
export declare function itemsToOrder(a: any, b: any): number;
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @param {string[]} source - Specifies the data from the data source.
|
|
172
|
-
* @param {string} pathName - Specifies the path name in the data source.
|
|
173
|
-
* @param {any} processData - Specifies the data source object.
|
|
174
|
-
* @param {TreeMap} treemap - Specifies the treemap instance.
|
|
175
|
-
* @returns {boolean} - Specifies whether data is available in the data source or not.
|
|
176
|
-
*/
|
|
177
|
-
export declare function isContainsData(source: string[], pathName: string, processData: any, treemap: TreeMap): boolean;
|
|
178
|
-
/**
|
|
179
|
-
*
|
|
180
|
-
* @param {any} data - Specifies the data to which the children elements to be found.
|
|
181
|
-
* @returns {any} - Returns the children elements of the TreeMap leaf element.
|
|
182
|
-
*/
|
|
183
|
-
export declare function findChildren(data: any): any;
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @param {any} data - Specifies the data to which highlight must be done.
|
|
187
|
-
* @param {items} items - Specifies the data source items.
|
|
188
|
-
* @param {string} mode - Specifies the mode of highlight.
|
|
189
|
-
* @param {TreeMap} treeMap - Specifies the treemap instance.
|
|
190
|
-
* @returns {string[]} - Returns the highlighted items.
|
|
191
|
-
*/
|
|
192
|
-
export declare function findHightLightItems(data: any, items: string[], mode: string, treeMap: TreeMap): string[];
|
|
193
|
-
/**
|
|
194
|
-
* Function to compile the template function for maps.
|
|
195
|
-
*
|
|
196
|
-
* @param {string} template - Specifies the template
|
|
197
|
-
* @returns {Function} - Returns the template function
|
|
198
|
-
* @private
|
|
199
|
-
*/
|
|
200
|
-
export declare function getTemplateFunction(template: string | Function): any;
|
|
201
|
-
/**
|
|
202
|
-
* @private
|
|
203
|
-
* @param {HTMLCollection} element - Specifies the element
|
|
204
|
-
* @param {string} labelId - Specifies the label id
|
|
205
|
-
* @param {Object} data - Specifies the data
|
|
206
|
-
* @returns {HTMLElement} - Returns the element
|
|
207
|
-
*/
|
|
208
|
-
export declare function convertElement(element: HTMLCollection, labelId: string, data: any): HTMLElement;
|
|
209
|
-
/**
|
|
210
|
-
*
|
|
211
|
-
* @param {Rect} rect - Specifies the area.
|
|
212
|
-
* @param {LabelPosition} position - Specifies the position
|
|
213
|
-
* @param {Size} labelSize - Specifies the label size.
|
|
214
|
-
* @param {string} type - Specifies the type.
|
|
215
|
-
* @param {TreeMap} treemap - Specifies the treemap instance.
|
|
216
|
-
* @returns {Location} - Returns the text location.
|
|
217
|
-
*/
|
|
218
|
-
export declare function findLabelLocation(rect: Rect, position: LabelPosition, labelSize: Size, type: string, treemap: TreeMap): Location;
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
* @param {HTMLElement} element - Specifies the element to be measured.
|
|
222
|
-
* @param {HTMLElement} parentElement - Specifies the parent element of the element to be measured.
|
|
223
|
-
* @returns {Size} - Returns the element size.
|
|
224
|
-
*/
|
|
225
|
-
export declare function measureElement(element: HTMLElement, parentElement: HTMLElement): Size;
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @param {Rect} rect - Specifies the area.
|
|
229
|
-
* @returns {number} - Returns the area width.
|
|
230
|
-
*/
|
|
231
|
-
export declare function getArea(rect: Rect): number;
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* @param {Rect} input - Specifies input for the calculation.
|
|
235
|
-
* @returns {number} - Returns the shortest edge.
|
|
236
|
-
*/
|
|
237
|
-
export declare function getShortestEdge(input: Rect): number;
|
|
238
|
-
/**
|
|
239
|
-
*
|
|
240
|
-
* @param {Rect} rect - Specifies the rectangle bounds of the container.
|
|
241
|
-
* @returns {Rect} - Returns the rectangle bounds.
|
|
242
|
-
*/
|
|
243
|
-
export declare function convertToContainer(rect: Rect): Rect;
|
|
244
|
-
/**
|
|
245
|
-
*
|
|
246
|
-
* @param {Rect} container - Specifies the rectangle bounds of the container.
|
|
247
|
-
* @returns {Rect} - Returns the rectangle bounds.
|
|
248
|
-
*/
|
|
249
|
-
export declare function convertToRect(container: Rect): Rect;
|
|
250
|
-
/**
|
|
251
|
-
*
|
|
252
|
-
* @param {number} pageX - Specifies the horizontal position of the mouse location.
|
|
253
|
-
* @param {number} pageY - Specifies the vertical position of the mouse location.
|
|
254
|
-
* @param {Element} element - Specifies the element to which the click is done.
|
|
255
|
-
* @returns {Location} - Returns the clicked location.
|
|
256
|
-
*/
|
|
257
|
-
export declare function getMousePosition(pageX: number, pageY: number, element: Element): Location;
|
|
258
|
-
/**
|
|
259
|
-
*
|
|
260
|
-
* @param {ColorMappingModel[]} colorMapping - Specifies the color mapping instance.
|
|
261
|
-
* @param {string} equalValue - Specifies the equal value.
|
|
262
|
-
* @param {number | string} value - Specifies the range value.
|
|
263
|
-
* @returns {any} - Returns the color mapping object.
|
|
264
|
-
* @private
|
|
265
|
-
*/
|
|
266
|
-
export declare function colorMap(colorMapping: ColorMappingModel[], equalValue: string, value: number | string): any;
|
|
267
|
-
/**
|
|
268
|
-
*
|
|
269
|
-
* @param {ColorMappingModel} colorMapping - Specifies the color mapping object.
|
|
270
|
-
* @param {number} rangeValue - Specifies the range value.
|
|
271
|
-
* @returns {string} - Returns the opacity for the color mapping.
|
|
272
|
-
* @private
|
|
273
|
-
*/
|
|
274
|
-
export declare function deSaturationColor(colorMapping: ColorMappingModel, rangeValue: number): string;
|
|
275
|
-
/**
|
|
276
|
-
*
|
|
277
|
-
* @param {ColorMappingModel} colorMap - Specifies the color mapping object.
|
|
278
|
-
* @param {number} value - Specifies the range value.
|
|
279
|
-
* @returns {string} - Returns the fill color.
|
|
280
|
-
*/
|
|
281
|
-
export declare function colorCollections(colorMap: ColorMappingModel, value: number): string;
|
|
282
|
-
/**
|
|
283
|
-
*
|
|
284
|
-
* @param {number} r - Specifies the red color value.
|
|
285
|
-
* @param {number} g - Specifies the green color value.
|
|
286
|
-
* @param {number} b - Specifies the blue color value.
|
|
287
|
-
* @returns {string} - Returns the fill color.
|
|
288
|
-
*/
|
|
289
|
-
export declare function rgbToHex(r: number, g: number, b: number): string;
|
|
290
|
-
/**
|
|
291
|
-
*
|
|
292
|
-
* @param {ColorMappingModel} colorMap - Specifies the color mapping.
|
|
293
|
-
* @param {number} value - Specifies the range value.
|
|
294
|
-
* @returns {string} - Returns the fill color.
|
|
295
|
-
*/
|
|
296
|
-
export declare function getColorByValue(colorMap: ColorMappingModel, value: number): string;
|
|
297
|
-
/**
|
|
298
|
-
*
|
|
299
|
-
* @param {number} value - Specifies the range value.
|
|
300
|
-
* @param {ColorMappingModel} colorMap - Specifies the color mapping.
|
|
301
|
-
* @returns {ColorValue} - Returns the color value object.
|
|
302
|
-
*/
|
|
303
|
-
export declare function getGradientColor(value: number, colorMap: ColorMappingModel): ColorValue;
|
|
304
|
-
/**
|
|
305
|
-
*
|
|
306
|
-
* @param {number} percent - Specifies the percentage of the color.
|
|
307
|
-
* @param {number} previous - Specifies the previous color.
|
|
308
|
-
* @param {number} next - Specifies the next color.
|
|
309
|
-
* @returns {ColorValue} - Returns the color value object.
|
|
310
|
-
*/
|
|
311
|
-
export declare function getPercentageColor(percent: number, previous: string, next: string): ColorValue;
|
|
312
|
-
/**
|
|
313
|
-
*
|
|
314
|
-
* @param {number} percent - Specifies the percentage of the color.
|
|
315
|
-
* @param {number} previous - Specifies the previous color.
|
|
316
|
-
* @param {number} next - Specifies the next color.
|
|
317
|
-
* @returns {number} - Returns the color value.
|
|
318
|
-
*/
|
|
319
|
-
export declare function getPercentage(percent: number, previous: number, next: number): number;
|
|
320
|
-
/**
|
|
321
|
-
*
|
|
322
|
-
* @param {number} maximumWidth - Specifies the length of the text.
|
|
323
|
-
* @param {string} dataLabel - Specifies the label.
|
|
324
|
-
* @param {FontModel} font - Specifies the font of the label.
|
|
325
|
-
* @returns {string[]} - Returns the labels.
|
|
326
|
-
*/
|
|
327
|
-
export declare function wordWrap(maximumWidth: number, dataLabel: string, font: FontModel): string[];
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
* @param {number} maxWidth - Specifies the length of the text.
|
|
331
|
-
* @param {string} label - Specifies the label.
|
|
332
|
-
* @param {FontModel} font - Specifies the font of the label.
|
|
333
|
-
* @returns {string[]} - Returns the labels.
|
|
334
|
-
*/
|
|
335
|
-
export declare function textWrap(maxWidth: number, label: string, font: FontModel): string[];
|
|
336
|
-
/**
|
|
337
|
-
* hide function
|
|
338
|
-
*
|
|
339
|
-
* @param {number} maxWidth - Specifies the maximum width.
|
|
340
|
-
* @param {number} maxHeight - Specifies the maximum height.
|
|
341
|
-
* @param {string} text - Specifies the text.
|
|
342
|
-
* @param {FontModel} font - Specifies the font.
|
|
343
|
-
* @returns {string} - Returns the hidden text.
|
|
344
|
-
* @private
|
|
345
|
-
*/
|
|
346
|
-
export declare function hide(maxWidth: number, maxHeight: number, text: string, font: FontModel): string;
|
|
347
|
-
/**
|
|
348
|
-
*
|
|
349
|
-
* @param {number} a - Specifies the first value of the leaf.
|
|
350
|
-
* @param {number} b - Specifies the second value of the leaf.
|
|
351
|
-
* @returns {number} - Returns whether values are equal or not.
|
|
352
|
-
*/
|
|
353
|
-
export declare function orderByArea(a: number, b: number): number;
|
|
354
|
-
/**
|
|
355
|
-
*
|
|
356
|
-
* @param {TreeMap} treemap - Specifies the treemap instance.
|
|
357
|
-
* @param {Element} element - Specifies the selected TreeMap leaf item.
|
|
358
|
-
* @param {string} className -Specifies the selected class name.
|
|
359
|
-
* @returns {void}
|
|
360
|
-
*/
|
|
361
|
-
export declare function maintainSelection(treemap: TreeMap, element: Element, className: string): void;
|
|
362
|
-
/**
|
|
363
|
-
*
|
|
364
|
-
* @param {TreeMap} treemap - Specifies the treemap instance.
|
|
365
|
-
* @param {Element} legendGroup - Specifies the selected element.
|
|
366
|
-
* @returns {void}
|
|
367
|
-
*/
|
|
368
|
-
export declare function legendMaintain(treemap: TreeMap, legendGroup: Element): void;
|
|
369
|
-
/**
|
|
370
|
-
*
|
|
371
|
-
* @param {HTMLCollection} elements - Specifies the selected TreeMap element.
|
|
372
|
-
* @param {string} type - Specifies the selection type.
|
|
373
|
-
* @param {TreeMap} treemap - Specifies the TreeMap instance.
|
|
374
|
-
* @returns {void}
|
|
375
|
-
*/
|
|
376
|
-
export declare function removeClassNames(elements: HTMLCollection, type: string, treemap: TreeMap): void;
|
|
377
|
-
/**
|
|
378
|
-
*
|
|
379
|
-
* @param {SVGPathElement} element - Specifies the SVG path element.
|
|
380
|
-
* @param {any} options - Specifies the settings for the SVG path element.
|
|
381
|
-
* @returns {void}
|
|
382
|
-
*/
|
|
383
|
-
export declare function applyOptions(element: SVGPathElement, options: any): void;
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @param {string} format - Specifies the format value.
|
|
387
|
-
* @param {any} data - Specifies the data source object.
|
|
388
|
-
* @param {TreeMap} treemap - Specifies the TreeMap instance.
|
|
389
|
-
* @returns {string} - Returns the formatted text.
|
|
390
|
-
*/
|
|
391
|
-
export declare function textFormatter(format: string, data: any, treemap: TreeMap): string;
|
|
392
|
-
/**
|
|
393
|
-
*
|
|
394
|
-
* @param {number} value - Specifies the text to be formatted.
|
|
395
|
-
* @param {TreeMap} treemap - Specifies the TreeMap instance.
|
|
396
|
-
* @returns {string | number} - Returns the formatted text.
|
|
397
|
-
*/
|
|
398
|
-
export declare function formatValue(value: number, treemap: TreeMap): string | number;
|
|
399
|
-
/**
|
|
400
|
-
* @private
|
|
401
|
-
*/
|
|
402
|
-
export declare class ColorValue {
|
|
403
|
-
r: number;
|
|
404
|
-
g: number;
|
|
405
|
-
b: number;
|
|
406
|
-
constructor(r?: number, g?: number, b?: number);
|
|
407
|
-
}
|
|
408
|
-
/**
|
|
409
|
-
* @param {ColorValue} value - Specfies the color value
|
|
410
|
-
* @returns {string} - Returns the string
|
|
411
|
-
* @private
|
|
412
|
-
*/
|
|
413
|
-
export declare function convertToHexCode(value: ColorValue): string;
|
|
414
|
-
/**
|
|
415
|
-
* @param {number} value - Specifies the value
|
|
416
|
-
* @returns {string} - Returns the string
|
|
417
|
-
* @private */
|
|
418
|
-
export declare function componentToHex(value: number): string;
|
|
419
|
-
/**
|
|
420
|
-
* @param {string} hex - Specifies the hex value
|
|
421
|
-
* @returns {ColorValue} - Returns the color value
|
|
422
|
-
* @private
|
|
423
|
-
*/
|
|
424
|
-
export declare function convertHexToColor(hex: string): ColorValue;
|
|
425
|
-
/**
|
|
426
|
-
* @param {string} color - Specifies the color
|
|
427
|
-
* @returns {string} - Returns the string
|
|
428
|
-
* @private
|
|
429
|
-
*/
|
|
430
|
-
export declare function colorNameToHex(color: string): string;
|
|
431
|
-
/**
|
|
432
|
-
* @param {Location} location - Specifies the location
|
|
433
|
-
* @param {string} shape - Specifies the shape
|
|
434
|
-
* @param {Size} size - Specifies the size
|
|
435
|
-
* @param {string} url - Specifies the url
|
|
436
|
-
* @param {PathOption} options - Specifies the options
|
|
437
|
-
* @returns {Element} - Returns the element
|
|
438
|
-
* @private
|
|
439
|
-
*/
|
|
440
|
-
export declare function drawSymbol(location: Location, shape: string, size: Size, url: string, options: PathOption): Element;
|
|
441
|
-
/**
|
|
442
|
-
* @param {Location} location - Specifies the location
|
|
443
|
-
* @param {Size} size - Specifies the size
|
|
444
|
-
* @param {string} shape - Specifies the shape
|
|
445
|
-
* @param {PathOption} options - Specifies the path option
|
|
446
|
-
* @param {string} url - Specifies the string
|
|
447
|
-
* @returns {IShapes} - Returns the shapes
|
|
448
|
-
* @private
|
|
449
|
-
*/
|
|
450
|
-
export declare function renderLegendShape(location: Location, size: Size, shape: string, options: PathOption, url: string): IShapes;
|
|
451
|
-
/**
|
|
452
|
-
*
|
|
453
|
-
* @param {any} data - Specifies the data source object.
|
|
454
|
-
* @param {any} item - Specifies the leaf item.
|
|
455
|
-
* @returns {boolean} - Returns whether the TreeMap item is level item or leaf item.
|
|
456
|
-
*/
|
|
457
|
-
export declare function isParentItem(data: any[], item: any): boolean;
|
|
458
|
-
/**
|
|
459
|
-
* Specifies the data to be received through Ajax request for treemap.
|
|
460
|
-
*/
|
|
461
|
-
export declare class TreeMapAjax {
|
|
462
|
-
/** Defines the options for the data for treemap. */
|
|
463
|
-
dataOptions: string | any;
|
|
464
|
-
/** Defines the type of the data. */
|
|
465
|
-
type: string;
|
|
466
|
-
/** Specifies whether the request is asynchronous or not. */
|
|
467
|
-
async: boolean;
|
|
468
|
-
/** Defines the type of the content. */
|
|
469
|
-
contentType: string;
|
|
470
|
-
/** Defines the data to be sent through the request. */
|
|
471
|
-
sendData: string | any;
|
|
472
|
-
constructor(options: string | any, type?: string, async?: boolean, contentType?: string, sendData?: string | any);
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
*
|
|
476
|
-
* @param {any[]} collection - Specifies the legend collection.
|
|
477
|
-
* @returns {void}
|
|
478
|
-
* @private
|
|
479
|
-
*/
|
|
480
|
-
export declare function removeShape(collection: any[]): void;
|
|
481
|
-
/**
|
|
482
|
-
*
|
|
483
|
-
* @param {any[]} collection - Specifies the legend collection.
|
|
484
|
-
* @param {TreeMap} treeMap - Specifies the treemap instance.
|
|
485
|
-
* @returns {void}
|
|
486
|
-
* @private
|
|
487
|
-
*/
|
|
488
|
-
export declare function removeLegend(collection: any[], treeMap: TreeMap): void;
|
|
489
|
-
/**
|
|
490
|
-
*
|
|
491
|
-
* @param {Element} element - Specifies the selected element.
|
|
492
|
-
* @param {string} fill - Specifies the fill color.
|
|
493
|
-
* @param {string} opacity - Specifies the opacity.
|
|
494
|
-
* @param {string} borderColor - Specifies the border color.
|
|
495
|
-
* @param {string} borderWidth - Specifies the border width.
|
|
496
|
-
* @returns {void}
|
|
497
|
-
*/
|
|
498
|
-
export declare function setColor(element: Element, fill: string, opacity: string, borderColor: string, borderWidth: string): void;
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @param {any[]} collection - Specifies the selected item collection.
|
|
502
|
-
* @param {any[]} element - Specifies the selected element collection.
|
|
503
|
-
* @param {TreeMap} treemap - Specifies the TreeMap instance.
|
|
504
|
-
* @returns {void}
|
|
505
|
-
*/
|
|
506
|
-
export declare function removeSelectionWithHighlight(collection: any[], element: any[], treemap: TreeMap): void;
|
|
507
|
-
/**
|
|
508
|
-
*
|
|
509
|
-
* @param {number} length - Specifies the length of the legend group.
|
|
510
|
-
* @param {any} item - Specifies the legend item.
|
|
511
|
-
* @param {TreeMap} treemap - Specifies the TreeMap instance.
|
|
512
|
-
* @returns {number} - Returns the legend index.
|
|
513
|
-
*/
|
|
514
|
-
export declare function getLegendIndex(length: number, item: any, treemap: TreeMap): number;
|
|
515
|
-
/**
|
|
516
|
-
*
|
|
517
|
-
* @param {any[]} collection - Specifies the legend collection.
|
|
518
|
-
* @param {number} index - Specifies the index of legend.
|
|
519
|
-
* @param {number} number - Specifies the leaf item index.
|
|
520
|
-
* @param {Element} legendElement - Specifies the legend element.
|
|
521
|
-
* @param {Element} shapeElement - Specifies the shape element.
|
|
522
|
-
* @param {any[]} renderItems - Specifies the item index.
|
|
523
|
-
* @param {any[]} legendCollection - Specifies the legend collection.
|
|
524
|
-
* @returns {void}
|
|
525
|
-
*/
|
|
526
|
-
export declare function pushCollection(collection: any[], index: number, number: number, legendElement: Element, shapeElement: Element, renderItems: any[], legendCollection: any[]): void;
|
|
527
|
-
/**
|
|
528
|
-
* To trigger the download element
|
|
529
|
-
*
|
|
530
|
-
* @param {string} fileName - Specifies the file name
|
|
531
|
-
* @param {ExportType} type - Specifies the type
|
|
532
|
-
* @param {string} url - Specifies the url
|
|
533
|
-
* @param {boolean} isDownload - Specifies the boolean value
|
|
534
|
-
* @returns {void}
|
|
535
|
-
* @private
|
|
536
|
-
*/
|
|
537
|
-
export declare function triggerDownload(fileName: string, type: ExportType, url: string, isDownload: boolean): void;
|
|
538
|
-
/**
|
|
539
|
-
*
|
|
540
|
-
* @param {string} id - Specifies the id of the element to be removed.
|
|
541
|
-
* @returns {void}
|
|
542
|
-
*/
|
|
543
|
-
export declare function removeElement(id: string): void;
|