Class: KonvaLineTool

Constructor

new KonvaLineTool()

Describes the whiteboard line tool.

Methods

endFunction(event) → {void}

Finishes drawing the line shape on the whiteboard canvas.
Function is being invoked when the user triggers mouseup event
on the whiteboard canvas when a line tool is selected.

Parameters:
Name Type Description
event object

HTML DOM mouseup event.

Returns:
{ void }

startFunction(event, mode, scale) → {Konva.Line}

Starts drawing the line shape on the whiteboard canvas.
Function is being invoked when the user triggers mousedown event
on the whiteboard canvas when a line tool is selected.

Parameters:
Name Type Description
event object

HTML DOM mousedown event.

mode string

Tool mode: filled or stroke.

scale number

Scale which currently applies to the whiteboard canvas.

Returns:
{ Konva.Line }
©2016 Avaya Inc. All Rights Reserved.