Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80ef632

Browse files
committed
map_screen_to_world can return None
1 parent beacf81 commit 80ef632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fastplotlib/layouts/_plot_area.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def get_rect(self) -> tuple[float, float, float, float]:
299299

300300
def map_screen_to_world(
301301
self, pos: tuple[float, float] | pygfx.PointerEvent
302-
) -> np.ndarray:
302+
) -> np.ndarray | None:
303303
"""
304304
Map screen position to world position
305305

0 commit comments

Comments
 (0)