@syncfusion/ej2-maps 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 (69) hide show
  1. package/.gitleaksignore +8 -8
  2. package/README.md +11 -2
  3. package/aceconfig.js +17 -0
  4. package/dist/ej2-maps.min.js +1 -10
  5. package/dist/ej2-maps.umd.min.js +1 -10
  6. package/dist/ej2-maps.umd.min.js.map +1 -1
  7. package/dist/es6/ej2-maps.es2015.js +87 -50
  8. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  9. package/dist/es6/ej2-maps.es5.js +90 -53
  10. package/dist/es6/ej2-maps.es5.js.map +1 -1
  11. package/dist/global/ej2-maps.min.js +1 -10
  12. package/dist/global/ej2-maps.min.js.map +1 -1
  13. package/dist/global/index.d.ts +0 -9
  14. package/package.json +18 -53
  15. package/src/maps/layers/layer-panel.js +89 -52
  16. package/dist/ts/index.d.ts +0 -4
  17. package/dist/ts/index.ts +0 -4
  18. package/dist/ts/maps/index.d.ts +0 -28
  19. package/dist/ts/maps/index.ts +0 -28
  20. package/dist/ts/maps/layers/bing-map.d.ts +0 -21
  21. package/dist/ts/maps/layers/bing-map.ts +0 -51
  22. package/dist/ts/maps/layers/bubble.d.ts +0 -77
  23. package/dist/ts/maps/layers/bubble.ts +0 -304
  24. package/dist/ts/maps/layers/color-mapping.d.ts +0 -36
  25. package/dist/ts/maps/layers/color-mapping.ts +0 -230
  26. package/dist/ts/maps/layers/data-label.d.ts +0 -45
  27. package/dist/ts/maps/layers/data-label.ts +0 -457
  28. package/dist/ts/maps/layers/layer-panel.d.ts +0 -144
  29. package/dist/ts/maps/layers/layer-panel.ts +0 -1455
  30. package/dist/ts/maps/layers/legend.d.ts +0 -173
  31. package/dist/ts/maps/layers/legend.ts +0 -2465
  32. package/dist/ts/maps/layers/marker.d.ts +0 -105
  33. package/dist/ts/maps/layers/marker.ts +0 -632
  34. package/dist/ts/maps/layers/navigation-selected-line.d.ts +0 -33
  35. package/dist/ts/maps/layers/navigation-selected-line.ts +0 -171
  36. package/dist/ts/maps/layers/polygon.d.ts +0 -30
  37. package/dist/ts/maps/layers/polygon.ts +0 -68
  38. package/dist/ts/maps/maps-model.d.ts +0 -409
  39. package/dist/ts/maps/maps.d.ts +0 -1247
  40. package/dist/ts/maps/maps.ts +0 -3416
  41. package/dist/ts/maps/model/base-model.d.ts +0 -2107
  42. package/dist/ts/maps/model/base.d.ts +0 -1840
  43. package/dist/ts/maps/model/base.ts +0 -2257
  44. package/dist/ts/maps/model/constants.d.ts +0 -225
  45. package/dist/ts/maps/model/constants.ts +0 -226
  46. package/dist/ts/maps/model/export-image.d.ts +0 -39
  47. package/dist/ts/maps/model/export-image.ts +0 -194
  48. package/dist/ts/maps/model/export-pdf.d.ts +0 -40
  49. package/dist/ts/maps/model/export-pdf.ts +0 -183
  50. package/dist/ts/maps/model/interface.d.ts +0 -892
  51. package/dist/ts/maps/model/interface.ts +0 -929
  52. package/dist/ts/maps/model/print.d.ts +0 -45
  53. package/dist/ts/maps/model/print.ts +0 -125
  54. package/dist/ts/maps/model/theme.d.ts +0 -98
  55. package/dist/ts/maps/model/theme.ts +0 -919
  56. package/dist/ts/maps/user-interaction/annotation.d.ts +0 -27
  57. package/dist/ts/maps/user-interaction/annotation.ts +0 -133
  58. package/dist/ts/maps/user-interaction/highlight.d.ts +0 -63
  59. package/dist/ts/maps/user-interaction/highlight.ts +0 -272
  60. package/dist/ts/maps/user-interaction/selection.d.ts +0 -85
  61. package/dist/ts/maps/user-interaction/selection.ts +0 -342
  62. package/dist/ts/maps/user-interaction/tooltip.d.ts +0 -78
  63. package/dist/ts/maps/user-interaction/tooltip.ts +0 -500
  64. package/dist/ts/maps/user-interaction/zoom.d.ts +0 -334
  65. package/dist/ts/maps/user-interaction/zoom.ts +0 -2523
  66. package/dist/ts/maps/utils/enum.d.ts +0 -328
  67. package/dist/ts/maps/utils/enum.ts +0 -343
  68. package/dist/ts/maps/utils/helper.d.ts +0 -1318
  69. package/dist/ts/maps/utils/helper.ts +0 -3811
@@ -1,173 +0,0 @@
1
- import { Maps } from '../../index';
2
- import { ColorMappingSettings } from '../index';
3
- import { Rect } from '../utils/helper';
4
- import { HighlightSettingsModel, SelectionSettingsModel } from '../model/base-model';
5
- import { ShapeSettings } from '../model/base';
6
- /**
7
- * Legend module is used to render legend for the maps
8
- */
9
- export declare class Legend {
10
- /**
11
- * @private
12
- */
13
- legendCollection: any[];
14
- /**
15
- * @private
16
- */
17
- legendRenderingCollections: any[];
18
- private translate;
19
- /**
20
- * @private
21
- */
22
- legendBorderRect: Rect;
23
- /**
24
- * @private
25
- */
26
- initialMapAreaRect: Rect;
27
- /**
28
- * @private
29
- */
30
- legendTotalRect: Rect;
31
- private maps;
32
- /**
33
- * @private
34
- */
35
- totalPages: any[];
36
- private page;
37
- /**
38
- * @private
39
- */
40
- currentPage: number;
41
- private legendItemRect;
42
- private heightIncrement;
43
- private widthIncrement;
44
- private textMaxWidth;
45
- private arrowTimer;
46
- /**
47
- * @private
48
- */
49
- legendGroup: Element;
50
- private shapeHighlightCollection;
51
- /**
52
- * @private
53
- */
54
- legendHighlightCollection: any[];
55
- /**
56
- * @private
57
- */
58
- shapePreviousColor: string[];
59
- /**
60
- * @private
61
- */
62
- selectedNonLegendShapes: any[];
63
- /**
64
- * @private
65
- */
66
- shapeToggled: boolean;
67
- private legendLinearGradient;
68
- private currentLayer;
69
- private defsElement;
70
- /**
71
- * @private
72
- */
73
- legendElement: Element[];
74
- /**
75
- * @private
76
- */
77
- oldShapeElement: Element;
78
- constructor(maps: Maps);
79
- /**
80
- * To calculate legend bounds and draw the legend shape and text.
81
- *
82
- * @returns {void}
83
- * @private
84
- */
85
- renderLegend(): void;
86
- calculateLegendBounds(): void;
87
- /**
88
- * Get the legend collections
89
- *
90
- * @param {number} layerIndex - Specifies the layer index
91
- * @param {any[]} layerData - Specifies the layer data
92
- * @param {ColorMappingSettings[]} colorMapping - Specifies the color mapping
93
- * @param {any[]} dataSource - Specifies the data source
94
- * @param {string} dataPath - Specifies the data path
95
- * @param {string} colorValuePath - Specifies the color value path
96
- * @param {string | string[]} propertyPath - Specifies the property path
97
- * @returns {void}
98
- */
99
- private getLegends;
100
- private getPageChanged;
101
- private legendTextTrim;
102
- /**
103
- * To draw the legend shape and text.
104
- *
105
- * @private
106
- */
107
- drawLegend(): void;
108
- /**
109
- * @param {number} page - Specifies the legend page.
110
- * @returns {void}
111
- * @private
112
- */
113
- drawLegendItem(page: number): void;
114
- /**
115
- * @param {number} legendIndex - Specifies the legend index.
116
- * @param {Element} legendShapeElement - Specifies the legend shape element.
117
- * @param {Element} legendTextElement - Specifies the legend text element.
118
- * @returns {void}
119
- * @private
120
- */
121
- maintainLegendToggle(legendIndex: number, legendShapeElement: Element, legendTextElement: Element): void;
122
- legendHighLightAndSelection(targetElement: Element, value: string): void;
123
- private setColor;
124
- pushCollection(targetElement: Element, collection: any[], oldElement: object, shapeSettings: ShapeSettings): void;
125
- private removeLegend;
126
- removeLegendHighlightCollection(): void;
127
- removeLegendSelectionCollection(targetElement: Element): void;
128
- removeShapeHighlightCollection(): void;
129
- shapeHighLightAndSelection(targetElement: Element, data: object, legendModule: SelectionSettingsModel | HighlightSettingsModel, getValue: string, layerIndex: number): void;
130
- private isTargetSelected;
131
- private updateLegendElement;
132
- private getIndexofLegend;
133
- private removeAllSelections;
134
- legendIndexOnShape(data: object, index: number): any;
135
- private shapeDataOnLegend;
136
- private shapesOfLegend;
137
- private legendToggle;
138
- private renderLegendBorder;
139
- changeNextPage(e: PointerEvent): void;
140
- private getLegendAlignment;
141
- private getMarkersLegendCollections;
142
- private getMarkerLegendData;
143
- private getRangeLegendCollection;
144
- private getOverallLegendItemsCollection;
145
- private removeDuplicates;
146
- private getEqualLegendCollection;
147
- private getDataLegendCollection;
148
- interactiveHandler(e: PointerEvent): void;
149
- private renderInteractivePointer;
150
- wireEvents(element: Element): void;
151
- addEventListener(): void;
152
- private markerToggleSelection;
153
- private bubbleToggleSelection;
154
- private legendClick;
155
- private removeCollections;
156
- removeEventListener(): void;
157
- private getLegendData;
158
- private setToggleAttributes;
159
- legendGradientColor(colorMap: ColorMappingSettings, legendIndex: number): string;
160
- /**
161
- * Get module name.
162
- *
163
- * @returns {string} - Returns the module name
164
- */
165
- protected getModuleName(): string;
166
- /**
167
- * To destroy the legend.
168
- *
169
- * @returns {void}
170
- * @private
171
- */
172
- destroy(): void;
173
- }