Appearance
Documentation / @geoverse/editor-core / MergePointsCommand
Class: MergePointsCommand
Defined in: packages/editor-core/src/commands/mergePoints.ts:13
点合并(N×Point/MultiPoint → 1×MultiPoint,N→1)。继承首个要素属性。
Implements
Constructors
Constructor
ts
new MergePointsCommand(ids): MergePointsCommand;Defined in: packages/editor-core/src/commands/mergePoints.ts:16
Parameters
ids
string[]
Returns
MergePointsCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: packages/editor-core/src/commands/mergePoints.ts:15
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
label
ts
readonly label: "点合并" = '点合并';Defined in: packages/editor-core/src/commands/mergePoints.ts:14
Implementation of
Methods
plan()
ts
plan(ctx): ChangeSet;Defined in: packages/editor-core/src/commands/mergePoints.ts:18
