default props comment for PolarGrid (#4107)

This commit is contained in:
Carlos 2024-10-09 01:51:26 +02:00 committed by GitHub
parent ce8695c14c
commit 4a3fd592e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 16 deletions

View File

@ -270,17 +270,17 @@ class PolarGrid(Recharts):
alias = "RechartsPolarGrid" alias = "RechartsPolarGrid"
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. # The x-coordinate of center.
cx: Var[Union[int, str]] cx: Var[int]
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. # The y-coordinate of center.
cy: Var[Union[int, str]] cy: Var[int]
# The radius of the inner polar grid. # The radius of the inner polar grid.
inner_radius: Var[Union[int, str]] inner_radius: Var[int]
# The radius of the outer polar grid. # 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. # The array of every line grid's angle.
polar_angles: Var[List[int]] polar_angles: Var[List[int]]
@ -288,10 +288,10 @@ class PolarGrid(Recharts):
# The array of every line grid's radius. # The array of every line grid's radius.
polar_radius: Var[List[int]] 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] 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)) stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
# Valid children components # Valid children components

View File

@ -403,10 +403,10 @@ class PolarGrid(Recharts):
def create( # type: ignore def create( # type: ignore
cls, cls,
*children, *children,
cx: Optional[Union[Var[Union[int, str]], int, str]] = None, cx: Optional[Union[Var[int], int]] = None,
cy: Optional[Union[Var[Union[int, str]], int, str]] = None, cy: Optional[Union[Var[int], int]] = None,
inner_radius: Optional[Union[Var[Union[int, str]], int, str]] = None, inner_radius: Optional[Union[Var[int], int]] = None,
outer_radius: Optional[Union[Var[Union[int, str]], int, str]] = None, outer_radius: Optional[Union[Var[int], int]] = None,
polar_angles: Optional[Union[List[int], Var[List[int]]]] = None, polar_angles: Optional[Union[List[int], Var[List[int]]]] = None,
polar_radius: Optional[Union[List[int], Var[List[int]]]] = None, polar_radius: Optional[Union[List[int], Var[List[int]]]] = None,
grid_type: Optional[ grid_type: Optional[
@ -460,14 +460,14 @@ class PolarGrid(Recharts):
Args: Args:
*children: The children of the component. *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. cx: The x-coordinate of center.
cy: The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. cy: The y-coordinate of center.
inner_radius: The radius of the inner polar grid. inner_radius: The radius of the inner polar grid.
outer_radius: The radius of the outer polar grid. outer_radius: The radius of the outer polar grid.
polar_angles: The array of every line grid's angle. polar_angles: The array of every line grid's angle.
polar_radius: The array of every line grid's radius. polar_radius: The array of every line grid's radius.
grid_type: The type of polar grids. 'polygon' | 'circle' grid_type: The type of polar grids. 'polygon' | 'circle'. Default: "polygon"
stroke: The stroke color of grid stroke: The stroke color of grid. Default: rx.color("gray", 10)
style: The style of the component. style: The style of the component.
key: A unique key for the component. key: A unique key for the component.
id: The id for the component. id: The id for the component.