@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/main.js
CHANGED
|
@@ -25998,13 +25998,14 @@ ShaderPool.init();
|
|
|
25998
25998
|
} else {
|
|
25999
25999
|
cameras.forEach(function(camera) {
|
|
26000
26000
|
componentsManager.callCameraOnBeginRender(camera);
|
|
26001
|
-
// `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
|
|
26002
26001
|
var pixelViewport = camera.pixelViewport;
|
|
26003
|
-
|
|
26004
|
-
|
|
26002
|
+
// `pixelViewport` width or height is `0` will cause internal render target create error and return can save performance
|
|
26003
|
+
if (pixelViewport.width !== 0 && pixelViewport.height !== 0) {
|
|
26005
26004
|
// Update post process manager
|
|
26006
26005
|
scene.postProcessManager._update(camera);
|
|
26007
26006
|
camera.render();
|
|
26007
|
+
} else {
|
|
26008
|
+
Logger.warn("Camera pixelViewport width or height is 0.");
|
|
26008
26009
|
}
|
|
26009
26010
|
componentsManager.callCameraOnEndRender(camera);
|
|
26010
26011
|
// Temp solution for webgl implement bug
|
|
@@ -36641,7 +36642,8 @@ __decorate([
|
|
|
36641
36642
|
// 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.
|
|
36642
36643
|
// Some devices do not support actualBoundingBoxLeft and actualBoundingBoxRight in TextMetrics.
|
|
36643
36644
|
// Examples: Google Pixel 2 XL (Android 11), Honor 6X (Android 8).
|
|
36644
|
-
|
|
36645
|
+
// In WeChat Mini Games, TextMetrics may be reported as not defined, so a check for window.TextMetrics is added.
|
|
36646
|
+
if (window.TextMetrics && !("actualBoundingBoxLeft" in TextMetrics.prototype)) {
|
|
36645
36647
|
Object.defineProperties(TextMetrics.prototype, {
|
|
36646
36648
|
actualBoundingBoxLeft: {
|
|
36647
36649
|
get: function get() {
|