@syncfusion/ej2-treemap 31.2.2 → 32.1.19

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.
Files changed (49) hide show
  1. package/README.md +11 -2
  2. package/aceconfig.js +17 -0
  3. package/dist/ej2-treemap.min.js +1 -10
  4. package/dist/ej2-treemap.umd.min.js +1 -10
  5. package/dist/ej2-treemap.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-treemap.es2015.js +4 -0
  7. package/dist/es6/ej2-treemap.es2015.js.map +1 -1
  8. package/dist/es6/ej2-treemap.es5.js +4 -0
  9. package/dist/es6/ej2-treemap.es5.js.map +1 -1
  10. package/dist/global/ej2-treemap.min.js +1 -10
  11. package/dist/global/ej2-treemap.min.js.map +1 -1
  12. package/dist/global/index.d.ts +0 -9
  13. package/package.json +17 -52
  14. package/src/treemap/treemap.d.ts +1 -0
  15. package/src/treemap/treemap.js +4 -0
  16. package/dist/ts/index.d.ts +0 -4
  17. package/dist/ts/index.ts +0 -4
  18. package/dist/ts/treemap/index.d.ts +0 -19
  19. package/dist/ts/treemap/index.ts +0 -19
  20. package/dist/ts/treemap/layout/legend.d.ts +0 -137
  21. package/dist/ts/treemap/layout/legend.ts +0 -1095
  22. package/dist/ts/treemap/layout/render-panel.d.ts +0 -47
  23. package/dist/ts/treemap/layout/render-panel.ts +0 -758
  24. package/dist/ts/treemap/model/base-model.d.ts +0 -795
  25. package/dist/ts/treemap/model/base.d.ts +0 -671
  26. package/dist/ts/treemap/model/base.ts +0 -798
  27. package/dist/ts/treemap/model/constants.d.ts +0 -117
  28. package/dist/ts/treemap/model/constants.ts +0 -118
  29. package/dist/ts/treemap/model/image-export.d.ts +0 -34
  30. package/dist/ts/treemap/model/image-export.ts +0 -117
  31. package/dist/ts/treemap/model/interface.d.ts +0 -555
  32. package/dist/ts/treemap/model/interface.ts +0 -583
  33. package/dist/ts/treemap/model/pdf-export.d.ts +0 -36
  34. package/dist/ts/treemap/model/pdf-export.ts +0 -105
  35. package/dist/ts/treemap/model/print.d.ts +0 -45
  36. package/dist/ts/treemap/model/print.ts +0 -106
  37. package/dist/ts/treemap/model/theme.d.ts +0 -19
  38. package/dist/ts/treemap/model/theme.ts +0 -450
  39. package/dist/ts/treemap/treemap-model.d.ts +0 -374
  40. package/dist/ts/treemap/treemap.d.ts +0 -724
  41. package/dist/ts/treemap/treemap.ts +0 -1817
  42. package/dist/ts/treemap/user-interaction/highlight-selection.d.ts +0 -118
  43. package/dist/ts/treemap/user-interaction/highlight-selection.ts +0 -799
  44. package/dist/ts/treemap/user-interaction/tooltip.d.ts +0 -42
  45. package/dist/ts/treemap/user-interaction/tooltip.ts +0 -228
  46. package/dist/ts/treemap/utils/enum.d.ts +0 -256
  47. package/dist/ts/treemap/utils/enum.ts +0 -263
  48. package/dist/ts/treemap/utils/helper.d.ts +0 -543
  49. package/dist/ts/treemap/utils/helper.ts +0 -1453
@@ -1,671 +0,0 @@
1
- /**
2
- * Maps base doc
3
- */
4
- import { ChildProperty } from '@syncfusion/ej2-base';
5
- import { LabelPosition, Alignment, HighLightMode, SelectionMode, LabelIntersectAction, LabelPlacement } from '../utils/enum';
6
- import { LabelAlignment, LegendShape, LegendPosition, LegendMode, LegendOrientation, MarkerShape } from '../utils/enum';
7
- import { BorderModel, FontModel, SubTitleSettingsModel, ColorMappingModel, CommonTitleSettingsModel } from './base-model';
8
- import { Location } from '../utils/helper';
9
- /**
10
- * Sets and gets the options for customizing the color and width of the border in treemap.
11
- */
12
- export declare class Border extends ChildProperty<Border> {
13
- /**
14
- * Sets and gets the color of the border. This property accepts the value in hex code and rgba string as a valid CSS color string.
15
- *
16
- * @default '#808080'
17
- */
18
- color: string;
19
- /**
20
- * Defines the width of the border in the treemap.
21
- *
22
- * @default 0
23
- */
24
- width: number;
25
- }
26
- /**
27
- * Sets and gets the margin for the treemap.
28
- */
29
- export declare class Margin extends ChildProperty<Margin> {
30
- /**
31
- * Sets and gets the left margin for the treemap.
32
- *
33
- * @default 10
34
- */
35
- left: number;
36
- /**
37
- * Sets and gets the right margin for the treemap.
38
- *
39
- * @default 10
40
- */
41
- right: number;
42
- /**
43
- * Sets and gets the top margin for the treemap.
44
- *
45
- * @default 10
46
- */
47
- top: number;
48
- /**
49
- * Sets and gets the bottom margin for the treemap.
50
- *
51
- * @default 10
52
- */
53
- bottom: number;
54
- }
55
- /**
56
- * Sets and gets the options to customize the style of the text contents in the treemap.
57
- */
58
- export declare class Font extends ChildProperty<Font> {
59
- /**
60
- * Sets and gets the size for the text in the treemap.
61
- *
62
- * @default null
63
- */
64
- size: string;
65
- /**
66
- * Sets and gets the color for the text in the treemap.
67
- *
68
- * @default null
69
- */
70
- color: string;
71
- /**
72
- * Sets and gets the font family for the text in the treemap.
73
- *
74
- * @default ''
75
- */
76
- fontFamily: string;
77
- /**
78
- * Sets and gets the font weight for the text in the treemap.
79
- *
80
- * @default null
81
- */
82
- fontWeight: string;
83
- /**
84
- * Sets and gets the font style for the text in the treemap.
85
- *
86
- * @default 'Normal'
87
- */
88
- fontStyle: string;
89
- /**
90
- * Sets and gets the opacity of the text in the treemap.
91
- *
92
- * @default 1
93
- */
94
- opacity: number;
95
- }
96
- /**
97
- * Sets and gets the options for customizing the title of the treemap.
98
- */
99
- export declare class CommonTitleSettings extends ChildProperty<CommonTitleSettings> {
100
- /**
101
- * Sets and gets the text for the title in the treemap.
102
- *
103
- * @default ''
104
- */
105
- text: string;
106
- /**
107
- * Define the description of the title for the accessibility in the treemap.
108
- *
109
- * @default ''
110
- */
111
- description: string;
112
- }
113
- /**
114
- * Sets and gets the options for customizing the subtitle of the treemap.
115
- */
116
- export declare class SubTitleSettings extends CommonTitleSettings {
117
- /**
118
- * Sets and gets the options to customize the text style for the subtitle in the treemap.
119
- */
120
- textStyle: FontModel;
121
- /**
122
- * Sets and gets the alignment of the subtitle text in the treemap.
123
- *
124
- * @default 'Center'
125
- */
126
- alignment: Alignment;
127
- }
128
- /**
129
- * Sets and gets the options for customizing the title of the treemap.
130
- */
131
- export declare class TitleSettings extends CommonTitleSettings {
132
- /**
133
- * Sets and gets the options to customize the text style of the title of the treemap.
134
- */
135
- textStyle: FontModel;
136
- /**
137
- * Sets and gets the text position of the title text in the treemap.
138
- *
139
- * @default 'Center'
140
- */
141
- alignment: Alignment;
142
- /**
143
- * Sets and gets the options to customize the subtitle for the treemap.
144
- */
145
- subtitleSettings: SubTitleSettingsModel;
146
- }
147
- /**
148
- * Sets and gets the options to customize the color-mapping in treemap.
149
- */
150
- export declare class ColorMapping extends ChildProperty<ColorMapping> {
151
- /**
152
- * Sets and gets the value from which the range of color mapping starts.
153
- *
154
- * @default null
155
- */
156
- from: number;
157
- /**
158
- * Sets and gets the value to which the range of color mapping ends.
159
- *
160
- * @default null
161
- */
162
- to: number;
163
- /**
164
- * Sets and gets the color for the color-mapping in treemap.
165
- *
166
- * @default null
167
- */
168
- color: string | string[];
169
- /**
170
- * Sets and gets the label text for the legend when it is rendered based on color mapping.
171
- *
172
- * @default null
173
- */
174
- label: string;
175
- /**
176
- * Sets and gets the value for the color-mapping from the data source.
177
- *
178
- * @default null
179
- */
180
- value: string | number;
181
- /**
182
- * Sets and gets the minimum opacity for the color-mapping in the treemap.
183
- *
184
- * @default null
185
- */
186
- minOpacity: number;
187
- /**
188
- * Sets and gets the maximum opacity for the color-mapping in the treemap.
189
- *
190
- * @default null
191
- */
192
- maxOpacity: number;
193
- /**
194
- * Enables or disables the visibility of the legend for color mapping in the treemap.
195
- *
196
- * @default true
197
- */
198
- showLegend: boolean;
199
- }
200
- /**
201
- * Sets and gets the options for customizing the legend of the treemap.
202
- */
203
- export declare class LegendSettings extends ChildProperty<LegendSettings> {
204
- /**
205
- * Enables or disables the visibility of legend in the treemap.
206
- *
207
- * @default false
208
- */
209
- visible: boolean;
210
- /**
211
- * Sets and gets the mode of legend in the treemap. The modes available are default and interactive modes.
212
- *
213
- * @default 'Default'
214
- */
215
- mode: LegendMode;
216
- /**
217
- * Sets and gets the background color of legend in the treemap.
218
- *
219
- * @default 'transparent'
220
- */
221
- background: string;
222
- /**
223
- * Sets and gets the shape of legend in the treemap.
224
- *
225
- * @default 'Circle'
226
- */
227
- shape: LegendShape;
228
- /**
229
- * Sets and gets the width of legend in the treemap.
230
- *
231
- * @default ''
232
- */
233
- width: string;
234
- /**
235
- * Sets and gets the height of legend in the treemap.
236
- *
237
- * @default ''
238
- */
239
- height: string;
240
- /**
241
- * Sets and gets the options to customize the text style of legend in the treemap.
242
- */
243
- textStyle: FontModel;
244
- /**
245
- * Sets and gets the shape color of legend in the treemap.
246
- *
247
- * @default null
248
- */
249
- fill: string;
250
- /**
251
- * Sets and gets the opacity of the legend in the treemap.
252
- *
253
- * @default 1
254
- */
255
- opacity: number;
256
- /**
257
- * Sets and gets the width of the shapes in legend in the treemap.
258
- *
259
- * @default 15
260
- */
261
- shapeWidth: number;
262
- /**
263
- * Sets and gets the height of the shapes of legend in the treemap.
264
- *
265
- * @default 15
266
- */
267
- shapeHeight: number;
268
- /**
269
- * Sets and gets the shape padding of legend in the treemap.
270
- *
271
- * @default 10
272
- */
273
- shapePadding: number;
274
- /**
275
- * Sets and gets the URL path of the legend shapes that is set as image.
276
- *
277
- * @default null
278
- */
279
- imageUrl: string;
280
- /**
281
- * Sets and gets the options for customizing the color and width of the border of the legend in the treemap.
282
- */
283
- border: BorderModel;
284
- /**
285
- * Sets and gets the options for customizing the color and width of the border of the legend shape in the treemap.
286
- */
287
- shapeBorder: BorderModel;
288
- /**
289
- * Sets and gets the options to customize the title of the legend in the treemap.
290
- */
291
- title: CommonTitleSettingsModel;
292
- /**
293
- * Sets and gets the options to customize the text style of the legend item text in the treemap.
294
- */
295
- titleStyle: FontModel;
296
- /**
297
- * Sets and gets the position of legend in the treemap.
298
- *
299
- * @default 'Bottom'
300
- */
301
- position: LegendPosition;
302
- /**
303
- * Sets and gets the orientation of legend in the treemap.
304
- *
305
- * @default 'None'
306
- */
307
- orientation: LegendOrientation;
308
- /**
309
- * Enables or disables the pointer for interactive legend in the treemap.
310
- *
311
- * @default false
312
- */
313
- invertedPointer: boolean;
314
- /**
315
- * Sets and gets the label position for interactive legend in the treemap.
316
- *
317
- * @default 'After'
318
- */
319
- labelPosition: LabelPlacement;
320
- /**
321
- * Sets and gets the action of legend item text when they intersect with each other.
322
- *
323
- * @default 'None'
324
- */
325
- labelDisplayMode: LabelIntersectAction;
326
- /**
327
- * Sets and gets the alignment of legend in the treemap.
328
- *
329
- * @default 'Center'
330
- */
331
- alignment: Alignment;
332
- /**
333
- * Sets and gets the location to place the legend in a custom location in the treemap.
334
- */
335
- location: Location;
336
- /**
337
- * Sets and gets the value path from the data source for the visibility state of the legend item in the treemap.
338
- *
339
- * @default null
340
- */
341
- showLegendPath: string;
342
- /**
343
- * Sets and gets the value path from the data source to render legend in the treemap.
344
- *
345
- * @default null
346
- */
347
- valuePath: string;
348
- /**
349
- * Enables or disables to remove the duplicate legend item.
350
- *
351
- * @default false
352
- */
353
- removeDuplicateLegend: boolean;
354
- }
355
- /**
356
- * Sets and gets the settings for drill down to visualize the treemap rendered in the initial state.
357
- */
358
- export declare class InitialDrillSettings extends ChildProperty<InitialDrillSettings> {
359
- /**
360
- * Sets and gets the initial rendering level index in the treemap.
361
- *
362
- * @default null
363
- */
364
- groupIndex: number;
365
- /**
366
- * Sets and gets the initial rendering level name in the treemap.
367
- *
368
- * @default null
369
- */
370
- groupName: string;
371
- }
372
- /**
373
- * Sets and gets the options for customizing the leaf item of the treemap.
374
- */
375
- export declare class LeafItemSettings extends ChildProperty<LeafItemSettings> {
376
- /**
377
- * Sets and gets the fill color of leaf items in the treemap.
378
- *
379
- * @default null
380
- */
381
- fill: string;
382
- /**
383
- * Enables or disables automatic filling of colors from the palette in the leaf items of the treemap.
384
- *
385
- * @default false
386
- */
387
- autoFill: boolean;
388
- /**
389
- * Sets and gets the options for customizing the color and width of the border of the leaf item in the treemap.
390
- */
391
- border: BorderModel;
392
- /**
393
- * Sets and gets the gap between the leaf item in the treemap.
394
- *
395
- * @default 0
396
- */
397
- gap: number;
398
- /**
399
- * Sets and gets the padding of leaf item in the treemap.
400
- *
401
- * @default 10
402
- */
403
- padding: number;
404
- /**
405
- * Sets and gets the opacity of leaf item in the treemap.
406
- *
407
- * @default 1
408
- */
409
- opacity: number;
410
- /**
411
- * Shows or hides the labels in the treemap.
412
- *
413
- * @default true
414
- */
415
- showLabels: boolean;
416
- /**
417
- * Sets and gets the value path from the data source for label of leaf item in the treemap.
418
- *
419
- * @default null
420
- */
421
- labelPath: string;
422
- /**
423
- * Sets and gets the string to format the label text of leaf item in the treemap.
424
- *
425
- * @default null
426
- */
427
- labelFormat: string;
428
- /**
429
- * Sets and gets the position of the labels in the treemap.
430
- *
431
- * @default 'TopLeft'
432
- */
433
- labelPosition: LabelPosition;
434
- /**
435
- * Sets and gets the options to customize the style of the labels of treemap leaf item.
436
- */
437
- labelStyle: FontModel;
438
- /**
439
- * Sets and gets the label template of leaf item in the treemap to render custom elements in the labels.
440
- *
441
- * @default null
442
- * @aspType string
443
- */
444
- labelTemplate: string | Function;
445
- /**
446
- * Sets and gets the position of the label template of treemap leaf item.
447
- *
448
- * @default 'Center'
449
- */
450
- templatePosition: LabelPosition;
451
- /**
452
- * Sets and gets the actions to perform when labels intersects with other labels in a treemap leaf item.
453
- *
454
- * @default 'Trim'
455
- */
456
- interSectAction: LabelAlignment;
457
- /**
458
- * Sets and gets the options to customize color-mapping of the treemap leaf items.
459
- */
460
- colorMapping: ColorMappingModel[];
461
- }
462
- /**
463
- * Sets and gets the options for customizing the tooltip of the treemap.
464
- */
465
- export declare class TooltipSettings extends ChildProperty<TooltipSettings> {
466
- /**
467
- * Enables or disables the visibility of the tooltip in the treemap.
468
- *
469
- * @default false
470
- */
471
- visible: boolean;
472
- /**
473
- * Sets and gets the template for tooltip in the treemap.
474
- *
475
- * @default ''
476
- * @aspType string
477
- */
478
- template: string | Function;
479
- /**
480
- * Sets and gets the string to format the tooltip in the treemap.
481
- *
482
- * @default null
483
- */
484
- format: string;
485
- /**
486
- * Sets and gets the background color of tooltip in the treemap.
487
- *
488
- * @default null
489
- */
490
- fill: string;
491
- /**
492
- * Sets and gets the opacity of tooltip in the treemap.
493
- *
494
- * @default 0.75
495
- */
496
- opacity: number;
497
- /**
498
- * Sets and gets the marker shapes in the treemap.
499
- *
500
- * @default '[Circle]'
501
- * @private
502
- */
503
- markerShapes: MarkerShape[];
504
- /**
505
- * Sets and gets the options for customizing the color and width of the border of the tooltip.
506
- */
507
- border: BorderModel;
508
- /**
509
- * Sets and gets the options for customizing the text style of tooltip of the treemap.
510
- */
511
- textStyle: FontModel;
512
- }
513
- /**
514
- * Sets and gets the options for customizing the selection of the leaf items in treemap.
515
- */
516
- export declare class SelectionSettings extends ChildProperty<SelectionSettings> {
517
- /**
518
- * Enables or disables the selection functionality in the treemap.
519
- *
520
- * @default false
521
- */
522
- enable: boolean;
523
- /**
524
- * Sets and gets the color of the selection when the leaf item is selected in the treemap.
525
- *
526
- * @default null
527
- */
528
- fill: string;
529
- /**
530
- * Sets and gets the opacity of the selection when the leaf item is selected in the treemap.
531
- *
532
- * @default '0.5'
533
- */
534
- opacity: string;
535
- /**
536
- * Sets and gets the options to customize the border of the selected items in the treemap.
537
- */
538
- border: BorderModel;
539
- /**
540
- * Sets and gets the type of the elements in which selection must be done in the treemap.
541
- *
542
- * @default 'Item'
543
- */
544
- mode: SelectionMode;
545
- }
546
- /**
547
- * Sets and gets the options for customizing the highlighting of the treemap item,
548
- * when the mouse hover is performed in it.
549
- */
550
- export declare class HighlightSettings extends ChildProperty<HighlightSettings> {
551
- /**
552
- * Enables or disables the highlight functionality of the treemap.
553
- *
554
- * @default false
555
- */
556
- enable: boolean;
557
- /**
558
- * Sets and gets the highlight color of the treemap.
559
- *
560
- * @default '#808080'
561
- */
562
- fill: string;
563
- /**
564
- * Sets and gets the opacity of the treemap.
565
- *
566
- * @default '0.5'
567
- */
568
- opacity: string;
569
- /**
570
- * Sets and gets the options for customizing the color and width of the border of the
571
- * highlighted item in the treemap.
572
- */
573
- border: BorderModel;
574
- /**
575
- * Sets and gets the element in which highlight must be done in the treemap.
576
- *
577
- * @default 'Item'
578
- */
579
- mode: HighLightMode;
580
- }
581
- /**
582
- * Sets and gets the options for customizing the level leaf items of the treemap.
583
- */
584
- export declare class LevelSettings extends ChildProperty<LevelSettings> {
585
- /**
586
- * Sets and gets the value path from the data source in the treemap to render the item.
587
- *
588
- * @default null
589
- */
590
- groupPath: string;
591
- /**
592
- * Sets and gets the gap between the level leaf items in the treemap.
593
- *
594
- * @default 0
595
- */
596
- groupGap: number;
597
- /**
598
- * Sets and gets the padding of level leaf items in the treemap.
599
- *
600
- * @default 10
601
- */
602
- groupPadding: number;
603
- /**
604
- * Sets and gets the options for customizing the color and width of the border of
605
- * the level leaf items of the treemap.
606
- */
607
- border: BorderModel;
608
- /**
609
- * Sets and gets the fill color of the level leaf item in the treemap.
610
- *
611
- * @default null
612
- */
613
- fill: string;
614
- /**
615
- * Enables or disables the automatic filling of the colors from the palette in the items of the treemap.
616
- *
617
- * @default false
618
- */
619
- autoFill: boolean;
620
- /**
621
- * Sets and gets the opacity in the level leaf item of the treemap.
622
- *
623
- * @default 1
624
- */
625
- opacity: number;
626
- /**
627
- * Shows or hides the header in level leaf item of the treemap.
628
- *
629
- * @default true
630
- */
631
- showHeader: boolean;
632
- /**
633
- * Sets and gets the height of header in the treemap.
634
- *
635
- * @default 20
636
- */
637
- headerHeight: number;
638
- /**
639
- * Sets and gets the template for header in the treemap.
640
- *
641
- * @default null
642
- * @aspType string
643
- */
644
- headerTemplate: string | Function;
645
- /**
646
- * Sets and gets the string to format the header label of the level leaf items in the treemap.
647
- *
648
- * @default null
649
- */
650
- headerFormat: string;
651
- /**
652
- * Sets and gets the alignment of the header of the treemap.
653
- *
654
- * @default 'Near'
655
- */
656
- headerAlignment: Alignment;
657
- /**
658
- * Sets and gets the options for customizing the text style of header label of the level leaf item.
659
- */
660
- headerStyle: FontModel;
661
- /**
662
- * Sets and gets the options for customizing the template position of the treemap.
663
- *
664
- * @default 'TopLeft'
665
- */
666
- templatePosition: LabelPosition;
667
- /**
668
- * Sets and gets the options for customizing the color-mapping of the level leaf items in the treemap.
669
- */
670
- colorMapping: ColorMappingModel[];
671
- }