Fixed an issue in preview-service which was making it fail

This commit is contained in:
AlexandruPopovici
2022-08-26 15:13:36 +03:00
parent 3fead597e7
commit e6eb925490
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ async function pageFunction(objectUrl) {
for (let i = 0; i < 24; i++) {
v.setView({ azimuth: Math.PI / 12, polar: 0 }, false)
await waitForAnimation()
ret.scr[i + ''] = v.screenshot()
ret.scr[i + ''] = await v.screenshot()
}
/*
-3
View File
@@ -115,9 +115,6 @@ export type PolarView = {
origin?: Vector3
}
/**
* Carried over from the old Viewer. To be extended/changed
*/
export interface IViewer {
init(): Promise<void>
resize(): void