Skip to content

Documentation / @geoverse/editor-ol / SplitMultiPolygonCommand

Class: SplitMultiPolygonCommand ​

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

面拆分多面(MultiPolygon → N×Polygon,1→N)。各 Polygon 继承原属性。 对应「不相邻面合并成 MultiPolygon」的逆操作(JSTS union 不相邻面产出 MultiPolygon)。

Implements ​

  • Command

Constructors ​

Constructor ​

ts
new SplitMultiPolygonCommand(id): SplitMultiPolygonCommand;

Defined in: editor-core/dist/commands/splitMultiPolygon.d.ts:10

Parameters ​

id ​

string

Returns ​

SplitMultiPolygonCommand

Properties ​

appliesTo ​

ts
readonly appliesTo: readonly GeometryKind[];

Defined in: editor-core/dist/commands/splitMultiPolygon.d.ts:9

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

Implementation of ​

ts
Command.appliesTo

label ​

ts
readonly label: "面拆分多面" = "\u9762\u62C6\u5206\u591A\u9762";

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

Implementation of ​

ts
Command.label

Methods ​

plan() ​

ts
plan(ctx): ChangeSet;

Defined in: editor-core/dist/commands/splitMultiPolygon.d.ts:11

Parameters ​

ctx ​

EditContext

Returns ​

ChangeSet

Implementation of ​

ts
Command.plan