CustomWidget
构造函数
关系
Extends
CustomWidget Extends BaseWidget
继承: BaseWidget
Implements
CustomWidget Implements ICustomWidget
实现接口: ICustomWidget
构造函数
CustomWidget
构造函数
new CustomWidget(scene, props)
参数
- scene:
IScene场景实例 - props:
CustomProps自定义组件属性配置
返回:CustomWidget CustomWidget对象
属性
container
容器元素
container?: string | HTMLElement
类型: string | HTMLElement
hide
隐藏方法
hide: (
类型: (
name
小部件名称
name: string
类型: string
onAdd
添加到地图时的回调
onAdd: (
类型: (
onRemove
移除时的回调
onRemove: (
类型: (
onUpdate
更新时的回调
onUpdate: (
类型: (
position
位置
position: string
类型: string
props
组件属性配置
props: CustomProps
类型: CustomProps
scene
所属场景实例
scene: IScene
类型: IScene
selectable
是否可选择
selectable: boolean
类型: boolean
show
显示方法
show: (
类型: (
方法
view
获取视图实例
view(): ICustom
返回:ICustom

BIMFlux AI
