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);
Parameter | Type | Description |
---|---|---|
containerId | string | The id of a DIV DOM which will host the viewer. |
baseModelId | string | The model id of the base model which be displayed on the left. |
updatedModelId | string | The model id of the new model which be displayed on the right. |
onReady | (viewer: ModelCompareViewer)=>void | Callback when the viewer is created. |
onError | (err: string)=>void | Callback when some errors happen. |
Returns:
Modelo.UI.ModelCompareViewer
Method | Modifiers | Description |
---|---|---|
destroy() | --- | Destroy the viewer. |