本页由脚本自动生成,请勿手动编辑。如需补充说明,请使用
::: tip块。
Defined in: commands/base-command.d.ts:3
Extended by
AddElementCommandRemoveElementCommandTransformElementCommandUpdatePropertyCommandClearSelectionCommandBatchCommandChangeLayerOrderCommandAlignElementsCommandDistributeElementsCommand
Implements
Constructors
Constructor
ts
new BaseCommand(host, description?): BaseCommand;Defined in: commands/base-command.d.ts:8
Parameters
| Parameter | Type |
|---|---|
host | EditorHost |
description? | string |
Returns
BaseCommand
Properties
name
ts
abstract name: string;Defined in: commands/base-command.d.ts:4
Implementation of
timestamp
ts
timestamp: number;Defined in: commands/base-command.d.ts:5
Implementation of
description?
ts
optional description?: string;Defined in: commands/base-command.d.ts:6
Implementation of
Methods
execute()
ts
abstract execute(): void;Defined in: commands/base-command.d.ts:9
Returns
void
Implementation of
undo()
ts
abstract undo(): void;Defined in: commands/base-command.d.ts:10
Returns
void
Implementation of
redo()
ts
redo(): void;Defined in: commands/base-command.d.ts:11
Returns
void
Implementation of
canMergeWith()?
ts
optional canMergeWith(command): boolean;Defined in: commands/base-command.d.ts:12
Parameters
| Parameter | Type |
|---|---|
command | ICommand |
Returns
boolean
Implementation of
mergeWith()?
ts
optional mergeWith(command): ICommand;Defined in: commands/base-command.d.ts:13
Parameters
| Parameter | Type |
|---|---|
command | ICommand |