@spiffcommerce/preview 5.1.1 → 5.2.1
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 +9 -2
- package/dist/index.esm.js +228 -213
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -198,6 +198,11 @@ type ThreeDPreviewService = {
|
|
|
198
198
|
* @param plugin The plugin to remove.
|
|
199
199
|
*/
|
|
200
200
|
unregisterPlugin(plugin: PreviewServicePlugin): void;
|
|
201
|
+
/**
|
|
202
|
+
* Sets the preview options for the scene. Certain options may not be applied, as they are only applicable upon initialization.
|
|
203
|
+
* @param options The options to apply.
|
|
204
|
+
*/
|
|
205
|
+
updatePreviewOptions(options: PreviewOptions): void;
|
|
201
206
|
};
|
|
202
207
|
/**
|
|
203
208
|
* Represents a service capable of managing and returning contexts that
|
|
@@ -875,10 +880,11 @@ type PreviewServicePlugin = {
|
|
|
875
880
|
*/
|
|
876
881
|
declare class GlowLayerManager {
|
|
877
882
|
private readonly scene;
|
|
878
|
-
private
|
|
883
|
+
private intensity;
|
|
879
884
|
private glowLayer?;
|
|
880
885
|
private meshCount;
|
|
881
886
|
constructor(scene: Scene, intensity: number);
|
|
887
|
+
setIntensity(intensity: number): void;
|
|
882
888
|
includeMeshes(meshes: readonly Mesh[]): void;
|
|
883
889
|
removeMeshes(meshes: readonly Mesh[]): void;
|
|
884
890
|
}
|
|
@@ -1009,9 +1015,9 @@ declare class ProductCamera extends ArcRotateCamera {
|
|
|
1009
1015
|
*/
|
|
1010
1016
|
declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
1011
1017
|
private readonly camera;
|
|
1012
|
-
private readonly configuration;
|
|
1013
1018
|
private readonly engine;
|
|
1014
1019
|
private readonly scene;
|
|
1020
|
+
private configuration;
|
|
1015
1021
|
/**
|
|
1016
1022
|
* The last camera animation requested if the scene wasn't ready.
|
|
1017
1023
|
*/
|
|
@@ -1086,6 +1092,7 @@ declare class SpiffCommerce3DPreviewService implements ThreeDPreviewService {
|
|
|
1086
1092
|
rotation: Vector;
|
|
1087
1093
|
scale: Vector;
|
|
1088
1094
|
};
|
|
1095
|
+
updatePreviewOptions(options: PreviewOptions): void;
|
|
1089
1096
|
/**
|
|
1090
1097
|
* Given a valid canvas element, will remove any existing input controls
|
|
1091
1098
|
* and re-attach them to the given canvas. The pan mouse button can be set
|