SJSURoboticsTeam / urc-teleoperation-2024

Primary user interface for 2024 URC Mars Rover
MIT License
1 stars 1 forks source link

Dynamic, resizable camera components #3

Closed starphys closed 8 months ago

starphys commented 8 months ago

Cameras currently use statically or publicly hosted images, but we will pass in urls and ratios for the actual rover cameras in the future. They can be resized by dragging the boundaries of the component, and they will respond to either a constrained height or width appropriately. Right clicking opens up a context menu to switch between images.

Big shoutout to @NathanaelG2099 for getting this started here: https://github.com/NathanaelG2099/psychic-adventure

starphys commented 8 months ago

@naterpotatoers can you peep the CSS on this and let me know if you have any tips? Just getting this to work at all was a slog, and I wouldn't be surprised if there are much better ways to do it.