@spiffcommerce/preview 4.1.0 → 5.0.0-rc.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 +2 -8
- package/dist/index.esm.js +326 -342
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -115,12 +115,6 @@ type ThreeDPreviewService = {
|
|
|
115
115
|
* Shutdown the preview engine and all registered plugins. Noop if the engine is not initialized.
|
|
116
116
|
*/
|
|
117
117
|
shutdown(): void;
|
|
118
|
-
/**
|
|
119
|
-
* Initialize the scene. Also initialize the engine, if it hasn't been done already.
|
|
120
|
-
* @param modelDetails Optional model details to load.
|
|
121
|
-
* @returns A promise that resolves with the model container, or undefined if no model was loaded.
|
|
122
|
-
*/
|
|
123
|
-
initialize(modelDetails?: ModelDetails): Promise<ModelContainer | undefined>;
|
|
124
118
|
/**
|
|
125
119
|
* Executes an animation of the camera.
|
|
126
120
|
* @param animation The animation to execute.
|
|
@@ -1042,7 +1036,7 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
1042
1036
|
*/
|
|
1043
1037
|
private initializedCallbacks;
|
|
1044
1038
|
/**
|
|
1045
|
-
* Whether or not the preview service has
|
|
1039
|
+
* Whether or not the preview service has completed its first render
|
|
1046
1040
|
*/
|
|
1047
1041
|
private isInitialized;
|
|
1048
1042
|
/**
|
|
@@ -1079,7 +1073,7 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
1079
1073
|
unregisterView(canvas: HTMLCanvasElement): void;
|
|
1080
1074
|
shutdown(): void;
|
|
1081
1075
|
getSceneInitializationProgress(): number;
|
|
1082
|
-
|
|
1076
|
+
private renderLoop;
|
|
1083
1077
|
executeCameraAnimation(animation: CameraAnimation): void;
|
|
1084
1078
|
getCameraPose(): CameraPose | undefined;
|
|
1085
1079
|
setCameraPose(cameraPose: CameraPose): void;
|