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

default props comment for PolarGrid #4107

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions reflex/components/recharts/polar.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,28 +270,28 @@ class PolarGrid(Recharts):

alias = "RechartsPolarGrid"

# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
cx: Var[Union[int, str]]
# The x-coordinate of center.
cx: Var[int]

# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
cy: Var[Union[int, str]]
# The y-coordinate of center.
cy: Var[int]

# The radius of the inner polar grid.
inner_radius: Var[Union[int, str]]
inner_radius: Var[int]

# The radius of the outer polar grid.
outer_radius: Var[Union[int, str]]
outer_radius: Var[int]

# The array of every line grid's angle.
polar_angles: Var[List[int]]

# The array of every line grid's radius.
polar_radius: Var[List[int]]

# The type of polar grids. 'polygon' | 'circle'
# The type of polar grids. 'polygon' | 'circle'. Default: "polygon"
grid_type: Var[LiteralGridType]

# The stroke color of grid
# The stroke color of grid. Default: rx.color("gray", 10)
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))

# Valid children components
Expand Down
16 changes: 8 additions & 8 deletions reflex/components/recharts/polar.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,10 @@ class PolarGrid(Recharts):
def create( # type: ignore
cls,
*children,
cx: Optional[Union[Var[Union[int, str]], int, str]] = None,
cy: Optional[Union[Var[Union[int, str]], int, str]] = None,
inner_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
outer_radius: Optional[Union[Var[Union[int, str]], int, str]] = None,
cx: Optional[Union[Var[int], int]] = None,
cy: Optional[Union[Var[int], int]] = None,
inner_radius: Optional[Union[Var[int], int]] = None,
outer_radius: Optional[Union[Var[int], int]] = None,
polar_angles: Optional[Union[List[int], Var[List[int]]]] = None,
polar_radius: Optional[Union[List[int], Var[List[int]]]] = None,
grid_type: Optional[
Expand Down Expand Up @@ -456,14 +456,14 @@ class PolarGrid(Recharts):

Args:
*children: The children of the component.
cx: The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
cx: The x-coordinate of center.
cy: The y-coordinate of center.
inner_radius: The radius of the inner polar grid.
outer_radius: The radius of the outer polar grid.
polar_angles: The array of every line grid's angle.
polar_radius: The array of every line grid's radius.
grid_type: The type of polar grids. 'polygon' | 'circle'
stroke: The stroke color of grid
grid_type: The type of polar grids. 'polygon' | 'circle'. Default: "polygon"
stroke: The stroke color of grid. Default: rx.color("gray", 10)
style: The style of the component.
key: A unique key for the component.
id: The id for the component.
Expand Down
Loading