[]
dashboard.SceneViewer
• new SceneViewer()
▸ destroy(): void
释放3D场景查看器实例的资源
void
▸ initialize(initOption
): Promise
<void
>
初始化3D场景查看器
名称 | 类型 |
---|---|
initOption |
SceneViewerInitOption |
Promise
<void
>
示例代码
sceneViewer.initialize({
container: document.querySelector("#scene"),
onLoaded: (docName) => {
document.title = docName;
}
});