@ggts-sh/react 0.43.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 (302) hide show
  1. package/README.md +66 -0
  2. package/dist/GGPlot.d.ts +6 -0
  3. package/dist/GGPlot.d.ts.map +1 -0
  4. package/dist/GGPlot.js +18 -0
  5. package/dist/GGPlot.js.map +1 -0
  6. package/dist/datum-key.d.ts +21 -0
  7. package/dist/datum-key.d.ts.map +1 -0
  8. package/dist/datum-key.js +60 -0
  9. package/dist/datum-key.js.map +1 -0
  10. package/dist/defined-props.d.ts +3 -0
  11. package/dist/defined-props.d.ts.map +1 -0
  12. package/dist/defined-props.js +11 -0
  13. package/dist/defined-props.js.map +1 -0
  14. package/dist/geom-factory.d.ts +17 -0
  15. package/dist/geom-factory.d.ts.map +1 -0
  16. package/dist/geom-factory.js +63 -0
  17. package/dist/geom-factory.js.map +1 -0
  18. package/dist/geoms/GeomAbline.d.ts +8 -0
  19. package/dist/geoms/GeomAbline.d.ts.map +1 -0
  20. package/dist/geoms/GeomAbline.js +8 -0
  21. package/dist/geoms/GeomAbline.js.map +1 -0
  22. package/dist/geoms/GeomArea.d.ts +8 -0
  23. package/dist/geoms/GeomArea.d.ts.map +1 -0
  24. package/dist/geoms/GeomArea.js +6 -0
  25. package/dist/geoms/GeomArea.js.map +1 -0
  26. package/dist/geoms/GeomBar.d.ts +8 -0
  27. package/dist/geoms/GeomBar.d.ts.map +1 -0
  28. package/dist/geoms/GeomBar.js +6 -0
  29. package/dist/geoms/GeomBar.js.map +1 -0
  30. package/dist/geoms/GeomBin2d.d.ts +8 -0
  31. package/dist/geoms/GeomBin2d.d.ts.map +1 -0
  32. package/dist/geoms/GeomBin2d.js +8 -0
  33. package/dist/geoms/GeomBin2d.js.map +1 -0
  34. package/dist/geoms/GeomBlank.d.ts +8 -0
  35. package/dist/geoms/GeomBlank.d.ts.map +1 -0
  36. package/dist/geoms/GeomBlank.js +6 -0
  37. package/dist/geoms/GeomBlank.js.map +1 -0
  38. package/dist/geoms/GeomBoxplot.d.ts +8 -0
  39. package/dist/geoms/GeomBoxplot.d.ts.map +1 -0
  40. package/dist/geoms/GeomBoxplot.js +8 -0
  41. package/dist/geoms/GeomBoxplot.js.map +1 -0
  42. package/dist/geoms/GeomCol.d.ts +8 -0
  43. package/dist/geoms/GeomCol.d.ts.map +1 -0
  44. package/dist/geoms/GeomCol.js +6 -0
  45. package/dist/geoms/GeomCol.js.map +1 -0
  46. package/dist/geoms/GeomContour.d.ts +8 -0
  47. package/dist/geoms/GeomContour.d.ts.map +1 -0
  48. package/dist/geoms/GeomContour.js +8 -0
  49. package/dist/geoms/GeomContour.js.map +1 -0
  50. package/dist/geoms/GeomCount.d.ts +8 -0
  51. package/dist/geoms/GeomCount.d.ts.map +1 -0
  52. package/dist/geoms/GeomCount.js +6 -0
  53. package/dist/geoms/GeomCount.js.map +1 -0
  54. package/dist/geoms/GeomCrossbar.d.ts +8 -0
  55. package/dist/geoms/GeomCrossbar.d.ts.map +1 -0
  56. package/dist/geoms/GeomCrossbar.js +8 -0
  57. package/dist/geoms/GeomCrossbar.js.map +1 -0
  58. package/dist/geoms/GeomCurve.d.ts +8 -0
  59. package/dist/geoms/GeomCurve.d.ts.map +1 -0
  60. package/dist/geoms/GeomCurve.js +8 -0
  61. package/dist/geoms/GeomCurve.js.map +1 -0
  62. package/dist/geoms/GeomDensity.d.ts +8 -0
  63. package/dist/geoms/GeomDensity.d.ts.map +1 -0
  64. package/dist/geoms/GeomDensity.js +8 -0
  65. package/dist/geoms/GeomDensity.js.map +1 -0
  66. package/dist/geoms/GeomDensity2d.d.ts +8 -0
  67. package/dist/geoms/GeomDensity2d.d.ts.map +1 -0
  68. package/dist/geoms/GeomDensity2d.js +8 -0
  69. package/dist/geoms/GeomDensity2d.js.map +1 -0
  70. package/dist/geoms/GeomDensity2dFilled.d.ts +8 -0
  71. package/dist/geoms/GeomDensity2dFilled.d.ts.map +1 -0
  72. package/dist/geoms/GeomDensity2dFilled.js +8 -0
  73. package/dist/geoms/GeomDensity2dFilled.js.map +1 -0
  74. package/dist/geoms/GeomDotplot.d.ts +8 -0
  75. package/dist/geoms/GeomDotplot.d.ts.map +1 -0
  76. package/dist/geoms/GeomDotplot.js +8 -0
  77. package/dist/geoms/GeomDotplot.js.map +1 -0
  78. package/dist/geoms/GeomErrorbar.d.ts +8 -0
  79. package/dist/geoms/GeomErrorbar.d.ts.map +1 -0
  80. package/dist/geoms/GeomErrorbar.js +8 -0
  81. package/dist/geoms/GeomErrorbar.js.map +1 -0
  82. package/dist/geoms/GeomFreqpoly.d.ts +8 -0
  83. package/dist/geoms/GeomFreqpoly.d.ts.map +1 -0
  84. package/dist/geoms/GeomFreqpoly.js +8 -0
  85. package/dist/geoms/GeomFreqpoly.js.map +1 -0
  86. package/dist/geoms/GeomFunction.d.ts +8 -0
  87. package/dist/geoms/GeomFunction.d.ts.map +1 -0
  88. package/dist/geoms/GeomFunction.js +8 -0
  89. package/dist/geoms/GeomFunction.js.map +1 -0
  90. package/dist/geoms/GeomHex.d.ts +8 -0
  91. package/dist/geoms/GeomHex.d.ts.map +1 -0
  92. package/dist/geoms/GeomHex.js +8 -0
  93. package/dist/geoms/GeomHex.js.map +1 -0
  94. package/dist/geoms/GeomHistogram.d.ts +8 -0
  95. package/dist/geoms/GeomHistogram.d.ts.map +1 -0
  96. package/dist/geoms/GeomHistogram.js +8 -0
  97. package/dist/geoms/GeomHistogram.js.map +1 -0
  98. package/dist/geoms/GeomHline.d.ts +8 -0
  99. package/dist/geoms/GeomHline.d.ts.map +1 -0
  100. package/dist/geoms/GeomHline.js +6 -0
  101. package/dist/geoms/GeomHline.js.map +1 -0
  102. package/dist/geoms/GeomJitter.d.ts +11 -0
  103. package/dist/geoms/GeomJitter.d.ts.map +1 -0
  104. package/dist/geoms/GeomJitter.js +15 -0
  105. package/dist/geoms/GeomJitter.js.map +1 -0
  106. package/dist/geoms/GeomLabel.d.ts +8 -0
  107. package/dist/geoms/GeomLabel.d.ts.map +1 -0
  108. package/dist/geoms/GeomLabel.js +6 -0
  109. package/dist/geoms/GeomLabel.js.map +1 -0
  110. package/dist/geoms/GeomLine.d.ts +8 -0
  111. package/dist/geoms/GeomLine.d.ts.map +1 -0
  112. package/dist/geoms/GeomLine.js +6 -0
  113. package/dist/geoms/GeomLine.js.map +1 -0
  114. package/dist/geoms/GeomLinerange.d.ts +8 -0
  115. package/dist/geoms/GeomLinerange.d.ts.map +1 -0
  116. package/dist/geoms/GeomLinerange.js +8 -0
  117. package/dist/geoms/GeomLinerange.js.map +1 -0
  118. package/dist/geoms/GeomMap.d.ts +8 -0
  119. package/dist/geoms/GeomMap.d.ts.map +1 -0
  120. package/dist/geoms/GeomMap.js +8 -0
  121. package/dist/geoms/GeomMap.js.map +1 -0
  122. package/dist/geoms/GeomPath.d.ts +8 -0
  123. package/dist/geoms/GeomPath.d.ts.map +1 -0
  124. package/dist/geoms/GeomPath.js +6 -0
  125. package/dist/geoms/GeomPath.js.map +1 -0
  126. package/dist/geoms/GeomPoint.d.ts +8 -0
  127. package/dist/geoms/GeomPoint.d.ts.map +1 -0
  128. package/dist/geoms/GeomPoint.js +6 -0
  129. package/dist/geoms/GeomPoint.js.map +1 -0
  130. package/dist/geoms/GeomPointrange.d.ts +8 -0
  131. package/dist/geoms/GeomPointrange.d.ts.map +1 -0
  132. package/dist/geoms/GeomPointrange.js +8 -0
  133. package/dist/geoms/GeomPointrange.js.map +1 -0
  134. package/dist/geoms/GeomPolygon.d.ts +8 -0
  135. package/dist/geoms/GeomPolygon.d.ts.map +1 -0
  136. package/dist/geoms/GeomPolygon.js +8 -0
  137. package/dist/geoms/GeomPolygon.js.map +1 -0
  138. package/dist/geoms/GeomQq.d.ts +8 -0
  139. package/dist/geoms/GeomQq.d.ts.map +1 -0
  140. package/dist/geoms/GeomQq.js +8 -0
  141. package/dist/geoms/GeomQq.js.map +1 -0
  142. package/dist/geoms/GeomQqLine.d.ts +8 -0
  143. package/dist/geoms/GeomQqLine.d.ts.map +1 -0
  144. package/dist/geoms/GeomQqLine.js +8 -0
  145. package/dist/geoms/GeomQqLine.js.map +1 -0
  146. package/dist/geoms/GeomQuantile.d.ts +8 -0
  147. package/dist/geoms/GeomQuantile.d.ts.map +1 -0
  148. package/dist/geoms/GeomQuantile.js +8 -0
  149. package/dist/geoms/GeomQuantile.js.map +1 -0
  150. package/dist/geoms/GeomRaster.d.ts +8 -0
  151. package/dist/geoms/GeomRaster.d.ts.map +1 -0
  152. package/dist/geoms/GeomRaster.js +8 -0
  153. package/dist/geoms/GeomRaster.js.map +1 -0
  154. package/dist/geoms/GeomRect.d.ts +8 -0
  155. package/dist/geoms/GeomRect.d.ts.map +1 -0
  156. package/dist/geoms/GeomRect.js +6 -0
  157. package/dist/geoms/GeomRect.js.map +1 -0
  158. package/dist/geoms/GeomRibbon.d.ts +8 -0
  159. package/dist/geoms/GeomRibbon.d.ts.map +1 -0
  160. package/dist/geoms/GeomRibbon.js +6 -0
  161. package/dist/geoms/GeomRibbon.js.map +1 -0
  162. package/dist/geoms/GeomRug.d.ts +8 -0
  163. package/dist/geoms/GeomRug.d.ts.map +1 -0
  164. package/dist/geoms/GeomRug.js +8 -0
  165. package/dist/geoms/GeomRug.js.map +1 -0
  166. package/dist/geoms/GeomRule.d.ts +8 -0
  167. package/dist/geoms/GeomRule.d.ts.map +1 -0
  168. package/dist/geoms/GeomRule.js +6 -0
  169. package/dist/geoms/GeomRule.js.map +1 -0
  170. package/dist/geoms/GeomSegment.d.ts +8 -0
  171. package/dist/geoms/GeomSegment.d.ts.map +1 -0
  172. package/dist/geoms/GeomSegment.js +6 -0
  173. package/dist/geoms/GeomSegment.js.map +1 -0
  174. package/dist/geoms/GeomSf.d.ts +8 -0
  175. package/dist/geoms/GeomSf.d.ts.map +1 -0
  176. package/dist/geoms/GeomSf.js +8 -0
  177. package/dist/geoms/GeomSf.js.map +1 -0
  178. package/dist/geoms/GeomSfLabel.d.ts +8 -0
  179. package/dist/geoms/GeomSfLabel.d.ts.map +1 -0
  180. package/dist/geoms/GeomSfLabel.js +8 -0
  181. package/dist/geoms/GeomSfLabel.js.map +1 -0
  182. package/dist/geoms/GeomSfText.d.ts +8 -0
  183. package/dist/geoms/GeomSfText.d.ts.map +1 -0
  184. package/dist/geoms/GeomSfText.js +8 -0
  185. package/dist/geoms/GeomSfText.js.map +1 -0
  186. package/dist/geoms/GeomSmooth.d.ts +8 -0
  187. package/dist/geoms/GeomSmooth.d.ts.map +1 -0
  188. package/dist/geoms/GeomSmooth.js +8 -0
  189. package/dist/geoms/GeomSmooth.js.map +1 -0
  190. package/dist/geoms/GeomSpoke.d.ts +8 -0
  191. package/dist/geoms/GeomSpoke.d.ts.map +1 -0
  192. package/dist/geoms/GeomSpoke.js +8 -0
  193. package/dist/geoms/GeomSpoke.js.map +1 -0
  194. package/dist/geoms/GeomStep.d.ts +8 -0
  195. package/dist/geoms/GeomStep.d.ts.map +1 -0
  196. package/dist/geoms/GeomStep.js +6 -0
  197. package/dist/geoms/GeomStep.js.map +1 -0
  198. package/dist/geoms/GeomText.d.ts +8 -0
  199. package/dist/geoms/GeomText.d.ts.map +1 -0
  200. package/dist/geoms/GeomText.js +6 -0
  201. package/dist/geoms/GeomText.js.map +1 -0
  202. package/dist/geoms/GeomTile.d.ts +8 -0
  203. package/dist/geoms/GeomTile.d.ts.map +1 -0
  204. package/dist/geoms/GeomTile.js +8 -0
  205. package/dist/geoms/GeomTile.js.map +1 -0
  206. package/dist/geoms/GeomViolin.d.ts +8 -0
  207. package/dist/geoms/GeomViolin.d.ts.map +1 -0
  208. package/dist/geoms/GeomViolin.js +8 -0
  209. package/dist/geoms/GeomViolin.js.map +1 -0
  210. package/dist/geoms/GeomVline.d.ts +8 -0
  211. package/dist/geoms/GeomVline.d.ts.map +1 -0
  212. package/dist/geoms/GeomVline.js +6 -0
  213. package/dist/geoms/GeomVline.js.map +1 -0
  214. package/dist/geoms/index.d.ts +50 -0
  215. package/dist/geoms/index.d.ts.map +1 -0
  216. package/dist/geoms/index.js +51 -0
  217. package/dist/geoms/index.js.map +1 -0
  218. package/dist/grammar.d.ts +59 -0
  219. package/dist/grammar.d.ts.map +1 -0
  220. package/dist/grammar.js +134 -0
  221. package/dist/grammar.js.map +1 -0
  222. package/dist/host-effect.d.ts +3 -0
  223. package/dist/host-effect.d.ts.map +1 -0
  224. package/dist/host-effect.js +3 -0
  225. package/dist/host-effect.js.map +1 -0
  226. package/dist/host-init.d.ts +2 -0
  227. package/dist/host-init.d.ts.map +1 -0
  228. package/dist/host-init.js +4 -0
  229. package/dist/host-init.js.map +1 -0
  230. package/dist/index.d.ts +17 -0
  231. package/dist/index.d.ts.map +1 -0
  232. package/dist/index.js +15 -0
  233. package/dist/index.js.map +1 -0
  234. package/dist/interaction.d.ts +9 -0
  235. package/dist/interaction.d.ts.map +1 -0
  236. package/dist/interaction.js +2 -0
  237. package/dist/interaction.js.map +1 -0
  238. package/dist/plot-accessibility.d.ts +23 -0
  239. package/dist/plot-accessibility.d.ts.map +1 -0
  240. package/dist/plot-accessibility.js +68 -0
  241. package/dist/plot-accessibility.js.map +1 -0
  242. package/dist/plot-assemble.d.ts +5 -0
  243. package/dist/plot-assemble.d.ts.map +1 -0
  244. package/dist/plot-assemble.js +14 -0
  245. package/dist/plot-assemble.js.map +1 -0
  246. package/dist/plot-controls.d.ts +20 -0
  247. package/dist/plot-controls.d.ts.map +1 -0
  248. package/dist/plot-controls.js +119 -0
  249. package/dist/plot-controls.js.map +1 -0
  250. package/dist/plot-gesture.d.ts +15 -0
  251. package/dist/plot-gesture.d.ts.map +1 -0
  252. package/dist/plot-gesture.js +55 -0
  253. package/dist/plot-gesture.js.map +1 -0
  254. package/dist/plot-host-identity.d.ts +5 -0
  255. package/dist/plot-host-identity.d.ts.map +1 -0
  256. package/dist/plot-host-identity.js +30 -0
  257. package/dist/plot-host-identity.js.map +1 -0
  258. package/dist/plot-inputs.d.ts +41 -0
  259. package/dist/plot-inputs.d.ts.map +1 -0
  260. package/dist/plot-inputs.js +147 -0
  261. package/dist/plot-inputs.js.map +1 -0
  262. package/dist/plot-interactions.d.ts +45 -0
  263. package/dist/plot-interactions.d.ts.map +1 -0
  264. package/dist/plot-interactions.js +447 -0
  265. package/dist/plot-interactions.js.map +1 -0
  266. package/dist/plot-legends.d.ts +20 -0
  267. package/dist/plot-legends.d.ts.map +1 -0
  268. package/dist/plot-legends.js +200 -0
  269. package/dist/plot-legends.js.map +1 -0
  270. package/dist/plot-overlay.d.ts +15 -0
  271. package/dist/plot-overlay.d.ts.map +1 -0
  272. package/dist/plot-overlay.js +69 -0
  273. package/dist/plot-overlay.js.map +1 -0
  274. package/dist/plot-props.d.ts +49 -0
  275. package/dist/plot-props.d.ts.map +1 -0
  276. package/dist/plot-props.js +2 -0
  277. package/dist/plot-props.js.map +1 -0
  278. package/dist/plot-runtime.d.ts +15 -0
  279. package/dist/plot-runtime.d.ts.map +1 -0
  280. package/dist/plot-runtime.js +59 -0
  281. package/dist/plot-runtime.js.map +1 -0
  282. package/dist/plot-surface.d.ts +3 -0
  283. package/dist/plot-surface.d.ts.map +1 -0
  284. package/dist/plot-surface.js +285 -0
  285. package/dist/plot-surface.js.map +1 -0
  286. package/dist/registry.d.ts +28 -0
  287. package/dist/registry.d.ts.map +1 -0
  288. package/dist/registry.js +164 -0
  289. package/dist/registry.js.map +1 -0
  290. package/dist/scales.d.ts +132 -0
  291. package/dist/scales.d.ts.map +1 -0
  292. package/dist/scales.js +434 -0
  293. package/dist/scales.js.map +1 -0
  294. package/dist/strata-sync.d.ts +7 -0
  295. package/dist/strata-sync.d.ts.map +1 -0
  296. package/dist/strata-sync.js +158 -0
  297. package/dist/strata-sync.js.map +1 -0
  298. package/dist/themes.d.ts +38 -0
  299. package/dist/themes.d.ts.map +1 -0
  300. package/dist/themes.js +141 -0
  301. package/dist/themes.js.map +1 -0
  302. package/package.json +71 -0
package/README.md ADDED
@@ -0,0 +1,66 @@
1
+ # @ggts-sh/react
2
+
3
+ React DOM adapter for ggts. ggplot2-named components
4
+ (`GGPlot`, `GeomPoint`, `ScaleXLog10`, `ThemeMinimal`, …) over the
5
+ framework-agnostic `@ggts-sh/core` pipeline. Pre-1.0.
6
+
7
+ ```sh
8
+ npm install @ggts-sh/react @ggts-sh/core
9
+ ```
10
+
11
+ Peers: `react` and `react-dom` ^18.2 or ^19. Does not depend on
12
+ [`@ggts-sh/svelte`](https://www.npmjs.com/package/@ggts-sh/svelte).
13
+
14
+ The example imports bundled data from `@ggts-sh/core/data`, so install
15
+ `@ggts-sh/core` as a direct dependency. Charts with inline data need only
16
+ `@ggts-sh/react`.
17
+
18
+ ## Quick example
19
+
20
+ ```tsx
21
+ "use client";
22
+
23
+ import { mpg as cars } from "@ggts-sh/core/data";
24
+ import {
25
+ GGPlot,
26
+ GeomPoint,
27
+ GeomSmooth,
28
+ ScaleColorDiscrete,
29
+ ThemeMinimal,
30
+ Labs,
31
+ } from "@ggts-sh/react";
32
+
33
+ export default function CarsChart() {
34
+ return (
35
+ <GGPlot
36
+ data={cars}
37
+ aes={{ x: "displ", y: "hwy", color: "class" }}
38
+ height={400}
39
+ >
40
+ <GeomSmooth method="loess" se={false} />
41
+ <GeomPoint size={3} alpha={0.85} />
42
+ <ScaleColorDiscrete scheme="observable10" />
43
+ <ThemeMinimal />
44
+ <Labs title="Cars" x="Displacement (l)" y="Highway mpg" color="Class" />
45
+ </GGPlot>
46
+ );
47
+ }
48
+ ```
49
+
50
+ Children are declaration-only: they register into the plot and render
51
+ nothing themselves. You can also pass a `spec` from `gg()`, or `data` /
52
+ `aes` / `layers` as props. `spec` wins.
53
+
54
+ Use a ref for `resetScales()` and `setZoom()`. Specialty geoms still
55
+ need their family `register*` (or `registerAll`) when you override
56
+ `stat`. Temporal scale children import `@ggts-sh/core/temporal`.
57
+
58
+ Both adapters share inspection, selection, zoom, legends, and linked interaction
59
+ controllers. React renders chart SVG on the server and measures its container
60
+ after hydration. In server-component applications, use a client component
61
+ boundary for interactive charts.
62
+
63
+ See the [agent sandbox guide](https://ggts.sh/guide/agents) for the shared
64
+ JSON workflow and [React examples](https://ggts.sh/examples) for host callbacks.
65
+
66
+ CLI rendering stays on [`@ggts-sh/cli`](https://www.npmjs.com/package/@ggts-sh/cli).
@@ -0,0 +1,6 @@
1
+ import type { ReactElement, RefAttributes } from "react";
2
+ import type { CellValue } from "@ggts-sh/core";
3
+ import type { GGPlotHandle, GGPlotProps } from "./plot-props.js";
4
+ import "./host-init.js";
5
+ export declare const GGPlot: <Row extends Record<string, CellValue> = Record<string, CellValue>>(props: GGPlotProps<Row> & RefAttributes<GGPlotHandle>) => ReactElement | null;
6
+ //# sourceMappingURL=GGPlot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GGPlot.d.ts","sourceRoot":"","sources":["../src/GGPlot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAIjE,OAAO,gBAAgB,CAAC;AAUxB,eAAO,MAAM,MAAM,EASb,CAAC,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EACtE,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,YAAY,CAAC,KAClD,YAAY,GAAG,IAAI,CAAC"}
package/dist/GGPlot.js ADDED
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef, useMemo } from "react";
3
+ import { PlotSurface } from "./plot-surface.js";
4
+ import { LayerRegistry, PlotRegistryContext } from "./registry.js";
5
+ import "./host-init.js";
6
+ function restWithoutChildren(props) {
7
+ const { children: _children, ...rest } = props;
8
+ void _children;
9
+ const withoutKey = { ...rest };
10
+ Reflect.deleteProperty(withoutKey, "key");
11
+ return withoutKey;
12
+ }
13
+ export const GGPlot = forwardRef(function GGPlot(props, ref) {
14
+ const registry = useMemo(() => new LayerRegistry(), []);
15
+ const rest = restWithoutChildren(props);
16
+ return (_jsxs(PlotRegistryContext.Provider, { value: registry, children: [props.children, _jsx(PlotSurface, { ...rest, registry: registry, plotRef: ref })] }));
17
+ });
18
+ //# sourceMappingURL=GGPlot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GGPlot.js","sourceRoot":"","sources":["../src/GGPlot.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAG5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEnE,OAAO,gBAAgB,CAAC;AAExB,SAAS,mBAAmB,CAAC,KAAkB;IAC7C,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAC/C,KAAK,SAAS,CAAC;IACf,MAAM,UAAU,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;IAC/B,OAAO,CAAC,cAAc,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAC1C,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAA4B,SAAS,MAAM,CAAC,KAAK,EAAE,GAAG;IACpF,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,aAAa,EAAE,EAAE,EAAE,CAAC,CAAC;IACxD,MAAM,IAAI,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IACxC,OAAO,CACL,MAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,aAC1C,KAAK,CAAC,QAAQ,EACf,KAAC,WAAW,OAAK,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,GAAI,IAC9B,CAChC,CAAC;AACJ,CAAC,CAEuB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { CellValue } from "@ggts-sh/core";
2
+ export type DatumKey = PropertyKey | ((row: Record<string, CellValue>, index: number) => PropertyKey);
3
+ export type ExplicitDatumKeySources = {
4
+ readonly inspect?: DatumKey;
5
+ readonly select?: DatumKey;
6
+ readonly controller?: DatumKey;
7
+ readonly plot?: DatumKey;
8
+ readonly legacy?: DatumKey;
9
+ };
10
+ export declare function pickExplicitDatumKey(sources: ExplicitDatumKeySources): DatumKey | undefined;
11
+ export declare function identityFromSelectInput(input: false | string | {
12
+ readonly identity?: DatumKey;
13
+ } | undefined): DatumKey | undefined;
14
+ export declare function identityFromInspectInput(input: boolean | {
15
+ readonly identity?: DatumKey;
16
+ } | undefined): DatumKey | undefined;
17
+ export declare function resolveDatumKey(input: {
18
+ readonly explicit?: DatumKey;
19
+ readonly data?: unknown;
20
+ }): DatumKey;
21
+ //# sourceMappingURL=datum-key.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datum-key.d.ts","sourceRoot":"","sources":["../src/datum-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAChB,WAAW,GACX,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,WAAW,CAAC,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG;IACpC,QAAQ,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,GAAG,QAAQ,GAAG,SAAS,CAO3F;AAED,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,GAAG,SAAS,GACnE,QAAQ,GAAG,SAAS,CAGtB;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,GAAG;IAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,GAAG,SAAS,GAC5D,QAAQ,GAAG,SAAS,CAGtB;AA4BD,wBAAgB,eAAe,CAAC,KAAK,EAAE;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,QAAQ,CAIX"}
@@ -0,0 +1,60 @@
1
+ export function pickExplicitDatumKey(sources) {
2
+ if (sources.inspect !== undefined)
3
+ return sources.inspect;
4
+ if (sources.select !== undefined)
5
+ return sources.select;
6
+ if (sources.controller !== undefined)
7
+ return sources.controller;
8
+ if (sources.plot !== undefined)
9
+ return sources.plot;
10
+ if (sources.legacy !== undefined)
11
+ return sources.legacy;
12
+ return undefined;
13
+ }
14
+ export function identityFromSelectInput(input) {
15
+ if (input === undefined || input === false || typeof input === "string")
16
+ return undefined;
17
+ return input.identity;
18
+ }
19
+ export function identityFromInspectInput(input) {
20
+ if (input === undefined || input === false || input === true)
21
+ return undefined;
22
+ return input.identity;
23
+ }
24
+ function isPropertyKeyIdentity(value) {
25
+ return typeof value === "string" || typeof value === "number" || typeof value === "symbol";
26
+ }
27
+ function dataHasIdIdentityColumn(data) {
28
+ if (data === null || data === undefined)
29
+ return false;
30
+ if (Array.isArray(data)) {
31
+ if (data.length === 0)
32
+ return false;
33
+ const row = data[0];
34
+ if (row === null || typeof row !== "object" || Array.isArray(row))
35
+ return false;
36
+ return isPropertyKeyIdentity(row["id"]);
37
+ }
38
+ if (typeof data !== "object")
39
+ return false;
40
+ const record = data;
41
+ if (Array.isArray(record["values"]))
42
+ return dataHasIdIdentityColumn(record["values"]);
43
+ const columns = record["columns"] !== null &&
44
+ typeof record["columns"] === "object" &&
45
+ !Array.isArray(record["columns"])
46
+ ? record["columns"]
47
+ : record;
48
+ const idColumn = columns["id"];
49
+ if (!Array.isArray(idColumn) || idColumn.length === 0)
50
+ return false;
51
+ return isPropertyKeyIdentity(idColumn[0]);
52
+ }
53
+ export function resolveDatumKey(input) {
54
+ if (input.explicit !== undefined)
55
+ return input.explicit;
56
+ if (dataHasIdIdentityColumn(input.data))
57
+ return "id";
58
+ return (_row, index) => index;
59
+ }
60
+ //# sourceMappingURL=datum-key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datum-key.js","sourceRoot":"","sources":["../src/datum-key.ts"],"names":[],"mappings":"AAcA,MAAM,UAAU,oBAAoB,CAAC,OAAgC;IACnE,IAAI,OAAO,CAAC,OAAO,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,OAAO,CAAC;IAC1D,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,MAAM,CAAC;IACxD,IAAI,OAAO,CAAC,UAAU,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,UAAU,CAAC;IAChE,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,IAAI,CAAC;IACpD,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC,MAAM,CAAC;IACxD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,KAAoE;IAEpE,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC1F,OAAO,KAAK,CAAC,QAAQ,CAAC;AACxB,CAAC;AAED,MAAM,UAAU,wBAAwB,CACtC,KAA6D;IAE7D,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAC/E,OAAO,KAAK,CAAC,QAAQ,CAAC;AACxB,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC;AAC7F,CAAC;AAED,SAAS,uBAAuB,CAAC,IAAa;IAC5C,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACpC,MAAM,GAAG,GAAY,IAAI,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;YAAE,OAAO,KAAK,CAAC;QAChF,OAAO,qBAAqB,CAAE,GAA+B,CAAC,IAAI,CAAC,CAAC,CAAC;IACvE,CAAC;IACD,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC3C,MAAM,MAAM,GAAG,IAA+B,CAAC;IAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAAE,OAAO,uBAAuB,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACtF,MAAM,OAAO,GACX,MAAM,CAAC,SAAS,CAAC,KAAK,IAAI;QAC1B,OAAO,MAAM,CAAC,SAAS,CAAC,KAAK,QAAQ;QACrC,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QAC/B,CAAC,CAAE,MAAM,CAAC,SAAS,CAA6B;QAChD,CAAC,CAAC,MAAM,CAAC;IACb,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,qBAAqB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAG/B;IACC,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC,QAAQ,CAAC;IACxD,IAAI,uBAAuB,CAAC,KAAK,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACrD,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;AAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Copy own enumerable keys whose value is not `undefined`. */
2
+ export declare function definedProps<T extends object>(props: T): T;
3
+ //# sourceMappingURL=defined-props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defined-props.d.ts","sourceRoot":"","sources":["../src/defined-props.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAO1D"}
@@ -0,0 +1,11 @@
1
+ /** Copy own enumerable keys whose value is not `undefined`. */
2
+ export function definedProps(props) {
3
+ const out = {};
4
+ for (const key of Object.keys(props)) {
5
+ const value = props[key];
6
+ if (value !== undefined)
7
+ out[key] = value;
8
+ }
9
+ return out;
10
+ }
11
+ //# sourceMappingURL=defined-props.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defined-props.js","sourceRoot":"","sources":["../src/defined-props.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,UAAU,YAAY,CAAmB,KAAQ;IACrD,MAAM,GAAG,GAA4B,EAAE,CAAC;IACxC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,MAAM,KAAK,GAAI,KAAiC,CAAC,GAAG,CAAC,CAAC;QACtD,IAAI,KAAK,KAAK,SAAS;YAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC5C,CAAC;IACD,OAAO,GAAQ,CAAC;AAClB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { type GeomName } from "@ggts-sh/spec";
2
+ import type { AesInput, DataInput, PositionName, PositionParams, RenderBackend, StatName } from "@ggts-sh/spec";
3
+ import type { Layer } from "@ggts-sh/compose";
4
+ export interface GeomProps {
5
+ aes?: AesInput;
6
+ data?: DataInput | readonly Record<string, unknown>[];
7
+ stat?: StatName;
8
+ position?: PositionName;
9
+ positionParams?: PositionParams;
10
+ render?: RenderBackend;
11
+ inspect?: false;
12
+ }
13
+ export declare function useGeomLayer(geom: GeomName, props: GeomProps): void;
14
+ export declare function usePlotLayerValue<K extends Exclude<Layer["kind"], "mark">>(kind: K, build: () => Extract<Layer, {
15
+ kind: K;
16
+ }>["value"]): void;
17
+ //# sourceMappingURL=geom-factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geom-factory.d.ts","sourceRoot":"","sources":["../src/geom-factory.ts"],"names":[],"mappings":"AAEA,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,KAAK,EACV,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,cAAc,EACd,aAAa,EACb,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAI9C,MAAM,WAAW,SAAS;IACxB,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACtD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAG,IAAI,CA6CnE;AAED,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,EACxE,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,OAAO,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,OAAO,CAAC,GAChD,IAAI,CAWN"}
@@ -0,0 +1,63 @@
1
+ import { useRef } from "react";
2
+ import { GEOM_PARAM_KEYS } from "@ggts-sh/spec";
3
+ import { useRegisterLayer } from "./registry.js";
4
+ export function useGeomLayer(geom, props) {
5
+ const paramKeys = GEOM_PARAM_KEYS[geom];
6
+ if (paramKeys === undefined) {
7
+ throw new Error(`useGeomLayer: no GEOM_PARAM_KEYS entry for geom "${geom}"`);
8
+ }
9
+ const propsRef = useRef(props);
10
+ propsRef.current = props;
11
+ const layerRef = useRef(null);
12
+ layerRef.current ??= {
13
+ kind: "mark",
14
+ descriptor: {
15
+ geom,
16
+ get stat() {
17
+ return propsRef.current.stat;
18
+ },
19
+ get aes() {
20
+ return propsRef.current.aes;
21
+ },
22
+ get data() {
23
+ return propsRef.current.data;
24
+ },
25
+ get position() {
26
+ return propsRef.current.position;
27
+ },
28
+ get positionParams() {
29
+ return propsRef.current.positionParams;
30
+ },
31
+ get render() {
32
+ return propsRef.current.render;
33
+ },
34
+ get inspect() {
35
+ return propsRef.current.inspect;
36
+ },
37
+ get params() {
38
+ const current = propsRef.current;
39
+ const params = {};
40
+ for (const key of paramKeys) {
41
+ const value = current[key];
42
+ if (value !== undefined)
43
+ params[key] = value;
44
+ }
45
+ return Object.keys(params).length > 0 ? params : undefined;
46
+ },
47
+ },
48
+ };
49
+ useRegisterLayer(layerRef.current);
50
+ }
51
+ export function usePlotLayerValue(kind, build) {
52
+ const buildRef = useRef(build);
53
+ buildRef.current = build;
54
+ const layerRef = useRef(null);
55
+ layerRef.current ??= {
56
+ kind,
57
+ get value() {
58
+ return buildRef.current();
59
+ },
60
+ };
61
+ useRegisterLayer(layerRef.current);
62
+ }
63
+ //# sourceMappingURL=geom-factory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geom-factory.js","sourceRoot":"","sources":["../src/geom-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAiB,MAAM,eAAe,CAAC;AAW/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAYjD,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,KAAgB;IAC3D,MAAM,SAAS,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,oDAAoD,IAAI,GAAG,CAAC,CAAC;IAC/E,CAAC;IACD,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,CAAe,IAAI,CAAC,CAAC;IAC5C,QAAQ,CAAC,OAAO,KAAK;QACnB,IAAI,EAAE,MAAM;QACZ,UAAU,EAAE;YACV,IAAI;YACJ,IAAI,IAAI;gBACN,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;YAC/B,CAAC;YACD,IAAI,GAAG;gBACL,OAAO,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC;YAC9B,CAAC;YACD,IAAI,IAAI;gBACN,OAAO,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC;YAC/B,CAAC;YACD,IAAI,QAAQ;gBACV,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnC,CAAC;YACD,IAAI,cAAc;gBAChB,OAAO,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC;YACzC,CAAC;YACD,IAAI,MAAM;gBACR,OAAO,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC;YACjC,CAAC;YACD,IAAI,OAAO;gBACT,OAAO,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC;YAClC,CAAC;YACD,IAAI,MAAM;gBACR,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAkC,CAAC;gBAC5D,MAAM,MAAM,GAA4B,EAAE,CAAC;gBAC3C,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE,CAAC;oBAC5B,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;oBAC3B,IAAI,KAAK,KAAK,SAAS;wBAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;gBAC/C,CAAC;gBACD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC7D,CAAC;SACF;KACF,CAAC;IACF,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC/B,IAAO,EACP,KAAiD;IAEjD,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/B,QAAQ,CAAC,OAAO,GAAG,KAAK,CAAC;IACzB,MAAM,QAAQ,GAAG,MAAM,CAAe,IAAI,CAAC,CAAC;IAC5C,QAAQ,CAAC,OAAO,KAAK;QACnB,IAAI;QACJ,IAAI,KAAK;YACP,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAC;QAC5B,CAAC;KACO,CAAC;IACX,gBAAgB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AACrC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, AblineParams, AblineLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = AblineParams & Omit<AblineLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomAbline(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomAbline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomAbline.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomAbline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAK/E,KAAK,UAAU,GAAG,YAAY,GAC5B,IAAI,CAAC,gBAAgB,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACnD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGvD"}
@@ -0,0 +1,8 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ import { registerAbline } from "@ggts-sh/core";
3
+ registerAbline();
4
+ export function GeomAbline(props) {
5
+ useGeomLayer("abline", props);
6
+ return null;
7
+ }
8
+ //# sourceMappingURL=GeomAbline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomAbline.js","sourceRoot":"","sources":["../../src/geoms/GeomAbline.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,cAAc,EAAE,CAAC;AAOjB,MAAM,UAAU,UAAU,CAAC,KAAiB;IAC1C,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, AreaParams, AreaLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = AreaParams & Omit<AreaLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomArea(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomArea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomArea.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE3E,KAAK,UAAU,GAAG,UAAU,GAC1B,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACjD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGrD"}
@@ -0,0 +1,6 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ export function GeomArea(props) {
3
+ useGeomLayer("area", props);
4
+ return null;
5
+ }
6
+ //# sourceMappingURL=GeomArea.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomArea.js","sourceRoot":"","sources":["../../src/geoms/GeomArea.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,UAAU,QAAQ,CAAC,KAAiB;IACxC,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, BarParams, BarLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = BarParams & Omit<BarLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomBar(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBar.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomBar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEzE,KAAK,UAAU,GAAG,SAAS,GACzB,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGpD"}
@@ -0,0 +1,6 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ export function GeomBar(props) {
3
+ useGeomLayer("bar", props);
4
+ return null;
5
+ }
6
+ //# sourceMappingURL=GeomBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBar.js","sourceRoot":"","sources":["../../src/geoms/GeomBar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,UAAU,OAAO,CAAC,KAAiB;IACvC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, Bin2dParams, Bin2dLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = Bin2dParams & Omit<Bin2dLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomBin2d(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomBin2d.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBin2d.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomBin2d.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAK7E,KAAK,UAAU,GAAG,WAAW,GAC3B,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGtD"}
@@ -0,0 +1,8 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ import { registerBin2d } from "@ggts-sh/core";
3
+ registerBin2d();
4
+ export function GeomBin2d(props) {
5
+ useGeomLayer("bin_2d", props);
6
+ return null;
7
+ }
8
+ //# sourceMappingURL=GeomBin2d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBin2d.js","sourceRoot":"","sources":["../../src/geoms/GeomBin2d.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,aAAa,EAAE,CAAC;AAOhB,MAAM,UAAU,SAAS,CAAC,KAAiB;IACzC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC9B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, BlankParams, BlankLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = BlankParams & Omit<BlankLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomBlank(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomBlank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBlank.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomBlank.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE7E,KAAK,UAAU,GAAG,WAAW,GAC3B,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGtD"}
@@ -0,0 +1,6 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ export function GeomBlank(props) {
3
+ useGeomLayer("blank", props);
4
+ return null;
5
+ }
6
+ //# sourceMappingURL=GeomBlank.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBlank.js","sourceRoot":"","sources":["../../src/geoms/GeomBlank.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,UAAU,SAAS,CAAC,KAAiB;IACzC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, BoxplotParams, BoxplotLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = BoxplotParams & Omit<BoxplotLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomBoxplot(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomBoxplot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBoxplot.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomBoxplot.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKjF,KAAK,UAAU,GAAG,aAAa,GAC7B,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACpD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGxD"}
@@ -0,0 +1,8 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ import { registerBoxplot } from "@ggts-sh/core";
3
+ registerBoxplot();
4
+ export function GeomBoxplot(props) {
5
+ useGeomLayer("boxplot", props);
6
+ return null;
7
+ }
8
+ //# sourceMappingURL=GeomBoxplot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomBoxplot.js","sourceRoot":"","sources":["../../src/geoms/GeomBoxplot.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,eAAe,EAAE,CAAC;AAOlB,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, ColParams, ColLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = ColParams & Omit<ColLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomCol(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomCol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCol.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomCol.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEzE,KAAK,UAAU,GAAG,SAAS,GACzB,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAChD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGpD"}
@@ -0,0 +1,6 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ export function GeomCol(props) {
3
+ useGeomLayer("col", props);
4
+ return null;
5
+ }
6
+ //# sourceMappingURL=GeomCol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCol.js","sourceRoot":"","sources":["../../src/geoms/GeomCol.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,UAAU,OAAO,CAAC,KAAiB;IACvC,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC3B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, ContourParams, ContourLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = ContourParams & Omit<ContourLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomContour(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomContour.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomContour.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomContour.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKjF,KAAK,UAAU,GAAG,aAAa,GAC7B,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACpD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGxD"}
@@ -0,0 +1,8 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ import { registerContour } from "@ggts-sh/core";
3
+ registerContour();
4
+ export function GeomContour(props) {
5
+ useGeomLayer("contour", props);
6
+ return null;
7
+ }
8
+ //# sourceMappingURL=GeomContour.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomContour.js","sourceRoot":"","sources":["../../src/geoms/GeomContour.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,eAAe,EAAE,CAAC;AAOlB,MAAM,UAAU,WAAW,CAAC,KAAiB;IAC3C,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, PointParams, CountLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = PointParams & Omit<CountLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomCount(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomCount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCount.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomCount.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAE7E,KAAK,UAAU,GAAG,WAAW,GAC3B,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGtD"}
@@ -0,0 +1,6 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ export function GeomCount(props) {
3
+ useGeomLayer("count", props);
4
+ return null;
5
+ }
6
+ //# sourceMappingURL=GeomCount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCount.js","sourceRoot":"","sources":["../../src/geoms/GeomCount.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,MAAM,UAAU,SAAS,CAAC,KAAiB;IACzC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, CrossbarParams, CrossbarLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = CrossbarParams & Omit<CrossbarLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomCrossbar(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomCrossbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCrossbar.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomCrossbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAKnF,KAAK,UAAU,GAAG,cAAc,GAC9B,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,YAAY,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGzD"}
@@ -0,0 +1,8 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ import { registerCrossbar } from "@ggts-sh/core";
3
+ registerCrossbar();
4
+ export function GeomCrossbar(props) {
5
+ useGeomLayer("crossbar", props);
6
+ return null;
7
+ }
8
+ //# sourceMappingURL=GeomCrossbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCrossbar.js","sourceRoot":"","sources":["../../src/geoms/GeomCrossbar.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,gBAAgB,EAAE,CAAC;AAOnB,MAAM,UAAU,YAAY,CAAC,KAAiB;IAC5C,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataInput, CurveParams, CurveLayerInput } from "@ggts-sh/spec";
3
+ type ShellProps = CurveParams & Omit<CurveLayerInput, "geom" | "params" | "data"> & {
4
+ data?: DataInput | readonly Record<string, unknown>[];
5
+ };
6
+ export declare function GeomCurve(props: ShellProps): ReactNode;
7
+ export {};
8
+ //# sourceMappingURL=GeomCurve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCurve.d.ts","sourceRoot":"","sources":["../../src/geoms/GeomCurve.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAK7E,KAAK,UAAU,GAAG,WAAW,GAC3B,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC,GAAG;IAClD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CACvD,CAAC;AAEJ,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGtD"}
@@ -0,0 +1,8 @@
1
+ import { useGeomLayer } from "../geom-factory.js";
2
+ import { registerCurve } from "@ggts-sh/core";
3
+ registerCurve();
4
+ export function GeomCurve(props) {
5
+ useGeomLayer("curve", props);
6
+ return null;
7
+ }
8
+ //# sourceMappingURL=GeomCurve.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GeomCurve.js","sourceRoot":"","sources":["../../src/geoms/GeomCurve.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,aAAa,EAAE,CAAC;AAOhB,MAAM,UAAU,SAAS,CAAC,KAAiB;IACzC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAC7B,OAAO,IAAI,CAAC;AACd,CAAC"}