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