reflex 0.7.14a5__py3-none-any.whl → 0.8.0__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/.templates/jinja/app/rxconfig.py.jinja2 +4 -1
- reflex/.templates/jinja/web/package.json.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +21 -11
- reflex/.templates/jinja/web/pages/_document.js.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/base_page.js.jinja2 +0 -1
- reflex/.templates/jinja/web/pages/stateful_component.js.jinja2 +4 -0
- reflex/.templates/jinja/web/styles/styles.css.jinja2 +1 -0
- reflex/.templates/jinja/web/utils/context.js.jinja2 +25 -8
- reflex/.templates/web/app/entry.client.js +8 -0
- reflex/.templates/web/app/routes.js +10 -0
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +12 -37
- reflex/.templates/web/postcss.config.js +1 -1
- reflex/.templates/web/react-router.config.js +6 -0
- reflex/.templates/web/styles/__reflex_style_reset.css +399 -0
- reflex/.templates/web/utils/client_side_routing.js +21 -19
- reflex/.templates/web/utils/react-theme.js +92 -0
- reflex/.templates/web/utils/state.js +251 -100
- reflex/.templates/web/vite-plugin-safari-cachebust.js +160 -0
- reflex/.templates/web/vite.config.js +39 -0
- reflex/__init__.py +1 -6
- reflex/__init__.pyi +327 -192
- reflex/app.py +103 -152
- reflex/base.py +1 -87
- reflex/compiler/compiler.py +70 -19
- reflex/compiler/templates.py +3 -3
- reflex/compiler/utils.py +91 -33
- reflex/components/__init__.py +0 -2
- reflex/components/__init__.pyi +34 -18
- reflex/components/base/__init__.py +1 -5
- reflex/components/base/__init__.pyi +30 -21
- reflex/components/base/app_wrap.pyi +7 -7
- reflex/components/base/body.pyi +7 -7
- reflex/components/base/document.py +18 -14
- reflex/components/base/document.pyi +88 -38
- reflex/components/base/error_boundary.pyi +7 -7
- reflex/components/base/fragment.pyi +7 -7
- reflex/components/base/link.pyi +12 -12
- reflex/components/base/meta.py +4 -15
- reflex/components/base/meta.pyi +31 -31
- reflex/components/base/script.py +60 -58
- reflex/components/base/script.pyi +248 -34
- reflex/components/base/strict_mode.pyi +7 -7
- reflex/components/component.py +146 -217
- reflex/components/core/__init__.py +1 -0
- reflex/components/core/__init__.pyi +77 -37
- reflex/components/core/auto_scroll.pyi +7 -7
- reflex/components/core/banner.pyi +33 -33
- reflex/components/core/client_side_routing.py +7 -6
- reflex/components/core/client_side_routing.pyi +8 -59
- reflex/components/core/clipboard.pyi +7 -7
- reflex/components/core/debounce.py +1 -0
- reflex/components/core/debounce.pyi +7 -7
- reflex/components/core/foreach.py +5 -4
- reflex/components/core/helmet.py +14 -0
- reflex/components/{next/base.pyi → core/helmet.pyi} +12 -10
- reflex/components/core/html.pyi +7 -7
- reflex/components/core/match.py +3 -3
- reflex/components/core/sticky.pyi +21 -20
- reflex/components/core/upload.py +4 -2
- reflex/components/core/upload.pyi +26 -25
- reflex/components/datadisplay/__init__.pyi +13 -7
- reflex/components/datadisplay/code.py +14 -79
- reflex/components/datadisplay/code.pyi +11 -13
- reflex/components/datadisplay/dataeditor.pyi +38 -15
- reflex/components/datadisplay/shiki_code_block.py +5 -3
- reflex/components/datadisplay/shiki_code_block.pyi +16 -15
- reflex/components/dynamic.py +5 -5
- reflex/components/el/__init__.pyi +506 -246
- reflex/components/el/element.pyi +7 -7
- reflex/components/el/elements/__init__.pyi +504 -245
- reflex/components/el/elements/base.pyi +7 -7
- reflex/components/el/elements/forms.pyi +146 -101
- reflex/components/el/elements/inline.pyi +142 -142
- reflex/components/el/elements/media.pyi +131 -130
- reflex/components/el/elements/metadata.pyi +32 -32
- reflex/components/el/elements/other.pyi +37 -37
- reflex/components/el/elements/scripts.pyi +17 -17
- reflex/components/el/elements/sectioning.pyi +77 -77
- reflex/components/el/elements/tables.pyi +52 -52
- reflex/components/el/elements/typography.pyi +77 -77
- reflex/components/field.py +175 -0
- reflex/components/gridjs/datatable.py +2 -2
- reflex/components/gridjs/datatable.pyi +14 -14
- reflex/components/lucide/icon.py +6 -2
- reflex/components/lucide/icon.pyi +19 -17
- reflex/components/markdown/markdown.py +5 -3
- reflex/components/markdown/markdown.pyi +7 -7
- reflex/components/moment/moment.py +1 -1
- reflex/components/moment/moment.pyi +7 -7
- reflex/components/plotly/plotly.py +12 -6
- reflex/components/plotly/plotly.pyi +50 -49
- reflex/components/props.py +376 -27
- reflex/components/radix/__init__.pyi +123 -65
- reflex/components/radix/primitives/__init__.pyi +6 -4
- reflex/components/radix/primitives/accordion.py +8 -1
- reflex/components/radix/primitives/accordion.pyi +37 -37
- reflex/components/radix/primitives/base.pyi +12 -12
- reflex/components/radix/primitives/drawer.pyi +56 -55
- reflex/components/radix/primitives/form.pyi +63 -53
- reflex/components/radix/primitives/progress.pyi +26 -25
- reflex/components/radix/primitives/slider.pyi +27 -27
- reflex/components/radix/themes/__init__.pyi +5 -6
- reflex/components/radix/themes/base.py +3 -3
- reflex/components/radix/themes/base.pyi +42 -42
- reflex/components/radix/themes/color_mode.py +5 -6
- reflex/components/radix/themes/color_mode.pyi +17 -17
- reflex/components/radix/themes/components/__init__.pyi +75 -38
- reflex/components/radix/themes/components/alert_dialog.pyi +37 -37
- reflex/components/radix/themes/components/aspect_ratio.pyi +7 -7
- reflex/components/radix/themes/components/avatar.pyi +7 -7
- reflex/components/radix/themes/components/badge.pyi +7 -7
- reflex/components/radix/themes/components/button.pyi +7 -7
- reflex/components/radix/themes/components/callout.pyi +26 -25
- reflex/components/radix/themes/components/card.pyi +7 -7
- reflex/components/radix/themes/components/checkbox.pyi +16 -15
- reflex/components/radix/themes/components/checkbox_cards.pyi +12 -12
- reflex/components/radix/themes/components/checkbox_group.pyi +12 -12
- reflex/components/radix/themes/components/context_menu.pyi +67 -67
- reflex/components/radix/themes/components/data_list.pyi +22 -22
- reflex/components/radix/themes/components/dialog.pyi +36 -35
- reflex/components/radix/themes/components/dropdown_menu.pyi +42 -42
- reflex/components/radix/themes/components/hover_card.pyi +21 -20
- reflex/components/radix/themes/components/icon_button.pyi +7 -7
- reflex/components/radix/themes/components/inset.pyi +7 -7
- reflex/components/radix/themes/components/popover.pyi +22 -22
- reflex/components/radix/themes/components/progress.pyi +7 -7
- reflex/components/radix/themes/components/radio.pyi +7 -7
- reflex/components/radix/themes/components/radio_cards.pyi +12 -12
- reflex/components/radix/themes/components/radio_group.pyi +21 -20
- reflex/components/radix/themes/components/scroll_area.pyi +7 -7
- reflex/components/radix/themes/components/segmented_control.pyi +12 -12
- reflex/components/radix/themes/components/select.pyi +46 -45
- reflex/components/radix/themes/components/separator.pyi +7 -7
- reflex/components/radix/themes/components/skeleton.pyi +7 -7
- reflex/components/radix/themes/components/slider.pyi +17 -9
- reflex/components/radix/themes/components/spinner.pyi +7 -7
- reflex/components/radix/themes/components/switch.pyi +7 -7
- reflex/components/radix/themes/components/table.pyi +37 -37
- reflex/components/radix/themes/components/tabs.pyi +26 -25
- reflex/components/radix/themes/components/text_area.pyi +15 -9
- reflex/components/radix/themes/components/text_field.pyi +32 -19
- reflex/components/radix/themes/components/tooltip.pyi +7 -7
- reflex/components/radix/themes/layout/__init__.pyi +27 -14
- reflex/components/radix/themes/layout/base.pyi +7 -7
- reflex/components/radix/themes/layout/box.pyi +7 -7
- reflex/components/radix/themes/layout/center.pyi +7 -7
- reflex/components/radix/themes/layout/container.pyi +7 -7
- reflex/components/radix/themes/layout/flex.pyi +7 -7
- reflex/components/radix/themes/layout/grid.pyi +7 -7
- reflex/components/radix/themes/layout/list.pyi +26 -25
- reflex/components/radix/themes/layout/section.pyi +7 -7
- reflex/components/radix/themes/layout/spacer.pyi +7 -7
- reflex/components/radix/themes/layout/stack.pyi +17 -17
- reflex/components/radix/themes/typography/__init__.pyi +7 -5
- reflex/components/radix/themes/typography/blockquote.pyi +7 -7
- reflex/components/radix/themes/typography/code.pyi +7 -7
- reflex/components/radix/themes/typography/heading.pyi +7 -7
- reflex/components/radix/themes/typography/link.py +46 -11
- reflex/components/radix/themes/typography/link.pyi +312 -9
- reflex/components/radix/themes/typography/text.pyi +36 -35
- reflex/components/react_player/audio.pyi +10 -8
- reflex/components/react_player/react_player.pyi +7 -7
- reflex/components/react_player/video.pyi +10 -8
- reflex/components/recharts/__init__.pyi +208 -100
- reflex/components/recharts/cartesian.py +10 -8
- reflex/components/recharts/cartesian.pyi +90 -94
- reflex/components/recharts/charts.py +4 -2
- reflex/components/recharts/charts.pyi +49 -49
- reflex/components/recharts/general.pyi +31 -31
- reflex/components/recharts/polar.py +8 -4
- reflex/components/recharts/polar.pyi +23 -23
- reflex/components/recharts/recharts.py +2 -2
- reflex/components/recharts/recharts.pyi +12 -12
- reflex/components/sonner/toast.py +3 -3
- reflex/components/sonner/toast.pyi +9 -9
- reflex/config.py +10 -113
- reflex/constants/__init__.py +2 -2
- reflex/constants/base.py +28 -11
- reflex/constants/compiler.py +12 -3
- reflex/constants/event.py +1 -0
- reflex/constants/installer.py +26 -20
- reflex/constants/route.py +27 -8
- reflex/constants/state.py +2 -0
- reflex/custom_components/custom_components.py +0 -14
- reflex/environment.py +77 -5
- reflex/event.py +178 -81
- reflex/experimental/__init__.py +0 -30
- reflex/istate/__init__.py +69 -0
- reflex/istate/manager.py +1 -0
- reflex/istate/proxy.py +5 -3
- reflex/page.py +0 -27
- reflex/plugins/__init__.py +3 -2
- reflex/plugins/base.py +5 -1
- reflex/plugins/shared_tailwind.py +215 -0
- reflex/plugins/sitemap.py +206 -0
- reflex/plugins/tailwind_v3.py +15 -108
- reflex/plugins/tailwind_v4.py +18 -110
- reflex/reflex.py +1 -0
- reflex/route.py +157 -75
- reflex/state.py +171 -155
- reflex/testing.py +86 -16
- reflex/utils/build.py +38 -82
- reflex/utils/exec.py +83 -175
- reflex/utils/export.py +2 -2
- reflex/utils/format.py +1 -5
- reflex/utils/imports.py +5 -16
- reflex/utils/misc.py +67 -0
- reflex/utils/prerequisites.py +66 -68
- reflex/utils/processes.py +24 -47
- reflex/utils/pyi_generator.py +44 -49
- reflex/utils/serializers.py +14 -1
- reflex/utils/telemetry.py +0 -15
- reflex/utils/types.py +197 -62
- reflex/vars/__init__.py +2 -0
- reflex/vars/base.py +367 -134
- {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/METADATA +15 -8
- reflex-0.8.0.dist-info/RECORD +403 -0
- reflex/.templates/web/next.config.js +0 -7
- reflex/components/base/head.py +0 -20
- reflex/components/base/head.pyi +0 -116
- reflex/components/next/__init__.py +0 -10
- reflex/components/next/base.py +0 -7
- reflex/components/next/image.py +0 -117
- reflex/components/next/image.pyi +0 -94
- reflex/components/next/link.py +0 -20
- reflex/components/next/link.pyi +0 -67
- reflex/components/next/video.py +0 -38
- reflex/components/next/video.pyi +0 -68
- reflex/components/suneditor/__init__.py +0 -5
- reflex/components/suneditor/editor.py +0 -269
- reflex/components/suneditor/editor.pyi +0 -199
- reflex/experimental/layout.py +0 -254
- reflex-0.7.14a5.dist-info/RECORD +0 -407
- {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/WHEEL +0 -0
- {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/entry_points.txt +0 -0
- {reflex-0.7.14a5.dist-info → reflex-0.8.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
# This file was generated by `reflex/utils/pyi_generator.py`!
|
|
5
5
|
# ------------------------------------------------------
|
|
6
6
|
from collections.abc import Mapping, Sequence
|
|
7
|
-
from typing import Any, Literal,
|
|
7
|
+
from typing import Any, Literal, TypedDict
|
|
8
8
|
|
|
9
9
|
from reflex.components.core.breakpoints import Breakpoints
|
|
10
10
|
from reflex.constants.colors import Color
|
|
11
|
-
from reflex.event import EventType
|
|
11
|
+
from reflex.event import EventType, PointerEventInfo
|
|
12
12
|
from reflex.vars.base import Var
|
|
13
13
|
|
|
14
14
|
from .recharts import Recharts
|
|
15
15
|
|
|
16
16
|
class Axis(Recharts):
|
|
17
|
-
@overload
|
|
18
17
|
@classmethod
|
|
19
|
-
def create(
|
|
18
|
+
def create(
|
|
20
19
|
cls,
|
|
21
20
|
*children,
|
|
22
21
|
data_key: Var[int | str] | int | str | None = None,
|
|
@@ -117,8 +116,8 @@ class Axis(Recharts):
|
|
|
117
116
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
118
117
|
on_blur: EventType[()] | None = None,
|
|
119
118
|
on_click: EventType[()] | None = None,
|
|
120
|
-
on_context_menu: EventType[()] | None = None,
|
|
121
|
-
on_double_click: EventType[()] | None = None,
|
|
119
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
120
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
122
121
|
on_focus: EventType[()] | None = None,
|
|
123
122
|
on_mount: EventType[()] | None = None,
|
|
124
123
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -129,6 +128,7 @@ class Axis(Recharts):
|
|
|
129
128
|
on_mouse_over: EventType[()] | None = None,
|
|
130
129
|
on_mouse_up: EventType[()] | None = None,
|
|
131
130
|
on_scroll: EventType[()] | None = None,
|
|
131
|
+
on_scroll_end: EventType[()] | None = None,
|
|
132
132
|
on_unmount: EventType[()] | None = None,
|
|
133
133
|
**props,
|
|
134
134
|
) -> Axis:
|
|
@@ -182,9 +182,8 @@ class Axis(Recharts):
|
|
|
182
182
|
"""
|
|
183
183
|
|
|
184
184
|
class XAxis(Axis):
|
|
185
|
-
@overload
|
|
186
185
|
@classmethod
|
|
187
|
-
def create(
|
|
186
|
+
def create(
|
|
188
187
|
cls,
|
|
189
188
|
*children,
|
|
190
189
|
orientation: Literal["bottom", "top"]
|
|
@@ -292,8 +291,8 @@ class XAxis(Axis):
|
|
|
292
291
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
293
292
|
on_blur: EventType[()] | None = None,
|
|
294
293
|
on_click: EventType[()] | None = None,
|
|
295
|
-
on_context_menu: EventType[()] | None = None,
|
|
296
|
-
on_double_click: EventType[()] | None = None,
|
|
294
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
295
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
297
296
|
on_focus: EventType[()] | None = None,
|
|
298
297
|
on_mount: EventType[()] | None = None,
|
|
299
298
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -304,6 +303,7 @@ class XAxis(Axis):
|
|
|
304
303
|
on_mouse_over: EventType[()] | None = None,
|
|
305
304
|
on_mouse_up: EventType[()] | None = None,
|
|
306
305
|
on_scroll: EventType[()] | None = None,
|
|
306
|
+
on_scroll_end: EventType[()] | None = None,
|
|
307
307
|
on_unmount: EventType[()] | None = None,
|
|
308
308
|
**props,
|
|
309
309
|
) -> XAxis:
|
|
@@ -362,9 +362,8 @@ class XAxis(Axis):
|
|
|
362
362
|
"""
|
|
363
363
|
|
|
364
364
|
class YAxis(Axis):
|
|
365
|
-
@overload
|
|
366
365
|
@classmethod
|
|
367
|
-
def create(
|
|
366
|
+
def create(
|
|
368
367
|
cls,
|
|
369
368
|
*children,
|
|
370
369
|
orientation: Literal["left", "right"]
|
|
@@ -470,8 +469,8 @@ class YAxis(Axis):
|
|
|
470
469
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
471
470
|
on_blur: EventType[()] | None = None,
|
|
472
471
|
on_click: EventType[()] | None = None,
|
|
473
|
-
on_context_menu: EventType[()] | None = None,
|
|
474
|
-
on_double_click: EventType[()] | None = None,
|
|
472
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
473
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
475
474
|
on_focus: EventType[()] | None = None,
|
|
476
475
|
on_mount: EventType[()] | None = None,
|
|
477
476
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -482,6 +481,7 @@ class YAxis(Axis):
|
|
|
482
481
|
on_mouse_over: EventType[()] | None = None,
|
|
483
482
|
on_mouse_up: EventType[()] | None = None,
|
|
484
483
|
on_scroll: EventType[()] | None = None,
|
|
484
|
+
on_scroll_end: EventType[()] | None = None,
|
|
485
485
|
on_unmount: EventType[()] | None = None,
|
|
486
486
|
**props,
|
|
487
487
|
) -> YAxis:
|
|
@@ -538,9 +538,8 @@ class YAxis(Axis):
|
|
|
538
538
|
"""
|
|
539
539
|
|
|
540
540
|
class ZAxis(Recharts):
|
|
541
|
-
@overload
|
|
542
541
|
@classmethod
|
|
543
|
-
def create(
|
|
542
|
+
def create(
|
|
544
543
|
cls,
|
|
545
544
|
*children,
|
|
546
545
|
data_key: Var[int | str] | int | str | None = None,
|
|
@@ -597,9 +596,9 @@ class ZAxis(Recharts):
|
|
|
597
596
|
autofocus: bool | None = None,
|
|
598
597
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
599
598
|
on_blur: EventType[()] | None = None,
|
|
600
|
-
on_click: EventType[()] | None = None,
|
|
601
|
-
on_context_menu: EventType[()] | None = None,
|
|
602
|
-
on_double_click: EventType[()] | None = None,
|
|
599
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
600
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
601
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
603
602
|
on_focus: EventType[()] | None = None,
|
|
604
603
|
on_mount: EventType[()] | None = None,
|
|
605
604
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -610,6 +609,7 @@ class ZAxis(Recharts):
|
|
|
610
609
|
on_mouse_over: EventType[()] | None = None,
|
|
611
610
|
on_mouse_up: EventType[()] | None = None,
|
|
612
611
|
on_scroll: EventType[()] | None = None,
|
|
612
|
+
on_scroll_end: EventType[()] | None = None,
|
|
613
613
|
on_unmount: EventType[()] | None = None,
|
|
614
614
|
**props,
|
|
615
615
|
) -> ZAxis:
|
|
@@ -637,10 +637,10 @@ class ZAxis(Recharts):
|
|
|
637
637
|
"""
|
|
638
638
|
|
|
639
639
|
class Brush(Recharts):
|
|
640
|
-
def get_event_triggers(self) -> dict[str, Var | Any]: ...
|
|
641
|
-
@overload
|
|
642
640
|
@classmethod
|
|
643
|
-
def
|
|
641
|
+
def get_event_triggers(cls) -> dict[str, Var | Any]: ...
|
|
642
|
+
@classmethod
|
|
643
|
+
def create(
|
|
644
644
|
cls,
|
|
645
645
|
*children,
|
|
646
646
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -699,9 +699,8 @@ class Brush(Recharts):
|
|
|
699
699
|
"""
|
|
700
700
|
|
|
701
701
|
class Cartesian(Recharts):
|
|
702
|
-
@overload
|
|
703
702
|
@classmethod
|
|
704
|
-
def create(
|
|
703
|
+
def create(
|
|
705
704
|
cls,
|
|
706
705
|
*children,
|
|
707
706
|
layout: Literal["horizontal", "vertical"]
|
|
@@ -765,8 +764,8 @@ class Cartesian(Recharts):
|
|
|
765
764
|
on_animation_start: EventType[()] | None = None,
|
|
766
765
|
on_blur: EventType[()] | None = None,
|
|
767
766
|
on_click: EventType[()] | None = None,
|
|
768
|
-
on_context_menu: EventType[()] | None = None,
|
|
769
|
-
on_double_click: EventType[()] | None = None,
|
|
767
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
768
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
770
769
|
on_focus: EventType[()] | None = None,
|
|
771
770
|
on_mount: EventType[()] | None = None,
|
|
772
771
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -777,6 +776,7 @@ class Cartesian(Recharts):
|
|
|
777
776
|
on_mouse_over: EventType[()] | None = None,
|
|
778
777
|
on_mouse_up: EventType[()] | None = None,
|
|
779
778
|
on_scroll: EventType[()] | None = None,
|
|
779
|
+
on_scroll_end: EventType[()] | None = None,
|
|
780
780
|
on_unmount: EventType[()] | None = None,
|
|
781
781
|
**props,
|
|
782
782
|
) -> Cartesian:
|
|
@@ -820,9 +820,8 @@ class Cartesian(Recharts):
|
|
|
820
820
|
"""
|
|
821
821
|
|
|
822
822
|
class Area(Cartesian):
|
|
823
|
-
@overload
|
|
824
823
|
@classmethod
|
|
825
|
-
def create(
|
|
824
|
+
def create(
|
|
826
825
|
cls,
|
|
827
826
|
*children,
|
|
828
827
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -935,8 +934,8 @@ class Area(Cartesian):
|
|
|
935
934
|
on_animation_start: EventType[()] | None = None,
|
|
936
935
|
on_blur: EventType[()] | None = None,
|
|
937
936
|
on_click: EventType[()] | None = None,
|
|
938
|
-
on_context_menu: EventType[()] | None = None,
|
|
939
|
-
on_double_click: EventType[()] | None = None,
|
|
937
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
938
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
940
939
|
on_focus: EventType[()] | None = None,
|
|
941
940
|
on_mount: EventType[()] | None = None,
|
|
942
941
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -947,6 +946,7 @@ class Area(Cartesian):
|
|
|
947
946
|
on_mouse_over: EventType[()] | None = None,
|
|
948
947
|
on_mouse_up: EventType[()] | None = None,
|
|
949
948
|
on_scroll: EventType[()] | None = None,
|
|
949
|
+
on_scroll_end: EventType[()] | None = None,
|
|
950
950
|
on_unmount: EventType[()] | None = None,
|
|
951
951
|
**props,
|
|
952
952
|
) -> Area:
|
|
@@ -1000,9 +1000,8 @@ class Area(Cartesian):
|
|
|
1000
1000
|
"""
|
|
1001
1001
|
|
|
1002
1002
|
class Bar(Cartesian):
|
|
1003
|
-
@overload
|
|
1004
1003
|
@classmethod
|
|
1005
|
-
def create(
|
|
1004
|
+
def create(
|
|
1006
1005
|
cls,
|
|
1007
1006
|
*children,
|
|
1008
1007
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -1075,8 +1074,8 @@ class Bar(Cartesian):
|
|
|
1075
1074
|
on_animation_start: EventType[()] | None = None,
|
|
1076
1075
|
on_blur: EventType[()] | None = None,
|
|
1077
1076
|
on_click: EventType[()] | None = None,
|
|
1078
|
-
on_context_menu: EventType[()] | None = None,
|
|
1079
|
-
on_double_click: EventType[()] | None = None,
|
|
1077
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1078
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1080
1079
|
on_focus: EventType[()] | None = None,
|
|
1081
1080
|
on_mount: EventType[()] | None = None,
|
|
1082
1081
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1087,6 +1086,7 @@ class Bar(Cartesian):
|
|
|
1087
1086
|
on_mouse_over: EventType[()] | None = None,
|
|
1088
1087
|
on_mouse_up: EventType[()] | None = None,
|
|
1089
1088
|
on_scroll: EventType[()] | None = None,
|
|
1089
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1090
1090
|
on_unmount: EventType[()] | None = None,
|
|
1091
1091
|
**props,
|
|
1092
1092
|
) -> Bar:
|
|
@@ -1139,9 +1139,8 @@ class Bar(Cartesian):
|
|
|
1139
1139
|
"""
|
|
1140
1140
|
|
|
1141
1141
|
class Line(Cartesian):
|
|
1142
|
-
@overload
|
|
1143
1142
|
@classmethod
|
|
1144
|
-
def create(
|
|
1143
|
+
def create(
|
|
1145
1144
|
cls,
|
|
1146
1145
|
*children,
|
|
1147
1146
|
type_: Literal[
|
|
@@ -1250,8 +1249,8 @@ class Line(Cartesian):
|
|
|
1250
1249
|
on_animation_start: EventType[()] | None = None,
|
|
1251
1250
|
on_blur: EventType[()] | None = None,
|
|
1252
1251
|
on_click: EventType[()] | None = None,
|
|
1253
|
-
on_context_menu: EventType[()] | None = None,
|
|
1254
|
-
on_double_click: EventType[()] | None = None,
|
|
1252
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1253
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1255
1254
|
on_focus: EventType[()] | None = None,
|
|
1256
1255
|
on_mount: EventType[()] | None = None,
|
|
1257
1256
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1262,6 +1261,7 @@ class Line(Cartesian):
|
|
|
1262
1261
|
on_mouse_over: EventType[()] | None = None,
|
|
1263
1262
|
on_mouse_up: EventType[()] | None = None,
|
|
1264
1263
|
on_scroll: EventType[()] | None = None,
|
|
1264
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1265
1265
|
on_unmount: EventType[()] | None = None,
|
|
1266
1266
|
**props,
|
|
1267
1267
|
) -> Line:
|
|
@@ -1314,9 +1314,8 @@ class Line(Cartesian):
|
|
|
1314
1314
|
"""
|
|
1315
1315
|
|
|
1316
1316
|
class Scatter(Recharts):
|
|
1317
|
-
@overload
|
|
1318
1317
|
@classmethod
|
|
1319
|
-
def create(
|
|
1318
|
+
def create(
|
|
1320
1319
|
cls,
|
|
1321
1320
|
*children,
|
|
1322
1321
|
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
@@ -1386,8 +1385,8 @@ class Scatter(Recharts):
|
|
|
1386
1385
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1387
1386
|
on_blur: EventType[()] | None = None,
|
|
1388
1387
|
on_click: EventType[()] | None = None,
|
|
1389
|
-
on_context_menu: EventType[()] | None = None,
|
|
1390
|
-
on_double_click: EventType[()] | None = None,
|
|
1388
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1389
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1391
1390
|
on_focus: EventType[()] | None = None,
|
|
1392
1391
|
on_mount: EventType[()] | None = None,
|
|
1393
1392
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1398,6 +1397,7 @@ class Scatter(Recharts):
|
|
|
1398
1397
|
on_mouse_over: EventType[()] | None = None,
|
|
1399
1398
|
on_mouse_up: EventType[()] | None = None,
|
|
1400
1399
|
on_scroll: EventType[()] | None = None,
|
|
1400
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1401
1401
|
on_unmount: EventType[()] | None = None,
|
|
1402
1402
|
**props,
|
|
1403
1403
|
) -> Scatter:
|
|
@@ -1441,9 +1441,8 @@ class Scatter(Recharts):
|
|
|
1441
1441
|
"""
|
|
1442
1442
|
|
|
1443
1443
|
class Funnel(Recharts):
|
|
1444
|
-
@overload
|
|
1445
1444
|
@classmethod
|
|
1446
|
-
def create(
|
|
1445
|
+
def create(
|
|
1447
1446
|
cls,
|
|
1448
1447
|
*children,
|
|
1449
1448
|
data: Sequence[dict[str, Any]] | Var[Sequence[dict[str, Any]]] | None = None,
|
|
@@ -1505,8 +1504,8 @@ class Funnel(Recharts):
|
|
|
1505
1504
|
on_animation_start: EventType[()] | None = None,
|
|
1506
1505
|
on_blur: EventType[()] | None = None,
|
|
1507
1506
|
on_click: EventType[()] | None = None,
|
|
1508
|
-
on_context_menu: EventType[()] | None = None,
|
|
1509
|
-
on_double_click: EventType[()] | None = None,
|
|
1507
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1508
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1510
1509
|
on_focus: EventType[()] | None = None,
|
|
1511
1510
|
on_mount: EventType[()] | None = None,
|
|
1512
1511
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1517,6 +1516,7 @@ class Funnel(Recharts):
|
|
|
1517
1516
|
on_mouse_over: EventType[()] | None = None,
|
|
1518
1517
|
on_mouse_up: EventType[()] | None = None,
|
|
1519
1518
|
on_scroll: EventType[()] | None = None,
|
|
1519
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1520
1520
|
on_unmount: EventType[()] | None = None,
|
|
1521
1521
|
**props,
|
|
1522
1522
|
) -> Funnel:
|
|
@@ -1558,9 +1558,8 @@ class Funnel(Recharts):
|
|
|
1558
1558
|
"""
|
|
1559
1559
|
|
|
1560
1560
|
class ErrorBar(Recharts):
|
|
1561
|
-
@overload
|
|
1562
1561
|
@classmethod
|
|
1563
|
-
def create(
|
|
1562
|
+
def create(
|
|
1564
1563
|
cls,
|
|
1565
1564
|
*children,
|
|
1566
1565
|
direction: Literal["x", "y"] | Var[Literal["x", "y"]] | None = None,
|
|
@@ -1580,9 +1579,9 @@ class ErrorBar(Recharts):
|
|
|
1580
1579
|
autofocus: bool | None = None,
|
|
1581
1580
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1582
1581
|
on_blur: EventType[()] | None = None,
|
|
1583
|
-
on_click: EventType[()] | None = None,
|
|
1584
|
-
on_context_menu: EventType[()] | None = None,
|
|
1585
|
-
on_double_click: EventType[()] | None = None,
|
|
1582
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1583
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1584
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1586
1585
|
on_focus: EventType[()] | None = None,
|
|
1587
1586
|
on_mount: EventType[()] | None = None,
|
|
1588
1587
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1593,6 +1592,7 @@ class ErrorBar(Recharts):
|
|
|
1593
1592
|
on_mouse_over: EventType[()] | None = None,
|
|
1594
1593
|
on_mouse_up: EventType[()] | None = None,
|
|
1595
1594
|
on_scroll: EventType[()] | None = None,
|
|
1595
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1596
1596
|
on_unmount: EventType[()] | None = None,
|
|
1597
1597
|
**props,
|
|
1598
1598
|
) -> ErrorBar:
|
|
@@ -1619,9 +1619,8 @@ class ErrorBar(Recharts):
|
|
|
1619
1619
|
"""
|
|
1620
1620
|
|
|
1621
1621
|
class Reference(Recharts):
|
|
1622
|
-
@overload
|
|
1623
1622
|
@classmethod
|
|
1624
|
-
def create(
|
|
1623
|
+
def create(
|
|
1625
1624
|
cls,
|
|
1626
1625
|
*children,
|
|
1627
1626
|
x_axis_id: Var[int | str] | int | str | None = None,
|
|
@@ -1630,7 +1629,6 @@ class Reference(Recharts):
|
|
|
1630
1629
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1631
1630
|
| None = None,
|
|
1632
1631
|
label: Var[int | str] | int | str | None = None,
|
|
1633
|
-
is_front: Var[bool] | bool | None = None,
|
|
1634
1632
|
style: Sequence[Mapping[str, Any]]
|
|
1635
1633
|
| Mapping[str, Any]
|
|
1636
1634
|
| Var[Mapping[str, Any]]
|
|
@@ -1643,9 +1641,9 @@ class Reference(Recharts):
|
|
|
1643
1641
|
autofocus: bool | None = None,
|
|
1644
1642
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1645
1643
|
on_blur: EventType[()] | None = None,
|
|
1646
|
-
on_click: EventType[()] | None = None,
|
|
1647
|
-
on_context_menu: EventType[()] | None = None,
|
|
1648
|
-
on_double_click: EventType[()] | None = None,
|
|
1644
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1645
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1646
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1649
1647
|
on_focus: EventType[()] | None = None,
|
|
1650
1648
|
on_mount: EventType[()] | None = None,
|
|
1651
1649
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1656,6 +1654,7 @@ class Reference(Recharts):
|
|
|
1656
1654
|
on_mouse_over: EventType[()] | None = None,
|
|
1657
1655
|
on_mouse_up: EventType[()] | None = None,
|
|
1658
1656
|
on_scroll: EventType[()] | None = None,
|
|
1657
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1659
1658
|
on_unmount: EventType[()] | None = None,
|
|
1660
1659
|
**props,
|
|
1661
1660
|
) -> Reference:
|
|
@@ -1667,7 +1666,6 @@ class Reference(Recharts):
|
|
|
1667
1666
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1668
1667
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1669
1668
|
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1670
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1671
1669
|
style: The style of the component.
|
|
1672
1670
|
key: A unique key for the component.
|
|
1673
1671
|
id: The id for the component.
|
|
@@ -1681,24 +1679,26 @@ class Reference(Recharts):
|
|
|
1681
1679
|
The component.
|
|
1682
1680
|
"""
|
|
1683
1681
|
|
|
1682
|
+
class Segment(TypedDict):
|
|
1683
|
+
x: str | int
|
|
1684
|
+
y: str | int
|
|
1685
|
+
|
|
1684
1686
|
class ReferenceLine(Reference):
|
|
1685
|
-
@overload
|
|
1686
1687
|
@classmethod
|
|
1687
|
-
def create(
|
|
1688
|
+
def create(
|
|
1688
1689
|
cls,
|
|
1689
1690
|
*children,
|
|
1690
1691
|
x: Var[int | str] | int | str | None = None,
|
|
1691
1692
|
y: Var[int | str] | int | str | None = None,
|
|
1692
1693
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
1693
1694
|
stroke_width: Var[float | int | str] | float | int | str | None = None,
|
|
1694
|
-
segment: Sequence[
|
|
1695
|
+
segment: Sequence[Segment] | Var[Sequence[Segment]] | None = None,
|
|
1695
1696
|
x_axis_id: Var[int | str] | int | str | None = None,
|
|
1696
1697
|
y_axis_id: Var[int | str] | int | str | None = None,
|
|
1697
1698
|
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1698
1699
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1699
1700
|
| None = None,
|
|
1700
1701
|
label: Var[int | str] | int | str | None = None,
|
|
1701
|
-
is_front: Var[bool] | bool | None = None,
|
|
1702
1702
|
style: Sequence[Mapping[str, Any]]
|
|
1703
1703
|
| Mapping[str, Any]
|
|
1704
1704
|
| Var[Mapping[str, Any]]
|
|
@@ -1711,9 +1711,9 @@ class ReferenceLine(Reference):
|
|
|
1711
1711
|
autofocus: bool | None = None,
|
|
1712
1712
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1713
1713
|
on_blur: EventType[()] | None = None,
|
|
1714
|
-
on_click: EventType[()] | None = None,
|
|
1715
|
-
on_context_menu: EventType[()] | None = None,
|
|
1716
|
-
on_double_click: EventType[()] | None = None,
|
|
1714
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1715
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1716
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1717
1717
|
on_focus: EventType[()] | None = None,
|
|
1718
1718
|
on_mount: EventType[()] | None = None,
|
|
1719
1719
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1724,6 +1724,7 @@ class ReferenceLine(Reference):
|
|
|
1724
1724
|
on_mouse_over: EventType[()] | None = None,
|
|
1725
1725
|
on_mouse_up: EventType[()] | None = None,
|
|
1726
1726
|
on_scroll: EventType[()] | None = None,
|
|
1727
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1727
1728
|
on_unmount: EventType[()] | None = None,
|
|
1728
1729
|
**props,
|
|
1729
1730
|
) -> ReferenceLine:
|
|
@@ -1740,7 +1741,6 @@ class ReferenceLine(Reference):
|
|
|
1740
1741
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1741
1742
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1742
1743
|
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1743
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1744
1744
|
style: The style of the component.
|
|
1745
1745
|
key: A unique key for the component.
|
|
1746
1746
|
id: The id for the component.
|
|
@@ -1755,9 +1755,8 @@ class ReferenceLine(Reference):
|
|
|
1755
1755
|
"""
|
|
1756
1756
|
|
|
1757
1757
|
class ReferenceDot(Reference):
|
|
1758
|
-
@overload
|
|
1759
1758
|
@classmethod
|
|
1760
|
-
def create(
|
|
1759
|
+
def create(
|
|
1761
1760
|
cls,
|
|
1762
1761
|
*children,
|
|
1763
1762
|
x: Var[int | str] | int | str | None = None,
|
|
@@ -1771,7 +1770,6 @@ class ReferenceDot(Reference):
|
|
|
1771
1770
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1772
1771
|
| None = None,
|
|
1773
1772
|
label: Var[int | str] | int | str | None = None,
|
|
1774
|
-
is_front: Var[bool] | bool | None = None,
|
|
1775
1773
|
style: Sequence[Mapping[str, Any]]
|
|
1776
1774
|
| Mapping[str, Any]
|
|
1777
1775
|
| Var[Mapping[str, Any]]
|
|
@@ -1785,8 +1783,8 @@ class ReferenceDot(Reference):
|
|
|
1785
1783
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1786
1784
|
on_blur: EventType[()] | None = None,
|
|
1787
1785
|
on_click: EventType[()] | None = None,
|
|
1788
|
-
on_context_menu: EventType[()] | None = None,
|
|
1789
|
-
on_double_click: EventType[()] | None = None,
|
|
1786
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1787
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1790
1788
|
on_focus: EventType[()] | None = None,
|
|
1791
1789
|
on_mount: EventType[()] | None = None,
|
|
1792
1790
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1797,6 +1795,7 @@ class ReferenceDot(Reference):
|
|
|
1797
1795
|
on_mouse_over: EventType[()] | None = None,
|
|
1798
1796
|
on_mouse_up: EventType[()] | None = None,
|
|
1799
1797
|
on_scroll: EventType[()] | None = None,
|
|
1798
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1800
1799
|
on_unmount: EventType[()] | None = None,
|
|
1801
1800
|
**props,
|
|
1802
1801
|
) -> ReferenceDot:
|
|
@@ -1821,7 +1820,6 @@ class ReferenceDot(Reference):
|
|
|
1821
1820
|
y_axis_id: The id of y-axis which is corresponding to the data. Default: 0
|
|
1822
1821
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1823
1822
|
label: If set a string or a number, default label will be drawn, and the option is content.
|
|
1824
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1825
1823
|
style: The style of the component.
|
|
1826
1824
|
key: A unique key for the component.
|
|
1827
1825
|
id: The id for the component.
|
|
@@ -1836,9 +1834,8 @@ class ReferenceDot(Reference):
|
|
|
1836
1834
|
"""
|
|
1837
1835
|
|
|
1838
1836
|
class ReferenceArea(Recharts):
|
|
1839
|
-
@overload
|
|
1840
1837
|
@classmethod
|
|
1841
|
-
def create(
|
|
1838
|
+
def create(
|
|
1842
1839
|
cls,
|
|
1843
1840
|
*children,
|
|
1844
1841
|
stroke: Color | Var[Color | str] | str | None = None,
|
|
@@ -1853,7 +1850,6 @@ class ReferenceArea(Recharts):
|
|
|
1853
1850
|
if_overflow: Literal["discard", "extendDomain", "hidden", "visible"]
|
|
1854
1851
|
| Var[Literal["discard", "extendDomain", "hidden", "visible"]]
|
|
1855
1852
|
| None = None,
|
|
1856
|
-
is_front: Var[bool] | bool | None = None,
|
|
1857
1853
|
style: Sequence[Mapping[str, Any]]
|
|
1858
1854
|
| Mapping[str, Any]
|
|
1859
1855
|
| Var[Mapping[str, Any]]
|
|
@@ -1866,9 +1862,9 @@ class ReferenceArea(Recharts):
|
|
|
1866
1862
|
autofocus: bool | None = None,
|
|
1867
1863
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1868
1864
|
on_blur: EventType[()] | None = None,
|
|
1869
|
-
on_click: EventType[()] | None = None,
|
|
1870
|
-
on_context_menu: EventType[()] | None = None,
|
|
1871
|
-
on_double_click: EventType[()] | None = None,
|
|
1865
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1866
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1867
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1872
1868
|
on_focus: EventType[()] | None = None,
|
|
1873
1869
|
on_mount: EventType[()] | None = None,
|
|
1874
1870
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1879,6 +1875,7 @@ class ReferenceArea(Recharts):
|
|
|
1879
1875
|
on_mouse_over: EventType[()] | None = None,
|
|
1880
1876
|
on_mouse_up: EventType[()] | None = None,
|
|
1881
1877
|
on_scroll: EventType[()] | None = None,
|
|
1878
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1882
1879
|
on_unmount: EventType[()] | None = None,
|
|
1883
1880
|
**props,
|
|
1884
1881
|
) -> ReferenceArea:
|
|
@@ -1896,7 +1893,6 @@ class ReferenceArea(Recharts):
|
|
|
1896
1893
|
y1: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
|
|
1897
1894
|
y2: A boundary value of the area. If the specified y-axis is a number axis, the type of y must be Number. If the specified y-axis is a category axis, the value of y must be one of the categorys. If one of y1 or y2 is invalidate, the area will cover along y-axis.
|
|
1898
1895
|
if_overflow: Defines how to draw the reference line if it falls partly outside the canvas. If set to 'discard', the reference line will not be drawn at all. If set to 'hidden', the reference line will be clipped to the canvas. If set to 'visible', the reference line will be drawn completely. If set to 'extendDomain', the domain of the overflown axis will be extended such that the reference line fits into the canvas. Default: "discard"
|
|
1899
|
-
is_front: If set true, the line will be rendered in front of bars in BarChart, etc. Default: False
|
|
1900
1896
|
style: The style of the component.
|
|
1901
1897
|
key: A unique key for the component.
|
|
1902
1898
|
id: The id for the component.
|
|
@@ -1911,9 +1907,8 @@ class ReferenceArea(Recharts):
|
|
|
1911
1907
|
"""
|
|
1912
1908
|
|
|
1913
1909
|
class Grid(Recharts):
|
|
1914
|
-
@overload
|
|
1915
1910
|
@classmethod
|
|
1916
|
-
def create(
|
|
1911
|
+
def create(
|
|
1917
1912
|
cls,
|
|
1918
1913
|
*children,
|
|
1919
1914
|
x: Var[int] | int | None = None,
|
|
@@ -1932,9 +1927,9 @@ class Grid(Recharts):
|
|
|
1932
1927
|
autofocus: bool | None = None,
|
|
1933
1928
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
1934
1929
|
on_blur: EventType[()] | None = None,
|
|
1935
|
-
on_click: EventType[()] | None = None,
|
|
1936
|
-
on_context_menu: EventType[()] | None = None,
|
|
1937
|
-
on_double_click: EventType[()] | None = None,
|
|
1930
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1931
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1932
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1938
1933
|
on_focus: EventType[()] | None = None,
|
|
1939
1934
|
on_mount: EventType[()] | None = None,
|
|
1940
1935
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -1945,6 +1940,7 @@ class Grid(Recharts):
|
|
|
1945
1940
|
on_mouse_over: EventType[()] | None = None,
|
|
1946
1941
|
on_mouse_up: EventType[()] | None = None,
|
|
1947
1942
|
on_scroll: EventType[()] | None = None,
|
|
1943
|
+
on_scroll_end: EventType[()] | None = None,
|
|
1948
1944
|
on_unmount: EventType[()] | None = None,
|
|
1949
1945
|
**props,
|
|
1950
1946
|
) -> Grid:
|
|
@@ -1970,9 +1966,8 @@ class Grid(Recharts):
|
|
|
1970
1966
|
"""
|
|
1971
1967
|
|
|
1972
1968
|
class CartesianGrid(Grid):
|
|
1973
|
-
@overload
|
|
1974
1969
|
@classmethod
|
|
1975
|
-
def create(
|
|
1970
|
+
def create(
|
|
1976
1971
|
cls,
|
|
1977
1972
|
*children,
|
|
1978
1973
|
horizontal: Var[bool] | bool | None = None,
|
|
@@ -1999,9 +1994,9 @@ class CartesianGrid(Grid):
|
|
|
1999
1994
|
autofocus: bool | None = None,
|
|
2000
1995
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
2001
1996
|
on_blur: EventType[()] | None = None,
|
|
2002
|
-
on_click: EventType[()] | None = None,
|
|
2003
|
-
on_context_menu: EventType[()] | None = None,
|
|
2004
|
-
on_double_click: EventType[()] | None = None,
|
|
1997
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1998
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
1999
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
2005
2000
|
on_focus: EventType[()] | None = None,
|
|
2006
2001
|
on_mount: EventType[()] | None = None,
|
|
2007
2002
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -2012,6 +2007,7 @@ class CartesianGrid(Grid):
|
|
|
2012
2007
|
on_mouse_over: EventType[()] | None = None,
|
|
2013
2008
|
on_mouse_up: EventType[()] | None = None,
|
|
2014
2009
|
on_scroll: EventType[()] | None = None,
|
|
2010
|
+
on_scroll_end: EventType[()] | None = None,
|
|
2015
2011
|
on_unmount: EventType[()] | None = None,
|
|
2016
2012
|
**props,
|
|
2017
2013
|
) -> CartesianGrid:
|
|
@@ -2045,9 +2041,8 @@ class CartesianGrid(Grid):
|
|
|
2045
2041
|
"""
|
|
2046
2042
|
|
|
2047
2043
|
class CartesianAxis(Grid):
|
|
2048
|
-
@overload
|
|
2049
2044
|
@classmethod
|
|
2050
|
-
def create(
|
|
2045
|
+
def create(
|
|
2051
2046
|
cls,
|
|
2052
2047
|
*children,
|
|
2053
2048
|
orientation: Literal["bottom", "left", "right", "top"]
|
|
@@ -2080,9 +2075,9 @@ class CartesianAxis(Grid):
|
|
|
2080
2075
|
autofocus: bool | None = None,
|
|
2081
2076
|
custom_attrs: dict[str, Var | Any] | None = None,
|
|
2082
2077
|
on_blur: EventType[()] | None = None,
|
|
2083
|
-
on_click: EventType[()] | None = None,
|
|
2084
|
-
on_context_menu: EventType[()] | None = None,
|
|
2085
|
-
on_double_click: EventType[()] | None = None,
|
|
2078
|
+
on_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
2079
|
+
on_context_menu: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
2080
|
+
on_double_click: EventType[()] | EventType[PointerEventInfo] | None = None,
|
|
2086
2081
|
on_focus: EventType[()] | None = None,
|
|
2087
2082
|
on_mount: EventType[()] | None = None,
|
|
2088
2083
|
on_mouse_down: EventType[()] | None = None,
|
|
@@ -2093,6 +2088,7 @@ class CartesianAxis(Grid):
|
|
|
2093
2088
|
on_mouse_over: EventType[()] | None = None,
|
|
2094
2089
|
on_mouse_up: EventType[()] | None = None,
|
|
2095
2090
|
on_scroll: EventType[()] | None = None,
|
|
2091
|
+
on_scroll_end: EventType[()] | None = None,
|
|
2096
2092
|
on_unmount: EventType[()] | None = None,
|
|
2097
2093
|
**props,
|
|
2098
2094
|
) -> CartesianAxis:
|
|
@@ -325,7 +325,8 @@ class RadarChart(ChartBase):
|
|
|
325
325
|
"Radar",
|
|
326
326
|
]
|
|
327
327
|
|
|
328
|
-
|
|
328
|
+
@classmethod
|
|
329
|
+
def get_event_triggers(cls) -> dict[str, Var | Any]:
|
|
329
330
|
"""Get the event triggers that pass the component's value to the handler.
|
|
330
331
|
|
|
331
332
|
Returns:
|
|
@@ -414,7 +415,8 @@ class ScatterChart(ChartBase):
|
|
|
414
415
|
"Scatter",
|
|
415
416
|
]
|
|
416
417
|
|
|
417
|
-
|
|
418
|
+
@classmethod
|
|
419
|
+
def get_event_triggers(cls) -> dict[str, Var | Any]:
|
|
418
420
|
"""Get the event triggers that pass the component's value to the handler.
|
|
419
421
|
|
|
420
422
|
Returns:
|