Skip to content

Documentation / @geoverse/editor-libre / MergePolygonsCommand

Class: MergePolygonsCommand

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

面合并(N→1,JSTS 稳健 union,处理共享边)。允许 Polygon/MultiPolygon 混合。

Implements

  • Command

Constructors

Constructor

ts
new MergePolygonsCommand(ids): MergePolygonsCommand;

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

Parameters

ids

string[]

Returns

MergePolygonsCommand

Properties

appliesTo

ts
readonly appliesTo: readonly GeometryKind[];

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

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

Implementation of

ts
Command.appliesTo

label

ts
readonly label: "面合并" = "\u9762\u5408\u5E76";

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

Implementation of

ts
Command.label

Methods

plan()

ts
plan(ctx): ChangeSet;

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

Parameters

ctx

EditContext

Returns

ChangeSet

Implementation of

ts
Command.plan