-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add Brushing extension #3309
Conversation
|
||
// Trigger redraw when mouse moves | ||
// TODO - expose this in a better way | ||
extension.onMouseMove = () => { |
There was a problem hiding this comment.
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: ...
});
There was a problem hiding this comment.
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.
RFC
Change List
BrushingExtension