chore: update async-hooks version

This commit is contained in:
lzxue 2022-10-18 23:21:27 +08:00
parent edba1fabbc
commit 02bae0265f
5 changed files with 8 additions and 8 deletions

View File

@ -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({

View File

@ -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",

View File

@ -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();

View File

@ -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",

View File

@ -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",