MAPF-Competition / PlanViz

An offline visualization tool for analysing solutions to multi-robot coordination problems.
https://www.leagueofrobotrunners.org/
MIT License
21 stars 8 forks source link

Better pointer support #9

Closed YueZhang-studyuse closed 2 weeks ago

YueZhang-studyuse commented 1 year ago

add support to handle the following functionality with the trackpad: (1) zoom (2) click and drag (3) pan and scroll (4) right click (if tkinter does not support this, maybe add some additional keyboard shortcut to support this)

shchan13 commented 11 months ago

Unfortunately, I don't have a trackpad.

nobodyczcz commented 10 months ago

One intermediate solution is binding all events to keyboard shortcuts:

  1. zoom in: ctrl + "="
  2. zoom out: ctrl + "-"
  3. move camera on canvas: using arrow keys or "hjkl" or "wsad"
  4. Allow left click to select an agent and shift + click to select additional agents.
  5. Show paths/agent details for selected agents with key "p"

Improve key binding on mac:

YueZhang-studyuse commented 10 months ago

Improve key binding on mac is done with commit dd11206edf7154122d2271ac78a29f67940332f1

YueZhang-studyuse commented 10 months ago

add a keyboard shortcut for reset (eg. backspace)

YueZhang-studyuse commented 9 months ago

done with commit 841f034c7708b3bfd15096e8df2263152e323ac1

shchan13 commented 9 months ago

After implementing the heatmap, I tried to merge the dev branch but got an error when clicking the reset button.