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

fix: show crosshairs for external pointer events #817

Merged
merged 2 commits into from
Sep 15, 2020

Conversation

nickofthyme
Copy link
Collaborator

@nickofthyme nickofthyme commented Sep 14, 2020

Summary

Fixes #816
Related to elastic/kibana#77306

If a dispatchExternalPointerEvent is used, the crosshairs now show for the respective pointer value.

externalPointerEvents.tooltip.visible now only controls the tooltip visibility.

To disable crosshairs, don't use dispatchExternalPointerEvent at all.

Checklist

  • Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios

@nickofthyme nickofthyme added :interactions Interactions related issue regression labels Sep 14, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #817 into master will increase coverage by 0.44%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #817      +/-   ##
==========================================
+ Coverage   74.15%   74.59%   +0.44%     
==========================================
  Files         273      288      +15     
  Lines        9379     9665     +286     
  Branches     2029     2072      +43     
==========================================
+ Hits         6955     7210     +255     
- Misses       2416     2441      +25     
- Partials        8       14       +6     
Flag Coverage Δ
#unittests 74.16% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...rc/chart_types/xy_chart/renderer/dom/crosshair.tsx 80.00% <100.00%> (+0.75%) ⬆️
src/mocks/store/store.ts 92.59% <0.00%> (ø)
src/mocks/series/series.ts 88.13% <0.00%> (ø)
src/mocks/series/series_identifiers.ts 100.00% <0.00%> (ø)
src/mocks/specs/index.ts 100.00% <0.00%> (ø)
src/mocks/geometries.ts 86.84% <0.00%> (ø)
src/mocks/theme.ts 100.00% <0.00%> (ø)
src/mocks/series/data.ts 100.00% <0.00%> (ø)
src/mocks/series/index.ts 100.00% <0.00%> (ø)
src/mocks/specs/specs.ts 82.75% <0.00%> (ø)
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7bb4eb...7de1409. Read the comment docs.

@monfera monfera changed the title feat: show crosshair for external pointer events feat: show crosshairs for external pointer events Sep 14, 2020
Copy link
Member

@markov00 markov00 left a comment

Choose a reason for hiding this comment

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

LGTM

@nickofthyme nickofthyme changed the title feat: show crosshairs for external pointer events fix: show crosshairs for external pointer events Sep 15, 2020
@nickofthyme nickofthyme merged commit f591a6a into elastic:master Sep 15, 2020
@nickofthyme nickofthyme deleted the ext-crosshairs branch September 15, 2020 13:40
markov00 pushed a commit that referenced this pull request Sep 16, 2020
# [21.3.0](v21.2.0...v21.3.0) (2020-09-16)

### Bug Fixes

* legend dark mode hover color ([#820](#820)) ([5227b2e](5227b2e))

### Features

* cancel brush/click event with escape key ([#819](#819)) ([b599d13](b599d13))
* show crosshair for external pointer events ([#817](#817)) ([f591a6a](f591a6a))
@markov00
Copy link
Member

markov00 commented Sep 16, 2020

🎉 This PR is included in version 22.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Sep 16, 2020
nickofthyme added a commit to nickofthyme/elastic-charts that referenced this pull request Oct 8, 2020
markov00 pushed a commit that referenced this pull request Oct 8, 2020
## [19.8.3](v19.8.2...v19.8.3) (2020-10-08)

### Bug Fixes

* show crosshair for external pointer events ([#817](#817)) ([#863](#863)) ([f253599](f253599))
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:interactions Interactions related issue regression released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show crosshairs on external pointer events
3 participants