@spiffcommerce/preview 4.1.0-alpha.3 → 4.1.0-alpha.4

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 } 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
  /**
@@ -1099,6 +1099,25 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
1099
1099
  unregisterPlugin(plugin: PreviewServicePlugin): void;
1100
1100
  getGlowLayerManager(): GlowLayerManager;
1101
1101
  modelUnloaded(modelContainer: ModelContainer): void;
1102
+ /**
1103
+ * Rotates a transform around the origin.
1104
+ * @param transform The transform to rotate. All values are optional and default to standard identity values.
1105
+ * @param axis The axis to rotate around. Defaults to the Y axis.
1106
+ * @param angle The angle to rotate by. Defaults to PI (180 degrees);
1107
+ */
1108
+ rotateAroundOrigin(transform: {
1109
+ position?: Vector;
1110
+ rotation?: Vector;
1111
+ scale?: Vector;
1112
+ }, axis?: Vector, angle?: number): {
1113
+ position: Vector;
1114
+ rotation: Vector;
1115
+ scale: Vector;
1116
+ };
1117
+ toBabylonVector3(v: Vector): Vector3;
1118
+ fromBabylonVector3(v: Vector3): Vector;
1119
+ toRadians(degrees: number): number;
1120
+ toRadiansVector(v: Vector): Vector;
1102
1121
  private triggerModelLoadEvent;
1103
1122
  private handleMaterialProgressCallback;
1104
1123
  private handleModelProgressCallback;
@@ -1152,24 +1171,4 @@ declare const REFLECTION_PROBE_RESOLUTION = 128;
1152
1171
  type PowerOfTwoNumber = 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192;
1153
1172
  declare const renderingPipelineDefaults: RenderingPipelineConfiguration;
1154
1173
 
1155
- /**
1156
- * Rotates a transform around the origin.
1157
- * @param transform The transform to rotate. All values are optional and default to standard identity values.
1158
- * @param axis The axis to rotate around. Defaults to the Y axis.
1159
- * @param angle The angle to rotate by. Defaults to PI (180 degrees);
1160
- */
1161
- declare function rotateAroundOrigin(transform: {
1162
- position?: Vector;
1163
- rotation?: Vector;
1164
- scale?: Vector;
1165
- }, axis?: Vector, angle?: number): {
1166
- position: Vector;
1167
- rotation: Vector;
1168
- scale: Vector;
1169
- };
1170
- declare function toBabylonVector3(v: Vector): Vector3;
1171
- declare function fromBabylonVector3(v: Vector3): Vector;
1172
- declare function toRadians(degrees: number): number;
1173
- declare function toRadiansVector(v: Vector): Vector;
1174
-
1175
- export { AntiAliasingPipelineConfiguration, Asset, BloomPipelineConfiguration, CameraAnimation, CameraPose, ChromaticAberrationPipelineConfiguration, Color4Configuration, ColorCurvesConfiguration, DepthOfFieldPipelineConfiguration, EngineContext, GrainPipelineConfiguration, LoadProgressEventData, MaterialEffectMode, MaterialHandle, MaterialResource, MiscPipelineConfiguration, ModelAnimation, ModelContainer, ModelDetails, ModelLoadEventData, PowerOfTwoNumber, PreviewOptions, PreviewServicePlugin, ProductCameraRig, REFLECTION_PROBE_RESOLUTION, RenderableContext, RenderableContextService, RenderingConfiguration, RenderingPipelineConfiguration, SharpenPipelineConfiguration, SpiffCommerce3DPreviewService, ThreeDPreviewService, Vector, VignettePipelineConfiguration, fromBabylonVector3, renderingPipelineDefaults, rotateAroundOrigin, toBabylonVector3, toRadians, toRadiansVector };
1174
+ export { AntiAliasingPipelineConfiguration, Asset, BloomPipelineConfiguration, CameraAnimation, CameraPose, ChromaticAberrationPipelineConfiguration, Color4Configuration, ColorCurvesConfiguration, DepthOfFieldPipelineConfiguration, EngineContext, GrainPipelineConfiguration, LoadProgressEventData, MaterialEffectMode, MaterialHandle, MaterialResource, MiscPipelineConfiguration, ModelAnimation, ModelContainer, ModelDetails, ModelLoadEventData, PowerOfTwoNumber, PreviewOptions, PreviewServicePlugin, ProductCameraRig, REFLECTION_PROBE_RESOLUTION, RenderableContext, RenderableContextService, RenderingConfiguration, RenderingPipelineConfiguration, SharpenPipelineConfiguration, SpiffCommerce3DPreviewService, ThreeDPreviewService, Vector, VignettePipelineConfiguration, renderingPipelineDefaults };