Appearance
Documentation / @geoverse/editor-core / ScaleCommand
Class: ScaleCommand
Defined in: packages/editor-core/src/commands/transformCommands.ts:65
缩放要素(等比 factor,绕 origin 或选择集中心)。
Implements
Constructors
Constructor
ts
new ScaleCommand(
ids,
factor,
origin?): ScaleCommand;Defined in: packages/editor-core/src/commands/transformCommands.ts:68
Parameters
ids
string[]
factor
number
origin?
Position
Returns
ScaleCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[] = ALL_KINDS;Defined in: packages/editor-core/src/commands/transformCommands.ts:67
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
label
ts
readonly label: "缩放要素" = '缩放要素';Defined in: packages/editor-core/src/commands/transformCommands.ts:66
Implementation of
Methods
plan()
ts
plan(ctx): ChangeSet;Defined in: packages/editor-core/src/commands/transformCommands.ts:74
