reflex 0.6.2a2__py3-none-any.whl → 0.6.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of reflex might be problematic. Click here for more details.
- reflex/__init__.py +3 -2
- reflex/__init__.pyi +3 -1
- reflex/components/base/app_wrap.pyi +17 -37
- reflex/components/base/body.pyi +17 -37
- reflex/components/base/document.pyi +77 -177
- reflex/components/base/error_boundary.pyi +18 -38
- reflex/components/base/fragment.pyi +17 -37
- reflex/components/base/head.pyi +32 -72
- reflex/components/base/link.pyi +32 -72
- reflex/components/base/meta.pyi +62 -142
- reflex/components/base/script.py +4 -4
- reflex/components/base/script.pyi +20 -40
- reflex/components/component.py +30 -19
- reflex/components/core/banner.pyi +77 -177
- reflex/components/core/client_side_routing.pyi +32 -72
- reflex/components/core/clipboard.py +3 -3
- reflex/components/core/clipboard.pyi +18 -38
- reflex/components/core/debounce.py +2 -2
- reflex/components/core/debounce.pyi +18 -38
- reflex/components/core/html.pyi +17 -37
- reflex/components/core/upload.py +4 -4
- reflex/components/core/upload.pyi +65 -145
- reflex/components/datadisplay/code.pyi +32 -72
- reflex/components/datadisplay/dataeditor.py +13 -13
- reflex/components/datadisplay/dataeditor.pyi +33 -83
- reflex/components/dynamic.py +6 -7
- reflex/components/el/__init__.pyi +1 -0
- reflex/components/el/element.pyi +17 -37
- reflex/components/el/elements/base.pyi +17 -37
- reflex/components/el/elements/forms.py +29 -14
- reflex/components/el/elements/forms.pyi +222 -504
- reflex/components/el/elements/inline.pyi +422 -982
- reflex/components/el/elements/media.pyi +377 -877
- reflex/components/el/elements/metadata.pyi +92 -212
- reflex/components/el/elements/other.pyi +107 -247
- reflex/components/el/elements/scripts.pyi +47 -107
- reflex/components/el/elements/sectioning.pyi +227 -527
- reflex/components/el/elements/tables.pyi +152 -352
- reflex/components/el/elements/typography.pyi +227 -527
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +32 -72
- reflex/components/lucide/icon.pyi +32 -72
- reflex/components/markdown/markdown.pyi +16 -36
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +18 -38
- reflex/components/next/base.pyi +17 -37
- reflex/components/next/image.py +3 -3
- reflex/components/next/image.pyi +19 -39
- reflex/components/next/link.pyi +17 -37
- reflex/components/next/video.pyi +17 -37
- reflex/components/plotly/plotly.py +1 -1
- reflex/components/plotly/plotly.pyi +35 -87
- reflex/components/radix/primitives/accordion.py +14 -2
- reflex/components/radix/primitives/accordion.pyi +110 -250
- reflex/components/radix/primitives/base.pyi +32 -72
- reflex/components/radix/primitives/drawer.py +30 -12
- reflex/components/radix/primitives/drawer.pyi +159 -373
- reflex/components/radix/primitives/form.py +3 -3
- reflex/components/radix/primitives/form.pyi +158 -364
- reflex/components/radix/primitives/progress.pyi +77 -177
- reflex/components/radix/primitives/slider.py +17 -3
- reflex/components/radix/primitives/slider.pyi +81 -183
- reflex/components/radix/themes/base.pyi +107 -247
- reflex/components/radix/themes/color_mode.pyi +48 -117
- reflex/components/radix/themes/components/alert_dialog.py +5 -5
- reflex/components/radix/themes/components/alert_dialog.pyi +111 -259
- reflex/components/radix/themes/components/aspect_ratio.pyi +17 -37
- reflex/components/radix/themes/components/avatar.pyi +17 -37
- reflex/components/radix/themes/components/badge.pyi +17 -37
- reflex/components/radix/themes/components/button.pyi +17 -37
- reflex/components/radix/themes/components/callout.pyi +77 -177
- reflex/components/radix/themes/components/card.pyi +17 -37
- reflex/components/radix/themes/components/checkbox.py +3 -3
- reflex/components/radix/themes/components/checkbox.pyi +50 -110
- reflex/components/radix/themes/components/checkbox_cards.pyi +32 -72
- reflex/components/radix/themes/components/checkbox_group.pyi +32 -72
- reflex/components/radix/themes/components/context_menu.py +11 -11
- reflex/components/radix/themes/components/context_menu.pyi +132 -312
- reflex/components/radix/themes/components/data_list.pyi +62 -142
- reflex/components/radix/themes/components/dialog.py +7 -7
- reflex/components/radix/themes/components/dialog.pyi +114 -268
- reflex/components/radix/themes/components/dropdown_menu.py +13 -13
- reflex/components/radix/themes/components/dropdown_menu.pyi +134 -316
- reflex/components/radix/themes/components/hover_card.py +2 -2
- reflex/components/radix/themes/components/hover_card.pyi +64 -148
- reflex/components/radix/themes/components/icon_button.pyi +17 -37
- reflex/components/radix/themes/components/inset.pyi +17 -37
- reflex/components/radix/themes/components/popover.py +8 -8
- reflex/components/radix/themes/components/popover.pyi +69 -163
- reflex/components/radix/themes/components/progress.pyi +17 -37
- reflex/components/radix/themes/components/radio.pyi +17 -37
- reflex/components/radix/themes/components/radio_cards.py +2 -2
- reflex/components/radix/themes/components/radio_cards.pyi +33 -75
- reflex/components/radix/themes/components/radio_group.py +4 -4
- reflex/components/radix/themes/components/radio_group.pyi +63 -143
- reflex/components/radix/themes/components/scroll_area.pyi +17 -37
- reflex/components/radix/themes/components/segmented_control.py +14 -2
- reflex/components/radix/themes/components/segmented_control.pyi +35 -73
- reflex/components/radix/themes/components/select.py +6 -5
- reflex/components/radix/themes/components/select.pyi +146 -338
- reflex/components/radix/themes/components/separator.pyi +17 -37
- reflex/components/radix/themes/components/skeleton.pyi +17 -37
- reflex/components/radix/themes/components/slider.py +19 -3
- reflex/components/radix/themes/components/slider.pyi +23 -41
- reflex/components/radix/themes/components/spinner.pyi +17 -37
- reflex/components/radix/themes/components/switch.py +2 -2
- reflex/components/radix/themes/components/switch.pyi +18 -38
- reflex/components/radix/themes/components/table.pyi +107 -247
- reflex/components/radix/themes/components/tabs.py +2 -2
- reflex/components/radix/themes/components/tabs.pyi +79 -179
- reflex/components/radix/themes/components/text_area.py +0 -16
- reflex/components/radix/themes/components/text_area.pyi +20 -42
- reflex/components/radix/themes/components/text_field.py +6 -6
- reflex/components/radix/themes/components/text_field.pyi +53 -117
- reflex/components/radix/themes/components/tooltip.py +4 -4
- reflex/components/radix/themes/components/tooltip.pyi +20 -46
- reflex/components/radix/themes/layout/base.pyi +17 -37
- reflex/components/radix/themes/layout/box.pyi +17 -37
- reflex/components/radix/themes/layout/center.pyi +17 -37
- reflex/components/radix/themes/layout/container.pyi +17 -37
- reflex/components/radix/themes/layout/flex.pyi +17 -37
- reflex/components/radix/themes/layout/grid.pyi +17 -37
- reflex/components/radix/themes/layout/list.pyi +77 -177
- reflex/components/radix/themes/layout/section.pyi +17 -37
- reflex/components/radix/themes/layout/spacer.pyi +17 -37
- reflex/components/radix/themes/layout/stack.pyi +47 -107
- reflex/components/radix/themes/typography/blockquote.pyi +17 -37
- reflex/components/radix/themes/typography/code.pyi +17 -37
- reflex/components/radix/themes/typography/heading.pyi +17 -37
- reflex/components/radix/themes/typography/link.pyi +17 -37
- reflex/components/radix/themes/typography/text.pyi +107 -247
- reflex/components/react_player/audio.pyi +33 -69
- reflex/components/react_player/react_player.py +17 -17
- reflex/components/react_player/react_player.pyi +33 -69
- reflex/components/react_player/video.pyi +33 -69
- reflex/components/recharts/cartesian.py +216 -186
- reflex/components/recharts/cartesian.pyi +623 -832
- reflex/components/recharts/charts.py +68 -65
- reflex/components/recharts/charts.pyi +213 -433
- reflex/components/recharts/general.py +27 -21
- reflex/components/recharts/general.pyi +94 -189
- reflex/components/recharts/polar.py +135 -97
- reflex/components/recharts/polar.pyi +219 -229
- reflex/components/recharts/recharts.py +5 -1
- reflex/components/recharts/recharts.pyi +37 -73
- reflex/components/sonner/toast.py +1 -1
- reflex/components/sonner/toast.pyi +17 -37
- reflex/components/suneditor/editor.pyi +26 -52
- reflex/components/tags/iter_tag.py +2 -2
- reflex/config.py +16 -0
- reflex/constants/__init__.py +2 -0
- reflex/constants/compiler.py +25 -0
- reflex/constants/installer.py +17 -16
- reflex/constants/state.py +11 -0
- reflex/constants/style.py +1 -1
- reflex/custom_components/custom_components.py +1 -1
- reflex/event.py +337 -84
- reflex/experimental/layout.pyi +78 -180
- reflex/istate/dynamic.py +3 -0
- reflex/state.py +197 -118
- reflex/style.py +5 -0
- reflex/testing.py +8 -5
- reflex/utils/compat.py +1 -3
- reflex/utils/exceptions.py +8 -0
- reflex/utils/path_ops.py +2 -2
- reflex/utils/prerequisites.py +2 -2
- reflex/utils/pyi_generator.py +44 -4
- reflex/utils/registry.py +17 -3
- reflex/utils/telemetry.py +1 -3
- reflex/utils/types.py +60 -16
- reflex/vars/__init__.py +2 -0
- reflex/vars/base.py +127 -72
- reflex/vars/object.py +5 -1
- reflex/vars/sequence.py +15 -3
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/METADATA +3 -3
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/RECORD +179 -177
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/LICENSE +0 -0
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/WHEEL +0 -0
- {reflex-0.6.2a2.dist-info → reflex-0.6.3.dist-info}/entry_points.txt +0 -0
|
@@ -6,13 +6,14 @@ from typing import Any, Dict, List, Union
|
|
|
6
6
|
|
|
7
7
|
from reflex.constants import EventTriggers
|
|
8
8
|
from reflex.constants.colors import Color
|
|
9
|
-
from reflex.event import EventHandler
|
|
9
|
+
from reflex.event import EventHandler, empty_event
|
|
10
10
|
from reflex.vars.base import LiteralVar, Var
|
|
11
11
|
|
|
12
12
|
from .recharts import (
|
|
13
13
|
LiteralAnimationEasing,
|
|
14
14
|
LiteralGridType,
|
|
15
15
|
LiteralLegendType,
|
|
16
|
+
LiteralOrientationLeftRightMiddle,
|
|
16
17
|
LiteralPolarRadiusType,
|
|
17
18
|
LiteralScale,
|
|
18
19
|
Recharts,
|
|
@@ -26,57 +27,75 @@ class Pie(Recharts):
|
|
|
26
27
|
|
|
27
28
|
alias = "RechartsPie"
|
|
28
29
|
|
|
29
|
-
# data
|
|
30
|
+
# The source data which each element is an object.
|
|
30
31
|
data: Var[List[Dict[str, Any]]]
|
|
31
32
|
|
|
32
33
|
# The key of each sector's value.
|
|
33
34
|
data_key: Var[Union[str, int]]
|
|
34
35
|
|
|
35
|
-
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width.
|
|
36
|
+
# The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container width. Default: "50%"
|
|
36
37
|
cx: Var[Union[int, str]]
|
|
37
38
|
|
|
38
|
-
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height.
|
|
39
|
+
# The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of container height. Default: "50%"
|
|
39
40
|
cy: Var[Union[int, str]]
|
|
40
41
|
|
|
41
|
-
# The inner radius of pie, which can be set to a percent value.
|
|
42
|
+
# The inner radius of pie, which can be set to a percent value. Default: 0
|
|
42
43
|
inner_radius: Var[Union[int, str]]
|
|
43
44
|
|
|
44
|
-
# The outer radius of pie, which can be set to a percent value.
|
|
45
|
+
# The outer radius of pie, which can be set to a percent value. Default: "80%"
|
|
45
46
|
outer_radius: Var[Union[int, str]]
|
|
46
47
|
|
|
47
|
-
# The angle of first sector.
|
|
48
|
+
# The angle of first sector. Default: 0
|
|
48
49
|
start_angle: Var[int]
|
|
49
50
|
|
|
50
|
-
# The
|
|
51
|
+
# The end angle of last sector, which should be unequal to start_angle. Default: 360
|
|
51
52
|
end_angle: Var[int]
|
|
52
53
|
|
|
53
|
-
# The minimum angle of each unzero data.
|
|
54
|
+
# The minimum angle of each unzero data. Default: 0
|
|
54
55
|
min_angle: Var[int]
|
|
55
56
|
|
|
56
|
-
# The angle between two sectors.
|
|
57
|
+
# The angle between two sectors. Default: 0
|
|
57
58
|
padding_angle: Var[int]
|
|
58
59
|
|
|
59
|
-
# The key of each sector's name.
|
|
60
|
+
# The key of each sector's name. Default: "name"
|
|
60
61
|
name_key: Var[str]
|
|
61
62
|
|
|
62
|
-
# The type of icon in legend. If set to 'none', no legend item will be rendered.
|
|
63
|
+
# The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "rect"
|
|
63
64
|
legend_type: Var[LiteralLegendType]
|
|
64
65
|
|
|
65
|
-
# If false set, labels will not be drawn.
|
|
66
|
+
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
66
67
|
label: Var[bool] = False # type: ignore
|
|
67
68
|
|
|
68
|
-
# If false set, label lines will not be drawn.
|
|
69
|
+
# If false set, label lines will not be drawn. If true set, label lines will be drawn which have the props calculated internally. Default: False
|
|
69
70
|
label_line: Var[bool]
|
|
70
71
|
|
|
72
|
+
# The index of active sector in Pie, this option can be changed in mouse event handlers.
|
|
73
|
+
data: Var[List[Dict[str, Any]]]
|
|
74
|
+
|
|
71
75
|
# Valid children components
|
|
72
76
|
_valid_children: List[str] = ["Cell", "LabelList"]
|
|
73
77
|
|
|
74
|
-
# Stoke color
|
|
78
|
+
# Stoke color. Default: rx.color("accent", 9)
|
|
75
79
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
76
80
|
|
|
77
|
-
# Fill color
|
|
81
|
+
# Fill color. Default: rx.color("accent", 3)
|
|
78
82
|
fill: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 3))
|
|
79
83
|
|
|
84
|
+
# If set false, animation of tooltip will be disabled. Default: true in CSR, and false in SSR
|
|
85
|
+
is_animation_active: Var[bool]
|
|
86
|
+
|
|
87
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 400
|
|
88
|
+
animation_begin: Var[int]
|
|
89
|
+
|
|
90
|
+
# Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
91
|
+
animation_duration: Var[int]
|
|
92
|
+
|
|
93
|
+
# The type of easing function. Default: "ease"
|
|
94
|
+
animation_easing: Var[LiteralAnimationEasing]
|
|
95
|
+
|
|
96
|
+
# The tabindex of wrapper surrounding the cells. Default: 0
|
|
97
|
+
root_tab_index: Var[int]
|
|
98
|
+
|
|
80
99
|
def get_event_triggers(self) -> dict[str, Union[Var, Any]]:
|
|
81
100
|
"""Get the event triggers that pass the component's value to the handler.
|
|
82
101
|
|
|
@@ -84,12 +103,14 @@ class Pie(Recharts):
|
|
|
84
103
|
A dict mapping the event trigger to the var that is passed to the handler.
|
|
85
104
|
"""
|
|
86
105
|
return {
|
|
87
|
-
EventTriggers.
|
|
88
|
-
EventTriggers.
|
|
89
|
-
EventTriggers.
|
|
90
|
-
EventTriggers.
|
|
91
|
-
EventTriggers.
|
|
92
|
-
EventTriggers.
|
|
106
|
+
EventTriggers.ON_ANIMATION_START: empty_event,
|
|
107
|
+
EventTriggers.ON_ANIMATION_END: empty_event,
|
|
108
|
+
EventTriggers.ON_CLICK: empty_event,
|
|
109
|
+
EventTriggers.ON_MOUSE_MOVE: empty_event,
|
|
110
|
+
EventTriggers.ON_MOUSE_OVER: empty_event,
|
|
111
|
+
EventTriggers.ON_MOUSE_OUT: empty_event,
|
|
112
|
+
EventTriggers.ON_MOUSE_ENTER: empty_event,
|
|
113
|
+
EventTriggers.ON_MOUSE_LEAVE: empty_event,
|
|
93
114
|
}
|
|
94
115
|
|
|
95
116
|
|
|
@@ -106,36 +127,50 @@ class Radar(Recharts):
|
|
|
106
127
|
# The coordinates of all the vertexes of the radar shape, like [{ x, y }].
|
|
107
128
|
points: Var[List[Dict[str, Any]]]
|
|
108
129
|
|
|
109
|
-
# If false set, dots will not be drawn
|
|
130
|
+
# If false set, dots will not be drawn. Default: True
|
|
110
131
|
dot: Var[bool]
|
|
111
132
|
|
|
112
|
-
# Stoke color
|
|
133
|
+
# Stoke color. Default: rx.color("accent", 9)
|
|
113
134
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("accent", 9))
|
|
114
135
|
|
|
115
|
-
# Fill color
|
|
136
|
+
# Fill color. Default: rx.color("accent", 3)
|
|
116
137
|
fill: Var[str] = LiteralVar.create(Color("accent", 3))
|
|
117
138
|
|
|
118
|
-
# opacity
|
|
139
|
+
# opacity. Default: 0.6
|
|
119
140
|
fill_opacity: Var[float] = LiteralVar.create(0.6)
|
|
120
141
|
|
|
121
|
-
# The type of icon in legend. If set to 'none', no legend item will be rendered.
|
|
122
|
-
legend_type: Var[
|
|
142
|
+
# The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "rect"
|
|
143
|
+
legend_type: Var[LiteralLegendType]
|
|
123
144
|
|
|
124
|
-
# If false set, labels will not be drawn
|
|
145
|
+
# If false set, labels will not be drawn. Default: True
|
|
125
146
|
label: Var[bool]
|
|
126
147
|
|
|
127
|
-
#
|
|
148
|
+
# If set false, animation of polygon will be disabled. Default: True in CSR, and False in SSR
|
|
149
|
+
is_animation_active: Var[bool]
|
|
150
|
+
|
|
151
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
128
152
|
animation_begin: Var[int]
|
|
129
153
|
|
|
130
|
-
# Specifies the duration of animation, the unit of this option is ms.
|
|
154
|
+
# Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
131
155
|
animation_duration: Var[int]
|
|
132
156
|
|
|
133
|
-
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
|
|
157
|
+
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
|
|
134
158
|
animation_easing: Var[LiteralAnimationEasing]
|
|
135
159
|
|
|
136
160
|
# Valid children components
|
|
137
161
|
_valid_children: List[str] = ["LabelList"]
|
|
138
162
|
|
|
163
|
+
def get_event_triggers(self) -> dict[str, Union[Var, Any]]:
|
|
164
|
+
"""Get the event triggers that pass the component's value to the handler.
|
|
165
|
+
|
|
166
|
+
Returns:
|
|
167
|
+
A dict mapping the event trigger to the var that is passed to the handler.
|
|
168
|
+
"""
|
|
169
|
+
return {
|
|
170
|
+
EventTriggers.ON_ANIMATION_START: empty_event,
|
|
171
|
+
EventTriggers.ON_ANIMATION_END: empty_event,
|
|
172
|
+
}
|
|
173
|
+
|
|
139
174
|
|
|
140
175
|
class RadialBar(Recharts):
|
|
141
176
|
"""A RadialBar chart component in Recharts."""
|
|
@@ -144,31 +179,34 @@ class RadialBar(Recharts):
|
|
|
144
179
|
|
|
145
180
|
alias = "RechartsRadialBar"
|
|
146
181
|
|
|
182
|
+
# The source data which each element is an object.
|
|
183
|
+
data: Var[List[Dict[str, Any]]]
|
|
184
|
+
|
|
147
185
|
# The key of a group of data which should be unique to show the meaning of angle axis.
|
|
148
186
|
data_key: Var[Union[str, int]]
|
|
149
187
|
|
|
150
|
-
# Min angle of each bar. A positive value between 0 and 360.
|
|
188
|
+
# Min angle of each bar. A positive value between 0 and 360. Default: 0
|
|
151
189
|
min_angle: Var[int]
|
|
152
190
|
|
|
153
|
-
#
|
|
154
|
-
legend_type: Var[
|
|
191
|
+
# The type of icon in legend. If set to 'none', no legend item will be rendered. Default: "rect"
|
|
192
|
+
legend_type: Var[LiteralLegendType]
|
|
155
193
|
|
|
156
|
-
# If false set, labels will not be drawn.
|
|
194
|
+
# If false set, labels will not be drawn. If true set, labels will be drawn which have the props calculated internally. Default: False
|
|
157
195
|
label: Var[Union[bool, Dict[str, Any]]]
|
|
158
196
|
|
|
159
|
-
# If false set, background sector will not be drawn.
|
|
197
|
+
# If false set, background sector will not be drawn. Default: False
|
|
160
198
|
background: Var[Union[bool, Dict[str, Any]]]
|
|
161
199
|
|
|
162
|
-
# If set false, animation of radial bars will be disabled.
|
|
200
|
+
# If set false, animation of radial bars will be disabled. Default: True
|
|
163
201
|
is_animation_active: Var[bool]
|
|
164
202
|
|
|
165
|
-
# Specifies when the animation should begin, the unit of this option is ms.
|
|
203
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
166
204
|
animation_begin: Var[int]
|
|
167
205
|
|
|
168
|
-
# Specifies the duration of animation, the unit of this option is ms.
|
|
206
|
+
# Specifies the duration of animation, the unit of this option is ms. Default 1500
|
|
169
207
|
animation_duration: Var[int]
|
|
170
208
|
|
|
171
|
-
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'.
|
|
209
|
+
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
|
|
172
210
|
animation_easing: Var[LiteralAnimationEasing]
|
|
173
211
|
|
|
174
212
|
# Valid children components
|
|
@@ -181,14 +219,14 @@ class RadialBar(Recharts):
|
|
|
181
219
|
A dict mapping the event trigger to the var that is passed to the handler.
|
|
182
220
|
"""
|
|
183
221
|
return {
|
|
184
|
-
EventTriggers.ON_CLICK:
|
|
185
|
-
EventTriggers.ON_MOUSE_MOVE:
|
|
186
|
-
EventTriggers.ON_MOUSE_OVER:
|
|
187
|
-
EventTriggers.ON_MOUSE_OUT:
|
|
188
|
-
EventTriggers.ON_MOUSE_ENTER:
|
|
189
|
-
EventTriggers.ON_MOUSE_LEAVE:
|
|
190
|
-
EventTriggers.ON_ANIMATION_START:
|
|
191
|
-
EventTriggers.ON_ANIMATION_END:
|
|
222
|
+
EventTriggers.ON_CLICK: empty_event,
|
|
223
|
+
EventTriggers.ON_MOUSE_MOVE: empty_event,
|
|
224
|
+
EventTriggers.ON_MOUSE_OVER: empty_event,
|
|
225
|
+
EventTriggers.ON_MOUSE_OUT: empty_event,
|
|
226
|
+
EventTriggers.ON_MOUSE_ENTER: empty_event,
|
|
227
|
+
EventTriggers.ON_MOUSE_LEAVE: empty_event,
|
|
228
|
+
EventTriggers.ON_ANIMATION_START: empty_event,
|
|
229
|
+
EventTriggers.ON_ANIMATION_END: empty_event,
|
|
192
230
|
}
|
|
193
231
|
|
|
194
232
|
|
|
@@ -211,56 +249,56 @@ class PolarAngleAxis(Recharts):
|
|
|
211
249
|
# The outer radius of circle grid. If set a percentage, the final value is obtained by multiplying the percentage of maxRadius which is calculated by the width, height, cx, cy.
|
|
212
250
|
radius: Var[Union[int, str]]
|
|
213
251
|
|
|
214
|
-
# If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option.
|
|
252
|
+
# If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
215
253
|
axis_line: Var[Union[bool, Dict[str, Any]]]
|
|
216
254
|
|
|
217
|
-
# The type of axis line.
|
|
218
|
-
axis_line_type: Var[
|
|
255
|
+
# The type of axis line. Default: "polygon"
|
|
256
|
+
axis_line_type: Var[LiteralGridType]
|
|
219
257
|
|
|
220
|
-
# If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option.
|
|
258
|
+
# If false set, tick lines will not be drawn. If true set, tick lines will be drawn which have the props calculated internally. If object set, tick lines will be drawn which have the props mergered by the internal calculated props and the option. Default: False
|
|
221
259
|
tick_line: Var[Union[bool, Dict[str, Any]]] = LiteralVar.create(False)
|
|
222
260
|
|
|
223
|
-
#
|
|
224
|
-
tick: Var[Union[
|
|
261
|
+
# If false set, ticks will not be drawn. If true set, ticks will be drawn which have the props calculated internally. If object set, ticks will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
262
|
+
tick: Var[Union[bool, Dict[str, Any]]]
|
|
225
263
|
|
|
226
264
|
# The array of every tick's value and angle.
|
|
227
265
|
ticks: Var[List[Dict[str, Any]]]
|
|
228
266
|
|
|
229
|
-
# The orientation of axis text.
|
|
230
|
-
|
|
267
|
+
# The orientation of axis text. Default: "outer"
|
|
268
|
+
orientation: Var[str]
|
|
231
269
|
|
|
232
|
-
# The stroke color of axis
|
|
270
|
+
# The stroke color of axis. Default: rx.color("gray", 10)
|
|
233
271
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
|
|
234
272
|
|
|
235
|
-
# Allow the axis has duplicated categorys or not when the type of axis is "category".
|
|
273
|
+
# Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
|
|
236
274
|
allow_duplicated_category: Var[bool]
|
|
237
275
|
|
|
238
276
|
# Valid children components.
|
|
239
277
|
_valid_children: List[str] = ["Label"]
|
|
240
278
|
|
|
241
279
|
# The customized event handler of click on the ticks of this axis.
|
|
242
|
-
on_click: EventHandler[
|
|
280
|
+
on_click: EventHandler[empty_event]
|
|
243
281
|
|
|
244
282
|
# The customized event handler of mousedown on the the ticks of this axis.
|
|
245
|
-
on_mouse_down: EventHandler[
|
|
283
|
+
on_mouse_down: EventHandler[empty_event]
|
|
246
284
|
|
|
247
285
|
# The customized event handler of mouseup on the ticks of this axis.
|
|
248
|
-
on_mouse_up: EventHandler[
|
|
286
|
+
on_mouse_up: EventHandler[empty_event]
|
|
249
287
|
|
|
250
288
|
# The customized event handler of mousemove on the ticks of this axis.
|
|
251
|
-
on_mouse_move: EventHandler[
|
|
289
|
+
on_mouse_move: EventHandler[empty_event]
|
|
252
290
|
|
|
253
291
|
# The customized event handler of mouseover on the ticks of this axis.
|
|
254
|
-
on_mouse_over: EventHandler[
|
|
292
|
+
on_mouse_over: EventHandler[empty_event]
|
|
255
293
|
|
|
256
294
|
# The customized event handler of mouseout on the ticks of this axis.
|
|
257
|
-
on_mouse_out: EventHandler[
|
|
295
|
+
on_mouse_out: EventHandler[empty_event]
|
|
258
296
|
|
|
259
297
|
# The customized event handler of moustenter on the ticks of this axis.
|
|
260
|
-
on_mouse_enter: EventHandler[
|
|
298
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
261
299
|
|
|
262
300
|
# The customized event handler of mouseleave on the ticks of this axis.
|
|
263
|
-
on_mouse_leave: EventHandler[
|
|
301
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
264
302
|
|
|
265
303
|
|
|
266
304
|
class PolarGrid(Recharts):
|
|
@@ -270,17 +308,17 @@ class PolarGrid(Recharts):
|
|
|
270
308
|
|
|
271
309
|
alias = "RechartsPolarGrid"
|
|
272
310
|
|
|
273
|
-
# The x-coordinate of center.
|
|
274
|
-
cx: Var[
|
|
311
|
+
# The x-coordinate of center.
|
|
312
|
+
cx: Var[int]
|
|
275
313
|
|
|
276
|
-
# The y-coordinate of center.
|
|
277
|
-
cy: Var[
|
|
314
|
+
# The y-coordinate of center.
|
|
315
|
+
cy: Var[int]
|
|
278
316
|
|
|
279
317
|
# The radius of the inner polar grid.
|
|
280
|
-
inner_radius: Var[
|
|
318
|
+
inner_radius: Var[int]
|
|
281
319
|
|
|
282
320
|
# The radius of the outer polar grid.
|
|
283
|
-
outer_radius: Var[
|
|
321
|
+
outer_radius: Var[int]
|
|
284
322
|
|
|
285
323
|
# The array of every line grid's angle.
|
|
286
324
|
polar_angles: Var[List[int]]
|
|
@@ -288,10 +326,10 @@ class PolarGrid(Recharts):
|
|
|
288
326
|
# The array of every line grid's radius.
|
|
289
327
|
polar_radius: Var[List[int]]
|
|
290
328
|
|
|
291
|
-
# The type of polar grids. 'polygon' | 'circle'
|
|
329
|
+
# The type of polar grids. 'polygon' | 'circle'. Default: "polygon"
|
|
292
330
|
grid_type: Var[LiteralGridType]
|
|
293
331
|
|
|
294
|
-
# The stroke color of grid
|
|
332
|
+
# The stroke color of grid. Default: rx.color("gray", 10)
|
|
295
333
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
|
|
296
334
|
|
|
297
335
|
# Valid children components
|
|
@@ -305,46 +343,46 @@ class PolarRadiusAxis(Recharts):
|
|
|
305
343
|
|
|
306
344
|
alias = "RechartsPolarRadiusAxis"
|
|
307
345
|
|
|
308
|
-
# The angle of radial direction line to display axis text.
|
|
346
|
+
# The angle of radial direction line to display axis text. Default: 0
|
|
309
347
|
angle: Var[int]
|
|
310
348
|
|
|
311
|
-
# The type of axis line. 'number' | 'category'
|
|
349
|
+
# The type of axis line. 'number' | 'category'. Default: "category"
|
|
312
350
|
type_: Var[LiteralPolarRadiusType]
|
|
313
351
|
|
|
314
|
-
# Allow the axis has duplicated categorys or not when the type of axis is "category".
|
|
352
|
+
# Allow the axis has duplicated categorys or not when the type of axis is "category". Default: True
|
|
315
353
|
allow_duplicated_category: Var[bool]
|
|
316
354
|
|
|
317
355
|
# The x-coordinate of center.
|
|
318
|
-
cx: Var[
|
|
356
|
+
cx: Var[int]
|
|
319
357
|
|
|
320
358
|
# The y-coordinate of center.
|
|
321
|
-
cy: Var[
|
|
359
|
+
cy: Var[int]
|
|
322
360
|
|
|
323
|
-
# If set to true, the ticks of this axis are reversed.
|
|
361
|
+
# If set to true, the ticks of this axis are reversed. Default: False
|
|
324
362
|
reversed: Var[bool]
|
|
325
363
|
|
|
326
|
-
# The orientation of axis text.
|
|
327
|
-
orientation: Var[
|
|
364
|
+
# The orientation of axis text. Default: "right"
|
|
365
|
+
orientation: Var[LiteralOrientationLeftRightMiddle]
|
|
328
366
|
|
|
329
|
-
# If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option.
|
|
367
|
+
# If false set, axis line will not be drawn. If true set, axis line will be drawn which have the props calculated internally. If object set, axis line will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
330
368
|
axis_line: Var[Union[bool, Dict[str, Any]]]
|
|
331
369
|
|
|
332
|
-
#
|
|
333
|
-
tick: Var[Union[
|
|
370
|
+
# If false set, ticks will not be drawn. If true set, ticks will be drawn which have the props calculated internally. If object set, ticks will be drawn which have the props mergered by the internal calculated props and the option. Default: True
|
|
371
|
+
tick: Var[Union[bool, Dict[str, Any]]]
|
|
334
372
|
|
|
335
|
-
# The count of ticks.
|
|
373
|
+
# The count of axis ticks. Not used if 'type' is 'category'. Default: 5
|
|
336
374
|
tick_count: Var[int]
|
|
337
375
|
|
|
338
|
-
# If 'auto' set, the scale funtion is linear scale. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'
|
|
376
|
+
# If 'auto' set, the scale funtion is linear scale. 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utc' | 'sequential' | 'threshold'. Default: "auto"
|
|
339
377
|
scale: Var[LiteralScale]
|
|
340
378
|
|
|
341
379
|
# Valid children components
|
|
342
380
|
_valid_children: List[str] = ["Label"]
|
|
343
381
|
|
|
344
|
-
# The domain of the polar radius axis, specifying the minimum and maximum values.
|
|
345
|
-
domain: Var[List[int
|
|
382
|
+
# The domain of the polar radius axis, specifying the minimum and maximum values. Default: [0, "auto"]
|
|
383
|
+
domain: Var[List[Union[int, str]]]
|
|
346
384
|
|
|
347
|
-
# The stroke color of axis
|
|
385
|
+
# The stroke color of axis. Default: rx.color("gray", 10)
|
|
348
386
|
stroke: Var[Union[str, Color]] = LiteralVar.create(Color("gray", 10))
|
|
349
387
|
|
|
350
388
|
def get_event_triggers(self) -> dict[str, Union[Var, Any]]:
|
|
@@ -354,12 +392,12 @@ class PolarRadiusAxis(Recharts):
|
|
|
354
392
|
A dict mapping the event trigger to the var that is passed to the handler.
|
|
355
393
|
"""
|
|
356
394
|
return {
|
|
357
|
-
EventTriggers.ON_CLICK:
|
|
358
|
-
EventTriggers.ON_MOUSE_MOVE:
|
|
359
|
-
EventTriggers.ON_MOUSE_OVER:
|
|
360
|
-
EventTriggers.ON_MOUSE_OUT:
|
|
361
|
-
EventTriggers.ON_MOUSE_ENTER:
|
|
362
|
-
EventTriggers.ON_MOUSE_LEAVE:
|
|
395
|
+
EventTriggers.ON_CLICK: empty_event,
|
|
396
|
+
EventTriggers.ON_MOUSE_MOVE: empty_event,
|
|
397
|
+
EventTriggers.ON_MOUSE_OVER: empty_event,
|
|
398
|
+
EventTriggers.ON_MOUSE_OUT: empty_event,
|
|
399
|
+
EventTriggers.ON_MOUSE_ENTER: empty_event,
|
|
400
|
+
EventTriggers.ON_MOUSE_LEAVE: empty_event,
|
|
363
401
|
}
|
|
364
402
|
|
|
365
403
|
|