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.
changeLanguage(languageIso)
Change the language of the showroom & configuration to the specified language ISO code.
Method parameters
The ISO code of the language to change to.
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.
enableConfigurationUpdates()
Enables receiving real-time configuration updates, whenever the configuration is changed in the showroom.
disableConfigurationUpdates()
Disables receiving real-time configuration updates.
onConfigurationUpdate(callback)
Registers a callback function to be invoked when the configuration is updated.
Method parameters
The callback function to be called upon configuration update.
navigateTo(url)
Navigates to the specified URL within the showroom iframe.
Method parameters
The URL to navigate to within the showroom iframe.