UNPKG

@glowjs/core

Version:

GlowJS数字孪生引擎核心库。

48 lines (47 loc) 1.16 kB
import { Entity } from '../../Entity'; import { Component } from '../Component'; import { Cabinet } from './Cabinet'; import { CabinetCapacityData } from './CabinetCapacityData'; import { RackMounted } from './RackMounted'; /** * 机柜管理器 */ export declare class CabinetMgr extends Component { /** * 资产模型配置字典 */ static readonly assetModelConfigDic: Map<string, any>; /** * 获取资产模型配置 * @param model_id 模型ID * @param uheight U高 */ static getAssetModelConfig(model_id: string, uheight: number): any; /** * 当前场景机柜列表 */ readonly cabinets: Cabinet[]; _capacity: boolean; /** * 当前选中的机柜 */ _selected: Cabinet; /** * 定位的资产设备 */ _tracked: RackMounted; /** * 实例化一个机柜管理器对象 * @param entity 实体(楼层或园区) */ constructor(entity: Entity); /** * 显示容量 * @param data 容量数据 */ showCapacity(data: CabinetCapacityData[]): void; /** * 隐藏容量 */ hideCapacity(): void; }