@galacean/effects-threejs 1.6.6-alpha.0 → 1.6.7
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 -5
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +5 -5
- 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.7
|
|
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
|
}
|
|
@@ -27522,7 +27522,7 @@ Geometry.create = function (engine, options) {
|
|
|
27522
27522
|
Mesh.create = function (engine, props) {
|
|
27523
27523
|
return new ThreeMesh(engine, props);
|
|
27524
27524
|
};
|
|
27525
|
-
var version = "1.6.
|
|
27525
|
+
var version = "1.6.7";
|
|
27526
27526
|
logger.info('THREEJS plugin version: ' + version);
|
|
27527
27527
|
|
|
27528
27528
|
exports.AbstractPlugin = AbstractPlugin;
|