# EditTool

#### new Cesium.EditTool(viewer, graphicsLayer, options)
MapGIS/Tools/GraphciTool/EditTool.js 26

标绘编辑工具

Name | Type | Description
--- | --- | ---
`viewer` | Viewer |
`graphicsLayer` | Object |
`options` | Object |

### Members

#### readonly pickingGraphic : Graphic
MapGIS/Tools/GraphciTool/EditTool.js 70

返回当前选中图形

#### readonly state : Graphic
MapGIS/Tools/GraphciTool/EditTool.js 81

返回当前选中图形

### Methods

#### active()
MapGIS/Tools/GraphciTool/EditTool.js 797

激活编辑工具

#### activeRotationMode()
MapGIS/Tools/GraphciTool/EditTool.js 331

开启旋转编辑模式

#### activeScaleMode()
MapGIS/Tools/GraphciTool/EditTool.js 362

开启缩放编辑模式

#### activeTranslationMode()
MapGIS/Tools/GraphciTool/EditTool.js 349

开启平移编辑模式

#### destroy()
MapGIS/Tools/GraphciTool/EditTool.js 916

销毁编辑工具,清除编辑点

#### getTransformEditor(editGraphic)
MapGIS/Tools/GraphciTool/EditTool.js 153

获取模型编辑器

Name | Type | Description
--- | --- | ---
`editGraphic` | Object | 模型对象

##### Returns:

Object 模型编辑器对象

#### mouseMoveEvent(pickingGraphic, event)
MapGIS/Tools/GraphciTool/EditTool.js 713

鼠标拖动更新图形事件

Name | Type | Description
--- | --- | ---
`pickingGraphic` |  | 要移动的graphic对象
`event` |  | 鼠标移动事件返回对象

#### startEdit()
MapGIS/Tools/GraphciTool/EditTool.js 814

激活编辑工具

#### stop()
MapGIS/Tools/GraphciTool/EditTool.js 844

关闭编辑工具

#### stopEdit()
MapGIS/Tools/GraphciTool/EditTool.js 876

取消编辑状态，清除选择

#### toggleNonUniformScaling()
MapGIS/Tools/GraphciTool/EditTool.js 375

开启等比缩放编辑模式

#### undo()
MapGIS/Tools/GraphciTool/EditTool.js 839

撤销