Skip to content

KBE3D / KBCore / utils / PopupEventData

接口: PopupEventData

弹窗类事件数据类型

属性

id

id: string

popup的唯一id,所有事件都有


popup: Popup

popup实例,所有事件都有


info?

optional info: { showData: string | Record<string, any>; cartesian: Cartesian3; windowPosition: Cartesian2; }

popup信息,openPopup事件独有

showData

showData: string | Record<string, any>

popup信息-要展示的数据

cartesian

cartesian: Cartesian3

popup信息-对应的地理笛卡尔坐标

windowPosition

windowPosition: Cartesian2

popup信息-对应的窗口xy坐标


pos?

optional pos: { left: string; right: string; top: string; bottom: string; direction?: "right" | "left" | "bottom" | "top"; }

窗口位置,changePopupPosition事件独有

left

left: string

right: string

top

top: string

bottom

bottom: string

direction?

optional direction: "right" | "left" | "bottom" | "top"

方向,默认为'top',代表上边

KBE3D @3.0.0 Copyright © 2024-present KBE3D