UI.ModelCompareViewer() class

Create a viewer that displays two models side-by-side and highlights the different elements. It is useful to compare two versions of same BIM model and check the changes. The change include the new, missing and moved elements.

Signature:

export default class ModelCompareViewer(containerId: string, baseModelId: string, updatedModelId, onReady: (viewer: DWGViewer)=>void , onError: (err: string)=>void);

Parameters

ParameterTypeDescription
containerIdstringThe id of a DIV DOM which will host the viewer.
baseModelIdstringThe model id of the base model which be displayed on the left.
updatedModelIdstringThe model id of the new model which be displayed on the right.
onReady(viewer: ModelCompareViewer)=>voidCallback when the viewer is created.
onError(err: string)=>voidCallback when some errors happen.

Returns:

Modelo.UI.ModelCompareViewer

Methods

MethodModifiersDescription
destroy()---Destroy the viewer.