Skip to content

Crosshair plugin - out of graph bounds selection filter#1039

Merged
mirabilos merged 3 commits into
danvk:masterfrom
n-gist:crosshair-out-of-bounds-selection-filter
Jan 11, 2025
Merged

Crosshair plugin - out of graph bounds selection filter#1039
mirabilos merged 3 commits into
danvk:masterfrom
n-gist:crosshair-out-of-bounds-selection-filter

Conversation

@n-gist
Copy link
Copy Markdown
Contributor

@n-gist n-gist commented May 16, 2023

When the graph is zoomed in, crosshair can select points out of view area, drawing lines off graph.
Below is example where the area on the left is caused by axisLabelWidth, so it is inside crosshair drawing canvas.

chBounds

The same happens on the right side when using rightGap. Filtered by checking selectedPoint.x to be in [0,1]

Comment thread src/extras/crosshair.js
@mirabilos mirabilos merged commit 082cb0e into danvk:master Jan 11, 2025
@mirabilos
Copy link
Copy Markdown
Collaborator

mirabilos commented Jan 14, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants