@antv/l7-component 2.16.0 → 2.16.2

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.
@@ -261,7 +261,7 @@ var Control = /*#__PURE__*/function (_ref) {
261
261
  position.appendChild(container);
262
262
  } else {
263
263
  var corner = this.controlService.controlCorners[position];
264
- if (position.indexOf('bottom') !== -1) {
264
+ if (['bottomleft', 'bottomright', 'righttop', 'rightbottom'].includes(position)) {
265
265
  corner.insertBefore(container, corner.firstChild);
266
266
  } else {
267
267
  corner.appendChild(container);
@@ -273,7 +273,7 @@ var Control = /*#__PURE__*/function (_ref) {
273
273
  position.appendChild(container);
274
274
  } else {
275
275
  var corner = this.controlService.controlCorners[position];
276
- if (position.indexOf('bottom') !== -1) {
276
+ if (['bottomleft', 'bottomright', 'righttop', 'rightbottom'].includes(position)) {
277
277
  corner.insertBefore(container, corner.firstChild);
278
278
  } else {
279
279
  corner.appendChild(container);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.16.0",
3
+ "version": "2.16.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -26,8 +26,8 @@
26
26
  "author": "lzxue",
27
27
  "license": "ISC",
28
28
  "dependencies": {
29
- "@antv/l7-core": "2.16.0",
30
- "@antv/l7-utils": "2.16.0",
29
+ "@antv/l7-core": "2.16.2",
30
+ "@antv/l7-utils": "2.16.2",
31
31
  "@babel/runtime": "^7.7.7",
32
32
  "eventemitter3": "^4.0.0",
33
33
  "inversify": "^5.0.1",
@@ -36,12 +36,12 @@
36
36
  "supercluster": "^7.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@antv/l7-layers": "2.16.0",
40
- "@antv/l7-test-utils": "2.16.0",
39
+ "@antv/l7-layers": "2.16.2",
40
+ "@antv/l7-test-utils": "2.16.2",
41
41
  "gcoord": "^0.3.2",
42
42
  "less": "^4.1.3"
43
43
  },
44
- "gitHead": "901d07c0523b128fbc69ca04e6b3b8367ea3572d",
44
+ "gitHead": "93b6d071e7d9c07c8bafcf1e6ce37b5f21185905",
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  }