@galacean/effects-threejs 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/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime threejs plugin for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version: v1.2.
|
|
6
|
+
* Version: v1.2.6
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -13168,9 +13168,13 @@ var InteractVFXItem = /** @class */ (function (_super) {
|
|
|
13168
13168
|
this.handleDragMove(this.dragEvent, this.bouncingArg);
|
|
13169
13169
|
}
|
|
13170
13170
|
};
|
|
13171
|
-
InteractVFXItem.prototype.
|
|
13171
|
+
InteractVFXItem.prototype.onEnd = function () {
|
|
13172
|
+
if (this.composition) {
|
|
13173
|
+
this.composition.removeInteractiveItem(this, this.ui.options.type);
|
|
13174
|
+
}
|
|
13175
|
+
};
|
|
13176
|
+
InteractVFXItem.prototype.onItemRemoved = function () {
|
|
13172
13177
|
var _a;
|
|
13173
|
-
composition.removeInteractiveItem(this, this.ui.options.type);
|
|
13174
13178
|
this.clickable = false;
|
|
13175
13179
|
(_a = this.previewContent) === null || _a === void 0 ? void 0 : _a.mesh.dispose();
|
|
13176
13180
|
this.endDragTarget();
|
|
@@ -14962,7 +14966,6 @@ var SpriteItem = /** @class */ (function (_super) {
|
|
|
14962
14966
|
ret.texOffset = [0, 0, 1, 1];
|
|
14963
14967
|
}
|
|
14964
14968
|
ret.visible = this.vfxItem.contentVisible;
|
|
14965
|
-
// 图层元素作为父节点时,除了k的大小变换,自身的尺寸也需要传递给子元素,子元素可以通过startSize读取
|
|
14966
14969
|
ret.startSize = this.startSize;
|
|
14967
14970
|
return ret;
|
|
14968
14971
|
};
|
|
@@ -15060,7 +15063,9 @@ var SpriteVFXItem = /** @class */ (function (_super) {
|
|
|
15060
15063
|
};
|
|
15061
15064
|
SpriteVFXItem.prototype.doCreateContent = function (composition) {
|
|
15062
15065
|
var emptyTexture = composition.getRendererOptions().emptyTexture;
|
|
15063
|
-
|
|
15066
|
+
var content = new SpriteItem(this.sprite, { emptyTexture: emptyTexture }, this);
|
|
15067
|
+
content.getRenderData(0, true);
|
|
15068
|
+
return content;
|
|
15064
15069
|
};
|
|
15065
15070
|
SpriteVFXItem.prototype.createWireframeMesh = function (item, color) {
|
|
15066
15071
|
var spMesh = new SpriteMesh(this.composition.getEngine(), __assign$1({ wireframe: true }, item.renderInfo), this.composition);
|
|
@@ -26942,7 +26947,7 @@ Geometry.create = function (engine, options) {
|
|
|
26942
26947
|
Mesh.create = function (engine, props) {
|
|
26943
26948
|
return new ThreeMesh(engine, props);
|
|
26944
26949
|
};
|
|
26945
|
-
var version = "1.2.
|
|
26950
|
+
var version = "1.2.6";
|
|
26946
26951
|
logger.info('THREEJS plugin version: ' + version);
|
|
26947
26952
|
|
|
26948
26953
|
exports.AbstractPlugin = AbstractPlugin;
|