@sophistry/charts 0.0.0-stage → 0.0.1

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 (427) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +32 -2
  3. package/dist/3d/bar-chart3d.d.ts +56 -0
  4. package/dist/3d/bar-chart3d.d.ts.map +1 -0
  5. package/dist/3d/definitions.d.ts +38 -0
  6. package/dist/3d/definitions.d.ts.map +1 -0
  7. package/dist/3d/definitions.js +14 -0
  8. package/dist/3d/forward.d.ts +65 -0
  9. package/dist/3d/forward.d.ts.map +1 -0
  10. package/dist/3d/index.d.ts +31 -0
  11. package/dist/3d/index.d.ts.map +1 -0
  12. package/dist/3d/index.js +1 -0
  13. package/dist/3d/quiver3d.d.ts +53 -0
  14. package/dist/3d/quiver3d.d.ts.map +1 -0
  15. package/dist/3d/scatter3d.d.ts +45 -0
  16. package/dist/3d/scatter3d.d.ts.map +1 -0
  17. package/dist/3d/stem3d.d.ts +46 -0
  18. package/dist/3d/stem3d.d.ts.map +1 -0
  19. package/dist/3d/surface-grid3d.d.ts +34 -0
  20. package/dist/3d/surface-grid3d.d.ts.map +1 -0
  21. package/dist/3d/tri-surface3d.d.ts +46 -0
  22. package/dist/3d/tri-surface3d.d.ts.map +1 -0
  23. package/dist/3d/voxels3d.d.ts +26 -0
  24. package/dist/3d/voxels3d.d.ts.map +1 -0
  25. package/dist/3d/wireframe3d.d.ts +31 -0
  26. package/dist/3d/wireframe3d.d.ts.map +1 -0
  27. package/dist/band.d.ts +21 -0
  28. package/dist/band.d.ts.map +1 -0
  29. package/dist/bars/bar-chart.d.ts +144 -0
  30. package/dist/bars/bar-chart.d.ts.map +1 -0
  31. package/dist/bars/bar-labels.d.ts +117 -0
  32. package/dist/bars/bar-labels.d.ts.map +1 -0
  33. package/dist/bars/bars.d.ts +224 -0
  34. package/dist/bars/bars.d.ts.map +1 -0
  35. package/dist/bars/bullet.d.ts +158 -0
  36. package/dist/bars/bullet.d.ts.map +1 -0
  37. package/dist/bars/candlestick.d.ts +98 -0
  38. package/dist/bars/candlestick.d.ts.map +1 -0
  39. package/dist/bars/funnel.d.ts +91 -0
  40. package/dist/bars/funnel.d.ts.map +1 -0
  41. package/dist/bars/histogram.d.ts +109 -0
  42. package/dist/bars/histogram.d.ts.map +1 -0
  43. package/dist/bars/index.d.ts +23 -0
  44. package/dist/bars/index.d.ts.map +1 -0
  45. package/dist/bars/race.d.ts +29 -0
  46. package/dist/bars/race.d.ts.map +1 -0
  47. package/dist/bars/rules.d.ts +122 -0
  48. package/dist/bars/rules.d.ts.map +1 -0
  49. package/dist/bars/shared.d.ts +42 -0
  50. package/dist/bars/shared.d.ts.map +1 -0
  51. package/dist/bars/transforms.d.ts +250 -0
  52. package/dist/bars/transforms.d.ts.map +1 -0
  53. package/dist/bars/waterfall.d.ts +107 -0
  54. package/dist/bars/waterfall.d.ts.map +1 -0
  55. package/dist/batch.d.ts +143 -0
  56. package/dist/batch.d.ts.map +1 -0
  57. package/dist/channels-_Xf-p6Lx.js +56 -0
  58. package/dist/chart.d.ts +88 -0
  59. package/dist/chart.d.ts.map +1 -0
  60. package/dist/color-norm.d.ts +91 -0
  61. package/dist/color-norm.d.ts.map +1 -0
  62. package/dist/context.d.ts +112 -0
  63. package/dist/context.d.ts.map +1 -0
  64. package/dist/curves/density.d.ts +126 -0
  65. package/dist/curves/density.d.ts.map +1 -0
  66. package/dist/curves/ecdf.d.ts +73 -0
  67. package/dist/curves/ecdf.d.ts.map +1 -0
  68. package/dist/curves/fill-between.d.ts +101 -0
  69. package/dist/curves/fill-between.d.ts.map +1 -0
  70. package/dist/curves/index.d.ts +16 -0
  71. package/dist/curves/index.d.ts.map +1 -0
  72. package/dist/curves/line-plot.d.ts +105 -0
  73. package/dist/curves/line-plot.d.ts.map +1 -0
  74. package/dist/curves/regression.d.ts +125 -0
  75. package/dist/curves/regression.d.ts.map +1 -0
  76. package/dist/curves/shared.d.ts +53 -0
  77. package/dist/curves/shared.d.ts.map +1 -0
  78. package/dist/curves/stack-plot.d.ts +141 -0
  79. package/dist/curves/stack-plot.d.ts.map +1 -0
  80. package/dist/curves/stairs.d.ts +171 -0
  81. package/dist/curves/stairs.d.ts.map +1 -0
  82. package/dist/data/channels.d.ts +171 -0
  83. package/dist/data/channels.d.ts.map +1 -0
  84. package/dist/end-space.d.ts +82 -0
  85. package/dist/end-space.d.ts.map +1 -0
  86. package/dist/entries/definitions.d.ts +21 -0
  87. package/dist/entries/definitions.d.ts.map +1 -0
  88. package/dist/entries/definitions.js +6 -0
  89. package/dist/frame/band-axis.d.ts +43 -0
  90. package/dist/frame/band-axis.d.ts.map +1 -0
  91. package/dist/frame/coords.d.ts +112 -0
  92. package/dist/frame/coords.d.ts.map +1 -0
  93. package/dist/frame/fit.d.ts +171 -0
  94. package/dist/frame/fit.d.ts.map +1 -0
  95. package/dist/frame/format.d.ts +41 -0
  96. package/dist/frame/format.d.ts.map +1 -0
  97. package/dist/frame/guide-metrics.d.ts +37 -0
  98. package/dist/frame/guide-metrics.d.ts.map +1 -0
  99. package/dist/frame/guides.d.ts +68 -0
  100. package/dist/frame/guides.d.ts.map +1 -0
  101. package/dist/frame/keys.d.ts +97 -0
  102. package/dist/frame/keys.d.ts.map +1 -0
  103. package/dist/frame/layout.d.ts +146 -0
  104. package/dist/frame/layout.d.ts.map +1 -0
  105. package/dist/frame/registry.d.ts +32 -0
  106. package/dist/frame/registry.d.ts.map +1 -0
  107. package/dist/frame/reports.d.ts +54 -0
  108. package/dist/frame/reports.d.ts.map +1 -0
  109. package/dist/frame/secondary-axes.d.ts +74 -0
  110. package/dist/frame/secondary-axes.d.ts.map +1 -0
  111. package/dist/frame/secondary.d.ts +57 -0
  112. package/dist/frame/secondary.d.ts.map +1 -0
  113. package/dist/frame/tooltip-overlay.d.ts +65 -0
  114. package/dist/frame/tooltip-overlay.d.ts.map +1 -0
  115. package/dist/frame/types.d.ts +659 -0
  116. package/dist/frame/types.d.ts.map +1 -0
  117. package/dist/grids/barbs.d.ts +52 -0
  118. package/dist/grids/barbs.d.ts.map +1 -0
  119. package/dist/grids/cell-rects.d.ts +38 -0
  120. package/dist/grids/cell-rects.d.ts.map +1 -0
  121. package/dist/grids/cells.d.ts +131 -0
  122. package/dist/grids/cells.d.ts.map +1 -0
  123. package/dist/grids/contour-f.d.ts +81 -0
  124. package/dist/grids/contour-f.d.ts.map +1 -0
  125. package/dist/grids/contour-shared.d.ts +54 -0
  126. package/dist/grids/contour-shared.d.ts.map +1 -0
  127. package/dist/grids/contour.d.ts +85 -0
  128. package/dist/grids/contour.d.ts.map +1 -0
  129. package/dist/grids/dendrogram.d.ts +105 -0
  130. package/dist/grids/dendrogram.d.ts.map +1 -0
  131. package/dist/grids/heatmap.d.ts +164 -0
  132. package/dist/grids/heatmap.d.ts.map +1 -0
  133. package/dist/grids/hex-bin.d.ts +94 -0
  134. package/dist/grids/hex-bin.d.ts.map +1 -0
  135. package/dist/grids/hist2d.d.ts +108 -0
  136. package/dist/grids/hist2d.d.ts.map +1 -0
  137. package/dist/grids/imshow.d.ts +85 -0
  138. package/dist/grids/imshow.d.ts.map +1 -0
  139. package/dist/grids/index.d.ts +27 -0
  140. package/dist/grids/index.d.ts.map +1 -0
  141. package/dist/grids/pcolormesh.d.ts +91 -0
  142. package/dist/grids/pcolormesh.d.ts.map +1 -0
  143. package/dist/grids/ramp-cells.d.ts +67 -0
  144. package/dist/grids/ramp-cells.d.ts.map +1 -0
  145. package/dist/grids/tri-contour.d.ts +121 -0
  146. package/dist/grids/tri-contour.d.ts.map +1 -0
  147. package/dist/grids/tri-shared.d.ts +62 -0
  148. package/dist/grids/tri-shared.d.ts.map +1 -0
  149. package/dist/grids/tripcolor.d.ts +74 -0
  150. package/dist/grids/tripcolor.d.ts.map +1 -0
  151. package/dist/guides/colorbar.d.ts +111 -0
  152. package/dist/guides/colorbar.d.ts.map +1 -0
  153. package/dist/guides/index.d.ts +12 -0
  154. package/dist/guides/index.d.ts.map +1 -0
  155. package/dist/guides/legend.d.ts +119 -0
  156. package/dist/guides/legend.d.ts.map +1 -0
  157. package/dist/guides/nodes.d.ts +14 -0
  158. package/dist/guides/nodes.d.ts.map +1 -0
  159. package/dist/guides/size-legend.d.ts +234 -0
  160. package/dist/guides/size-legend.d.ts.map +1 -0
  161. package/dist/hierarchy/breadcrumbs.d.ts +134 -0
  162. package/dist/hierarchy/breadcrumbs.d.ts.map +1 -0
  163. package/dist/hierarchy/circle-pack.d.ts +73 -0
  164. package/dist/hierarchy/circle-pack.d.ts.map +1 -0
  165. package/dist/hierarchy/drill.d.ts +246 -0
  166. package/dist/hierarchy/drill.d.ts.map +1 -0
  167. package/dist/hierarchy/frame.d.ts +68 -0
  168. package/dist/hierarchy/frame.d.ts.map +1 -0
  169. package/dist/hierarchy/icicle.d.ts +77 -0
  170. package/dist/hierarchy/icicle.d.ts.map +1 -0
  171. package/dist/hierarchy/index.d.ts +21 -0
  172. package/dist/hierarchy/index.d.ts.map +1 -0
  173. package/dist/hierarchy/labels.d.ts +25 -0
  174. package/dist/hierarchy/labels.d.ts.map +1 -0
  175. package/dist/hierarchy/mosaic.d.ts +131 -0
  176. package/dist/hierarchy/mosaic.d.ts.map +1 -0
  177. package/dist/hierarchy/own-tooltip.d.ts +13 -0
  178. package/dist/hierarchy/own-tooltip.d.ts.map +1 -0
  179. package/dist/hierarchy/props.d.ts +14 -0
  180. package/dist/hierarchy/props.d.ts.map +1 -0
  181. package/dist/hierarchy/sankey.d.ts +133 -0
  182. package/dist/hierarchy/sankey.d.ts.map +1 -0
  183. package/dist/hierarchy/shared.d.ts +248 -0
  184. package/dist/hierarchy/shared.d.ts.map +1 -0
  185. package/dist/hierarchy/sunburst.d.ts +75 -0
  186. package/dist/hierarchy/sunburst.d.ts.map +1 -0
  187. package/dist/hierarchy/tree.d.ts +125 -0
  188. package/dist/hierarchy/tree.d.ts.map +1 -0
  189. package/dist/hierarchy/treemap.d.ts +77 -0
  190. package/dist/hierarchy/treemap.d.ts.map +1 -0
  191. package/dist/index.d.ts +30 -0
  192. package/dist/index.d.ts.map +1 -0
  193. package/dist/index.js +5 -0
  194. package/dist/item-tooltip.d.ts +34 -0
  195. package/dist/item-tooltip.d.ts.map +1 -0
  196. package/dist/join.d.ts +224 -0
  197. package/dist/join.d.ts.map +1 -0
  198. package/dist/math/3d/bar3d.d.ts +28 -0
  199. package/dist/math/3d/bar3d.d.ts.map +1 -0
  200. package/dist/math/3d/quiver3d.d.ts +27 -0
  201. package/dist/math/3d/quiver3d.d.ts.map +1 -0
  202. package/dist/math/3d/scatter3d.d.ts +16 -0
  203. package/dist/math/3d/scatter3d.d.ts.map +1 -0
  204. package/dist/math/3d/stem3d.d.ts +23 -0
  205. package/dist/math/3d/stem3d.d.ts.map +1 -0
  206. package/dist/math/3d/surfaceGrid3d.d.ts +34 -0
  207. package/dist/math/3d/surfaceGrid3d.d.ts.map +1 -0
  208. package/dist/math/3d/trisurface.d.ts +12 -0
  209. package/dist/math/3d/trisurface.d.ts.map +1 -0
  210. package/dist/math/3d/voxels.d.ts +18 -0
  211. package/dist/math/3d/voxels.d.ts.map +1 -0
  212. package/dist/math/aggregate.d.ts +69 -0
  213. package/dist/math/aggregate.d.ts.map +1 -0
  214. package/dist/math/bar.d.ts +32 -0
  215. package/dist/math/bar.d.ts.map +1 -0
  216. package/dist/math/barLabels.d.ts +84 -0
  217. package/dist/math/barLabels.d.ts.map +1 -0
  218. package/dist/math/barbs.d.ts +37 -0
  219. package/dist/math/barbs.d.ts.map +1 -0
  220. package/dist/math/boxplot.d.ts +37 -0
  221. package/dist/math/boxplot.d.ts.map +1 -0
  222. package/dist/math/breadcrumbs.d.ts +129 -0
  223. package/dist/math/breadcrumbs.d.ts.map +1 -0
  224. package/dist/math/bubble.d.ts +39 -0
  225. package/dist/math/bubble.d.ts.map +1 -0
  226. package/dist/math/bullet.d.ts +111 -0
  227. package/dist/math/bullet.d.ts.map +1 -0
  228. package/dist/math/chord.d.ts +104 -0
  229. package/dist/math/chord.d.ts.map +1 -0
  230. package/dist/math/cluster.d.ts +89 -0
  231. package/dist/math/cluster.d.ts.map +1 -0
  232. package/dist/math/contour.d.ts +49 -0
  233. package/dist/math/contour.d.ts.map +1 -0
  234. package/dist/math/contourf.d.ts +51 -0
  235. package/dist/math/contourf.d.ts.map +1 -0
  236. package/dist/math/dodge.d.ts +37 -0
  237. package/dist/math/dodge.d.ts.map +1 -0
  238. package/dist/math/ecdf.d.ts +42 -0
  239. package/dist/math/ecdf.d.ts.map +1 -0
  240. package/dist/math/errorbar.d.ts +28 -0
  241. package/dist/math/errorbar.d.ts.map +1 -0
  242. package/dist/math/eventplot.d.ts +27 -0
  243. package/dist/math/eventplot.d.ts.map +1 -0
  244. package/dist/math/facet.d.ts +91 -0
  245. package/dist/math/facet.d.ts.map +1 -0
  246. package/dist/math/fillBetween.d.ts +29 -0
  247. package/dist/math/fillBetween.d.ts.map +1 -0
  248. package/dist/math/gauge.d.ts +72 -0
  249. package/dist/math/gauge.d.ts.map +1 -0
  250. package/dist/math/hexbin.d.ts +21 -0
  251. package/dist/math/hexbin.d.ts.map +1 -0
  252. package/dist/math/hierarchy.d.ts +180 -0
  253. package/dist/math/hierarchy.d.ts.map +1 -0
  254. package/dist/math/hierarchyJoin.d.ts +60 -0
  255. package/dist/math/hierarchyJoin.d.ts.map +1 -0
  256. package/dist/math/histogram.d.ts +37 -0
  257. package/dist/math/histogram.d.ts.map +1 -0
  258. package/dist/math/histogram2d.d.ts +45 -0
  259. package/dist/math/histogram2d.d.ts.map +1 -0
  260. package/dist/math/imshow.d.ts +27 -0
  261. package/dist/math/imshow.d.ts.map +1 -0
  262. package/dist/math/index.d.ts +140 -0
  263. package/dist/math/index.d.ts.map +1 -0
  264. package/dist/math/index.js +3 -0
  265. package/dist/math/jitter.d.ts +17 -0
  266. package/dist/math/jitter.d.ts.map +1 -0
  267. package/dist/math/join.d.ts +136 -0
  268. package/dist/math/join.d.ts.map +1 -0
  269. package/dist/math/keyframes.d.ts +128 -0
  270. package/dist/math/keyframes.d.ts.map +1 -0
  271. package/dist/math/legend.d.ts +121 -0
  272. package/dist/math/legend.d.ts.map +1 -0
  273. package/dist/math/line.d.ts +54 -0
  274. package/dist/math/line.d.ts.map +1 -0
  275. package/dist/math/morph.d.ts +82 -0
  276. package/dist/math/morph.d.ts.map +1 -0
  277. package/dist/math/mosaic.d.ts +120 -0
  278. package/dist/math/mosaic.d.ts.map +1 -0
  279. package/dist/math/ordinal.d.ts +80 -0
  280. package/dist/math/ordinal.d.ts.map +1 -0
  281. package/dist/math/parallel.d.ts +39 -0
  282. package/dist/math/parallel.d.ts.map +1 -0
  283. package/dist/math/pcolormesh.d.ts +23 -0
  284. package/dist/math/pcolormesh.d.ts.map +1 -0
  285. package/dist/math/pie.d.ts +106 -0
  286. package/dist/math/pie.d.ts.map +1 -0
  287. package/dist/math/polarArea.d.ts +35 -0
  288. package/dist/math/polarArea.d.ts.map +1 -0
  289. package/dist/math/radar.d.ts +111 -0
  290. package/dist/math/radar.d.ts.map +1 -0
  291. package/dist/math/range.d.ts +99 -0
  292. package/dist/math/range.d.ts.map +1 -0
  293. package/dist/math/regression.d.ts +110 -0
  294. package/dist/math/regression.d.ts.map +1 -0
  295. package/dist/math/reveal.d.ts +64 -0
  296. package/dist/math/reveal.d.ts.map +1 -0
  297. package/dist/math/sankey.d.ts +155 -0
  298. package/dist/math/sankey.d.ts.map +1 -0
  299. package/dist/math/scatter.d.ts +15 -0
  300. package/dist/math/scatter.d.ts.map +1 -0
  301. package/dist/math/shared/binning.d.ts +24 -0
  302. package/dist/math/shared/binning.d.ts.map +1 -0
  303. package/dist/math/shared/gridCells.d.ts +42 -0
  304. package/dist/math/shared/gridCells.d.ts.map +1 -0
  305. package/dist/math/shared/gridExtent.d.ts +6 -0
  306. package/dist/math/shared/gridExtent.d.ts.map +1 -0
  307. package/dist/math/shared/pairs.d.ts +3 -0
  308. package/dist/math/shared/pairs.d.ts.map +1 -0
  309. package/dist/math/shared/polar.d.ts +24 -0
  310. package/dist/math/shared/polar.d.ts.map +1 -0
  311. package/dist/math/stack.d.ts +70 -0
  312. package/dist/math/stack.d.ts.map +1 -0
  313. package/dist/math/stackplot.d.ts +36 -0
  314. package/dist/math/stackplot.d.ts.map +1 -0
  315. package/dist/math/stairs.d.ts +18 -0
  316. package/dist/math/stairs.d.ts.map +1 -0
  317. package/dist/math/stem.d.ts +22 -0
  318. package/dist/math/stem.d.ts.map +1 -0
  319. package/dist/math/symbol.d.ts +26 -0
  320. package/dist/math/symbol.d.ts.map +1 -0
  321. package/dist/math/tree.d.ts +118 -0
  322. package/dist/math/tree.d.ts.map +1 -0
  323. package/dist/math/tricontour.d.ts +77 -0
  324. package/dist/math/tricontour.d.ts.map +1 -0
  325. package/dist/math/violin.d.ts +100 -0
  326. package/dist/math/violin.d.ts.map +1 -0
  327. package/dist/math/waffle.d.ts +49 -0
  328. package/dist/math/waffle.d.ts.map +1 -0
  329. package/dist/math/waterfall.d.ts +29 -0
  330. package/dist/math/waterfall.d.ts.map +1 -0
  331. package/dist/math-CSHNpGej.js +3648 -0
  332. package/dist/mix.d.ts +25 -0
  333. package/dist/mix.d.ts.map +1 -0
  334. package/dist/multiview/brush.d.ts +166 -0
  335. package/dist/multiview/brush.d.ts.map +1 -0
  336. package/dist/multiview/chart-group.d.ts +266 -0
  337. package/dist/multiview/chart-group.d.ts.map +1 -0
  338. package/dist/multiview/chart-link.d.ts +189 -0
  339. package/dist/multiview/chart-link.d.ts.map +1 -0
  340. package/dist/multiview/chart-zoom.d.ts +145 -0
  341. package/dist/multiview/chart-zoom.d.ts.map +1 -0
  342. package/dist/multiview/facet.d.ts +239 -0
  343. package/dist/multiview/facet.d.ts.map +1 -0
  344. package/dist/multiview/group-guides.d.ts +100 -0
  345. package/dist/multiview/group-guides.d.ts.map +1 -0
  346. package/dist/multiview/index.d.ts +18 -0
  347. package/dist/multiview/index.d.ts.map +1 -0
  348. package/dist/multiview/joint-plot.d.ts +115 -0
  349. package/dist/multiview/joint-plot.d.ts.map +1 -0
  350. package/dist/multiview/pair-plot.d.ts +154 -0
  351. package/dist/multiview/pair-plot.d.ts.map +1 -0
  352. package/dist/multiview/panels.d.ts +23 -0
  353. package/dist/multiview/panels.d.ts.map +1 -0
  354. package/dist/multiview/parallel-coordinates.d.ts +110 -0
  355. package/dist/multiview/parallel-coordinates.d.ts.map +1 -0
  356. package/dist/points/event-plot.d.ts +68 -0
  357. package/dist/points/event-plot.d.ts.map +1 -0
  358. package/dist/points/index.d.ts +20 -0
  359. package/dist/points/index.d.ts.map +1 -0
  360. package/dist/points/labels.d.ts +71 -0
  361. package/dist/points/labels.d.ts.map +1 -0
  362. package/dist/points/links.d.ts +124 -0
  363. package/dist/points/links.d.ts.map +1 -0
  364. package/dist/points/rects.d.ts +81 -0
  365. package/dist/points/rects.d.ts.map +1 -0
  366. package/dist/points/rug.d.ts +73 -0
  367. package/dist/points/rug.d.ts.map +1 -0
  368. package/dist/points/scatter.d.ts +170 -0
  369. package/dist/points/scatter.d.ts.map +1 -0
  370. package/dist/points/segment-marks.d.ts +40 -0
  371. package/dist/points/segment-marks.d.ts.map +1 -0
  372. package/dist/points/shared.d.ts +35 -0
  373. package/dist/points/shared.d.ts.map +1 -0
  374. package/dist/points/stem.d.ts +76 -0
  375. package/dist/points/stem.d.ts.map +1 -0
  376. package/dist/points/strip.d.ts +146 -0
  377. package/dist/points/strip.d.ts.map +1 -0
  378. package/dist/points/symbol-marker.d.ts +34 -0
  379. package/dist/points/symbol-marker.d.ts.map +1 -0
  380. package/dist/points/ticks.d.ts +103 -0
  381. package/dist/points/ticks.d.ts.map +1 -0
  382. package/dist/props.d.ts +127 -0
  383. package/dist/props.d.ts.map +1 -0
  384. package/dist/radial/chord.d.ts +149 -0
  385. package/dist/radial/chord.d.ts.map +1 -0
  386. package/dist/radial/gauge.d.ts +127 -0
  387. package/dist/radial/gauge.d.ts.map +1 -0
  388. package/dist/radial/index.d.ts +16 -0
  389. package/dist/radial/index.d.ts.map +1 -0
  390. package/dist/radial/pie-chart.d.ts +144 -0
  391. package/dist/radial/pie-chart.d.ts.map +1 -0
  392. package/dist/radial/polar-area-chart.d.ts +136 -0
  393. package/dist/radial/polar-area-chart.d.ts.map +1 -0
  394. package/dist/radial/radar-chart.d.ts +177 -0
  395. package/dist/radial/radar-chart.d.ts.map +1 -0
  396. package/dist/radial/radial-bar-chart.d.ts +117 -0
  397. package/dist/radial/radial-bar-chart.d.ts.map +1 -0
  398. package/dist/radial/shared.d.ts +79 -0
  399. package/dist/radial/shared.d.ts.map +1 -0
  400. package/dist/radial/waffle.d.ts +131 -0
  401. package/dist/radial/waffle.d.ts.map +1 -0
  402. package/dist/raster.d.ts +44 -0
  403. package/dist/raster.d.ts.map +1 -0
  404. package/dist/series.d.ts +72 -0
  405. package/dist/series.d.ts.map +1 -0
  406. package/dist/src-CwGo1bes.js +19221 -0
  407. package/dist/stagger.d.ts +55 -0
  408. package/dist/stagger.d.ts.map +1 -0
  409. package/dist/statistics/box-plot.d.ts +152 -0
  410. package/dist/statistics/box-plot.d.ts.map +1 -0
  411. package/dist/statistics/error-bar.d.ts +149 -0
  412. package/dist/statistics/error-bar.d.ts.map +1 -0
  413. package/dist/statistics/groups.d.ts +141 -0
  414. package/dist/statistics/groups.d.ts.map +1 -0
  415. package/dist/statistics/index.d.ts +8 -0
  416. package/dist/statistics/index.d.ts.map +1 -0
  417. package/dist/statistics/violin-plot.d.ts +144 -0
  418. package/dist/statistics/violin-plot.d.ts.map +1 -0
  419. package/dist/text-width.d.ts +10 -0
  420. package/dist/text-width.d.ts.map +1 -0
  421. package/dist/tooltip.d.ts +277 -0
  422. package/dist/tooltip.d.ts.map +1 -0
  423. package/dist/util.d.ts +34 -0
  424. package/dist/util.d.ts.map +1 -0
  425. package/dist/voxels-9lJ2TZS4.js +235 -0
  426. package/dist/wireframe3d-D157GZAq.js +345 -0
  427. package/package.json +86 -3
@@ -0,0 +1,34 @@
1
+ /**
2
+ * `symbolMarker`: the shape a scatter's markers are instances of. Internal
3
+ * (not in the family barrel, so no binding is generated for it).
4
+ *
5
+ * An instances node of this shape covers every symbol at once, and the
6
+ * core picks the cheapest spec for what the items hold:
7
+ *
8
+ * - every item a circle: `circle` marks (the renderer's splat path), the
9
+ * same spec `instances(circle, ...)` publishes;
10
+ * - one other symbol and one radius: one shared `outline`, placed per item;
11
+ * - mixed symbols or radii: a `paths` mark (one outline per distinct
12
+ * symbol and radius, cached by the instances node).
13
+ *
14
+ * The radius is a geometry input rather than a `scale`, so a marker's
15
+ * outline stroke keeps its width at any size.
16
+ */
17
+ import type { ShapeInstanceable, ShapeProps } from "@sophistry/core";
18
+ import type { Point } from "@sophistry/core/geometry";
19
+ import type { SymbolName } from "../math/symbol";
20
+ /** Props of {@link symbolMarker}. */
21
+ export interface SymbolMarkerProps extends ShapeProps {
22
+ /** Centre, in scene units. */
23
+ center?: Point;
24
+ /** The radius of the circle whose area the symbol has. */
25
+ radius?: number;
26
+ /** The symbol. @default "circle" */
27
+ symbol?: SymbolName;
28
+ }
29
+ /**
30
+ * A scatter marker: a circle, or a symbol with the area of a circle of
31
+ * `radius`, centred on `center`.
32
+ */
33
+ export declare const symbolMarker: import("@sophistry/core").Definition<SymbolMarkerProps, import("@sophistry/core").ShapeNode<SymbolMarkerProps>, "center" | "radius" | "symbol" | ShapeInstanceable>;
34
+ //# sourceMappingURL=symbol-marker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"symbol-marker.d.ts","sourceRoot":"","sources":["../../src/points/symbol-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,qCAAqC;AACrC,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACpD,8BAA8B;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,0DAA0D;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oCAAoC;IACpC,MAAM,CAAC,EAAE,UAAU,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,qKA0CvB,CAAC"}
@@ -0,0 +1,103 @@
1
+ /**
2
+ * `tickX` / `tickY`: short marks at positions along one axis, a rug on the
3
+ * axis or one tick spanning each band (a strip plot). One `line` instances
4
+ * node per layer (see `segment-marks.ts`).
5
+ */
6
+ import type { BandKey } from "@sophistry/core/geometry";
7
+ import type { MarkTransition } from "../batch";
8
+ import type { Channel, ColorChannel, PositionValue } from "../data/channels";
9
+ import type { KeyedTransitionProps, RevealProps } from "../props";
10
+ import type { TooltipSpec } from "../tooltip";
11
+ /**
12
+ * What {@link tickX} and {@link tickY} share.
13
+ *
14
+ * @category Charts
15
+ */
16
+ export interface TickBaseProps<T> extends KeyedTransitionProps<T>, RevealProps {
17
+ /** One tick per datum. */
18
+ data: readonly T[];
19
+ /**
20
+ * Tick length, when not spanning a band.
21
+ * @default 0.3
22
+ */
23
+ length?: number;
24
+ /** Tick colour, constant or `(d, i) => colour`. Defaults to the theme's first series colour. */
25
+ color?: ColorChannel<T>;
26
+ /** Line width. */
27
+ strokeWidth?: number;
28
+ opacity?: number;
29
+ /**
30
+ * Reveal, 0..1: each tick draws from its low end.
31
+ * @default 1
32
+ */
33
+ progress?: number;
34
+ /** Hover tooltip: `true` for its category (if any) and value, or a template, function or options. */
35
+ tooltip?: TooltipSpec<T>;
36
+ /** How ticks move when `data` changes outside a `to` blend; see {@link MarkTransition}. */
37
+ transition?: MarkTransition;
38
+ zIndex?: number;
39
+ visible?: boolean;
40
+ }
41
+ /**
42
+ * Props of {@link tickX}.
43
+ *
44
+ * @category Charts
45
+ */
46
+ export interface TickXProps<T = unknown> extends TickBaseProps<T> {
47
+ /** Position along x, in data units (a `Date` reads as epoch ms). Defaults to the datum when `data` is `number[]`. */
48
+ x?: Channel<T, PositionValue>;
49
+ /**
50
+ * Which row the tick sits in: a category on a band y axis spans that band (a strip plot); a
51
+ * number centres a `length`-long tick on it. Omitted, the tick sits on the x axis (a rug).
52
+ */
53
+ y?: Channel<T, BandKey | PositionValue>;
54
+ }
55
+ /**
56
+ * Props of {@link tickY}.
57
+ *
58
+ * @category Charts
59
+ */
60
+ export interface TickYProps<T = unknown> extends TickBaseProps<T> {
61
+ /** Position along y, in data units (a `Date` reads as epoch ms). Defaults to the datum when `data` is `number[]`. */
62
+ y?: Channel<T, PositionValue>;
63
+ /** Which column the tick sits in; see {@link TickXProps.y}. Omitted, the tick sits on the y axis. */
64
+ x?: Channel<T, BandKey | PositionValue>;
65
+ }
66
+ /**
67
+ * Short vertical marks at x positions: a rug on the x axis, or with a category `y` one tick
68
+ * spanning each band, a strip plot that never overplots into a blob. One instances node.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * import { chart, tickX } from "@sophistry/charts";
73
+ *
74
+ * const rows = [
75
+ * { group: "a", value: 3 },
76
+ * { group: "b", value: 5 },
77
+ * ];
78
+ * chart.create({ width: 8, height: 4, children: [tickX.create({ data: rows, x: "value", y: "group" })] });
79
+ * ```
80
+ *
81
+ * @see https://sophistry.dev/reference/chart-catalogue/#distributions
82
+ * @category Charts
83
+ */
84
+ export declare const tickX: import("@sophistry/core").Definition<TickXProps<any>, import("@sophistry/core/internal").CompositeNode<TickXProps<any>>, keyof TickXProps<any>>;
85
+ /**
86
+ * Short horizontal marks at y positions: the transpose of {@link tickX}.
87
+ *
88
+ * @example
89
+ * ```ts
90
+ * import { chart, tickY } from "@sophistry/charts";
91
+ *
92
+ * const rows = [
93
+ * { group: "a", value: 3 },
94
+ * { group: "b", value: 5 },
95
+ * ];
96
+ * chart.create({ width: 8, height: 4, children: [tickY.create({ data: rows, y: "value", x: "group" })] });
97
+ * ```
98
+ *
99
+ * @see https://sophistry.dev/reference/chart-catalogue/#distributions
100
+ * @category Charts
101
+ */
102
+ export declare const tickY: import("@sophistry/core").Definition<TickYProps<any>, import("@sophistry/core/internal").CompositeNode<TickYProps<any>>, keyof TickYProps<any>>;
103
+ //# sourceMappingURL=ticks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ticks.d.ts","sourceRoot":"","sources":["../../src/points/ticks.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAoB,MAAM,0BAA0B,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAiB7E,OAAO,KAAK,EAAY,oBAAoB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,YAAY,CAAC;AAS5D;;;;GAIG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,oBAAoB,CAAC,CAAC,CAAC,EAAE,WAAW;IAC7E,0BAA0B;IAC1B,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,KAAK,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACxB,kBAAkB;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qGAAqG;IACrG,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACzB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAChE,qHAAqH;IACrH,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;IAC9B;;;OAGG;IACH,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,CAAC;CACxC;AAED;;;;GAIG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,aAAa,CAAC,CAAC,CAAC;IAChE,qHAAqH;IACrH,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;IAC9B,qGAAqG;IACrG,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,aAAa,CAAC,CAAC;CACxC;AA8WD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,KAAK,iJAIhB,CAAC;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,KAAK,iJAIhB,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Props shared by chart marks, documented once here: the data transition
3
+ * (`to`, `blend`, `staging`, `enterStagger`, `key`), the staggered reveal
4
+ * (`stagger`) and the named reveal styles. A mark re-declares a prop only
5
+ * where its meaning is narrower.
6
+ */
7
+ import type { BandKey } from "@sophistry/core/geometry";
8
+ import type { Channel } from "./data/channels";
9
+ import type { JoinStaging } from "./math/join";
10
+ /**
11
+ * Order for `stagger` and `enterStagger`: `"position"` follows the mark's own
12
+ * layout (along x, by value, by category); `"random"` shuffles by a hash of
13
+ * each datum's `key`, the same every frame, so it scrubs.
14
+ *
15
+ * @see https://sophistry.dev/guides/chart-animation/#reveals
16
+ * @category Charts
17
+ */
18
+ export type StaggerOrder = "position" | "random";
19
+ /**
20
+ * How a curve-like mark (`<LinePlot>`, `<Ecdf>`, `<Stairs>`, `<FillBetween>`)
21
+ * reveals: `"x"` sweeps left to right, `"length"` draws along its arc length.
22
+ *
23
+ * @see https://sophistry.dev/guides/chart-animation/#reveals
24
+ * @category Charts
25
+ */
26
+ export type CurveReveal = "x" | "length";
27
+ /** How `<Density>` reveals: `"x"` sweeps in along x, `"grow"` rises from the baseline. @category Charts */
28
+ export type DensityReveal = "x" | "grow";
29
+ /** How `<StackPlot>` reveals: `"grow"` from the baseline, `"x"` along x, `"length"` by arc length. @category Charts */
30
+ export type StackReveal = "grow" | "x" | "length";
31
+ /** How bars reveal: `"grow"` out of their foot, `"stack"` scaled about zero together, `"fade"` in place. @category Charts */
32
+ export type BarReveal = "grow" | "stack" | "fade";
33
+ /** How a radial mark (`<PieChart>`, `<RadarChart>`) reveals: `"grow"` out from the centre, `"sweep"` round the turn. @category Charts */
34
+ export type RadialReveal = "grow" | "sweep";
35
+ /** How a frame's layers reveal: `"layers"` each its own way, `"x"` behind one shared front. @category Charts */
36
+ export type LayersReveal = "layers" | "x";
37
+ /**
38
+ * A mark's data transition from `data` to `to`, driven by `blend`.
39
+ *
40
+ * @see https://sophistry.dev/guides/chart-animation/#data-transitions
41
+ * @category Charts
42
+ */
43
+ export interface TransitionProps<T> {
44
+ /**
45
+ * The data to transition to. Marks in both `data` and `to` move, marks only
46
+ * in `to` enter, marks only in `data` exit. At `blend` 0 the chart shows
47
+ * `data`, at 1 it shows `to`.
48
+ */
49
+ to?: readonly T[];
50
+ /** Transition progress from `data` (0) to `to` (1). @default 0 */
51
+ blend?: number;
52
+ /**
53
+ * How `blend` is spent: `"staged"` runs exit, then move, then enter, each
54
+ * eased (so drive `blend` linearly); `"together"` runs all at once, linearly.
55
+ * @default "staged"
56
+ */
57
+ staging?: JoinStaging;
58
+ /**
59
+ * Fraction of the enter stage spent staggering entering marks in `to`'s
60
+ * order, 0..0.95; 0 enters them together. Moves and exits never stagger.
61
+ * @default 0
62
+ */
63
+ enterStagger?: number;
64
+ }
65
+ /**
66
+ * {@link TransitionProps} for a per-datum mark, matching data between the
67
+ * two ends by `key`.
68
+ *
69
+ * @see https://sophistry.dev/guides/chart-animation/#data-transitions
70
+ * @category Charts
71
+ */
72
+ export interface KeyedTransitionProps<T> extends TransitionProps<T> {
73
+ /**
74
+ * Each mark's identity: a key of `T` or `(d, i) => key`. A datum with the
75
+ * same key keeps its mark across updates and transitions. Defaults to the datum's index.
76
+ */
77
+ key?: Channel<T, BandKey>;
78
+ }
79
+ /**
80
+ * {@link TransitionProps} for a mark drawing one shape per `series` (lines,
81
+ * curves, areas): shapes are matched by `series` and morphed.
82
+ *
83
+ * @see https://sophistry.dev/guides/chart-animation/#data-transitions
84
+ * @category Charts
85
+ */
86
+ export interface SeriesTransitionProps<T> extends TransitionProps<T> {
87
+ /** As {@link TransitionProps.staging}, with series morphing in the move stage. @default "staged" */
88
+ staging?: JoinStaging;
89
+ /**
90
+ * Fraction of the enter stage spent staggering entering series in `to`'s
91
+ * order, 0..0.95; each sweeps in over its own share. Moves and exits never
92
+ * stagger.
93
+ * @default 0
94
+ */
95
+ enterStagger?: number;
96
+ }
97
+ /**
98
+ * A mark's staggered reveal.
99
+ *
100
+ * @see https://sophistry.dev/guides/chart-animation/#reveals
101
+ * @category Charts
102
+ */
103
+ export interface RevealProps {
104
+ /**
105
+ * Fraction of the reveal spent staggering one mark after the next, 0..0.95;
106
+ * 0 reveals all marks together.
107
+ * @default 0
108
+ */
109
+ stagger?: number;
110
+ }
111
+ /** Checks at compile time that a key list names every key of `P` and nothing else. */
112
+ export declare const TRANSITION_KEYS: readonly ["to", "blend", "staging", "enterStagger"];
113
+ /** {@link KeyedTransitionProps}' keys. */
114
+ export declare const KEYED_TRANSITION_KEYS: readonly ["to", "blend", "staging", "enterStagger", "key"];
115
+ /** {@link RevealProps}' keys. */
116
+ export declare const REVEAL_KEYS: readonly ["stagger"];
117
+ /**
118
+ * The datum type chart definitions are declared over. A definition is one
119
+ * value (`scatter`), not a generic function, so its props cannot follow the
120
+ * type of `data`; over `any`, a channel key is any string and a channel
121
+ * function receives the datum untyped. Annotate the function's parameter
122
+ * (`(d: Row) => d.sales`) for checked reads.
123
+ *
124
+ * @category Channels
125
+ */
126
+ export type AnyDatum = any;
127
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../src/props.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,QAAQ,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,GAAG,GAAG,QAAQ,CAAC;AAEzC,2GAA2G;AAC3G,MAAM,MAAM,aAAa,GAAG,GAAG,GAAG,MAAM,CAAC;AAEzC,uHAAuH;AACvH,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,GAAG,GAAG,QAAQ,CAAC;AAElD,6HAA6H;AAC7H,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAElD,yIAAyI;AACzI,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,CAAC;AAE5C,gHAAgH;AAChH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,GAAG,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC;IACjC;;;;OAIG;IACH,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;IAClB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB,CAAC,CAAC,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IAClE;;;OAGG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAC;IACnE,oGAAoG;IACpG,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,sFAAsF;AACtF,eAAO,MAAM,eAAe,qDAK1B,CAAC;AAEH,0CAA0C;AAC1C,eAAO,MAAM,qBAAqB,4DAGhC,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,WAAW,sBAAqC,CAAC;AAE9D;;;;;;;;GAQG;AAEH,MAAM,MAAM,QAAQ,GAAG,GAAG,CAAC"}
@@ -0,0 +1,149 @@
1
+ /**
2
+ * `chord`: flows between groups round a circle.
3
+ *
4
+ * Two path batches: the ribbons (each its own fill and fade, paint order
5
+ * under the ring) and the group arcs (each its own fill). Hover, taps,
6
+ * tooltips and accessible names resolve per ribbon and per arc through
7
+ * `event.item` / `itemLabel`. Group names are anchored `label` nodes.
8
+ */
9
+ import type { ColorInput } from "@sophistry/core";
10
+ import type { Point } from "@sophistry/core/geometry";
11
+ import type { Channel, ColorChannel, RequiredUnless } from "../data/channels";
12
+ import type { SankeyId } from "../math/sankey";
13
+ import type { TooltipSpec } from "../tooltip";
14
+ /** @category Charts */
15
+ export interface ChordBaseProps<L, N> {
16
+ /** The flows, one per datum; flows between the same two groups (same direction) add up. */
17
+ data: readonly L[];
18
+ /** The group a flow leaves. */
19
+ source: Channel<L, SankeyId>;
20
+ /** The group a flow enters. */
21
+ target: Channel<L, SankeyId>;
22
+ /** The flow's size; non-finite and negative values count as 0. */
23
+ value: Channel<L, number>;
24
+ /**
25
+ * The groups, in the order they go round the circle and are coloured. Every id a flow names
26
+ * must be here (else throws). Defaults to the flows' endpoints in first-seen order.
27
+ */
28
+ nodes?: readonly N[];
29
+ /**
30
+ * A group's id, matched against `source`/`target`. Defaults to the datum itself, when `nodes`
31
+ * is `(string | number)[]`.
32
+ */
33
+ nodeId?: Channel<N, SankeyId>;
34
+ /** The text beside a group's arc. Defaults to its id. */
35
+ nodeLabel?: Channel<N, string>;
36
+ /** Centre of the diagram. Defaults to the origin. */
37
+ center?: Point;
38
+ /**
39
+ * Outer radius of the ring; labels sit outside it.
40
+ * @default 2
41
+ */
42
+ radius?: number;
43
+ /** Thickness of the ring. Defaults to 0.08 × `radius`. */
44
+ thickness?: number;
45
+ /**
46
+ * Gap between neighbouring groups, in radians.
47
+ * @default 0.04
48
+ */
49
+ padAngle?: number;
50
+ /**
51
+ * Angle the first group begins at, in radians from +x. The default is 12 o'clock.
52
+ * @default Math.PI / 2
53
+ */
54
+ startAngle?: number;
55
+ /**
56
+ * Go round clockwise.
57
+ * @default true
58
+ */
59
+ clockwise?: boolean;
60
+ /**
61
+ * One chord per flow direction, and arcs sized by inflow plus outflow, so a group that only
62
+ * receives still shows. Otherwise one chord per pair of groups, arcs sized by outflow.
63
+ * @default false
64
+ */
65
+ directed?: boolean;
66
+ /**
67
+ * With `directed`: draw each chord's receiving end as an arrowhead.
68
+ * @default false
69
+ */
70
+ arrows?: boolean;
71
+ /** Length of an arrowhead. Defaults to 0.08 × `radius`. */
72
+ arrowSize?: number;
73
+ /** Group colours, cycled by group order. Defaults to the theme's categorical colours. */
74
+ colors?: readonly ColorInput[];
75
+ /**
76
+ * A chord's colour: its `"source"` group's (the larger end, or the sender when `directed`), its
77
+ * `"target"` group's, or a colour channel given the chord's first flow.
78
+ * @default "source"
79
+ */
80
+ ribbonColor?: "source" | "target" | ColorChannel<L>;
81
+ /**
82
+ * Fill opacity of the chords, 0..1.
83
+ * @default 0.55
84
+ */
85
+ ribbonOpacity?: number;
86
+ /**
87
+ * Draw group labels.
88
+ * @default true
89
+ */
90
+ labels?: boolean;
91
+ /**
92
+ * Font size of group labels.
93
+ * @default 0.22
94
+ */
95
+ labelFontSize?: number;
96
+ /**
97
+ * Reveal, 0..1: the ring sweeps round from `startAngle` with its labels, then the chords fade
98
+ * in.
99
+ * @default 1
100
+ * @see https://sophistry.dev/guides/chart-animation/#reveals
101
+ */
102
+ progress?: number;
103
+ /**
104
+ * Fraction of the chords' reveal spent staggering them, 0..0.95.
105
+ * @default 0.5
106
+ */
107
+ stagger?: number;
108
+ /**
109
+ * Hover tooltip: `true` shows "A → B: value" on a chord and "name: value" on a group; a
110
+ * function replaces the chord text, given its first flow.
111
+ */
112
+ tooltip?: TooltipSpec<L>;
113
+ /** Paint order of the chords; the ring paints above them. */
114
+ zIndex?: number;
115
+ visible?: boolean;
116
+ }
117
+ /**
118
+ * Props of {@link chord}: `nodeId` is required when `nodes` holds records.
119
+ *
120
+ * @category Charts
121
+ */
122
+ export type ChordProps<L, N = SankeyId> = ChordBaseProps<L, N> & RequiredUnless<N, SankeyId, "nodeId">;
123
+ /**
124
+ * A chord diagram: flows between groups round a circle. Each group is an arc as long as its
125
+ * total, and each pair with any flow is joined by a ribbon as wide as the flow each way. Takes
126
+ * `source`/`target`/`value` like `sankey`; draws in scene units. Ribbons and arcs are one path
127
+ * batch each. See {@link chordLayout} and {@link chordRibbon} for the geometry alone.
128
+ *
129
+ * @example
130
+ * ```ts
131
+ * import { chord } from "@sophistry/charts";
132
+ *
133
+ * chord.create({
134
+ * data: [
135
+ * { from: "north", to: "south", n: 5 },
136
+ * { from: "south", to: "north", n: 3 },
137
+ * ],
138
+ * source: "from",
139
+ * target: "to",
140
+ * value: "n",
141
+ * tooltip: true,
142
+ * });
143
+ * ```
144
+ *
145
+ * @see https://sophistry.dev/reference/chart-catalogue/#flows
146
+ * @category Charts
147
+ */
148
+ export declare const chord: import("@sophistry/core").Definition<ChordBaseProps<any, any>, import("@sophistry/core/internal").CompositeNode<ChordBaseProps<any, any>>, keyof ChordBaseProps<any, any>>;
149
+ //# sourceMappingURL=chord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chord.d.ts","sourceRoot":"","sources":["../../src/radial/chord.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACX,UAAU,EAMV,MAAM,iBAAiB,CAAC;AAEzB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAQtD,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAU9E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAuB9C,uBAAuB;AACvB,MAAM,WAAW,cAAc,CAAC,CAAC,EAAE,CAAC;IACnC,2FAA2F;IAC3F,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IACnB,+BAA+B;IAC/B,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC7B,+BAA+B;IAC/B,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC7B,kEAAkE;IAClE,KAAK,EAAE,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;IAC/B,qDAAqD;IACrD,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yFAAyF;IACzF,MAAM,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B;;;;OAIG;IACH,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;IACpD;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACzB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,IAAI,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,GAC7D,cAAc,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AA+YvC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,KAAK,4KAoEhB,CAAC"}
@@ -0,0 +1,127 @@
1
+ /**
2
+ * `gauge`: one value on an arc with a centre readout.
3
+ *
4
+ * One reading, so mostly single nodes: the track and the value arc
5
+ * (`annularSector`), the needle and its hub, the counting readout
6
+ * (`decimalNumber`) and the captions. The threshold bands, one outline each,
7
+ * draw as one path batch. Nodes are made once and shown or hidden; none is
8
+ * rebuilt while the reveal plays.
9
+ */
10
+ import type { ColorInput } from "@sophistry/core";
11
+ import type { Point } from "@sophistry/core/geometry";
12
+ import type { TooltipSpec } from "../tooltip";
13
+ /**
14
+ * One threshold zone of a {@link gauge}, given by where it *ends*.
15
+ *
16
+ * @category Charts
17
+ */
18
+ export interface GaugeBand {
19
+ /**
20
+ * The value this band runs up to, in data units, starting where the previous band ends (or at
21
+ * `min`). `Infinity` means "to `max`".
22
+ */
23
+ to: number;
24
+ /** The band's colour. Defaults to the theme's categorical colours, by band index. */
25
+ color?: ColorInput;
26
+ }
27
+ /** @category Charts */
28
+ export interface GaugeProps {
29
+ /**
30
+ * The reading, in data units. Drawn clamped to `[min, max]`; the readout shows it unclamped.
31
+ */
32
+ value: number;
33
+ /**
34
+ * The value at the start of the arc.
35
+ * @default 0
36
+ */
37
+ min?: number;
38
+ /**
39
+ * The value at the end of the arc.
40
+ * @default 100
41
+ */
42
+ max?: number;
43
+ /** Centre of the gauge. Defaults to the origin. */
44
+ center?: Point;
45
+ /**
46
+ * Outer radius of the arc.
47
+ * @default 1
48
+ */
49
+ radius?: number;
50
+ /** Radial thickness of the arc. Defaults to 0.18 × `radius`. */
51
+ thickness?: number;
52
+ /**
53
+ * Where `min` sits, in radians from +x (counter-clockwise positive, as on `arc`). The default
54
+ * is 210°: with the default `endAngle`, a 240° arc open at the bottom.
55
+ * @default 7 * Math.PI / 6
56
+ */
57
+ startAngle?: number;
58
+ /**
59
+ * Where `max` sits, in radians from +x; less than `startAngle` reads clockwise.
60
+ * @default -Math.PI / 6
61
+ */
62
+ endAngle?: number;
63
+ /**
64
+ * Threshold zones in ascending order (`[{ to: 60 }, { to: 85 }, { to: 100 }]`), drawn as a thin
65
+ * track inside the arc. Unless `color` is given, the value arc takes its band's colour.
66
+ */
67
+ bands?: readonly GaugeBand[];
68
+ /**
69
+ * Colour of the value arc. Defaults to the value's band colour, else the theme's first series
70
+ * colour.
71
+ */
72
+ color?: ColorInput;
73
+ /** Colour of the empty track behind the value arc. Defaults to the theme's grid colour. */
74
+ trackColor?: ColorInput;
75
+ /**
76
+ * Draw a needle from the centre to the value.
77
+ * @default false
78
+ */
79
+ needle?: boolean;
80
+ /**
81
+ * Decimal places of the readout (and tooltip).
82
+ * @default 0
83
+ */
84
+ decimalPlaces?: number;
85
+ /** Suffix on the readout, e.g. `"%"` or `" ms"`. */
86
+ unit?: string;
87
+ /** Readout font size. Defaults to 0.36 × `radius`. */
88
+ valueFontSize?: number;
89
+ /** Caption under the readout. */
90
+ label?: string;
91
+ /** Font size of `label` and the range labels. Defaults to 0.14 × `radius`. */
92
+ labelFontSize?: number;
93
+ /**
94
+ * Write `min` and `max` at the ends of the arc.
95
+ * @default true
96
+ */
97
+ rangeLabels?: boolean;
98
+ /**
99
+ * Reveal, 0..1: track and bands sweep in first, then the value arc sweeps to the value while
100
+ * the readout counts up.
101
+ * @default 1
102
+ * @see https://sophistry.dev/guides/chart-animation/#reveals
103
+ */
104
+ progress?: number;
105
+ /** Hover tooltip on the value arc: `true` for "label: value", or `(value) => string`. */
106
+ tooltip?: TooltipSpec<number>;
107
+ /** Paint order; higher draws later. */
108
+ zIndex?: number;
109
+ visible?: boolean;
110
+ }
111
+ /**
112
+ * A gauge: one value on an arc with a centre readout, the KPI dial of a dashboard. Optional
113
+ * threshold `bands` colour the value by zone; `needle` adds a pointer. Draws in scene units;
114
+ * needs no `chart`.
115
+ *
116
+ * @example
117
+ * ```ts
118
+ * import { gauge } from "@sophistry/charts";
119
+ *
120
+ * gauge.create({ value: 72, unit: "%", label: "CPU", bands: [{ to: 60 }, { to: 85 }, { to: 100 }] });
121
+ * ```
122
+ *
123
+ * @see https://sophistry.dev/reference/chart-catalogue/#gauges-bullets-waffles-mosaics-and-radial-bars
124
+ * @category Charts
125
+ */
126
+ export declare const gauge: import("@sophistry/core").Definition<GaugeProps, import("@sophistry/core/internal").CompositeNode<GaugeProps>, keyof GaugeProps>;
127
+ //# sourceMappingURL=gauge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gauge.d.ts","sourceRoot":"","sources":["../../src/radial/gauge.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAEX,UAAU,EAKV,MAAM,iBAAiB,CAAC;AAazB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAUtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAY9C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACzB;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,qFAAqF;IACrF,KAAK,CAAC,EAAE,UAAU,CAAC;CACnB;AAED,uBAAuB;AACvB,MAAM,WAAW,UAAU;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,MAAM,CAAC,EAAE,KAAK,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,2FAA2F;IAC3F,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8EAA8E;IAC9E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yFAAyF;IACzF,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAkQD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,KAAK,kIA6ChB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /** Family barrel: radial. Owned by its family; re-exported from the package entry. */
2
+ export type { ChordBaseProps, ChordProps } from "./chord";
3
+ export { chord } from "./chord";
4
+ export type { GaugeBand, GaugeProps } from "./gauge";
5
+ export { gauge } from "./gauge";
6
+ export type { PieChartBaseProps, PieChartProps } from "./pie-chart";
7
+ export { pieChart } from "./pie-chart";
8
+ export type { PolarAreaChartBaseProps, PolarAreaChartProps, } from "./polar-area-chart";
9
+ export { polarAreaChart } from "./polar-area-chart";
10
+ export type { RadarChartBaseProps, RadarChartProps } from "./radar-chart";
11
+ export { radarChart } from "./radar-chart";
12
+ export type { RadialBarChartBaseProps, RadialBarChartProps, } from "./radial-bar-chart";
13
+ export { radialBarChart } from "./radial-bar-chart";
14
+ export type { WaffleBaseProps, WaffleProps } from "./waffle";
15
+ export { waffle } from "./waffle";
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radial/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,YAAY,EACX,uBAAuB,EACvB,mBAAmB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EACX,uBAAuB,EACvB,mBAAmB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}