Appearance
Documentation / @geoverse/editor-ol / MirrorCommand
Class: MirrorCommand
Defined in: editor-core/dist/commands/transformCommands.d.ts:29
镜像翻转(N 个,绕过选择集中心的轴或自定义轴)。
Implements
Command
Constructors
Constructor
ts
new MirrorCommand(ids, axis?): MirrorCommand;Defined in: editor-core/dist/commands/transformCommands.d.ts:34
Parameters
ids
string[]
axis?
MirrorAxis
Returns
MirrorCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: editor-core/dist/commands/transformCommands.d.ts:33
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
ts
Command.appliesTolabel
ts
readonly label: "镜像翻转" = "\u955C\u50CF\u7FFB\u8F6C";Defined in: editor-core/dist/commands/transformCommands.d.ts:32
Implementation of
ts
Command.labelMethods
plan()
ts
plan(ctx): ChangeSet;Defined in: editor-core/dist/commands/transformCommands.d.ts:35
Parameters
ctx
EditContext
Returns
ChangeSet
Implementation of
ts
Command.plan