UNPKG

@glowjs/core

Version:

GlowJS数字孪生引擎核心库。

50 lines (49 loc) 989 B
import { HighlightLayer } from '../runtime'; import { Entity } from '../entity/Entity'; import { Base } from '../base/Base'; import { App } from '../core/App'; /** * 高亮层 */ export declare class HighLight extends Base { _layer: HighlightLayer; private _entites; /** * 实例化一个高亮层对象 * @param app 应用 */ constructor(app: App); /** * 添加实体 * @param entites 实体 */ add(...entites: Entity[]): void; /** * 是否包含指定的实体 * @param item 实体 */ includes(item: Entity): boolean; /** * 移除实体 * @param entites 实体 */ remove(...entites: Entity[]): void; /** * 清理 */ clean(): void; private _removeAllMeshes; /** * 重置 */ reset(): void; /** * 获取或设置启用 */ get enable(): boolean; set enable(value: boolean); /** * 释放 */ dispose(): void; }