@spiffcommerce/preview 4.1.0-alpha.4 → 4.1.0
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 +8 -19
- package/dist/index.esm.js +337 -348
- 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';
|
|
4
3
|
import { Scene } from '@babylonjs/core/scene';
|
|
5
4
|
import { Mesh } from '@babylonjs/core/Meshes/mesh';
|
|
6
5
|
import { AutoRotationBehavior } from '@babylonjs/core/Behaviors/Cameras/autoRotationBehavior';
|
|
7
6
|
import { FramingBehavior } from '@babylonjs/core/Behaviors/Cameras/framingBehavior';
|
|
8
7
|
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
|
*/
|
|
@@ -1099,26 +1099,15 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
1099
1099
|
unregisterPlugin(plugin: PreviewServicePlugin): void;
|
|
1100
1100
|
getGlowLayerManager(): GlowLayerManager;
|
|
1101
1101
|
modelUnloaded(modelContainer: ModelContainer): void;
|
|
1102
|
+
private triggerModelLoadEvent;
|
|
1102
1103
|
/**
|
|
1103
|
-
*
|
|
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);
|
|
1104
|
+
* Flips a transform around the origin.
|
|
1107
1105
|
*/
|
|
1108
|
-
|
|
1109
|
-
position?: Vector;
|
|
1110
|
-
rotation?: Vector;
|
|
1111
|
-
scale?: Vector;
|
|
1112
|
-
}, axis?: Vector, angle?: number): {
|
|
1106
|
+
flipTransform(position?: Vector, rotation?: Vector, scale?: Vector): {
|
|
1113
1107
|
position: Vector;
|
|
1114
1108
|
rotation: Vector;
|
|
1115
1109
|
scale: Vector;
|
|
1116
1110
|
};
|
|
1117
|
-
toBabylonVector3(v: Vector): Vector3;
|
|
1118
|
-
fromBabylonVector3(v: Vector3): Vector;
|
|
1119
|
-
toRadians(degrees: number): number;
|
|
1120
|
-
toRadiansVector(v: Vector): Vector;
|
|
1121
|
-
private triggerModelLoadEvent;
|
|
1122
1111
|
private handleMaterialProgressCallback;
|
|
1123
1112
|
private handleModelProgressCallback;
|
|
1124
1113
|
/**
|