Added hitTest function to agent and link
Added u.mixin of new Evented Class to agent and link
Added u.misin of new Evented class to patch
Agentset on and off register events for their agents
extended mouse class to delegate events to agents
mouse events added to lintravel model
emitAgentEvent emits all events from eventType array, and pushes agent into draggingAgents array if 'dragstart' event.
deligateAgentDragEvents emits drag events from agents in draggingAgents array each step.
deligateDragEvents function emits drag events for agents in draggingAgents array,
if mousemove. If dragEnd boolean checks if drag is still going or not, and if
dragEnd, agents in draggingAgents array emit a dragend event.
drag events modified for agents.
mouseEvent function returns mouseEvent object
setDraggable function in links.coffee, which sets dragging event listeners for all links.
setDraggable in link.coffee uses dx and dy in mouseEvent to calculate position of new endpoints.
mouse.coffee calculates dx dy
setDraggable on nodes and links. refresh links set to true
setDraggable function in agents.coffee and agent.coffee
removed isDragging boolean
changed lastAgents to lastAgentsHovered
setDraggable on drivers instead of nodes
refactored on drag event
Fix Agent.hitTest
events are only delegated to one agent
removed Evented mixin from agent,link, and patch, and added it to agentset.