Skip to content

Documentation / @geoverse/editor-libre / SplitMultiPointCommand

Class: SplitMultiPointCommand

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

点拆分多点(MultiPoint → N×Point,1→N)。各 Point 继承原属性。

Implements

  • Command

Constructors

Constructor

ts
new SplitMultiPointCommand(id): SplitMultiPointCommand;

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

Parameters

id

string

Returns

SplitMultiPointCommand

Properties

appliesTo

ts
readonly appliesTo: readonly GeometryKind[];

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

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

Implementation of

ts
Command.appliesTo

label

ts
readonly label: "点拆分多点" = "\u70B9\u62C6\u5206\u591A\u70B9";

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

Implementation of

ts
Command.label

Methods

plan()

ts
plan(ctx): ChangeSet;

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

Parameters

ctx

EditContext

Returns

ChangeSet

Implementation of

ts
Command.plan