Skip to content

Documentation / @geoverse/editor-core / SplitMultiLineStringCommand

Class: SplitMultiLineStringCommand

Defined in: packages/editor-core/src/commands/splitMultiLineString.ts:15

多线拆分(MultiLineString → N×LineString,1→N)。各 LineString 继承原属性。 是 CombineLinesCommand(N 线 → 多线)的逆操作。

Implements

Constructors

Constructor

ts
new SplitMultiLineStringCommand(id): SplitMultiLineStringCommand;

Defined in: packages/editor-core/src/commands/splitMultiLineString.ts:18

Parameters

id

string

Returns

SplitMultiLineStringCommand

Properties

appliesTo

ts
readonly appliesTo: readonly GeometryKind[];

Defined in: packages/editor-core/src/commands/splitMultiLineString.ts:17

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

Implementation of

Command.appliesTo


label

ts
readonly label: "拆分多线" = '拆分多线';

Defined in: packages/editor-core/src/commands/splitMultiLineString.ts:16

Implementation of

Command.label

Methods

plan()

ts
plan(ctx): ChangeSet;

Defined in: packages/editor-core/src/commands/splitMultiLineString.ts:20

Parameters

ctx

EditContext

Returns

ChangeSet

Implementation of

Command.plan