@galacean/engine-ui 2.0.0-alpha.47 → 2.0.0-alpha.49
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 +49 -15
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +49 -15
- package/dist/main.js.map +1 -1
- package/dist/module.js +49 -15
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/component/UICanvas.d.ts +10 -0
- package/types/component/UIGroup.d.ts +6 -0
- package/types/component/UIRenderer.d.ts +18 -0
- package/types/component/UITransform.d.ts +1 -0
- package/types/component/advanced/Image.d.ts +1 -0
- package/types/component/interactive/UIInteractive.d.ts +6 -0
- package/types/component/interactive/transition/Transition.d.ts +1 -0
- package/types/index.d.ts +10 -0
package/dist/browser.js
CHANGED
|
@@ -113,13 +113,17 @@
|
|
|
113
113
|
}
|
|
114
114
|
return this._globalInteractive;
|
|
115
115
|
};
|
|
116
|
-
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/ _proto._onEnableInScene = function _onEnableInScene() {
|
|
117
119
|
Utils.setRootCanvasDirty(this);
|
|
118
120
|
Utils.setGroupDirty(this);
|
|
119
121
|
// @ts-ignore
|
|
120
122
|
this.entity._dispatchModify(EntityUIModifyFlags.GroupEnableInScene);
|
|
121
123
|
};
|
|
122
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
*/ _proto._onDisableInScene = function _onDisableInScene() {
|
|
123
127
|
Utils.cleanRootCanvas(this);
|
|
124
128
|
Utils.cleanGroup(this);
|
|
125
129
|
var disorderedElements = this._disorderedElements;
|
|
@@ -623,6 +627,7 @@
|
|
|
623
627
|
this._updateWorldFlagWithParentRectChange(engine.TransformModifyFlags.WmWpWeWqWsWus);
|
|
624
628
|
};
|
|
625
629
|
/**
|
|
630
|
+
* @internal
|
|
626
631
|
* @inheritdoc
|
|
627
632
|
*/ _proto._onClone = function _onClone(target) {
|
|
628
633
|
Transform.prototype._onClone.call(this, target);
|
|
@@ -1022,17 +1027,25 @@
|
|
|
1022
1027
|
return _this;
|
|
1023
1028
|
}
|
|
1024
1029
|
var _proto = UIRenderer.prototype;
|
|
1025
|
-
|
|
1030
|
+
/**
|
|
1031
|
+
* @internal
|
|
1032
|
+
*/ _proto._canBatch = function _canBatch(preElement, curElement) {
|
|
1026
1033
|
return engine.VertexMergeBatcher.canBatchSprite(preElement, curElement);
|
|
1027
1034
|
};
|
|
1028
|
-
|
|
1035
|
+
/**
|
|
1036
|
+
* @internal
|
|
1037
|
+
*/ _proto._batch = function _batch(preElement, curElement) {
|
|
1029
1038
|
engine.VertexMergeBatcher.batch(preElement, curElement);
|
|
1030
1039
|
};
|
|
1031
|
-
|
|
1040
|
+
/**
|
|
1041
|
+
* @internal
|
|
1042
|
+
*/ _proto._updateTransformShaderData = function _updateTransformShaderData(context, onlyMVP) {
|
|
1032
1043
|
// @ts-ignore
|
|
1033
1044
|
this._updateWorldSpaceTransformShaderData(context, onlyMVP);
|
|
1034
1045
|
};
|
|
1035
|
-
|
|
1046
|
+
/**
|
|
1047
|
+
* @internal
|
|
1048
|
+
*/ _proto._prepareRender = function _prepareRender(context) {
|
|
1036
1049
|
// Update once per frame per renderer, not influenced by batched
|
|
1037
1050
|
if (this._renderFrameCount !== this.engine.time.frameCount) {
|
|
1038
1051
|
this._update(context);
|
|
@@ -1041,13 +1054,17 @@
|
|
|
1041
1054
|
// union camera global macro and renderer macro.
|
|
1042
1055
|
engine.ShaderMacroCollection.unionCollection(context.camera._globalShaderMacro, this.shaderData._macroCollection, this._globalShaderMacro);
|
|
1043
1056
|
};
|
|
1044
|
-
|
|
1057
|
+
/**
|
|
1058
|
+
* @internal
|
|
1059
|
+
*/ _proto._onEnableInScene = function _onEnableInScene() {
|
|
1045
1060
|
this._overrideUpdate && this.scene._componentsManager.addOnUpdateRenderers(this);
|
|
1046
1061
|
this.entity._updateUIHierarchyVersion(exports.UICanvas._hierarchyCounter);
|
|
1047
1062
|
Utils.setRootCanvasDirty(this);
|
|
1048
1063
|
Utils.setGroupDirty(this);
|
|
1049
1064
|
};
|
|
1050
|
-
|
|
1065
|
+
/**
|
|
1066
|
+
* @internal
|
|
1067
|
+
*/ _proto._onDisableInScene = function _onDisableInScene() {
|
|
1051
1068
|
this._overrideUpdate && this.scene._componentsManager.removeOnUpdateRenderers(this);
|
|
1052
1069
|
this.entity._updateUIHierarchyVersion(exports.UICanvas._hierarchyCounter);
|
|
1053
1070
|
Utils.cleanRootCanvas(this);
|
|
@@ -1313,13 +1330,17 @@
|
|
|
1313
1330
|
this._isGroupDirty && Utils.setGroup(this, Utils.searchGroupInParents(this));
|
|
1314
1331
|
return this._group;
|
|
1315
1332
|
};
|
|
1316
|
-
|
|
1333
|
+
/**
|
|
1334
|
+
* @internal
|
|
1335
|
+
*/ _proto._onEnableInScene = function _onEnableInScene() {
|
|
1317
1336
|
Script.prototype._onEnableInScene.call(this);
|
|
1318
1337
|
Utils.setRootCanvasDirty(this);
|
|
1319
1338
|
Utils.setGroupDirty(this);
|
|
1320
1339
|
this._updateState(true);
|
|
1321
1340
|
};
|
|
1322
|
-
|
|
1341
|
+
/**
|
|
1342
|
+
* @internal
|
|
1343
|
+
*/ _proto._onDisableInScene = function _onDisableInScene() {
|
|
1323
1344
|
Script.prototype._onDisableInScene.call(this);
|
|
1324
1345
|
Utils.cleanRootCanvas(this);
|
|
1325
1346
|
Utils.cleanGroup(this);
|
|
@@ -1579,7 +1600,9 @@
|
|
|
1579
1600
|
break;
|
|
1580
1601
|
}
|
|
1581
1602
|
};
|
|
1582
|
-
|
|
1603
|
+
/**
|
|
1604
|
+
* @internal
|
|
1605
|
+
*/ _proto._onEnableInScene = function _onEnableInScene() {
|
|
1583
1606
|
var entity = this.entity;
|
|
1584
1607
|
// @ts-ignore
|
|
1585
1608
|
entity._dispatchModify(4, this);
|
|
@@ -1587,11 +1610,15 @@
|
|
|
1587
1610
|
this._setIsRootCanvas(!rootCanvas);
|
|
1588
1611
|
Utils.setRootCanvas(this, rootCanvas);
|
|
1589
1612
|
};
|
|
1590
|
-
|
|
1613
|
+
/**
|
|
1614
|
+
* @internal
|
|
1615
|
+
*/ _proto._onDisableInScene = function _onDisableInScene() {
|
|
1591
1616
|
this._setIsRootCanvas(false);
|
|
1592
1617
|
Utils.cleanRootCanvas(this);
|
|
1593
1618
|
};
|
|
1594
|
-
|
|
1619
|
+
/**
|
|
1620
|
+
* @internal
|
|
1621
|
+
*/ _proto._onDisable = function _onDisable() {
|
|
1595
1622
|
this._renderElements.length = 0;
|
|
1596
1623
|
this._batchedRenderElements.length = 0;
|
|
1597
1624
|
};
|
|
@@ -1616,6 +1643,7 @@
|
|
|
1616
1643
|
}
|
|
1617
1644
|
};
|
|
1618
1645
|
/**
|
|
1646
|
+
* @internal
|
|
1619
1647
|
* @inheritdoc
|
|
1620
1648
|
*/ _proto._onClone = function _onClone(target) {
|
|
1621
1649
|
target.renderMode = this._renderMode;
|
|
@@ -2139,6 +2167,7 @@
|
|
|
2139
2167
|
}
|
|
2140
2168
|
};
|
|
2141
2169
|
/**
|
|
2170
|
+
* @internal
|
|
2142
2171
|
* @inheritdoc
|
|
2143
2172
|
*/ _proto._onClone = function _onClone(target) {
|
|
2144
2173
|
UIRenderer1.prototype._onClone.call(this, target);
|
|
@@ -2939,6 +2968,7 @@
|
|
|
2939
2968
|
this._target = null;
|
|
2940
2969
|
};
|
|
2941
2970
|
/**
|
|
2971
|
+
* @internal
|
|
2942
2972
|
* @inheritdoc
|
|
2943
2973
|
*/ _proto._onClone = function _onClone(target) {
|
|
2944
2974
|
target._addStateValuesReferCount(1);
|
|
@@ -3486,7 +3516,9 @@
|
|
|
3486
3516
|
engine.registerPointerEventEmitter()
|
|
3487
3517
|
], exports.UIPointerEventEmitter);
|
|
3488
3518
|
|
|
3489
|
-
|
|
3519
|
+
/**
|
|
3520
|
+
* @internal
|
|
3521
|
+
*/ var EngineExtension = /*#__PURE__*/ function() {
|
|
3490
3522
|
function EngineExtension() {}
|
|
3491
3523
|
var _proto = EngineExtension.prototype;
|
|
3492
3524
|
_proto._getUIDefaultMaterial = function _getUIDefaultMaterial() {
|
|
@@ -3501,7 +3533,9 @@
|
|
|
3501
3533
|
};
|
|
3502
3534
|
return EngineExtension;
|
|
3503
3535
|
}();
|
|
3504
|
-
|
|
3536
|
+
/**
|
|
3537
|
+
* @internal
|
|
3538
|
+
*/ var EntityExtension = /*#__PURE__*/ function() {
|
|
3505
3539
|
function EntityExtension() {
|
|
3506
3540
|
this._uiHierarchyVersion = 0;
|
|
3507
3541
|
}
|