reflex 0.7.0a3__py3-none-any.whl → 0.7.0a4__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.

@@ -11,6 +11,7 @@ from reflex.components.component import NoSSRComponent
11
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:
@@ -141,3 +142,767 @@ class Plotly(NoSSRComponent):
141
142
  The Plotly component.
142
143
  """
143
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
+ ...