UNPKG

@turbox3d/design-engine

Version:

Large-scale design application engine library

21 lines (20 loc) 751 B
import { Command } from '@turbox3d/command-manager'; import { ViewEntity } from '@turbox3d/event-manager'; import SelectionCommand from '../selection-command/index'; import EntityObject from '../entity-object'; export default class HintCommand extends Command { private hintDomain; private selection?; /** * @param selectionCommand selection command 实例,hint 与 select 同时启用时需要传入 */ active(selectionCommand?: SelectionCommand): void; /** 获取被 hover 的 entity */ getHintedEntity(): EntityObject | undefined; /** hint 指定 entity */ hint(model: EntityObject): void; /** 取消 hint */ unHint(): void; onHoverIn(viewEntity: ViewEntity): void; onHoverOut(): void; }