Skip to content

Panel 信息面板 ​

安装 ​

sh
npm install @poggi/geography-core
pnpm add @poggi/geography-core
yarn add @poggi/geography-core

基本用法 ​

loading

API ​

Attributes ​

属性名说明类型默认值
id唯一编号string随机uuid
position坐标Cartesian3(1,1,1)

methods ​

constructor(container: Container, options: IPanelConstructorOptions) 构造函数

setVisible(visible: boolean)

设置显示状态

update()

更新

destroy()

销毁

Interfaces ​

IPanelConstructorOptions

属性名说明类型是否必选默认值
elementDOM元素HTMLElement是-
className样式类名string否-
anchorPoint锚点AnchorPoint否AnchorPoint.CENTER
offset偏移量Cartesian2否(0,0)
initShow是否初始显示boolean否false
position坐标Cartesian3否(1,1,1)