/** * @file Enhance CommonToolUtils with getCurrentOperation, solving circular reference problems. * @createDate 2022-08-12 * @author Ron */ import { ECheckModel, EToolName } from '@/constant/tool'; import ScribbleTool from '@/core/toolOperation/ScribbleTool'; import CuboidOperation from '@/core/toolOperation/cuboidOperation'; import PointCloud2dOperation from '@/core/toolOperation/pointCloud2dOperation'; import CheckOperation from '../../core/toolOperation/checkOperation'; import PolygonOperation from '../../core/toolOperation/polygonOperation'; import RectOperationAsNewName from '../../core/toolOperation/rectOperation'; import TagOperation from '../../core/toolOperation/tagOperation'; import LineToolOperation from '../../core/toolOperation/LineToolOperation'; import PointOperation from '../../core/toolOperation/pointOperation'; import TextToolOperation from '../../core/toolOperation/TextToolOperation'; import CommonToolUtils from './CommonToolUtils'; declare const getCurrentOperation: (toolName: EToolName | ECheckModel) => typeof LineToolOperation | typeof PointOperation | typeof PolygonOperation | typeof RectOperationAsNewName | typeof TagOperation | typeof TextToolOperation | typeof ScribbleTool | typeof PointCloud2dOperation | typeof CuboidOperation | typeof CheckOperation; declare class EnhanceCommonToolUtils extends CommonToolUtils { static getCurrentOperation: (toolName: EToolName | ECheckModel) => typeof LineToolOperation | typeof PointOperation | typeof PolygonOperation | typeof RectOperationAsNewName | typeof TagOperation | typeof TextToolOperation | typeof ScribbleTool | typeof PointCloud2dOperation | typeof CuboidOperation | typeof CheckOperation; } export { getCurrentOperation }; export default EnhanceCommonToolUtils;