@syncfusion/ej2-maps 29.2.11 → 30.2.4

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 29.2.11
3
+ * version : 30.2.4
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-maps",
3
- "version": "29.2.11",
3
+ "version": "30.2.4",
4
4
  "description": "The Maps component is used to visualize the geographical data and represent the statistical data of a particular geographical area on earth with user interactivity, and provides various customizing options",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
7
7
  "dependencies": {
8
- "@syncfusion/ej2-base": "~29.2.11",
9
- "@syncfusion/ej2-buttons": "~29.2.5",
10
- "@syncfusion/ej2-compression": "~29.2.4",
11
- "@syncfusion/ej2-data": "~29.2.4",
12
- "@syncfusion/ej2-file-utils": "~29.2.4",
13
- "@syncfusion/ej2-pdf-export": "~29.2.4",
14
- "@syncfusion/ej2-svg-base": "~29.2.4"
8
+ "@syncfusion/ej2-base": "~30.2.4",
9
+ "@syncfusion/ej2-buttons": "~30.2.4",
10
+ "@syncfusion/ej2-compression": "~30.2.4",
11
+ "@syncfusion/ej2-data": "~30.2.4",
12
+ "@syncfusion/ej2-file-utils": "~30.2.4",
13
+ "@syncfusion/ej2-pdf-export": "~30.2.4",
14
+ "@syncfusion/ej2-svg-base": "~30.2.4"
15
15
  },
16
16
  "devDependencies": {},
17
17
  "keywords": [
@@ -638,7 +638,7 @@ var Legend = /** @class */ (function () {
638
638
  this.maps.legendSettings.toggleLegendSettings.opacity :
639
639
  this.maps.legendSettings.toggleLegendSettings.border.opacity, this.maps.legendSettings.toggleLegendSettings.fill);
640
640
  }
641
- else {
641
+ else if (currentItem[currentItem.length - 1].length > 0) {
642
642
  var layerIndex = currentItem[currentItem.length - 1].layerIndex;
643
643
  this.setToggleAttributes(legendTextElement, legendShapeElement, this.maps.layers[layerIndex].shapeSettings.fill, this.maps.layers[layerIndex].shapeSettings.opacity,
644
644
  /* eslint-disable-next-line max-len */
@@ -2767,9 +2767,7 @@ export function getElementsByClassName(className) {
2767
2767
  */
2768
2768
  export function querySelector(args, elementSelector) {
2769
2769
  var targetEle = null;
2770
- if (document.getElementById(elementSelector)) {
2771
- targetEle = document.getElementById(elementSelector).querySelector('#' + args);
2772
- }
2770
+ targetEle = document.querySelector('#' + args);
2773
2771
  return targetEle;
2774
2772
  }
2775
2773
  /**
package/.eslintrc.json DELETED
@@ -1,261 +0,0 @@
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
- "ignorePatterns": ["*.d.ts", "*.js"],
20
- "plugins": [
21
- "@typescript-eslint",
22
- "@typescript-eslint/tslint",
23
- "eslint-plugin-security",
24
- "jsdoc"
25
- ],
26
- "rules": {
27
- "use-isnan": "error",
28
- "security/detect-unsafe-regex":"error",
29
- "security/detect-buffer-noassert":"error",
30
- "security/detect-child-process":"error",
31
- "security/detect-disable-mustache-escape":"error",
32
- "security/detect-eval-with-expression":"error",
33
- "security/detect-no-csrf-before-method-override":"error",
34
- "security/detect-non-literal-fs-filename":"error",
35
- "security/detect-non-literal-regexp":"error",
36
- "security/detect-non-literal-require":"error",
37
- "security/detect-object-injection":"error",
38
- "security/detect-possible-timing-attacks":"error",
39
- "security/detect-pseudoRandomBytes":"error",
40
- "security/detect-new-buffer":"error",
41
- "security/detect-bidi-characters":"error",
42
- "@typescript-eslint/no-inferrable-types": "off",
43
- "@typescript-eslint/ban-types": ["warn", {
44
- "types": {
45
- "Object": false,
46
- "object": false,
47
- "{}": false,
48
- "Function": false
49
- }
50
- }],
51
- "jsdoc/check-tag-names": 0,
52
- "@typescript-eslint/tslint/config": [
53
- "error",
54
- {
55
- "rules": {
56
- "ban": true,
57
- "chai-vague-errors": true,
58
- "max-func-body-length": [
59
- true,
60
- 120,
61
- {
62
- "ignore-parameters-to-function-regex": "describe"
63
- }
64
- ],
65
- "missing-jsdoc": true,
66
- "no-backbone-get-set-outside-model": false,
67
- "no-cookies": false,
68
- "no-delete-expression": false,
69
- "no-disable-auto-sanitization": true,
70
- "no-duplicate-case": true,
71
- "no-duplicate-parameter-names": true,
72
- "no-empty-interfaces": false,
73
- "no-exec-script": true,
74
- "no-function-expression": false,
75
- "no-multiple-var-decl": false,
76
- "no-string-based-set-immediate": false,
77
- "no-string-based-set-interval": false,
78
- "no-unnecessary-bind": false,
79
- "no-unused-imports": true,
80
- "no-with-statement": false,
81
- "prefer-array-literal": false,
82
- "typedef": [
83
- true,
84
- "call-signature",
85
- "parameter",
86
- "property-declaration",
87
- "variable-declaration",
88
- "arrow-parameter",
89
- "member-variable-declaration"
90
- ],
91
- "use-named-parameter": false,
92
- "valid-typeof": true,
93
- "whitespace": [
94
- true,
95
- "check-branch",
96
- "check-decl",
97
- "check-operator",
98
- "check-separator",
99
- "check-type"
100
- ]
101
- }
102
- }
103
- ],
104
- "no-control-regex": "error",
105
- "no-constant-condition": "error",
106
- "no-invalid-regexp": "error",
107
- "curly": "error",
108
- "eol-last": [
109
- "error",
110
- "always"
111
- ],
112
- "guard-for-in": "error",
113
- "no-labels": "error",
114
- "max-len": [
115
- "error",
116
- {
117
- "code": 140,
118
- "tabWidth": 4,
119
- "ignoreComments": true,
120
- "ignoreStrings": true,
121
- "ignoreTemplateLiterals": true,
122
- "ignoreRegExpLiterals": true
123
- }
124
- ],
125
- "no-console": [
126
- "error",
127
- {
128
- "allow": [
129
- "warn",
130
- "dir",
131
- "timeLog",
132
- "assert",
133
- "clear",
134
- "count",
135
- "countReset",
136
- "group",
137
- "groupEnd",
138
- "table",
139
- "dirxml",
140
- "error",
141
- "groupCollapsed",
142
- "Console",
143
- "profile",
144
- "profileEnd",
145
- "timeStamp",
146
- "context"
147
- ]
148
- }
149
- ],
150
- "no-redeclare": [
151
- "error",
152
- {
153
- "builtinGlobals": true
154
- }
155
- ],
156
- "@typescript-eslint/no-parameter-properties": "error",
157
- "@typescript-eslint/indent": [
158
- "error",
159
- 4,
160
- {
161
- "CallExpression": {
162
- "arguments": "first"
163
- },
164
- "FunctionDeclaration": {
165
- "parameters": "first"
166
- },
167
- "FunctionExpression": {
168
- "parameters": "first"
169
- }
170
- }
171
- ],
172
- "no-debugger": "error",
173
- "no-eval": "error",
174
- "no-extra-semi": "error",
175
- "no-throw-literal": "error",
176
- "no-fallthrough": "error",
177
- "comma-dangle": [
178
- "error",
179
- "never"
180
- ],
181
- "no-trailing-spaces": "error",
182
- "@typescript-eslint/no-unused-expressions": "error",
183
- "@typescript-eslint/no-var-requires": "error",
184
- "one-var": [
185
- "error",
186
- "never"
187
- ],
188
- "@typescript-eslint/no-explicit-any": "warn",
189
- "no-cond-assign": [
190
- "error",
191
- "always"
192
- ],
193
- "@typescript-eslint/consistent-type-assertions": "off",
194
- "jsdoc/check-alignment": "error",
195
- "no-empty": "error",
196
- "quotes": [
197
- "error",
198
- "single"
199
- ],
200
- "semi": [
201
- "error",
202
- "always"
203
- ],
204
- "eqeqeq": [
205
- "error",
206
- "smart"
207
- ],
208
- "valid-typeof": [
209
- "error",
210
- {
211
- "requireStringLiterals": true
212
- }
213
- ],
214
- "camelcase": [
215
- "error",
216
- {
217
- "properties": "always",
218
- "ignoreDestructuring": true,
219
- "ignoreImports": true
220
- }
221
- ],
222
- "no-irregular-whitespace": [
223
- "error",
224
- {
225
- "skipStrings": true,
226
- "skipComments": true,
227
- "skipRegExps": true,
228
- "skipTemplates": true
229
- }
230
- ],
231
- "valid-jsdoc": [
232
- "error",
233
- {
234
- "prefer": {
235
- "arg": "param",
236
- "argument": "param",
237
- "class": "constructor",
238
- "return": "returns",
239
- "virtual": "abstract"
240
- }
241
- }
242
- ],
243
- "no-var": "error",
244
- "radix": "error"
245
- },
246
- "reportUnusedDisableDirectives": true,
247
- "overrides": [
248
- {
249
- "files": [
250
- "node_modules",
251
- "dist",
252
- "public",
253
- "coverage",
254
- "test-report"
255
- ],
256
- "rules": {
257
- "no-unused-expressions": "off"
258
- }
259
- }
260
- ]
261
- }
package/tslint.json DELETED
@@ -1,111 +0,0 @@
1
- {
2
- "rules": {
3
- "chai-vague-errors": true,
4
- "use-isnan": true,
5
- "missing-jsdoc": true,
6
- "missing-optional-annotation": true,
7
- "no-backbone-get-set-outside-model": true,
8
- "no-banned-terms": true,
9
- "no-constant-condition": true,
10
- "no-control-regex": true,
11
- "no-cookies": true,
12
- "no-delete-expression": true,
13
- "no-document-write": true,
14
- "no-document-domain": true,
15
- "no-disable-auto-sanitization": true,
16
- "no-duplicate-case": true,
17
- "no-duplicate-parameter-names": true,
18
- "no-empty-interfaces": true,
19
- "no-exec-script": true,
20
- "no-function-constructor-with-string-args": true,
21
- "no-function-expression": true,
22
- "no-invalid-regexp": true,
23
- "no-for-in": true,
24
- "member-access": true,
25
- "no-multiline-string": true,
26
- "no-multiple-var-decl": true,
27
- "no-unnecessary-bind": true,
28
- "no-unnecessary-semicolons": true,
29
- "no-octal-literal": true,
30
- "no-regex-spaces": true,
31
- "no-sparse-arrays": true,
32
- "no-string-based-set-immediate": true,
33
- "no-string-based-set-interval": true,
34
- "no-unused-imports": true,
35
- "no-with-statement": true,
36
- "prefer-array-literal": true,
37
- "promise-must-complete": false,
38
- "react-no-dangerous-html": true,
39
- "use-named-parameter": true,
40
- "valid-typeof": true,
41
- "max-func-body-length": [true, 100, {
42
- "ignore-parameters-to-function-regex": "describe"
43
- }],
44
- "class-name": true,
45
- "curly": true,
46
- "eofline": false,
47
- "forin": true,
48
- "indent": [
49
- true,
50
- "spaces"
51
- ],
52
- "label-position": true,
53
- "max-line-length": [true, 140],
54
- "no-arg": true,
55
- "no-console": [true,
56
- "debug",
57
- "info",
58
- "log",
59
- "time",
60
- "timeEnd",
61
- "trace"
62
- ],
63
- "no-construct": true,
64
- "no-parameter-properties": true,
65
- "no-debugger": true,
66
- "no-duplicate-variable": true,
67
- "no-empty": true,
68
- "no-eval": true,
69
- "no-string-literal": true,
70
- "no-switch-case-fall-through": true,
71
- "trailing-comma": true,
72
- "no-trailing-whitespace": true,
73
- "no-unused-expression": true,
74
- "no-use-before-declare": false,
75
- "no-var-requires": true,
76
- "one-line": [true,
77
- "check-open-brace",
78
- "check-catch",
79
- "check-else",
80
- "check-whitespace"
81
- ],
82
- "no-any": true,
83
- "no-conditional-assignment": true,
84
- "no-angle-bracket-type-assertion": false,
85
- "align": [true, "parameters", "arguments", "statements"],
86
- "no-empty-line-after-opening-brace": false,
87
- "typedef-whitespace": [false],
88
- "ban": true,
89
- "quotemark": [true, "single"],
90
- "semicolon": true,
91
- "triple-equals": [true, "allow-null-check"],
92
- "typedef": [true,
93
- "call-signature",
94
- "parameter",
95
- "property-declaration",
96
- "variable-declaration",
97
- "arrow-parameter",
98
- "member-variable-declaration"],
99
- "variable-name": true,
100
- "whitespace": [true,
101
- "check-branch",
102
- "check-decl",
103
- "check-operator",
104
- "check-separator",
105
- "check-type"
106
- ],
107
- "jsdoc-format": true,
108
- "no-var-keyword": true,
109
- "radix": true
110
- }
111
- }