@galacean/engine-ui 0.0.0-experimental-2.0-game.13 → 0.0.0-experimental-2.0-game.15

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
@@ -2943,12 +2943,7 @@
2943
2943
  return engine.VertexMergeBatcher.canBatchText(preElement, curElement);
2944
2944
  };
2945
2945
  _proto._updateBounds = function _updateBounds(worldBounds) {
2946
- var transform = this._transformEntity.transform;
2947
- var _transform_size = transform.size, width = _transform_size.x, height = _transform_size.y;
2948
- var _transform_pivot = transform.pivot, pivotX = _transform_pivot.x, pivotY = _transform_pivot.y;
2949
- worldBounds.min.set(-width * pivotX, -height * pivotY, 0);
2950
- worldBounds.max.set(width * (1 - pivotX), height * (1 - pivotY), 0);
2951
- engine.BoundingBox.transform(worldBounds, this._transformEntity.transform.worldMatrix, worldBounds);
2946
+ engine.BoundingBox.transform(this._localBounds, this._transformEntity.transform.worldMatrix, worldBounds);
2952
2947
  };
2953
2948
  _proto._render = function _render(context) {
2954
2949
  if (this._isTextNoVisible()) {