@spiffcommerce/preview 4.1.0-alpha.0 → 4.1.0-alpha.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.d.mts CHANGED
@@ -266,7 +266,7 @@ type ModelLoadEventData = {
266
266
  /**
267
267
  * The type of event that has occurred.
268
268
  */
269
- readonly eventType: "load" | "unload";
269
+ readonly eventType: 'load' | 'unload';
270
270
  /**
271
271
  * The model that has been loaded or unloaded.
272
272
  */
@@ -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;
@@ -640,7 +639,7 @@ interface DepthOfFieldPipelineConfiguration {
640
639
  /**
641
640
  * The quality of the blur. Higher values will provide better quality but will be slower.
642
641
  */
643
- blurLevel?: "Low" | "Medium" | "High";
642
+ blurLevel?: 'Low' | 'Medium' | 'High';
644
643
  /**
645
644
  * The distance from the camera to the focus point.
646
645
  */
@@ -692,7 +691,7 @@ interface MiscPipelineConfiguration {
692
691
  * The type of tone mapping to use. "Standard" or "ACES". "ACES" applies a tone that is similar to Unity and Unreal.
693
692
  * @default "standard"
694
693
  */
695
- toneMappingType?: "Standard" | "ACES";
694
+ toneMappingType?: 'Standard' | 'ACES';
696
695
  }
697
696
  /**
698
697
  * Sharpening is a post processing effect that increases the contrast between pixels.
@@ -713,7 +712,7 @@ interface VignettePipelineConfiguration {
713
712
  /**
714
713
  * "Multiply" or "Opaque". "Multiply" will mix the vignette color with the scene color. "Opaque" will replace the scene color with the vignette color.
715
714
  */
716
- blendMode?: "Multiply" | "Opaque";
715
+ blendMode?: 'Multiply' | 'Opaque';
717
716
  /**
718
717
  * The FOV of the camera. This is used to calculate the vignette size.
719
718
  */
@@ -1153,4 +1152,24 @@ declare const REFLECTION_PROBE_RESOLUTION = 128;
1153
1152
  type PowerOfTwoNumber = 128 | 256 | 512 | 1024 | 2048 | 4096 | 8192;
1154
1153
  declare const renderingPipelineDefaults: RenderingPipelineConfiguration;
1155
1154
 
1156
- 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 };
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 };