@galacean/engine 1.1.0-beta.35 → 1.1.0-beta.36

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 CHANGED
@@ -6907,13 +6907,15 @@
6907
6907
  ];
6908
6908
  })();
6909
6909
  (function() {
6910
- /** These characters are all tall to help calculate the height required for text. */ TextUtils._measureString = "|\xc9q\xc5";
6910
+ // _heightMultiplier used to measure the height of text, but in miniprogram performance is different from h5.
6911
+ // so can set _heightMultiplier to adapt miniprogram, the larger the value, the worse the performance.
6912
+ /** @internal */ TextUtils._heightMultiplier = 2;
6911
6913
  })();
6912
6914
  (function() {
6913
- TextUtils._measureBaseline = "M";
6915
+ /** These characters are all tall to help calculate the height required for text. */ TextUtils._measureString = "|\xc9q\xc5";
6914
6916
  })();
6915
6917
  (function() {
6916
- TextUtils._heightMultiplier = 2;
6918
+ TextUtils._measureBaseline = "M";
6917
6919
  })();
6918
6920
  (function() {
6919
6921
  TextUtils._baselineMultiplier = 1.4;
@@ -6996,7 +6998,7 @@
6996
6998
  var _this = this, engine = _this._engine;
6997
6999
  var fontAtlas = new FontAtlas(engine);
6998
7000
  var texture = new Texture2D(engine, 256, 256, exports.TextureFormat.R8G8B8A8, false);
6999
- texture.filterMode = exports.TextureFilterMode.Point;
7001
+ texture.filterMode = exports.TextureFilterMode.Bilinear;
7000
7002
  fontAtlas.texture = texture;
7001
7003
  fontAtlas.isGCIgnored = texture.isGCIgnored = true;
7002
7004
  this._fontAtlases.push(fontAtlas);
@@ -23408,7 +23410,7 @@
23408
23410
  var left = startX * pixelsPerUnitReciprocal;
23409
23411
  var right = (startX + w) * pixelsPerUnitReciprocal;
23410
23412
  var top = (startY + ascent) * pixelsPerUnitReciprocal;
23411
- var bottom = (startY - descent + 1) * pixelsPerUnitReciprocal;
23413
+ var bottom = (startY - descent) * pixelsPerUnitReciprocal;
23412
23414
  localPositions.set(left, top, right, bottom);
23413
23415
  i === firstLine && (maxY = Math.max(maxY, top));
23414
23416
  minY = Math.min(minY, bottom);
@@ -44026,7 +44028,7 @@
44026
44028
  ], GALACEAN_animation_event);
44027
44029
 
44028
44030
  //@ts-ignore
44029
- var version = "1.1.0-beta.35";
44031
+ var version = "1.1.0-beta.36";
44030
44032
  console.log("Galacean engine version: " + version);
44031
44033
  for(var key in CoreObjects){
44032
44034
  Loader.registerClass(key, CoreObjects[key]);