Class: KonvaCircleTool

Constructor

new KonvaCircleTool()

Describes the whiteboard circle tool.

Methods

endFunction(event) → {void}

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

Parameters:
Name Type Description
event object

HTML DOM mouseup event.

Returns:
{ void }

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

Starts drawing the circle shape on the whiteboard canvas.
Function is being invoked when the user triggers mousedown event
on the whiteboard canvas when a circle 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.Ellipse }
©2016 Avaya Inc. All Rights Reserved.