@galacean/effects-core 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/camera.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Vector3 } from '@galacean/effects-math/es/core/vector3';
2
- import type { Quaternion } from '@galacean/effects-math/es/core/quaternion';
2
+ import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
3
3
  import { Matrix4 } from '@galacean/effects-math/es/core/matrix4';
4
- import type { Euler } from '@galacean/effects-math/es/core/euler';
4
+ import { Euler } from '@galacean/effects-math/es/core/euler';
5
5
  import * as spec from '@galacean/effects-specification';
6
6
  import { Transform } from './transform';
7
7
  interface CameraOptionsBase {
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.3.1
6
+ * Version: v2.3.3
7
7
  */
8
8
 
9
9
  'use strict';
@@ -16520,14 +16520,14 @@ exports.ShapeComponent = /*#__PURE__*/ function(MeshComponent) {
16520
16520
  var control2 = easingIns[pointIndex.easingIn];
16521
16521
  this.graphicsPath.bezierCurveTo(control1.x + lastPoint.x, control1.y + lastPoint.y, control2.x + point.x, control2.y + point.y, point.x, point.y, 1);
16522
16522
  }
16523
- var pointIndex1 = indices[0];
16524
- var lastPointIndex1 = indices[indices.length - 1];
16525
- var point1 = points[pointIndex1.point];
16526
- var lastPoint1 = points[lastPointIndex1.point];
16527
- var control11 = easingOuts[lastPointIndex1.easingOut];
16528
- var control21 = easingIns[pointIndex1.easingIn];
16529
- this.graphicsPath.bezierCurveTo(control11.x + lastPoint1.x, control11.y + lastPoint1.y, control21.x + point1.x, control21.y + point1.y, point1.x, point1.y, 1);
16530
16523
  if (shape.close) {
16524
+ var pointIndex1 = indices[0];
16525
+ var lastPointIndex1 = indices[indices.length - 1];
16526
+ var point1 = points[pointIndex1.point];
16527
+ var lastPoint1 = points[lastPointIndex1.point];
16528
+ var control11 = easingOuts[lastPointIndex1.easingOut];
16529
+ var control21 = easingIns[pointIndex1.easingIn];
16530
+ this.graphicsPath.bezierCurveTo(control11.x + lastPoint1.x, control11.y + lastPoint1.y, control21.x + point1.x, control21.y + point1.y, point1.x, point1.y, 1);
16531
16531
  this.graphicsPath.closePath();
16532
16532
  }
16533
16533
  }
@@ -17933,6 +17933,7 @@ var seed$3 = 1;
17933
17933
  this.rotation.y = y;
17934
17934
  this.rotation.z = z;
17935
17935
  this.quat.setFromEuler(this.rotation);
17936
+ // TODO 修正 GE 四元数旋转共轭问题
17936
17937
  this.quat.conjugate();
17937
17938
  this.dirtyFlags.localData = true;
17938
17939
  this.dispatchValueChange();
@@ -28834,6 +28835,8 @@ var tmpScale = new Vector3(1, 1, 1);
28834
28835
  0,
28835
28836
  0
28836
28837
  ] : _options_rotation;
28838
+ var euler = new Euler(rotation[0], rotation[1], rotation[2]);
28839
+ var quat = new Quaternion().setFromEuler(euler);
28837
28840
  this.options = {
28838
28841
  near: near,
28839
28842
  far: far,
@@ -28842,7 +28845,7 @@ var tmpScale = new Vector3(1, 1, 1);
28842
28845
  clipMode: clipMode
28843
28846
  };
28844
28847
  this.transform.setPosition(position[0], position[1], position[2]);
28845
- this.transform.setRotation(rotation[0], rotation[1], rotation[2]);
28848
+ this.transform.setQuaternion(quat.x, quat.y, quat.z, quat.w);
28846
28849
  this.dirty = true;
28847
28850
  this.updateMatrix();
28848
28851
  }
@@ -32096,7 +32099,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
32096
32099
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
32097
32100
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
32098
32101
  registerPlugin("interact", InteractLoader, exports.VFXItem);
32099
- var version = "2.3.1";
32102
+ var version = "2.3.3";
32100
32103
  logger.info("Core version: " + version + ".");
32101
32104
 
32102
32105
  exports.AbstractPlugin = AbstractPlugin;