Class: ToolEvent

ToolEvent

ツールの共通イベントの管理を行うクラス
Class to manage common events of the tool

new event.ToolEvent ()

Members

active boolean

ツールが選択されていれば、true。選択が終了したらfalseになります。
True if the tool is selected; false if the selection is finished.

Default Value:
  • false

target HTMLDivElement

選択されたツールで利用するElement
Element to be used with the selected tool

Default Value:
  • null

Methods

activation (event)void

ツール選択時は変数をアクティブ化
Variables are activated when the tool is selected

NameTypeDescription
eventMouseEvent
Returns:
TypeDescription
void

termination ()void

ツール選択終了したら変数を非アクティブ化
Deactivate variables when tool selection is finished

Returns:
TypeDescription
void

toolEnd ()void

ツール切り替え、終了時のイベント関数
Event functions for tool switching and exit

Returns:
TypeDescription
void

toolStart ()void

ツール切り替え、開始時のイベント関数
Tool switching, event function at start

Returns:
TypeDescription
void