Class

DrawGraphicTool

DrawGraphicTool()

Constructor

# new DrawGraphicTool()

绘制类工具

Author:
  • xyj

Members

# tooltipMess

Methods

# activate(options) → {DrawGraphicTool}

激活当前动作,开始绘制

Parameters:
Name Type Description
options Object

基础属性

  • 当前类

# deactivate() → {DrawGraphicTool}

卸载当前动作

  • 当前类

# fire(type, params) → {DrawGraphicTool}

执行事件

Parameters:
Name Type Description
type EventType

需要执行的事件类型

params Object

执行时携带的参数

  • 当前类

# install()

将类实例化到场景种

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

事件注销

Parameters:
Name Type Description
type EventType

需要执行的事件类型

callback function

回调

context Context

上下文

  • 当前类

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

事件执行

Parameters:
Name Type Description
type EventType

需要执行的事件类型

callback function

回调

context Context

上下文

  • 当前类