Constructor
-
new KonvaRectangleTool()
-
Describes the whiteboard rectangle tool.
Methods
-
endFunction(event) → {void}
-
Finishes drawing the rectangle shape on the whiteboard canvas.
Function is being invoked when the user triggers mouseup event
on the whiteboard canvas when a rectangle tool is selected.Parameters:
Name Type Description event
object HTML DOM mouseup event.
Returns:
{ void }
-
startFunction(event, mode, scale) → {Konva.Rect}
-
Starts drawing the rectangle shape on the whiteboard canvas.
Function is being invoked when the user triggers mousedown event
on the whiteboard canvas when a rectangle 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.Rect }