Skip to content

Documentation / @geoverse/editor-core / MirrorCommand

Class: MirrorCommand ​

Defined in: packages/editor-core/src/commands/transformCommands.ts:102

镜像翻转(N 个,绕过选择集中心的轴或自定义轴)。

Implements ​

Constructors ​

Constructor ​

ts
new MirrorCommand(ids, axis?): MirrorCommand;

Defined in: packages/editor-core/src/commands/transformCommands.ts:105

Parameters ​

ids ​

string[]

axis? ​

MirrorAxis = 'vertical'

Returns ​

MirrorCommand

Properties ​

appliesTo ​

ts
readonly appliesTo: readonly GeometryKind[] = ALL_KINDS;

Defined in: packages/editor-core/src/commands/transformCommands.ts:104

适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。

Implementation of ​

Command.appliesTo


label ​

ts
readonly label: "镜像翻转" = '镜像翻转';

Defined in: packages/editor-core/src/commands/transformCommands.ts:103

Implementation of ​

Command.label

Methods ​

plan() ​

ts
plan(ctx): ChangeSet;

Defined in: packages/editor-core/src/commands/transformCommands.ts:110

Parameters ​

ctx ​

EditContext

Returns ​

ChangeSet

Implementation of ​

Command.plan