@galacean/engine 1.5.2 → 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/browser.js +3 -2
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/browser.js
CHANGED
|
@@ -41251,7 +41251,8 @@
|
|
|
41251
41251
|
// 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.
|
|
41252
41252
|
// Some devices do not support actualBoundingBoxLeft and actualBoundingBoxRight in TextMetrics.
|
|
41253
41253
|
// Examples: Google Pixel 2 XL (Android 11), Honor 6X (Android 8).
|
|
41254
|
-
|
|
41254
|
+
// In WeChat Mini Games, TextMetrics may be reported as not defined, so a check for window.TextMetrics is added.
|
|
41255
|
+
if (window.TextMetrics && !("actualBoundingBoxLeft" in TextMetrics.prototype)) {
|
|
41255
41256
|
Object.defineProperties(TextMetrics.prototype, {
|
|
41256
41257
|
actualBoundingBoxLeft: {
|
|
41257
41258
|
get: function get() {
|
|
@@ -51143,7 +51144,7 @@
|
|
|
51143
51144
|
], EXT_texture_webp);
|
|
51144
51145
|
|
|
51145
51146
|
//@ts-ignore
|
|
51146
|
-
var version = "1.5.
|
|
51147
|
+
var version = "1.5.3";
|
|
51147
51148
|
console.log("Galacean Engine Version: " + version);
|
|
51148
51149
|
for(var key in CoreObjects){
|
|
51149
51150
|
Loader.registerClass(key, CoreObjects[key]);
|