构造
new GeomEdit()
成员
| 名称 | 说明 |
|---|---|
| activeGeom | 激活的Geom对象 |
| graph | 图形管理对象 |
| mouseUpCallback | 回调函数 |
| operation | 当前的操作, -1:无操作,10:移动, 1~9:控制点pos值 |
方法列表
| 名称 | 说明 |
|---|---|
| getControlPoint(coord, geomList) | 获取鼠标位置的编辑控制点 |
| keyDown(e) | 事件:键盘按键事件 |
| mouseDown(e) | mouseDown event |
| mouseMove(e) | mouseMove event |
| scaleGeom(operation, geom, distX, distY) | geom对象放大/缩小操作 |
详细说明
getControlPoint(coord, geomList)
获取鼠标位置的编辑控制点
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
coord |
Coord | ||
geomList |
Array |
返回值
控制点对象{x, y, width, height, cursor, cmd, idx, ringIdx}
- Type
- Object
keyDown(e)
事件:键盘按键事件
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
e |
Event |
mouseDown(e)
mouseDown event
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
e |
Event |
mouseMove(e)
mouseMove event
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
e |
Event |
scaleGeom(operation, geom, distX, distY)
geom对象放大/缩小操作
参数
| 名称 | 类型 | 缺省值 | 说明 |
|---|---|---|---|
operation |
int | ||
geom |
Geometry | ||
distX |
int | ||
distY |
int |
搜索