Constructor
Readonly
canvasReadonly
eventStatic
Readonly
BOUNDING_Static
versionGets the AnimationManager attached to the viewer.
Error if the AnimationManager has not been initialized.
Gets the cloneMaterialsOnMutation
flag, as defined in the spec
Gets the GltfExportManager attached to the viewer.
Error if the GltfExportManager has not been initialized.
Gets the strategy handler for naming cloned nodes.
Sets the strategy handler for naming cloned nodes.
Check the docs of the tag managers renaming
chapter for further details.
Gets the SceneManager attached to the viewer.
Error if the SceneManager has not been initialized.
Gets the VariantInstanceManager attached to the viewer.
Error if the VariantInstanceManager has not been initialized.
Adds a listener function for the given event.
Focuses the camera to see every visible mesh in scene and tries to optimize wheel precision and panning
Optional
settings: AutofocusSettingsStarts the application. This will
Error if any of the files is not found/valid
Optional
tagManagerParameterValues: TagManagerParameterValue[]Broadcasts the given event with given arguments to all listeners and emitters.
Rest
...args: any[]Calculates the bounding box from all visible meshes on the scene.
Optional
excludeGeometry: ExcludedGeometryListDestroys
dispose
on the Engine
and Scene
Destroys all registered VariantInstances that are registered
Enables the Babylon.js Inspector.
Due to the additional size of the inspector, this function is only available in "development" builds!
Signalizes if inspector could be loaded
Optional
options: IInspectorOptionsA convenience method for directly getting a Node from a VariantInstance and an Element by its DottedPaths.
A convenience method for directly getting a Node from a VariantInstance and an Element by its DottedPaths.
Moves or animates the active camera to given placement
.
Optional
animation: string | AnimationDefinitionAlias for removeEventListener.
Alias for addEventListener.
Removes all eventListeners
for given event.
Resets everything by calling destroy to clear all references and bootstrap to setup a clean environment
Optional
tagManagerParameterValues: TagManagerParameterValue[]Takes a sceenshot the the current scene. The result is a string containing a base64 encoded image
Optional
settings: ScreenshotSettingsStatic
generateHelp function for automatically creating a valid Spec from a list of variant names and dedicated GLB/babylon URLs. This data is most likely coming from babylon assets from the Combeenation system but other sources are also valid.
Static
getReturns all modules which are exported by the viewers index file.
Needed by the Combeenation viewer control in situations where the viewer is injected from external code.
See Combeenation docs for more details.
Generated using TypeDoc
The main exposed object. This is the entry point into the application
The class does nothing on its own and needs to bootstrap