minerva-design 1.4.0 → 1.5.0

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.
Files changed (670) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +21 -21
  3. package/custom-elements.json +4047 -1703
  4. package/dist/angular/fesm2022/minerva-angular.mjs +1436 -5
  5. package/dist/angular/fesm2022/minerva-angular.mjs.map +1 -1
  6. package/dist/angular/types/minerva-angular.d.ts +573 -4
  7. package/dist/charts/canvas.d.cts +2 -2
  8. package/dist/charts/canvas.d.ts +2 -2
  9. package/dist/charts/core.cjs +1 -1
  10. package/dist/charts/core.d.cts +6 -4
  11. package/dist/charts/core.d.ts +6 -4
  12. package/dist/charts/core.js +24 -16
  13. package/dist/charts/engine/axis.cjs +1 -1
  14. package/dist/charts/engine/axis.cjs.map +1 -1
  15. package/dist/charts/engine/axis.js +42 -19
  16. package/dist/charts/engine/axis.js.map +1 -1
  17. package/dist/charts/engine/canvas.cjs +1 -1
  18. package/dist/charts/engine/canvas.cjs.map +1 -1
  19. package/dist/charts/engine/canvas.js +154 -127
  20. package/dist/charts/engine/canvas.js.map +1 -1
  21. package/dist/charts/engine/chart.cjs +1 -1
  22. package/dist/charts/engine/chart.cjs.map +1 -1
  23. package/dist/charts/engine/chart.js +365 -251
  24. package/dist/charts/engine/chart.js.map +1 -1
  25. package/dist/charts/engine/color.cjs +1 -1
  26. package/dist/charts/engine/color.cjs.map +1 -1
  27. package/dist/charts/engine/color.d.cts +18 -0
  28. package/dist/charts/engine/color.d.ts +18 -0
  29. package/dist/charts/engine/color.js +48 -2
  30. package/dist/charts/engine/color.js.map +1 -1
  31. package/dist/charts/engine/controller.cjs +2 -2
  32. package/dist/charts/engine/controller.cjs.map +1 -1
  33. package/dist/charts/engine/controller.d.cts +32 -1
  34. package/dist/charts/engine/controller.d.ts +32 -1
  35. package/dist/charts/engine/controller.js +310 -263
  36. package/dist/charts/engine/controller.js.map +1 -1
  37. package/dist/charts/engine/data.cjs +1 -1
  38. package/dist/charts/engine/data.cjs.map +1 -1
  39. package/dist/charts/engine/data.d.cts +3 -1
  40. package/dist/charts/engine/data.d.ts +3 -1
  41. package/dist/charts/engine/data.js +6 -4
  42. package/dist/charts/engine/data.js.map +1 -1
  43. package/dist/charts/engine/defaults.cjs +2 -0
  44. package/dist/charts/engine/defaults.cjs.map +1 -0
  45. package/dist/charts/engine/defaults.d.cts +20 -0
  46. package/dist/charts/engine/defaults.d.ts +20 -0
  47. package/dist/charts/engine/defaults.js +35 -0
  48. package/dist/charts/engine/defaults.js.map +1 -0
  49. package/dist/charts/engine/format.cjs +1 -1
  50. package/dist/charts/engine/format.cjs.map +1 -1
  51. package/dist/charts/engine/format.d.cts +6 -0
  52. package/dist/charts/engine/format.d.ts +6 -0
  53. package/dist/charts/engine/format.js +15 -2
  54. package/dist/charts/engine/format.js.map +1 -1
  55. package/dist/charts/engine/graph/chart.cjs +2 -0
  56. package/dist/charts/engine/graph/chart.cjs.map +1 -0
  57. package/dist/charts/engine/graph/chart.d.cts +3 -0
  58. package/dist/charts/engine/graph/chart.d.ts +3 -0
  59. package/dist/charts/engine/graph/chart.js +1565 -0
  60. package/dist/charts/engine/graph/chart.js.map +1 -0
  61. package/dist/charts/engine/graph/circular.cjs +2 -0
  62. package/dist/charts/engine/graph/circular.cjs.map +1 -0
  63. package/dist/charts/engine/graph/circular.d.cts +16 -0
  64. package/dist/charts/engine/graph/circular.d.ts +16 -0
  65. package/dist/charts/engine/graph/circular.js +62 -0
  66. package/dist/charts/engine/graph/circular.js.map +1 -0
  67. package/dist/charts/engine/graph/dag.cjs +2 -0
  68. package/dist/charts/engine/graph/dag.cjs.map +1 -0
  69. package/dist/charts/engine/graph/dag.d.cts +34 -0
  70. package/dist/charts/engine/graph/dag.d.ts +34 -0
  71. package/dist/charts/engine/graph/dag.js +314 -0
  72. package/dist/charts/engine/graph/dag.js.map +1 -0
  73. package/dist/charts/engine/graph/dom.cjs +2 -0
  74. package/dist/charts/engine/graph/dom.cjs.map +1 -0
  75. package/dist/charts/engine/graph/dom.d.cts +23 -0
  76. package/dist/charts/engine/graph/dom.d.ts +23 -0
  77. package/dist/charts/engine/graph/dom.js +158 -0
  78. package/dist/charts/engine/graph/dom.js.map +1 -0
  79. package/dist/charts/engine/graph/force.cjs +2 -0
  80. package/dist/charts/engine/graph/force.cjs.map +1 -0
  81. package/dist/charts/engine/graph/force.d.cts +67 -0
  82. package/dist/charts/engine/graph/force.d.ts +67 -0
  83. package/dist/charts/engine/graph/force.js +325 -0
  84. package/dist/charts/engine/graph/force.js.map +1 -0
  85. package/dist/charts/engine/graph/geometry.cjs +2 -0
  86. package/dist/charts/engine/graph/geometry.cjs.map +1 -0
  87. package/dist/charts/engine/graph/geometry.d.cts +37 -0
  88. package/dist/charts/engine/graph/geometry.d.ts +37 -0
  89. package/dist/charts/engine/graph/geometry.js +144 -0
  90. package/dist/charts/engine/graph/geometry.js.map +1 -0
  91. package/dist/charts/engine/graph/index.cjs +1 -0
  92. package/dist/charts/engine/graph/index.d.cts +6 -0
  93. package/dist/charts/engine/graph/index.d.ts +6 -0
  94. package/dist/charts/engine/graph/index.js +6 -0
  95. package/dist/charts/engine/graph/labels.cjs +2 -0
  96. package/dist/charts/engine/graph/labels.cjs.map +1 -0
  97. package/dist/charts/engine/graph/labels.d.cts +12 -0
  98. package/dist/charts/engine/graph/labels.d.ts +12 -0
  99. package/dist/charts/engine/graph/labels.js +128 -0
  100. package/dist/charts/engine/graph/labels.js.map +1 -0
  101. package/dist/charts/engine/graph/model.cjs +2 -0
  102. package/dist/charts/engine/graph/model.cjs.map +1 -0
  103. package/dist/charts/engine/graph/model.d.cts +43 -0
  104. package/dist/charts/engine/graph/model.d.ts +43 -0
  105. package/dist/charts/engine/graph/model.js +88 -0
  106. package/dist/charts/engine/graph/model.js.map +1 -0
  107. package/dist/charts/engine/graph/sizing.cjs +2 -0
  108. package/dist/charts/engine/graph/sizing.cjs.map +1 -0
  109. package/dist/charts/engine/graph/sizing.d.cts +33 -0
  110. package/dist/charts/engine/graph/sizing.d.ts +33 -0
  111. package/dist/charts/engine/graph/sizing.js +60 -0
  112. package/dist/charts/engine/graph/sizing.js.map +1 -0
  113. package/dist/charts/engine/graph/tree.cjs +2 -0
  114. package/dist/charts/engine/graph/tree.cjs.map +1 -0
  115. package/dist/charts/engine/graph/tree.d.cts +30 -0
  116. package/dist/charts/engine/graph/tree.d.ts +30 -0
  117. package/dist/charts/engine/graph/tree.js +218 -0
  118. package/dist/charts/engine/graph/tree.js.map +1 -0
  119. package/dist/charts/engine/graph/types.d.cts +626 -0
  120. package/dist/charts/engine/graph/types.d.ts +626 -0
  121. package/dist/charts/engine/graph/worker.cjs +46 -0
  122. package/dist/charts/engine/graph/worker.cjs.map +1 -0
  123. package/dist/charts/engine/graph/worker.d.cts +36 -0
  124. package/dist/charts/engine/graph/worker.d.ts +36 -0
  125. package/dist/charts/engine/graph/worker.js +129 -0
  126. package/dist/charts/engine/graph/worker.js.map +1 -0
  127. package/dist/charts/engine/items.cjs +1 -1
  128. package/dist/charts/engine/items.cjs.map +1 -1
  129. package/dist/charts/engine/items.d.cts +15 -2
  130. package/dist/charts/engine/items.d.ts +15 -2
  131. package/dist/charts/engine/items.js +131 -112
  132. package/dist/charts/engine/items.js.map +1 -1
  133. package/dist/charts/engine/labels.cjs +1 -1
  134. package/dist/charts/engine/labels.cjs.map +1 -1
  135. package/dist/charts/engine/labels.js +28 -4
  136. package/dist/charts/engine/labels.js.map +1 -1
  137. package/dist/charts/engine/layout.cjs +1 -1
  138. package/dist/charts/engine/layout.cjs.map +1 -1
  139. package/dist/charts/engine/layout.d.cts +9 -0
  140. package/dist/charts/engine/layout.d.ts +9 -0
  141. package/dist/charts/engine/layout.js +11 -2
  142. package/dist/charts/engine/layout.js.map +1 -1
  143. package/dist/charts/engine/model.cjs +1 -1
  144. package/dist/charts/engine/model.cjs.map +1 -1
  145. package/dist/charts/engine/model.d.cts +40 -3
  146. package/dist/charts/engine/model.d.ts +40 -3
  147. package/dist/charts/engine/model.js +246 -165
  148. package/dist/charts/engine/model.js.map +1 -1
  149. package/dist/charts/engine/orderbook/format.cjs +1 -1
  150. package/dist/charts/engine/orderbook/format.cjs.map +1 -1
  151. package/dist/charts/engine/orderbook/format.d.cts +3 -2
  152. package/dist/charts/engine/orderbook/format.d.ts +3 -2
  153. package/dist/charts/engine/orderbook/format.js +5 -5
  154. package/dist/charts/engine/orderbook/format.js.map +1 -1
  155. package/dist/charts/engine/orderbook/heatmap.cjs +1 -1
  156. package/dist/charts/engine/orderbook/heatmap.cjs.map +1 -1
  157. package/dist/charts/engine/orderbook/heatmap.js +527 -408
  158. package/dist/charts/engine/orderbook/heatmap.js.map +1 -1
  159. package/dist/charts/engine/orderbook/layout.cjs +2 -0
  160. package/dist/charts/engine/orderbook/layout.cjs.map +1 -0
  161. package/dist/charts/engine/orderbook/layout.d.cts +37 -0
  162. package/dist/charts/engine/orderbook/layout.d.ts +37 -0
  163. package/dist/charts/engine/orderbook/layout.js +70 -0
  164. package/dist/charts/engine/orderbook/layout.js.map +1 -0
  165. package/dist/charts/engine/orderbook/tape.cjs +1 -1
  166. package/dist/charts/engine/orderbook/tape.cjs.map +1 -1
  167. package/dist/charts/engine/orderbook/tape.js +1 -1
  168. package/dist/charts/engine/orderbook/tape.js.map +1 -1
  169. package/dist/charts/engine/orderbook/types.d.cts +18 -2
  170. package/dist/charts/engine/orderbook/types.d.ts +18 -2
  171. package/dist/charts/engine/overlay.cjs +1 -1
  172. package/dist/charts/engine/overlay.cjs.map +1 -1
  173. package/dist/charts/engine/overlay.d.cts +10 -0
  174. package/dist/charts/engine/overlay.d.ts +10 -0
  175. package/dist/charts/engine/overlay.js +6 -0
  176. package/dist/charts/engine/overlay.js.map +1 -1
  177. package/dist/charts/engine/presets.cjs +2 -2
  178. package/dist/charts/engine/presets.cjs.map +1 -1
  179. package/dist/charts/engine/presets.d.cts +25 -3
  180. package/dist/charts/engine/presets.d.ts +25 -3
  181. package/dist/charts/engine/presets.js +115 -101
  182. package/dist/charts/engine/presets.js.map +1 -1
  183. package/dist/charts/engine/renderers/detect.cjs +1 -1
  184. package/dist/charts/engine/renderers/detect.cjs.map +1 -1
  185. package/dist/charts/engine/renderers/detect.d.cts +2 -1
  186. package/dist/charts/engine/renderers/detect.d.ts +2 -1
  187. package/dist/charts/engine/renderers/detect.js +23 -21
  188. package/dist/charts/engine/renderers/detect.js.map +1 -1
  189. package/dist/charts/engine/scene.cjs +1 -1
  190. package/dist/charts/engine/scene.cjs.map +1 -1
  191. package/dist/charts/engine/scene.d.cts +57 -4
  192. package/dist/charts/engine/scene.d.ts +57 -4
  193. package/dist/charts/engine/scene.js +335 -182
  194. package/dist/charts/engine/scene.js.map +1 -1
  195. package/dist/charts/engine/shapes/bullet.cjs +1 -1
  196. package/dist/charts/engine/shapes/bullet.cjs.map +1 -1
  197. package/dist/charts/engine/shapes/bullet.js +110 -110
  198. package/dist/charts/engine/shapes/bullet.js.map +1 -1
  199. package/dist/charts/engine/shapes/chart.cjs +1 -1
  200. package/dist/charts/engine/shapes/chart.cjs.map +1 -1
  201. package/dist/charts/engine/shapes/chart.js +4 -1
  202. package/dist/charts/engine/shapes/chart.js.map +1 -1
  203. package/dist/charts/engine/shapes/chord.cjs +2 -0
  204. package/dist/charts/engine/shapes/chord.cjs.map +1 -0
  205. package/dist/charts/engine/shapes/chord.d.cts +18 -0
  206. package/dist/charts/engine/shapes/chord.d.ts +18 -0
  207. package/dist/charts/engine/shapes/chord.js +414 -0
  208. package/dist/charts/engine/shapes/chord.js.map +1 -0
  209. package/dist/charts/engine/shapes/draw.cjs +1 -1
  210. package/dist/charts/engine/shapes/draw.cjs.map +1 -1
  211. package/dist/charts/engine/shapes/draw.d.cts +5 -1
  212. package/dist/charts/engine/shapes/draw.d.ts +5 -1
  213. package/dist/charts/engine/shapes/draw.js +47 -17
  214. package/dist/charts/engine/shapes/draw.js.map +1 -1
  215. package/dist/charts/engine/shapes/hit.cjs +1 -1
  216. package/dist/charts/engine/shapes/hit.cjs.map +1 -1
  217. package/dist/charts/engine/shapes/hit.d.cts +3 -1
  218. package/dist/charts/engine/shapes/hit.d.ts +3 -1
  219. package/dist/charts/engine/shapes/hit.js +75 -46
  220. package/dist/charts/engine/shapes/hit.js.map +1 -1
  221. package/dist/charts/engine/shapes/index.d.cts +3 -2
  222. package/dist/charts/engine/shapes/index.d.ts +3 -2
  223. package/dist/charts/engine/shapes/labels.cjs +1 -1
  224. package/dist/charts/engine/shapes/labels.cjs.map +1 -1
  225. package/dist/charts/engine/shapes/labels.js +12 -4
  226. package/dist/charts/engine/shapes/labels.js.map +1 -1
  227. package/dist/charts/engine/shapes/layout.cjs +2 -2
  228. package/dist/charts/engine/shapes/layout.cjs.map +1 -1
  229. package/dist/charts/engine/shapes/layout.d.cts +3 -1
  230. package/dist/charts/engine/shapes/layout.d.ts +3 -1
  231. package/dist/charts/engine/shapes/layout.js +106 -78
  232. package/dist/charts/engine/shapes/layout.js.map +1 -1
  233. package/dist/charts/engine/shapes/scene.cjs +1 -1
  234. package/dist/charts/engine/shapes/scene.cjs.map +1 -1
  235. package/dist/charts/engine/shapes/scene.d.cts +33 -3
  236. package/dist/charts/engine/shapes/scene.d.ts +33 -3
  237. package/dist/charts/engine/shapes/scene.js +62 -19
  238. package/dist/charts/engine/shapes/scene.js.map +1 -1
  239. package/dist/charts/engine/shapes/types.d.cts +119 -8
  240. package/dist/charts/engine/shapes/types.d.ts +119 -8
  241. package/dist/charts/engine/signature.cjs +1 -1
  242. package/dist/charts/engine/signature.cjs.map +1 -1
  243. package/dist/charts/engine/signature.js +1 -1
  244. package/dist/charts/engine/signature.js.map +1 -1
  245. package/dist/charts/engine/three-d/canvas2d.cjs +1 -1
  246. package/dist/charts/engine/three-d/canvas2d.cjs.map +1 -1
  247. package/dist/charts/engine/three-d/canvas2d.d.cts +5 -2
  248. package/dist/charts/engine/three-d/canvas2d.d.ts +5 -2
  249. package/dist/charts/engine/three-d/canvas2d.js +89 -65
  250. package/dist/charts/engine/three-d/canvas2d.js.map +1 -1
  251. package/dist/charts/engine/three-d/detect.cjs +1 -1
  252. package/dist/charts/engine/three-d/detect.cjs.map +1 -1
  253. package/dist/charts/engine/three-d/detect.d.cts +3 -2
  254. package/dist/charts/engine/three-d/detect.d.ts +3 -2
  255. package/dist/charts/engine/three-d/detect.js +22 -20
  256. package/dist/charts/engine/three-d/detect.js.map +1 -1
  257. package/dist/charts/engine/three-d/geometry.cjs +1 -1
  258. package/dist/charts/engine/three-d/geometry.cjs.map +1 -1
  259. package/dist/charts/engine/three-d/geometry.d.cts +6 -0
  260. package/dist/charts/engine/three-d/geometry.d.ts +6 -0
  261. package/dist/charts/engine/three-d/geometry.js +106 -90
  262. package/dist/charts/engine/three-d/geometry.js.map +1 -1
  263. package/dist/charts/engine/three-d/model.cjs +1 -1
  264. package/dist/charts/engine/three-d/model.cjs.map +1 -1
  265. package/dist/charts/engine/three-d/model.d.cts +2 -0
  266. package/dist/charts/engine/three-d/model.d.ts +2 -0
  267. package/dist/charts/engine/three-d/model.js +2 -0
  268. package/dist/charts/engine/three-d/model.js.map +1 -1
  269. package/dist/charts/engine/three-d/overlay.cjs +1 -1
  270. package/dist/charts/engine/three-d/overlay.cjs.map +1 -1
  271. package/dist/charts/engine/three-d/overlay.js +43 -36
  272. package/dist/charts/engine/three-d/overlay.js.map +1 -1
  273. package/dist/charts/engine/three-d/render-types.cjs +1 -1
  274. package/dist/charts/engine/three-d/render-types.cjs.map +1 -1
  275. package/dist/charts/engine/three-d/render-types.d.cts +24 -3
  276. package/dist/charts/engine/three-d/render-types.d.ts +24 -3
  277. package/dist/charts/engine/three-d/render-types.js +6 -7
  278. package/dist/charts/engine/three-d/render-types.js.map +1 -1
  279. package/dist/charts/engine/three-d/shaders.cjs +63 -28
  280. package/dist/charts/engine/three-d/shaders.cjs.map +1 -1
  281. package/dist/charts/engine/three-d/shaders.d.cts +2 -3
  282. package/dist/charts/engine/three-d/shaders.d.ts +2 -3
  283. package/dist/charts/engine/three-d/shaders.js +41 -22
  284. package/dist/charts/engine/three-d/shaders.js.map +1 -1
  285. package/dist/charts/engine/three-d/sort.cjs +1 -1
  286. package/dist/charts/engine/three-d/sort.cjs.map +1 -1
  287. package/dist/charts/engine/three-d/sort.d.cts +15 -4
  288. package/dist/charts/engine/three-d/sort.d.ts +15 -4
  289. package/dist/charts/engine/three-d/sort.js +117 -43
  290. package/dist/charts/engine/three-d/sort.js.map +1 -1
  291. package/dist/charts/engine/three-d/types.d.cts +27 -0
  292. package/dist/charts/engine/three-d/types.d.ts +27 -0
  293. package/dist/charts/engine/three-d/webgl.cjs +1 -1
  294. package/dist/charts/engine/three-d/webgl.cjs.map +1 -1
  295. package/dist/charts/engine/three-d/webgl.js +15 -13
  296. package/dist/charts/engine/three-d/webgl.js.map +1 -1
  297. package/dist/charts/engine/three-d/webgpu.cjs +1 -1
  298. package/dist/charts/engine/three-d/webgpu.cjs.map +1 -1
  299. package/dist/charts/engine/three-d/webgpu.js +50 -39
  300. package/dist/charts/engine/three-d/webgpu.js.map +1 -1
  301. package/dist/charts/engine/trading/chart.cjs +1 -1
  302. package/dist/charts/engine/trading/chart.cjs.map +1 -1
  303. package/dist/charts/engine/trading/chart.d.cts +10 -0
  304. package/dist/charts/engine/trading/chart.d.ts +10 -0
  305. package/dist/charts/engine/trading/chart.js +1475 -776
  306. package/dist/charts/engine/trading/chart.js.map +1 -1
  307. package/dist/charts/engine/trading/drawings.cjs +2 -1
  308. package/dist/charts/engine/trading/drawings.cjs.map +1 -1
  309. package/dist/charts/engine/trading/drawings.d.cts +47 -9
  310. package/dist/charts/engine/trading/drawings.d.ts +47 -9
  311. package/dist/charts/engine/trading/drawings.js +338 -75
  312. package/dist/charts/engine/trading/drawings.js.map +1 -1
  313. package/dist/charts/engine/trading/format.cjs +1 -1
  314. package/dist/charts/engine/trading/format.cjs.map +1 -1
  315. package/dist/charts/engine/trading/format.d.cts +13 -0
  316. package/dist/charts/engine/trading/format.d.ts +13 -0
  317. package/dist/charts/engine/trading/format.js +51 -19
  318. package/dist/charts/engine/trading/format.js.map +1 -1
  319. package/dist/charts/engine/trading/index.cjs +1 -1
  320. package/dist/charts/engine/trading/index.d.cts +2 -1
  321. package/dist/charts/engine/trading/index.d.ts +2 -1
  322. package/dist/charts/engine/trading/index.js +4 -3
  323. package/dist/charts/engine/trading/indicators.cjs +1 -1
  324. package/dist/charts/engine/trading/indicators.cjs.map +1 -1
  325. package/dist/charts/engine/trading/indicators.d.cts +180 -10
  326. package/dist/charts/engine/trading/indicators.d.ts +180 -10
  327. package/dist/charts/engine/trading/indicators.js +449 -173
  328. package/dist/charts/engine/trading/indicators.js.map +1 -1
  329. package/dist/charts/engine/trading/labels.cjs +1 -1
  330. package/dist/charts/engine/trading/labels.cjs.map +1 -1
  331. package/dist/charts/engine/trading/labels.js +84 -4
  332. package/dist/charts/engine/trading/labels.js.map +1 -1
  333. package/dist/charts/engine/trading/store.cjs +1 -1
  334. package/dist/charts/engine/trading/store.cjs.map +1 -1
  335. package/dist/charts/engine/trading/store.d.cts +21 -0
  336. package/dist/charts/engine/trading/store.d.ts +21 -0
  337. package/dist/charts/engine/trading/store.js +22 -1
  338. package/dist/charts/engine/trading/store.js.map +1 -1
  339. package/dist/charts/engine/trading/studies.cjs +1 -1
  340. package/dist/charts/engine/trading/studies.cjs.map +1 -1
  341. package/dist/charts/engine/trading/studies.d.cts +41 -8
  342. package/dist/charts/engine/trading/studies.d.ts +41 -8
  343. package/dist/charts/engine/trading/studies.js +349 -93
  344. package/dist/charts/engine/trading/studies.js.map +1 -1
  345. package/dist/charts/engine/trading/sync.cjs +2 -0
  346. package/dist/charts/engine/trading/sync.cjs.map +1 -0
  347. package/dist/charts/engine/trading/sync.d.cts +8 -0
  348. package/dist/charts/engine/trading/sync.d.ts +8 -0
  349. package/dist/charts/engine/trading/sync.js +25 -0
  350. package/dist/charts/engine/trading/sync.js.map +1 -0
  351. package/dist/charts/engine/trading/types.d.cts +484 -9
  352. package/dist/charts/engine/trading/types.d.ts +484 -9
  353. package/dist/charts/engine/types.d.cts +82 -8
  354. package/dist/charts/engine/types.d.ts +82 -8
  355. package/dist/charts/index.cjs +1 -1
  356. package/dist/charts/index.d.cts +3 -2
  357. package/dist/charts/index.d.ts +3 -2
  358. package/dist/charts/index.js +30 -22
  359. package/dist/charts/react/charts.cjs +1 -1
  360. package/dist/charts/react/charts.cjs.map +1 -1
  361. package/dist/charts/react/charts.js +46 -34
  362. package/dist/charts/react/charts.js.map +1 -1
  363. package/dist/charts/react/graph.cjs +2 -0
  364. package/dist/charts/react/graph.cjs.map +1 -0
  365. package/dist/charts/react/graph.d.cts +213 -0
  366. package/dist/charts/react/graph.d.ts +213 -0
  367. package/dist/charts/react/graph.js +159 -0
  368. package/dist/charts/react/graph.js.map +1 -0
  369. package/dist/charts/react/shapes.cjs +1 -1
  370. package/dist/charts/react/shapes.cjs.map +1 -1
  371. package/dist/charts/react/shapes.d.cts +87 -4
  372. package/dist/charts/react/shapes.d.ts +87 -4
  373. package/dist/charts/react/shapes.js +55 -12
  374. package/dist/charts/react/shapes.js.map +1 -1
  375. package/dist/charts/react/trading.cjs +1 -1
  376. package/dist/charts/react/trading.cjs.map +1 -1
  377. package/dist/charts/react/trading.d.cts +53 -1
  378. package/dist/charts/react/trading.d.ts +53 -1
  379. package/dist/charts/react/trading.js +68 -37
  380. package/dist/charts/react/trading.js.map +1 -1
  381. package/dist/charts/react/types.d.cts +11 -0
  382. package/dist/charts/react/types.d.ts +11 -0
  383. package/dist/core/contracts.cjs +1 -1
  384. package/dist/core/contracts.cjs.map +1 -1
  385. package/dist/core/contracts.js +1 -1
  386. package/dist/core/contracts.js.map +1 -1
  387. package/dist/native/charts/src/canvas.cjs +1 -1
  388. package/dist/native/charts/src/canvas.js +3 -3
  389. package/dist/native/charts/src/engine/axis.cjs +1 -1
  390. package/dist/native/charts/src/engine/axis.cjs.map +1 -1
  391. package/dist/native/charts/src/engine/axis.js +42 -19
  392. package/dist/native/charts/src/engine/axis.js.map +1 -1
  393. package/dist/native/charts/src/engine/color.cjs +1 -1
  394. package/dist/native/charts/src/engine/color.cjs.map +1 -1
  395. package/dist/native/charts/src/engine/color.js +47 -5
  396. package/dist/native/charts/src/engine/color.js.map +1 -1
  397. package/dist/native/charts/src/engine/controller.cjs +2 -2
  398. package/dist/native/charts/src/engine/controller.cjs.map +1 -1
  399. package/dist/native/charts/src/engine/controller.js +300 -253
  400. package/dist/native/charts/src/engine/controller.js.map +1 -1
  401. package/dist/native/charts/src/engine/data.cjs +1 -1
  402. package/dist/native/charts/src/engine/data.cjs.map +1 -1
  403. package/dist/native/charts/src/engine/data.js +6 -4
  404. package/dist/native/charts/src/engine/data.js.map +1 -1
  405. package/dist/native/charts/src/engine/format.cjs +1 -1
  406. package/dist/native/charts/src/engine/format.cjs.map +1 -1
  407. package/dist/native/charts/src/engine/format.js +15 -2
  408. package/dist/native/charts/src/engine/format.js.map +1 -1
  409. package/dist/native/charts/src/engine/labels.cjs +1 -1
  410. package/dist/native/charts/src/engine/labels.cjs.map +1 -1
  411. package/dist/native/charts/src/engine/labels.js +28 -4
  412. package/dist/native/charts/src/engine/labels.js.map +1 -1
  413. package/dist/native/charts/src/engine/layout.cjs +1 -1
  414. package/dist/native/charts/src/engine/layout.cjs.map +1 -1
  415. package/dist/native/charts/src/engine/layout.js +11 -2
  416. package/dist/native/charts/src/engine/layout.js.map +1 -1
  417. package/dist/native/charts/src/engine/model.cjs +1 -1
  418. package/dist/native/charts/src/engine/model.cjs.map +1 -1
  419. package/dist/native/charts/src/engine/model.js +252 -171
  420. package/dist/native/charts/src/engine/model.js.map +1 -1
  421. package/dist/native/charts/src/engine/overlay.cjs.map +1 -1
  422. package/dist/native/charts/src/engine/overlay.js.map +1 -1
  423. package/dist/native/charts/src/engine/presets.cjs +2 -2
  424. package/dist/native/charts/src/engine/presets.cjs.map +1 -1
  425. package/dist/native/charts/src/engine/presets.js +104 -90
  426. package/dist/native/charts/src/engine/presets.js.map +1 -1
  427. package/dist/native/charts/src/engine/scene.cjs +1 -1
  428. package/dist/native/charts/src/engine/scene.cjs.map +1 -1
  429. package/dist/native/charts/src/engine/scene.js +341 -188
  430. package/dist/native/charts/src/engine/scene.js.map +1 -1
  431. package/dist/native/charts/src/engine/shapes/bullet.cjs +1 -1
  432. package/dist/native/charts/src/engine/shapes/bullet.cjs.map +1 -1
  433. package/dist/native/charts/src/engine/shapes/bullet.js +110 -110
  434. package/dist/native/charts/src/engine/shapes/bullet.js.map +1 -1
  435. package/dist/native/charts/src/engine/shapes/calendar.cjs +1 -1
  436. package/dist/native/charts/src/engine/shapes/calendar.cjs.map +1 -1
  437. package/dist/native/charts/src/engine/shapes/calendar.js +21 -16
  438. package/dist/native/charts/src/engine/shapes/calendar.js.map +1 -1
  439. package/dist/native/charts/src/engine/shapes/chord.cjs +2 -0
  440. package/dist/native/charts/src/engine/shapes/chord.cjs.map +1 -0
  441. package/dist/native/charts/src/engine/shapes/chord.js +414 -0
  442. package/dist/native/charts/src/engine/shapes/chord.js.map +1 -0
  443. package/dist/native/charts/src/engine/shapes/draw.cjs +1 -1
  444. package/dist/native/charts/src/engine/shapes/draw.cjs.map +1 -1
  445. package/dist/native/charts/src/engine/shapes/draw.js +47 -17
  446. package/dist/native/charts/src/engine/shapes/draw.js.map +1 -1
  447. package/dist/native/charts/src/engine/shapes/hit.cjs +1 -1
  448. package/dist/native/charts/src/engine/shapes/hit.cjs.map +1 -1
  449. package/dist/native/charts/src/engine/shapes/hit.js +73 -44
  450. package/dist/native/charts/src/engine/shapes/hit.js.map +1 -1
  451. package/dist/native/charts/src/engine/shapes/labels.cjs +1 -1
  452. package/dist/native/charts/src/engine/shapes/labels.cjs.map +1 -1
  453. package/dist/native/charts/src/engine/shapes/labels.js +12 -4
  454. package/dist/native/charts/src/engine/shapes/labels.js.map +1 -1
  455. package/dist/native/charts/src/engine/shapes/layout.cjs +2 -2
  456. package/dist/native/charts/src/engine/shapes/layout.cjs.map +1 -1
  457. package/dist/native/charts/src/engine/shapes/layout.js +117 -90
  458. package/dist/native/charts/src/engine/shapes/layout.js.map +1 -1
  459. package/dist/native/charts/src/engine/shapes/scene.cjs +1 -1
  460. package/dist/native/charts/src/engine/shapes/scene.cjs.map +1 -1
  461. package/dist/native/charts/src/engine/shapes/scene.js +62 -19
  462. package/dist/native/charts/src/engine/shapes/scene.js.map +1 -1
  463. package/dist/native/components/Chart/scene.cjs +1 -1
  464. package/dist/native/components/Chart/scene.cjs.map +1 -1
  465. package/dist/native/components/Chart/scene.js +140 -71
  466. package/dist/native/components/Chart/scene.js.map +1 -1
  467. package/dist/native/components/Charts/charts.cjs +1 -1
  468. package/dist/native/components/Charts/charts.cjs.map +1 -1
  469. package/dist/native/components/Charts/charts.js +54 -42
  470. package/dist/native/components/Charts/charts.js.map +1 -1
  471. package/dist/native/components/Charts/types.d.cts +11 -0
  472. package/dist/native/components/Charts/types.d.ts +11 -0
  473. package/dist/native/components/ShapeChart/ShapeChartBase.cjs +1 -1
  474. package/dist/native/components/ShapeChart/ShapeChartBase.cjs.map +1 -1
  475. package/dist/native/components/ShapeChart/ShapeChartBase.js +1 -0
  476. package/dist/native/components/ShapeChart/ShapeChartBase.js.map +1 -1
  477. package/dist/native/components/ShapeChart/charts.cjs +1 -1
  478. package/dist/native/components/ShapeChart/charts.cjs.map +1 -1
  479. package/dist/native/components/ShapeChart/charts.d.cts +6 -1
  480. package/dist/native/components/ShapeChart/charts.d.ts +6 -1
  481. package/dist/native/components/ShapeChart/charts.js +138 -96
  482. package/dist/native/components/ShapeChart/charts.js.map +1 -1
  483. package/dist/native/components/ShapeChart/draw.cjs +1 -1
  484. package/dist/native/components/ShapeChart/draw.cjs.map +1 -1
  485. package/dist/native/components/ShapeChart/draw.d.cts +1 -1
  486. package/dist/native/components/ShapeChart/draw.d.ts +1 -1
  487. package/dist/native/components/ShapeChart/draw.js +26 -17
  488. package/dist/native/components/ShapeChart/draw.js.map +1 -1
  489. package/dist/native/components/ShapeChart/geometry.cjs +1 -1
  490. package/dist/native/components/ShapeChart/geometry.cjs.map +1 -1
  491. package/dist/native/components/ShapeChart/geometry.js +138 -59
  492. package/dist/native/components/ShapeChart/geometry.js.map +1 -1
  493. package/dist/native/components/ShapeChart/index.cjs +1 -1
  494. package/dist/native/components/ShapeChart/index.d.cts +1 -1
  495. package/dist/native/components/ShapeChart/index.d.ts +1 -1
  496. package/dist/native/components/ShapeChart/index.js +2 -2
  497. package/dist/native/components/ShapeChart/recorder.cjs +1 -1
  498. package/dist/native/components/ShapeChart/recorder.cjs.map +1 -1
  499. package/dist/native/components/ShapeChart/recorder.d.cts +10 -1
  500. package/dist/native/components/ShapeChart/recorder.d.ts +10 -1
  501. package/dist/native/components/ShapeChart/recorder.js +19 -10
  502. package/dist/native/components/ShapeChart/recorder.js.map +1 -1
  503. package/dist/native/components/ShapeChart/types.d.cts +92 -7
  504. package/dist/native/components/ShapeChart/types.d.ts +92 -7
  505. package/dist/native/index.cjs +1 -1
  506. package/dist/native/index.js +2 -2
  507. package/dist/native/source/components/Chart/scene.tsx +158 -14
  508. package/dist/native/source/components/Charts/charts.tsx +30 -2
  509. package/dist/native/source/components/Charts/types.ts +11 -0
  510. package/dist/native/source/components/ShapeChart/ShapeChartBase.tsx +2 -0
  511. package/dist/native/source/components/ShapeChart/charts.tsx +91 -35
  512. package/dist/native/source/components/ShapeChart/draw.tsx +39 -8
  513. package/dist/native/source/components/ShapeChart/geometry.ts +189 -8
  514. package/dist/native/source/components/ShapeChart/index.ts +1 -0
  515. package/dist/native/source/components/ShapeChart/recorder.ts +20 -5
  516. package/dist/native/source/components/ShapeChart/types.ts +96 -5
  517. package/dist/native/source/manifest.ts +1 -0
  518. package/dist/taro/charts.d.ts +25 -5
  519. package/dist/taro/index.js +3900 -2836
  520. package/dist/taro/shape-charts.d.ts +96 -4
  521. package/dist/uni/AreaChart.vue.d.ts +5 -1
  522. package/dist/uni/Badge.vue.d.ts +1 -1
  523. package/dist/uni/BarChart.vue.d.ts +5 -1
  524. package/dist/uni/BoxPlotChart.vue.d.ts +8 -0
  525. package/dist/uni/BubbleChart.vue.d.ts +4 -0
  526. package/dist/uni/BulletChart.vue.d.ts +4 -0
  527. package/dist/uni/CalendarHeatmap.vue.d.ts +2 -0
  528. package/dist/uni/CandlestickChart.vue.d.ts +4 -0
  529. package/dist/uni/Chart.vue.d.ts +4 -0
  530. package/dist/uni/ChordChart.vue +93 -0
  531. package/dist/uni/ChordChart.vue.d.ts +136 -0
  532. package/dist/uni/DonutChart.vue.d.ts +4 -0
  533. package/dist/uni/FunnelChart.vue.d.ts +4 -0
  534. package/dist/uni/GanttChart.vue.d.ts +4 -0
  535. package/dist/uni/GaugeChart.vue.d.ts +4 -0
  536. package/dist/uni/HeatmapChart.vue.d.ts +8 -2
  537. package/dist/uni/HistogramChart.vue.d.ts +4 -0
  538. package/dist/uni/HorizontalBarChart.vue.d.ts +3 -1
  539. package/dist/uni/LineChart.vue.d.ts +4 -0
  540. package/dist/uni/MixedChart.vue.d.ts +4 -0
  541. package/dist/uni/PieChart.vue.d.ts +4 -0
  542. package/dist/uni/QuadrantChart.vue.d.ts +4 -0
  543. package/dist/uni/RadarChart.vue.d.ts +4 -0
  544. package/dist/uni/RadialBarChart.vue.d.ts +4 -0
  545. package/dist/uni/RangeAreaChart.vue.d.ts +4 -0
  546. package/dist/uni/SankeyChart.vue.d.ts +4 -0
  547. package/dist/uni/ScatterChart.vue.d.ts +4 -0
  548. package/dist/uni/Sparkline.vue.d.ts +4 -0
  549. package/dist/uni/SunburstChart.vue.d.ts +4 -0
  550. package/dist/uni/ToastProvider.vue.d.ts +1 -1
  551. package/dist/uni/TreemapChart.vue.d.ts +4 -0
  552. package/dist/uni/WaterfallChart.vue.d.ts +9 -0
  553. package/dist/uni/chart-canvas.d.ts +3 -0
  554. package/dist/uni/chart-canvas.js +4 -0
  555. package/dist/uni/chart-types.d.ts +28 -4
  556. package/dist/uni/chart-types.js +26 -2
  557. package/dist/uni/charts-canvas.js +1 -1
  558. package/dist/uni/index.d.ts +2 -1
  559. package/dist/uni/index.js +1 -0
  560. package/dist/uni/manifest.d.ts +7 -0
  561. package/dist/uni/manifest.js +10 -0
  562. package/dist/uni/named-chart-options.d.ts +9 -2
  563. package/dist/uni/named-chart-options.js +18 -1
  564. package/dist/uni/shape-chart-canvas.d.ts +3 -1
  565. package/dist/uni/shape-chart-canvas.js +15 -24
  566. package/dist/uni/shape-chart-types.d.ts +52 -2
  567. package/dist/uni/shape-chart-types.js +44 -0
  568. package/dist/vue/charts-global.d.ts +48 -0
  569. package/dist/vue/charts.d.ts +18 -0
  570. package/dist/vue/charts.js +56 -0
  571. package/dist/vue/charts.js.map +1 -0
  572. package/dist/vue/components/Chart/BoxPlotChart.vue.d.ts +8 -0
  573. package/dist/vue/components/Chart/BoxPlotChart.vue.js.map +1 -1
  574. package/dist/vue/components/Chart/BoxPlotChart.vue_vue_type_script_setup_true_lang.js +8 -2
  575. package/dist/vue/components/Chart/BoxPlotChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  576. package/dist/vue/components/Chart/ChordChart.vue.d.ts +153 -0
  577. package/dist/vue/components/Chart/ChordChart.vue.js +7 -0
  578. package/dist/vue/components/Chart/ChordChart.vue.js.map +1 -0
  579. package/dist/vue/components/Chart/ChordChart.vue_vue_type_script_setup_true_lang.js +81 -0
  580. package/dist/vue/components/Chart/ChordChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
  581. package/dist/vue/components/Chart/DependencyGraph.vue.d.ts +179 -0
  582. package/dist/vue/components/Chart/DependencyGraph.vue.js +7 -0
  583. package/dist/vue/components/Chart/DependencyGraph.vue.js.map +1 -0
  584. package/dist/vue/components/Chart/DependencyGraph.vue_vue_type_script_setup_true_lang.js +65 -0
  585. package/dist/vue/components/Chart/DependencyGraph.vue_vue_type_script_setup_true_lang.js.map +1 -0
  586. package/dist/vue/components/Chart/GanttChart.vue.d.ts +4 -0
  587. package/dist/vue/components/Chart/GanttChart.vue.js.map +1 -1
  588. package/dist/vue/components/Chart/GanttChart.vue_vue_type_script_setup_true_lang.js +4 -1
  589. package/dist/vue/components/Chart/GanttChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  590. package/dist/vue/components/Chart/GraphChart.vue.d.ts +184 -0
  591. package/dist/vue/components/Chart/GraphChart.vue.js +7 -0
  592. package/dist/vue/components/Chart/GraphChart.vue.js.map +1 -0
  593. package/dist/vue/components/Chart/GraphChart.vue_vue_type_script_setup_true_lang.js +62 -0
  594. package/dist/vue/components/Chart/GraphChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
  595. package/dist/vue/components/Chart/HeatmapChart.vue.d.ts +9 -5
  596. package/dist/vue/components/Chart/HeatmapChart.vue.js.map +1 -1
  597. package/dist/vue/components/Chart/HeatmapChart.vue_vue_type_script_setup_true_lang.js +3 -1
  598. package/dist/vue/components/Chart/HeatmapChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  599. package/dist/vue/components/Chart/OrderBookHeatmap.vue.d.ts +2 -0
  600. package/dist/vue/components/Chart/TimeAndSales.vue.d.ts +2 -0
  601. package/dist/vue/components/Chart/TradingChart.vue.d.ts +49 -1
  602. package/dist/vue/components/Chart/TradingChart.vue.js.map +1 -1
  603. package/dist/vue/components/Chart/TradingChart.vue_vue_type_script_setup_true_lang.js +31 -0
  604. package/dist/vue/components/Chart/TradingChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  605. package/dist/vue/components/Chart/TreeChart.vue.d.ts +172 -0
  606. package/dist/vue/components/Chart/TreeChart.vue.js +7 -0
  607. package/dist/vue/components/Chart/TreeChart.vue.js.map +1 -0
  608. package/dist/vue/components/Chart/TreeChart.vue_vue_type_script_setup_true_lang.js +56 -0
  609. package/dist/vue/components/Chart/TreeChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
  610. package/dist/vue/components/Chart/WaterfallChart.vue.d.ts +12 -1
  611. package/dist/vue/components/Chart/WaterfallChart.vue.js.map +1 -1
  612. package/dist/vue/components/Chart/WaterfallChart.vue_vue_type_script_setup_true_lang.js +8 -2
  613. package/dist/vue/components/Chart/WaterfallChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
  614. package/dist/vue/components/Chart/graph.d.ts +153 -0
  615. package/dist/vue/components/Chart/graph.js +135 -0
  616. package/dist/vue/components/Chart/graph.js.map +1 -0
  617. package/dist/vue/components/Chart/index.d.ts +5 -1
  618. package/dist/vue/components/Chart/index.js +5 -1
  619. package/dist/vue/components/Chart/orderbook.d.ts +5 -1
  620. package/dist/vue/components/Chart/orderbook.js +2 -0
  621. package/dist/vue/components/Chart/orderbook.js.map +1 -1
  622. package/dist/vue/components/Chart/trading.d.ts +24 -2
  623. package/dist/vue/components/Chart/trading.js +8 -0
  624. package/dist/vue/components/Chart/trading.js.map +1 -1
  625. package/dist/vue/components/Chart/types.d.ts +74 -2
  626. package/dist/vue/global.d.ts +2 -38
  627. package/dist/vue/groups/charts.js +10 -2
  628. package/dist/vue/groups/charts.js.map +1 -1
  629. package/dist/vue/index.js +6 -2
  630. package/dist/vue/internal/register.d.ts +7 -0
  631. package/dist/vue/internal/register.js +14 -0
  632. package/dist/vue/internal/register.js.map +1 -0
  633. package/dist/vue/plugin.d.ts +9 -4
  634. package/dist/vue/plugin.js +6 -11
  635. package/dist/vue/plugin.js.map +1 -1
  636. package/dist/weapp/charts/canvas.js +1687 -147
  637. package/dist/weapp/charts/core.js +1 -0
  638. package/dist/weapp/chord-chart/index.js +1 -0
  639. package/dist/weapp/chord-chart/index.json +1 -0
  640. package/dist/weapp/chord-chart/index.wxml +1 -0
  641. package/dist/weapp/chord-chart/index.wxss +1 -0
  642. package/dist/weapp/controls.js +92 -32
  643. package/dist/weapp/types.d.ts +87 -4
  644. package/dist/web-components/components/chart/charts.d.ts +4 -2
  645. package/dist/web-components/components/chart/charts.js +8 -1
  646. package/dist/web-components/components/chart/charts.js.map +1 -1
  647. package/dist/web-components/components/chart/extended.d.ts +17 -7
  648. package/dist/web-components/components/chart/extended.js +23 -9
  649. package/dist/web-components/components/chart/extended.js.map +1 -1
  650. package/dist/web-components/components/chart/shapes-extended.d.ts +37 -1
  651. package/dist/web-components/components/chart/shapes-extended.js +27 -1
  652. package/dist/web-components/components/chart/shapes-extended.js.map +1 -1
  653. package/dist/web-components/components/graph/graph.d.ts +154 -0
  654. package/dist/web-components/components/graph/graph.js +149 -0
  655. package/dist/web-components/components/graph/graph.js.map +1 -0
  656. package/dist/web-components/components/trading-chart/trading-chart.d.ts +49 -2
  657. package/dist/web-components/components/trading-chart/trading-chart.js +62 -0
  658. package/dist/web-components/components/trading-chart/trading-chart.js.map +1 -1
  659. package/dist/web-components/elements/chart.d.ts +1 -1
  660. package/dist/web-components/elements/chart.js +6 -5
  661. package/dist/web-components/elements/chart.js.map +1 -1
  662. package/dist/web-components/elements/graph.d.ts +2 -0
  663. package/dist/web-components/elements/graph.js +12 -0
  664. package/dist/web-components/elements/graph.js.map +1 -0
  665. package/dist/web-components/html-custom-data.json +273 -4
  666. package/dist/web-components/types/react.d.ts +63 -4
  667. package/dist/web-components/types/solid.d.ts +55 -8
  668. package/dist/web-components/types/svelte.d.ts +55 -8
  669. package/dist/web-components/types/vue.d.ts +55 -4
  670. package/package.json +16 -1
@@ -6,8 +6,34 @@ export type ChartRendererKind = "webgpu" | "webgl2" | "webgl" | "canvas2d";
6
6
  * acceleration). A forced backend falls back along the same chain.
7
7
  */
8
8
  export type ChartRendererPreference = "auto" | ChartRendererKind;
9
- /** Scale of an axis */
10
- export type ChartAxisType = "linear" | "time" | "category";
9
+ /**
10
+ * Scale of an axis; `log` (base 10, positive values only) applies to the
11
+ * value axes (`yAxis`, `yAxis2`)
12
+ */
13
+ export type ChartAxisType = "linear" | "log" | "time" | "category";
14
+ /**
15
+ * Built-in color ramps of heatmaps, theme-aware (light and dark):
16
+ * `sequential` goes from a tint of the surface to a deep (light theme) or
17
+ * bright (dark theme) series color; `diverging` from the danger color
18
+ * through a neutral middle to the series color
19
+ */
20
+ export type ChartColorScheme = "sequential" | "diverging";
21
+ /** An extra row of the default tooltip of a point */
22
+ export interface ChartTooltipDetail {
23
+ /** Name (left column) */
24
+ name: string;
25
+ /** Value (right column) */
26
+ value: string;
27
+ }
28
+ /** Lines joining the end of every bar to the start of the next one */
29
+ export interface ChartConnectorOptions {
30
+ /** Line color (any CSS color) @default the secondary text color */
31
+ color?: string;
32
+ /** Dash pattern in CSS pixels; `[]` draws solid lines @default [3, 3] */
33
+ dash?: readonly number[];
34
+ /** Line width in CSS pixels @default 1 */
35
+ width?: number;
36
+ }
11
37
  /** How a series is drawn */
12
38
  export type ChartSeriesType = "line" | "area" | "bar" | "scatter" | "candlestick" | "heatmap" | "boxplot";
13
39
  /** Direction of the value axis: `horizontal` puts the x (category) axis on the left */
@@ -57,6 +83,8 @@ export interface ChartPointDatum {
57
83
  * a value shown in the tooltip
58
84
  */
59
85
  value?: number | null;
86
+ /** Extra rows of the default tooltip of this point, after its values */
87
+ details?: readonly ChartTooltipDetail[];
60
88
  }
61
89
  /** Column-oriented data: the fastest form for large data sets (typed arrays are used as is) */
62
90
  export interface ChartColumnData {
@@ -136,12 +164,19 @@ export interface ChartSeries {
136
164
  /** Candlestick: color of the falling candles; `--danger-color` by default */
137
165
  downColor?: string;
138
166
  /**
139
- * Heatmap: colors from the lowest to the highest value (two or more)
140
- * @default a ramp from the background to the series color
167
+ * Heatmap: colors from the lowest to the highest value (two or more,
168
+ * interpolated in OKLab) or a built-in theme-aware scheme
169
+ * @default "sequential"
141
170
  */
142
- colorScale?: readonly string[];
171
+ colorScale?: readonly string[] | ChartColorScheme;
143
172
  /** Heatmap: values mapped to the ends of `colorScale`; the data range by default */
144
173
  valueRange?: readonly [number, number];
174
+ /**
175
+ * Heatmap: value at the middle of the color scale (diverging data such as
176
+ * correlations or changes); each half of the ramp covers one side
177
+ * @default 0 for `diverging` ramps spanning it, else the middle of the range
178
+ */
179
+ colorMidpoint?: number;
145
180
  /** Bar / heatmap: corner radius in CSS pixels (bars: 3, heatmap cells: 2) */
146
181
  radius?: number;
147
182
  /** Formats the values of this series in the tooltip (the y axis format by default) */
@@ -161,6 +196,28 @@ export interface ChartSeries {
161
196
  barWidth?: number;
162
197
  /** Scatter: name of the `value` of the points in the tooltip (bubble charts) */
163
198
  valueName?: string;
199
+ /**
200
+ * `false` leaves the series out of hit tests and tooltips (decorations,
201
+ * overlays such as the progress of Gantt tasks)
202
+ * @default true
203
+ */
204
+ tooltip?: boolean;
205
+ /**
206
+ * Box plot: outliers drawn as rings of the series color or as filled dots
207
+ * @default "hollow"
208
+ */
209
+ outlierShape?: "hollow" | "filled";
210
+ /**
211
+ * Box plot: diameter of the outliers in CSS pixels
212
+ * @default 7
213
+ */
214
+ outlierSize?: number;
215
+ /**
216
+ * Bars: thin lines from the end of every bar to the next bar (waterfall
217
+ * charts); `true` uses dashed lines of the secondary text color
218
+ * @default false
219
+ */
220
+ connector?: boolean | ChartConnectorOptions;
164
221
  }
165
222
  /** Options of an axis */
166
223
  export interface ChartAxisOptions {
@@ -301,10 +358,13 @@ export interface ChartInteractionOptions {
301
358
  /** Tooltip options */
302
359
  export interface ChartTooltipOptions {
303
360
  /**
304
- * `nearest` shows the closest point, `axis` all the series at the closest x
305
- * @default "axis" ("nearest" when every series is a scatter)
361
+ * `nearest` shows the closest point, `axis` all the series at the closest
362
+ * x, `item` only the shape under the pointer (bar, box, cell or dot;
363
+ * nothing over empty space)
364
+ * @default "axis" ("nearest" when every series is a scatter, "item" for
365
+ * range bars on a time axis such as Gantt charts)
306
366
  */
307
- mode?: "nearest" | "axis";
367
+ mode?: "nearest" | "axis" | "item";
308
368
  /** Renders the tooltip content (a string is set as text) */
309
369
  render?: (event: ChartHoverEvent) => string | Node | null;
310
370
  /**
@@ -376,6 +436,18 @@ export interface ChartLabels {
376
436
  chart: string;
377
437
  /** Accessible name of a chart; `{series}` is the list of the series names @default "Chart: {series}" */
378
438
  chartOf: string;
439
+ /** Start of a range bar on a time axis (Gantt tasks) @default "Start" */
440
+ start: string;
441
+ /** End of a range bar on a time axis @default "End" */
442
+ end: string;
443
+ /** Length of a range bar on a time axis (`4 weeks`, `26 days`) @default "Duration" */
444
+ duration: string;
445
+ /** Done share of a Gantt task @default "Progress" */
446
+ progress: string;
447
+ /** Tasks a Gantt task waits for @default "Depends on" */
448
+ dependencies: string;
449
+ /** A hovered box plot outlier @default "Outlier" */
450
+ outlier: string;
379
451
  }
380
452
  /** Legend options */
381
453
  export interface ChartLegendOptions {
@@ -480,6 +552,8 @@ export interface ChartHoverItem {
480
552
  q3?: number;
481
553
  /** Box plot: number of outliers */
482
554
  outliers?: number;
555
+ /** Box plot: value of the hovered outlier (the pointer is on an outlier) */
556
+ outlier?: number;
483
557
  }
484
558
  /** Hover / click payload */
485
559
  export interface ChartHoverEvent {
@@ -6,8 +6,34 @@ export type ChartRendererKind = "webgpu" | "webgl2" | "webgl" | "canvas2d";
6
6
  * acceleration). A forced backend falls back along the same chain.
7
7
  */
8
8
  export type ChartRendererPreference = "auto" | ChartRendererKind;
9
- /** Scale of an axis */
10
- export type ChartAxisType = "linear" | "time" | "category";
9
+ /**
10
+ * Scale of an axis; `log` (base 10, positive values only) applies to the
11
+ * value axes (`yAxis`, `yAxis2`)
12
+ */
13
+ export type ChartAxisType = "linear" | "log" | "time" | "category";
14
+ /**
15
+ * Built-in color ramps of heatmaps, theme-aware (light and dark):
16
+ * `sequential` goes from a tint of the surface to a deep (light theme) or
17
+ * bright (dark theme) series color; `diverging` from the danger color
18
+ * through a neutral middle to the series color
19
+ */
20
+ export type ChartColorScheme = "sequential" | "diverging";
21
+ /** An extra row of the default tooltip of a point */
22
+ export interface ChartTooltipDetail {
23
+ /** Name (left column) */
24
+ name: string;
25
+ /** Value (right column) */
26
+ value: string;
27
+ }
28
+ /** Lines joining the end of every bar to the start of the next one */
29
+ export interface ChartConnectorOptions {
30
+ /** Line color (any CSS color) @default the secondary text color */
31
+ color?: string;
32
+ /** Dash pattern in CSS pixels; `[]` draws solid lines @default [3, 3] */
33
+ dash?: readonly number[];
34
+ /** Line width in CSS pixels @default 1 */
35
+ width?: number;
36
+ }
11
37
  /** How a series is drawn */
12
38
  export type ChartSeriesType = "line" | "area" | "bar" | "scatter" | "candlestick" | "heatmap" | "boxplot";
13
39
  /** Direction of the value axis: `horizontal` puts the x (category) axis on the left */
@@ -57,6 +83,8 @@ export interface ChartPointDatum {
57
83
  * a value shown in the tooltip
58
84
  */
59
85
  value?: number | null;
86
+ /** Extra rows of the default tooltip of this point, after its values */
87
+ details?: readonly ChartTooltipDetail[];
60
88
  }
61
89
  /** Column-oriented data: the fastest form for large data sets (typed arrays are used as is) */
62
90
  export interface ChartColumnData {
@@ -136,12 +164,19 @@ export interface ChartSeries {
136
164
  /** Candlestick: color of the falling candles; `--danger-color` by default */
137
165
  downColor?: string;
138
166
  /**
139
- * Heatmap: colors from the lowest to the highest value (two or more)
140
- * @default a ramp from the background to the series color
167
+ * Heatmap: colors from the lowest to the highest value (two or more,
168
+ * interpolated in OKLab) or a built-in theme-aware scheme
169
+ * @default "sequential"
141
170
  */
142
- colorScale?: readonly string[];
171
+ colorScale?: readonly string[] | ChartColorScheme;
143
172
  /** Heatmap: values mapped to the ends of `colorScale`; the data range by default */
144
173
  valueRange?: readonly [number, number];
174
+ /**
175
+ * Heatmap: value at the middle of the color scale (diverging data such as
176
+ * correlations or changes); each half of the ramp covers one side
177
+ * @default 0 for `diverging` ramps spanning it, else the middle of the range
178
+ */
179
+ colorMidpoint?: number;
145
180
  /** Bar / heatmap: corner radius in CSS pixels (bars: 3, heatmap cells: 2) */
146
181
  radius?: number;
147
182
  /** Formats the values of this series in the tooltip (the y axis format by default) */
@@ -161,6 +196,28 @@ export interface ChartSeries {
161
196
  barWidth?: number;
162
197
  /** Scatter: name of the `value` of the points in the tooltip (bubble charts) */
163
198
  valueName?: string;
199
+ /**
200
+ * `false` leaves the series out of hit tests and tooltips (decorations,
201
+ * overlays such as the progress of Gantt tasks)
202
+ * @default true
203
+ */
204
+ tooltip?: boolean;
205
+ /**
206
+ * Box plot: outliers drawn as rings of the series color or as filled dots
207
+ * @default "hollow"
208
+ */
209
+ outlierShape?: "hollow" | "filled";
210
+ /**
211
+ * Box plot: diameter of the outliers in CSS pixels
212
+ * @default 7
213
+ */
214
+ outlierSize?: number;
215
+ /**
216
+ * Bars: thin lines from the end of every bar to the next bar (waterfall
217
+ * charts); `true` uses dashed lines of the secondary text color
218
+ * @default false
219
+ */
220
+ connector?: boolean | ChartConnectorOptions;
164
221
  }
165
222
  /** Options of an axis */
166
223
  export interface ChartAxisOptions {
@@ -301,10 +358,13 @@ export interface ChartInteractionOptions {
301
358
  /** Tooltip options */
302
359
  export interface ChartTooltipOptions {
303
360
  /**
304
- * `nearest` shows the closest point, `axis` all the series at the closest x
305
- * @default "axis" ("nearest" when every series is a scatter)
361
+ * `nearest` shows the closest point, `axis` all the series at the closest
362
+ * x, `item` only the shape under the pointer (bar, box, cell or dot;
363
+ * nothing over empty space)
364
+ * @default "axis" ("nearest" when every series is a scatter, "item" for
365
+ * range bars on a time axis such as Gantt charts)
306
366
  */
307
- mode?: "nearest" | "axis";
367
+ mode?: "nearest" | "axis" | "item";
308
368
  /** Renders the tooltip content (a string is set as text) */
309
369
  render?: (event: ChartHoverEvent) => string | Node | null;
310
370
  /**
@@ -376,6 +436,18 @@ export interface ChartLabels {
376
436
  chart: string;
377
437
  /** Accessible name of a chart; `{series}` is the list of the series names @default "Chart: {series}" */
378
438
  chartOf: string;
439
+ /** Start of a range bar on a time axis (Gantt tasks) @default "Start" */
440
+ start: string;
441
+ /** End of a range bar on a time axis @default "End" */
442
+ end: string;
443
+ /** Length of a range bar on a time axis (`4 weeks`, `26 days`) @default "Duration" */
444
+ duration: string;
445
+ /** Done share of a Gantt task @default "Progress" */
446
+ progress: string;
447
+ /** Tasks a Gantt task waits for @default "Depends on" */
448
+ dependencies: string;
449
+ /** A hovered box plot outlier @default "Outlier" */
450
+ outlier: string;
379
451
  }
380
452
  /** Legend options */
381
453
  export interface ChartLegendOptions {
@@ -480,6 +552,8 @@ export interface ChartHoverItem {
480
552
  q3?: number;
481
553
  /** Box plot: number of outliers */
482
554
  outliers?: number;
555
+ /** Box plot: value of the hovered outlier (the pointer is on an outlier) */
556
+ outlier?: number;
483
557
  }
484
558
  /** Hover / click payload */
485
559
  export interface ChartHoverEvent {
@@ -1 +1 @@
1
- "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./engine/format.cjs"),t=require("./engine/chart.cjs"),n=require("./react/Chart.cjs"),r=require("./engine/presets.cjs"),i=require("./react/charts.cjs"),a=require("./engine/shapes/chart.cjs"),o=require("./react/shapes.cjs"),s=require("./engine/trading/indicators.cjs"),c=require("./engine/trading/chart.cjs"),l=require("./react/trading.cjs"),u=require("./engine/orderbook/book.cjs"),d=require("./engine/orderbook/depth.cjs"),f=require("./engine/orderbook/heatmap.cjs"),p=require("./engine/orderbook/ladder.cjs"),m=require("./engine/orderbook/tape.cjs"),h=require("./react/orderbook.cjs"),g=require("./engine/three-d/chart.cjs"),_=require("./react/three-d.cjs"),v=require("./engine/shapes/canvas.cjs"),y=require("./engine/controller.cjs"),b=require("./engine/canvas.cjs");require("./core.cjs"),exports.AreaChart=i.AreaChart,exports.Bar3DChart=_.Bar3DChart,exports.BarChart=i.BarChart,exports.BoxPlotChart=i.BoxPlotChart,exports.BubbleChart=i.BubbleChart,exports.BulletChart=o.BulletChart,exports.CalendarHeatmap=o.CalendarHeatmap,exports.CandlestickChart=i.CandlestickChart,exports.Chart=n.Chart,exports.DepthChart=h.DepthChart,exports.DonutChart=o.DonutChart,exports.FunnelChart=o.FunnelChart,exports.GanttChart=i.GanttChart,exports.GaugeChart=o.GaugeChart,exports.HeatmapChart=i.HeatmapChart,exports.HistogramChart=i.HistogramChart,exports.HorizontalBarChart=i.HorizontalBarChart,exports.Line3DChart=_.Line3DChart,exports.LineChart=i.LineChart,exports.MixedChart=i.MixedChart,exports.OrderBook=h.OrderBook,exports.OrderBookHeatmap=h.OrderBookHeatmap,exports.PieChart=o.PieChart,exports.QuadrantChart=i.QuadrantChart,exports.RadarChart=o.RadarChart,exports.RadialBarChart=o.RadialBarChart,exports.RangeAreaChart=i.RangeAreaChart,exports.SankeyChart=o.SankeyChart,exports.Scatter3DChart=_.Scatter3DChart,exports.ScatterChart=i.ScatterChart,exports.Sparkline=i.Sparkline,exports.SunburstChart=o.SunburstChart,exports.Surface3DChart=_.Surface3DChart,exports.TimeAndSales=h.TimeAndSales,exports.TradingChart=l.TradingChart,exports.TreemapChart=o.TreemapChart,exports.WaterfallChart=i.WaterfallChart,exports.areaSeries=r.areaSeries,exports.atr=s.atr,exports.barSeries=r.barSeries,exports.binValues=r.binValues,exports.bollinger=s.bollinger,exports.boxplotData=r.boxplotData,exports.boxplotSeries=r.boxplotSeries,exports.boxplotStats=r.boxplotStats,exports.bubbleSeries=r.bubbleSeries,exports.candlestickSeries=r.candlestickSeries,exports.createCanvasChart=b.createCanvasChart,exports.createCanvasShapeChart=v.createCanvasShapeChart,exports.createChart=t.createChart,exports.createChart3D=g.createChart3D,exports.createChartController=y.createChartController,exports.createDepthChart=d.createDepthChart,exports.createOrderBook=p.createOrderBook,exports.createOrderBookHeatmap=f.createOrderBookHeatmap,exports.createOrderBookStore=u.createOrderBookStore,exports.createShapeChart=a.createShapeChart,exports.createTimeAndSales=m.createTimeAndSales,exports.createTradingChart=c.createTradingChart,exports.ema=s.ema,exports.formatCompact=e.formatCompact,exports.formatValue=e.formatValue,exports.ganttSeries=r.ganttSeries,exports.heatmapChartOptions=r.heatmapChartOptions,exports.heikinAshi=s.heikinAshi,exports.histogramSeries=r.histogramSeries,exports.kdj=s.kdj,exports.lineSeries=r.lineSeries,exports.macd=s.macd,exports.quadrantCenter=r.quadrantCenter,exports.quadrantChartOptions=r.quadrantChartOptions,exports.quadrantOf=r.quadrantOf,exports.quantiles=r.quantiles,exports.rangeAreaSeries=r.rangeAreaSeries,exports.resampleBars=s.resampleBars,exports.rsi=s.rsi,exports.scatterSeries=r.scatterSeries,exports.scenePrimitives=y.scenePrimitives,exports.sma=s.sma,exports.sparklineOptions=r.sparklineOptions,exports.vwap=s.vwap,exports.waterfallSeries=r.waterfallSeries,exports.withSeriesType=r.withSeriesType,exports.wma=s.wma;
1
+ "use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./engine/format.cjs"),t=require("./engine/defaults.cjs"),n=require("./engine/chart.cjs"),r=require("./react/Chart.cjs"),i=require("./engine/presets.cjs"),a=require("./react/charts.cjs"),o=require("./engine/shapes/chart.cjs"),s=require("./react/shapes.cjs"),c=require("./engine/trading/indicators.cjs"),l=require("./engine/trading/chart.cjs"),u=require("./react/trading.cjs"),d=require("./engine/orderbook/book.cjs"),f=require("./engine/orderbook/depth.cjs"),p=require("./engine/orderbook/heatmap.cjs"),m=require("./engine/orderbook/ladder.cjs"),h=require("./engine/orderbook/tape.cjs"),g=require("./react/orderbook.cjs"),_=require("./engine/three-d/chart.cjs"),v=require("./react/three-d.cjs"),y=require("./engine/graph/force.cjs"),b=require("./engine/graph/circular.cjs"),x=require("./engine/graph/dag.cjs"),S=require("./engine/graph/tree.cjs"),C=require("./engine/graph/chart.cjs"),w=require("./react/graph.cjs"),T=require("./engine/shapes/canvas.cjs"),E=require("./engine/controller.cjs"),D=require("./engine/canvas.cjs"),O=require("./engine/trading/sync.cjs");require("./core.cjs"),exports.AreaChart=a.AreaChart,exports.Bar3DChart=v.Bar3DChart,exports.BarChart=a.BarChart,exports.BoxPlotChart=a.BoxPlotChart,exports.BubbleChart=a.BubbleChart,exports.BulletChart=s.BulletChart,exports.CalendarHeatmap=s.CalendarHeatmap,exports.CandlestickChart=a.CandlestickChart,exports.Chart=r.Chart,exports.ChordChart=s.ChordChart,exports.DependencyGraph=w.DependencyGraph,exports.DepthChart=g.DepthChart,exports.DonutChart=s.DonutChart,exports.FunnelChart=s.FunnelChart,exports.GanttChart=a.GanttChart,exports.GaugeChart=s.GaugeChart,exports.GraphChart=w.GraphChart,exports.HeatmapChart=a.HeatmapChart,exports.HistogramChart=a.HistogramChart,exports.HorizontalBarChart=a.HorizontalBarChart,exports.Line3DChart=v.Line3DChart,exports.LineChart=a.LineChart,exports.MixedChart=a.MixedChart,exports.OrderBook=g.OrderBook,exports.OrderBookHeatmap=g.OrderBookHeatmap,exports.PieChart=s.PieChart,exports.QuadrantChart=a.QuadrantChart,exports.RadarChart=s.RadarChart,exports.RadialBarChart=s.RadialBarChart,exports.RangeAreaChart=a.RangeAreaChart,exports.SankeyChart=s.SankeyChart,exports.Scatter3DChart=v.Scatter3DChart,exports.ScatterChart=a.ScatterChart,exports.Sparkline=a.Sparkline,exports.SunburstChart=s.SunburstChart,exports.Surface3DChart=v.Surface3DChart,exports.TimeAndSales=g.TimeAndSales,exports.TradingChart=u.TradingChart,exports.TreeChart=w.TreeChart,exports.TreemapChart=s.TreemapChart,exports.WaterfallChart=a.WaterfallChart,exports.arcLayout=b.arcLayout,exports.areaSeries=i.areaSeries,exports.atr=c.atr,exports.barSeries=i.barSeries,exports.binValues=i.binValues,exports.bollinger=c.bollinger,exports.boxplotData=i.boxplotData,exports.boxplotSeries=i.boxplotSeries,exports.boxplotStats=i.boxplotStats,exports.bubbleSeries=i.bubbleSeries,exports.candlestickSeries=i.candlestickSeries,exports.cci=c.cci,exports.circularLayout=b.circularLayout,exports.countCrossings=x.countCrossings,exports.createCanvasChart=D.createCanvasChart,exports.createCanvasShapeChart=T.createCanvasShapeChart,exports.createChart=n.createChart,exports.createChart3D=_.createChart3D,exports.createChartController=E.createChartController,exports.createDepthChart=f.createDepthChart,exports.createForceSimulation=y.createForceSimulation,exports.createGraphChart=C.createGraphChart,exports.createOrderBook=m.createOrderBook,exports.createOrderBookHeatmap=p.createOrderBookHeatmap,exports.createOrderBookStore=d.createOrderBookStore,exports.createShapeChart=o.createShapeChart,exports.createTimeAndSales=h.createTimeAndSales,exports.createTradingChart=l.createTradingChart,exports.criticalPath=x.criticalPath,exports.dagLayout=x.dagLayout,exports.dmi=c.dmi,exports.donchian=c.donchian,exports.ema=c.ema,exports.forceLayout=y.forceLayout,exports.formatCompact=e.formatCompact,exports.formatDuration=e.formatDuration,exports.formatValue=e.formatValue,exports.ganttSeries=i.ganttSeries,exports.getDefaultChartRenderer=t.getDefaultChartRenderer,exports.heatmapChartOptions=i.heatmapChartOptions,exports.heikinAshi=c.heikinAshi,exports.histogramSeries=i.histogramSeries,exports.ichimoku=c.ichimoku,exports.kdj=c.kdj,exports.keltner=c.keltner,exports.lineSeries=i.lineSeries,exports.macd=c.macd,exports.mfi=c.mfi,exports.obv=c.obv,exports.psar=c.psar,exports.quadrantCenter=i.quadrantCenter,exports.quadrantChartOptions=i.quadrantChartOptions,exports.quadrantOf=i.quadrantOf,exports.quantiles=i.quantiles,exports.rangeAreaSeries=i.rangeAreaSeries,exports.resampleBars=c.resampleBars,exports.rsi=c.rsi,exports.scatterSeries=i.scatterSeries,exports.scenePrimitives=E.scenePrimitives,exports.setDefaultChartRenderer=t.setDefaultChartRenderer,exports.sma=c.sma,exports.sparklineOptions=i.sparklineOptions,exports.stochRsi=c.stochRsi,exports.subscribeDefaultChartRenderer=t.subscribeDefaultChartRenderer,exports.supertrend=c.supertrend,exports.syncCharts=O.syncCharts,exports.treeLayout=S.treeLayout,exports.volumeProfile=c.volumeProfile,exports.vwap=c.vwap,exports.waterfallSeries=i.waterfallSeries,exports.williamsR=c.williamsR,exports.withSeriesType=i.withSeriesType,exports.wma=c.wma;
@@ -1,9 +1,10 @@
1
1
  export { Chart } from './react/Chart.cjs';
2
2
  export { AreaChart, BarChart, BoxPlotChart, BubbleChart, CandlestickChart, GanttChart, HeatmapChart, HistogramChart, HorizontalBarChart, LineChart, MixedChart, QuadrantChart, RangeAreaChart, ScatterChart, Sparkline, WaterfallChart, } from './react/charts.cjs';
3
- export { BulletChart, CalendarHeatmap, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.cjs';
3
+ export { BulletChart, CalendarHeatmap, ChordChart, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.cjs';
4
4
  export type { AreaChartProps, BarChartProps, BoxPlotChartProps, BubbleChartProps, CandlestickChartProps, ChartCommonProps, ChartHandle, ChartProps, GanttChartProps, HeatmapChartProps, HistogramChartProps, HorizontalBarChartProps, LineChartProps, MixedChartProps, QuadrantChartProps, QuadrantDropTarget, RangeAreaChartProps, ScatterChartProps, SparklineProps, WaterfallChartProps, } from './react/types.cjs';
5
- export type { BulletChartProps, CalendarHeatmapProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.cjs';
5
+ export type { BulletChartProps, CalendarHeatmapProps, ChordChartProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.cjs';
6
6
  export * from './react/trading.cjs';
7
7
  export * from './react/orderbook.cjs';
8
8
  export * from './react/three-d.cjs';
9
+ export * from './react/graph.cjs';
9
10
  export * from './core.cjs';
@@ -1,9 +1,10 @@
1
1
  export { Chart } from './react/Chart.js';
2
2
  export { AreaChart, BarChart, BoxPlotChart, BubbleChart, CandlestickChart, GanttChart, HeatmapChart, HistogramChart, HorizontalBarChart, LineChart, MixedChart, QuadrantChart, RangeAreaChart, ScatterChart, Sparkline, WaterfallChart, } from './react/charts.js';
3
- export { BulletChart, CalendarHeatmap, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.js';
3
+ export { BulletChart, CalendarHeatmap, ChordChart, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.js';
4
4
  export type { AreaChartProps, BarChartProps, BoxPlotChartProps, BubbleChartProps, CandlestickChartProps, ChartCommonProps, ChartHandle, ChartProps, GanttChartProps, HeatmapChartProps, HistogramChartProps, HorizontalBarChartProps, LineChartProps, MixedChartProps, QuadrantChartProps, QuadrantDropTarget, RangeAreaChartProps, ScatterChartProps, SparklineProps, WaterfallChartProps, } from './react/types.js';
5
- export type { BulletChartProps, CalendarHeatmapProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.js';
5
+ export type { BulletChartProps, CalendarHeatmapProps, ChordChartProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.js';
6
6
  export * from './react/trading.js';
7
7
  export * from './react/orderbook.js';
8
8
  export * from './react/three-d.js';
9
+ export * from './react/graph.js';
9
10
  export * from './core.js';
@@ -1,24 +1,32 @@
1
1
  "use client";
2
- import { formatCompact as e, formatValue as t } from "./engine/format.js";
3
- import { createChart as n } from "./engine/chart.js";
4
- import { Chart as r } from "./react/Chart.js";
5
- import { areaSeries as i, barSeries as a, binValues as o, boxplotData as s, boxplotSeries as c, boxplotStats as l, bubbleSeries as u, candlestickSeries as d, ganttSeries as f, heatmapChartOptions as p, histogramSeries as m, lineSeries as h, quadrantCenter as g, quadrantChartOptions as _, quadrantOf as v, quantiles as y, rangeAreaSeries as b, scatterSeries as x, sparklineOptions as S, waterfallSeries as C, withSeriesType as w } from "./engine/presets.js";
6
- import { AreaChart as T, BarChart as E, BoxPlotChart as D, BubbleChart as O, CandlestickChart as k, GanttChart as A, HeatmapChart as j, HistogramChart as M, HorizontalBarChart as N, LineChart as P, MixedChart as F, QuadrantChart as I, RangeAreaChart as L, ScatterChart as R, Sparkline as z, WaterfallChart as B } from "./react/charts.js";
7
- import { createShapeChart as V } from "./engine/shapes/chart.js";
8
- import { BulletChart as H, CalendarHeatmap as U, DonutChart as W, FunnelChart as G, GaugeChart as K, PieChart as q, RadarChart as J, RadialBarChart as Y, SankeyChart as X, SunburstChart as Z, TreemapChart as Q } from "./react/shapes.js";
9
- import { atr as $, bollinger as ee, ema as te, heikinAshi as ne, kdj as re, macd as ie, resampleBars as ae, rsi as oe, sma as se, vwap as ce, wma as le } from "./engine/trading/indicators.js";
10
- import { createTradingChart as ue } from "./engine/trading/chart.js";
11
- import { TradingChart as de } from "./react/trading.js";
12
- import { createOrderBookStore as fe } from "./engine/orderbook/book.js";
13
- import { createDepthChart as pe } from "./engine/orderbook/depth.js";
14
- import { createOrderBookHeatmap as me } from "./engine/orderbook/heatmap.js";
15
- import { createOrderBook as he } from "./engine/orderbook/ladder.js";
16
- import { createTimeAndSales as ge } from "./engine/orderbook/tape.js";
17
- import { DepthChart as _e, OrderBook as ve, OrderBookHeatmap as ye, TimeAndSales as be } from "./react/orderbook.js";
18
- import { createChart3D as xe } from "./engine/three-d/chart.js";
19
- import { Bar3DChart as Se, Line3DChart as Ce, Scatter3DChart as we, Surface3DChart as Te } from "./react/three-d.js";
20
- import { createCanvasShapeChart as Ee } from "./engine/shapes/canvas.js";
21
- import { createChartController as De, scenePrimitives as Oe } from "./engine/controller.js";
22
- import { createCanvasChart as ke } from "./engine/canvas.js";
2
+ import { formatCompact as e, formatDuration as t, formatValue as n } from "./engine/format.js";
3
+ import { getDefaultChartRenderer as r, setDefaultChartRenderer as i, subscribeDefaultChartRenderer as a } from "./engine/defaults.js";
4
+ import { createChart as o } from "./engine/chart.js";
5
+ import { Chart as s } from "./react/Chart.js";
6
+ import { areaSeries as c, barSeries as l, binValues as u, boxplotData as d, boxplotSeries as f, boxplotStats as p, bubbleSeries as m, candlestickSeries as h, ganttSeries as g, heatmapChartOptions as _, histogramSeries as v, lineSeries as y, quadrantCenter as b, quadrantChartOptions as x, quadrantOf as S, quantiles as C, rangeAreaSeries as w, scatterSeries as T, sparklineOptions as E, waterfallSeries as D, withSeriesType as O } from "./engine/presets.js";
7
+ import { AreaChart as k, BarChart as A, BoxPlotChart as j, BubbleChart as M, CandlestickChart as N, GanttChart as P, HeatmapChart as F, HistogramChart as I, HorizontalBarChart as L, LineChart as R, MixedChart as z, QuadrantChart as B, RangeAreaChart as V, ScatterChart as H, Sparkline as U, WaterfallChart as W } from "./react/charts.js";
8
+ import { createShapeChart as G } from "./engine/shapes/chart.js";
9
+ import { BulletChart as K, CalendarHeatmap as q, ChordChart as J, DonutChart as Y, FunnelChart as X, GaugeChart as Z, PieChart as Q, RadarChart as $, RadialBarChart as ee, SankeyChart as te, SunburstChart as ne, TreemapChart as re } from "./react/shapes.js";
10
+ import { atr as ie, bollinger as ae, cci as oe, dmi as se, donchian as ce, ema as le, heikinAshi as ue, ichimoku as de, kdj as fe, keltner as pe, macd as me, mfi as he, obv as ge, psar as _e, resampleBars as ve, rsi as ye, sma as be, stochRsi as xe, supertrend as Se, volumeProfile as Ce, vwap as we, williamsR as Te, wma as Ee } from "./engine/trading/indicators.js";
11
+ import { createTradingChart as De } from "./engine/trading/chart.js";
12
+ import { TradingChart as Oe } from "./react/trading.js";
13
+ import { createOrderBookStore as ke } from "./engine/orderbook/book.js";
14
+ import { createDepthChart as Ae } from "./engine/orderbook/depth.js";
15
+ import { createOrderBookHeatmap as je } from "./engine/orderbook/heatmap.js";
16
+ import { createOrderBook as Me } from "./engine/orderbook/ladder.js";
17
+ import { createTimeAndSales as Ne } from "./engine/orderbook/tape.js";
18
+ import { DepthChart as Pe, OrderBook as Fe, OrderBookHeatmap as Ie, TimeAndSales as Le } from "./react/orderbook.js";
19
+ import { createChart3D as Re } from "./engine/three-d/chart.js";
20
+ import { Bar3DChart as ze, Line3DChart as Be, Scatter3DChart as Ve, Surface3DChart as He } from "./react/three-d.js";
21
+ import { createForceSimulation as Ue, forceLayout as We } from "./engine/graph/force.js";
22
+ import { arcLayout as Ge, circularLayout as Ke } from "./engine/graph/circular.js";
23
+ import { countCrossings as qe, criticalPath as Je, dagLayout as Ye } from "./engine/graph/dag.js";
24
+ import { treeLayout as Xe } from "./engine/graph/tree.js";
25
+ import { createGraphChart as Ze } from "./engine/graph/chart.js";
26
+ import { DependencyGraph as Qe, GraphChart as $e, TreeChart as et } from "./react/graph.js";
27
+ import { createCanvasShapeChart as tt } from "./engine/shapes/canvas.js";
28
+ import { createChartController as nt, scenePrimitives as rt } from "./engine/controller.js";
29
+ import { createCanvasChart as it } from "./engine/canvas.js";
30
+ import { syncCharts as at } from "./engine/trading/sync.js";
23
31
  import "./core.js";
24
- export { T as AreaChart, Se as Bar3DChart, E as BarChart, D as BoxPlotChart, O as BubbleChart, H as BulletChart, U as CalendarHeatmap, k as CandlestickChart, r as Chart, _e as DepthChart, W as DonutChart, G as FunnelChart, A as GanttChart, K as GaugeChart, j as HeatmapChart, M as HistogramChart, N as HorizontalBarChart, Ce as Line3DChart, P as LineChart, F as MixedChart, ve as OrderBook, ye as OrderBookHeatmap, q as PieChart, I as QuadrantChart, J as RadarChart, Y as RadialBarChart, L as RangeAreaChart, X as SankeyChart, we as Scatter3DChart, R as ScatterChart, z as Sparkline, Z as SunburstChart, Te as Surface3DChart, be as TimeAndSales, de as TradingChart, Q as TreemapChart, B as WaterfallChart, i as areaSeries, $ as atr, a as barSeries, o as binValues, ee as bollinger, s as boxplotData, c as boxplotSeries, l as boxplotStats, u as bubbleSeries, d as candlestickSeries, ke as createCanvasChart, Ee as createCanvasShapeChart, n as createChart, xe as createChart3D, De as createChartController, pe as createDepthChart, he as createOrderBook, me as createOrderBookHeatmap, fe as createOrderBookStore, V as createShapeChart, ge as createTimeAndSales, ue as createTradingChart, te as ema, e as formatCompact, t as formatValue, f as ganttSeries, p as heatmapChartOptions, ne as heikinAshi, m as histogramSeries, re as kdj, h as lineSeries, ie as macd, g as quadrantCenter, _ as quadrantChartOptions, v as quadrantOf, y as quantiles, b as rangeAreaSeries, ae as resampleBars, oe as rsi, x as scatterSeries, Oe as scenePrimitives, se as sma, S as sparklineOptions, ce as vwap, C as waterfallSeries, w as withSeriesType, le as wma };
32
+ export { k as AreaChart, ze as Bar3DChart, A as BarChart, j as BoxPlotChart, M as BubbleChart, K as BulletChart, q as CalendarHeatmap, N as CandlestickChart, s as Chart, J as ChordChart, Qe as DependencyGraph, Pe as DepthChart, Y as DonutChart, X as FunnelChart, P as GanttChart, Z as GaugeChart, $e as GraphChart, F as HeatmapChart, I as HistogramChart, L as HorizontalBarChart, Be as Line3DChart, R as LineChart, z as MixedChart, Fe as OrderBook, Ie as OrderBookHeatmap, Q as PieChart, B as QuadrantChart, $ as RadarChart, ee as RadialBarChart, V as RangeAreaChart, te as SankeyChart, Ve as Scatter3DChart, H as ScatterChart, U as Sparkline, ne as SunburstChart, He as Surface3DChart, Le as TimeAndSales, Oe as TradingChart, et as TreeChart, re as TreemapChart, W as WaterfallChart, Ge as arcLayout, c as areaSeries, ie as atr, l as barSeries, u as binValues, ae as bollinger, d as boxplotData, f as boxplotSeries, p as boxplotStats, m as bubbleSeries, h as candlestickSeries, oe as cci, Ke as circularLayout, qe as countCrossings, it as createCanvasChart, tt as createCanvasShapeChart, o as createChart, Re as createChart3D, nt as createChartController, Ae as createDepthChart, Ue as createForceSimulation, Ze as createGraphChart, Me as createOrderBook, je as createOrderBookHeatmap, ke as createOrderBookStore, G as createShapeChart, Ne as createTimeAndSales, De as createTradingChart, Je as criticalPath, Ye as dagLayout, se as dmi, ce as donchian, le as ema, We as forceLayout, e as formatCompact, t as formatDuration, n as formatValue, g as ganttSeries, r as getDefaultChartRenderer, _ as heatmapChartOptions, ue as heikinAshi, v as histogramSeries, de as ichimoku, fe as kdj, pe as keltner, y as lineSeries, me as macd, he as mfi, ge as obv, _e as psar, b as quadrantCenter, x as quadrantChartOptions, S as quadrantOf, C as quantiles, w as rangeAreaSeries, ve as resampleBars, ye as rsi, T as scatterSeries, rt as scenePrimitives, i as setDefaultChartRenderer, be as sma, E as sparklineOptions, xe as stochRsi, a as subscribeDefaultChartRenderer, Se as supertrend, at as syncCharts, Xe as treeLayout, Ce as volumeProfile, we as vwap, D as waterfallSeries, Te as williamsR, O as withSeriesType, Ee as wma };
@@ -1,2 +1,2 @@
1
- "use client";const e=require("../engine/locale.cjs"),t=require("./Chart.cjs"),n=require("../engine/presets.cjs");let r=require("react"),i=require("react/jsx-runtime");var a=e=>({height:e.height,width:e.width,className:e.className,style:e.style,handleRef:e.ref,onHover:e.onHover,onPointClick:e.onPointClick,onPlotClick:e.onPlotClick,onZoom:e.onZoom,onRendererChange:e.onRendererChange,renderTooltip:e.renderTooltip});function o(e){let{series:o,area:s=!1,curve:c,stacked:l=!1,percent:u=!1}=e,d=(0,r.useMemo)(()=>n.lineSeries(o,s,{curve:c,stacked:l||u}),[o,s,c,l,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:d,stackMode:u?`percent`:void 0}),...a(e)})}function s(e){let{series:o,curve:s=`smooth`,stacked:c=!1,percent:l=!1}=e,u=(0,r.useMemo)(()=>n.areaSeries(o,{curve:s,stacked:c||l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u,stackMode:l?`percent`:void 0}),...a(e)})}function c(e){let{series:o,stacked:s=!1,percent:c=!1,labels:l=!1}=e,u=(0,r.useMemo)(()=>n.barSeries(o,s||c,l),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,labels:void 0,series:u,stackMode:c?`percent`:void 0}),...a(e)})}function l(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.candlestickSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}function u(e){let{data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,name:d,radius:f,format:p}=e,m=(0,r.useMemo)(()=>n.heatmapChartOptions({data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,name:d,radius:f,format:p}).series,[o,s,c,l,u,d,f,p]),h=t.engineOptions({...e,series:m});return(0,i.jsx)(t.ChartBase,{options:{...n.heatmapChartOptions({data:o,xCategories:s,yCategories:c},{...h,legend:e.legend,interaction:e.interaction,tooltip:e.tooltip}),series:m},...a(e)})}function d(e){let{data:a,type:o,color:s,curve:c,name:l,reference:u,format:d,height:f=48,width:p,renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y,className:b,style:x,ref:S,onHover:C,renderTooltip:w}=e,T=(0,r.useMemo)(()=>n.sparklineOptions({data:a,type:o,color:s,curve:c,name:l,reference:u,format:d},{renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y}),[a,o,s,c,l,u,d,m,h,g,_,v,y]);return(0,i.jsx)(t.ChartBase,{options:T,height:f,width:p,className:b,style:x,handleRef:S,onHover:C,renderTooltip:w})}function f(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.scatterSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}var p=[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`],m=(e,t,n)=>{let r=e.endsWith(`Left`),i=e.startsWith(`top`);return{position:`absolute`,left:r?0:n.x-t.x,top:i?0:n.y-t.y,width:r?n.x-t.x:t.x+t.width-n.x,height:i?n.y-t.y:t.y+t.height-n.y,pointerEvents:`none`}};function h(e){let{points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x,onPointClick:S,onPointDrop:C,onQuadrantClick:w,renderTooltip:T,quadrantContent:E}=e,D={xDomain:o,yDomain:s,xSplit:c,ySplit:l,reverseX:_},O=n.quadrantChartOptions({points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x??!!C},t.engineOptions({...e,series:[]})),k=E?e=>{let[t,n]=o??[0,10],[r,a]=s??[0,10],u=c??(t+n)/2,d=l??(r+a)/2,f=(u-t)/(n-t||1),h=(d-r)/(a-r||1),g={x:e.x+e.width*(_?1-f:f),y:e.y+e.height*(1-h)};return p.map(t=>E[t]?(0,i.jsx)(`div`,{className:`minerva-chart-quadrant minerva-chart-quadrant-${t}`,style:m(t,e,g),children:E[t]},t):null)}:void 0;return(0,i.jsx)(t.ChartBase,{options:O,...a({...e,onPointClick:void 0,renderTooltip:void 0}),overlay:k,onPointClick:S?e=>{let t=e.items[0]?.index;t!==void 0&&r[t]&&S(r[t],t)}:void 0,onPlotClick:w?e=>w(n.quadrantOf(D,e.x,e.y),e):void 0,onDrop:C?e=>{let t=e.item.index;r[t]&&C(r[t],t,{x:e.x,y:e.y,quadrant:n.quadrantOf(D,e.x,e.y)})}:void 0,renderTooltip:T?e=>{let t=e.items[0]?.index;return t!==void 0&&r[t]?T(r[t],t):null}:void 0})}function g(e){return(0,i.jsx)(c,{...e,orientation:`horizontal`})}function _(e){let{series:o,curve:s=`smooth`}=e,c=(0,r.useMemo)(()=>n.rangeAreaSeries(o,s),[o,s]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:c}),...a(e)})}function v(e){return(0,i.jsx)(t.Chart,{...e})}function y(e){let{series:o,minSize:s,maxSize:c,maxValue:l}=e,u=(0,r.useMemo)(()=>n.bubbleSeries(o,{minSize:s,maxSize:c,maxValue:l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u}),...a(e)})}function b(o){let{values:s,bins:c,domain:l,nice:u,name:d,color:f,formatBin:p,series:m,locale:h}=o,g=e.resolveLocale(h),_=(0,r.useMemo)(()=>[n.histogramSeries(s,{bins:c,domain:l,nice:u,name:d,color:f,format:p,locale:g}),...m??[]],[s,c,l,u,d,f,p,m,g]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:_}),...a(o)})}function x(o){let{series:s,groups:c,name:l,whisker:u,orientation:d,locale:f}=o,p=l??n.presetLabels(e.resolveLocale(f)).values,m=(0,r.useMemo)(()=>n.boxplotSeries([...c?.length?[{id:`boxplot`,name:p,data:n.boxplotData(c,{whisker:u})}]:[],...s??[]]),[s,c,p,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:m,orientation:d}),...a(o)})}function S(o){let{steps:s,name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p=!0,format:m,orientation:h,locale:g}=o,_=e.resolveLocale(g),v=(0,r.useMemo)(()=>[n.waterfallSeries(s,{name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p,format:m,locale:_})],[s,c,l,u,d,f,p,m,_]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,labels:void 0,series:v,orientation:h}),...a(o)})}function C(o){let{tasks:s,colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,today:p=!1,todayLabel:m,xAxis:h,yAxis:g,annotations:_,interaction:v,legend:y,locale:b}=o,x=e.resolveLocale(b),S=(0,r.useMemo)(()=>n.ganttSeries(s,{colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,locale:x}),[s,c,l,u,d,f,x]),[C]=(0,r.useState)(()=>Date.now()),w=p===!1?null:p===!0?C:p instanceof Date?p.getTime():p,T=w===null?[]:[{type:`line`,axis:`y`,value:w,color:`var(--danger-color, #dc2626)`,dash:[4,3],label:m}];return(0,i.jsx)(t.ChartBase,{options:{...t.engineOptions({...o,series:S.series,orientation:`horizontal`}),xAxis:{type:`category`,categories:S.categories,...h},yAxis:{type:`time`,min:S.domain[0],max:S.domain[1],...g},annotations:[..._??[],...T],interaction:v??{zoom:`y`},legend:y??S.series.length>1},...a(o)})}exports.AreaChart=s,exports.BarChart=c,exports.BoxPlotChart=x,exports.BubbleChart=y,exports.CandlestickChart=l,exports.GanttChart=C,exports.HeatmapChart=u,exports.HistogramChart=b,exports.HorizontalBarChart=g,exports.LineChart=o,exports.MixedChart=v,exports.QuadrantChart=h,exports.RangeAreaChart=_,exports.ScatterChart=f,exports.Sparkline=d,exports.WaterfallChart=S;
1
+ "use client";const e=require("../engine/locale.cjs"),t=require("./Chart.cjs"),n=require("../engine/presets.cjs");let r=require("react"),i=require("react/jsx-runtime");var a=e=>({height:e.height,width:e.width,className:e.className,style:e.style,handleRef:e.ref,onHover:e.onHover,onPointClick:e.onPointClick,onPlotClick:e.onPlotClick,onZoom:e.onZoom,onRendererChange:e.onRendererChange,renderTooltip:e.renderTooltip});function o(e){let{series:o,area:s=!1,curve:c,stacked:l=!1,percent:u=!1}=e,d=(0,r.useMemo)(()=>n.lineSeries(o,s,{curve:c,stacked:l||u}),[o,s,c,l,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:d,stackMode:u?`percent`:void 0}),...a(e)})}function s(e){let{series:o,curve:s=`smooth`,stacked:c=!1,percent:l=!1}=e,u=(0,r.useMemo)(()=>n.areaSeries(o,{curve:s,stacked:c||l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u,stackMode:l?`percent`:void 0}),...a(e)})}function c(e){let{series:o,stacked:s=!1,percent:c=!1,labels:l=!1}=e,u=(0,r.useMemo)(()=>n.barSeries(o,s||c,l),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,labels:void 0,series:u,stackMode:c?`percent`:void 0}),...a(e)})}function l(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.candlestickSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}function u(e){let{data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,colorMidpoint:d,name:f,radius:p,format:m}=e,h=(0,r.useMemo)(()=>n.heatmapChartOptions({data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,colorMidpoint:d,name:f,radius:p,format:m}).series,[o,s,c,l,u,d,f,p,m]),g=t.engineOptions({...e,series:h});return(0,i.jsx)(t.ChartBase,{options:{...n.heatmapChartOptions({data:o,xCategories:s,yCategories:c},{...g,legend:e.legend,interaction:e.interaction,tooltip:e.tooltip}),series:h},...a(e)})}function d(e){let{data:a,type:o,color:s,curve:c,name:l,reference:u,format:d,height:f=48,width:p,renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y,className:b,style:x,ref:S,onHover:C,renderTooltip:w}=e,T=(0,r.useMemo)(()=>n.sparklineOptions({data:a,type:o,color:s,curve:c,name:l,reference:u,format:d},{renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y}),[a,o,s,c,l,u,d,m,h,g,_,v,y]);return(0,i.jsx)(t.ChartBase,{options:T,height:f,width:p,className:b,style:x,handleRef:S,onHover:C,renderTooltip:w})}function f(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.scatterSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}var p=[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`],m=(e,t,n)=>{let r=e.endsWith(`Left`),i=e.startsWith(`top`);return{position:`absolute`,left:r?0:n.x-t.x,top:i?0:n.y-t.y,width:r?n.x-t.x:t.x+t.width-n.x,height:i?n.y-t.y:t.y+t.height-n.y,pointerEvents:`none`}};function h(e){let{points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x,onPointClick:S,onPointDrop:C,onQuadrantClick:w,renderTooltip:T,quadrantContent:E}=e,D={xDomain:o,yDomain:s,xSplit:c,ySplit:l,reverseX:_},O=n.quadrantChartOptions({points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x??!!C},t.engineOptions({...e,series:[]})),k=E?e=>{let[t,n]=o??[0,10],[r,a]=s??[0,10],u=c??(t+n)/2,d=l??(r+a)/2,f=(u-t)/(n-t||1),h=(d-r)/(a-r||1),g={x:e.x+e.width*(_?1-f:f),y:e.y+e.height*(1-h)};return p.map(t=>E[t]?(0,i.jsx)(`div`,{className:`minerva-chart-quadrant minerva-chart-quadrant-${t}`,style:m(t,e,g),children:E[t]},t):null)}:void 0;return(0,i.jsx)(t.ChartBase,{options:O,...a({...e,onPointClick:void 0,renderTooltip:void 0}),overlay:k,onPointClick:S?e=>{let t=e.items[0]?.index;t!==void 0&&r[t]&&S(r[t],t)}:void 0,onPlotClick:w?e=>w(n.quadrantOf(D,e.x,e.y),e):void 0,onDrop:C?e=>{let t=e.item.index;r[t]&&C(r[t],t,{x:e.x,y:e.y,quadrant:n.quadrantOf(D,e.x,e.y)})}:void 0,renderTooltip:T?e=>{let t=e.items[0]?.index;return t!==void 0&&r[t]?T(r[t],t):null}:void 0})}function g(e){return(0,i.jsx)(c,{...e,orientation:`horizontal`})}function _(e){let{series:o,curve:s=`smooth`}=e,c=(0,r.useMemo)(()=>n.rangeAreaSeries(o,s),[o,s]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:c}),...a(e)})}function v(e){return(0,i.jsx)(t.Chart,{...e})}function y(e){let{series:o,minSize:s,maxSize:c,maxValue:l}=e,u=(0,r.useMemo)(()=>n.bubbleSeries(o,{minSize:s,maxSize:c,maxValue:l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u}),...a(e)})}function b(o){let{values:s,bins:c,domain:l,nice:u,name:d,color:f,formatBin:p,series:m,locale:h}=o,g=e.resolveLocale(h),_=(0,r.useMemo)(()=>[n.histogramSeries(s,{bins:c,domain:l,nice:u,name:d,color:f,format:p,locale:g}),...m??[]],[s,c,l,u,d,f,p,m,g]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:_}),...a(o)})}function x(o){let{series:s,groups:c,name:l,whisker:u,orientation:d,locale:f,outlierShape:p,outlierSize:m}=o,h=l??n.presetLabels(e.resolveLocale(f)).values,g=(0,r.useMemo)(()=>n.boxplotSeries([...c?.length?[{id:`boxplot`,name:h,data:n.boxplotData(c,{whisker:u})}]:[],...s??[]]).map(e=>e.type===`boxplot`?{...e,outlierShape:e.outlierShape??p,outlierSize:e.outlierSize??m}:e),[s,c,h,u,p,m]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:g,orientation:d}),...a(o)})}function S(o){let{steps:s,name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p=!0,format:m,connector:h,orientation:g,locale:_}=o,v=e.resolveLocale(_),y=(0,r.useMemo)(()=>[n.waterfallSeries(s,{name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p,format:m,connector:h,locale:v})],[s,c,l,u,d,f,p,m,h,v]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,labels:void 0,series:y,orientation:g}),...a(o)})}function C(o){let{tasks:s,colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,dependenciesName:p,today:m=!1,todayLabel:h,xAxis:g,yAxis:_,annotations:v,interaction:y,legend:b,locale:x}=o,S=e.resolveLocale(x),C=(0,r.useMemo)(()=>n.ganttSeries(s,{colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,dependenciesName:p,locale:S}),[s,c,l,u,d,f,p,S]),[w]=(0,r.useState)(()=>Date.now()),T=m===!1?null:m===!0?w:m instanceof Date?m.getTime():m,E=T===null?[]:[{type:`line`,axis:`y`,value:T,color:`var(--danger-color, #dc2626)`,dash:[4,3],label:h}];return(0,i.jsx)(t.ChartBase,{options:{...t.engineOptions({...o,series:C.series,orientation:`horizontal`}),xAxis:{type:`category`,categories:C.categories,...g},yAxis:{type:`time`,min:C.domain[0],max:C.domain[1],..._},annotations:[...v??[],...E],interaction:y??{zoom:`y`},legend:b??C.series.length>1},...a(o)})}exports.AreaChart=s,exports.BarChart=c,exports.BoxPlotChart=x,exports.BubbleChart=y,exports.CandlestickChart=l,exports.GanttChart=C,exports.HeatmapChart=u,exports.HistogramChart=b,exports.HorizontalBarChart=g,exports.LineChart=o,exports.MixedChart=v,exports.QuadrantChart=h,exports.RangeAreaChart=_,exports.ScatterChart=f,exports.Sparkline=d,exports.WaterfallChart=S;
2
2
  //# sourceMappingURL=charts.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"charts.cjs","names":["useMemo","lineSeries","ChartBase","engineOptions","areaSeries","barSeries","candlestickSeries","heatmapChartOptions","sparklineOptions","scatterSeries","quadrantChartOptions","quadrantOf","rangeAreaSeries","Chart","bubbleSeries","resolveLocale","histogramSeries","presetLabels","boxplotSeries","boxplotData","waterfallSeries","ganttSeries","useState","require_locale","require_Chart","require_presets","react","react_jsx_runtime","frameProps","props","LineChart","input","series","area","stacked","percent","curve","AreaChart","BarChart","labels","CandlestickChart","HeatmapChart","data","xCategories","yCategories","colorScale","valueRange","name","radius","format","base","Sparkline","options","type","color","reference","renderer","tooltip","palette","ariaLabel","locale","ref","ScatterChart","CORNERS","cornerStyle","left","corner","top","split","plot","QuadrantChart","geometry","draggable","onPointDrop","overlay","quadrantContent","x0","x1","xDomain","y0","y1","yDomain","xs","xSplit","ys","ySplit","fx","fy","reverseX","onPointClick","index","event","points","onQuadrantClick","at","renderTooltip","HorizontalBarChart","RangeAreaChart","MixedChart","BubbleChart","minSize","maxSize","maxValue","HistogramChart","extra","lang","values","formatBin","bins","domain","nice","BoxPlotChart","groupName","groups","whisker","WaterfallChart","steps","upColor","downColor","totalColor","start","GanttChart","gantt","tasks","colors","taskName","progressName","milestoneName","formatProgress","mountedAt","now","today","lines","todayLabel","xAxis","yAxis","annotations","interaction","legend"],"sources":["../../../../charts/src/react/charts.tsx"],"sourcesContent":["import { useMemo, useState, type CSSProperties } from \"react\";\nimport {\n areaSeries,\n barSeries,\n boxplotData,\n boxplotSeries,\n bubbleSeries,\n candlestickSeries,\n ganttSeries,\n heatmapChartOptions,\n histogramSeries,\n lineSeries,\n presetLabels,\n quadrantChartOptions,\n quadrantOf,\n rangeAreaSeries,\n scatterSeries,\n sparklineOptions,\n waterfallSeries,\n type QuadrantCorner,\n} from \"../engine/presets\";\nimport { resolveLocale } from \"../engine/locale\";\nimport type { ChartAnnotation, ChartRect } from \"../engine/types\";\nimport { Chart, ChartBase, engineOptions } from \"./Chart\";\nimport type {\n AreaChartProps,\n BarChartProps,\n BoxPlotChartProps,\n BubbleChartProps,\n CandlestickChartProps,\n ChartCommonProps,\n GanttChartProps,\n HeatmapChartProps,\n HistogramChartProps,\n HorizontalBarChartProps,\n LineChartProps,\n MixedChartProps,\n QuadrantChartProps,\n RangeAreaChartProps,\n ScatterChartProps,\n SparklineProps,\n WaterfallChartProps,\n} from \"./types\";\n\nconst frameProps = (props: Omit<ChartCommonProps, \"labels\">) => ({\n height: props.height,\n width: props.width,\n className: props.className,\n style: props.style,\n handleRef: props.ref,\n onHover: props.onHover,\n onPointClick: props.onPointClick,\n onPlotClick: props.onPlotClick,\n onZoom: props.onZoom,\n onRendererChange: props.onRendererChange,\n renderTooltip: props.renderTooltip,\n});\n\n/** Line (or area) chart; handles millions of points on the GPU */\nexport function LineChart(props: LineChartProps) {\n const {\n series: input,\n area = false,\n curve,\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => lineSeries(input, area, { curve, stacked: stacked || percent }),\n [input, area, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Area chart: smooth by default, stacked or 100% stacked */\nexport function AreaChart(props: AreaChartProps) {\n const {\n series: input,\n curve = \"smooth\",\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => areaSeries(input, { curve, stacked: stacked || percent }),\n [input, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Bar chart: grouped side by side, stacked or 100% stacked, with optional value labels */\nexport function BarChart(props: BarChartProps) {\n const {\n series: input,\n stacked = false,\n percent = false,\n labels = false,\n } = props;\n const series = useMemo(\n () => barSeries(input, stacked || percent, labels),\n [input, stacked, percent, labels],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Candlestick (OHLC) chart: rising and falling candles, zoomable on the GPU */\nexport function CandlestickChart(props: CandlestickChartProps) {\n const { series: input } = props;\n const series = useMemo(() => candlestickSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Heatmap: a grid of cells colored by value (categories or numbers on both axes) */\nexport function HeatmapChart(props: HeatmapChartProps) {\n const {\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n name,\n radius,\n format,\n } = props;\n const series = useMemo(\n () =>\n heatmapChartOptions({\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n name,\n radius,\n format,\n }).series,\n [\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n name,\n radius,\n format,\n ],\n );\n const base = engineOptions({ ...props, series });\n return (\n <ChartBase\n options={{\n ...heatmapChartOptions(\n { data, xCategories, yCategories },\n {\n ...base,\n legend: props.legend,\n interaction: props.interaction,\n tooltip: props.tooltip,\n },\n ),\n series,\n }}\n {...frameProps(props)}\n />\n );\n}\n\n/** Word-sized chart without axes: a trend in a table cell, a KPI card, ... */\nexport function Sparkline(props: SparklineProps) {\n const {\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n height = 48,\n width,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n className,\n style,\n ref,\n onHover,\n renderTooltip,\n } = props;\n const options = useMemo(\n () =>\n sparklineOptions(\n { data, type, color, curve, name, reference, format },\n { renderer, tooltip, palette, ariaLabel, locale, labels },\n ),\n [\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n ],\n );\n return (\n <ChartBase\n options={options}\n height={height}\n width={width}\n className={className}\n style={style}\n handleRef={ref}\n onHover={onHover}\n renderTooltip={renderTooltip}\n />\n );\n}\n\n/** Scatter chart: zooms on both axes, hit testing through a spatial index */\nexport function ScatterChart(props: ScatterChartProps) {\n const { series: input } = props;\n const series = useMemo(() => scatterSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\nconst CORNERS: QuadrantCorner[] = [\n \"topLeft\",\n \"topRight\",\n \"bottomLeft\",\n \"bottomRight\",\n];\n\nconst cornerStyle = (\n corner: QuadrantCorner,\n plot: ChartRect,\n split: { x: number; y: number },\n): CSSProperties => {\n const left = corner.endsWith(\"Left\");\n const top = corner.startsWith(\"top\");\n return {\n position: \"absolute\",\n left: left ? 0 : split.x - plot.x,\n top: top ? 0 : split.y - plot.y,\n width: left ? split.x - plot.x : plot.x + plot.width - split.x,\n height: top ? split.y - plot.y : plot.y + plot.height - split.y,\n pointerEvents: \"none\",\n };\n};\n\n/**\n * Four-quadrant matrix (priority matrix, Eisenhower, BCG, ...): tinted\n * quadrants with titles, dividers, and labelled dots placed without\n * overlapping labels. Dots can be dragged to another quadrant.\n */\nexport function QuadrantChart(props: QuadrantChartProps) {\n const {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable,\n onPointClick,\n onPointDrop,\n onQuadrantClick,\n renderTooltip,\n quadrantContent,\n } = props;\n const geometry = { xDomain, yDomain, xSplit, ySplit, reverseX };\n\n const options = quadrantChartOptions(\n {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable: draggable ?? !!onPointDrop,\n },\n engineOptions({ ...props, series: [] }),\n );\n\n const overlay = quadrantContent\n ? (plot: ChartRect) => {\n const [x0, x1] = xDomain ?? [0, 10];\n const [y0, y1] = yDomain ?? [0, 10];\n const xs = xSplit ?? (x0 + x1) / 2;\n const ys = ySplit ?? (y0 + y1) / 2;\n const fx = (xs - x0) / (x1 - x0 || 1);\n const fy = (ys - y0) / (y1 - y0 || 1);\n const split = {\n x: plot.x + plot.width * (reverseX ? 1 - fx : fx),\n y: plot.y + plot.height * (1 - fy),\n };\n return CORNERS.map((corner) =>\n quadrantContent[corner] ? (\n <div\n key={corner}\n className={`minerva-chart-quadrant minerva-chart-quadrant-${corner}`}\n style={cornerStyle(corner, plot, split)}\n >\n {quadrantContent[corner]}\n </div>\n ) : null,\n );\n }\n : undefined;\n\n return (\n <ChartBase\n options={options}\n {...frameProps({\n ...props,\n onPointClick: undefined,\n renderTooltip: undefined,\n })}\n overlay={overlay}\n onPointClick={\n onPointClick\n ? (event) => {\n const index = event.items[0]?.index;\n if (index !== undefined && points[index])\n onPointClick(points[index], index);\n }\n : undefined\n }\n onPlotClick={\n onQuadrantClick\n ? (at) => onQuadrantClick(quadrantOf(geometry, at.x, at.y), at)\n : undefined\n }\n onDrop={\n onPointDrop\n ? (event) => {\n const index = event.item.index;\n if (!points[index]) return;\n onPointDrop(points[index], index, {\n x: event.x,\n y: event.y,\n quadrant: quadrantOf(geometry, event.x, event.y),\n });\n }\n : undefined\n }\n renderTooltip={\n renderTooltip\n ? (event) => {\n const index = event.items[0]?.index;\n return index !== undefined && points[index]\n ? renderTooltip(points[index], index)\n : null;\n }\n : undefined\n }\n />\n );\n}\n\n/**\n * Horizontal bar chart: categories down the left side, values from the\n * left (rankings, long names, diverging surveys, stacked progress)\n */\nexport function HorizontalBarChart(props: HorizontalBarChartProps) {\n return <BarChart {...props} orientation=\"horizontal\" />;\n}\n\n/**\n * Range area chart: bands between a lower (`y0`) and an upper edge\n * (confidence intervals, min-max ranges), mixable with lines\n */\nexport function RangeAreaChart(props: RangeAreaChartProps) {\n const { series: input, curve = \"smooth\" } = props;\n const series = useMemo(() => rangeAreaSeries(input, curve), [input, curve]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Combination chart: bars, lines and areas on one or two value axes\n * (`yAxis: \"right\"` series use `yAxis2`, aligned on the left grid)\n */\nexport function MixedChart(props: MixedChartProps) {\n return <Chart {...props} />;\n}\n\n/** Bubble chart: x, y and a value sized by area (√value diameters) */\nexport function BubbleChart(props: BubbleChartProps) {\n const { series: input, minSize, maxSize, maxValue } = props;\n const series = useMemo(\n () => bubbleSeries(input, { minSize, maxSize, maxValue }),\n [input, minSize, maxSize, maxValue],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Histogram: the distribution of raw samples in bins of equal width\n * (Freedman-Diaconis, Sturges or a count); millions of samples are binned\n * in milliseconds\n */\nexport function HistogramChart(props: HistogramChartProps) {\n const {\n values,\n bins,\n domain,\n nice,\n name,\n color,\n formatBin,\n series: extra,\n locale,\n } = props;\n // page language read at every render: a language switch renames the series\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n histogramSeries(values, {\n bins,\n domain,\n nice,\n name,\n color,\n format: formatBin,\n locale: lang,\n }),\n ...(extra ?? []),\n ],\n [values, bins, domain, nice, name, color, formatBin, extra, lang],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Box plot: medians, quartiles, whiskers and outliers of samples, from raw\n * values (`groups`) or computed statistics (`series`)\n */\nexport function BoxPlotChart(props: BoxPlotChartProps) {\n const { series: input, groups, name, whisker, orientation, locale } = props;\n const groupName = name ?? presetLabels(resolveLocale(locale)).values;\n const series = useMemo(\n () =>\n boxplotSeries([\n ...(groups?.length\n ? [\n {\n id: \"boxplot\",\n name: groupName,\n data: boxplotData(groups, { whisker }),\n },\n ]\n : []),\n ...(input ?? []),\n ]),\n [input, groups, groupName, whisker],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series, orientation })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Waterfall (bridge) chart: how changes take a value from a start to an\n * end, with subtotals and totals (P&L bridges, budget variances)\n */\nexport function WaterfallChart(props: WaterfallChartProps) {\n const {\n steps,\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels = true,\n format,\n orientation,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n waterfallSeries(steps, {\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels,\n format,\n locale: lang,\n }),\n ],\n [steps, name, upColor, downColor, totalColor, start, labels, format, lang],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n orientation,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Gantt chart: tasks as bars on a time axis with their progress, groups,\n * milestones and a today line; zooms and pans along the time\n */\nexport function GanttChart(props: GanttChartProps) {\n const {\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n today = false,\n todayLabel,\n xAxis,\n yAxis,\n annotations,\n interaction,\n legend,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const gantt = useMemo(\n () =>\n ganttSeries(tasks, {\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n locale: lang,\n }),\n [\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n lang,\n ],\n );\n const [mountedAt] = useState(() => Date.now());\n const now =\n today === false\n ? null\n : today === true\n ? mountedAt\n : today instanceof Date\n ? today.getTime()\n : today;\n const lines: ChartAnnotation[] =\n now === null\n ? []\n : [\n {\n type: \"line\",\n axis: \"y\",\n value: now,\n color: \"var(--danger-color, #dc2626)\",\n dash: [4, 3],\n label: todayLabel,\n },\n ];\n return (\n <ChartBase\n options={{\n ...engineOptions({\n ...props,\n series: gantt.series,\n orientation: \"horizontal\",\n }),\n xAxis: {\n type: \"category\",\n categories: gantt.categories,\n ...xAxis,\n },\n yAxis: {\n type: \"time\",\n min: gantt.domain[0],\n max: gantt.domain[1],\n ...yAxis,\n },\n annotations: [...(annotations ?? []), ...lines],\n interaction: interaction ?? { zoom: \"y\" },\n legend: legend ?? gantt.series.length > 1,\n }}\n {...frameProps(props)}\n />\n );\n}\n"],"mappings":"uKA4CA,IAAM4B,EAAc,IAA6C,CAC/D,OAAQC,EAAM,OACd,MAAOA,EAAM,MACb,UAAWA,EAAM,UACjB,MAAOA,EAAM,MACb,UAAWA,EAAM,IACjB,QAASA,EAAM,QACf,aAAcA,EAAM,aACpB,YAAaA,EAAM,YACnB,OAAQA,EAAM,OACd,iBAAkBA,EAAM,iBACxB,cAAeA,EAAM,aACvB,GAGA,SAAgBC,EAAU,EAAuB,CAC/C,GAAM,CACJ,OAAQC,EACR,OAAO,GACP,QACA,UAAU,GACV,UAAU,IACRF,EACEG,GAAA,EAAShC,EAAAA,QAAAA,KACPC,EAAAA,WAAW8B,EAAOE,EAAM,CAAE,QAAO,QAASC,GAAWC,CAAQ,CAAC,EACpE,CAACJ,EAAOE,EAAMG,EAAOF,EAASC,CAAO,CACvC,EACA,OACE,EAAAR,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CACrB,GAAG0B,EACH,SACA,UAAWM,EAAU,UAAY,IAAA,EACnC,CAAC,EACD,GAAIP,EAAWC,CAAK,CACrB,CAAA,CAEL,CAGA,SAAgBQ,EAAU,EAAuB,CAC/C,GAAM,CACJ,OAAQN,EACR,QAAQ,SACR,UAAU,GACV,UAAU,IACRF,EACEG,GAAA,EAAShC,EAAAA,QAAAA,KACPI,EAAAA,WAAW2B,EAAO,CAAE,QAAO,QAASG,GAAWC,CAAQ,CAAC,EAC9D,CAACJ,EAAOK,EAAOF,EAASC,CAAO,CACjC,EACA,OACE,EAAAR,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CACrB,GAAG0B,EACH,SACA,UAAWM,EAAU,UAAY,IAAA,EACnC,CAA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ACAC,EACAC,EACAC,EACAC,EACAC,EACAvB,CACF,CACF,EACM,CAACwB,IAAA,EAAa3G,EAAAA,SAAAA,KAAe,KAAK,IAAI,CAAC,EACvC4G,EACJC,IAAU,GACN,KACAA,IAAU,GACRF,EACAE,aAAiB,KACfA,EAAM,QAAQ,EACdA,EACJC,EACJF,IAAQ,KACJ,CAAC,EACD,CACE,CACE,KAAM,OACN,KAAM,IACN,MAAOA,EACP,MAAO,+BACP,KAAM,CAAC,EAAG,CAAC,EACX,MAAOG,CACT,CACF,EACN,OACE,EAAA1G,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAAS,CACP,GAAGC,EAAAA,cAAc,CACf,GAAG0B,EACH,OAAQ6F,EAAM,OACd,YAAa,YACf,CAAC,EACD,MAAO,CACL,KAAM,WACN,WAAYA,EAAM,WAClB,GAAGY,CACL,EACA,MAAO,CACL,KAAM,OACN,IAAKZ,EAAM,OAAO,GAClB,IAAKA,EAAM,OAAO,GAClB,GAAGa,CACL,EACA,YAAa,CAAC,GAAIC,GAAe,CAAC,EAAI,GAAGJ,CAAK,EAC9C,YAAaK,GAAe,CAAE,KAAM,GAAI,EACxC,OAAQC,GAAUhB,EAAM,OAAO,OAAS,CAC1C,EACA,GAAI9F,EAAWC,CAAK,CACrB,CAAA,CAEL"}
1
+ {"version":3,"file":"charts.cjs","names":["useMemo","lineSeries","ChartBase","engineOptions","areaSeries","barSeries","candlestickSeries","heatmapChartOptions","sparklineOptions","scatterSeries","quadrantChartOptions","quadrantOf","rangeAreaSeries","Chart","bubbleSeries","resolveLocale","histogramSeries","presetLabels","boxplotSeries","boxplotData","waterfallSeries","ganttSeries","useState","require_locale","require_Chart","require_presets","react","react_jsx_runtime","frameProps","props","LineChart","input","series","area","stacked","percent","curve","AreaChart","BarChart","labels","CandlestickChart","HeatmapChart","data","xCategories","yCategories","colorScale","valueRange","colorMidpoint","name","radius","format","base","Sparkline","options","type","color","reference","renderer","tooltip","palette","ariaLabel","locale","ref","ScatterChart","CORNERS","cornerStyle","left","corner","top","split","plot","QuadrantChart","geometry","draggable","onPointDrop","overlay","quadrantContent","x0","x1","xDomain","y0","y1","yDomain","xs","xSplit","ys","ySplit","fx","fy","reverseX","onPointClick","index","event","points","onQuadrantClick","at","renderTooltip","HorizontalBarChart","RangeAreaChart","MixedChart","BubbleChart","minSize","maxSize","maxValue","HistogramChart","extra","lang","values","formatBin","bins","domain","nice","BoxPlotChart","groupName","groups","s","outlierShape","outlierSize","whisker","WaterfallChart","steps","upColor","downColor","totalColor","start","connector","GanttChart","gantt","tasks","colors","taskName","progressName","milestoneName","formatProgress","dependenciesName","mountedAt","now","today","lines","todayLabel","xAxis","yAxis","annotations","interaction","legend"],"sources":["../../../../charts/src/react/charts.tsx"],"sourcesContent":["import { useMemo, useState, type CSSProperties } from \"react\";\nimport {\n areaSeries,\n barSeries,\n boxplotData,\n boxplotSeries,\n bubbleSeries,\n candlestickSeries,\n ganttSeries,\n heatmapChartOptions,\n histogramSeries,\n lineSeries,\n presetLabels,\n quadrantChartOptions,\n quadrantOf,\n rangeAreaSeries,\n scatterSeries,\n sparklineOptions,\n waterfallSeries,\n type QuadrantCorner,\n} from \"../engine/presets\";\nimport { resolveLocale } from \"../engine/locale\";\nimport type { ChartAnnotation, ChartRect } from \"../engine/types\";\nimport { Chart, ChartBase, engineOptions } from \"./Chart\";\nimport type {\n AreaChartProps,\n BarChartProps,\n BoxPlotChartProps,\n BubbleChartProps,\n CandlestickChartProps,\n ChartCommonProps,\n GanttChartProps,\n HeatmapChartProps,\n HistogramChartProps,\n HorizontalBarChartProps,\n LineChartProps,\n MixedChartProps,\n QuadrantChartProps,\n RangeAreaChartProps,\n ScatterChartProps,\n SparklineProps,\n WaterfallChartProps,\n} from \"./types\";\n\nconst frameProps = (props: Omit<ChartCommonProps, \"labels\">) => ({\n height: props.height,\n width: props.width,\n className: props.className,\n style: props.style,\n handleRef: props.ref,\n onHover: props.onHover,\n onPointClick: props.onPointClick,\n onPlotClick: props.onPlotClick,\n onZoom: props.onZoom,\n onRendererChange: props.onRendererChange,\n renderTooltip: props.renderTooltip,\n});\n\n/** Line (or area) chart; handles millions of points on the GPU */\nexport function LineChart(props: LineChartProps) {\n const {\n series: input,\n area = false,\n curve,\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => lineSeries(input, area, { curve, stacked: stacked || percent }),\n [input, area, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Area chart: smooth by default, stacked or 100% stacked */\nexport function AreaChart(props: AreaChartProps) {\n const {\n series: input,\n curve = \"smooth\",\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => areaSeries(input, { curve, stacked: stacked || percent }),\n [input, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Bar chart: grouped side by side, stacked or 100% stacked, with optional value labels */\nexport function BarChart(props: BarChartProps) {\n const {\n series: input,\n stacked = false,\n percent = false,\n labels = false,\n } = props;\n const series = useMemo(\n () => barSeries(input, stacked || percent, labels),\n [input, stacked, percent, labels],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Candlestick (OHLC) chart: rising and falling candles, zoomable on the GPU */\nexport function CandlestickChart(props: CandlestickChartProps) {\n const { series: input } = props;\n const series = useMemo(() => candlestickSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Heatmap: a grid of cells colored by value (categories or numbers on both axes) */\nexport function HeatmapChart(props: HeatmapChartProps) {\n const {\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n colorMidpoint,\n name,\n radius,\n format,\n } = props;\n const series = useMemo(\n () =>\n heatmapChartOptions({\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n colorMidpoint,\n name,\n radius,\n format,\n }).series,\n [\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n colorMidpoint,\n name,\n radius,\n format,\n ],\n );\n const base = engineOptions({ ...props, series });\n return (\n <ChartBase\n options={{\n ...heatmapChartOptions(\n { data, xCategories, yCategories },\n {\n ...base,\n legend: props.legend,\n interaction: props.interaction,\n tooltip: props.tooltip,\n },\n ),\n series,\n }}\n {...frameProps(props)}\n />\n );\n}\n\n/** Word-sized chart without axes: a trend in a table cell, a KPI card, ... */\nexport function Sparkline(props: SparklineProps) {\n const {\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n height = 48,\n width,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n className,\n style,\n ref,\n onHover,\n renderTooltip,\n } = props;\n const options = useMemo(\n () =>\n sparklineOptions(\n { data, type, color, curve, name, reference, format },\n { renderer, tooltip, palette, ariaLabel, locale, labels },\n ),\n [\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n ],\n );\n return (\n <ChartBase\n options={options}\n height={height}\n width={width}\n className={className}\n style={style}\n handleRef={ref}\n onHover={onHover}\n renderTooltip={renderTooltip}\n />\n );\n}\n\n/** Scatter chart: zooms on both axes, hit testing through a spatial index */\nexport function ScatterChart(props: ScatterChartProps) {\n const { series: input } = props;\n const series = useMemo(() => scatterSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\nconst CORNERS: QuadrantCorner[] = [\n \"topLeft\",\n \"topRight\",\n \"bottomLeft\",\n \"bottomRight\",\n];\n\nconst cornerStyle = (\n corner: QuadrantCorner,\n plot: ChartRect,\n split: { x: number; y: number },\n): CSSProperties => {\n const left = corner.endsWith(\"Left\");\n const top = corner.startsWith(\"top\");\n return {\n position: \"absolute\",\n left: left ? 0 : split.x - plot.x,\n top: top ? 0 : split.y - plot.y,\n width: left ? split.x - plot.x : plot.x + plot.width - split.x,\n height: top ? split.y - plot.y : plot.y + plot.height - split.y,\n pointerEvents: \"none\",\n };\n};\n\n/**\n * Four-quadrant matrix (priority matrix, Eisenhower, BCG, ...): tinted\n * quadrants with titles, dividers, and labelled dots placed without\n * overlapping labels. Dots can be dragged to another quadrant.\n */\nexport function QuadrantChart(props: QuadrantChartProps) {\n const {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable,\n onPointClick,\n onPointDrop,\n onQuadrantClick,\n renderTooltip,\n quadrantContent,\n } = props;\n const geometry = { xDomain, yDomain, xSplit, ySplit, reverseX };\n\n const options = quadrantChartOptions(\n {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable: draggable ?? !!onPointDrop,\n },\n engineOptions({ ...props, series: [] }),\n );\n\n const overlay = quadrantContent\n ? (plot: ChartRect) => {\n const [x0, x1] = xDomain ?? [0, 10];\n const [y0, y1] = yDomain ?? [0, 10];\n const xs = xSplit ?? (x0 + x1) / 2;\n const ys = ySplit ?? (y0 + y1) / 2;\n const fx = (xs - x0) / (x1 - x0 || 1);\n const fy = (ys - y0) / (y1 - y0 || 1);\n const split = {\n x: plot.x + plot.width * (reverseX ? 1 - fx : fx),\n y: plot.y + plot.height * (1 - fy),\n };\n return CORNERS.map((corner) =>\n quadrantContent[corner] ? (\n <div\n key={corner}\n className={`minerva-chart-quadrant minerva-chart-quadrant-${corner}`}\n style={cornerStyle(corner, plot, split)}\n >\n {quadrantContent[corner]}\n </div>\n ) : null,\n );\n }\n : undefined;\n\n return (\n <ChartBase\n options={options}\n {...frameProps({\n ...props,\n onPointClick: undefined,\n renderTooltip: undefined,\n })}\n overlay={overlay}\n onPointClick={\n onPointClick\n ? (event) => {\n const index = event.items[0]?.index;\n if (index !== undefined && points[index])\n onPointClick(points[index], index);\n }\n : undefined\n }\n onPlotClick={\n onQuadrantClick\n ? (at) => onQuadrantClick(quadrantOf(geometry, at.x, at.y), at)\n : undefined\n }\n onDrop={\n onPointDrop\n ? (event) => {\n const index = event.item.index;\n if (!points[index]) return;\n onPointDrop(points[index], index, {\n x: event.x,\n y: event.y,\n quadrant: quadrantOf(geometry, event.x, event.y),\n });\n }\n : undefined\n }\n renderTooltip={\n renderTooltip\n ? (event) => {\n const index = event.items[0]?.index;\n return index !== undefined && points[index]\n ? renderTooltip(points[index], index)\n : null;\n }\n : undefined\n }\n />\n );\n}\n\n/**\n * Horizontal bar chart: categories down the left side, values from the\n * left (rankings, long names, diverging surveys, stacked progress)\n */\nexport function HorizontalBarChart(props: HorizontalBarChartProps) {\n return <BarChart {...props} orientation=\"horizontal\" />;\n}\n\n/**\n * Range area chart: bands between a lower (`y0`) and an upper edge\n * (confidence intervals, min-max ranges), mixable with lines\n */\nexport function RangeAreaChart(props: RangeAreaChartProps) {\n const { series: input, curve = \"smooth\" } = props;\n const series = useMemo(() => rangeAreaSeries(input, curve), [input, curve]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Combination chart: bars, lines and areas on one or two value axes\n * (`yAxis: \"right\"` series use `yAxis2`, aligned on the left grid)\n */\nexport function MixedChart(props: MixedChartProps) {\n return <Chart {...props} />;\n}\n\n/** Bubble chart: x, y and a value sized by area (√value diameters) */\nexport function BubbleChart(props: BubbleChartProps) {\n const { series: input, minSize, maxSize, maxValue } = props;\n const series = useMemo(\n () => bubbleSeries(input, { minSize, maxSize, maxValue }),\n [input, minSize, maxSize, maxValue],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Histogram: the distribution of raw samples in bins of equal width\n * (Freedman-Diaconis, Sturges or a count); millions of samples are binned\n * in milliseconds\n */\nexport function HistogramChart(props: HistogramChartProps) {\n const {\n values,\n bins,\n domain,\n nice,\n name,\n color,\n formatBin,\n series: extra,\n locale,\n } = props;\n // page language read at every render: a language switch renames the series\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n histogramSeries(values, {\n bins,\n domain,\n nice,\n name,\n color,\n format: formatBin,\n locale: lang,\n }),\n ...(extra ?? []),\n ],\n [values, bins, domain, nice, name, color, formatBin, extra, lang],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Box plot: medians, quartiles, whiskers and outliers of samples, from raw\n * values (`groups`) or computed statistics (`series`)\n */\nexport function BoxPlotChart(props: BoxPlotChartProps) {\n const {\n series: input,\n groups,\n name,\n whisker,\n orientation,\n locale,\n outlierShape,\n outlierSize,\n } = props;\n const groupName = name ?? presetLabels(resolveLocale(locale)).values;\n const series = useMemo(\n () =>\n boxplotSeries([\n ...(groups?.length\n ? [\n {\n id: \"boxplot\",\n name: groupName,\n data: boxplotData(groups, { whisker }),\n },\n ]\n : []),\n ...(input ?? []),\n ]).map((s) =>\n s.type === \"boxplot\"\n ? {\n ...s,\n outlierShape: s.outlierShape ?? outlierShape,\n outlierSize: s.outlierSize ?? outlierSize,\n }\n : s,\n ),\n [input, groups, groupName, whisker, outlierShape, outlierSize],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series, orientation })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Waterfall (bridge) chart: how changes take a value from a start to an\n * end, with subtotals and totals (P&L bridges, budget variances)\n */\nexport function WaterfallChart(props: WaterfallChartProps) {\n const {\n steps,\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels = true,\n format,\n connector,\n orientation,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n waterfallSeries(steps, {\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels,\n format,\n connector,\n locale: lang,\n }),\n ],\n [\n steps,\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels,\n format,\n connector,\n lang,\n ],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n orientation,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Gantt chart: tasks as bars on a time axis with their progress, groups,\n * milestones and a today line; zooms and pans along the time\n */\nexport function GanttChart(props: GanttChartProps) {\n const {\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n dependenciesName,\n today = false,\n todayLabel,\n xAxis,\n yAxis,\n annotations,\n interaction,\n legend,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const gantt = useMemo(\n () =>\n ganttSeries(tasks, {\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n dependenciesName,\n locale: lang,\n }),\n [\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n dependenciesName,\n lang,\n ],\n );\n const [mountedAt] = useState(() => Date.now());\n const now =\n today === false\n ? null\n : today === true\n ? mountedAt\n : today instanceof Date\n ? today.getTime()\n : today;\n const lines: ChartAnnotation[] =\n now === null\n ? []\n : [\n {\n type: \"line\",\n axis: \"y\",\n value: now,\n color: \"var(--danger-color, #dc2626)\",\n dash: [4, 3],\n label: todayLabel,\n },\n ];\n return (\n <ChartBase\n options={{\n ...engineOptions({\n ...props,\n series: gantt.series,\n orientation: \"horizontal\",\n }),\n xAxis: {\n type: \"category\",\n categories: gantt.categories,\n ...xAxis,\n },\n yAxis: {\n type: \"time\",\n min: gantt.domain[0],\n max: gantt.domain[1],\n ...yAxis,\n },\n annotations: [...(annotations ?? []), ...lines],\n interaction: interaction ?? { zoom: \"y\" },\n legend: legend ?? gantt.series.length > 1,\n }}\n {...frameProps(props)}\n />\n );\n}\n"],"mappings":"uKA4CA,IAAM4B,EAAc,IAA6C,CAC/D,OAAQC,EAAM,OACd,MAAOA,EAAM,MACb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AAS,UACP,CACE,GAAGA,EACH,aAAcA,EAAE,cAAgBC,EAChC,YAAaD,EAAE,aAAeE,CAChC,EACAF,CACN,EACF,CAACpF,EAAOmF,EAAQD,EAAWK,EAASF,EAAcC,CAAW,CAC/D,EACA,OACE,EAAA1F,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CAAE,GAAG0B,EAAO,SAAQ,aAAY,CAAC,EACxD,GAAID,EAAWC,CAAK,CACrB,CAAA,CAEL,CAMA,SAAgB0F,EAAe,EAA4B,CACzD,GAAM,CACJ,QACA,OACA,UACA,YACA,aACA,QACA,SAAS,GACT,SACA,YACA,cACA,UACE1F,EACE6E,EAAO3F,EAAAA,cAAc8C,CAAM,EAC3B7B,GAAA,EAAShC,EAAAA,QAAAA,KACP,CACJoB,EAAAA,gBAAgBoG,EAAO,CACrB,OACA,UACA,YACA,aACA,QACA,SACA,SACA,YACA,OAAQd,CACV,CAAC,CACH,EACA,CACEc,EACAxE,EACAyE,EACAC,EACAC,EACAC,EACArF,EACAW,EACA2E,EACAnB,CACF,CACF,EACA,OACE,EAAA/E,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CACrB,GAAG0B,EACH,OAAQ,IAAA,GACR,SACA,aACF,CAAC,EACD,GAAID,EAAWC,CAAK,CACrB,CAAA,CAEL,CAMA,SAAgBiG,EAAW,EAAwB,CACjD,GAAM,CACJ,QACA,SACA,WACA,eACA,gBACA,iBACA,mBACA,QAAQ,GACR,aACA,QACA,QACA,cACA,cACA,SACA,UACEjG,EACE6E,EAAO3F,EAAAA,cAAc8C,CAAM,EAC3BkE,GAAA,EAAQ/H,EAAAA,QAAAA,KAEVqB,EAAAA,YAAY2G,EAAO,CACjB,SACA,WACA,eACA,gBACA,iBACA,mBACA,OAAQtB,CACV,CAAC,EACH,CACEsB,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACA5B,CACF,CACF,EACM,CAAC6B,IAAA,EAAaj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