Appearance
Documentation / @geoverse/editor-ol / FillHoleCommand
Class: FillHoleCommand
Defined in: editor-core/dist/commands/fillHole.d.ts:6
面填洞(1→1,仅 modified):移除面/多面的所有内环(仅保留外环),是 PunchHoleCommand 的逆操作。 没有内环可填时报错(NO_HOLE)。
Implements
Command
Constructors
Constructor
ts
new FillHoleCommand(id): FillHoleCommand;Defined in: editor-core/dist/commands/fillHole.d.ts:10
Parameters
id
string
Returns
FillHoleCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: editor-core/dist/commands/fillHole.d.ts:9
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
ts
Command.appliesTolabel
ts
readonly label: "面填洞" = "\u9762\u586B\u6D1E";Defined in: editor-core/dist/commands/fillHole.d.ts:8
Implementation of
ts
Command.labelMethods
plan()
ts
plan(ctx): ChangeSet;Defined in: editor-core/dist/commands/fillHole.d.ts:11
Parameters
ctx
EditContext
Returns
ChangeSet
Implementation of
ts
Command.plan