WidgetManager
构造函数
关系
Implements
WidgetManager Implements IWidgetManager
实现接口: IWidgetManager
构造函数
WidgetManager
构造函数
new WidgetManager(scene, option?)
参数
- scene:
IScene所属场景实例 - option?:
ISceneUIOption场景UI配置选项
返回:WidgetManager WidgetManager对象
属性
container
容器元素
container: HTMLElement
类型: HTMLElement
contextMenu
右键菜单管理器
contextMenu: IContextMenuManager
defaultWidgets
默认部件集合
defaultWidgets: Record
类型: Record
hide
隐藏部件
hide: (
类型: (
initCamera
初始相机状态
initCamera: ICamera
类型: ICamera
multipleSelectData
记录多选数据
multipleSelectData: \
类型: \
option
场景UI配置选项
option: ISceneUIOption
类型: ISceneUIOption
popup
弹窗管理器
popup: IPopupManager
类型: IPopupManager
positionContainer
位置容器映射
positionContainer: object
类型: object
scene
所属场景实例
scene: IScene
类型: IScene
selector
当前的选择模式管理器
selector: ISelectorManager
类型: ISelectorManager
show
显示部件
show: (
类型: (
throughSelectData
记录透选数据
throughSelectData: ThroughSelectData
类型: ThroughSelectData
toolbar
工具栏管理器
toolbar: ISceneToolbarManager
tree
场景树管理器
tree: ISceneTreeManager
widgets
生成的部件记录
widgets: object
类型: object
访问器
theme
获取UI主题
get theme(): string
返回: string 获取UI主题
设置UI主题
set theme(type: string): void
参数
- type:
string
返回: void
方法
_add
内部添加部件方法
add
增加部件到场景中
createContianer
创建容器元素
createContianer(): void
返回:void
get
根据部件名称获取某个部件实例
initWidget
初始化选项中声明的widgets
initWidget(): void
返回:void
remove
<<<<<<< HEAD

BIMFlux AI
