@galacean/engine-ui 2.0.0-alpha.15 → 2.0.0-alpha.16
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 +9 -63
- package/dist/browser.js.map +1 -1
- package/dist/browser.min.js +1 -1
- package/dist/browser.min.js.map +1 -1
- package/dist/main.js +9 -63
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -64
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/component/UITransform.d.ts +2 -2
- package/types/component/advanced/Button.d.ts +1 -2
- package/types/component/advanced/Text.d.ts +1 -1
- package/types/component/interactive/UIInteractive.d.ts +1 -2
package/dist/browser.js
CHANGED
|
@@ -237,12 +237,6 @@
|
|
|
237
237
|
__decorate([
|
|
238
238
|
engine.ignoreClone
|
|
239
239
|
], UIGroup.prototype, "_indexInRootCanvas", void 0);
|
|
240
|
-
__decorate([
|
|
241
|
-
engine.ignoreClone
|
|
242
|
-
], UIGroup.prototype, "_group", void 0);
|
|
243
|
-
__decorate([
|
|
244
|
-
engine.ignoreClone
|
|
245
|
-
], UIGroup.prototype, "_rootCanvas", void 0);
|
|
246
240
|
__decorate([
|
|
247
241
|
engine.ignoreClone
|
|
248
242
|
], UIGroup.prototype, "_disorderedElements", void 0);
|
|
@@ -498,9 +492,9 @@
|
|
|
498
492
|
this._updateWorldFlagWithParentRectChange(engine.TransformModifyFlags.WmWpWeWqWsWus);
|
|
499
493
|
};
|
|
500
494
|
// @ts-ignore
|
|
501
|
-
_proto._cloneTo = function _cloneTo(target
|
|
495
|
+
_proto._cloneTo = function _cloneTo(target) {
|
|
502
496
|
// @ts-ignore
|
|
503
|
-
Transform.prototype._cloneTo.call(this, target
|
|
497
|
+
Transform.prototype._cloneTo.call(this, target);
|
|
504
498
|
var size = target._size, pivot = target._pivot;
|
|
505
499
|
// @ts-ignore
|
|
506
500
|
size._onValueChanged = pivot._onValueChanged = null;
|
|
@@ -1077,9 +1071,6 @@
|
|
|
1077
1071
|
__decorate([
|
|
1078
1072
|
engine.deepClone
|
|
1079
1073
|
], exports.UIRenderer.prototype, "raycastPadding", void 0);
|
|
1080
|
-
__decorate([
|
|
1081
|
-
engine.ignoreClone
|
|
1082
|
-
], exports.UIRenderer.prototype, "_rootCanvas", void 0);
|
|
1083
1074
|
__decorate([
|
|
1084
1075
|
engine.ignoreClone
|
|
1085
1076
|
], exports.UIRenderer.prototype, "_indexInRootCanvas", void 0);
|
|
@@ -1089,9 +1080,6 @@
|
|
|
1089
1080
|
__decorate([
|
|
1090
1081
|
engine.ignoreClone
|
|
1091
1082
|
], exports.UIRenderer.prototype, "_rootCanvasListeningEntities", void 0);
|
|
1092
|
-
__decorate([
|
|
1093
|
-
engine.ignoreClone
|
|
1094
|
-
], exports.UIRenderer.prototype, "_group", void 0);
|
|
1095
1083
|
__decorate([
|
|
1096
1084
|
engine.ignoreClone
|
|
1097
1085
|
], exports.UIRenderer.prototype, "_indexInGroup", void 0);
|
|
@@ -1208,23 +1196,6 @@
|
|
|
1208
1196
|
transitions[i].destroy();
|
|
1209
1197
|
}
|
|
1210
1198
|
};
|
|
1211
|
-
// @ts-ignore
|
|
1212
|
-
_proto._cloneTo = function _cloneTo(target, srcRoot, targetRoot) {
|
|
1213
|
-
var transitions = this._transitions;
|
|
1214
|
-
for(var i = 0, n = transitions.length; i < n; i++){
|
|
1215
|
-
var srcTransition = transitions[i];
|
|
1216
|
-
var dstTransition = new transitions[i].constructor();
|
|
1217
|
-
dstTransition.normal = srcTransition.normal;
|
|
1218
|
-
dstTransition.pressed = srcTransition.pressed;
|
|
1219
|
-
dstTransition.hover = srcTransition.hover;
|
|
1220
|
-
dstTransition.disabled = srcTransition.disabled;
|
|
1221
|
-
var transitionTarget = srcTransition.target;
|
|
1222
|
-
if (transitionTarget) {
|
|
1223
|
-
dstTransition.target = engine.CloneUtils.remapComponent(srcRoot, targetRoot, transitionTarget);
|
|
1224
|
-
}
|
|
1225
|
-
target.addTransition(dstTransition);
|
|
1226
|
-
}
|
|
1227
|
-
};
|
|
1228
1199
|
/**
|
|
1229
1200
|
* @internal
|
|
1230
1201
|
*/ _proto._getRootCanvas = function _getRootCanvas() {
|
|
@@ -1335,9 +1306,6 @@
|
|
|
1335
1306
|
]);
|
|
1336
1307
|
return UIInteractive;
|
|
1337
1308
|
}(engine.Script);
|
|
1338
|
-
__decorate([
|
|
1339
|
-
engine.ignoreClone
|
|
1340
|
-
], UIInteractive.prototype, "_rootCanvas", void 0);
|
|
1341
1309
|
__decorate([
|
|
1342
1310
|
engine.ignoreClone
|
|
1343
1311
|
], UIInteractive.prototype, "_indexInRootCanvas", void 0);
|
|
@@ -1347,9 +1315,6 @@
|
|
|
1347
1315
|
__decorate([
|
|
1348
1316
|
engine.ignoreClone
|
|
1349
1317
|
], UIInteractive.prototype, "_rootCanvasListeningEntities", void 0);
|
|
1350
|
-
__decorate([
|
|
1351
|
-
engine.ignoreClone
|
|
1352
|
-
], UIInteractive.prototype, "_group", void 0);
|
|
1353
1318
|
__decorate([
|
|
1354
1319
|
engine.ignoreClone
|
|
1355
1320
|
], UIInteractive.prototype, "_indexInGroup", void 0);
|
|
@@ -1366,7 +1331,7 @@
|
|
|
1366
1331
|
engine.ignoreClone
|
|
1367
1332
|
], UIInteractive.prototype, "_globalInteractiveDirty", void 0);
|
|
1368
1333
|
__decorate([
|
|
1369
|
-
engine.
|
|
1334
|
+
engine.deepClone
|
|
1370
1335
|
], UIInteractive.prototype, "_transitions", void 0);
|
|
1371
1336
|
__decorate([
|
|
1372
1337
|
engine.assignmentClone
|
|
@@ -1550,12 +1515,8 @@
|
|
|
1550
1515
|
};
|
|
1551
1516
|
/**
|
|
1552
1517
|
* @internal
|
|
1553
|
-
*/ _proto._cloneTo = function _cloneTo(target
|
|
1518
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
1554
1519
|
target.renderMode = this._renderMode;
|
|
1555
|
-
var camera = this._camera;
|
|
1556
|
-
if (camera) {
|
|
1557
|
-
target.camera = engine.CloneUtils.remapComponent(srcRoot, targetRoot, camera);
|
|
1558
|
-
}
|
|
1559
1520
|
};
|
|
1560
1521
|
_proto._getRenderers = function _getRenderers() {
|
|
1561
1522
|
var _this = this, renderers = _this._orderedRenderers, entity = _this.entity;
|
|
@@ -1958,9 +1919,6 @@
|
|
|
1958
1919
|
__decorate([
|
|
1959
1920
|
engine.ignoreClone
|
|
1960
1921
|
], exports.UICanvas.prototype, "_canvasIndex", void 0);
|
|
1961
|
-
__decorate([
|
|
1962
|
-
engine.ignoreClone
|
|
1963
|
-
], exports.UICanvas.prototype, "_rootCanvas", void 0);
|
|
1964
1922
|
__decorate([
|
|
1965
1923
|
engine.ignoreClone
|
|
1966
1924
|
], exports.UICanvas.prototype, "_indexInRootCanvas", void 0);
|
|
@@ -1991,12 +1949,6 @@
|
|
|
1991
1949
|
__decorate([
|
|
1992
1950
|
engine.ignoreClone
|
|
1993
1951
|
], exports.UICanvas.prototype, "_renderMode", void 0);
|
|
1994
|
-
__decorate([
|
|
1995
|
-
engine.ignoreClone
|
|
1996
|
-
], exports.UICanvas.prototype, "_camera", void 0);
|
|
1997
|
-
__decorate([
|
|
1998
|
-
engine.ignoreClone
|
|
1999
|
-
], exports.UICanvas.prototype, "_cameraObserver", void 0);
|
|
2000
1952
|
__decorate([
|
|
2001
1953
|
engine.assignmentClone
|
|
2002
1954
|
], exports.UICanvas.prototype, "_resolutionAdaptationMode", void 0);
|
|
@@ -2069,12 +2021,6 @@
|
|
|
2069
2021
|
UIInteractive.prototype.onDestroy.call(this);
|
|
2070
2022
|
this.onClick.removeAll();
|
|
2071
2023
|
};
|
|
2072
|
-
// @ts-ignore
|
|
2073
|
-
_proto._cloneTo = function _cloneTo(target, srcRoot, targetRoot) {
|
|
2074
|
-
UIInteractive.prototype._cloneTo.call(this, target, srcRoot, targetRoot);
|
|
2075
|
-
// @ts-ignore
|
|
2076
|
-
this.onClick._cloneTo(target.onClick, srcRoot, targetRoot);
|
|
2077
|
-
};
|
|
2078
2024
|
/**
|
|
2079
2025
|
* Add a listening function for click.
|
|
2080
2026
|
* @deprecated Use `onClick.on(listener, context)` instead.
|
|
@@ -2090,7 +2036,7 @@
|
|
|
2090
2036
|
return Button;
|
|
2091
2037
|
}(UIInteractive);
|
|
2092
2038
|
__decorate([
|
|
2093
|
-
engine.
|
|
2039
|
+
engine.deepClone
|
|
2094
2040
|
], Button.prototype, "onClick", void 0);
|
|
2095
2041
|
|
|
2096
2042
|
/**
|
|
@@ -2121,9 +2067,9 @@
|
|
|
2121
2067
|
};
|
|
2122
2068
|
/**
|
|
2123
2069
|
* @internal
|
|
2124
|
-
*/ _proto._cloneTo = function _cloneTo(target
|
|
2070
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
2125
2071
|
// @ts-ignore
|
|
2126
|
-
UIRenderer1.prototype._cloneTo.call(this, target
|
|
2072
|
+
UIRenderer1.prototype._cloneTo.call(this, target);
|
|
2127
2073
|
target.sprite = this._sprite;
|
|
2128
2074
|
target.drawMode = this._drawMode;
|
|
2129
2075
|
};
|
|
@@ -2384,9 +2330,9 @@
|
|
|
2384
2330
|
this._subFont && (this._subFont = null);
|
|
2385
2331
|
};
|
|
2386
2332
|
// @ts-ignore
|
|
2387
|
-
_proto._cloneTo = function _cloneTo(target
|
|
2333
|
+
_proto._cloneTo = function _cloneTo(target) {
|
|
2388
2334
|
// @ts-ignore
|
|
2389
|
-
UIRenderer1.prototype._cloneTo.call(this, target
|
|
2335
|
+
UIRenderer1.prototype._cloneTo.call(this, target);
|
|
2390
2336
|
target.font = this._font;
|
|
2391
2337
|
target._subFont = this._subFont;
|
|
2392
2338
|
};
|