Skip to content

Documentation / @geoverse/editor-ol / MergePointsCommand

Class: MergePointsCommand

Defined in: editor-core/dist/commands/mergePoints.d.ts:3

点合并(N×Point/MultiPoint → 1×MultiPoint,N→1)。继承首个要素属性。

Implements

  • Command

Constructors

Constructor

ts
new MergePointsCommand(ids): MergePointsCommand;

Defined in: editor-core/dist/commands/mergePoints.d.ts:7

Parameters

ids

string[]

Returns

MergePointsCommand

Properties

appliesTo

ts
readonly appliesTo: readonly GeometryKind[];

Defined in: editor-core/dist/commands/mergePoints.d.ts:6

适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。

Implementation of

ts
Command.appliesTo

label

ts
readonly label: "点合并" = "\u70B9\u5408\u5E76";

Defined in: editor-core/dist/commands/mergePoints.d.ts:5

Implementation of

ts
Command.label

Methods

plan()

ts
plan(ctx): ChangeSet;

Defined in: editor-core/dist/commands/mergePoints.d.ts:8

Parameters

ctx

EditContext

Returns

ChangeSet

Implementation of

ts
Command.plan