Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
97442f5
new cursor tool, basics work
kushalkolar Nov 19, 2025
034f719
lint and update api docs
clewis7 Nov 19, 2025
9a18381
add custom tooltip to figure
kushalkolar Nov 20, 2025
b08e744
Merge branch 'cursor-simpler' of https://github.com/fastplotlib/fastp…
kushalkolar Nov 20, 2025
cf0c6dd
example WIP
kushalkolar Nov 20, 2025
86807c2
manual picking, world obj -> graphic mapping
kushalkolar Nov 20, 2025
506fa2c
fix
kushalkolar Nov 20, 2025
f69ccc9
fix gc
kushalkolar Nov 20, 2025
c0c1203
stuff
kushalkolar Nov 25, 2025
cbc5127
Merge branch 'main' into cursor-simpler
kushalkolar Dec 6, 2025
5630f23
Merge branch 'cursor-simpler' of https://github.com/fastplotlib/fastp…
kushalkolar Dec 6, 2025
c5f8eac
cursor and tooltips refactor, basically works
kushalkolar Dec 6, 2025
9323e3a
much simpler tooltip and cursor
kushalkolar Dec 7, 2025
a59f686
move TextBox and Tooltip, update API docs
kushalkolar Dec 7, 2025
c60f1fe
cursor manages tooltips
kushalkolar Dec 7, 2025
32493b1
update examples
kushalkolar Dec 7, 2025
ed297f5
black
kushalkolar Dec 7, 2025
40f3357
cleanup
kushalkolar Dec 7, 2025
a3252eb
docstrings
kushalkolar Dec 7, 2025
c6133cd
update example
kushalkolar Dec 7, 2025
75d13fe
update example
kushalkolar Dec 7, 2025
6d535e7
add image space transforms examples
kushalkolar Dec 17, 2025
00b51a9
finish space transforms examples
kushalkolar Dec 17, 2025
1cafa74
typing
kushalkolar Dec 17, 2025
f585007
black
kushalkolar Dec 17, 2025
a64ce67
docstrings
kushalkolar Dec 17, 2025
a0f74c2
update examples
kushalkolar Dec 17, 2025
6a648e7
textbox constructor takes args, docstrings
kushalkolar Dec 17, 2025
dd65092
True -> true
kushalkolar Dec 17, 2025
cd0f216
update names
kushalkolar Dec 17, 2025
70c8088
update cursor examples
kushalkolar Dec 17, 2025
d4c3eb7
new ground truth screenshots for transforms
kushalkolar Dec 17, 2025
edca694
black
kushalkolar Dec 17, 2025
3570fba
update
kushalkolar Dec 17, 2025
a7bf44c
revert persist kwarg in PlotArea animations stuff
kushalkolar Dec 17, 2025
fba5247
fix
kushalkolar Dec 22, 2025
201b75c
message for image volumes
kushalkolar Dec 22, 2025
32c7d5f
Update fastplotlib/graphics/_base.py
clewis7 Jan 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update names
  • Loading branch information
kushalkolar committed Dec 17, 2025
commit cd0f21672d877090ebcbe55d7d26a76712abb7de
18 changes: 9 additions & 9 deletions fastplotlib/tools/_cursor.py
Comment thread
kushalkolar marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ def __init__(
self.alpha = alpha
self.size_space = size_space

self._pause = False
self._enabled = True

self._position = [0, 0]
self._position: list[float, float] = [0.0, 0.0]

@property
def mode(self) -> Literal["crosshair", "marker"]:
Expand Down Expand Up @@ -205,13 +205,13 @@ def alpha(self, value: float):
self._alpha = value

@property
def pause(self) -> bool:
"""pause the cursor, if True the cursor will not respond to mouse pointer events"""
return self._pause
def enabled(self) -> bool:
"""enable/disable the cursor, if False the cursor will not respond to mouse pointer events"""
return self._enabled

@pause.setter
def pause(self, pause: bool):
self._pause = bool(pause)
@enabled.setter
def enabled(self, pause: bool):
self._enabled = bool(pause)

@property
def position(self) -> tuple[float, float]:
Expand Down Expand Up @@ -409,7 +409,7 @@ def _create_crosshair(self) -> pygfx.Group:
return lines

def _pointer_moved(self, subplot, ev: pygfx.PointerEvent):
if self.pause:
if not self.enabled:
return

pos = subplot.map_screen_to_world(ev)
Expand Down