CustomBuildingTreeWidget
关系
Extends
CustomBuildingTreeWidget Extends Widget
继承: Widget
用于显示和管理建筑构件树的小部件
构造函数
CustomBuildingTreeWidget
构造函数
new CustomBuildingTreeWidget(props?)
参数
- props?:
BuildingTreeProps建筑树小部件属性
返回:BuildingTreeWidget CustomBuildingTreeWidget对象
属性
afterCreate
afterCreate: any
类型: any
afterRemoved
afterRemoved: any
类型: any
afterUpdate
afterUpdate: any
类型: any
attributeKeys
attributeKeys: object
类型: object
buildings
图层信息
buildings: ILayer
类型: ILayer
checkable
是否勾选构件
checkable: boolean
类型: boolean
children
children: any
类型: any
container
容器元素
container: HTMLElement
类型: HTMLElement
currentFeatureGroupIndex
树类型索引
currentFeatureGroupIndex: number
类型: number
currentLayerIndex
当前模型id
currentLayerIndex: number
类型: number
currentSelectNodeDom
当前被选择的节点dom
currentSelectNodeDom: HTMLElement
类型: HTMLElement
customApiKey
自定义API密钥
customApiKey: string
类型: string
customUrl
自定义URL
customUrl: string
类型: string
domMap
记录每个feature对应的构件dom
domMap: WeakMap
类型: WeakMap
expandAll
是否展开所有树节点
expandAll: boolean
类型: boolean
expandLevel
默认展开层级
expandLevel: number
类型: number
expandType
树节点点击展开的方式, row --- 点击数据行展开, label --- 点击文本展开, 不包括展开按钮
expandType: string
类型: string
featureGroups
树类型 构件树 空间树等
featureGroups: SceneTreeNodeGroup
features
构件树数据
features: SceneTreeNode
类型: SceneTreeNode
groupShow
是否显示类型分组
groupShow: boolean
类型: boolean
handler
处理器
handler: any
类型: any
header
header: string
类型: string
isHighlightRow
点击/悬浮节点时,是否高亮整行
isHighlightRow: boolean
类型: boolean
isSearch
是否显示搜索栏
isSearch: boolean
类型: boolean
key
key: any
类型: any
loading
加载状态
loading: boolean
类型: boolean
openContextMenu
openContextMenu: boolean
类型: boolean
openProperty
openProperty: boolean
类型: boolean
originalFeatures
原始的构件信息
originalFeatures: SceneTreeNode
类型: SceneTreeNode
requestInfo
请求信息
requestInfo: RequestInfo
类型: RequestInfo
scene
场景实例
scene: IScene
类型: IScene
sceneUpdating
scene watch updating 场景监视更新
sceneUpdating: WatchHandle
类型: WatchHandle
searchInput
搜索输入框
searchInput: HTMLInputElement
类型: HTMLInputElement
searchText
搜索文本
searchText: string
类型: string
style
样式表
style: StyleSheet
类型: StyleSheet
tabSearchNode
m-tab-Search 组件DOM
tabSearchNode: HTMLElement
类型: HTMLElement
tree
构件树形集合
tree: HTMLElement
类型: HTMLElement
treeNode
树DOM
treeNode: HTMLElement
类型: HTMLElement
treeStyle
树样式
treeStyle: TreeStyle
类型: TreeStyle
uiStrings
uiStrings: any
类型: any
useCustomData
是否使用自定义数据
useCustomData: boolean
类型: boolean
view
场景视图实例
view: SceneView
类型: SceneView
viewModel
viewModel: any
类型: any
访问器
domNode
get domNode(): any
返回: any
set domNode(element: any): void
参数
- element:
any
返回: void
icon
get icon(): any
返回: any
set icon(iconValue: any): void
参数
- iconValue:
any
返回: void
id
get id(): any
返回: any
set id(value: any): void
参数
- value:
any
返回: void
keys
get keys(): SceneTreeAttributeKeysKeys
label
get label(): any
返回: any
set label(labelValue: any): void
参数
- labelValue:
any
返回: void
renderable
get renderable(): any
返回: any
visible
get visible(): any
返回: any
set visible(isVisible: any): void
参数
- isVisible:
any
返回: void
方法
_attach
_attach(element): void
参数
- element:
any
返回:void
_detach
_detach(element): void
参数
- element:
any
返回:void
_postInitialize
Returns
_postInitialize(): void
返回:void
allBuildings
获取建筑类图层信息
allBuildings(): ILayer
返回:ILayer
autoHighlight
高亮
autoHighlight(isTreeClick): Promise
参数
- isTreeClick:
boolean是否是构件树点击
返回:Promise
beforeFirstRender
Returns
beforeFirstRender(): Promise
返回:Promise
castContainer
castContainer(element): any
参数
- element:
any
返回:any
checkUpdate
更新场景目录勾选状态
checkUpdate(data, status?, isEmit?): void
参数
- data:
string操作数据 - status?:
boolean勾选状态 - isEmit?:
boolean
返回:void
classes
classes(...args): any
参数
- args: ...
any
返回:any
clearSelect
清除选择
clearSelect(): void
返回:void
close
Returns
close(): void
返回:void
destroy
Returns
destroy(): void
返回:void
featureGroupClick
featureGroupClick(detail): void
参数
- detail:
any
返回:void
fetchAllFeatures
Returns
fetchAllFeatures(): Promise
返回:Promise
fetchFeatures
fetchFeatures(url): Promise
参数
- url:
string
返回:Promise
getParentSelectKeys
getParentSelectKeys(selectKeys, dataMap, val): any
参数
- selectKeys:
string - dataMap:
any - val:
string
返回:any
layerSelectChange
layerSelectChange(e): void
参数
- e:
CustomEvent<{value:string; }>
返回:void
listenVisibility
构件可见性和右键菜单派发事件监听
listenVisibility(): void
返回:void
loadDependencies
Returns
loadDependencies(): any
返回:any
loadLocale
Returns
loadLocale(): any
返回:any
makeFeatureQuery
确定高亮的构件
makeFeatureQuery(): FeatureQuery
返回:Promise<FeatureQuery>
normalizeCtorArgs
normalizeCtorArgs(args, container): any
参数
- args:
any - container:
any
返回:any
postInitialize
Returns
postInitialize(): void
返回:void
queryObject
removeHighlight
Returns
removeHighlight(): void
返回:void
render
Returns
render(): any
返回:any
renderNow
Returns
renderNow(): void
返回:void
scheduleRender
Returns
scheduleRender(): void
返回:void
search
搜索与word匹配的构件
search(_word, features, index): SceneTreeNode
参数
- _word:
stringstring - features:
SceneTreeNode - index:
number
selectDispatch
节点选中事件暴露 dispatch
selectDispatch(): void
返回:void
selectSceneTreeNodeByHitTestGraphic
根据点击点的最近图元在树上找到对应的场景节点,并展开和选择
setFreatureData
设置特征数据
treeDataChange
构件树data数据变化回调
treeDataChange(): void
返回:void
treeNodeSelect
treeNodeSelect(detail): void
参数
- detail:
any
返回:void
treeNodeSelectGuid
树节点选中/取消选中, 根据构件的guid进行过滤
treeNodeSelectGuid(detail): void
参数
- detail:
any树节点选择的数据
返回:void
treeNodeSelectStructure
树节点选中/取消选中,根据层级进行过滤,但是会存在构件树上有of_family,但构件没有的情况,暂时放弃
treeNodeSelectStructure(detail): void
参数
- detail:
any树节点选择的数据
返回:void

BIMFlux AI
