@galacean/engine-core 0.0.0-experimental-0.9-plus.4 → 0.0.0-experimental-0.9-plus.6
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/main.js +24 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +24 -1
- package/dist/module.js +24 -1
- package/dist/module.js.map +1 -1
- package/package.json +3 -3
- package/types/2d/sprite/SpriteMask.d.ts +2 -3
- package/types/2d/sprite/SpriteRenderer.d.ts +2 -3
- package/types/2d/text/TextRenderer.d.ts +2 -3
- package/types/Renderer.d.ts +2 -1
- package/types/mesh/MeshRenderer.d.ts +1 -2
package/dist/miniprogram.js
CHANGED
|
@@ -10132,6 +10132,14 @@ exports.Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10132
10132
|
};
|
|
10133
10133
|
/**
|
|
10134
10134
|
* @internal
|
|
10135
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10136
|
+
var materials = this._materials;
|
|
10137
|
+
for(var i = 0, n = materials.length; i < n; i++){
|
|
10138
|
+
target._setMaterial(i, materials[i]);
|
|
10139
|
+
}
|
|
10140
|
+
};
|
|
10141
|
+
/**
|
|
10142
|
+
* @internal
|
|
10135
10143
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
10136
10144
|
this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
10137
10145
|
this.shaderData._addRefCount(-1);
|
|
@@ -10310,7 +10318,7 @@ __decorate([
|
|
|
10310
10318
|
ignoreClone
|
|
10311
10319
|
], exports.Renderer.prototype, "_overrideUpdate", void 0);
|
|
10312
10320
|
__decorate([
|
|
10313
|
-
|
|
10321
|
+
ignoreClone
|
|
10314
10322
|
], exports.Renderer.prototype, "_materials", void 0);
|
|
10315
10323
|
__decorate([
|
|
10316
10324
|
ignoreClone
|
|
@@ -10532,6 +10540,7 @@ SimpleSpriteAssembler = __decorate([
|
|
|
10532
10540
|
/**
|
|
10533
10541
|
* @internal
|
|
10534
10542
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10543
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
10535
10544
|
target.sprite = this._sprite;
|
|
10536
10545
|
};
|
|
10537
10546
|
/**
|
|
@@ -12968,12 +12977,14 @@ var VertexChangedFlags;
|
|
|
12968
12977
|
var mesh = this._mesh;
|
|
12969
12978
|
if (mesh && !mesh.destroyed) {
|
|
12970
12979
|
mesh._addRefCount(-1);
|
|
12980
|
+
mesh._updateFlagManager.removeListener(this._onMeshChanged);
|
|
12971
12981
|
this._mesh = null;
|
|
12972
12982
|
}
|
|
12973
12983
|
};
|
|
12974
12984
|
/**
|
|
12975
12985
|
* @internal
|
|
12976
12986
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
12987
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
12977
12988
|
target.mesh = this._mesh;
|
|
12978
12989
|
};
|
|
12979
12990
|
/**
|
|
@@ -13266,6 +13277,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13266
13277
|
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13267
13278
|
this._jointTexture = new Texture2D(engine, 4, jointCount, exports.TextureFormat.R32G32B32A32, false);
|
|
13268
13279
|
this._jointTexture.filterMode = exports.TextureFilterMode.Point;
|
|
13280
|
+
this._jointTexture.isGCIgnored = true;
|
|
13269
13281
|
}
|
|
13270
13282
|
shaderData.disableMacro("O3_JOINTS_NUM");
|
|
13271
13283
|
shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
|
|
@@ -13299,6 +13311,15 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13299
13311
|
};
|
|
13300
13312
|
/**
|
|
13301
13313
|
* @internal
|
|
13314
|
+
* @override
|
|
13315
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
13316
|
+
var _this_rootBone, _this__jointTexture;
|
|
13317
|
+
MeshRenderer.prototype._onDestroy.call(this);
|
|
13318
|
+
(_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
13319
|
+
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13320
|
+
};
|
|
13321
|
+
/**
|
|
13322
|
+
* @internal
|
|
13302
13323
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
13303
13324
|
MeshRenderer.prototype._cloneTo.call(this, target);
|
|
13304
13325
|
this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
|
|
@@ -19925,6 +19946,7 @@ SlicedSpriteAssembler = __decorate([
|
|
|
19925
19946
|
/**
|
|
19926
19947
|
* @internal
|
|
19927
19948
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19949
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
19928
19950
|
target.sprite = this._sprite;
|
|
19929
19951
|
target.drawMode = this._drawMode;
|
|
19930
19952
|
};
|
|
@@ -20678,6 +20700,7 @@ var /**
|
|
|
20678
20700
|
/**
|
|
20679
20701
|
* @internal
|
|
20680
20702
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20703
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
20681
20704
|
target.font = this._font;
|
|
20682
20705
|
target._subFont = this._subFont;
|
|
20683
20706
|
};
|
package/dist/module.js
CHANGED
|
@@ -10127,6 +10127,14 @@ var Renderer = (_Renderer = /*#__PURE__*/ function(Component) {
|
|
|
10127
10127
|
};
|
|
10128
10128
|
/**
|
|
10129
10129
|
* @internal
|
|
10130
|
+
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10131
|
+
var materials = this._materials;
|
|
10132
|
+
for(var i = 0, n = materials.length; i < n; i++){
|
|
10133
|
+
target._setMaterial(i, materials[i]);
|
|
10134
|
+
}
|
|
10135
|
+
};
|
|
10136
|
+
/**
|
|
10137
|
+
* @internal
|
|
10130
10138
|
*/ _proto._onDestroy = function _onDestroy() {
|
|
10131
10139
|
this.entity.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
10132
10140
|
this.shaderData._addRefCount(-1);
|
|
@@ -10305,7 +10313,7 @@ __decorate([
|
|
|
10305
10313
|
ignoreClone
|
|
10306
10314
|
], Renderer.prototype, "_overrideUpdate", void 0);
|
|
10307
10315
|
__decorate([
|
|
10308
|
-
|
|
10316
|
+
ignoreClone
|
|
10309
10317
|
], Renderer.prototype, "_materials", void 0);
|
|
10310
10318
|
__decorate([
|
|
10311
10319
|
ignoreClone
|
|
@@ -10527,6 +10535,7 @@ SimpleSpriteAssembler = __decorate([
|
|
|
10527
10535
|
/**
|
|
10528
10536
|
* @internal
|
|
10529
10537
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
10538
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
10530
10539
|
target.sprite = this._sprite;
|
|
10531
10540
|
};
|
|
10532
10541
|
/**
|
|
@@ -12963,12 +12972,14 @@ var VertexChangedFlags;
|
|
|
12963
12972
|
var mesh = this._mesh;
|
|
12964
12973
|
if (mesh && !mesh.destroyed) {
|
|
12965
12974
|
mesh._addRefCount(-1);
|
|
12975
|
+
mesh._updateFlagManager.removeListener(this._onMeshChanged);
|
|
12966
12976
|
this._mesh = null;
|
|
12967
12977
|
}
|
|
12968
12978
|
};
|
|
12969
12979
|
/**
|
|
12970
12980
|
* @internal
|
|
12971
12981
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
12982
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
12972
12983
|
target.mesh = this._mesh;
|
|
12973
12984
|
};
|
|
12974
12985
|
/**
|
|
@@ -13261,6 +13272,7 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13261
13272
|
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13262
13273
|
this._jointTexture = new Texture2D(engine, 4, jointCount, TextureFormat.R32G32B32A32, false);
|
|
13263
13274
|
this._jointTexture.filterMode = TextureFilterMode.Point;
|
|
13275
|
+
this._jointTexture.isGCIgnored = true;
|
|
13264
13276
|
}
|
|
13265
13277
|
shaderData.disableMacro("O3_JOINTS_NUM");
|
|
13266
13278
|
shaderData.enableMacro("O3_USE_JOINT_TEXTURE");
|
|
@@ -13294,6 +13306,15 @@ var rePropName = RegExp(// Match anything that isn't a dot or bracket.
|
|
|
13294
13306
|
};
|
|
13295
13307
|
/**
|
|
13296
13308
|
* @internal
|
|
13309
|
+
* @override
|
|
13310
|
+
*/ _proto._onDestroy = function _onDestroy() {
|
|
13311
|
+
var _this_rootBone, _this__jointTexture;
|
|
13312
|
+
MeshRenderer.prototype._onDestroy.call(this);
|
|
13313
|
+
(_this_rootBone = this.rootBone) == null ? void 0 : _this_rootBone.transform._updateFlagManager.removeListener(this._onTransformChanged);
|
|
13314
|
+
(_this__jointTexture = this._jointTexture) == null ? void 0 : _this__jointTexture.destroy();
|
|
13315
|
+
};
|
|
13316
|
+
/**
|
|
13317
|
+
* @internal
|
|
13297
13318
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
13298
13319
|
MeshRenderer.prototype._cloneTo.call(this, target);
|
|
13299
13320
|
this._blendShapeWeights && (target._blendShapeWeights = this._blendShapeWeights.slice());
|
|
@@ -19920,6 +19941,7 @@ SlicedSpriteAssembler = __decorate([
|
|
|
19920
19941
|
/**
|
|
19921
19942
|
* @internal
|
|
19922
19943
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
19944
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
19923
19945
|
target.sprite = this._sprite;
|
|
19924
19946
|
target.drawMode = this._drawMode;
|
|
19925
19947
|
};
|
|
@@ -20673,6 +20695,7 @@ var /**
|
|
|
20673
20695
|
/**
|
|
20674
20696
|
* @internal
|
|
20675
20697
|
*/ _proto._cloneTo = function _cloneTo(target) {
|
|
20698
|
+
Renderer.prototype._cloneTo.call(this, target);
|
|
20676
20699
|
target.font = this._font;
|
|
20677
20700
|
target._subFont = this._subFont;
|
|
20678
20701
|
};
|