Appearance
Documentation / @geoverse/editor-core / DeleteVertexCommand
Class: DeleteVertexCommand
Defined in: packages/editor-core/src/commands/deleteVertex.ts:19
删除节点(线/面,1→1,仅 modified)。守最小顶点数:线≥2、环≥3。
Implements
Constructors
Constructor
ts
new DeleteVertexCommand(id, ref): DeleteVertexCommand;Defined in: packages/editor-core/src/commands/deleteVertex.ts:22
Parameters
id
string
ref
Returns
DeleteVertexCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: packages/editor-core/src/commands/deleteVertex.ts:21
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
label
ts
readonly label: "删除节点" = '删除节点';Defined in: packages/editor-core/src/commands/deleteVertex.ts:20
Implementation of
Methods
plan()
ts
plan(ctx): ChangeSet;Defined in: packages/editor-core/src/commands/deleteVertex.ts:27
