UNPKG

@glowjs/core

Version:

GlowJS数字孪生引擎核心库。

107 lines (106 loc) 2.3 kB
import { EventDispatcher } from '../event/EventDispatcher'; import { Point2D, Point3D } from '../misc'; import { InfoListDataItem } from './InfoListDataItem'; /** * 信息列表面板 */ export declare class InfoListPanel extends EventDispatcher { /** * 顶部图片地址 */ static top_url: string; /** * 中间图片地址 */ static center_url: string; /** * 底部图片地址 */ static bottom_url: string; private _list; /** * 锚点 */ private _anchor; /** * 根 */ private _root; /** * 容器 */ private _container; /** * 上一次点击的时间点,用于计算双击事件 */ private _lastClickTime; /** * 提示信息 */ tip: string; private _canvas; private _grid; private _title; private _size; _height_percent: number; /** * * @param type 类型 * @param title 标题 * @param list 数据列表 */ constructor(type: '2D' | '3D', title: string, list: InfoListDataItem[]); private _onResize; /** * 获取类型 */ get type(): '2D' | '3D'; /** * 获取尺寸大小(2D模式是像素,3D模式是长度) */ get size(): Point2D; /** * 获取或设置渲染顺序(仅3D有效) */ get renderOrder(): number; set renderOrder(value: number); /** * 获取或设置是否响应鼠标指针事件,默认true */ get isPointerBlocker(): boolean; set isPointerBlocker(value: boolean); /** * 获取或设置位置(世界坐标) */ get position(): Point3D; set position(value: Point3D); /** * 获取或设置旋转 */ get rotation(): number; set rotation(value: number); /** * 获取或设置可见性 */ get visable(): boolean; set visable(value: boolean); /** * 获取或设置指针样式 */ get cursor(): string; set cursor(value: string); /** * 获取或设置数据列表 */ get list(): InfoListDataItem[]; set list(value: InfoListDataItem[]); /** * 获取或设置标题 */ get title(): string; set title(value: string); /** * 释放 */ dispose(): void; }