@spiffcommerce/preview 4.1.0-alpha.0 → 4.1.0-alpha.12

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.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { Engine } from '@babylonjs/core/Engines/engine';
2
2
  import { ISceneLoaderProgressEvent } from '@babylonjs/core/Loading/sceneLoader';
3
+ import { Vector3, Quaternion } from '@babylonjs/core/Maths/math.vector';
3
4
  import { Scene } from '@babylonjs/core/scene';
4
5
  import { Mesh } from '@babylonjs/core/Meshes/mesh';
5
6
  import { AutoRotationBehavior } from '@babylonjs/core/Behaviors/Cameras/autoRotationBehavior';
6
7
  import { FramingBehavior } from '@babylonjs/core/Behaviors/Cameras/framingBehavior';
7
8
  import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera';
8
- import { Vector3 } from '@babylonjs/core/Maths/math.vector';
9
9
  import { Color4 } from '@babylonjs/core/Maths/math.color';
10
10
 
11
11
  /**
@@ -528,7 +528,6 @@ type CameraAnimation = {
528
528
  readonly latDeg: number;
529
529
  /**
530
530
  * An optional target for the camera to focus on in the scene.
531
- * This should be provided as left handed coordinates. They will be converted internally.
532
531
  */
533
532
  readonly target?: {
534
533
  readonly x: number;
@@ -1101,6 +1100,25 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
1101
1100
  getGlowLayerManager(): GlowLayerManager;
1102
1101
  modelUnloaded(modelContainer: ModelContainer): void;
1103
1102
  private triggerModelLoadEvent;
1103
+ /**
1104
+ * Rotates a transform around the origin.
1105
+ * @param transform The transform to rotate. All values are optional and default to standard identity values.
1106
+ * @param axis The axis to rotate around. Defaults to the Y axis.
1107
+ * @param angle The angle to rotate by. Defaults to PI (180 degrees);
1108
+ */
1109
+ rotateAroundOrigin(transform: {
1110
+ position?: Vector;
1111
+ rotation?: Vector;
1112
+ scale?: Vector;
1113
+ }, axis?: Vector, angle?: number): {
1114
+ position: Vector;
1115
+ rotation: Vector;
1116
+ scale: Vector;
1117
+ };
1118
+ vecToQuat(rotation: Vector): Quaternion;
1119
+ quatToVec(quat: Quaternion): Vector;
1120
+ private toBabylonVector3;
1121
+ private fromBabylonVector3;
1104
1122
  private handleMaterialProgressCallback;
1105
1123
  private handleModelProgressCallback;
1106
1124
  /**