ElfsquadShowroom
The ElfsquadShowroom class is the main entry point for the elfsquad/showroom-iframe library. It provides methods to embed & communicate with the Elfsquad showroom.
constructor(options)
Initializes a new instance of the Elfsquad Showroom.
Method parameters
The options used to initialize the showroom.
getNativeElement()
Retrieves the native iframe element.
Returns (HTMLIFrameElement)
The native iframe element.
home()
Resets the viewer to the home camera position.
toggleFootprint()
Toggles the visibility of the footprint.
screenshot()
Initiates a screenshot of the current view. The screenshot data is returned via the `onScreenshot` callback.
onScreenshot(callback)
Registers a callback function to be invoked when a screenshot is taken.
Method parameters
The callback function to be called upon screenshot capture.
onRequestQuote(callback)
Registers a callback function to be invoked when a quote is requested.
Method parameters
The callback function to be called upon quote request.