Viewer3DCompare class

A viewer that shows two 3D model side by side and highlights the differences.

Signature:

export default class Viewer3DCompare extends Viewer3D 

Extends: Viewer3D

Constructors

ConstructorDescription
(constructor)(containerId, config)Constructor a 3D panorama viewer.

Methods

MethodDescription
destroy()Destroy the viewer.
focusElementsInViewport(viewportIdx, elementNames, changeCamera, showLine)Focus to certain elements.
loadModelAtViewport(modelId, viewportIdx, configOrOnProgress)Load a model into certain viewport. When loading done, it will trigger onSuccess callback. The loading will fail if there is already a model loaded in current renderer. In this case, users should call unload first.
resize(width, height)Resize the viewer. This function will be called automatically when browser tab is resized.