Sorry, something went wrong.
| class UnderlayCamera(pygfx.Camera): | ||
| class ScreenSpaceCamera(pygfx.Camera): | ||
| """ | ||
| Same as pygfx.ScreenCoordsCamera but y-axis is inverted. |
There was a problem hiding this comment.
@almarklein would be useful to have a pygfx Camera that is in screenspace with inverted y, pointer events use (0, 0) as the top left corner so it would be useful to have the option.
Sorry, something went wrong.
There was a problem hiding this comment.
Something like this? pygfx/pygfx#1092
Sorry, something went wrong.
|
@clewis7 ready for review Custom tooltips by providing a function that takes the pointer event and outputs a str |
Sorry, something went wrong.
|
📚 Docs preview built and uploaded! https://www.fastplotlib.org/ver/tooltips |
Sorry, something went wrong.
| # overlay render pass | ||
| self.renderer.render(self._overlay_scene, self._overlay_camera, flush=False) |
There was a problem hiding this comment.
@almarklein the overlay render pass without the depth buffer doesn't exist yet right? we'll just keep this here for now and update later I guess.
Sorry, something went wrong.
There was a problem hiding this comment.
Very nice as always, just a few nitpicky things
Sorry, something went wrong.
closes #753
Usage options:
Auto-register all Graphics that will be added to the figure. Tooltips display the data of the hovered vertex or image array element (either grayscale value or RGB(A) values).
Manually register a tooltip for a Graphic.
Manually register a tooltip to show custom info by register a function that takes the pointer event and returns a str: