@galacean/engine 2.0.0-alpha.7 → 2.0.0-alpha.9
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 +4 -3
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/bundled.module.js +4 -3
- package/dist/bundled.module.js.map +1 -1
- package/dist/bundled.module.min.js +1 -1
- package/dist/bundled.module.min.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/module.js +1 -1
- package/package.json +5 -5
package/dist/bundled.module.js
CHANGED
|
@@ -22825,7 +22825,7 @@ __decorate$1([
|
|
|
22825
22825
|
this._setDirtyFlagTrue(4 | 8);
|
|
22826
22826
|
};
|
|
22827
22827
|
_proto._isTextNoVisible = function _isTextNoVisible() {
|
|
22828
|
-
return this._text === "" || this._fontSize === 0 || this.enableWrapping && this.width <= 0 || this.overflowMode === OverflowMode.Truncate && this.height <= 0;
|
|
22828
|
+
return !this._font || this._text === "" || this._fontSize === 0 || this.enableWrapping && this.width <= 0 || this.overflowMode === OverflowMode.Truncate && this.height <= 0;
|
|
22829
22829
|
};
|
|
22830
22830
|
_proto._buildChunk = function _buildChunk(textChunk, count) {
|
|
22831
22831
|
var _this_color = this.color, r = _this_color.r, g = _this_color.g, b = _this_color.b, a = _this_color.a;
|
|
@@ -51616,7 +51616,8 @@ var Texture2DContentRestorer = /*#__PURE__*/ function(ContentRestorer) {
|
|
|
51616
51616
|
var scaleFactor = Math.pow(2, pixels[srcIndex + 3] - 128) / 255;
|
|
51617
51617
|
var dstIndex = y * texSize * 4 + x * 4;
|
|
51618
51618
|
for(var c = 0; c < 3; c++){
|
|
51619
|
-
|
|
51619
|
+
// Clamp to half-float max (65504) to prevent Infinity in R16G16B16A16
|
|
51620
|
+
floatView[0] = Math.min(pixels[srcIndex + c] * scaleFactor, 65504);
|
|
51620
51621
|
var f = uint32View[0];
|
|
51621
51622
|
var e = f >> 23 & 0x1ff;
|
|
51622
51623
|
facePixels[dstIndex + c] = baseTable[e] + ((f & 0x007fffff) >> shiftTable[e]);
|
|
@@ -52707,7 +52708,7 @@ EXT_texture_webp = __decorate([
|
|
|
52707
52708
|
], EXT_texture_webp);
|
|
52708
52709
|
|
|
52709
52710
|
//@ts-ignore
|
|
52710
|
-
var version = "2.0.0-alpha.
|
|
52711
|
+
var version = "2.0.0-alpha.9";
|
|
52711
52712
|
console.log("Galacean Engine Version: " + version);
|
|
52712
52713
|
for(var key in CoreObjects){
|
|
52713
52714
|
Loader.registerClass(key, CoreObjects[key]);
|