本页由脚本自动生成,请勿手动编辑。如需补充说明,请使用
::: tip块。
Defined in: commands/align-elements-command.d.ts:3
Extends
Constructors
Constructor
ts
new AlignElementsCommand(
host,
alignment,
elementIds): AlignElementsCommand;Defined in: commands/align-elements-command.d.ts:8
Parameters
| Parameter | Type |
|---|---|
host | EditorHost |
alignment | "top" | "bottom" | "left" | "right" | "centerX" | "centerY" |
elementIds | string[] |
Returns
AlignElementsCommand
Overrides
Properties
name
ts
name: string;Defined in: commands/align-elements-command.d.ts:6
Overrides
timestamp
ts
timestamp: number;Defined in: commands/base-command.d.ts:5
Inherited from
description?
ts
optional description?: string;Defined in: commands/base-command.d.ts:6
Inherited from
Methods
execute()
ts
execute(): void;Defined in: commands/align-elements-command.d.ts:9
Returns
void
Overrides
undo()
ts
undo(): void;Defined in: commands/align-elements-command.d.ts:10
Returns
void
Overrides
redo()
ts
redo(): void;Defined in: commands/base-command.d.ts:11
Returns
void
Inherited from
canMergeWith()?
ts
optional canMergeWith(command): boolean;Defined in: commands/base-command.d.ts:12
Parameters
| Parameter | Type |
|---|---|
command | ICommand |
Returns
boolean
Inherited from
mergeWith()?
ts
optional mergeWith(command): ICommand;Defined in: commands/base-command.d.ts:13
Parameters
| Parameter | Type |
|---|---|
command | ICommand |