Skip to content

Documentation / @geoverse/editor-core / AddFeaturesCommand

Class: AddFeaturesCommand

Defined in: packages/editor-core/src/commands/addFeatures.ts:10

批量新增要素(0→N,仅 added)。用于粘贴等一次落多个要素的场景。

Implements

Constructors

Constructor

ts
new AddFeaturesCommand(inputs, label?): AddFeaturesCommand;

Defined in: packages/editor-core/src/commands/addFeatures.ts:12

Parameters

inputs

NewFeatureInput[]

label?

string = '新增要素'

Returns

AddFeaturesCommand

Properties

label

ts
readonly label: string;

Defined in: packages/editor-core/src/commands/addFeatures.ts:11

Implementation of

Command.label

Methods

plan()

ts
plan(ctx): ChangeSet;

Defined in: packages/editor-core/src/commands/addFeatures.ts:19

Parameters

ctx

EditContext

Returns

ChangeSet

Implementation of

Command.plan