Noodle Help Site

Class Arrow


Defined in: <./media/noodle.tutorial.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Arrow()
Method Summary
Method Attributes Method Name and Description
 
drawArrow(canvas)
 
drawArrowhead(ctx, controlX, controlY, endX, endY, radAdjuster)
 
 
 
exec(task)
 
 
 
isPopupTooClose(canvasWidth, canvasHeight, popWidth, popHeight)
 
prepareCanvas(canvas, ele, drawFunc)
 
 
reset(task)
 
Arrow()
Returns:
{Arrow}
drawArrow(canvas)
Parameters:
canvas
drawArrowhead(ctx, controlX, controlY, endX, endY, radAdjuster)
Parameters:
ctx
controlX
controlY
endX
endY
radAdjuster
drawArrowListener(event)
Parameters:
event
drawArrowToEle(ele)
Parameters:
ele
exec(task)
Parameters:
task
frameMouseOverCanvasListener(event)
Parameters:
event
handlerMouseOverCanvas(event, pos)
Parameters:
event
pos
isPopupTooClose(canvasWidth, canvasHeight, popWidth, popHeight)
Parameters:
canvasWidth
canvasHeight
popWidth
popHeight
prepareCanvas(canvas, ele, drawFunc)
Parameters:
canvas
ele
drawFunc
reload()
reset(task)
Parameters:
task
topMouseOverCanvasListener(event)
Parameters:
event