Skip to main content

ProductPreviewService

Classes

ProductPreviewService

Constructors

Constructor
new ProductPreviewService(
productContext,
designAtomsApiClient,
colorPreviewService,
service,
viewerConfigurationContext,
colorParser): ProductPreviewService;
Parameters
ParameterType
productContextIProductContext
designAtomsApiClientIDesignAtomsApiClient
colorPreviewServiceIListenableColorPreviewService
serviceService
viewerConfigurationContextIViewerConfigurationContext
colorParserIColorParser
Returns

ProductPreviewService

Methods

dispose()
dispose(): void;
Returns

void

getCurrentSurfacePreview()
getCurrentSurfacePreview(options?): Promise<Blob>;
Parameters
ParameterTypeDescription
options?IPreviewOptionsPreview rendering options
Returns

Promise<Blob>

Blob containing the preview image of the current surface

getSurfacePreview()
getSurfacePreview(surfaceIndex, options?): Promise<Blob>;
Parameters
ParameterTypeDescription
surfaceIndexnumberIndex of the surface to preview
options?IPreviewOptionsPreview rendering options
Returns

Promise<Blob>

Blob containing the preview image of given surface

Was this page helpful?