Skip to content

Documentation / @geoverse/editor-core / SetPropertiesBatchCommand

Class: SetPropertiesBatchCommand

Defined in: packages/editor-core/src/commands/setProperties.ts:59

批量改多要素字段值(仅 propertyChanges)。

  • { ids, patch }:同一 patch 应用到每个 id。
  • { perId }:每个 id 各自的 patch。

Implements

Constructors

Constructor

ts
new SetPropertiesBatchCommand(spec, label?): SetPropertiesBatchCommand;

Defined in: packages/editor-core/src/commands/setProperties.ts:61

Parameters

spec

BatchPropertySpec

label?

string = '批量编辑属性'

Returns

SetPropertiesBatchCommand

Properties

label

ts
readonly label: string;

Defined in: packages/editor-core/src/commands/setProperties.ts:60

Implementation of

Command.label

Methods

plan()

ts
plan(ctx): ChangeSet;

Defined in: packages/editor-core/src/commands/setProperties.ts:68

Parameters

ctx

EditContext

Returns

ChangeSet

Implementation of

Command.plan