@galacean/engine-ui 2.0.0-alpha.47 → 2.0.0-alpha.48

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
@@ -109,13 +109,17 @@ var UIGroup = /*#__PURE__*/ function(Component) {
109
109
  }
110
110
  return this._globalInteractive;
111
111
  };
112
- _proto._onEnableInScene = function _onEnableInScene() {
112
+ /**
113
+ * @internal
114
+ */ _proto._onEnableInScene = function _onEnableInScene() {
113
115
  Utils.setRootCanvasDirty(this);
114
116
  Utils.setGroupDirty(this);
115
117
  // @ts-ignore
116
118
  this.entity._dispatchModify(EntityUIModifyFlags.GroupEnableInScene);
117
119
  };
118
- _proto._onDisableInScene = function _onDisableInScene() {
120
+ /**
121
+ * @internal
122
+ */ _proto._onDisableInScene = function _onDisableInScene() {
119
123
  Utils.cleanRootCanvas(this);
120
124
  Utils.cleanGroup(this);
121
125
  var disorderedElements = this._disorderedElements;
@@ -619,6 +623,7 @@ var SortEntry = function SortEntry() {
619
623
  this._updateWorldFlagWithParentRectChange(TransformModifyFlags.WmWpWeWqWsWus);
620
624
  };
621
625
  /**
626
+ * @internal
622
627
  * @inheritdoc
623
628
  */ _proto._onClone = function _onClone(target) {
624
629
  Transform.prototype._onClone.call(this, target);
@@ -1018,17 +1023,25 @@ var UIRenderer = /*#__PURE__*/ function(Renderer) {
1018
1023
  return _this;
1019
1024
  }
1020
1025
  var _proto = UIRenderer.prototype;
1021
- _proto._canBatch = function _canBatch(preElement, curElement) {
1026
+ /**
1027
+ * @internal
1028
+ */ _proto._canBatch = function _canBatch(preElement, curElement) {
1022
1029
  return VertexMergeBatcher.canBatchSprite(preElement, curElement);
1023
1030
  };
1024
- _proto._batch = function _batch(preElement, curElement) {
1031
+ /**
1032
+ * @internal
1033
+ */ _proto._batch = function _batch(preElement, curElement) {
1025
1034
  VertexMergeBatcher.batch(preElement, curElement);
1026
1035
  };
1027
- _proto._updateTransformShaderData = function _updateTransformShaderData(context, onlyMVP) {
1036
+ /**
1037
+ * @internal
1038
+ */ _proto._updateTransformShaderData = function _updateTransformShaderData(context, onlyMVP) {
1028
1039
  // @ts-ignore
1029
1040
  this._updateWorldSpaceTransformShaderData(context, onlyMVP);
1030
1041
  };
1031
- _proto._prepareRender = function _prepareRender(context) {
1042
+ /**
1043
+ * @internal
1044
+ */ _proto._prepareRender = function _prepareRender(context) {
1032
1045
  // Update once per frame per renderer, not influenced by batched
1033
1046
  if (this._renderFrameCount !== this.engine.time.frameCount) {
1034
1047
  this._update(context);
@@ -1037,13 +1050,17 @@ var UIRenderer = /*#__PURE__*/ function(Renderer) {
1037
1050
  // union camera global macro and renderer macro.
1038
1051
  ShaderMacroCollection.unionCollection(context.camera._globalShaderMacro, this.shaderData._macroCollection, this._globalShaderMacro);
1039
1052
  };
1040
- _proto._onEnableInScene = function _onEnableInScene() {
1053
+ /**
1054
+ * @internal
1055
+ */ _proto._onEnableInScene = function _onEnableInScene() {
1041
1056
  this._overrideUpdate && this.scene._componentsManager.addOnUpdateRenderers(this);
1042
1057
  this.entity._updateUIHierarchyVersion(UICanvas._hierarchyCounter);
1043
1058
  Utils.setRootCanvasDirty(this);
1044
1059
  Utils.setGroupDirty(this);
1045
1060
  };
1046
- _proto._onDisableInScene = function _onDisableInScene() {
1061
+ /**
1062
+ * @internal
1063
+ */ _proto._onDisableInScene = function _onDisableInScene() {
1047
1064
  this._overrideUpdate && this.scene._componentsManager.removeOnUpdateRenderers(this);
1048
1065
  this.entity._updateUIHierarchyVersion(UICanvas._hierarchyCounter);
1049
1066
  Utils.cleanRootCanvas(this);
@@ -1309,13 +1326,17 @@ UIRenderer = __decorate([
1309
1326
  this._isGroupDirty && Utils.setGroup(this, Utils.searchGroupInParents(this));
1310
1327
  return this._group;
1311
1328
  };
1312
- _proto._onEnableInScene = function _onEnableInScene() {
1329
+ /**
1330
+ * @internal
1331
+ */ _proto._onEnableInScene = function _onEnableInScene() {
1313
1332
  Script.prototype._onEnableInScene.call(this);
1314
1333
  Utils.setRootCanvasDirty(this);
1315
1334
  Utils.setGroupDirty(this);
1316
1335
  this._updateState(true);
1317
1336
  };
1318
- _proto._onDisableInScene = function _onDisableInScene() {
1337
+ /**
1338
+ * @internal
1339
+ */ _proto._onDisableInScene = function _onDisableInScene() {
1319
1340
  Script.prototype._onDisableInScene.call(this);
1320
1341
  Utils.cleanRootCanvas(this);
1321
1342
  Utils.cleanGroup(this);
@@ -1575,7 +1596,9 @@ var UICanvas = /*#__PURE__*/ function(Component) {
1575
1596
  break;
1576
1597
  }
1577
1598
  };
1578
- _proto._onEnableInScene = function _onEnableInScene() {
1599
+ /**
1600
+ * @internal
1601
+ */ _proto._onEnableInScene = function _onEnableInScene() {
1579
1602
  var entity = this.entity;
1580
1603
  // @ts-ignore
1581
1604
  entity._dispatchModify(4, this);
@@ -1583,11 +1606,15 @@ var UICanvas = /*#__PURE__*/ function(Component) {
1583
1606
  this._setIsRootCanvas(!rootCanvas);
1584
1607
  Utils.setRootCanvas(this, rootCanvas);
1585
1608
  };
1586
- _proto._onDisableInScene = function _onDisableInScene() {
1609
+ /**
1610
+ * @internal
1611
+ */ _proto._onDisableInScene = function _onDisableInScene() {
1587
1612
  this._setIsRootCanvas(false);
1588
1613
  Utils.cleanRootCanvas(this);
1589
1614
  };
1590
- _proto._onDisable = function _onDisable() {
1615
+ /**
1616
+ * @internal
1617
+ */ _proto._onDisable = function _onDisable() {
1591
1618
  this._renderElements.length = 0;
1592
1619
  this._batchedRenderElements.length = 0;
1593
1620
  };
@@ -1612,6 +1639,7 @@ var UICanvas = /*#__PURE__*/ function(Component) {
1612
1639
  }
1613
1640
  };
1614
1641
  /**
1642
+ * @internal
1615
1643
  * @inheritdoc
1616
1644
  */ _proto._onClone = function _onClone(target) {
1617
1645
  target.renderMode = this._renderMode;
@@ -2135,6 +2163,7 @@ var Button = /*#__PURE__*/ function(UIInteractive) {
2135
2163
  }
2136
2164
  };
2137
2165
  /**
2166
+ * @internal
2138
2167
  * @inheritdoc
2139
2168
  */ _proto._onClone = function _onClone(target) {
2140
2169
  UIRenderer1.prototype._onClone.call(this, target);
@@ -2935,6 +2964,7 @@ var TextChunk = function TextChunk() {
2935
2964
  this._target = null;
2936
2965
  };
2937
2966
  /**
2967
+ * @internal
2938
2968
  * @inheritdoc
2939
2969
  */ _proto._onClone = function _onClone(target) {
2940
2970
  target._addStateValuesReferCount(1);
@@ -3482,7 +3512,9 @@ UIPointerEventEmitter = __decorate([
3482
3512
  registerPointerEventEmitter()
3483
3513
  ], UIPointerEventEmitter);
3484
3514
 
3485
- var EngineExtension = /*#__PURE__*/ function() {
3515
+ /**
3516
+ * @internal
3517
+ */ var EngineExtension = /*#__PURE__*/ function() {
3486
3518
  function EngineExtension() {}
3487
3519
  var _proto = EngineExtension.prototype;
3488
3520
  _proto._getUIDefaultMaterial = function _getUIDefaultMaterial() {
@@ -3497,7 +3529,9 @@ var EngineExtension = /*#__PURE__*/ function() {
3497
3529
  };
3498
3530
  return EngineExtension;
3499
3531
  }();
3500
- var EntityExtension = /*#__PURE__*/ function() {
3532
+ /**
3533
+ * @internal
3534
+ */ var EntityExtension = /*#__PURE__*/ function() {
3501
3535
  function EntityExtension() {
3502
3536
  this._uiHierarchyVersion = 0;
3503
3537
  }