Constructor
-
new KonvaMarkerTool()
-
Describes the whiteboard marker tool.
Methods
-
drawFunction(evt, konvaShape, scale) → {void}
-
Draws the marker line shape on the whiteboard canvas.
Function is being invoked when the user triggers mousemove event
on the whiteboard canvas when a marker tool is selected.Parameters:
Name Type Description evtobject HTML DOM mousemove event.
konvaShapeKonva.Shape Shape that is goint to be drawn.
scalenumber Returns:
{ void }
-
endFunction() → {void}
-
Finishes drawing the marker line shape on the whiteboard canvas.
Function is being invoked when the user triggers mouseup or mouseleave event
on the whiteboard canvas when a marker tool is selected.Returns:
{ void }
-
startFunction(event, scale) → {Konva.Shape}
-
Starts drawing the marker line shape on the whiteboard canvas.
Function is being invoked when the user triggers mousedown event
on the whiteboard canvas when a marker tool is selected.Parameters:
Name Type Description eventobject HTML DOM mousedown event
scalenumber Scale which currently applies to the whiteboard canvas.
Returns:
{ Konva.Shape }