-
Notifications
You must be signed in to change notification settings - Fork 125
Graph View Improvements #1229
Description
I've played around with the new graph-features. Nice progress over there!
However, there are still a some rough edges in the UI. I have collected a few notes below. Some things are probably an easy fix, others might be ideas for later.
Zoom and Pan Issues
-
The zoom behaves a bit erratically at the moment. The center point around which the zoom works seems to depend on the current position of the scroll bars. If the scrollbars are not dead center, zooming becomes weird and the attempt to zoom in will make the graph disappear into the area outside the borders of the current window.
-
I would suggest that the zoom should work with the current mouse position as the center point. This is the usual behavior in other apps. It would make it much easier to zoom in on a certain area of the graph.
-
Panning is also not working as expected: When pressing the space bar, the cursor changes to a "hand". I would expect that can now click and drag with the mouse to pan around in the graph. However, this does nothing.
Toolbar
- Save to file/PDF/Draw.io opens a folder selection dialog instead of a dialog to select a filename.
- The delete button shows and Undo-Icon, which can be misleading as it will delete the whole graph, not undo the last operation. A garbage can would be more appropriate I guess.
- Add codes branch shows all code and categories in a flat list instead of a tree view, which makes it cumbersome to navigate in a complex code system. A proper tree view would be much better.
Graphical UI
Creating connections between nodes in the graph is quite cumbersome at the moment. I think a graphical view like this also needs a graphical user interface. My suggestion:
- Clicking on "create connection" should start a “connection drag” mode. The cursor turns into a cross or pencil.
- On mouse click on a connectable item, start a temporary preview connection line from that item to the mouse pointer.
- On mouse click over another connectable item, create a new connection. Show only one dialog, where you can select color and connection type.
- If clicked on empty space or the same item, cancel the current temporal connection and go back to 2).
- On hitting ESC or clicking the "create connection" button again, quit the “connection drag” mode.