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