UNPKG

@glowjs/core

Version:

GlowJS数字孪生引擎核心库。

96 lines (95 loc) 2.12 kB
import { Component } from '.././Component'; import { Entity } from '../../Entity'; import { HeatmapType } from './HeatmapType'; import { Mesh, ParticleSystem } from '../../../runtime'; import { Room } from '../../Room'; import { Billboard } from '../../../gui/Billboard'; /** * 热力图 */ export declare class Heatmap extends Component { /** * 最小值 */ static min: number; /** * 最大值 */ static max: number; /** * 缩放倍数 */ static scale: number; /** * 单位(显示数值时使用) */ static unit: string; /** * 图层 */ static layers: { name: string; offsetY: number; }[]; private _heattype; private _layerName; private _built; _meshes: Mesh[]; _particleSystems: ParticleSystem[]; _tips: Billboard[]; private _renderType; private _renderLayerName; /** * 数据点位列表 */ readonly points: Entity[]; /** * 房间列表 */ readonly rooms: Room[]; private _showValues; /** * 获取或设置是否显示值 */ get showValues(): boolean; set showValues(value: boolean); /** * 获取或设置热力图类型 */ get heattype(): HeatmapType; set heattype(value: HeatmapType); /** * 获取或设置热力图图层名称(仅水平图有效) */ get layerName(): string; set layerName(value: string); /** * 实例化一个热力图对象 * @param entity 楼层 */ constructor(entity: Entity); private _fixMirrorBug; /** * 创建 */ private _build; /** * 拆毁 */ unbuild(): void; /** * 渲染 */ render(): Promise<void>; /** * 清理 */ clean(): void; /** * 显示指定类型的热力图 * @param type 类型 * @param layerName 层名称 */ show(type: HeatmapType, layerName?: string): Promise<void>; dispose(): void; }