构造函数
constructor
参数
| 参数名称 | 类型 | 默认值 | 描述信息 |
|---|
| graphic | Graphic | — | 需要编辑的图形 |
| options | Record | — | 额外参数 |
属性
方法
stop
start
参数
| 参数名称 | 类型 | 默认值 | 描述信息 |
|---|
| plot | Viewer | — | 编辑上下文 |
| options | boolean | — | 编辑参数 |
updateAnchorPosition
updateAnchorPosition( anchorIndex: number, newPosition: Cartesian3,): EditBezierCurve 参数
| 参数名称 | 类型 | 默认值 | 描述信息 |
|---|
| anchorIndex | number | — | 锚点的下标 |
| newPosition | Cartesian3 | — | 坐标 |
addControlPoint
addControlPoint(position: Cartesian3, insertIndex?: number): boolean 参数
| 参数名称 | 类型 | 默认值 | 描述信息 |
|---|
| position | Cartesian3 | — | 增加的控制点 |
| insertIndex | number | — | 增加的锚点的下标,-1 表示追加到末尾 |
返回 boolean
removeControlPoint
removeControlPoint(anchorIndex: number): boolean 参数
| 参数名称 | 类型 | 默认值 | 描述信息 |
|---|
| anchorIndex | number | — | 锚点的下标 |
返回 boolean
finishEdit
cancelEdit
getEditState
getEditState(): Record<string, unknown> 返回 Record<string, unknown>
destroy
编辑贝塞尔曲线