Fork me on GitHub

Plugin

Represents a plugin

Methods

init( )

Init function called by jsGraph on load

onMouseDown( Graph graph , Number x , Number y , Event e , SVGElement target )

Handles the mousedown event from jsGraph
Parameters:
Name Type Description
graph Graph The graph instance
x Number The x position in px
y Number The y position in px
e Event The original event
target SVGElement The target element

onMouseMove( Graph graph , Number x , Number y , Event e , SVGElement target )

Handles the mousemove event from jsGraph
Parameters:
Name Type Description
graph Graph The graph instance
x Number The x position in px
y Number The y position in px
e Event The original event
target SVGElement The target element

onMouseUp( Graph graph , Number x , Number y , Event e , SVGElement target )

Handles the mouseup event from jsGraph
Parameters:
Name Type Description
graph Graph The graph instance
x Number The x position in px
y Number The y position in px
e Event The original event
target SVGElement The target element