CARTAvis / carta-python

CARTA scripting wrapper written in Python
GNU General Public License v3.0
0 stars 0 forks source link

Adjust pixel sizes which are scaled by the frontend according to device pixel ratio #9

Open confluence opened 4 years ago

confluence commented 4 years ago

Functions which take pixel size parameters should be aware of the device pixel ratio used by the session, so that e.g. if the user resizes the view area to 500px x 500px they will get an image with those exact dimensions, no matter what browser is used by the session. This requires exposing the pixel ratio in the frontend.

confluence commented 3 years ago

The pixel ratio is now exposed in the frontend. Applying this to the viewport area fixes that problem, but multiple other values also have to be adjusted (e.g. zoom, font size, contour thickness) and the same simple solution (dividing by the ratio value) does not appear to work. Further investigation is required.