@antv/l7-component 2.11.7 → 2.12.1

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.
@@ -150,11 +150,39 @@ var ExportImage = /*#__PURE__*/function (_ButtonControl) {
150
150
  }
151
151
  }, {
152
152
  key: "getImage",
153
- value: function getImage() {
154
- var mapImage = this.mapsService.exportMap('png');
155
- var layerImage = this.scene.exportPng('png');
156
- return this.mergeImage(mapImage, layerImage);
157
- }
153
+ value: function () {
154
+ var _getImage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
155
+ var mapImage, layerImage;
156
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
157
+ while (1) {
158
+ switch (_context3.prev = _context3.next) {
159
+ case 0:
160
+ _context3.next = 2;
161
+ return this.mapsService.exportMap('png');
162
+
163
+ case 2:
164
+ mapImage = _context3.sent;
165
+ _context3.next = 5;
166
+ return this.scene.exportPng('png');
167
+
168
+ case 5:
169
+ layerImage = _context3.sent;
170
+ return _context3.abrupt("return", this.mergeImage(mapImage, layerImage));
171
+
172
+ case 7:
173
+ case "end":
174
+ return _context3.stop();
175
+ }
176
+ }
177
+ }, _callee3, this);
178
+ }));
179
+
180
+ function getImage() {
181
+ return _getImage.apply(this, arguments);
182
+ }
183
+
184
+ return getImage;
185
+ }()
158
186
  }]);
159
187
 
160
188
  return ExportImage;
@@ -165,11 +165,39 @@ var ExportImage = /*#__PURE__*/function (_ButtonControl) {
165
165
  }
166
166
  }, {
167
167
  key: "getImage",
168
- value: function getImage() {
169
- var mapImage = this.mapsService.exportMap('png');
170
- var layerImage = this.scene.exportPng('png');
171
- return this.mergeImage(mapImage, layerImage);
172
- }
168
+ value: function () {
169
+ var _getImage = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
170
+ var mapImage, layerImage;
171
+ return _regenerator.default.wrap(function _callee3$(_context3) {
172
+ while (1) {
173
+ switch (_context3.prev = _context3.next) {
174
+ case 0:
175
+ _context3.next = 2;
176
+ return this.mapsService.exportMap('png');
177
+
178
+ case 2:
179
+ mapImage = _context3.sent;
180
+ _context3.next = 5;
181
+ return this.scene.exportPng('png');
182
+
183
+ case 5:
184
+ layerImage = _context3.sent;
185
+ return _context3.abrupt("return", this.mergeImage(mapImage, layerImage));
186
+
187
+ case 7:
188
+ case "end":
189
+ return _context3.stop();
190
+ }
191
+ }
192
+ }, _callee3, this);
193
+ }));
194
+
195
+ function getImage() {
196
+ return _getImage.apply(this, arguments);
197
+ }
198
+
199
+ return getImage;
200
+ }()
173
201
  }]);
174
202
  return ExportImage;
175
203
  }(_buttonControl.default);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-component",
3
- "version": "2.11.7",
3
+ "version": "2.12.1",
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.11.7",
30
- "@antv/l7-utils": "2.11.7",
29
+ "@antv/l7-core": "2.12.1",
30
+ "@antv/l7-utils": "2.12.1",
31
31
  "@babel/runtime": "^7.7.7",
32
32
  "eventemitter3": "^4.0.0",
33
33
  "inversify": "^5.0.1",
@@ -36,11 +36,11 @@
36
36
  "supercluster": "^7.0.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@antv/l7-test-utils": "2.11.7",
39
+ "@antv/l7-test-utils": "2.12.1",
40
40
  "gcoord": "^0.3.2",
41
41
  "less": "^4.1.3"
42
42
  },
43
- "gitHead": "2cfdae91150313d75c87a21838b7512d0595052b",
43
+ "gitHead": "9e483bb35d0a9afeed94b3d68ce4b136e8356a32",
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  }