recharts.pyi 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  1. """Stub file for reflex/components/recharts/recharts.py"""
  2. # ------------------- DO NOT EDIT ----------------------
  3. # This file was generated by `reflex/utils/pyi_generator.py`!
  4. # ------------------------------------------------------
  5. from typing import Any, Callable, Dict, Literal, Optional, Union, overload
  6. from reflex.components.component import Component, MemoizationLeaf, NoSSRComponent
  7. from reflex.event import EventHandler, EventSpec
  8. from reflex.style import Style
  9. from reflex.vars import BaseVar, Var
  10. class Recharts(Component):
  11. def render(self) -> Dict: ...
  12. @overload
  13. @classmethod
  14. def create( # type: ignore
  15. cls,
  16. *children,
  17. style: Optional[Style] = None,
  18. key: Optional[Any] = None,
  19. id: Optional[Any] = None,
  20. class_name: Optional[Any] = None,
  21. autofocus: Optional[bool] = None,
  22. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  23. on_blur: Optional[
  24. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  25. ] = None,
  26. on_click: Optional[
  27. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  28. ] = None,
  29. on_context_menu: Optional[
  30. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  31. ] = None,
  32. on_double_click: Optional[
  33. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  34. ] = None,
  35. on_focus: Optional[
  36. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  37. ] = None,
  38. on_mount: Optional[
  39. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  40. ] = None,
  41. on_mouse_down: Optional[
  42. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  43. ] = None,
  44. on_mouse_enter: Optional[
  45. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  46. ] = None,
  47. on_mouse_leave: Optional[
  48. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  49. ] = None,
  50. on_mouse_move: Optional[
  51. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  52. ] = None,
  53. on_mouse_out: Optional[
  54. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  55. ] = None,
  56. on_mouse_over: Optional[
  57. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  58. ] = None,
  59. on_mouse_up: Optional[
  60. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  61. ] = None,
  62. on_scroll: Optional[
  63. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  64. ] = None,
  65. on_unmount: Optional[
  66. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  67. ] = None,
  68. **props,
  69. ) -> "Recharts":
  70. """Create the component.
  71. Args:
  72. *children: The children of the component.
  73. style: The style of the component.
  74. key: A unique key for the component.
  75. id: The id for the component.
  76. class_name: The class name for the component.
  77. autofocus: Whether the component should take the focus once the page is loaded
  78. custom_attrs: custom attribute
  79. **props: The props of the component.
  80. Returns:
  81. The component.
  82. """
  83. ...
  84. class RechartsCharts(NoSSRComponent, MemoizationLeaf):
  85. @overload
  86. @classmethod
  87. def create( # type: ignore
  88. cls,
  89. *children,
  90. style: Optional[Style] = None,
  91. key: Optional[Any] = None,
  92. id: Optional[Any] = None,
  93. class_name: Optional[Any] = None,
  94. autofocus: Optional[bool] = None,
  95. custom_attrs: Optional[Dict[str, Union[Var, str]]] = None,
  96. on_blur: Optional[
  97. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  98. ] = None,
  99. on_click: Optional[
  100. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  101. ] = None,
  102. on_context_menu: Optional[
  103. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  104. ] = None,
  105. on_double_click: Optional[
  106. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  107. ] = None,
  108. on_focus: Optional[
  109. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  110. ] = None,
  111. on_mount: Optional[
  112. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  113. ] = None,
  114. on_mouse_down: Optional[
  115. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  116. ] = None,
  117. on_mouse_enter: Optional[
  118. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  119. ] = None,
  120. on_mouse_leave: Optional[
  121. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  122. ] = None,
  123. on_mouse_move: Optional[
  124. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  125. ] = None,
  126. on_mouse_out: Optional[
  127. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  128. ] = None,
  129. on_mouse_over: Optional[
  130. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  131. ] = None,
  132. on_mouse_up: Optional[
  133. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  134. ] = None,
  135. on_scroll: Optional[
  136. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  137. ] = None,
  138. on_unmount: Optional[
  139. Union[EventHandler, EventSpec, list, Callable, BaseVar]
  140. ] = None,
  141. **props,
  142. ) -> "RechartsCharts":
  143. """Create a new memoization leaf component.
  144. Args:
  145. *children: The children of the component.
  146. style: The style of the component.
  147. key: A unique key for the component.
  148. id: The id for the component.
  149. class_name: The class name for the component.
  150. autofocus: Whether the component should take the focus once the page is loaded
  151. custom_attrs: custom attribute
  152. **props: The props of the component.
  153. Returns:
  154. The memoization leaf
  155. """
  156. ...
  157. LiteralAnimationEasing = Literal["ease", "ease-in", "ease-out", "ease-in-out", "linear"]
  158. LiteralIfOverflow = Literal["discard", "hidden", "visible", "extendDomain"]
  159. LiteralShape = Literal[
  160. "square", "circle", "cross", "diamond", "star", "triangle", "wye"
  161. ]
  162. LiteralLineType = Literal["joint", "fitting"]
  163. LiteralOrientation = Literal["top", "bottom", "left", "right", "middle"]
  164. LiteralOrientationLeftRightMiddle = Literal["left", "right", "middle"]
  165. LiteralOrientationTopBottom = Literal["top", "bottom"]
  166. LiteralOrientationLeftRight = Literal["left", "right"]
  167. LiteralOrientationTopBottomLeftRight = Literal["top", "bottom", "left", "right"]
  168. LiteralScale = Literal[
  169. "auto",
  170. "linear",
  171. "pow",
  172. "sqrt",
  173. "log",
  174. "identity",
  175. "time",
  176. "band",
  177. "point",
  178. "ordinal",
  179. "quantile",
  180. "quantize",
  181. "utc",
  182. "sequential",
  183. "threshold",
  184. ]
  185. LiteralLayout = Literal["horizontal", "vertical"]
  186. LiteralPolarRadiusType = Literal["number", "category"]
  187. LiteralGridType = Literal["polygon", "circle"]
  188. LiteralPosition = Literal[
  189. "top",
  190. "left",
  191. "right",
  192. "bottom",
  193. "inside",
  194. "outside",
  195. "insideLeft",
  196. "insideRight",
  197. "insideTop",
  198. "insideBottom",
  199. "insideTopLeft",
  200. "insideBottomLeft",
  201. "insideTopRight",
  202. "insideBottomRight",
  203. "insideStart",
  204. "insideEnd",
  205. "end",
  206. "center",
  207. ]
  208. LiteralIconType = Literal[
  209. "line",
  210. "plainline",
  211. "square",
  212. "rect",
  213. "circle",
  214. "cross",
  215. "diamond",
  216. "star",
  217. "triangle",
  218. "wye",
  219. ]
  220. LiteralLegendType = Literal[
  221. "line",
  222. "plainline",
  223. "square",
  224. "rect",
  225. "circle",
  226. "cross",
  227. "diamond",
  228. "star",
  229. "triangle",
  230. "wye",
  231. "none",
  232. ]
  233. LiteralLegendAlign = Literal["left", "center", "right"]
  234. LiteralVerticalAlign = Literal["top", "middle", "bottom"]
  235. LiteralStackOffset = Literal["expand", "none", "wiggle", "silhouette"]
  236. LiteralBarChartStackOffset = Literal["expand", "none", "wiggle", "silhouette", "sign"]
  237. LiteralComposedChartBaseValue = Literal["dataMin", "dataMax", "auto"]
  238. LiteralAxisType = Literal["number", "category"]
  239. LiteralAreaType = Literal[
  240. "basis",
  241. "basisClosed",
  242. "basisOpen",
  243. "bumpX",
  244. "bumpY",
  245. "bump",
  246. "linear",
  247. "linearClosed",
  248. "natural",
  249. "monotoneX",
  250. "monotoneY",
  251. "monotone",
  252. "step",
  253. "stepBefore",
  254. "stepAfter",
  255. ]
  256. LiteralDirection = Literal["x", "y", "both"]
  257. LiteralInterval = Literal["preserveStart", "preserveEnd", "preserveStartEnd"]
  258. LiteralSyncMethod = Literal["index", "value"]