UI namespace

Signature:

export declare namespace UI 

Users have to include following links to provide the UI.

    <link rel="stylesheet" href="https://s3.cn-north-1.amazonaws.com.cn/api-release.modeloapp.com/prod/modeloapiui-2.1-lts.css" type="text/css" />
    <script src="https://s3.cn-north-1.amazonaws.com.cn/api-release.modeloapp.com/prod/modeloapi-2.2-lts.js"></script>
    <script src="https://s3.cn-north-1.amazonaws.com.cn/api-release.modeloapp.com/prod/modeloapiui-2.1-lts.js"></script>

Functions

FunctionDescription
ModeloViewer(modelId, containerId, useDefaultFavicon, onReady, onError)Create a model viewer that displays a model with a default UI.
ModelCompareViewer(containerId, baseModelId, updatedModelId, onReady, onError)Create a side-by-side comparison view for two models.
DWGViewer(locale, containerId, assetId, onReady, onError)Create a DWG viewer to display a .dwg file with a default UI.
SketchViewer(containerId, file, onReady, onError)Create a sketch viewer to display an image (jpg or png) and with a set of sketch tools.

Type Aliases