@galacean/engine-ui 1.5.12 → 1.5.14

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/module.js CHANGED
@@ -2365,6 +2365,7 @@ __decorate([
2365
2365
  };
2366
2366
  _proto._buildChunk = function _buildChunk(textChunk, count) {
2367
2367
  var _this_color = this.color, r = _this_color.r, g = _this_color.g, b = _this_color.b, a = _this_color.a;
2368
+ var finalAlpha = a * this._getGlobalAlpha();
2368
2369
  var tempIndices = CharRenderInfo.triangles;
2369
2370
  var tempIndicesLength = tempIndices.length;
2370
2371
  var subChunk = textChunk.subChunk = this._getChunkManager().allocateSubChunk(count * 4);
@@ -2385,7 +2386,7 @@ __decorate([
2385
2386
  vertices[vo + 2] = r;
2386
2387
  vertices[vo + 3] = g;
2387
2388
  vertices[vo + 4] = b;
2388
- vertices[vo + 5] = a;
2389
+ vertices[vo + 5] = finalAlpha;
2389
2390
  }
2390
2391
  }
2391
2392
  return subChunk;