mirror of https://gitee.com/antv-l7/antv-l7
chore: update async-hooks version
This commit is contained in:
parent
edba1fabbc
commit
02bae0265f
|
@ -112,10 +112,10 @@ export default () => {
|
|||
|
||||
scene.addLayer(layer);
|
||||
|
||||
layer.on('click', (e) => {
|
||||
console.log('layer click');
|
||||
console.log(e);
|
||||
});
|
||||
// layer.on('click', (e) => {
|
||||
// console.log('layer click');
|
||||
// console.log(e);
|
||||
// });
|
||||
|
||||
// setTimeout(() => {
|
||||
// layer.style({
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"author": "xiaoiver",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/async-hook": "^2.2.4",
|
||||
"@antv/async-hook": "^2.2.5",
|
||||
"@antv/l7-utils": "2.9.36",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
"@turf/helpers": "^6.1.4",
|
||||
|
|
|
@ -152,7 +152,7 @@ export default class LayerService implements ILayerService {
|
|||
framebuffer: null,
|
||||
});
|
||||
layer.masks.map(async (m: ILayer) => {
|
||||
m.hooks.beforeRenderData.promise();
|
||||
await m.hooks.beforeRenderData.promise();
|
||||
m.hooks.beforeRender.call();
|
||||
m.render();
|
||||
m.hooks.afterRender.call();
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"author": "xiaoiver",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/async-hook": "^2.2.4",
|
||||
"@antv/async-hook": "^2.2.5",
|
||||
"@antv/l7-core": "2.9.36",
|
||||
"@antv/l7-maps": "2.9.36",
|
||||
"@antv/l7-source": "2.9.36",
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"author": "lzxue",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@antv/async-hook": "^2.2.4",
|
||||
"@antv/async-hook": "^2.2.5",
|
||||
"@antv/l7-core": "2.9.36",
|
||||
"@antv/l7-utils": "2.9.36",
|
||||
"@babel/runtime": "^7.7.7",
|
||||
|
|
Loading…
Reference in New Issue