diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-03 19:34:55 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-03 19:38:27 +0300 |
| commit | ad3887f785ada0c389ee3d29b49f17dcef16f28a (patch) | |
| tree | 88a90809fa0c42530f1804f25672cd459182782b /src/server/util.py | |
| parent | cf5d50bd942a07e27275e42fb3db74e1dc8aea59 (diff) | |
client/graph_view: zen_mode zooming and layouting change
on zen mode entry:
- start layout
- automatic centering mode: every tick adjust the scale and translation
to fit the visible nodes
if user drags or wheels out
cancel automatic centering mode
(layout keeps updating regardless)
implementation details: additional state 'zen_mode__auto_center' and
additional handlers for wheel and mousedown. Better to have a single
flow in the future:
{mouse wheel event, mouse down event) -> update zen_mode__auto_center (or have implicit
state via bacon) -> d3 zoom behavior
Diffstat (limited to 'src/server/util.py')
0 files changed, 0 insertions, 0 deletions
