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(core): add missing marker typings #1440

Merged
merged 1 commit into from
Apr 21, 2021
Merged

fix(core): add missing marker typings #1440

merged 1 commit into from
Apr 21, 2021

Conversation

joematune
Copy link
Contributor

Overview 🚀

Markers are missing two props in their type declarations, legendOrientation and legendPosition. Those props can be seen in use at nivo.rocks/adding-markers.

legendPosition utilizes the type declared at line 20 - BoxAlign, while legendOrientation has a hard coded union 'horizontal' | 'vertical'.

Additionally, line 168 reuses an already declared DatumValue type from line 5.


Thanks for the sick dataviz component library 👍

- Add `legendOrientation` & `legendPosition` to CartesianMarkerProps
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 4, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f4933d1:

Sandbox Source
nivo Configuration
nivo-website Configuration

Copy link
Contributor

@wyze wyze left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

@wyze wyze changed the title fix(core/index.d.ts): add missing marker typings fix(core): add missing marker typings Apr 21, 2021
@wyze wyze merged commit ff2cc31 into plouc:master Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants