Appearance
Documentation / @geoverse/editor-core / Command
Interface: Command
Defined in: packages/editor-core/src/types.ts:86
命令只负责"算出这次要产生什么变更",纯函数,不改状态;失败抛 EditError。
Properties
appliesTo?
ts
readonly optional appliesTo?: readonly GeometryKind[];Defined in: packages/editor-core/src/types.ts:89
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
label
ts
readonly label: string;Defined in: packages/editor-core/src/types.ts:87
Methods
plan()
ts
plan(ctx): ChangeSet;Defined in: packages/editor-core/src/types.ts:90
