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
|
@@ -8,8 +8,8 @@ from reflex.components.component import Component
|
|
|
8
8
|
from reflex.components.recharts.general import ResponsiveContainer
|
|
9
9
|
from reflex.constants import EventTriggers
|
|
10
10
|
from reflex.constants.colors import Color
|
|
11
|
-
from reflex.event import EventHandler
|
|
12
|
-
from reflex.vars.base import
|
|
11
|
+
from reflex.event import EventHandler, empty_event
|
|
12
|
+
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
14
|
from .recharts import (
|
|
15
15
|
LiteralAnimationEasing,
|
|
@@ -31,16 +31,16 @@ class ChartBase(RechartsCharts):
|
|
|
31
31
|
height: Var[Union[str, int]] = "100%" # type: ignore
|
|
32
32
|
|
|
33
33
|
# The customized event handler of click on the component in this chart
|
|
34
|
-
on_click: EventHandler[
|
|
34
|
+
on_click: EventHandler[empty_event]
|
|
35
35
|
|
|
36
36
|
# The customized event handler of mouseenter on the component in this chart
|
|
37
|
-
on_mouse_enter: EventHandler[
|
|
37
|
+
on_mouse_enter: EventHandler[empty_event]
|
|
38
38
|
|
|
39
39
|
# The customized event handler of mousemove on the component in this chart
|
|
40
|
-
on_mouse_move: EventHandler[
|
|
40
|
+
on_mouse_move: EventHandler[empty_event]
|
|
41
41
|
|
|
42
42
|
# The customized event handler of mouseleave on the component in this chart
|
|
43
|
-
on_mouse_leave: EventHandler[
|
|
43
|
+
on_mouse_leave: EventHandler[empty_event]
|
|
44
44
|
|
|
45
45
|
@staticmethod
|
|
46
46
|
def _ensure_valid_dimension(name: str, value: Any) -> None:
|
|
@@ -112,10 +112,10 @@ class CategoricalChartBase(ChartBase):
|
|
|
112
112
|
# If any two categorical charts(rx.line_chart, rx.area_chart, rx.bar_chart, rx.composed_chart) have the same sync_id, these two charts can sync the position GraphingTooltip, and the start_index, end_index of Brush.
|
|
113
113
|
sync_id: Var[str]
|
|
114
114
|
|
|
115
|
-
# When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function
|
|
115
|
+
# When sync_id is provided, allows customisation of how the charts will synchronize GraphingTooltips and brushes. Using 'index' (default setting), other charts will reuse current datum's index within the data array. In cases where data does not have the same length, this might yield unexpected results. In that case use 'value' which will try to match other charts values, or a fully custom function which will receive tick, data as argument and should return an index. 'index' | 'value' | function. Default: "index"
|
|
116
116
|
sync_method: Var[LiteralSyncMethod]
|
|
117
117
|
|
|
118
|
-
# The layout of area in the chart. 'horizontal' | 'vertical'
|
|
118
|
+
# The layout of area in the chart. 'horizontal' | 'vertical'. Default: "horizontal"
|
|
119
119
|
layout: Var[LiteralLayout]
|
|
120
120
|
|
|
121
121
|
# The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. 'expand' | 'none' | 'wiggle' | 'silhouette'
|
|
@@ -129,7 +129,7 @@ class AreaChart(CategoricalChartBase):
|
|
|
129
129
|
|
|
130
130
|
alias = "RechartsAreaChart"
|
|
131
131
|
|
|
132
|
-
# The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'
|
|
132
|
+
# The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'. Default: "auto"
|
|
133
133
|
base_value: Var[Union[int, LiteralComposedChartBaseValue]]
|
|
134
134
|
|
|
135
135
|
# Valid children components
|
|
@@ -155,11 +155,11 @@ class BarChart(CategoricalChartBase):
|
|
|
155
155
|
|
|
156
156
|
alias = "RechartsBarChart"
|
|
157
157
|
|
|
158
|
-
# The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
159
|
-
bar_category_gap: Var[Union[str, int]]
|
|
158
|
+
# The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number. Default: "10%"
|
|
159
|
+
bar_category_gap: Var[Union[str, int]]
|
|
160
160
|
|
|
161
|
-
# The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number
|
|
162
|
-
bar_gap: Var[Union[str, int]]
|
|
161
|
+
# The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number. Default: 4
|
|
162
|
+
bar_gap: Var[Union[str, int]]
|
|
163
163
|
|
|
164
164
|
# The width of all the bars in the chart. Number
|
|
165
165
|
bar_size: Var[int]
|
|
@@ -167,10 +167,10 @@ class BarChart(CategoricalChartBase):
|
|
|
167
167
|
# The maximum width of all the bars in a horizontal BarChart, or maximum height in a vertical BarChart.
|
|
168
168
|
max_bar_size: Var[int]
|
|
169
169
|
|
|
170
|
-
# The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape.
|
|
170
|
+
# The type of offset function used to generate the lower and upper values in the series array. The four types are built-in offsets in d3-shape. Default: "none"
|
|
171
171
|
stack_offset: Var[LiteralStackOffset]
|
|
172
172
|
|
|
173
|
-
# If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.)
|
|
173
|
+
# If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.) Default: False
|
|
174
174
|
reverse_stack_order: Var[bool]
|
|
175
175
|
|
|
176
176
|
# Valid children components
|
|
@@ -217,19 +217,19 @@ class ComposedChart(CategoricalChartBase):
|
|
|
217
217
|
|
|
218
218
|
alias = "RechartsComposedChart"
|
|
219
219
|
|
|
220
|
-
# The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'
|
|
220
|
+
# The base value of area. Number | 'dataMin' | 'dataMax' | 'auto'. Default: "auto"
|
|
221
221
|
base_value: Var[Union[int, LiteralComposedChartBaseValue]]
|
|
222
222
|
|
|
223
|
-
# The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
224
|
-
bar_category_gap: Var[Union[str, int]]
|
|
223
|
+
# The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number. Default: "10%"
|
|
224
|
+
bar_category_gap: Var[Union[str, int]]
|
|
225
225
|
|
|
226
|
-
# The gap between two bars in the same category
|
|
227
|
-
bar_gap: Var[
|
|
226
|
+
# The gap between two bars in the same category. Default: 4
|
|
227
|
+
bar_gap: Var[int]
|
|
228
228
|
|
|
229
|
-
# The width of
|
|
229
|
+
# The width or height of each bar. If the barSize is not specified, the size of the bar will be calculated by the barCategoryGap, barGap and the quantity of bar groups.
|
|
230
230
|
bar_size: Var[int]
|
|
231
231
|
|
|
232
|
-
# If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position.
|
|
232
|
+
# If false set, stacked items will be rendered left to right. If true set, stacked items will be rendered right to left. (Render direction affects SVG layering, not x position). Default: False
|
|
233
233
|
reverse_stack_order: Var[bool]
|
|
234
234
|
|
|
235
235
|
# Valid children components
|
|
@@ -270,16 +270,16 @@ class PieChart(ChartBase):
|
|
|
270
270
|
]
|
|
271
271
|
|
|
272
272
|
# The customized event handler of mousedown on the sectors in this group
|
|
273
|
-
on_mouse_down: EventHandler[
|
|
273
|
+
on_mouse_down: EventHandler[empty_event]
|
|
274
274
|
|
|
275
275
|
# The customized event handler of mouseup on the sectors in this group
|
|
276
|
-
on_mouse_up: EventHandler[
|
|
276
|
+
on_mouse_up: EventHandler[empty_event]
|
|
277
277
|
|
|
278
278
|
# The customized event handler of mouseover on the sectors in this group
|
|
279
|
-
on_mouse_over: EventHandler[
|
|
279
|
+
on_mouse_over: EventHandler[empty_event]
|
|
280
280
|
|
|
281
281
|
# The customized event handler of mouseout on the sectors in this group
|
|
282
|
-
on_mouse_out: EventHandler[
|
|
282
|
+
on_mouse_out: EventHandler[empty_event]
|
|
283
283
|
|
|
284
284
|
|
|
285
285
|
class RadarChart(ChartBase):
|
|
@@ -292,25 +292,25 @@ class RadarChart(ChartBase):
|
|
|
292
292
|
# The source data, in which each element is an object.
|
|
293
293
|
data: Var[List[Dict[str, Any]]]
|
|
294
294
|
|
|
295
|
-
# The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}.
|
|
295
|
+
# The sizes of whitespace around the chart, i.e. {"top": 50, "right": 30, "left": 20, "bottom": 5}. Default: {"top": 0, "right": 0, "left": 0, "bottom": 0}
|
|
296
296
|
margin: Var[Dict[str, Any]]
|
|
297
297
|
|
|
298
|
-
# The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage
|
|
298
|
+
# The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
|
|
299
299
|
cx: Var[Union[int, str]]
|
|
300
300
|
|
|
301
|
-
# The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage
|
|
301
|
+
# The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
|
|
302
302
|
cy: Var[Union[int, str]]
|
|
303
303
|
|
|
304
|
-
# The angle of first radial direction line.
|
|
304
|
+
# The angle of first radial direction line. Default: 90
|
|
305
305
|
start_angle: Var[int]
|
|
306
306
|
|
|
307
|
-
# The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'.
|
|
307
|
+
# The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'. Default: -270
|
|
308
308
|
end_angle: Var[int]
|
|
309
309
|
|
|
310
|
-
# The inner radius of first 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. Number | Percentage
|
|
310
|
+
# The inner radius of first 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. Number | Percentage. Default: 0
|
|
311
311
|
inner_radius: Var[Union[int, str]]
|
|
312
312
|
|
|
313
|
-
# The outer radius of last 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. Number | Percentage
|
|
313
|
+
# The outer radius of last 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. Number | Percentage. Default: "80%"
|
|
314
314
|
outer_radius: Var[Union[int, str]]
|
|
315
315
|
|
|
316
316
|
# Valid children components
|
|
@@ -330,9 +330,9 @@ class RadarChart(ChartBase):
|
|
|
330
330
|
A dict mapping the event trigger to the var that is passed to the handler.
|
|
331
331
|
"""
|
|
332
332
|
return {
|
|
333
|
-
EventTriggers.ON_CLICK:
|
|
334
|
-
EventTriggers.ON_MOUSE_ENTER:
|
|
335
|
-
EventTriggers.ON_MOUSE_LEAVE:
|
|
333
|
+
EventTriggers.ON_CLICK: empty_event,
|
|
334
|
+
EventTriggers.ON_MOUSE_ENTER: empty_event,
|
|
335
|
+
EventTriggers.ON_MOUSE_LEAVE: empty_event,
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
|
|
@@ -346,31 +346,31 @@ class RadialBarChart(ChartBase):
|
|
|
346
346
|
# The source data which each element is an object.
|
|
347
347
|
data: Var[List[Dict[str, Any]]]
|
|
348
348
|
|
|
349
|
-
# The sizes of whitespace around the chart
|
|
349
|
+
# The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "left": 5 "bottom": 5}
|
|
350
350
|
margin: Var[Dict[str, Any]]
|
|
351
351
|
|
|
352
|
-
# The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage
|
|
352
|
+
# The The x-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of width. Number | Percentage. Default: "50%"
|
|
353
353
|
cx: Var[Union[int, str]]
|
|
354
354
|
|
|
355
|
-
# The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage
|
|
355
|
+
# The The y-coordinate of center. If set a percentage, the final value is obtained by multiplying the percentage of height. Number | Percentage. Default: "50%"
|
|
356
356
|
cy: Var[Union[int, str]]
|
|
357
357
|
|
|
358
|
-
# The angle of first radial direction line.
|
|
358
|
+
# The angle of first radial direction line. Default: 0
|
|
359
359
|
start_angle: Var[int]
|
|
360
360
|
|
|
361
|
-
# The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'.
|
|
361
|
+
# The angle of last point in the circle which should be startAngle - 360 or startAngle + 360. We'll calculate the direction of chart by 'startAngle' and 'endAngle'. Default: 360
|
|
362
362
|
end_angle: Var[int]
|
|
363
363
|
|
|
364
|
-
# The inner radius of first 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. Number | Percentage
|
|
364
|
+
# The inner radius of first 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. Number | Percentage. Default: "30%"
|
|
365
365
|
inner_radius: Var[Union[int, str]]
|
|
366
366
|
|
|
367
|
-
# The outer radius of last 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. Number | Percentage
|
|
367
|
+
# The outer radius of last 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. Number | Percentage. Default: "100%"
|
|
368
368
|
outer_radius: Var[Union[int, str]]
|
|
369
369
|
|
|
370
|
-
# The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number
|
|
370
|
+
# The gap between two bar categories, which can be a percent value or a fixed value. Percentage | Number. Default: "10%"
|
|
371
371
|
bar_category_gap: Var[Union[int, str]]
|
|
372
372
|
|
|
373
|
-
# The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number
|
|
373
|
+
# The gap between two bars in the same category, which can be a percent value or a fixed value. Percentage | Number. Default: 4
|
|
374
374
|
bar_gap: Var[str]
|
|
375
375
|
|
|
376
376
|
# The size of each bar. If the barSize is not specified, the size of bar will be calculated by the barCategoryGap, barGap and the quantity of bar groups.
|
|
@@ -394,7 +394,7 @@ class ScatterChart(ChartBase):
|
|
|
394
394
|
|
|
395
395
|
alias = "RechartsScatterChart"
|
|
396
396
|
|
|
397
|
-
# The sizes of whitespace around the chart
|
|
397
|
+
# The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "bottom": 5, "left": 5}
|
|
398
398
|
margin: Var[Dict[str, Any]]
|
|
399
399
|
|
|
400
400
|
# Valid children components
|
|
@@ -419,14 +419,14 @@ class ScatterChart(ChartBase):
|
|
|
419
419
|
A dict mapping the event trigger to the var that is passed to the handler.
|
|
420
420
|
"""
|
|
421
421
|
return {
|
|
422
|
-
EventTriggers.ON_CLICK:
|
|
423
|
-
EventTriggers.ON_MOUSE_DOWN:
|
|
424
|
-
EventTriggers.ON_MOUSE_UP:
|
|
425
|
-
EventTriggers.ON_MOUSE_MOVE:
|
|
426
|
-
EventTriggers.ON_MOUSE_OVER:
|
|
427
|
-
EventTriggers.ON_MOUSE_OUT:
|
|
428
|
-
EventTriggers.ON_MOUSE_ENTER:
|
|
429
|
-
EventTriggers.ON_MOUSE_LEAVE:
|
|
422
|
+
EventTriggers.ON_CLICK: empty_event,
|
|
423
|
+
EventTriggers.ON_MOUSE_DOWN: empty_event,
|
|
424
|
+
EventTriggers.ON_MOUSE_UP: empty_event,
|
|
425
|
+
EventTriggers.ON_MOUSE_MOVE: empty_event,
|
|
426
|
+
EventTriggers.ON_MOUSE_OVER: empty_event,
|
|
427
|
+
EventTriggers.ON_MOUSE_OUT: empty_event,
|
|
428
|
+
EventTriggers.ON_MOUSE_ENTER: empty_event,
|
|
429
|
+
EventTriggers.ON_MOUSE_LEAVE: empty_event,
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
|
|
@@ -437,10 +437,10 @@ class FunnelChart(ChartBase):
|
|
|
437
437
|
|
|
438
438
|
alias = "RechartsFunnelChart"
|
|
439
439
|
|
|
440
|
-
# The layout of bars in the chart.
|
|
440
|
+
# The layout of bars in the chart. Default: "centric"
|
|
441
441
|
layout: Var[str]
|
|
442
442
|
|
|
443
|
-
# The sizes of whitespace around the chart
|
|
443
|
+
# The sizes of whitespace around the chart. Default: {"top": 5, "right": 5, "bottom": 5, "left": 5}
|
|
444
444
|
margin: Var[Dict[str, Any]]
|
|
445
445
|
|
|
446
446
|
# The stroke color of each bar. String | Object
|
|
@@ -457,38 +457,41 @@ class Treemap(RechartsCharts):
|
|
|
457
457
|
|
|
458
458
|
alias = "RechartsTreemap"
|
|
459
459
|
|
|
460
|
-
# The width of chart container. String or Integer
|
|
460
|
+
# The width of chart container. String or Integer. Default: "100%"
|
|
461
461
|
width: Var[Union[str, int]] = "100%" # type: ignore
|
|
462
462
|
|
|
463
|
-
# The height of chart container.
|
|
463
|
+
# The height of chart container. String or Integer. Default: "100%"
|
|
464
464
|
height: Var[Union[str, int]] = "100%" # type: ignore
|
|
465
465
|
|
|
466
466
|
# data of treemap. Array
|
|
467
467
|
data: Var[List[Dict[str, Any]]]
|
|
468
468
|
|
|
469
|
-
# The key of a group of data which should be unique in a treemap. String | Number
|
|
469
|
+
# The key of a group of data which should be unique in a treemap. String | Number. Default: "value"
|
|
470
470
|
data_key: Var[Union[str, int]]
|
|
471
471
|
|
|
472
|
+
# The key of each sector's name. String. Default: "name"
|
|
473
|
+
name_key: Var[str]
|
|
474
|
+
|
|
472
475
|
# The treemap will try to keep every single rectangle's aspect ratio near the aspectRatio given. Number
|
|
473
476
|
aspect_ratio: Var[int]
|
|
474
477
|
|
|
475
|
-
# If set false, animation of area will be disabled.
|
|
478
|
+
# If set false, animation of area will be disabled. Default: True
|
|
476
479
|
is_animation_active: Var[bool]
|
|
477
480
|
|
|
478
|
-
# Specifies when the animation should begin, the unit of this option is ms.
|
|
481
|
+
# Specifies when the animation should begin, the unit of this option is ms. Default: 0
|
|
479
482
|
animation_begin: Var[int]
|
|
480
483
|
|
|
481
|
-
# Specifies the duration of animation, the unit of this option is ms.
|
|
484
|
+
# Specifies the duration of animation, the unit of this option is ms. Default: 1500
|
|
482
485
|
animation_duration: Var[int]
|
|
483
486
|
|
|
484
|
-
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'
|
|
487
|
+
# The type of easing function. 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'. Default: "ease"
|
|
485
488
|
animation_easing: Var[LiteralAnimationEasing]
|
|
486
489
|
|
|
487
490
|
# The customized event handler of animation start
|
|
488
|
-
on_animation_start: EventHandler[
|
|
491
|
+
on_animation_start: EventHandler[empty_event]
|
|
489
492
|
|
|
490
493
|
# The customized event handler of animation end
|
|
491
|
-
on_animation_end: EventHandler[
|
|
494
|
+
on_animation_end: EventHandler[empty_event]
|
|
492
495
|
|
|
493
496
|
@classmethod
|
|
494
497
|
def create(cls, *children, **props) -> Component:
|