mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
route: added debug info
This commit is contained in:
parent
4f8c6bce33
commit
9c0038f0a3
1 changed files with 6 additions and 2 deletions
|
@ -240,11 +240,15 @@ function* getRenderData() {
|
|||
const points = getPolyPlacement();
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
console.log('[RENDER] fetching images');
|
||||
const images = yield fetchImages(ctx, geometry);
|
||||
console.log('[RENDER] ...done');
|
||||
console.log('[RENDER] composing images');
|
||||
yield composeImages({ geometry, images, ctx });
|
||||
|
||||
console.log('[RENDER] ...done');
|
||||
console.log('[RENDER] composing poly');
|
||||
yield composePoly({ points, ctx });
|
||||
|
||||
console.log('[RENDER] ...done');
|
||||
return yield canvas.toDataURL('image/jpeg');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue