rapidsai / node

GPU-accelerated data science and visualization in node
https://rapidsai.github.io/node/
Apache License 2.0
187 stars 20 forks source link

Configure background mode #443

Open thomcom opened 2 years ago

thomcom commented 2 years ago

I'm considering having an alignment tool for background mode. Building this tool would help me work through the viewport alignment issue that I have now wherein scrolling doesn't follow the mouse cursor directly.

If I create a manual alignment tool for changing the background mode position, then the background world coordinates will be converted from hard coded values, specific to this image, to dynamic values that can be configured via text fields and interactive controls.

The two most likely methods for implementing this are:

The first method will allow for non-rectangular backgrounds, which is more desirable than clicking/dragging the background edge images. I'll investigate adding a new layer of control points and then computing their screen/world correspondence. This will make adjusting the background image relatively easy.