@syncfusion/ej2-maps 30.1.37 → 31.1.17

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 (59) hide show
  1. package/dist/ej2-maps.min.js +1 -1
  2. package/dist/ej2-maps.umd.min.js +1 -1
  3. package/dist/global/ej2-maps.min.js +1 -1
  4. package/dist/global/index.d.ts +1 -1
  5. package/dist/ts/index.d.ts +4 -0
  6. package/dist/ts/index.ts +4 -0
  7. package/dist/ts/maps/index.d.ts +28 -0
  8. package/dist/ts/maps/index.ts +28 -0
  9. package/dist/ts/maps/layers/bing-map.d.ts +21 -0
  10. package/dist/ts/maps/layers/bing-map.ts +51 -0
  11. package/dist/ts/maps/layers/bubble.d.ts +77 -0
  12. package/dist/ts/maps/layers/bubble.ts +304 -0
  13. package/dist/ts/maps/layers/color-mapping.d.ts +36 -0
  14. package/dist/ts/maps/layers/color-mapping.ts +230 -0
  15. package/dist/ts/maps/layers/data-label.d.ts +45 -0
  16. package/dist/ts/maps/layers/data-label.ts +457 -0
  17. package/dist/ts/maps/layers/layer-panel.d.ts +144 -0
  18. package/dist/ts/maps/layers/layer-panel.ts +1455 -0
  19. package/dist/ts/maps/layers/legend.d.ts +173 -0
  20. package/dist/ts/maps/layers/legend.ts +2465 -0
  21. package/dist/ts/maps/layers/marker.d.ts +105 -0
  22. package/dist/ts/maps/layers/marker.ts +632 -0
  23. package/dist/ts/maps/layers/navigation-selected-line.d.ts +33 -0
  24. package/dist/ts/maps/layers/navigation-selected-line.ts +171 -0
  25. package/dist/ts/maps/layers/polygon.d.ts +30 -0
  26. package/dist/ts/maps/layers/polygon.ts +68 -0
  27. package/dist/ts/maps/maps-model.d.ts +409 -0
  28. package/dist/ts/maps/maps.d.ts +1247 -0
  29. package/dist/ts/maps/maps.ts +3416 -0
  30. package/dist/ts/maps/model/base-model.d.ts +2107 -0
  31. package/dist/ts/maps/model/base.d.ts +1840 -0
  32. package/dist/ts/maps/model/base.ts +2257 -0
  33. package/dist/ts/maps/model/constants.d.ts +225 -0
  34. package/dist/ts/maps/model/constants.ts +226 -0
  35. package/dist/ts/maps/model/export-image.d.ts +39 -0
  36. package/dist/ts/maps/model/export-image.ts +194 -0
  37. package/dist/ts/maps/model/export-pdf.d.ts +40 -0
  38. package/dist/ts/maps/model/export-pdf.ts +183 -0
  39. package/dist/ts/maps/model/interface.d.ts +892 -0
  40. package/dist/ts/maps/model/interface.ts +929 -0
  41. package/dist/ts/maps/model/print.d.ts +45 -0
  42. package/dist/ts/maps/model/print.ts +125 -0
  43. package/dist/ts/maps/model/theme.d.ts +98 -0
  44. package/dist/ts/maps/model/theme.ts +919 -0
  45. package/dist/ts/maps/user-interaction/annotation.d.ts +27 -0
  46. package/dist/ts/maps/user-interaction/annotation.ts +133 -0
  47. package/dist/ts/maps/user-interaction/highlight.d.ts +63 -0
  48. package/dist/ts/maps/user-interaction/highlight.ts +272 -0
  49. package/dist/ts/maps/user-interaction/selection.d.ts +85 -0
  50. package/dist/ts/maps/user-interaction/selection.ts +342 -0
  51. package/dist/ts/maps/user-interaction/tooltip.d.ts +78 -0
  52. package/dist/ts/maps/user-interaction/tooltip.ts +500 -0
  53. package/dist/ts/maps/user-interaction/zoom.d.ts +334 -0
  54. package/dist/ts/maps/user-interaction/zoom.ts +2523 -0
  55. package/dist/ts/maps/utils/enum.d.ts +328 -0
  56. package/dist/ts/maps/utils/enum.ts +343 -0
  57. package/dist/ts/maps/utils/helper.d.ts +1318 -0
  58. package/dist/ts/maps/utils/helper.ts +3811 -0
  59. package/package.json +53 -18
@@ -0,0 +1,173 @@
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
+ }