import { Annotation } from "@xtctwins/tctwins-core"; import Controller from "../Controller"; import EventTrigger from "../EventTrigger"; export declare type AnnotationContent = { /** 当前标注所在模型ID */ modelId: string; /** 当前标注ID */ entityId: string; /** 当前标注类型 */ type: string; /** 当前标注内容 */ content: object; /** 当前标注坐标 */ worldPos: []; }; /** * 表示是一个标注工具类 * @class */ export default class AnnotationTool extends Controller { private annotationsPlugin; private _AnnotationList; currentAnnotation: any; _currentType: string; protected _modelId: string; protected eventTrigger: EventTrigger; protected annotationWrapper: HTMLElement; /** 创建一个标注工具对象 @param {*} parent @param {*} cfg */ constructor(parent: any, cfg: any); setAllVisible(visible: boolean): void; clickToCreateAnno(event: any): void; private getTime; getCanvasPos(event: any | undefined | null): any; /** * 设置当前标注类型 * @param {string} type */ setCurrentType(type: string): void; private initCreateAnnotation; showAnnotationList(): void; addAnnotation(id: string, worldPos: number[], type: string): void; private clear; get AnnotationList(): any; set AnnotationList(value: any); private getTypeImage; destroyAnnotationById(entityid: string): void; /** * 获取指定id的标注对象 * @param {string} entityid * @return {} annotationsPlugin.annotations[entityid] * */ getAnnotationById(entityid: string): Annotation; /** * 获取标注插件标注列表 * @return {} annotationsPlugin.annotations */ get annotationPluginList(): any; destroy(): void; }