@syncfusion/ej2-maps 25.1.37 → 25.1.41

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 (51) hide show
  1. package/.eslintrc.json +260 -0
  2. package/CHANGELOG.md +18 -0
  3. package/dist/ej2-maps.min.js +2 -2
  4. package/dist/ej2-maps.umd.min.js +2 -2
  5. package/dist/ej2-maps.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-maps.es2015.js +520 -301
  7. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  8. package/dist/es6/ej2-maps.es5.js +501 -283
  9. package/dist/es6/ej2-maps.es5.js.map +1 -1
  10. package/dist/global/ej2-maps.min.js +2 -2
  11. package/dist/global/ej2-maps.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/package.json +7 -7
  14. package/src/maps/layers/bubble.d.ts +17 -2
  15. package/src/maps/layers/bubble.js +20 -5
  16. package/src/maps/layers/color-mapping.d.ts +1 -1
  17. package/src/maps/layers/color-mapping.js +4 -0
  18. package/src/maps/layers/data-label.d.ts +2 -2
  19. package/src/maps/layers/data-label.js +5 -7
  20. package/src/maps/layers/layer-panel.d.ts +8 -7
  21. package/src/maps/layers/layer-panel.js +21 -23
  22. package/src/maps/layers/legend.d.ts +7 -6
  23. package/src/maps/layers/legend.js +41 -24
  24. package/src/maps/layers/marker.d.ts +7 -2
  25. package/src/maps/layers/marker.js +14 -10
  26. package/src/maps/layers/navigation-selected-line.js +1 -0
  27. package/src/maps/layers/polygon.js +5 -1
  28. package/src/maps/maps-model.d.ts +9 -9
  29. package/src/maps/maps.d.ts +30 -12
  30. package/src/maps/maps.js +88 -59
  31. package/src/maps/model/base-model.d.ts +3 -2
  32. package/src/maps/model/base.d.ts +10 -9
  33. package/src/maps/model/base.js +1 -1
  34. package/src/maps/model/export-image.js +1 -1
  35. package/src/maps/model/export-pdf.js +3 -3
  36. package/src/maps/model/interface.d.ts +1 -0
  37. package/src/maps/model/print.js +2 -0
  38. package/src/maps/model/theme.js +12 -12
  39. package/src/maps/user-interaction/annotation.d.ts +5 -0
  40. package/src/maps/user-interaction/annotation.js +6 -2
  41. package/src/maps/user-interaction/highlight.d.ts +13 -1
  42. package/src/maps/user-interaction/highlight.js +12 -2
  43. package/src/maps/user-interaction/selection.d.ts +13 -1
  44. package/src/maps/user-interaction/selection.js +19 -13
  45. package/src/maps/user-interaction/tooltip.d.ts +14 -0
  46. package/src/maps/user-interaction/tooltip.js +16 -1
  47. package/src/maps/user-interaction/zoom.d.ts +55 -10
  48. package/src/maps/user-interaction/zoom.js +146 -104
  49. package/src/maps/utils/helper.d.ts +64 -36
  50. package/src/maps/utils/helper.js +84 -54
  51. package/tslint.json +111 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,260 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "plugin:jsdoc/recommended",
10
+ "plugin:security/recommended"
11
+ ],
12
+ "parser": "@typescript-eslint/parser",
13
+ "parserOptions": {
14
+ "ecmaFeatures": { "js": true },
15
+ "ecmaVersion": 2018,
16
+ "project": "./tsconfig.json",
17
+ "sourceType": "module"
18
+ },
19
+ "plugins": [
20
+ "@typescript-eslint",
21
+ "@typescript-eslint/tslint",
22
+ "eslint-plugin-security",
23
+ "jsdoc"
24
+ ],
25
+ "rules": {
26
+ "use-isnan": "error",
27
+ "security/detect-unsafe-regex":"error",
28
+ "security/detect-buffer-noassert":"error",
29
+ "security/detect-child-process":"error",
30
+ "security/detect-disable-mustache-escape":"error",
31
+ "security/detect-eval-with-expression":"error",
32
+ "security/detect-no-csrf-before-method-override":"error",
33
+ "security/detect-non-literal-fs-filename":"error",
34
+ "security/detect-non-literal-regexp":"error",
35
+ "security/detect-non-literal-require":"error",
36
+ "security/detect-object-injection":"error",
37
+ "security/detect-possible-timing-attacks":"error",
38
+ "security/detect-pseudoRandomBytes":"error",
39
+ "security/detect-new-buffer":"error",
40
+ "security/detect-bidi-characters":"error",
41
+ "@typescript-eslint/no-inferrable-types": "off",
42
+ "@typescript-eslint/ban-types": ["warn", {
43
+ "types": {
44
+ "Object": false,
45
+ "object": false,
46
+ "{}": false,
47
+ "Function": false
48
+ }
49
+ }],
50
+ "jsdoc/check-tag-names": 0,
51
+ "@typescript-eslint/tslint/config": [
52
+ "error",
53
+ {
54
+ "rules": {
55
+ "ban": true,
56
+ "chai-vague-errors": true,
57
+ "max-func-body-length": [
58
+ true,
59
+ 120,
60
+ {
61
+ "ignore-parameters-to-function-regex": "describe"
62
+ }
63
+ ],
64
+ "missing-jsdoc": true,
65
+ "no-backbone-get-set-outside-model": false,
66
+ "no-cookies": false,
67
+ "no-delete-expression": false,
68
+ "no-disable-auto-sanitization": true,
69
+ "no-duplicate-case": true,
70
+ "no-duplicate-parameter-names": true,
71
+ "no-empty-interfaces": false,
72
+ "no-exec-script": true,
73
+ "no-function-expression": false,
74
+ "no-multiple-var-decl": false,
75
+ "no-string-based-set-immediate": false,
76
+ "no-string-based-set-interval": false,
77
+ "no-unnecessary-bind": false,
78
+ "no-unused-imports": true,
79
+ "no-with-statement": false,
80
+ "prefer-array-literal": false,
81
+ "typedef": [
82
+ true,
83
+ "call-signature",
84
+ "parameter",
85
+ "property-declaration",
86
+ "variable-declaration",
87
+ "arrow-parameter",
88
+ "member-variable-declaration"
89
+ ],
90
+ "use-named-parameter": false,
91
+ "valid-typeof": true,
92
+ "whitespace": [
93
+ true,
94
+ "check-branch",
95
+ "check-decl",
96
+ "check-operator",
97
+ "check-separator",
98
+ "check-type"
99
+ ]
100
+ }
101
+ }
102
+ ],
103
+ "no-control-regex": "error",
104
+ "no-constant-condition": "error",
105
+ "no-invalid-regexp": "error",
106
+ "curly": "error",
107
+ "eol-last": [
108
+ "error",
109
+ "always"
110
+ ],
111
+ "guard-for-in": "error",
112
+ "no-labels": "error",
113
+ "max-len": [
114
+ "error",
115
+ {
116
+ "code": 140,
117
+ "tabWidth": 4,
118
+ "ignoreComments": true,
119
+ "ignoreStrings": true,
120
+ "ignoreTemplateLiterals": true,
121
+ "ignoreRegExpLiterals": true
122
+ }
123
+ ],
124
+ "no-console": [
125
+ "error",
126
+ {
127
+ "allow": [
128
+ "warn",
129
+ "dir",
130
+ "timeLog",
131
+ "assert",
132
+ "clear",
133
+ "count",
134
+ "countReset",
135
+ "group",
136
+ "groupEnd",
137
+ "table",
138
+ "dirxml",
139
+ "error",
140
+ "groupCollapsed",
141
+ "Console",
142
+ "profile",
143
+ "profileEnd",
144
+ "timeStamp",
145
+ "context"
146
+ ]
147
+ }
148
+ ],
149
+ "no-redeclare": [
150
+ "error",
151
+ {
152
+ "builtinGlobals": true
153
+ }
154
+ ],
155
+ "@typescript-eslint/no-parameter-properties": "error",
156
+ "@typescript-eslint/indent": [
157
+ "error",
158
+ 4,
159
+ {
160
+ "CallExpression": {
161
+ "arguments": "first"
162
+ },
163
+ "FunctionDeclaration": {
164
+ "parameters": "first"
165
+ },
166
+ "FunctionExpression": {
167
+ "parameters": "first"
168
+ }
169
+ }
170
+ ],
171
+ "no-debugger": "error",
172
+ "no-eval": "error",
173
+ "no-extra-semi": "error",
174
+ "no-throw-literal": "error",
175
+ "no-fallthrough": "error",
176
+ "comma-dangle": [
177
+ "error",
178
+ "never"
179
+ ],
180
+ "no-trailing-spaces": "error",
181
+ "@typescript-eslint/no-unused-expressions": "error",
182
+ "@typescript-eslint/no-var-requires": "error",
183
+ "one-var": [
184
+ "error",
185
+ "never"
186
+ ],
187
+ "@typescript-eslint/no-explicit-any": "error",
188
+ "no-cond-assign": [
189
+ "error",
190
+ "always"
191
+ ],
192
+ "@typescript-eslint/consistent-type-assertions": "off",
193
+ "jsdoc/check-alignment": "error",
194
+ "no-empty": "error",
195
+ "quotes": [
196
+ "error",
197
+ "single"
198
+ ],
199
+ "semi": [
200
+ "error",
201
+ "always"
202
+ ],
203
+ "eqeqeq": [
204
+ "error",
205
+ "smart"
206
+ ],
207
+ "valid-typeof": [
208
+ "error",
209
+ {
210
+ "requireStringLiterals": true
211
+ }
212
+ ],
213
+ "camelcase": [
214
+ "error",
215
+ {
216
+ "properties": "always",
217
+ "ignoreDestructuring": true,
218
+ "ignoreImports": true
219
+ }
220
+ ],
221
+ "no-irregular-whitespace": [
222
+ "error",
223
+ {
224
+ "skipStrings": true,
225
+ "skipComments": true,
226
+ "skipRegExps": true,
227
+ "skipTemplates": true
228
+ }
229
+ ],
230
+ "valid-jsdoc": [
231
+ "error",
232
+ {
233
+ "prefer": {
234
+ "arg": "param",
235
+ "argument": "param",
236
+ "class": "constructor",
237
+ "return": "returns",
238
+ "virtual": "abstract"
239
+ }
240
+ }
241
+ ],
242
+ "no-var": "error",
243
+ "radix": "error"
244
+ },
245
+ "reportUnusedDisableDirectives": true,
246
+ "overrides": [
247
+ {
248
+ "files": [
249
+ "node_modules",
250
+ "dist",
251
+ "public",
252
+ "coverage",
253
+ "test-report"
254
+ ],
255
+ "rules": {
256
+ "no-unused-expressions": "off"
257
+ }
258
+ }
259
+ ]
260
+ }
package/CHANGELOG.md CHANGED
@@ -12,6 +12,24 @@
12
12
 
13
13
  #### Bug Fixes
14
14
 
15
+ - `#I576422` - Script errors will no longer occur when rendering data labels with "Normal" geometry type maps, and the data labels will be rendered properly with the provided labels without trimming.
16
+ - `#I566503` - The flickering in the tile images of the online maps will no longer occur while panning.
17
+
18
+ ## 25.1.40 (2024-04-16)
19
+
20
+ ### Maps
21
+
22
+ #### Bug Fixes
23
+
24
+ - `#I566503` - The slight variation between the sublayer shape map and tile images of the online map in the base layer is now properly synchronized when panning the Maps.
25
+ - `#F186927` - The pinch zooming will now work properly for the online maps, which zoom in and out by a factor of 1.
26
+
27
+ ## 25.1.37 (2024-03-26)
28
+
29
+ ### Maps
30
+
31
+ #### Bug Fixes
32
+
15
33
  - `#I566503` - The shape map in the sublayer is now properly synchronized with the tile images in the base layer when panning the Maps.
16
34
 
17
35
  ## 25.1.35 (2024-03-15)