Skip to content

Commit

Permalink
Minor cleanup around highlighting, new TODO item
Browse files Browse the repository at this point in the history
  • Loading branch information
abesto committed Apr 28, 2012
1 parent 92e7bcf commit f6f8388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Graphs: node and edge highlighting to mark currently processed item (node/edge), separate from coloring (algorithms use colors to mark node/edge state)
Graphs: make graph read-only when running an algorithm. also disable highlighting from tool hover/clicks.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ define ['vendor/jquery', 'vendor/underscore'], ($, _) ->
'entered-node': (event, nodeview) -> @view.highlightNode nodeview, '#000', 100, 0.1
'left-node': (event, nodeview) -> @view.unhighlightNode nodeview
'grabbed-node': ($event, x, y, view, revent) ->
@view.highlightNode view, '#000', 0.1
{cx: @ox, cy: @oy} = view[0].attr ['cx', 'cy']
@view.highlightNode view, '#000'
'dropped-node': ($event, view, revent) ->
@view.highlightNode view, '#000', 100, 0.1
@view.highlightNode view, '#000'
delete @ox
delete @oy
'moved-node': ($event, dx, dy, x, y, view, revent) ->
Expand Down

0 comments on commit f6f8388

Please sign in to comment.