Skip to content

Improved strategy to highlight point nearest cursor#722

Merged
swharden merged 11 commits intomasterfrom
highlightable
Jan 28, 2021
Merged

Improved strategy to highlight point nearest cursor#722
swharden merged 11 commits intomasterfrom
highlightable

Conversation

@swharden
Copy link
Member

@swharden swharden commented Jan 27, 2021

The goal of this PR is to enable "highlight point nearest cursor" using modern 4.1 methods and demonstrate this in the demo applications.

⚠️ The ScatterPlotHighlight plot type is deprecated, and will be left in the code base with an obsolete warning

The preferred strategy will:

  1. Make it easy to identify the data point nearest the cursor (optionally in pixel space)
  2. Allow the user to mark that point however they want using their own code

The recommended way to mark a point is to AddPoint(), style it as desired, and move it around and change its visibility according to where the mouse is and what point is highlighted.

This work relates to #709

@swharden swharden mentioned this pull request Jan 27, 2021
48 tasks
When this argumen is set to the pixels per unit of the X vs Y axis, GetPointNearest() returns the proper point in pixel space (even if that point is distant in coordinate space)
@swharden swharden marked this pull request as ready for review January 28, 2021 01:04
@swharden swharden merged commit 737f663 into master Jan 28, 2021
@swharden swharden deleted the highlightable branch January 28, 2021 01:05
swharden added a commit that referenced this pull request Feb 14, 2021
swharden added a commit that referenced this pull request Feb 16, 2021
Only throw exception on array size during deep validation.
Add XML documentation to warn of extremely large arrays.
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.

1 participant