Appearance
Documentation / @geoverse/editor-core / FillHoleCommand
Class: FillHoleCommand
Defined in: packages/editor-core/src/commands/fillHole.ts:17
面填洞(1→1,仅 modified):移除面/多面的所有内环(仅保留外环),是 PunchHoleCommand 的逆操作。 没有内环可填时报错(NO_HOLE)。
Implements
Constructors
Constructor
ts
new FillHoleCommand(id): FillHoleCommand;Defined in: packages/editor-core/src/commands/fillHole.ts:20
Parameters
id
string
Returns
FillHoleCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: packages/editor-core/src/commands/fillHole.ts:19
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
label
ts
readonly label: "面填洞" = '面填洞';Defined in: packages/editor-core/src/commands/fillHole.ts:18
Implementation of
Methods
plan()
ts
plan(ctx): ChangeSet;Defined in: packages/editor-core/src/commands/fillHole.ts:22
