Appearance
Documentation / @geoverse/editor-libre / ScaleCommand
Class: ScaleCommand
Defined in: editor-core/dist/commands/transformCommands.d.ts:14
缩放要素(等比 factor,绕 origin 或选择集中心)。
Implements
Command
Constructors
Constructor
ts
new ScaleCommand(
ids,
factor,
origin?): ScaleCommand;Defined in: editor-core/dist/commands/transformCommands.d.ts:20
Parameters
ids
string[]
factor
number
origin?
Position
Returns
ScaleCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: editor-core/dist/commands/transformCommands.d.ts:19
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
ts
Command.appliesTolabel
ts
readonly label: "缩放要素" = "\u7F29\u653E\u8981\u7D20";Defined in: editor-core/dist/commands/transformCommands.d.ts:18
Implementation of
ts
Command.labelMethods
plan()
ts
plan(ctx): ChangeSet;Defined in: editor-core/dist/commands/transformCommands.d.ts:21
Parameters
ctx
EditContext
Returns
ChangeSet
Implementation of
ts
Command.plan