@galacean/engine-core 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/main.js +7 -5
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +7 -5
- package/dist/module.js +7 -5
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
package/dist/main.js
CHANGED
|
@@ -1947,13 +1947,15 @@ var Logger = {
|
|
|
1947
1947
|
];
|
|
1948
1948
|
})();
|
|
1949
1949
|
(function() {
|
|
1950
|
-
|
|
1950
|
+
// _heightMultiplier used to measure the height of text, but in miniprogram performance is different from h5.
|
|
1951
|
+
// so can set _heightMultiplier to adapt miniprogram, the larger the value, the worse the performance.
|
|
1952
|
+
/** @internal */ TextUtils._heightMultiplier = 2;
|
|
1951
1953
|
})();
|
|
1952
1954
|
(function() {
|
|
1953
|
-
TextUtils.
|
|
1955
|
+
/** These characters are all tall to help calculate the height required for text. */ TextUtils._measureString = "|\xc9q\xc5";
|
|
1954
1956
|
})();
|
|
1955
1957
|
(function() {
|
|
1956
|
-
TextUtils.
|
|
1958
|
+
TextUtils._measureBaseline = "M";
|
|
1957
1959
|
})();
|
|
1958
1960
|
(function() {
|
|
1959
1961
|
TextUtils._baselineMultiplier = 1.4;
|
|
@@ -2037,7 +2039,7 @@ var Logger = {
|
|
|
2037
2039
|
var _this = this, engine = _this._engine;
|
|
2038
2040
|
var fontAtlas = new FontAtlas(engine);
|
|
2039
2041
|
var texture = new Texture2D(engine, 256, 256, exports.TextureFormat.R8G8B8A8, false);
|
|
2040
|
-
texture.filterMode = exports.TextureFilterMode.
|
|
2042
|
+
texture.filterMode = exports.TextureFilterMode.Bilinear;
|
|
2041
2043
|
fontAtlas.texture = texture;
|
|
2042
2044
|
fontAtlas.isGCIgnored = texture.isGCIgnored = true;
|
|
2043
2045
|
this._fontAtlases.push(fontAtlas);
|
|
@@ -18702,7 +18704,7 @@ var /**
|
|
|
18702
18704
|
var left = startX * pixelsPerUnitReciprocal;
|
|
18703
18705
|
var right = (startX + w) * pixelsPerUnitReciprocal;
|
|
18704
18706
|
var top = (startY + ascent) * pixelsPerUnitReciprocal;
|
|
18705
|
-
var bottom = (startY - descent
|
|
18707
|
+
var bottom = (startY - descent) * pixelsPerUnitReciprocal;
|
|
18706
18708
|
localPositions.set(left, top, right, bottom);
|
|
18707
18709
|
i === firstLine && (maxY = Math.max(maxY, top));
|
|
18708
18710
|
minY = Math.min(minY, bottom);
|