Skip to content

refactor: decouple the brush component from XY chart#821

Merged
markov00 merged 3 commits intoelastic:masterfrom
markov00:2020_09_15-decouple_brush_tool_renderer
Sep 15, 2020
Merged

refactor: decouple the brush component from XY chart#821
markov00 merged 3 commits intoelastic:masterfrom
markov00:2020_09_15-decouple_brush_tool_renderer

Conversation

@markov00
Copy link
Copy Markdown
Collaborator

Summary

This PR decouple the brush rendering component from the XY axis chart. This can be then reused by heatmap that requires this feature.

I've added a set of more specific methods on the InternalChartState interface to decouple the implementation of each single chart related to chart dimensions and brush area computation.
I've just skipped the implementation of these methods in Partition and Goal charts.

Right now the brush area is just a rect, but we can extend that to be whatever we need.

@markov00 markov00 added enhancement New feature or request :interactions Interactions related issue labels Sep 15, 2020
Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

LGTM, tested brush stories locally on chrome and appear unaffected by changes.

@markov00 markov00 merged commit 14866ae into elastic:master Sep 15, 2020
@markov00 markov00 deleted the 2020_09_15-decouple_brush_tool_renderer branch September 15, 2020 20:04
@markov00
Copy link
Copy Markdown
Collaborator Author

🎉 This PR is included in version 21.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request :interactions Interactions related issue released Issue released publicly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants