Appearance
Documentation / @geoverse/editor-core / RotateCommand
Class: RotateCommand
Defined in: packages/editor-core/src/commands/transformCommands.ts:36
旋转要素(N 个,绕 origin 或选择集中心,deg 度逆时针)。
Implements
Constructors
Constructor
ts
new RotateCommand(
ids,
deg,
origin?): RotateCommand;Defined in: packages/editor-core/src/commands/transformCommands.ts:39
Parameters
ids
string[]
deg
number
origin?
Position
Returns
RotateCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[] = ALL_KINDS;Defined in: packages/editor-core/src/commands/transformCommands.ts:38
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
label
ts
readonly label: "旋转要素" = '旋转要素';Defined in: packages/editor-core/src/commands/transformCommands.ts:37
Implementation of
Methods
plan()
ts
plan(ctx): ChangeSet;Defined in: packages/editor-core/src/commands/transformCommands.ts:45
