@galacean/effects-threejs 1.6.6 → 1.6.8-alpha.0
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 +5 -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 +5 -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.6.
|
|
6
|
+
* Version: v1.6.8-alpha.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -8891,9 +8891,9 @@ var Transform = /** @class */ (function () {
|
|
|
8891
8891
|
*/
|
|
8892
8892
|
Transform.prototype.setScale = function (x, y, z) {
|
|
8893
8893
|
if (this.scale.x !== x || this.scale.y !== y || this.scale.z !== z) {
|
|
8894
|
-
this.scale.x = x;
|
|
8895
|
-
this.scale.y = y;
|
|
8896
|
-
this.scale.z = z;
|
|
8894
|
+
this.scale.x = x ? x : 1e-5;
|
|
8895
|
+
this.scale.y = y ? y : 1e-5;
|
|
8896
|
+
this.scale.z = z ? z : 1e-5;
|
|
8897
8897
|
this.dirtyFlags.localData = true;
|
|
8898
8898
|
this.dispatchValueChange();
|
|
8899
8899
|
}
|
|
@@ -17754,7 +17754,6 @@ var ParticleSystem = /** @class */ (function () {
|
|
|
17754
17754
|
if (options.removeParticle) {
|
|
17755
17755
|
mesh.removePoint(pointIndex);
|
|
17756
17756
|
this.clearPointTrail(pointIndex);
|
|
17757
|
-
node.content[0] = 0;
|
|
17758
17757
|
}
|
|
17759
17758
|
hitPositions.push(pos);
|
|
17760
17759
|
if (!options.multiple) {
|
|
@@ -27522,7 +27521,7 @@ Geometry.create = function (engine, options) {
|
|
|
27522
27521
|
Mesh.create = function (engine, props) {
|
|
27523
27522
|
return new ThreeMesh(engine, props);
|
|
27524
27523
|
};
|
|
27525
|
-
var version = "1.6.
|
|
27524
|
+
var version = "1.6.8-alpha.0";
|
|
27526
27525
|
logger.info('THREEJS plugin version: ' + version);
|
|
27527
27526
|
|
|
27528
27527
|
exports.AbstractPlugin = AbstractPlugin;
|