Getting Started¶
This module is responsible for loading 3D Views and managing the interaction with them.
Loading the Module¶
The identifier of this module is 3d_viewer.
Input Options Object¶
The input options object contains all the basic configuration, including callbacks. The following main options may be included:
container(string|HTMLElement): HTML element or its id where the widget will be attached.callbacks(Object) [optional]: You can see a list with the available callbacks here.plugins(string[]) [optional]: List of plugins to be installed in this instance.version(string) [optional]: You can specify the3d_viewerversion to be downloaded, usuallylatestorstable.stableby default.client_id(string) [optional]: Use ONLY if MMC gives you a code to use. It may enable custom functionalities.modern(boolean) [optional]:falseto force the ES5 build download. If not specified ortrueit will check if the browser is compatible with ES2015+ build and download the compatible version.shadowroot(boolean) [optional]: if you instantiate the module withshadowroot=true, it will attach the viewer to a ShadowRoot, and its styles to it, isolating it from the rest of the document. Global styles won't affect it. If 'container' is inside a ShadowRoot, shadowroot must be used.