@spiffcommerce/preview 4.1.0-alpha.11 → 4.1.0-alpha.13
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 +13 -5
- package/dist/index.esm.js +378 -355
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
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
|
/**
|
|
@@ -266,7 +266,7 @@ type ModelLoadEventData = {
|
|
|
266
266
|
/**
|
|
267
267
|
* The type of event that has occurred.
|
|
268
268
|
*/
|
|
269
|
-
readonly eventType:
|
|
269
|
+
readonly eventType: "load" | "unload";
|
|
270
270
|
/**
|
|
271
271
|
* The model that has been loaded or unloaded.
|
|
272
272
|
*/
|
|
@@ -639,7 +639,7 @@ interface DepthOfFieldPipelineConfiguration {
|
|
|
639
639
|
/**
|
|
640
640
|
* The quality of the blur. Higher values will provide better quality but will be slower.
|
|
641
641
|
*/
|
|
642
|
-
blurLevel?:
|
|
642
|
+
blurLevel?: "Low" | "Medium" | "High";
|
|
643
643
|
/**
|
|
644
644
|
* The distance from the camera to the focus point.
|
|
645
645
|
*/
|
|
@@ -691,7 +691,7 @@ interface MiscPipelineConfiguration {
|
|
|
691
691
|
* The type of tone mapping to use. "Standard" or "ACES". "ACES" applies a tone that is similar to Unity and Unreal.
|
|
692
692
|
* @default "standard"
|
|
693
693
|
*/
|
|
694
|
-
toneMappingType?:
|
|
694
|
+
toneMappingType?: "Standard" | "ACES";
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
697
|
* Sharpening is a post processing effect that increases the contrast between pixels.
|
|
@@ -712,7 +712,7 @@ interface VignettePipelineConfiguration {
|
|
|
712
712
|
/**
|
|
713
713
|
* "Multiply" or "Opaque". "Multiply" will mix the vignette color with the scene color. "Opaque" will replace the scene color with the vignette color.
|
|
714
714
|
*/
|
|
715
|
-
blendMode?:
|
|
715
|
+
blendMode?: "Multiply" | "Opaque";
|
|
716
716
|
/**
|
|
717
717
|
* The FOV of the camera. This is used to calculate the vignette size.
|
|
718
718
|
*/
|
|
@@ -1100,6 +1100,14 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
1100
1100
|
getGlowLayerManager(): GlowLayerManager;
|
|
1101
1101
|
modelUnloaded(modelContainer: ModelContainer): void;
|
|
1102
1102
|
private triggerModelLoadEvent;
|
|
1103
|
+
/**
|
|
1104
|
+
* Flips a transform around the origin.
|
|
1105
|
+
*/
|
|
1106
|
+
flipTransform(position?: Vector3, rotation?: Vector3, scale?: Vector3): {
|
|
1107
|
+
position: Vector;
|
|
1108
|
+
rotation: Vector;
|
|
1109
|
+
scale: Vector;
|
|
1110
|
+
};
|
|
1103
1111
|
private handleMaterialProgressCallback;
|
|
1104
1112
|
private handleModelProgressCallback;
|
|
1105
1113
|
/**
|