SelectView

用于显示选择插件的用户界面,支持绘制选择、属性选择和穿透选择功能

关系

Extends

SelectView Extends Widget

继承: Widget

Implements

SelectView Implements ISelectView

实现接口: ISelectView

用于显示选择插件的用户界面,支持绘制选择、属性选择和穿透选择功能

构造函数

SelectView

构造函数

new SelectView(props)

参数

返回:SelectView SelectView对象

属性

afterCreate

afterCreate: any

类型: any

afterRemoved

afterRemoved: any

类型: any

afterUpdate

afterUpdate: any

类型: any

allLayer

图层 Option

allLayer: ILayerSelectOption

allLayerAttributeOption

所有图层的可用属性Option

allLayerAttributeOption: ILayerSelectOption

attributeSelectFeaturesList

属性选择选中的构件要素信息列表

attributeSelectFeaturesList: IListItem

类型: IListItem

attributeSelectFeaturesListNode

属性选择要素列表节点

attributeSelectFeaturesListNode: HTMLElement

类型: HTMLElement

attributeSelectModel

属性选择模型

attributeSelectModel: IAttributeSelectModel

attributeSelectType

属性值选择计算类型

attributeSelectType: ">" | "<" | "=" | "<>" | ">=" | "<=" = '='

类型: ">" | "<" | "=" | "<>" | ">=" | "<="

默认值:'='

attributeSelectTypeOption

图层属性值选择计算类型 Option

attributeSelectTypeOption: ILayerSelectOption

attributeValue

可用属性对应的属性值

attributeValue: string | number = '2F'

类型: string | number

默认值:'2F'

children

children: any

类型: any

dialogNode

对话框节点

dialogNode: any

类型: any

drawingSelectFeaturesList

绘制选择选中的构件要素信息列表

drawingSelectFeaturesList: IListItem

类型: IListItem

drawingSelectFeaturesListNode

绘制选择要素列表节点

drawingSelectFeaturesListNode: any

类型: any

drawingSelectFormNode

绘制选择表单节点

drawingSelectFormNode: any

类型: any

drawingSelectFormSchemas

绘制选择表单配置

drawingSelectFormSchemas: (

类型: (

drawingSelectModel

绘制选择模型

drawingSelectModel: IDrawingSelectModel

drawingSelectTabs

绘制类型

drawingSelectTabs: object[]

类型: object[]

drawingSelectTabsNode

绘制选择标签页节点

drawingSelectTabsNode: ITabsNode

类型: ITabsNode

key

key: any

类型: any

layerAttributeOption

图层可用属性 Option

layerAttributeOption: ILayerSelectOption

props

视图属性

props: ISelectViewProps

selectLayer

此时选中的图层

selectLayer: any

类型: any

selectLayerAttribute

此时选中的图层可用属性

selectLayerAttribute: string | number

类型: string | number

tabs

选择分类

tabs: object[]

类型: object[]

tabsId

当前选中的标签页ID

tabsId: string

类型: string

throughSelectArr

透选选中的全部构件

throughSelectArr: object[] = []

类型: object[]

默认值:

throughSelectModel

穿透选择模型

throughSelectModel: IThroughSelectModel

throughSelectSceneClick

场景左键点击事件监听

throughSelectSceneClick: any

类型: any

throughSelectSwitch

穿透选择开关节点

throughSelectSwitch: HTMLElement

类型: HTMLElement

uiStrings

uiStrings: any

类型: any

viewModel

viewModel: any

类型: any

访问器

container

set container(containerValue: any): void

参数

  • containerValue: any

返回: void

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

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

allThroughSelectClick

监听场景点击事件 点击场景某一点高亮所有透选构件

allThroughSelectClick(): void

返回:void

attributeSelect

开启属性选择

attributeSelect(): Promise

返回:Promise

attributeSelectClose

关闭所有属性选择构件的操作

attributeSelectClose(): void

返回:void

attributeSelectFeaturesRemove

置空属性选择选中要素的列表

attributeSelectFeaturesRemove(): void

返回:void

attributeSelectTypeChange

属性值选择计算类型切换事件

attributeSelectTypeChange(value): void

参数

  • value: ">" | "<" | "=" | "<>" | ">=" | "<=" 计算类型

返回:void

attributeValueChange

属性值输入框修改事件

attributeValueChange(value): void

参数

  • value: string | number 属性值

返回:void

beforeFirstRender

Returns

beforeFirstRender(): Promise

返回:Promise

castContainer

castContainer(element): any

参数

  • element: any

返回:any

changeHandle

处理选择变更事件

changeHandle(e): void

参数

  • e: CustomEvent<{[key: string]: string | boolean; }> 自定义事件对象,包含键值对形式的变更数据

返回:void

classes

classes(...args): any

参数

  • args: ...any

返回:any

close

标注关闭

close(): void

返回:void

destroy

Returns

destroy(): void

返回:void

drawingSelectClickOperate

取消绘制选择的绘制或删除绘制选择所绘制的所有图形

drawingSelectClickOperate(type, e): void

参数

  • type: string 操作类型
  • e: any 事件对象

返回:void

drawingSelectClose

绘制选择插件关闭

drawingSelectClose(): void

返回:void

drawingSelectFeaturesRemove

置空绘制选择选中要素的列表

drawingSelectFeaturesRemove(): void

返回:void

drawingSelectFormChanged

表单修改事件

drawingSelectFormChanged(schemas): void

参数

  • schemas: any 表单数据

返回:void

drawingSelectInit

绘制选择初始化

drawingSelectInit(): void

返回:void

drawingSelectTabsChange

绘制选择绘制修改事件

drawingSelectTabsChange(): void

返回:void

getAttributeSelectFeaturesArr

获取属性选择所选中构件要素信息对象并赋值list列表展示

getAttributeSelectFeaturesArr(): void

返回:void

getDrawingSelectFeaturesArrObj

获取绘制选择所选中构件要素信息对象并赋值list列表展示

getDrawingSelectFeaturesArrObj(): void

返回:void

getLayer

获取场景中的所有layer并重新渲染视图view

getLayer(): Promise

返回:Promise

init

初始化视图

init(): void

返回:void

loadDependencies

Returns

loadDependencies(): any

返回:any

loadLocale

Returns

loadLocale(): any

返回:any

normalizeCtorArgs

normalizeCtorArgs(args, container): any

参数

  • args: any
  • container: any

返回:any

open

打开对话框

open(): void

返回:void

postInitialize

Returns

postInitialize(): void

返回:void

render

渲染选择视图

render(): any

返回:any

renderNow

Returns

renderNow(): void

返回:void

scheduleRender

Returns

scheduleRender(): void

返回:void

selectLayerAttributeChange

图层可用属性切换事件

selectLayerAttributeChange(value): void

参数

  • value: string | number 此时选中的可用属性

返回:void

selectLayerChange

下拉框修改选中事件

selectLayerChange(value): void

参数

  • value: string 此时选中的可用属性

返回:void

setDrawingSelectTabsActiveId

通过监听图形绘制选择的绘制完成事件来设置 drawingSelectTabsNode 组件高亮项

setDrawingSelectTabsActiveId(): void

返回:void

show

标注开启

show(): void

返回:void

tabsChanged

tabs修改事件

tabsChanged(id): void

参数

  • id: string 此刻选中tabs项的id

返回:void

themeChange

处理主题变更事件

themeChange(e): void

参数

  • e: CustomEvent 自定义事件对象

返回:void

throughSelectClose

关闭所有透选构件的操作

throughSelectClose(): void

返回:void

throughSelectSwitchChange

穿透选择是否开启 点击场景某一点高亮所有透选构件

throughSelectSwitchChange(value): void

参数

  • value: boolean 是否开启

返回:void

toggle

切换显示状态

toggle(): void

返回:void

BIMFlux AI