-
Notifications
You must be signed in to change notification settings - Fork 715
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new(xychart): add PointerEvent handlers to XYChart and *Series (#947)
* new(xychart): add event source constants * new(xychart): add hooks/usePointerEventEmitters * new(xychart): add hooks/usePointerEventHandlers * new(xychart/useEventEmitter): update to pointer events, add prop annotations, add source filtering * internal(xychart/findNearestDatum): factor out return type to types * types(xychart): add pointer handlers to series types * new(xychart/XYChart): add pointer handlers, refactor to usePointerEventEmitters/Handlers * new(xychart/BaseLineSeries): add pointer handlers, refactor to usePointerEventEmitters/Handlers * new(xychart/BaseAreaSeries): add pointer handlers, refactor to usePointerEventEmitters/Handlers * new(xychart/BaseGlyphSeries): add pointer handlers, refactor to usePointerEventEmitters/Handlers * new(xychart/BaseBarSeries): add pointer handlers, refactor to usePointerEventEmitters/Handlers * neww(xychart/BaseBarGroup): add pointer handlers, refactor to usePointerEventEmitters/Handlers * neww(xychart/BaseBarStack): add pointer handlers, refactor to usePointerEventEmitters/Handlers * new(xychart/AnimatedPath): add className * new(demo/xychart): add onPointerUp example to demo * fix(xychart): consider pointerEvents for Series pointer event emitter creation * fix(demo/xychart): add setAnnotationDataIndex, setAnnotationDataKey to ProvidedProps * internal(xychart): move useEventEmitter calls to usePointerEventHandlers; use dataKeys in event sources * api(xychart/XYChart): rename prop pointerEvents => pointerEventsDataKey * internal(xychart/usePointerEventHandlers): fix comment typo * fix(xychart/useEventEmitter): mousemove => pointermove * test(xychart): update mousemove/out => pointermove/out * type(xychart): fix types * test(xychart): add event source to fix Series tests
- Loading branch information
1 parent
b6a455e
commit dd11a5c
Showing
36 changed files
with
777 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.