reflex 0.6.8a1__py3-none-any.whl → 0.7.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/custom_components/pyproject.toml.jinja2 +1 -1
- reflex/.templates/jinja/web/pages/_app.js.jinja2 +7 -7
- reflex/.templates/jinja/web/pages/utils.js.jinja2 +3 -3
- reflex/.templates/web/components/reflex/radix_themes_color_mode_provider.js +1 -4
- reflex/.templates/web/utils/state.js +65 -36
- reflex/__init__.py +4 -17
- reflex/__init__.pyi +1 -2
- reflex/app.py +286 -135
- reflex/app_mixins/lifespan.py +9 -9
- reflex/app_mixins/middleware.py +6 -6
- reflex/app_module_for_backend.py +3 -7
- reflex/base.py +7 -7
- reflex/compiler/compiler.py +8 -0
- reflex/compiler/utils.py +57 -18
- reflex/components/base/app_wrap.pyi +16 -16
- reflex/components/base/bare.py +1 -1
- reflex/components/base/body.pyi +16 -16
- reflex/components/base/document.pyi +76 -76
- reflex/components/base/error_boundary.py +2 -1
- reflex/components/base/error_boundary.pyi +19 -22
- reflex/components/base/fragment.pyi +16 -16
- reflex/components/base/head.pyi +31 -31
- reflex/components/base/link.pyi +31 -31
- reflex/components/base/meta.py +2 -2
- reflex/components/base/meta.pyi +61 -61
- reflex/components/base/script.pyi +19 -19
- reflex/components/base/strict_mode.py +10 -0
- reflex/components/base/strict_mode.pyi +57 -0
- reflex/components/component.py +38 -77
- reflex/components/core/banner.py +159 -4
- reflex/components/core/banner.pyi +162 -76
- reflex/components/core/breakpoints.py +3 -1
- reflex/components/core/client_side_routing.py +1 -1
- reflex/components/core/client_side_routing.pyi +32 -32
- reflex/components/core/clipboard.pyi +17 -20
- reflex/components/core/cond.py +9 -10
- reflex/components/core/debounce.py +1 -1
- reflex/components/core/debounce.pyi +17 -17
- reflex/components/core/foreach.py +28 -3
- reflex/components/core/html.py +1 -1
- reflex/components/core/html.pyi +16 -16
- reflex/components/core/match.py +5 -5
- reflex/components/core/sticky.py +134 -0
- reflex/components/core/sticky.pyi +449 -0
- reflex/components/core/upload.py +2 -2
- reflex/components/core/upload.pyi +80 -88
- reflex/components/datadisplay/code.py +5 -14
- reflex/components/datadisplay/code.pyi +31 -31
- reflex/components/datadisplay/dataeditor.py +7 -4
- reflex/components/datadisplay/dataeditor.pyi +40 -54
- reflex/components/datadisplay/logo.py +13 -8
- reflex/components/datadisplay/shiki_code_block.py +14 -9
- reflex/components/datadisplay/shiki_code_block.pyi +46 -46
- reflex/components/dynamic.py +22 -3
- reflex/components/el/constants/reflex.py +1 -1
- reflex/components/el/element.py +1 -1
- reflex/components/el/element.pyi +16 -16
- reflex/components/el/elements/base.pyi +16 -16
- reflex/components/el/elements/forms.py +4 -4
- reflex/components/el/elements/forms.pyi +224 -258
- reflex/components/el/elements/inline.pyi +421 -421
- reflex/components/el/elements/media.pyi +376 -376
- reflex/components/el/elements/metadata.pyi +91 -91
- reflex/components/el/elements/other.pyi +106 -106
- reflex/components/el/elements/scripts.pyi +46 -46
- reflex/components/el/elements/sectioning.pyi +226 -226
- reflex/components/el/elements/tables.pyi +151 -151
- reflex/components/el/elements/typography.pyi +226 -226
- reflex/components/gridjs/datatable.pyi +31 -31
- reflex/components/lucide/icon.py +46 -8
- reflex/components/lucide/icon.pyi +85 -31
- reflex/components/markdown/markdown.py +10 -8
- reflex/components/markdown/markdown.pyi +16 -16
- reflex/components/moment/moment.py +2 -2
- reflex/components/moment/moment.pyi +17 -19
- reflex/components/next/base.pyi +16 -16
- reflex/components/next/image.py +16 -4
- reflex/components/next/image.pyi +22 -20
- reflex/components/next/link.py +1 -1
- reflex/components/next/link.pyi +16 -16
- reflex/components/next/video.pyi +16 -16
- reflex/components/plotly/__init__.py +29 -2
- reflex/components/plotly/plotly.py +240 -5
- reflex/components/plotly/plotly.pyi +799 -44
- reflex/components/props.py +3 -3
- reflex/components/radix/__init__.pyi +1 -1
- reflex/components/radix/primitives/accordion.py +9 -5
- reflex/components/radix/primitives/accordion.pyi +110 -108
- reflex/components/radix/primitives/base.pyi +31 -31
- reflex/components/radix/primitives/drawer.py +5 -2
- reflex/components/radix/primitives/drawer.pyi +179 -187
- reflex/components/radix/primitives/form.pyi +160 -172
- reflex/components/radix/primitives/progress.py +1 -1
- reflex/components/radix/primitives/progress.pyi +76 -76
- reflex/components/radix/primitives/slider.py +1 -1
- reflex/components/radix/primitives/slider.pyi +78 -82
- reflex/components/radix/themes/base.pyi +121 -121
- reflex/components/radix/themes/color_mode.py +11 -9
- reflex/components/radix/themes/color_mode.pyi +47 -49
- reflex/components/radix/themes/components/alert_dialog.py +3 -0
- reflex/components/radix/themes/components/alert_dialog.pyi +110 -112
- reflex/components/radix/themes/components/aspect_ratio.pyi +16 -16
- reflex/components/radix/themes/components/avatar.pyi +16 -16
- reflex/components/radix/themes/components/badge.pyi +16 -16
- reflex/components/radix/themes/components/button.pyi +16 -16
- reflex/components/radix/themes/components/callout.pyi +76 -76
- reflex/components/radix/themes/components/card.py +1 -1
- reflex/components/radix/themes/components/card.pyi +17 -17
- reflex/components/radix/themes/components/checkbox.pyi +49 -55
- reflex/components/radix/themes/components/checkbox_cards.pyi +31 -31
- reflex/components/radix/themes/components/checkbox_group.pyi +31 -31
- reflex/components/radix/themes/components/context_menu.py +5 -0
- reflex/components/radix/themes/components/context_menu.pyi +149 -155
- reflex/components/radix/themes/components/data_list.pyi +61 -61
- reflex/components/radix/themes/components/dialog.py +3 -0
- reflex/components/radix/themes/components/dialog.pyi +113 -117
- reflex/components/radix/themes/components/dropdown_menu.py +5 -0
- reflex/components/radix/themes/components/dropdown_menu.pyi +133 -137
- reflex/components/radix/themes/components/hover_card.py +3 -0
- reflex/components/radix/themes/components/hover_card.pyi +63 -67
- reflex/components/radix/themes/components/icon_button.py +2 -2
- reflex/components/radix/themes/components/icon_button.pyi +17 -16
- reflex/components/radix/themes/components/inset.pyi +16 -16
- reflex/components/radix/themes/components/popover.py +3 -0
- reflex/components/radix/themes/components/popover.pyi +68 -70
- reflex/components/radix/themes/components/progress.pyi +16 -16
- reflex/components/radix/themes/components/radio.pyi +16 -16
- reflex/components/radix/themes/components/radio_cards.py +2 -0
- reflex/components/radix/themes/components/radio_cards.pyi +32 -34
- reflex/components/radix/themes/components/radio_group.py +1 -1
- reflex/components/radix/themes/components/radio_group.pyi +62 -64
- reflex/components/radix/themes/components/scroll_area.pyi +16 -16
- reflex/components/radix/themes/components/segmented_control.pyi +32 -35
- reflex/components/radix/themes/components/select.py +4 -0
- reflex/components/radix/themes/components/select.pyi +145 -157
- reflex/components/radix/themes/components/separator.pyi +16 -16
- reflex/components/radix/themes/components/skeleton.py +3 -0
- reflex/components/radix/themes/components/skeleton.pyi +16 -16
- reflex/components/radix/themes/components/slider.pyi +22 -28
- reflex/components/radix/themes/components/spinner.pyi +16 -16
- reflex/components/radix/themes/components/switch.pyi +17 -19
- reflex/components/radix/themes/components/table.pyi +106 -106
- reflex/components/radix/themes/components/tabs.py +3 -0
- reflex/components/radix/themes/components/tabs.pyi +78 -82
- reflex/components/radix/themes/components/text_area.py +12 -0
- reflex/components/radix/themes/components/text_area.pyi +21 -33
- reflex/components/radix/themes/components/text_field.py +1 -1
- reflex/components/radix/themes/components/text_field.pyi +52 -80
- reflex/components/radix/themes/components/tooltip.py +6 -1
- reflex/components/radix/themes/components/tooltip.pyi +20 -21
- reflex/components/radix/themes/layout/__init__.pyi +1 -1
- reflex/components/radix/themes/layout/base.pyi +16 -16
- reflex/components/radix/themes/layout/box.pyi +16 -16
- reflex/components/radix/themes/layout/center.pyi +16 -16
- reflex/components/radix/themes/layout/container.pyi +16 -16
- reflex/components/radix/themes/layout/flex.pyi +16 -16
- reflex/components/radix/themes/layout/grid.pyi +16 -16
- reflex/components/radix/themes/layout/list.py +2 -2
- reflex/components/radix/themes/layout/list.pyi +76 -76
- reflex/components/radix/themes/layout/section.pyi +16 -16
- reflex/components/radix/themes/layout/spacer.pyi +16 -16
- reflex/components/radix/themes/layout/stack.py +2 -2
- reflex/components/radix/themes/layout/stack.pyi +46 -46
- reflex/components/radix/themes/typography/blockquote.pyi +16 -16
- reflex/components/radix/themes/typography/code.pyi +16 -16
- reflex/components/radix/themes/typography/heading.pyi +16 -16
- reflex/components/radix/themes/typography/link.py +1 -1
- reflex/components/radix/themes/typography/link.pyi +16 -16
- reflex/components/radix/themes/typography/text.py +2 -2
- reflex/components/radix/themes/typography/text.pyi +106 -106
- reflex/components/react_player/audio.pyi +33 -39
- reflex/components/react_player/react_player.py +1 -1
- reflex/components/react_player/react_player.pyi +32 -38
- reflex/components/react_player/video.pyi +33 -39
- reflex/components/recharts/__init__.py +2 -0
- reflex/components/recharts/__init__.pyi +2 -0
- reflex/components/recharts/cartesian.pyi +282 -282
- reflex/components/recharts/charts.py +15 -15
- reflex/components/recharts/charts.pyi +164 -164
- reflex/components/recharts/general.py +19 -4
- reflex/components/recharts/general.pyi +132 -81
- reflex/components/recharts/polar.py +2 -2
- reflex/components/recharts/polar.pyi +55 -55
- reflex/components/recharts/recharts.py +4 -4
- reflex/components/recharts/recharts.pyi +31 -31
- reflex/components/sonner/toast.py +15 -13
- reflex/components/sonner/toast.pyi +22 -22
- reflex/components/suneditor/editor.py +6 -4
- reflex/components/suneditor/editor.pyi +26 -40
- reflex/components/tags/iter_tag.py +3 -3
- reflex/components/tags/tag.py +25 -3
- reflex/config.py +48 -20
- reflex/constants/__init__.py +1 -0
- reflex/constants/base.py +4 -1
- reflex/constants/compiler.py +5 -2
- reflex/constants/config.py +8 -1
- reflex/constants/installer.py +9 -9
- reflex/constants/style.py +1 -1
- reflex/custom_components/custom_components.py +18 -10
- reflex/event.py +228 -233
- reflex/experimental/__init__.py +19 -11
- reflex/experimental/client_state.py +53 -28
- reflex/experimental/hooks.py +5 -5
- reflex/experimental/layout.py +8 -5
- reflex/experimental/layout.pyi +79 -83
- reflex/experimental/misc.py +3 -3
- reflex/istate/wrappers.py +1 -1
- reflex/middleware/hydrate_middleware.py +2 -2
- reflex/model.py +11 -6
- reflex/page.py +5 -5
- reflex/reflex.py +104 -26
- reflex/route.py +1 -1
- reflex/state.py +358 -401
- reflex/style.py +27 -3
- reflex/testing.py +34 -39
- reflex/utils/build.py +6 -2
- reflex/utils/codespaces.py +1 -4
- reflex/utils/compat.py +6 -5
- reflex/utils/console.py +71 -21
- reflex/utils/exceptions.py +89 -26
- reflex/utils/exec.py +69 -74
- reflex/utils/export.py +6 -1
- reflex/utils/format.py +8 -40
- reflex/utils/imports.py +5 -2
- reflex/utils/lazy_loader.py +7 -1
- reflex/utils/path_ops.py +74 -14
- reflex/utils/prerequisites.py +345 -68
- reflex/utils/processes.py +45 -32
- reflex/utils/pyi_generator.py +39 -33
- reflex/utils/registry.py +4 -4
- reflex/utils/serializers.py +1 -1
- reflex/utils/telemetry.py +5 -4
- reflex/utils/types.py +42 -18
- reflex/vars/base.py +695 -330
- reflex/vars/datetime.py +6 -7
- reflex/vars/dep_tracking.py +344 -0
- reflex/vars/function.py +11 -5
- reflex/vars/number.py +31 -43
- reflex/vars/object.py +74 -64
- reflex/vars/sequence.py +79 -67
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/METADATA +7 -10
- reflex-0.7.0.dist-info/RECORD +401 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/WHEEL +1 -1
- reflex/experimental/assets.py +0 -37
- reflex/proxy.py +0 -119
- reflex-0.6.8a1.dist-info/RECORD +0 -398
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/LICENSE +0 -0
- {reflex-0.6.8a1.dist-info → reflex-0.7.0.dist-info}/entry_points.txt +0 -0
|
@@ -8,9 +8,10 @@ from typing import Any, Dict, List, Optional, Union, overload
|
|
|
8
8
|
from typing_extensions import TypedDict, TypeVar
|
|
9
9
|
|
|
10
10
|
from reflex.components.component import NoSSRComponent
|
|
11
|
-
from reflex.event import
|
|
11
|
+
from reflex.event import EventType
|
|
12
12
|
from reflex.style import Style
|
|
13
13
|
from reflex.utils import console
|
|
14
|
+
from reflex.utils.imports import ImportDict
|
|
14
15
|
from reflex.vars.base import Var
|
|
15
16
|
|
|
16
17
|
try:
|
|
@@ -65,49 +66,39 @@ class Plotly(NoSSRComponent):
|
|
|
65
66
|
class_name: Optional[Any] = None,
|
|
66
67
|
autofocus: Optional[bool] = None,
|
|
67
68
|
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
68
|
-
on_after_plot: Optional[EventType[
|
|
69
|
-
on_animated: Optional[EventType[
|
|
70
|
-
on_animating_frame: Optional[EventType[
|
|
71
|
-
on_animation_interrupted: Optional[EventType[
|
|
72
|
-
on_autosize: Optional[EventType[
|
|
73
|
-
on_before_hover: Optional[EventType[
|
|
74
|
-
on_blur: Optional[EventType[
|
|
75
|
-
on_button_clicked: Optional[EventType[
|
|
76
|
-
on_click: Optional[
|
|
77
|
-
|
|
78
|
-
] = None,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
] = None,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
] = None,
|
|
102
|
-
on_selecting: Optional[
|
|
103
|
-
Union[EventType[[], BASE_STATE], EventType[[List[Point]], BASE_STATE]]
|
|
104
|
-
] = None,
|
|
105
|
-
on_transition_interrupted: Optional[EventType[[], BASE_STATE]] = None,
|
|
106
|
-
on_transitioning: Optional[EventType[[], BASE_STATE]] = None,
|
|
107
|
-
on_unhover: Optional[
|
|
108
|
-
Union[EventType[[], BASE_STATE], EventType[[List[Point]], BASE_STATE]]
|
|
109
|
-
] = None,
|
|
110
|
-
on_unmount: Optional[EventType[[], BASE_STATE]] = None,
|
|
69
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
70
|
+
on_animated: Optional[EventType[()]] = None,
|
|
71
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
72
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
73
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
74
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
75
|
+
on_blur: Optional[EventType[()]] = None,
|
|
76
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
77
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
78
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
79
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
80
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
81
|
+
on_focus: Optional[EventType[()]] = None,
|
|
82
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
83
|
+
on_mount: Optional[EventType[()]] = None,
|
|
84
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
85
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
86
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
87
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
88
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
89
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
90
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
91
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
92
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
93
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
94
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
95
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
96
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
97
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
98
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
99
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
100
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
101
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
111
102
|
**props,
|
|
112
103
|
) -> "Plotly":
|
|
113
104
|
"""Create the Plotly component.
|
|
@@ -151,3 +142,767 @@ class Plotly(NoSSRComponent):
|
|
|
151
142
|
The Plotly component.
|
|
152
143
|
"""
|
|
153
144
|
...
|
|
145
|
+
|
|
146
|
+
CREATE_PLOTLY_COMPONENT: ImportDict
|
|
147
|
+
|
|
148
|
+
def dynamic_plotly_import(name: str, package: str) -> str: ...
|
|
149
|
+
|
|
150
|
+
class PlotlyBasic(Plotly):
|
|
151
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
152
|
+
@overload
|
|
153
|
+
@classmethod
|
|
154
|
+
def create( # type: ignore
|
|
155
|
+
cls,
|
|
156
|
+
*children,
|
|
157
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
158
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
159
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
160
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
161
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
162
|
+
style: Optional[Style] = None,
|
|
163
|
+
key: Optional[Any] = None,
|
|
164
|
+
id: Optional[Any] = None,
|
|
165
|
+
class_name: Optional[Any] = None,
|
|
166
|
+
autofocus: Optional[bool] = None,
|
|
167
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
168
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
169
|
+
on_animated: Optional[EventType[()]] = None,
|
|
170
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
171
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
172
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
173
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
174
|
+
on_blur: Optional[EventType[()]] = None,
|
|
175
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
176
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
177
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
178
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
179
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
180
|
+
on_focus: Optional[EventType[()]] = None,
|
|
181
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
182
|
+
on_mount: Optional[EventType[()]] = None,
|
|
183
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
184
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
185
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
186
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
187
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
188
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
189
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
190
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
191
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
192
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
193
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
194
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
195
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
196
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
197
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
198
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
199
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
200
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
201
|
+
**props,
|
|
202
|
+
) -> "PlotlyBasic":
|
|
203
|
+
"""Create the Plotly component.
|
|
204
|
+
|
|
205
|
+
Args:
|
|
206
|
+
*children: The children of the component.
|
|
207
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
208
|
+
layout: The layout of the graph.
|
|
209
|
+
template: The template for visual appearance of the graph.
|
|
210
|
+
config: The config of the graph.
|
|
211
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
212
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
213
|
+
on_animated: Fired after the plot was animated.
|
|
214
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
215
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
216
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
217
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
218
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
219
|
+
on_click: Fired when the plot is clicked.
|
|
220
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
221
|
+
on_double_click: Fired when the plot is double clicked.
|
|
222
|
+
on_hover: Fired when a plot element is hovered over.
|
|
223
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
224
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
225
|
+
on_restyle: Fired after the plot style is changed.
|
|
226
|
+
on_redraw: Fired after the plot is redrawn.
|
|
227
|
+
on_selected: Fired after selecting plot elements.
|
|
228
|
+
on_selecting: Fired while dragging a selection.
|
|
229
|
+
on_transitioning: Fired while an animation is occurring.
|
|
230
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
231
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
232
|
+
style: The style of the component.
|
|
233
|
+
key: A unique key for the component.
|
|
234
|
+
id: The id for the component.
|
|
235
|
+
class_name: The class name for the component.
|
|
236
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
237
|
+
custom_attrs: custom attribute
|
|
238
|
+
**props: The properties of the component.
|
|
239
|
+
|
|
240
|
+
Returns:
|
|
241
|
+
The Plotly component.
|
|
242
|
+
"""
|
|
243
|
+
...
|
|
244
|
+
|
|
245
|
+
class PlotlyCartesian(Plotly):
|
|
246
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
247
|
+
@overload
|
|
248
|
+
@classmethod
|
|
249
|
+
def create( # type: ignore
|
|
250
|
+
cls,
|
|
251
|
+
*children,
|
|
252
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
253
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
254
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
255
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
256
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
257
|
+
style: Optional[Style] = None,
|
|
258
|
+
key: Optional[Any] = None,
|
|
259
|
+
id: Optional[Any] = None,
|
|
260
|
+
class_name: Optional[Any] = None,
|
|
261
|
+
autofocus: Optional[bool] = None,
|
|
262
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
263
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
264
|
+
on_animated: Optional[EventType[()]] = None,
|
|
265
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
266
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
267
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
268
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
269
|
+
on_blur: Optional[EventType[()]] = None,
|
|
270
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
271
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
272
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
273
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
274
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
275
|
+
on_focus: Optional[EventType[()]] = None,
|
|
276
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
277
|
+
on_mount: Optional[EventType[()]] = None,
|
|
278
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
279
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
280
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
281
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
282
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
283
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
284
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
285
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
286
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
287
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
288
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
289
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
290
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
291
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
292
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
293
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
294
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
295
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
296
|
+
**props,
|
|
297
|
+
) -> "PlotlyCartesian":
|
|
298
|
+
"""Create the Plotly component.
|
|
299
|
+
|
|
300
|
+
Args:
|
|
301
|
+
*children: The children of the component.
|
|
302
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
303
|
+
layout: The layout of the graph.
|
|
304
|
+
template: The template for visual appearance of the graph.
|
|
305
|
+
config: The config of the graph.
|
|
306
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
307
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
308
|
+
on_animated: Fired after the plot was animated.
|
|
309
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
310
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
311
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
312
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
313
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
314
|
+
on_click: Fired when the plot is clicked.
|
|
315
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
316
|
+
on_double_click: Fired when the plot is double clicked.
|
|
317
|
+
on_hover: Fired when a plot element is hovered over.
|
|
318
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
319
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
320
|
+
on_restyle: Fired after the plot style is changed.
|
|
321
|
+
on_redraw: Fired after the plot is redrawn.
|
|
322
|
+
on_selected: Fired after selecting plot elements.
|
|
323
|
+
on_selecting: Fired while dragging a selection.
|
|
324
|
+
on_transitioning: Fired while an animation is occurring.
|
|
325
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
326
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
327
|
+
style: The style of the component.
|
|
328
|
+
key: A unique key for the component.
|
|
329
|
+
id: The id for the component.
|
|
330
|
+
class_name: The class name for the component.
|
|
331
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
332
|
+
custom_attrs: custom attribute
|
|
333
|
+
**props: The properties of the component.
|
|
334
|
+
|
|
335
|
+
Returns:
|
|
336
|
+
The Plotly component.
|
|
337
|
+
"""
|
|
338
|
+
...
|
|
339
|
+
|
|
340
|
+
class PlotlyGeo(Plotly):
|
|
341
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
342
|
+
@overload
|
|
343
|
+
@classmethod
|
|
344
|
+
def create( # type: ignore
|
|
345
|
+
cls,
|
|
346
|
+
*children,
|
|
347
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
348
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
349
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
350
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
351
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
352
|
+
style: Optional[Style] = None,
|
|
353
|
+
key: Optional[Any] = None,
|
|
354
|
+
id: Optional[Any] = None,
|
|
355
|
+
class_name: Optional[Any] = None,
|
|
356
|
+
autofocus: Optional[bool] = None,
|
|
357
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
358
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
359
|
+
on_animated: Optional[EventType[()]] = None,
|
|
360
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
361
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
362
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
363
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
364
|
+
on_blur: Optional[EventType[()]] = None,
|
|
365
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
366
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
367
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
368
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
369
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
370
|
+
on_focus: Optional[EventType[()]] = None,
|
|
371
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
372
|
+
on_mount: Optional[EventType[()]] = None,
|
|
373
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
374
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
375
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
376
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
377
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
378
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
379
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
380
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
381
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
382
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
383
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
384
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
385
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
386
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
387
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
388
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
389
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
390
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
391
|
+
**props,
|
|
392
|
+
) -> "PlotlyGeo":
|
|
393
|
+
"""Create the Plotly component.
|
|
394
|
+
|
|
395
|
+
Args:
|
|
396
|
+
*children: The children of the component.
|
|
397
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
398
|
+
layout: The layout of the graph.
|
|
399
|
+
template: The template for visual appearance of the graph.
|
|
400
|
+
config: The config of the graph.
|
|
401
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
402
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
403
|
+
on_animated: Fired after the plot was animated.
|
|
404
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
405
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
406
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
407
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
408
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
409
|
+
on_click: Fired when the plot is clicked.
|
|
410
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
411
|
+
on_double_click: Fired when the plot is double clicked.
|
|
412
|
+
on_hover: Fired when a plot element is hovered over.
|
|
413
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
414
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
415
|
+
on_restyle: Fired after the plot style is changed.
|
|
416
|
+
on_redraw: Fired after the plot is redrawn.
|
|
417
|
+
on_selected: Fired after selecting plot elements.
|
|
418
|
+
on_selecting: Fired while dragging a selection.
|
|
419
|
+
on_transitioning: Fired while an animation is occurring.
|
|
420
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
421
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
422
|
+
style: The style of the component.
|
|
423
|
+
key: A unique key for the component.
|
|
424
|
+
id: The id for the component.
|
|
425
|
+
class_name: The class name for the component.
|
|
426
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
427
|
+
custom_attrs: custom attribute
|
|
428
|
+
**props: The properties of the component.
|
|
429
|
+
|
|
430
|
+
Returns:
|
|
431
|
+
The Plotly component.
|
|
432
|
+
"""
|
|
433
|
+
...
|
|
434
|
+
|
|
435
|
+
class PlotlyGl3d(Plotly):
|
|
436
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
437
|
+
@overload
|
|
438
|
+
@classmethod
|
|
439
|
+
def create( # type: ignore
|
|
440
|
+
cls,
|
|
441
|
+
*children,
|
|
442
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
443
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
444
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
445
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
446
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
447
|
+
style: Optional[Style] = None,
|
|
448
|
+
key: Optional[Any] = None,
|
|
449
|
+
id: Optional[Any] = None,
|
|
450
|
+
class_name: Optional[Any] = None,
|
|
451
|
+
autofocus: Optional[bool] = None,
|
|
452
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
453
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
454
|
+
on_animated: Optional[EventType[()]] = None,
|
|
455
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
456
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
457
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
458
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
459
|
+
on_blur: Optional[EventType[()]] = None,
|
|
460
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
461
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
462
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
463
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
464
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
465
|
+
on_focus: Optional[EventType[()]] = None,
|
|
466
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
467
|
+
on_mount: Optional[EventType[()]] = None,
|
|
468
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
469
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
470
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
471
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
472
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
473
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
474
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
475
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
476
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
477
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
478
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
479
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
480
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
481
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
482
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
483
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
484
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
485
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
486
|
+
**props,
|
|
487
|
+
) -> "PlotlyGl3d":
|
|
488
|
+
"""Create the Plotly component.
|
|
489
|
+
|
|
490
|
+
Args:
|
|
491
|
+
*children: The children of the component.
|
|
492
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
493
|
+
layout: The layout of the graph.
|
|
494
|
+
template: The template for visual appearance of the graph.
|
|
495
|
+
config: The config of the graph.
|
|
496
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
497
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
498
|
+
on_animated: Fired after the plot was animated.
|
|
499
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
500
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
501
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
502
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
503
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
504
|
+
on_click: Fired when the plot is clicked.
|
|
505
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
506
|
+
on_double_click: Fired when the plot is double clicked.
|
|
507
|
+
on_hover: Fired when a plot element is hovered over.
|
|
508
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
509
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
510
|
+
on_restyle: Fired after the plot style is changed.
|
|
511
|
+
on_redraw: Fired after the plot is redrawn.
|
|
512
|
+
on_selected: Fired after selecting plot elements.
|
|
513
|
+
on_selecting: Fired while dragging a selection.
|
|
514
|
+
on_transitioning: Fired while an animation is occurring.
|
|
515
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
516
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
517
|
+
style: The style of the component.
|
|
518
|
+
key: A unique key for the component.
|
|
519
|
+
id: The id for the component.
|
|
520
|
+
class_name: The class name for the component.
|
|
521
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
522
|
+
custom_attrs: custom attribute
|
|
523
|
+
**props: The properties of the component.
|
|
524
|
+
|
|
525
|
+
Returns:
|
|
526
|
+
The Plotly component.
|
|
527
|
+
"""
|
|
528
|
+
...
|
|
529
|
+
|
|
530
|
+
class PlotlyGl2d(Plotly):
|
|
531
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
532
|
+
@overload
|
|
533
|
+
@classmethod
|
|
534
|
+
def create( # type: ignore
|
|
535
|
+
cls,
|
|
536
|
+
*children,
|
|
537
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
538
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
539
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
540
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
541
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
542
|
+
style: Optional[Style] = None,
|
|
543
|
+
key: Optional[Any] = None,
|
|
544
|
+
id: Optional[Any] = None,
|
|
545
|
+
class_name: Optional[Any] = None,
|
|
546
|
+
autofocus: Optional[bool] = None,
|
|
547
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
548
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
549
|
+
on_animated: Optional[EventType[()]] = None,
|
|
550
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
551
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
552
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
553
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
554
|
+
on_blur: Optional[EventType[()]] = None,
|
|
555
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
556
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
557
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
558
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
559
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
560
|
+
on_focus: Optional[EventType[()]] = None,
|
|
561
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
562
|
+
on_mount: Optional[EventType[()]] = None,
|
|
563
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
564
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
565
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
566
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
567
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
568
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
569
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
570
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
571
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
572
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
573
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
574
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
575
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
576
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
577
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
578
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
579
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
580
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
581
|
+
**props,
|
|
582
|
+
) -> "PlotlyGl2d":
|
|
583
|
+
"""Create the Plotly component.
|
|
584
|
+
|
|
585
|
+
Args:
|
|
586
|
+
*children: The children of the component.
|
|
587
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
588
|
+
layout: The layout of the graph.
|
|
589
|
+
template: The template for visual appearance of the graph.
|
|
590
|
+
config: The config of the graph.
|
|
591
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
592
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
593
|
+
on_animated: Fired after the plot was animated.
|
|
594
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
595
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
596
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
597
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
598
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
599
|
+
on_click: Fired when the plot is clicked.
|
|
600
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
601
|
+
on_double_click: Fired when the plot is double clicked.
|
|
602
|
+
on_hover: Fired when a plot element is hovered over.
|
|
603
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
604
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
605
|
+
on_restyle: Fired after the plot style is changed.
|
|
606
|
+
on_redraw: Fired after the plot is redrawn.
|
|
607
|
+
on_selected: Fired after selecting plot elements.
|
|
608
|
+
on_selecting: Fired while dragging a selection.
|
|
609
|
+
on_transitioning: Fired while an animation is occurring.
|
|
610
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
611
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
612
|
+
style: The style of the component.
|
|
613
|
+
key: A unique key for the component.
|
|
614
|
+
id: The id for the component.
|
|
615
|
+
class_name: The class name for the component.
|
|
616
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
617
|
+
custom_attrs: custom attribute
|
|
618
|
+
**props: The properties of the component.
|
|
619
|
+
|
|
620
|
+
Returns:
|
|
621
|
+
The Plotly component.
|
|
622
|
+
"""
|
|
623
|
+
...
|
|
624
|
+
|
|
625
|
+
class PlotlyMapbox(Plotly):
|
|
626
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
627
|
+
@overload
|
|
628
|
+
@classmethod
|
|
629
|
+
def create( # type: ignore
|
|
630
|
+
cls,
|
|
631
|
+
*children,
|
|
632
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
633
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
634
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
635
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
636
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
637
|
+
style: Optional[Style] = None,
|
|
638
|
+
key: Optional[Any] = None,
|
|
639
|
+
id: Optional[Any] = None,
|
|
640
|
+
class_name: Optional[Any] = None,
|
|
641
|
+
autofocus: Optional[bool] = None,
|
|
642
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
643
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
644
|
+
on_animated: Optional[EventType[()]] = None,
|
|
645
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
646
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
647
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
648
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
649
|
+
on_blur: Optional[EventType[()]] = None,
|
|
650
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
651
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
652
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
653
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
654
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
655
|
+
on_focus: Optional[EventType[()]] = None,
|
|
656
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
657
|
+
on_mount: Optional[EventType[()]] = None,
|
|
658
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
659
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
660
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
661
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
662
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
663
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
664
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
665
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
666
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
667
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
668
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
669
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
670
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
671
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
672
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
673
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
674
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
675
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
676
|
+
**props,
|
|
677
|
+
) -> "PlotlyMapbox":
|
|
678
|
+
"""Create the Plotly component.
|
|
679
|
+
|
|
680
|
+
Args:
|
|
681
|
+
*children: The children of the component.
|
|
682
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
683
|
+
layout: The layout of the graph.
|
|
684
|
+
template: The template for visual appearance of the graph.
|
|
685
|
+
config: The config of the graph.
|
|
686
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
687
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
688
|
+
on_animated: Fired after the plot was animated.
|
|
689
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
690
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
691
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
692
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
693
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
694
|
+
on_click: Fired when the plot is clicked.
|
|
695
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
696
|
+
on_double_click: Fired when the plot is double clicked.
|
|
697
|
+
on_hover: Fired when a plot element is hovered over.
|
|
698
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
699
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
700
|
+
on_restyle: Fired after the plot style is changed.
|
|
701
|
+
on_redraw: Fired after the plot is redrawn.
|
|
702
|
+
on_selected: Fired after selecting plot elements.
|
|
703
|
+
on_selecting: Fired while dragging a selection.
|
|
704
|
+
on_transitioning: Fired while an animation is occurring.
|
|
705
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
706
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
707
|
+
style: The style of the component.
|
|
708
|
+
key: A unique key for the component.
|
|
709
|
+
id: The id for the component.
|
|
710
|
+
class_name: The class name for the component.
|
|
711
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
712
|
+
custom_attrs: custom attribute
|
|
713
|
+
**props: The properties of the component.
|
|
714
|
+
|
|
715
|
+
Returns:
|
|
716
|
+
The Plotly component.
|
|
717
|
+
"""
|
|
718
|
+
...
|
|
719
|
+
|
|
720
|
+
class PlotlyFinance(Plotly):
|
|
721
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
722
|
+
@overload
|
|
723
|
+
@classmethod
|
|
724
|
+
def create( # type: ignore
|
|
725
|
+
cls,
|
|
726
|
+
*children,
|
|
727
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
728
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
729
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
730
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
731
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
732
|
+
style: Optional[Style] = None,
|
|
733
|
+
key: Optional[Any] = None,
|
|
734
|
+
id: Optional[Any] = None,
|
|
735
|
+
class_name: Optional[Any] = None,
|
|
736
|
+
autofocus: Optional[bool] = None,
|
|
737
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
738
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
739
|
+
on_animated: Optional[EventType[()]] = None,
|
|
740
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
741
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
742
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
743
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
744
|
+
on_blur: Optional[EventType[()]] = None,
|
|
745
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
746
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
747
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
748
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
749
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
750
|
+
on_focus: Optional[EventType[()]] = None,
|
|
751
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
752
|
+
on_mount: Optional[EventType[()]] = None,
|
|
753
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
754
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
755
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
756
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
757
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
758
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
759
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
760
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
761
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
762
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
763
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
764
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
765
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
766
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
767
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
768
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
769
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
770
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
771
|
+
**props,
|
|
772
|
+
) -> "PlotlyFinance":
|
|
773
|
+
"""Create the Plotly component.
|
|
774
|
+
|
|
775
|
+
Args:
|
|
776
|
+
*children: The children of the component.
|
|
777
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
778
|
+
layout: The layout of the graph.
|
|
779
|
+
template: The template for visual appearance of the graph.
|
|
780
|
+
config: The config of the graph.
|
|
781
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
782
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
783
|
+
on_animated: Fired after the plot was animated.
|
|
784
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
785
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
786
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
787
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
788
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
789
|
+
on_click: Fired when the plot is clicked.
|
|
790
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
791
|
+
on_double_click: Fired when the plot is double clicked.
|
|
792
|
+
on_hover: Fired when a plot element is hovered over.
|
|
793
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
794
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
795
|
+
on_restyle: Fired after the plot style is changed.
|
|
796
|
+
on_redraw: Fired after the plot is redrawn.
|
|
797
|
+
on_selected: Fired after selecting plot elements.
|
|
798
|
+
on_selecting: Fired while dragging a selection.
|
|
799
|
+
on_transitioning: Fired while an animation is occurring.
|
|
800
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
801
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
802
|
+
style: The style of the component.
|
|
803
|
+
key: A unique key for the component.
|
|
804
|
+
id: The id for the component.
|
|
805
|
+
class_name: The class name for the component.
|
|
806
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
807
|
+
custom_attrs: custom attribute
|
|
808
|
+
**props: The properties of the component.
|
|
809
|
+
|
|
810
|
+
Returns:
|
|
811
|
+
The Plotly component.
|
|
812
|
+
"""
|
|
813
|
+
...
|
|
814
|
+
|
|
815
|
+
class PlotlyStrict(Plotly):
|
|
816
|
+
def add_imports(self) -> ImportDict | list[ImportDict]: ...
|
|
817
|
+
@overload
|
|
818
|
+
@classmethod
|
|
819
|
+
def create( # type: ignore
|
|
820
|
+
cls,
|
|
821
|
+
*children,
|
|
822
|
+
data: Optional[Union[Figure, Var[Figure]]] = None, # type: ignore
|
|
823
|
+
layout: Optional[Union[Dict, Var[Dict]]] = None,
|
|
824
|
+
template: Optional[Union[Template, Var[Template]]] = None, # type: ignore
|
|
825
|
+
config: Optional[Union[Dict, Var[Dict]]] = None,
|
|
826
|
+
use_resize_handler: Optional[Union[Var[bool], bool]] = None,
|
|
827
|
+
style: Optional[Style] = None,
|
|
828
|
+
key: Optional[Any] = None,
|
|
829
|
+
id: Optional[Any] = None,
|
|
830
|
+
class_name: Optional[Any] = None,
|
|
831
|
+
autofocus: Optional[bool] = None,
|
|
832
|
+
custom_attrs: Optional[Dict[str, Union[Var, Any]]] = None,
|
|
833
|
+
on_after_plot: Optional[EventType[()]] = None,
|
|
834
|
+
on_animated: Optional[EventType[()]] = None,
|
|
835
|
+
on_animating_frame: Optional[EventType[()]] = None,
|
|
836
|
+
on_animation_interrupted: Optional[EventType[()]] = None,
|
|
837
|
+
on_autosize: Optional[EventType[()]] = None,
|
|
838
|
+
on_before_hover: Optional[EventType[()]] = None,
|
|
839
|
+
on_blur: Optional[EventType[()]] = None,
|
|
840
|
+
on_button_clicked: Optional[EventType[()]] = None,
|
|
841
|
+
on_click: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
842
|
+
on_context_menu: Optional[EventType[()]] = None,
|
|
843
|
+
on_deselect: Optional[EventType[()]] = None,
|
|
844
|
+
on_double_click: Optional[EventType[()]] = None,
|
|
845
|
+
on_focus: Optional[EventType[()]] = None,
|
|
846
|
+
on_hover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
847
|
+
on_mount: Optional[EventType[()]] = None,
|
|
848
|
+
on_mouse_down: Optional[EventType[()]] = None,
|
|
849
|
+
on_mouse_enter: Optional[EventType[()]] = None,
|
|
850
|
+
on_mouse_leave: Optional[EventType[()]] = None,
|
|
851
|
+
on_mouse_move: Optional[EventType[()]] = None,
|
|
852
|
+
on_mouse_out: Optional[EventType[()]] = None,
|
|
853
|
+
on_mouse_over: Optional[EventType[()]] = None,
|
|
854
|
+
on_mouse_up: Optional[EventType[()]] = None,
|
|
855
|
+
on_redraw: Optional[EventType[()]] = None,
|
|
856
|
+
on_relayout: Optional[EventType[()]] = None,
|
|
857
|
+
on_relayouting: Optional[EventType[()]] = None,
|
|
858
|
+
on_restyle: Optional[EventType[()]] = None,
|
|
859
|
+
on_scroll: Optional[EventType[()]] = None,
|
|
860
|
+
on_selected: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
861
|
+
on_selecting: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
862
|
+
on_transition_interrupted: Optional[EventType[()]] = None,
|
|
863
|
+
on_transitioning: Optional[EventType[()]] = None,
|
|
864
|
+
on_unhover: Optional[Union[EventType[()], EventType[List[Point]]]] = None,
|
|
865
|
+
on_unmount: Optional[EventType[()]] = None,
|
|
866
|
+
**props,
|
|
867
|
+
) -> "PlotlyStrict":
|
|
868
|
+
"""Create the Plotly component.
|
|
869
|
+
|
|
870
|
+
Args:
|
|
871
|
+
*children: The children of the component.
|
|
872
|
+
data: The figure to display. This can be a plotly figure or a plotly data json.
|
|
873
|
+
layout: The layout of the graph.
|
|
874
|
+
template: The template for visual appearance of the graph.
|
|
875
|
+
config: The config of the graph.
|
|
876
|
+
use_resize_handler: If true, the graph will resize when the window is resized.
|
|
877
|
+
on_after_plot: Fired after the plot is redrawn.
|
|
878
|
+
on_animated: Fired after the plot was animated.
|
|
879
|
+
on_animating_frame: Fired while animating a single frame (does not currently pass data through).
|
|
880
|
+
on_animation_interrupted: Fired when an animation is interrupted (to start a new animation for example).
|
|
881
|
+
on_autosize: Fired when the plot is responsively sized.
|
|
882
|
+
on_before_hover: Fired whenever mouse moves over a plot.
|
|
883
|
+
on_button_clicked: Fired when a plotly UI button is clicked.
|
|
884
|
+
on_click: Fired when the plot is clicked.
|
|
885
|
+
on_deselect: Fired when a selection is cleared (via double click).
|
|
886
|
+
on_double_click: Fired when the plot is double clicked.
|
|
887
|
+
on_hover: Fired when a plot element is hovered over.
|
|
888
|
+
on_relayout: Fired after the plot is laid out (zoom, pan, etc).
|
|
889
|
+
on_relayouting: Fired while the plot is being laid out.
|
|
890
|
+
on_restyle: Fired after the plot style is changed.
|
|
891
|
+
on_redraw: Fired after the plot is redrawn.
|
|
892
|
+
on_selected: Fired after selecting plot elements.
|
|
893
|
+
on_selecting: Fired while dragging a selection.
|
|
894
|
+
on_transitioning: Fired while an animation is occurring.
|
|
895
|
+
on_transition_interrupted: Fired when a transition is stopped early.
|
|
896
|
+
on_unhover: Fired when a hovered element is no longer hovered.
|
|
897
|
+
style: The style of the component.
|
|
898
|
+
key: A unique key for the component.
|
|
899
|
+
id: The id for the component.
|
|
900
|
+
class_name: The class name for the component.
|
|
901
|
+
autofocus: Whether the component should take the focus once the page is loaded
|
|
902
|
+
custom_attrs: custom attribute
|
|
903
|
+
**props: The properties of the component.
|
|
904
|
+
|
|
905
|
+
Returns:
|
|
906
|
+
The Plotly component.
|
|
907
|
+
"""
|
|
908
|
+
...
|