Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add a context to allow more complex validations when selecting #246

Merged
merged 1 commit into from
May 7, 2024

Conversation

JamesLMilner
Copy link
Owner

@JamesLMilner JamesLMilner commented May 5, 2024

Description of Changes

Aims to provide a context object as the second parameter of the callback for the validation flag. This allows users to more easily project/unproject if they need to do things in pixel space.

Also creates a Validation type that can be reused when we move towards adding this for other built in modes too.

Link to Issue

No issue

PR Checklist

  • There is a associated GitHub issue
  • If I have added significant code changes, there are relevant tests
  • If there are behaviour changes these are documented

@JamesLMilner JamesLMilner force-pushed the validations branch 3 times, most recently from 02a6be3 to d2d6161 Compare May 7, 2024 22:57
@JamesLMilner JamesLMilner marked this pull request as ready for review May 7, 2024 23:09
@JamesLMilner JamesLMilner merged commit d4f1270 into main May 7, 2024
8 checks passed
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