Skip to content

Documentation / @geoverse/editor-core / SetPropertiesCommand

Class: SetPropertiesCommand ​

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

改单要素字段值(1→1,仅 propertyChanges,几何零改动)。 浅合并:patch 覆盖同名键,未提及键保留。可撤销、可提交后端(ADR-0009)。

Implements ​

Constructors ​

Constructor ​

ts
new SetPropertiesCommand(
   targetId, 
   patch, 
   label?): SetPropertiesCommand;

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

Parameters ​

targetId ​

string

patch ​

Record<string, unknown>

label? ​

string = '编辑属性'

Returns ​

SetPropertiesCommand

Properties ​

label ​

ts
readonly label: string;

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

Implementation of ​

Command.label

Methods ​

plan() ​

ts
plan(ctx): ChangeSet;

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

Parameters ​

ctx ​

EditContext

Returns ​

ChangeSet

Implementation of ​

Command.plan