create() function

Create a model comment with model id and extData.

this function is only available after a 3D viewer loaded.

Signature:

export declare function create(viewer: Viewer3D, modelId: string, extData?: any): Promise<ModelComment>;

Parameters

ParameterDescription
viewer
modelIdThe model id
extDataExtra data object attach to this comment

Returns:

Promise<ModelComment>

a promise contains a model comment object