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 Brushing extension #3309

Merged
merged 4 commits into from
Jul 3, 2019
Merged

Add Brushing extension #3309

merged 4 commits into from
Jul 3, 2019

Conversation

Pessimistress
Copy link
Collaborator

RFC

Change List

  • Add BrushingExtension
  • Update the brushing example

@coveralls
Copy link

coveralls commented Jul 2, 2019

Coverage Status

Coverage decreased (-2.4%) to 79.246% when pulling 37b5841 on x/brushing-extension into b8409be on master.

@Pessimistress Pessimistress requested a review from tsherif July 3, 2019 18:15

// Trigger redraw when mouse moves
// TODO - expose this in a better way
extension.onMouseMove = () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be worth it to just make capturing UI events part of the extension API? E.g.

this.onEvents({
  pointermove: ...,
  pointerleave: ...
});

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The LayerExtension interface is supposed to mirror that of Layer. Layers can implement methods such as onHover onDrag but they are only called when the event is interacting with an object rendered by this layer. If we add a new API for generic event handling, it has to be supported in both layers and extensions.

modules/core/src/lib/deck.js Show resolved Hide resolved
@Pessimistress Pessimistress merged commit 244d792 into master Jul 3, 2019
@Pessimistress Pessimistress deleted the x/brushing-extension branch July 3, 2019 21:25
ajduberstein pushed a commit that referenced this pull request Jul 13, 2019
ajduberstein pushed a commit that referenced this pull request Aug 1, 2019
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.

3 participants