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

Add missing DefinitelyTyped props to VictorySlice and VictoryPie #1538

Merged
merged 2 commits into from
Apr 30, 2020

Conversation

maddles
Copy link
Contributor

@maddles maddles commented Apr 27, 2020

Add the following props:

VictorySlice:

  • innerRadius

VictoryPie:

  • categories
  • cornerRadius
  • innerRadius
  • labelPosition
  • labelRadius
  • origin
  • padAngle
  • radius

@maddles maddles marked this pull request as ready for review April 28, 2020 18:19

export type innerRadiusType =
| number
| ((
Copy link
Contributor

Choose a reason for hiding this comment

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

This function should get the full list of VictoySliceProps like others

colorScale?: ColorScalePropType;
cornerRadius?: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

cornerRadius should also take a function

Copy link
Contributor

@boygirl boygirl left a comment

Choose a reason for hiding this comment

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

A few small changes for props that take functions. Otherwise approved

@maddles maddles merged commit ab8fd3c into master Apr 30, 2020
@maddles maddles deleted the task/audit-victory-pie-and-victory-slice branch April 30, 2020 19:24
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