@galacean/effects 1.1.0-alpha.3 → 1.1.1
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/index.js +13 -14
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +13 -14
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +12 -13
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +12 -13
- package/dist/weapp.mjs.map +1 -1
- package/package.json +3 -3
package/dist/weapp.mjs
CHANGED
|
@@ -14925,6 +14925,11 @@ var VFXItem = /** @class */ (function () {
|
|
|
14925
14925
|
}
|
|
14926
14926
|
else if (this.endBehavior === END_BEHAVIOR_DESTROY$1) {
|
|
14927
14927
|
this._contentVisible = false;
|
|
14928
|
+
// 预合成配置 reusable 且销毁时, 需要隐藏其中的元素
|
|
14929
|
+
if (this.type === ItemType$1.composition) {
|
|
14930
|
+
this.handleVisibleChanged(false);
|
|
14931
|
+
this.onItemUpdate(0, lifetime);
|
|
14932
|
+
}
|
|
14928
14933
|
}
|
|
14929
14934
|
lifetime = Math.min(lifetime, 1);
|
|
14930
14935
|
}
|
|
@@ -15170,6 +15175,7 @@ var VFXItem = /** @class */ (function () {
|
|
|
15170
15175
|
this.reset();
|
|
15171
15176
|
this.onUpdate = function () { return -1; };
|
|
15172
15177
|
this.composition = null;
|
|
15178
|
+
this._contentVisible = false;
|
|
15173
15179
|
this.transform.setValid(false);
|
|
15174
15180
|
}
|
|
15175
15181
|
};
|
|
@@ -24140,13 +24146,6 @@ var ParticleVFXItem = /** @class */ (function (_super) {
|
|
|
24140
24146
|
enumerable: false,
|
|
24141
24147
|
configurable: true
|
|
24142
24148
|
});
|
|
24143
|
-
Object.defineProperty(ParticleVFXItem.prototype, "contentVisible", {
|
|
24144
|
-
get: function () {
|
|
24145
|
-
return !this.destroyed;
|
|
24146
|
-
},
|
|
24147
|
-
enumerable: false,
|
|
24148
|
-
configurable: true
|
|
24149
|
-
});
|
|
24150
24149
|
ParticleVFXItem.prototype.onConstructed = function (props) {
|
|
24151
24150
|
this.particle = props.content;
|
|
24152
24151
|
};
|
|
@@ -24164,7 +24163,7 @@ var ParticleVFXItem = /** @class */ (function (_super) {
|
|
|
24164
24163
|
ParticleVFXItem.prototype.onItemUpdate = function (dt, lifetime) {
|
|
24165
24164
|
var _a;
|
|
24166
24165
|
if (this.content) {
|
|
24167
|
-
var hide = !this.
|
|
24166
|
+
var hide = !this.contentVisible;
|
|
24168
24167
|
var parentItem = this.parentId && ((_a = this.composition) === null || _a === void 0 ? void 0 : _a.getItemByID(this.parentId));
|
|
24169
24168
|
if (!hide && parentItem) {
|
|
24170
24169
|
var parentData = parentItem.getRenderData();
|
|
@@ -26226,9 +26225,9 @@ var TextVFXItem = /** @class */ (function (_super) {
|
|
|
26226
26225
|
this.textContext = props.content;
|
|
26227
26226
|
};
|
|
26228
26227
|
TextVFXItem.prototype.onLifetimeBegin = function (composition, content) {
|
|
26229
|
-
var _a;
|
|
26228
|
+
var _a, _b;
|
|
26230
26229
|
content.active = true;
|
|
26231
|
-
(_a = this.content) === null || _a === void 0 ? void 0 : _a.mesh.setItems([this.content]);
|
|
26230
|
+
(_b = (_a = this.content) === null || _a === void 0 ? void 0 : _a.mesh) === null || _b === void 0 ? void 0 : _b.setItems([this.content]);
|
|
26232
26231
|
this.content.updateTexture();
|
|
26233
26232
|
};
|
|
26234
26233
|
TextVFXItem.prototype.onItemRemoved = function (composition, content) {
|
|
@@ -29937,7 +29936,7 @@ var CompVFXItem = /** @class */ (function (_super) {
|
|
|
29937
29936
|
throw new Error("\u5F15\u7528\u7684Id: ".concat(refId, " \u7684\u9884\u5408\u6210\u4E0D\u5B58\u5728"));
|
|
29938
29937
|
}
|
|
29939
29938
|
props.content = itemProps.content;
|
|
29940
|
-
item = new CompVFXItem(__assign$1(__assign$1({}, props), { refId: refId, id: itemProps.id, name: itemProps.name, duration: itemProps.duration, endBehavior: itemProps.endBehavior, parentId: itemProps.parentId, transform: itemProps.transform }), this.composition);
|
|
29939
|
+
item = new CompVFXItem(__assign$1(__assign$1({}, props), { refId: refId, delay: itemProps.delay, id: itemProps.id, name: itemProps.name, duration: itemProps.duration, endBehavior: itemProps.endBehavior, parentId: itemProps.parentId, transform: itemProps.transform }), this.composition);
|
|
29941
29940
|
item.contentProps = itemProps.content;
|
|
29942
29941
|
item.transform.parentTransform = this.transform;
|
|
29943
29942
|
this.composition.refContent.push(item);
|
|
@@ -36348,9 +36347,9 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
36348
36347
|
Engine.create = function (gl) {
|
|
36349
36348
|
return new GLEngine(gl);
|
|
36350
36349
|
};
|
|
36351
|
-
var version = "1.1.
|
|
36350
|
+
var version = "1.1.1";
|
|
36352
36351
|
console.info({
|
|
36353
|
-
content: '[Galacean Effects Player] version: ' + "1.1.
|
|
36352
|
+
content: '[Galacean Effects Player] version: ' + "1.1.1",
|
|
36354
36353
|
type: LOG_TYPE,
|
|
36355
36354
|
});
|
|
36356
36355
|
|