devsoc-unsw / structs.sh

An educational data structures and algorithms platform.
https://structs.sh
MIT License
27 stars 7 forks source link

Pan and zoom #656

Closed dqna64 closed 2 months ago

dqna64 commented 3 months ago

See https://github.com/devsoc-unsw/structs.sh/pull/654

dqna64 commented 3 months ago

Todo:

dqna64 commented 3 months ago

enabled pan by dragging mouse anywhere within #visualiser-container (workspace) see image Screenshot 2024-06-12 at 04 29 45

dqna64 commented 3 months ago

Idea for implementation of "allow reset transform" -- use IntersectionObserver to detect when visualiser canvas goes out of workspace, to allow user to reset the pan/zoom and center the visualiser canvas in teh workspace again