Panorama

WizartDeploymentKit. Panorama

Class representing a 360 Panorama viewer.

Constructor

new Panorama(options)

Source:
Example
const panorama = new WizartDeploymentKit.Panorama({
    token: 'YOUR_TOKEN',
    layoutSettings: {
        targetElement: document.getElementById('panorama-container'),
        layout: WizartDeploymentKit.LAYOUTS.FILL_PARENT,
    },
    sceneData: {
        vendorCode: 'CARPET_01',
        interiorName: 'living-room',
        layingPatternCode: 'herringbone',
    },
});

panorama.show();
Parameters:
Name Type Description
options PanoramaOptions

Methods

(async) show() → {Promise.<Panorama>}

Description:
  • Shows the Panorama iframe, loading it first if needed. Reveals the close icon pinned to the top-right corner of the iframe.

Source:
Returns:
Type
Promise.<Panorama>