@galacean/effects-threejs 2.3.1 → 2.3.3
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 +14 -11
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +14 -11
- 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: v2.3.
|
|
6
|
+
* Version: v2.3.3
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -16542,14 +16542,14 @@ exports.ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
|
|
|
16542
16542
|
var control2 = easingIns[pointIndex.easingIn];
|
|
16543
16543
|
this.graphicsPath.bezierCurveTo(control1.x + lastPoint.x, control1.y + lastPoint.y, control2.x + point.x, control2.y + point.y, point.x, point.y, 1);
|
|
16544
16544
|
}
|
|
16545
|
-
var pointIndex1 = indices[0];
|
|
16546
|
-
var lastPointIndex1 = indices[indices.length - 1];
|
|
16547
|
-
var point1 = points[pointIndex1.point];
|
|
16548
|
-
var lastPoint1 = points[lastPointIndex1.point];
|
|
16549
|
-
var control11 = easingOuts[lastPointIndex1.easingOut];
|
|
16550
|
-
var control21 = easingIns[pointIndex1.easingIn];
|
|
16551
|
-
this.graphicsPath.bezierCurveTo(control11.x + lastPoint1.x, control11.y + lastPoint1.y, control21.x + point1.x, control21.y + point1.y, point1.x, point1.y, 1);
|
|
16552
16545
|
if (shape.close) {
|
|
16546
|
+
var pointIndex1 = indices[0];
|
|
16547
|
+
var lastPointIndex1 = indices[indices.length - 1];
|
|
16548
|
+
var point1 = points[pointIndex1.point];
|
|
16549
|
+
var lastPoint1 = points[lastPointIndex1.point];
|
|
16550
|
+
var control11 = easingOuts[lastPointIndex1.easingOut];
|
|
16551
|
+
var control21 = easingIns[pointIndex1.easingIn];
|
|
16552
|
+
this.graphicsPath.bezierCurveTo(control11.x + lastPoint1.x, control11.y + lastPoint1.y, control21.x + point1.x, control21.y + point1.y, point1.x, point1.y, 1);
|
|
16553
16553
|
this.graphicsPath.closePath();
|
|
16554
16554
|
}
|
|
16555
16555
|
}
|
|
@@ -17955,6 +17955,7 @@ var seed$4 = 1;
|
|
|
17955
17955
|
this.rotation.y = y;
|
|
17956
17956
|
this.rotation.z = z;
|
|
17957
17957
|
this.quat.setFromEuler(this.rotation);
|
|
17958
|
+
// TODO 修正 GE 四元数旋转共轭问题
|
|
17958
17959
|
this.quat.conjugate();
|
|
17959
17960
|
this.dirtyFlags.localData = true;
|
|
17960
17961
|
this.dispatchValueChange();
|
|
@@ -28856,6 +28857,8 @@ var tmpScale = new Vector3(1, 1, 1);
|
|
|
28856
28857
|
0,
|
|
28857
28858
|
0
|
|
28858
28859
|
] : _options_rotation;
|
|
28860
|
+
var euler = new Euler(rotation[0], rotation[1], rotation[2]);
|
|
28861
|
+
var quat = new Quaternion().setFromEuler(euler);
|
|
28859
28862
|
this.options = {
|
|
28860
28863
|
near: near,
|
|
28861
28864
|
far: far,
|
|
@@ -28864,7 +28867,7 @@ var tmpScale = new Vector3(1, 1, 1);
|
|
|
28864
28867
|
clipMode: clipMode
|
|
28865
28868
|
};
|
|
28866
28869
|
this.transform.setPosition(position[0], position[1], position[2]);
|
|
28867
|
-
this.transform.
|
|
28870
|
+
this.transform.setQuaternion(quat.x, quat.y, quat.z, quat.w);
|
|
28868
28871
|
this.dirty = true;
|
|
28869
28872
|
this.updateMatrix();
|
|
28870
28873
|
}
|
|
@@ -32118,7 +32121,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
|
|
|
32118
32121
|
registerPlugin("particle", ParticleLoader, exports.VFXItem);
|
|
32119
32122
|
registerPlugin("cal", CalculateLoader, exports.VFXItem);
|
|
32120
32123
|
registerPlugin("interact", InteractLoader, exports.VFXItem);
|
|
32121
|
-
var version$1 = "2.3.
|
|
32124
|
+
var version$1 = "2.3.3";
|
|
32122
32125
|
logger.info("Core version: " + version$1 + ".");
|
|
32123
32126
|
|
|
32124
32127
|
var _obj;
|
|
@@ -33718,7 +33721,7 @@ setMaxSpriteMeshItemCount(8);
|
|
|
33718
33721
|
*/ Mesh.create = function(engine, props) {
|
|
33719
33722
|
return new ThreeMesh(engine, props);
|
|
33720
33723
|
};
|
|
33721
|
-
var version = "2.3.
|
|
33724
|
+
var version = "2.3.3";
|
|
33722
33725
|
logger.info("THREEJS plugin version: " + version + ".");
|
|
33723
33726
|
|
|
33724
33727
|
exports.AbstractPlugin = AbstractPlugin;
|