Appearance
Documentation / @geoverse/editor-ol / SplitPolygonByLineCommand
Class: SplitPolygonByLineCommand
Defined in: editor-core/dist/commands/splitPolygonByLine.d.ts:4
按线拆面 / 面拆分(1→N,JSTS)。切割线由适配器交互产出。
Implements
Command
Constructors
Constructor
ts
new SplitPolygonByLineCommand(targetId, line): SplitPolygonByLineCommand;Defined in: editor-core/dist/commands/splitPolygonByLine.d.ts:9
Parameters
targetId
string
line
LineString
Returns
SplitPolygonByLineCommand
Properties
appliesTo
ts
readonly appliesTo: readonly GeometryKind[];Defined in: editor-core/dist/commands/splitPolygonByLine.d.ts:8
适用的几何类型(声明式);命令在 plan() 开头用 assertApplicable 据此硬拦截。
Implementation of
ts
Command.appliesTolabel
ts
readonly label: "面拆分" = "\u9762\u62C6\u5206";Defined in: editor-core/dist/commands/splitPolygonByLine.d.ts:7
Implementation of
ts
Command.labelMethods
plan()
ts
plan(ctx): ChangeSet;Defined in: editor-core/dist/commands/splitPolygonByLine.d.ts:10
Parameters
ctx
EditContext
Returns
ChangeSet
Implementation of
ts
Command.plan