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

Add region interactor, improve selection handling. #571

Merged
merged 12 commits into from
Oct 30, 2024
Merged

Add region interactor, improve selection handling. #571

merged 12 commits into from
Oct 30, 2024

Conversation

jheer
Copy link
Member

@jheer jheer commented Oct 30, 2024

  • Add region interactor for 2D selection of individual point values.
  • Add SQL isIn function.
  • Add use of SQL IN operator for single-value point selections.
  • Add channels mark property to spec types.
  • Fix empty selection resolution to use false literal.
  • Fix interactor facet handling and datum extraction.
  • Refactor BrushStyles types to dedicated file.
  • Update documentation and example specs.

@jheer jheer requested a review from domoritz October 30, 2024 16:40
Copy link
Member

@domoritz domoritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

Screenshot 2024-10-30 at 13 43 36

@@ -432,6 +432,12 @@ export interface MarkOptions {
| (TipOptions & { pointer?: TipPointer })
| ParamRef;

/**
* Additional named channels, for example to include in a tooltop.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Additional named channels, for example to include in a tooltop.
* Additional named channels, for example to include in a tooltip.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hahaha. Good catch.

@@ -30,7 +30,7 @@ export function intersect(svg, el, extent) {
list.push(child);
}
}
return list;
return /** @type {SVGElement[]} */(list);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be easier/clearer to move this up to line 18?

@jheer jheer merged commit 4d25a98 into main Oct 30, 2024
3 checks passed
@jheer jheer deleted the jh/region branch October 30, 2024 23:33
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