napari / napari

napari: a fast, interactive, multi-dimensional image viewer for python
https://napari.org
BSD 3-Clause "New" or "Revised" License
2.07k stars 410 forks source link

[Points] When using `canvas_size_limits` highlight doesn't match the marker #6851

Closed psobolewskiPhD closed 3 weeks ago

psobolewskiPhD commented 1 month ago

πŸ› Bug Report

Here's a vanilla viewer with size=10 I then use canvas_size_limits = (100, 200) and the point is visually larger, but the highlight is off:

image

πŸ’‘ Steps to Reproduce

Open napari and make an empty Points layer, click a point. Open the console: viewer.layers[0].canvas_size_limits = (100, 200) Mouse over canvas.

πŸ’‘ Expected Behavior

The highlight should match the Point. Although maybe this is unrealistic with the OpenGL driver affecting size rendering?

🌎 Environment

napari: 0.5.0a2.dev649+g2d2cac676 Platform: macOS-13.3.1-arm64-arm-64bit System: MacOS 13.3.1 Python: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:54:21) [Clang 16.0.6 ] Qt: 6.6.1 PyQt6: NumPy: 1.26.4 SciPy: 1.12.0 Dask: 2024.3.1 VisPy: 0.14.3.dev3 magicgui: 0.8.2 superqt: 0.6.2 in-n-out: 0.2.0 app-model: 0.2.5 npe2: 0.7.4

OpenGL:

Screens:

Optional:

Settings path:

πŸ’‘ Additional Context

No response

psobolewskiPhD commented 1 month ago

CC: @brisvag

brisvag commented 4 weeks ago

Aaah, this! I misunderstood the issue when you mentioned it elsewhere. This shouldn't be hard to fix.

psobolewskiPhD commented 3 weeks ago

Eeep, this is a dupe of https://github.com/napari/napari/issues/6682 !