Class

EditGraphicTool

EditGraphicTool()

Constructor

# new EditGraphicTool()

编辑图像类

Author:
  • xyj

Members

# tooltipMess

Methods

# activate(options) → {EditGraphicTool}

激活当前动作,开始绘制

Parameters:
Name Type Description
options Object

基础属性

  • 当前类

# deactivate() → {EditGraphicTool}

卸载当前动作

  • 当前类

# fire(type, params) → {EditGraphicTool}

执行事件

Parameters:
Name Type Description
type EventType

需要执行的事件类型

params Object

执行时携带的参数

  • 当前类

# install(viewer)

将类实例化到场景中

Parameters:
Name Type Description
viewer

# off(type, callback, context) → {EditGraphicTool}

事件注销

Parameters:
Name Type Description
type EventType

需要执行的事件类型

callback function

回调

context Context

上下文

  • 当前类

# on(type, callback, context) → {EditGraphicTool}

事件执行

Parameters:
Name Type Description
type EventType

需要执行的事件类型

callback function

回调

context Context

上下文

  • 当前类