@galacean/engine-ui 1.4.5 → 1.4.7

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
@@ -867,7 +867,7 @@ UIRenderer = __decorate([
867
867
  };
868
868
  /**
869
869
  * Remove all transitions.
870
- */ _proto.clearShapes = function clearShapes() {
870
+ */ _proto.clearTransitions = function clearTransitions() {
871
871
  var transitions = this._transitions;
872
872
  for(var i = 0, n = transitions.length; i < n; i++){
873
873
  transitions[i]._interactive = null;
@@ -2268,7 +2268,7 @@ __decorate([
2268
2268
  };
2269
2269
  _proto._isTextNoVisible = function _isTextNoVisible() {
2270
2270
  var size = this._transformEntity.transform.size;
2271
- return this._text === "" || this._fontSize === 0 || this.enableWrapping && size.x <= 0 || this.overflowMode === OverflowMode.Truncate && size.y <= 0;
2271
+ return this._text === "" || this._fontSize === 0 || this.enableWrapping && size.x <= 0 || this.overflowMode === OverflowMode.Truncate && size.y <= 0 || !this._getRootCanvas();
2272
2272
  };
2273
2273
  _proto._buildChunk = function _buildChunk(textChunk, count) {
2274
2274
  var _this_color = this.color, r = _this_color.r, g = _this_color.g, b = _this_color.b, a = _this_color.a;