Skip to content

本页由脚本自动生成,请勿手动编辑。如需补充说明,请使用 ::: tip 块。

Defined in: commands/change-layer-order-command.d.ts:3

Extends

Constructors

Constructor

ts
new ChangeLayerOrderCommand(
   host, 
   elementId, 
   direction): ChangeLayerOrderCommand;

Defined in: commands/change-layer-order-command.d.ts:8

Parameters

ParameterType
hostEditorHost
elementIdstring
direction"up" | "down" | "top" | "bottom"

Returns

ChangeLayerOrderCommand

Overrides

BaseCommand.constructor

Properties

timestamp

ts
timestamp: number;

Defined in: commands/base-command.d.ts:5

Inherited from

BaseCommand.timestamp


description?

ts
optional description?: string;

Defined in: commands/base-command.d.ts:6

Inherited from

BaseCommand.description


name

ts
name: string;

Defined in: commands/change-layer-order-command.d.ts:6

Overrides

BaseCommand.name

Methods

redo()

ts
redo(): void;

Defined in: commands/base-command.d.ts:11

Returns

void

Inherited from

BaseCommand.redo


canMergeWith()?

ts
optional canMergeWith(command): boolean;

Defined in: commands/base-command.d.ts:12

Parameters

ParameterType
commandICommand

Returns

boolean

Inherited from

BaseCommand.canMergeWith


mergeWith()?

ts
optional mergeWith(command): ICommand;

Defined in: commands/base-command.d.ts:13

Parameters

ParameterType
commandICommand

Returns

ICommand

Inherited from

BaseCommand.mergeWith


execute()

ts
execute(): void;

Defined in: commands/change-layer-order-command.d.ts:9

Returns

void

Overrides

BaseCommand.execute


undo()

ts
undo(): void;

Defined in: commands/change-layer-order-command.d.ts:10

Returns

void

Overrides

BaseCommand.undo

基于 MIT 许可发布