@galacean/effects 1.2.4 → 1.2.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/index.js +11 -6
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +11 -6
- package/dist/index.mjs.map +1 -1
- package/dist/weapp.js +10 -5
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +10 -5
- package/dist/weapp.mjs.map +1 -1
- package/package.json +3 -3
package/dist/weapp.js
CHANGED
|
@@ -13140,9 +13140,13 @@ var InteractVFXItem = /** @class */ (function (_super) {
|
|
|
13140
13140
|
this.handleDragMove(this.dragEvent, this.bouncingArg);
|
|
13141
13141
|
}
|
|
13142
13142
|
};
|
|
13143
|
-
InteractVFXItem.prototype.
|
|
13143
|
+
InteractVFXItem.prototype.onEnd = function () {
|
|
13144
|
+
if (this.composition) {
|
|
13145
|
+
this.composition.removeInteractiveItem(this, this.ui.options.type);
|
|
13146
|
+
}
|
|
13147
|
+
};
|
|
13148
|
+
InteractVFXItem.prototype.onItemRemoved = function () {
|
|
13144
13149
|
var _a;
|
|
13145
|
-
composition.removeInteractiveItem(this, this.ui.options.type);
|
|
13146
13150
|
this.clickable = false;
|
|
13147
13151
|
(_a = this.previewContent) === null || _a === void 0 ? void 0 : _a.mesh.dispose();
|
|
13148
13152
|
this.endDragTarget();
|
|
@@ -14934,7 +14938,6 @@ var SpriteItem = /** @class */ (function (_super) {
|
|
|
14934
14938
|
ret.texOffset = [0, 0, 1, 1];
|
|
14935
14939
|
}
|
|
14936
14940
|
ret.visible = this.vfxItem.contentVisible;
|
|
14937
|
-
// 图层元素作为父节点时,除了k的大小变换,自身的尺寸也需要传递给子元素,子元素可以通过startSize读取
|
|
14938
14941
|
ret.startSize = this.startSize;
|
|
14939
14942
|
return ret;
|
|
14940
14943
|
};
|
|
@@ -15032,7 +15035,9 @@ var SpriteVFXItem = /** @class */ (function (_super) {
|
|
|
15032
15035
|
};
|
|
15033
15036
|
SpriteVFXItem.prototype.doCreateContent = function (composition) {
|
|
15034
15037
|
var emptyTexture = composition.getRendererOptions().emptyTexture;
|
|
15035
|
-
|
|
15038
|
+
var content = new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
|
|
15039
|
+
content.getRenderData(0, true);
|
|
15040
|
+
return content;
|
|
15036
15041
|
};
|
|
15037
15042
|
SpriteVFXItem.prototype.createWireframeMesh = function (item, color) {
|
|
15038
15043
|
var spMesh = new SpriteMesh(this.composition.getEngine(), __assign$1({ wireframe: true }, item.renderInfo), this.composition);
|
|
@@ -30444,7 +30449,7 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
30444
30449
|
Engine.create = function (gl) {
|
|
30445
30450
|
return new GLEngine(gl);
|
|
30446
30451
|
};
|
|
30447
|
-
var version = "1.2.
|
|
30452
|
+
var version = "1.2.6";
|
|
30448
30453
|
logger.info('player version: ' + version);
|
|
30449
30454
|
|
|
30450
30455
|
exports.AbstractPlugin = AbstractPlugin;
|