Added function to compute ports on nodes.
Working on new Port object...
Adding mouse handlers for Ports...
Debugged Port dragging, and
added cardinal port snap-to.
Fixed mouseout bug on Ports.
Working on rerouting when ports are dragged...
Finished implementing rerouting. Now debugging....
Debugging port rerouting...
Set edges to update their ports at end of node move.
Moved port update to its own function in Node, and
out of Node.acceptHome, which was causing a bug in
Node.shiftWithAlignment, since each node was accepting
its new home -- and therewith updating ports -- before
its neighbours had been shifted yet.
Continuing to debug...
Working on draggability of final segments...
Finished implementation of drag for final segment.
minor
Added Node.portFor(edge) method.
Got drag of final edge segment working, in
case where there are no (visible) BPs.
Also added shift-click and ctrl-click, for extending selection.
Also moved jsAlign folder back to js.
Made creation of new BP pair use attachmentPoint function.
Made shift and ctrl key presses cleared upon window's loss
of focus. This prevents ctrl from getting "stuck down" if
you ctrl-alt-arrow to another desktop, and then come back.
turned off some debug output