ProductPreviewService
Classes
ProductPreviewService
Constructors
Constructor
new ProductPreviewService(
productContext,
designAtomsApiClient,
colorPreviewService,
service,
viewerConfigurationContext,
colorParser): ProductPreviewService;
Parameters
| Parameter | Type |
|---|---|
productContext | IProductContext |
designAtomsApiClient | IDesignAtomsApiClient |
colorPreviewService | IListenableColorPreviewService |
service | Service |
viewerConfigurationContext | IViewerConfigurationContext |
colorParser | IColorParser |
Returns
Methods
dispose()
dispose(): void;
Returns
void
getCurrentSurfacePreview()
getCurrentSurfacePreview(options?): Promise<Blob>;
Parameters
| Parameter | Type | Description |
|---|---|---|
options? | IPreviewOptions | Preview rendering options |
Returns
Promise<Blob>
Blob containing the preview image of the current surface
getSurfacePreview()
getSurfacePreview(surfaceIndex, options?): Promise<Blob>;
Parameters
| Parameter | Type | Description |
|---|---|---|
surfaceIndex | number | Index of the surface to preview |
options? | IPreviewOptions | Preview rendering options |
Returns
Promise<Blob>
Blob containing the preview image of given surface