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

refactor: cleanup colors #1397

Merged
merged 7 commits into from
Sep 22, 2021

Conversation

markov00
Copy link
Member

Summary

During the heatmap legend fixes I've noticed that we have multiple places where some standard colors are allocated.
I've moved the Color type + some static colors (red, white, black, transparent) into the common/color.ts file.
This is not a complete refactoring but the first part of the initiative to cleanup the folders the typings.

Checklist

  • The proper chart type label has been added (e.g. :xy, :partition)
  • The proper feature labels have been added (e.g. :interactions, :axis)

@markov00 markov00 added :colors colors related issue skip-newsletter code quality :all Applies to all chart types labels Sep 21, 2021
@markov00 markov00 mentioned this pull request Sep 21, 2021
2 tasks
Copy link
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.

Code changes LGTM.

@markov00 markov00 merged commit 348c061 into elastic:master Sep 22, 2021
@markov00 markov00 deleted the 2021_09_21-color_refactoring branch September 22, 2021 13:07
nickofthyme added a commit that referenced this pull request Oct 5, 2021
# [37.0.0](v36.0.0...v37.0.0) (2021-10-05)

### Bug Fixes

* **debug:** add predictable axis labels sorting order ([#1418](#1418)) ([60fbe7a](60fbe7a))
* **deps:** update dependency @elastic/eui to ^38.1.0 ([#1409](#1409)) ([4ffd018](4ffd018))
* **deps:** update dependency @elastic/eui to ^38.2.0 ([#1416](#1416)) ([34707c3](34707c3))

### Code Refactoring

* cleanup colors ([#1397](#1397)) ([348c061](348c061))
* scale improvements and TS 4.4 ([#1383](#1383)) ([0003bc1](0003bc1))

### BREAKING CHANGES

* `DEFAULT_CHART_MARGINS`, `DEFAULT_GEOMETRY_STYLES`, `DEFAULT_CHART_PADDING` and `DEFAULT_MISSING_COLOR` are no longer exposed as part of the API
* The public type varieties for domains are discontinued, in favor of retaining the single `DomainRange` export, which now has a mandatory `{min: number, max: number}`. The developer can supply `NaN` where a finite min, max or both aren't defined (ie. in place of former effective `undefined`). In addition, some console.warn punctuations changed

Co-authored-by: Marco Vettorello <vettorello.marco@gmail.com>
Co-authored-by: Nick Partridge <nick.ryan.partridge@gmail.com>
@nickofthyme
Copy link
Collaborator

🎉 This PR is included in version 37.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:all Applies to all chart types code quality :colors colors related issue released Issue released publicly skip-newsletter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants