ToolEvent

The ToolEvent object is received by the Tool's mouse event handlers Tool#onMouseDown, Tool#onMouseDrag, Tool#onMouseMove and Tool#onMouseUp. The ToolEvent object is the only parameter passed to these functions and contains information about the mouse event.

Sample code:

function onMouseUp(event) {
	// the position of the mouse when it is released
	print(event.point);
}

Properties