Introduction
In this document, we will guide you through the technical procedures for integrating the Expivi Viewer into third-party web pages or e-commerce solutions.
Embedding in Your Website
In order to create an instance of the viewer, the webpage must have included required scripts and provide container to place the 3D viewer inside.
Viewer API Interaction
Expivi provides a communication layer through window.expivi.*.
Managers
window.expivi.managers.* provides access to various managers that control different aspects of Expivi's viewer.
API Methods
Available methods
Serialization
The configuration created by a user can be serialized to a JSON object to be communicated to a webshop cart; or to be saved to storage to reload a product, to a pre-configured state (presets).
Sample code
The following sample contains a responsive fullscreen layout with a configurator.