This commit is contained in:
ChenX
2024-10-29 17:14:43 +08:00
parent 3cdbeeb178
commit dccd6ec73e
2683 changed files with 37067 additions and 201 deletions

View File

@@ -0,0 +1,38 @@
import { ICommand } from "../UI/Components/CommandPanel/CommandList";
/**
* 保存CAD的自定义命令,统一由这里经过CRUD操作
*/
export declare class CommandServer {
private _NeedUpload;
private _CustomCommand;
private _CustomCommandMap;
private _CommandCustomMap;
private _CommandHotKeyMap;
private _HotKeyCommandMap;
private constructor();
private static _SingleInstance;
static GetInstance(): CommandServer;
get CustomCommandMap(): Map<string, string>;
get HotKeyCommandMap(): Map<string, string>;
get CommandHotKeyMap(): Map<string, string>;
/** 只读,仅供导出使用 */
get CustomCommand(): {
[key: string]: ICommand;
};
ChangeCustonCommand(icommand: ICommand): void;
GetCommandCanUseDefaultCustomCmd(cmd: ICommand): boolean;
GetCommandCanUseDefaultHotkey(cmd: ICommand): boolean;
Reset(): Promise<void>;
Upload(): Promise<void>;
InitCommandCustomCmdAndHotkey(): Promise<void>;
ClearCustonCommand(): void;
private ReadCustomCommandlist;
private _LastScrollTop;
SetLastScrollTop(scrollTop: number): Promise<void>;
GetLastScrollTop(): Promise<number>;
private RegistCustomCommand;
private DeleteCustomCommand;
private RegistHotkey;
private DeleteHotkey;
}
//# sourceMappingURL=CommandServer.d.ts.map