开发:更新api

This commit is contained in:
FishOrBear
2022-02-16 11:15:31 +08:00
parent 4388a1f7c8
commit 8477786c73
1180 changed files with 37656 additions and 13243 deletions

View File

@@ -1,23 +1,34 @@
import { Singleton } from "../Common/Singleton";
import { Command } from "../Editor/CommandMachine";
import { ICommand } from "../UI/Components/CommandPanel/CommandList";
/**
* 保存CAD的自定义命令,统一由这里经过CRUD操作
*/
export declare class CommandServer extends Singleton {
private _customCommand;
private _needUpload;
CommandListMap: Map<string, string>;
AddCustonCommand(icommand: ICommand): void;
DeleteCustonCommand(icommand: ICommand): void;
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>;
ChangeCustonCommand(icommand: ICommand): void;
GetCommandCanUseDefaultCustomCmd(cmd: ICommand): boolean;
GetCommandCanUseDefaultHotkey(cmd: ICommand): boolean;
Reset(): Promise<void>;
Upload(): Promise<void>;
ReadCommandlist(): Promise<ICommand[]>;
SaveOldDataToServer(): Promise<void>;
InitCommandCustomCmdAndHotkey(): Promise<void>;
ClearCustonCommand(): void;
private ReadCustomCommandlist;
private _LastScrollTop;
SetLastScrollTop(scrollTop: number): Promise<void>;
GetLastScrollTop(): Promise<number>;
}
export declare class UpgradeData implements Command {
exec(): Promise<void>;
private RegistCustomCommand;
private DeleteCustomCommand;
private RegistHotkey;
private DeleteHotkey;
}
//# sourceMappingURL=CommandServer.d.ts.map