深浅模式
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
| 属性名 | 说明 | 类型 | 是否必选 | 默认值 |
|---|---|---|---|---|
| element | DOM元素 | HTMLElement | 是 | - |
| className | 样式类名 | string | 否 | - |
| anchorPoint | 锚点 | AnchorPoint | 否 | AnchorPoint.CENTER |
| offset | 偏移量 | Cartesian2 | 否 | (0,0) |
| initShow | 是否初始显示 | boolean | 否 | false |
| position | 坐标 | Cartesian3 | 否 | (1,1,1) |
