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: apply transform.x to area & line geometries #172

Merged
merged 3 commits into from
Apr 16, 2019

Conversation

emmacunningham
Copy link
Contributor

@emmacunningham emmacunningham commented Apr 12, 2019

Summary

There were discrepancies between the props applied to animated elements and non-animated elements. When we disabled animation across the board, this discrepancy surface issues with the non-animated elements not having the correct transform.x applied, leading to misaligned lines & points in area and line series:

bar_line

bar_area

mixed

This PR applies the transform to the non-animated elements as well, resolving the alignment issues:

bar_line_fixed

bar_area_fixed

mixed_fixed

We also move this transform into the build props functions to require consistency in handling these values regardless of animation.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

  • This was checked for cross-browser compatibility, including a check against IE11
  • 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
  • Each commit follows the convention

@emmacunningham emmacunningham added the :chart Chart element related issue label Apr 12, 2019
@codecov-io
Copy link

codecov-io commented Apr 12, 2019

Codecov Report

Merging #172 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #172   +/-   ##
=======================================
  Coverage   96.62%   96.62%           
=======================================
  Files          36       36           
  Lines        1867     1867           
  Branches      251      251           
=======================================
  Hits         1804     1804           
  Misses         54       54           
  Partials        9        9
Impacted Files Coverage Δ
...onents/react_canvas/utils/rendering_props_utils.ts 100% <ø> (ø) ⬆️

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 6c4f705...774cdd2. Read the comment docs.

@emmacunningham emmacunningham added the bug Something isn't working label Apr 12, 2019
@emmacunningham emmacunningham requested a review from markov00 April 12, 2019 18:30
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

@emmacunningham emmacunningham merged commit da4f07f into elastic:master Apr 16, 2019
markov00 pushed a commit that referenced this pull request Apr 16, 2019
## [3.11.1](v3.11.0...v3.11.1) (2019-04-16)

### Bug Fixes

* apply transform.x to area & line geometries ([#172](#172)) ([da4f07f](da4f07f))
@markov00
Copy link
Member

🎉 This PR is included in version 3.11.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Apr 16, 2019
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
bug Something isn't working :chart Chart element related issue released Issue released publicly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants