route-graphics 1.44.3 → 1.45.0
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.
- package/README.md +19 -0
- package/dist/RouteGraphics.js +92 -92
- package/dist/cli/routeGraphicsCli.js +13 -1
- package/package.json +1 -1
|
@@ -7270,7 +7270,19 @@ var capturePng = async ({
|
|
|
7270
7270
|
}
|
|
7271
7271
|
document.body.replaceChildren(app.canvas);
|
|
7272
7272
|
app.render(renderPayload.state);
|
|
7273
|
-
|
|
7273
|
+
let readyTimeoutId;
|
|
7274
|
+
try {
|
|
7275
|
+
await Promise.race([
|
|
7276
|
+
app.whenRenderReady(),
|
|
7277
|
+
new Promise((_, reject) => {
|
|
7278
|
+
readyTimeoutId = window.setTimeout(() => {
|
|
7279
|
+
reject(new Error("Timed out waiting for scene readiness."));
|
|
7280
|
+
}, renderPayload.timeoutMS);
|
|
7281
|
+
})
|
|
7282
|
+
]);
|
|
7283
|
+
} finally {
|
|
7284
|
+
window.clearTimeout(readyTimeoutId);
|
|
7285
|
+
}
|
|
7274
7286
|
if (renderPayload.timeMS !== null) {
|
|
7275
7287
|
app.setAnimationTime(renderPayload.timeMS);
|
|
7276
7288
|
} else if (renderPayload.waitForRenderComplete) {
|