Comment.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

ParameterTypeDescription
modelIdstringThe model id
extDataanyExtra data object attach to this comment

Returns:

Promise<ModelComment>

a promise contains a model comment object