@galacean/engine-core 1.5.1 → 1.5.3
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/dist/main.js +6 -4
- package/dist/main.js.map +1 -1
- package/dist/module.js +6 -4
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/module.js
CHANGED
|
@@ -25994,13 +25994,14 @@ ShaderPool.init();
|
|
|
25994
25994
|
} else {
|
|
25995
25995
|
cameras.forEach(function(camera) {
|
|
25996
25996
|
componentsManager.callCameraOnBeginRender(camera);
|
|
25997
|
-
// `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
|
|
25998
25997
|
var pixelViewport = camera.pixelViewport;
|
|
25999
|
-
|
|
26000
|
-
|
|
25998
|
+
// `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
|
|
25999
|
+
if (pixelViewport.width !== 0 && pixelViewport.height !== 0) {
|
|
26001
26000
|
// Update post process manager
|
|
26002
26001
|
scene.postProcessManager._update(camera);
|
|
26003
26002
|
camera.render();
|
|
26003
|
+
} else {
|
|
26004
|
+
Logger.warn("Camera pixelViewport width or height is 0.");
|
|
26004
26005
|
}
|
|
26005
26006
|
componentsManager.callCameraOnEndRender(camera);
|
|
26006
26007
|
// Temp solution for webgl implement bug
|
|
@@ -36637,7 +36638,8 @@ __decorate([
|
|
|
36637
36638
|
// Based on the specific version of the engine implementation, when actualBoundingBoxLeft is not supported, width is used to represent the rendering width, and `textAlign` uses the default value `start` and direction is left to right.
|
|
36638
36639
|
// Some devices do not support actualBoundingBoxLeft and actualBoundingBoxRight in TextMetrics.
|
|
36639
36640
|
// Examples: Google Pixel 2 XL (Android 11), Honor 6X (Android 8).
|
|
36640
|
-
|
|
36641
|
+
// In WeChat Mini Games, TextMetrics may be reported as not defined, so a check for window.TextMetrics is added.
|
|
36642
|
+
if (window.TextMetrics && !("actualBoundingBoxLeft" in TextMetrics.prototype)) {
|
|
36641
36643
|
Object.defineProperties(TextMetrics.prototype, {
|
|
36642
36644
|
actualBoundingBoxLeft: {
|
|
36643
36645
|
get: function get() {
|