@lingbi/studio 0.3.1 → 0.3.2
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/index.js +9 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -31348,8 +31348,9 @@ class Renderer {
|
|
|
31348
31348
|
if (this.contextLost) {
|
|
31349
31349
|
return Promise.reject(new Error("The WebGL context is unavailable."));
|
|
31350
31350
|
}
|
|
31351
|
+
this.cancelScheduledRender();
|
|
31351
31352
|
try {
|
|
31352
|
-
this.renderScene();
|
|
31353
|
+
this.renderScene(false);
|
|
31353
31354
|
} catch (error2) {
|
|
31354
31355
|
return Promise.reject(
|
|
31355
31356
|
new Error("The screenshot could not be rendered.", { cause: error2 })
|
|
@@ -31547,10 +31548,14 @@ class Renderer {
|
|
|
31547
31548
|
this.requestRender();
|
|
31548
31549
|
}
|
|
31549
31550
|
}
|
|
31550
|
-
renderScene() {
|
|
31551
|
-
|
|
31551
|
+
renderScene(includeViewCube = true) {
|
|
31552
|
+
if (includeViewCube) {
|
|
31553
|
+
this.viewCube.update(this.camera);
|
|
31554
|
+
}
|
|
31552
31555
|
this.renderer.render(this.scene, this.camera);
|
|
31553
|
-
|
|
31556
|
+
if (includeViewCube) {
|
|
31557
|
+
this.renderViewCube();
|
|
31558
|
+
}
|
|
31554
31559
|
}
|
|
31555
31560
|
renderViewCube() {
|
|
31556
31561
|
const viewport = this.viewCube.getViewport();
|