@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
@@ -0,0 +1,59 @@
1
+ import type { ReactNode } from "react";
2
+ import { type CoordFixedOptions, type CoordPolarOptions, type CoordRadialOptions, type CoordSfOptions, type FacetFieldInput, type FacetInput, type GuidesSpec, type Labs as LabsSpec, type LegendGuideOptions, type LegendSpec, type Scales, type ThemeName, type ThemeSpec } from "@ggts-sh/spec";
3
+ import type { InspectOptions } from "./interaction.js";
4
+ export declare function Labs(props: LabsSpec): ReactNode;
5
+ export declare function Theme(props: {
6
+ name?: ThemeName;
7
+ } & Partial<ThemeSpec>): ReactNode;
8
+ export declare function Scale(props: {
9
+ value: Scales;
10
+ }): ReactNode;
11
+ export declare function Facet(props: FacetInput): ReactNode;
12
+ export declare function FacetWrap(props: {
13
+ field: FacetFieldInput;
14
+ ncol?: number;
15
+ scales?: FacetInput["scales"];
16
+ strip?: FacetInput["strip"];
17
+ }): ReactNode;
18
+ export declare function FacetGrid(props: FacetInput): ReactNode;
19
+ export declare function Coord(props: {
20
+ value: "flip" | {
21
+ type: string;
22
+ };
23
+ }): ReactNode;
24
+ export declare function CoordFlip(): ReactNode;
25
+ export declare function CoordFixed(props?: CoordFixedOptions): ReactNode;
26
+ export declare function CoordPolar(props?: CoordPolarOptions): ReactNode;
27
+ export declare function CoordRadial(props?: CoordRadialOptions): ReactNode;
28
+ export declare function CoordSf(props?: CoordSfOptions): ReactNode;
29
+ export declare function Legend(props: LegendSpec): ReactNode;
30
+ export declare function Guides(props: {
31
+ value: GuidesSpec;
32
+ }): ReactNode;
33
+ type GuideChannel = keyof GuidesSpec;
34
+ type NonPositionGuideChannel = Exclude<GuideChannel, "x" | "y">;
35
+ export declare function GuideLegend(props: LegendGuideOptions & {
36
+ channel: NonPositionGuideChannel;
37
+ focus?: boolean | {
38
+ preview?: boolean;
39
+ };
40
+ filter?: boolean | {
41
+ mode?: string;
42
+ multiple?: boolean;
43
+ };
44
+ }): ReactNode;
45
+ export declare function GuideAxis(props: {
46
+ channel: "x" | "y";
47
+ } & Record<string, unknown>): ReactNode;
48
+ export declare function GuideColorbar(props: {
49
+ channel: NonPositionGuideChannel;
50
+ } & Record<string, unknown>): ReactNode;
51
+ export declare function GuideColorsteps(props: {
52
+ channel: NonPositionGuideChannel;
53
+ } & Record<string, unknown>): ReactNode;
54
+ export declare function GuideNone(props: {
55
+ channel: GuideChannel;
56
+ }): ReactNode;
57
+ export declare function Inspect(props: InspectOptions): ReactNode;
58
+ export {};
59
+ //# sourceMappingURL=grammar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammar.d.ts","sourceRoot":"","sources":["../src/grammar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAUL,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,IAAI,IAAI,QAAQ,EACrB,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,MAAM,EACX,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGvD,wBAAgB,IAAI,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,CAG/C;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE;IAAE,IAAI,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAQjF;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAGzD;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAGlD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAC/B,KAAK,EAAE,eAAe,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC9B,KAAK,C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AAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAM5F;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE;IAAE,OAAO,EAAE,uBAAuB,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACpE,SAAS,CAMX;AAED,wBAAgB,eAAe,CAC7B,KAAK,EAAE;IAAE,OAAO,EAAE,uBAAuB,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACpE,SAAS,CAMX;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,YAAY,CAAA;CAAE,GAAG,SAAS,CAGrE;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAGxD"}
@@ -0,0 +1,134 @@
1
+ import { coordFixed, coordPolar, coordRadial, coordSf, guideAxis, guideColorbar, guideColorsteps, guideLegend, guideNone, } from "@ggts-sh/spec";
2
+ import { definedProps } from "./defined-props.js";
3
+ import { usePlotLayerValue } from "./geom-factory.js";
4
+ import { useRegisterCapability } from "./registry.js";
5
+ export function Labs(props) {
6
+ usePlotLayerValue("labs", () => definedProps(props));
7
+ return null;
8
+ }
9
+ export function Theme(props) {
10
+ usePlotLayerValue("theme", () => {
11
+ const defined = definedProps(props);
12
+ const { name, ...roles } = defined;
13
+ if (Object.keys(roles).length === 0)
14
+ return name ?? "default";
15
+ return { ...(name !== undefined && { name }), ...roles };
16
+ });
17
+ return null;
18
+ }
19
+ export function Scale(props) {
20
+ usePlotLayerValue("scale", () => props.value);
21
+ return null;
22
+ }
23
+ export function Facet(props) {
24
+ usePlotLayerValue("facet", () => definedProps(props));
25
+ return null;
26
+ }
27
+ export function FacetWrap(props) {
28
+ usePlotLayerValue("facet", () => {
29
+ const defined = definedProps(props);
30
+ return {
31
+ wrap: defined.field,
32
+ ...(defined.ncol !== undefined && { ncol: defined.ncol }),
33
+ ...(defined.scales !== undefined && { scales: defined.scales }),
34
+ ...(defined.strip !== undefined && { strip: defined.strip }),
35
+ };
36
+ });
37
+ return null;
38
+ }
39
+ export function FacetGrid(props) {
40
+ usePlotLayerValue("facet", () => definedProps(props));
41
+ return null;
42
+ }
43
+ export function Coord(props) {
44
+ usePlotLayerValue("coord", () => props.value);
45
+ return null;
46
+ }
47
+ export function CoordFlip() {
48
+ usePlotLayerValue("coord", () => ({ type: "flip" }));
49
+ return null;
50
+ }
51
+ export function CoordFixed(props = {}) {
52
+ usePlotLayerValue("coord", () => coordFixed(definedProps(props)));
53
+ return null;
54
+ }
55
+ export function CoordPolar(props = {}) {
56
+ usePlotLayerValue("coord", () => coordPolar(definedProps(props)));
57
+ return null;
58
+ }
59
+ export function CoordRadial(props = {}) {
60
+ usePlotLayerValue("coord", () => coordRadial(definedProps(props)));
61
+ return null;
62
+ }
63
+ export function CoordSf(props = {}) {
64
+ usePlotLayerValue("coord", () => coordSf(definedProps(props)));
65
+ return null;
66
+ }
67
+ export function Legend(props) {
68
+ usePlotLayerValue("legend", () => definedProps(props));
69
+ return null;
70
+ }
71
+ export function Guides(props) {
72
+ usePlotLayerValue("guides", () => props.value);
73
+ return null;
74
+ }
75
+ export function GuideLegend(props) {
76
+ usePlotLayerValue("guides", () => {
77
+ const defined = definedProps(props);
78
+ const { focus: _f, filter: _fi, channel, ...options } = defined;
79
+ if (Object.keys(options).length === 0 &&
80
+ (_f === true || typeof _f === "object" || _fi === true || typeof _fi === "object")) {
81
+ return {};
82
+ }
83
+ return { [channel]: guideLegend(options) };
84
+ });
85
+ usePlotLayerValue("legendFocus", () => {
86
+ const defined = definedProps(props);
87
+ if (defined.focus !== true && typeof defined.focus !== "object")
88
+ return null;
89
+ return {
90
+ channel: defined.channel,
91
+ input: defined.focus === true ? true : defined.focus,
92
+ };
93
+ });
94
+ usePlotLayerValue("legendFilter", () => {
95
+ const defined = definedProps(props);
96
+ if (defined.filter !== true && typeof defined.filter !== "object")
97
+ return null;
98
+ return {
99
+ channel: defined.channel,
100
+ input: defined.filter === true ? true : defined.filter,
101
+ };
102
+ });
103
+ return null;
104
+ }
105
+ export function GuideAxis(props) {
106
+ usePlotLayerValue("guides", () => {
107
+ const { channel, ...options } = definedProps(props);
108
+ return { [channel]: guideAxis(options) };
109
+ });
110
+ return null;
111
+ }
112
+ export function GuideColorbar(props) {
113
+ usePlotLayerValue("guides", () => {
114
+ const { channel, ...options } = definedProps(props);
115
+ return { [channel]: guideColorbar(options) };
116
+ });
117
+ return null;
118
+ }
119
+ export function GuideColorsteps(props) {
120
+ usePlotLayerValue("guides", () => {
121
+ const { channel, ...options } = definedProps(props);
122
+ return { [channel]: guideColorsteps(options) };
123
+ });
124
+ return null;
125
+ }
126
+ export function GuideNone(props) {
127
+ usePlotLayerValue("guides", () => ({ [props.channel]: guideNone() }));
128
+ return null;
129
+ }
130
+ export function Inspect(props) {
131
+ useRegisterCapability("inspect", () => definedProps(props));
132
+ return null;
133
+ }
134
+ //# sourceMappingURL=grammar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grammar.js","sourceRoot":"","sources":["../src/grammar.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,UAAU,EACV,WAAW,EACX,OAAO,EACP,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,SAAS,GAcV,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAEtD,MAAM,UAAU,IAAI,CAAC,KAAe;IAClC,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,KAAgD;IACpE,iBAAiB,CAAC,OAAO,EAAE,GAAG,EAAE;QA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EAAE,GAAG,OAAO,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;QACpD,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC;IACjD,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAgC;IACxD,iBAAiB,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC;IACtE,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,KAAqB;IAC3C,qBAAqB,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAA4B,CAAC,CAAC;IACvF,OAAO,IAAI,CAAC;AACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { useEffect } from "react";
2
+ export declare const useHostLayoutEffect: typeof useEffect;
3
+ //# sourceMappingURL=host-effect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-effect.d.ts","sourceRoot":"","sources":["../src/host-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmB,MAAM,OAAO,CAAC;AAEnD,eAAO,MAAM,mBAAmB,kBAA8D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { useEffect, useLayoutEffect } from "react";
2
+ export const useHostLayoutEffect = typeof window === "undefined" ? useEffect : useLayoutEffect;
3
+ //# sourceMappingURL=host-effect.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-effect.js","sourceRoot":"","sources":["../src/host-effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAEnD,MAAM,CAAC,MAAM,mBAAmB,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=host-init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-init.d.ts","sourceRoot":"","sources":["../src/host-init.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { installCandidates, registerBasic } from "@ggts-sh/core";
2
+ registerBasic();
3
+ installCandidates();
4
+ //# sourceMappingURL=host-init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-init.js","sourceRoot":"","sources":["../src/host-init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEjE,aAAa,EAAE,CAAC;AAChB,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,17 @@
1
+ import "./host-init.js";
2
+ /** @lifecycle stable-intent */ export { GGPlot } from "./GGPlot.js";
3
+ export type { GGPlotHandle, GGPlotProps } from "./plot-props.js";
4
+ export { createPlotInteraction } from "./interaction.js";
5
+ export { INTERACTION_DIAGNOSTIC_CATALOG, normalizeInteractionConfig, } from "@ggts-sh/core/interaction";
6
+ export type { InteractionDiagnosticCode, InteractionDiagnostic, IntervalSelection, LegendFilterClause, LegendFilterOptions, LegendFilterEvent, LegendFilterInput, LegendFocusOptions, LegendFocusInput, LegendFocusChange, LegendFocusClear, LegendFocusEvent, PlotInteractionInterval, ReadonlyIntervalDomains, ScopedInteractionInterval, ScopedInteractionDomain, ScopedInteractionKeys, SemanticIntervalAxis, FacetIntervalPreset, ResolvedInspectMode, TooltipTotal, ResolvedInteractionConfig, } from "./interaction.js";
7
+ export type { AreaMode, ControllerDatumIdentity, CreatePlotInteractionOptions, InspectInput, InspectMode, InspectOptions, InteractionSource, InteractionTool, NonEmptyReadonlyArray, PlotDatum, PlotInspection, PlotInspectionChange, PlotInspectionClear, PlotInteractionChange, PlotInteractionController, PlotInteractionEvent, PlotInteractionMutationOptions, PlotInteractionScope, PlotInteractionSnapshot, PlotInteractionTransition, PlotInteractionZoomOptions, PlotSelection, PointSelection, ReadonlyZoomDomains, SelectInput, SelectOptions, TooltipField, ZoomDomains, ZoomEvent, ZoomInput, ZoomOptions, } from "./interaction.js";
8
+ export { Coord, CoordFixed, CoordFlip, CoordPolar, CoordRadial, CoordSf, Facet, FacetGrid, FacetWrap, GuideAxis, GuideColorbar, GuideColorsteps, GuideLegend, GuideNone, Guides, Inspect, Labs, Legend, Scale, Theme, } from "./grammar.js";
9
+ export { GeomPoint, GeomCount, GeomContour, GeomDotplot, GeomLine, GeomPath, GeomCol, GeomBar, GeomArea, GeomRule, GeomHline, GeomVline, GeomJitter, GeomText, GeomLabel, GeomHistogram, GeomFreqpoly, GeomSmooth, GeomQuantile, GeomBoxplot, GeomDensity, GeomDensity2d, GeomDensity2dFilled, GeomErrorbar, GeomLinerange, GeomPointrange, GeomCrossbar, GeomRect, GeomTile, GeomBin2d, GeomRaster, GeomHex, GeomRibbon, GeomSegment, GeomViolin, GeomFunction, GeomPolygon, GeomAbline, GeomCurve, GeomMap, GeomSf, GeomSfText, GeomSfLabel, GeomBlank, GeomSpoke, GeomRug, GeomStep, GeomQq, GeomQqLine, } from "./geoms/index.js";
10
+ export { ScaleXContinuous, ScaleYContinuous, ScaleXLog10, ScaleYLog10, ScaleXSqrt, ScaleYSqrt, ScaleXReverse, ScaleYReverse, ScaleXBinned, ScaleYBinned, ScaleXDate, ScaleXDatetime, ScaleXTime, ScaleYDate, ScaleYDatetime, ScaleYTime, ScaleXMonthDay, ScaleYMonthDay, ScaleXDiscrete, ScaleYDiscrete, ScaleColorContinuous, ScaleColorDiscrete, ScaleColorBinned, ScaleColorBrewer, ScaleColorDistiller, ScaleColorFermenter, ScaleColorSteps, ScaleColorSteps2, ScaleColorStepsn, ScaleColorGradient, ScaleColorGradient2, ScaleColorGradientn, ScaleColorHue, ScaleColorGrey, ScaleColorOrdinal, ScaleColorLog10, ScaleColorSqrt, ScaleColorDate, ScaleColorDatetime, ScaleColorManual, ScaleColorIdentity, ScaleFillContinuous, ScaleFillDiscrete, ScaleFillBinned, ScaleFillSteps, ScaleFillSteps2, ScaleFillStepsn, ScaleFillGradient, ScaleFillGradient2, ScaleFillGradientn, ScaleFillHue, ScaleFillGrey, ScaleFillOrdinal, ScaleFillLog10, ScaleFillSqrt, ScaleFillDate, ScaleFillDatetime, ScaleFillManual, ScaleFillIdentity, ScaleFillBrewer, ScaleFillDistiller, ScaleFillFermenter, ScaleColorViridisC, ScaleColorViridisD, ScaleColorViridisB, ScaleFillViridisC, ScaleFillViridisD, ScaleFillViridisB, ScaleSizeContinuous, ScaleSizeDiscrete, ScaleSizeBinned, ScaleSizeDate, ScaleSizeDatetime, ScaleSizeManual, ScaleSizeIdentity, ScaleLinewidthContinuous, ScaleLinewidthDiscrete, ScaleLinewidthBinned, ScaleLinewidthDate, ScaleLinewidthDatetime, ScaleLinewidthManual, ScaleLinewidthIdentity, ScaleAlphaContinuous, ScaleAlphaDiscrete, ScaleAlphaBinned, ScaleAlphaDate, ScaleAlphaDatetime, ScaleAlphaManual, ScaleAlphaIdentity, ScaleSizeArea, ScaleSizeBinnedArea, ScaleRadius, ScaleShapeDiscrete, ScaleShapeBinned, ScaleShapeManual, ScaleShapeIdentity, ScaleLinetypeDiscrete, ScaleLinetypeBinned, ScaleLinetypeManual, ScaleLinetypeIdentity, ScaleColourContinuous, ScaleColourDiscrete, ScaleColourBinned, ScaleColourBrewer, ScaleColourDistiller, ScaleColourFermenter, ScaleColourSteps, ScaleColourSteps2, ScaleColourStepsn, ScaleColourGradient, ScaleColourGradient2, ScaleColourGradientn, ScaleColourHue, ScaleColourGrey, ScaleColourOrdinal, ScaleColourLog10, ScaleColourSqrt, ScaleColourDate, ScaleColourDatetime, ScaleColourManual, ScaleColourIdentity, ScaleColourViridisC, ScaleColourViridisD, ScaleColourViridisB, ScaleSizeOrdinal, ScaleLinewidthOrdinal, ScaleAlphaOrdinal, ScaleShapeOrdinal, } from "./scales.js";
11
+ export { ThemeDefault, ThemeLight, ThemeDark, ThemeMinimal, ThemeGgplot2, ThemeClassic, ThemeBw, ThemeHrbr, ThemeFew, ThemeClean, ThemeFivethirtyeight, ThemeEconomist, ThemeTufte, ThemeLinedraw, ThemeVoid, ThemeStata, ThemeStatas1color, ThemeSolarized, ThemeSolarizeddark, ThemeEconomistwhite, ThemeSolarized2, ThemeSolarized2dark, ThemeWsj, ThemeHc, ThemeHcdark, ThemePander, ThemeBase, ThemeIgray, ThemeMap, ThemeSolid, ThemeGrey, ThemeGray, ThemeTest, } from "./themes.js";
12
+ export { assemblePortableSpec, isFacetedPlotIntent, resolveInteractionScope, toLayerInput, } from "@ggts-sh/compose";
13
+ export { aes, gg, normalize, validate, lintSpec, toPortable, isPortable } from "@ggts-sh/spec";
14
+ export type { AesInput, LayerInput, PortableSpec, SpecInput } from "@ggts-sh/spec";
15
+ export { installTemporal, planStrata, registerAbline, registerAll, registerAlign, registerBasic, registerBin, registerBin2d, registerBoxplot, registerConnect, registerContour, registerCrossbar, registerCurve, registerDensity, registerDensity2d, registerDensity2dFilled, registerDotplot, registerEcdf, registerEllipse, registerErrorbar, registerFunction, registerHex, registerLinerange, registerManual, registerMap, registerPointrange, registerPolygon, registerQq, registerQqLine, registerQuantile, registerRaster, registerRug, registerSf, registerSfLabel, registerSfText, registerSmooth, registerSpoke, registerSummary, registerSummaryBin, registerSummaryRolling, registerTile, registerUnique, registerViolin, renderToSVGString, runPipeline, } from "@ggts-sh/core";
16
+ export type { RenderModel, RunOptions, Scene, ScaleState, Stratum } from "@ggts-sh/core";
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,CAAC;AAExB,+BAA+B,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACjE,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d,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,OAAO,EACP,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EACV,QAAQ,EACR,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,GACV,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,uBAAuB,EACvB,YAAY,GACb,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/F,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAEnF,OAAO,EACL,eAAe,EACf,UAAU,EACV,cAAc,EACd,WAAW,EACX,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,UAAU,EACV,eAAe,EACf,cAAc,EACd,cAAc,EACd,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,15 @@
1
+ // @ggts-sh/react — React DOM adapter. Props-first API; declaration-only
2
+ // children are optional sugar. Re-exports spec/core so one install is enough.
3
+ // @lifecycle-default experimental
4
+ import "./host-init.js";
5
+ /** @lifecycle stable-intent */ export { GGPlot } from "./GGPlot.js";
6
+ export { createPlotInteraction } from "./interaction.js";
7
+ export { INTERACTION_DIAGNOSTIC_CATALOG, normalizeInteractionConfig, } from "@ggts-sh/core/interaction";
8
+ export { Coord, CoordFixed, CoordFlip, CoordPolar, CoordRadial, CoordSf, Facet, FacetGrid, FacetWrap, GuideAxis, GuideColorbar, GuideColorsteps, GuideLegend, GuideNone, Guides, Inspect, Labs, Legend, Scale, Theme, } from "./grammar.js";
9
+ export { GeomPoint, GeomCount, GeomContour, GeomDotplot, GeomLine, GeomPath, GeomCol, GeomBar, GeomArea, GeomRule, GeomHline, GeomVline, GeomJitter, GeomText, GeomLabel, GeomHistogram, GeomFreqpoly, GeomSmooth, GeomQuantile, GeomBoxplot, GeomDensity, GeomDensity2d, GeomDensity2dFilled, GeomErrorbar, GeomLinerange, GeomPointrange, GeomCrossbar, GeomRect, GeomTile, GeomBin2d, GeomRaster, GeomHex, GeomRibbon, GeomSegment, GeomViolin, GeomFunction, GeomPolygon, GeomAbline, GeomCurve, GeomMap, GeomSf, GeomSfText, GeomSfLabel, GeomBlank, GeomSpoke, GeomRug, GeomStep, GeomQq, GeomQqLine, } from "./geoms/index.js";
10
+ export { ScaleXContinuous, ScaleYContinuous, ScaleXLog10, ScaleYLog10, ScaleXSqrt, ScaleYSqrt, ScaleXReverse, ScaleYReverse, ScaleXBinned, ScaleYBinned, ScaleXDate, ScaleXDatetime, ScaleXTime, ScaleYDate, ScaleYDatetime, ScaleYTime, ScaleXMonthDay, ScaleYMonthDay, ScaleXDiscrete, ScaleYDiscrete, ScaleColorContinuous, ScaleColorDiscrete, ScaleColorBinned, ScaleColorBrewer, ScaleColorDistiller, ScaleColorFermenter, ScaleColorSteps, ScaleColorSteps2, ScaleColorStepsn, ScaleColorGradient, ScaleColorGradient2, ScaleColorGradientn, ScaleColorHue, ScaleColorGrey, ScaleColorOrdinal, ScaleColorLog10, ScaleColorSqrt, ScaleColorDate, ScaleColorDatetime, ScaleColorManual, ScaleColorIdentity, ScaleFillContinuous, ScaleFillDiscrete, ScaleFillBinned, ScaleFillSteps, ScaleFillSteps2, ScaleFillStepsn, ScaleFillGradient, ScaleFillGradient2, ScaleFillGradientn, ScaleFillHue, ScaleFillGrey, ScaleFillOrdinal, ScaleFillLog10, ScaleFillSqrt, ScaleFillDate, ScaleFillDatetime, ScaleFillManual, ScaleFillIdentity, ScaleFillBrewer, ScaleFillDistiller, ScaleFillFermenter, ScaleColorViridisC, ScaleColorViridisD, ScaleColorViridisB, ScaleFillViridisC, ScaleFillViridisD, ScaleFillViridisB, ScaleSizeContinuous, ScaleSizeDiscrete, ScaleSizeBinned, ScaleSizeDate, ScaleSizeDatetime, ScaleSizeManual, ScaleSizeIdentity, ScaleLinewidthContinuous, ScaleLinewidthDiscrete, ScaleLinewidthBinned, ScaleLinewidthDate, ScaleLinewidthDatetime, ScaleLinewidthManual, ScaleLinewidthIdentity, ScaleAlphaContinuous, ScaleAlphaDiscrete, ScaleAlphaBinned, ScaleAlphaDate, ScaleAlphaDatetime, ScaleAlphaManual, ScaleAlphaIdentity, ScaleSizeArea, ScaleSizeBinnedArea, ScaleRadius, ScaleShapeDiscrete, ScaleShapeBinned, ScaleShapeManual, ScaleShapeIdentity, ScaleLinetypeDiscrete, ScaleLinetypeBinned, ScaleLinetypeManual, ScaleLinetypeIdentity, ScaleColourContinuous, ScaleColourDiscrete, ScaleColourBinned, ScaleColourBrewer, ScaleColourDistiller, ScaleColourFermenter, ScaleColourSteps, ScaleColourSteps2, ScaleColourStepsn, ScaleColourGradient, ScaleColourGradient2, ScaleColourGradientn, ScaleColourHue, ScaleColourGrey, ScaleColourOrdinal, ScaleColourLog10, ScaleColourSqrt, ScaleColourDate, ScaleColourDatetime, ScaleColourManual, ScaleColourIdentity, ScaleColourViridisC, ScaleColourViridisD, ScaleColourViridisB, ScaleSizeOrdinal, ScaleLinewidthOrdinal, ScaleAlphaOrdinal, ScaleShapeOrdinal, } from "./scales.js";
11
+ export { ThemeDefault, ThemeLight, ThemeDark, ThemeMinimal, ThemeGgplot2, ThemeClassic, ThemeBw, ThemeHrbr, ThemeFew, ThemeClean, ThemeFivethirtyeight, ThemeEconomist, ThemeTufte, ThemeLinedraw, ThemeVoid, ThemeStata, ThemeStatas1color, ThemeSolarized, ThemeSolarizeddark, ThemeEconomistwhite, ThemeSolarized2, ThemeSolarized2dark, ThemeWsj, ThemeHc, ThemeHcdark, ThemePander, ThemeBase, ThemeIgray, ThemeMap, ThemeSolid, ThemeGrey, ThemeGray, ThemeTest, } from "./themes.js";
12
+ export { assemblePortableSpec, isFacetedPlotIntent, resolveInteractionScope, toLayerInput, } from "@ggts-sh/compose";
13
+ export { aes, gg, normalize, validate, lintSpec, toPortable, isPortable } from "@ggts-sh/spec";
14
+ export { installTemporal, planStrata, registerAbline, registerAll, registerAlign, registerBasic, registerBin, registerBin2d, registerBoxplot, registerConnect, registerContour, registerCrossbar, registerCurve, registerDensity, registerDensity2d, registerDensity2dFilled, registerDotplot, registerEcdf, registerEllipse, registerErrorbar, registerFunction, registerHex, registerLinerange, registerManual, registerMap, registerPointrange, registerPolygon, registerQq, registerQqLine, registerQuantile, registerRaster, registerRug, registerSf, registerSfLabel, registerSfText, registerSmooth, registerSpoke, registerSummary, registerSummaryBin, registerSummaryRolling, registerTile, registerUnique, registerViolin, renderToSVGString, runPipeline, } from "@ggts-sh/core";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,8EAA8E;AAC9E,kCAAkC;AAElC,OAAO,gBAAgB,CAAC;AAExB,+BAA+B,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB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AAc,EACd,cAAc,EACd,aAAa,EACb,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,WAAW,GACZ,MAAM,eAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { CellValue } from "@ggts-sh/core";
2
+ import type { InspectOptions as CoreInspectOptions, PlotInspectionChange, ResolvedInteractionConfig as CoreResolvedInteractionConfig } from "@ggts-sh/core/interaction";
3
+ import type { ReactNode } from "react";
4
+ export type * from "@ggts-sh/core/interaction";
5
+ export { createPlotInteraction } from "@ggts-sh/core/interaction";
6
+ export type InspectOptions<Row = Record<string, CellValue>, Key = PropertyKey> = CoreInspectOptions<Row, Key, (inspection: PlotInspectionChange<Row, Key>) => ReactNode>;
7
+ export type InspectInput<Row = Record<string, CellValue>, Key = PropertyKey> = boolean | InspectOptions<Row, Key>;
8
+ export type ResolvedInteractionConfig = CoreResolvedInteractionConfig<Record<string, CellValue>, PropertyKey, (inspection: PlotInspectionChange<Record<string, CellValue>, PropertyKey>) => ReactNode>;
9
+ //# sourceMappingURL=interaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction.d.ts","sourceRoot":"","sources":["../src/interaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EACV,cAAc,IAAI,kBAAkB,EACpC,oBAAoB,EACpB,yBAAyB,IAAI,6BAA6B,EAC3D,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,mBAAmB,2BAA2B,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,MAAM,MAAM,cAAc,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,WAAW,IAAI,kBAAkB,CACjG,GAAG,EACH,GAAG,EACH,CAAC,UAAU,EAAE,oBAAoB,CAAC,GAAG,EAAE,GAAG,CAAC,KAAK,SAAS,CAC1D,CAAC;AACF,MAAM,MAAM,YAAY,CAAC,GAAG,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,GAAG,GAAG,WAAW,IACvE,OAAO,GACP,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC7B,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CACnE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EACzB,WAAW,EACX,CAAC,UAAU,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,WAAW,CAAC,KAAK,SAAS,CACxF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { createPlotInteraction } from "@ggts-sh/core/interaction";
2
+ //# sourceMappingURL=interaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../src/interaction.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { CSSProperties } from "react";
2
+ import type { GeometryBatch, RenderModel, CellValue } from "@ggts-sh/core";
3
+ import type { PlotInspectionChange } from "@ggts-sh/core/interaction";
4
+ import type { PortableSpec } from "@ggts-sh/spec";
5
+ import type { InspectOptions, InteractionSource } from "./interaction.js";
6
+ export declare const visuallyHidden: CSSProperties;
7
+ export declare function CanvasAccessibility({ model, batches, label, }: {
8
+ model: RenderModel;
9
+ batches: GeometryBatch[];
10
+ label: string;
11
+ }): import("react").JSX.Element;
12
+ export declare function inspectionLabel(inspection: PlotInspectionChange<Record<string, CellValue>, PropertyKey> | null): string;
13
+ export declare function PlotTooltip({ id, inspection, options, model, spec, onClose, onEnter, onLeave, }: {
14
+ id: string;
15
+ inspection: PlotInspectionChange<Record<string, CellValue>, PropertyKey>;
16
+ options: InspectOptions;
17
+ model: RenderModel;
18
+ spec: PortableSpec;
19
+ onClose: (source: InteractionSource) => void;
20
+ onEnter: () => void;
21
+ onLeave: () => void;
22
+ }): import("react").JSX.Element;
23
+ //# sourceMappingURL=plot-accessibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot-accessibility.d.ts","sourceRoot":"","sources":["../src/plot-accessibility.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1E,eAAO,MAAM,cAAc,EAAE,aAU5B,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,OAAO,EACP,KAAK,GACN,EAAE;IACD,KAAK,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;CACf,+BAoDA;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,WAAW,CAAC,GAAG,IAAI,GAC9E,MAAM,CAKR;AAED,wBAAgB,WAAW,CAAC,EAC1B,EAAE,EACF,UAAU,EACV,OAAO,EACP,KAAK,EACL,IAAI,EACJ,OAAO,EACP,OAAO,EACP,OAAO,GACR,EAAE;IACD,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,oBAAoB,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;IACzE,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,IAAI,EAAE,YAAY,CAAC;IACnB,OAAO,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,+BAqGA"}
@@ -0,0 +1,68 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { useMemo, useState } from "react";
3
+ import { a11yMarkCount, a11yRows, collapseIdenticalDisplayMembers, defaultTooltipRows, formatTooltipCell, tooltipTotalPlacement, } from "@ggts-sh/core/interaction";
4
+ export const visuallyHidden = {
5
+ position: "absolute",
6
+ width: 1,
7
+ height: 1,
8
+ padding: 0,
9
+ margin: -1,
10
+ overflow: "hidden",
11
+ clipPath: "inset(50%)",
12
+ whiteSpace: "nowrap",
13
+ border: 0,
14
+ };
15
+ export function CanvasAccessibility({ model, batches, label, }) {
16
+ const [open, setOpen] = useState(false);
17
+ const table = useMemo(() => (open ? a11yRows(model, batches) : null), [open, model, batches]);
18
+ const total = useMemo(() => a11yMarkCount(batches), [batches]);
19
+ return (_jsxs("div", { className: "gg-canvas-a11y", children: [_jsx("div", { role: "img", "aria-label": `${label} — ${total} canvas-rendered marks. Use the data table.`, style: visuallyHidden }), _jsx("button", { type: "button", "aria-expanded": open, onClick: () => {
20
+ setOpen(!open);
21
+ }, children: open ? "Hide data table" : "Show data table" }), table !== null && (_jsxs("div", { style: { overflow: "auto", maxHeight: 320 }, children: [_jsxs("table", { children: [_jsx("caption", { children: label }), _jsx("thead", { children: _jsx("tr", { children: table.fields.map((field) => (_jsx("th", { scope: "col", children: field }, field))) }) }), _jsx("tbody", { children: table.rows.map((row, index) => (_jsx("tr", { children: row.map((value, cell) => (_jsx("td", { children: formatTooltipCell(value) }, cell))) }, index))) })] }), table.total > table.rows.length && (_jsxs("p", { children: ["First ", table.rows.length, " of ", table.total, " rows."] }))] }))] }));
22
+ }
23
+ export function inspectionLabel(inspection) {
24
+ if (inspection === null)
25
+ return "";
26
+ return inspection.focus.fields
27
+ .map((field) => `${field.field}: ${formatTooltipCell(field.value)}`)
28
+ .join(", ");
29
+ }
30
+ export function PlotTooltip({ id, inspection, options, model, spec, onClose, onEnter, onLeave, }) {
31
+ const pinned = inspection.state === "pinned";
32
+ const interactive = options.contentMode === "interactive" && pinned;
33
+ const members = collapseIdenticalDisplayMembers(inspection.members, inspection.focus, model.axisFormatters, inspection.mode);
34
+ const placement = tooltipTotalPlacement({
35
+ tooltipTotal: options.tooltipTotal ?? "auto",
36
+ groupTotal: inspection.groupTotal,
37
+ memberCount: members.length,
38
+ mode: inspection.mode,
39
+ });
40
+ const total = (_jsxs("div", { className: "gg-tooltip-total", children: ["Total: ", formatTooltipCell(inspection.groupTotal ?? null)] }));
41
+ return (_jsxs("div", { id: id, className: `gg-tooltip${pinned ? " gg-tooltip-pinned" : ""}`, role: interactive ? "dialog" : "tooltip", "aria-label": interactive ? "Data inspection" : undefined, tabIndex: interactive ? -1 : undefined, style: {
42
+ position: "absolute",
43
+ left: Math.max(0, Math.min(inspection.focus.anchor.x + 12, model.scene.width - 260)),
44
+ top: Math.max(0, Math.min(inspection.focus.anchor.y + 12, model.scene.height - 100)),
45
+ maxWidth: 260,
46
+ maxHeight: 320,
47
+ overflow: "auto",
48
+ padding: 12,
49
+ lineHeight: 1.4,
50
+ color: "var(--gg-ink, CanvasText)",
51
+ background: "var(--gg-paper, Canvas)",
52
+ border: "1px solid currentColor",
53
+ borderRadius: 4,
54
+ zIndex: 2,
55
+ pointerEvents: "auto",
56
+ }, onPointerEnter: onEnter, onPointerLeave: onLeave, onKeyDown: (event) => {
57
+ if (event.key === "Escape") {
58
+ event.stopPropagation();
59
+ onClose("keyboard");
60
+ }
61
+ }, children: [options.content === undefined ? (_jsxs(_Fragment, { children: [(inspection.mode === "x" || inspection.mode === "y") && (_jsx("div", { className: "gg-tooltip-axis", children: inspection.axisLabel })), placement === "top" && total, members.map((member, index) => (_jsx("dl", { className: "gg-tooltip-member", children: defaultTooltipRows(member.fields, inspection.mode, { labs: spec.labs }).map((row) => (_jsxs("div", { style: { display: "flex", gap: 12, justifyContent: "space-between" }, children: [_jsx("dt", { children: row.label }), _jsx("dd", { style: { margin: 0 }, children: formatTooltipCell(row.value, member.row === null
62
+ ? { channel: row.valueChannel, axisFormatters: model.axisFormatters }
63
+ : undefined) })] }, row.key))) }, index))), placement === "bottom" && total, (inspection.mode === "x" || inspection.mode === "y") &&
64
+ inspection.groupMemberCount > members.length && (_jsxs("div", { children: ["+", inspection.groupMemberCount - members.length, " more"] }))] })) : (options.content(inspection)), pinned && (_jsx("button", { type: "button", onClick: () => {
65
+ onClose("pointer");
66
+ }, children: "Close" }))] }));
67
+ }
68
+ //# sourceMappingURL=plot-accessibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot-accessibility.js","sourceRoot":"","sources":["../src/plot-accessibility.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EACL,aAAa,EACb,QAAQ,EACR,+BAA+B,EAC/B,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,2BAA2B,CAAC;AAMnC,MAAM,CAAC,MAAM,cAAc,GAAkB;IAC3C,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;IACT,OAAO,EAAE,CAAC;IACV,MAAM,EAAE,CAAC,CAAC;IACV,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,CAAC;CACV,CAAC;AAEF,MAAM,UAAU,mBAAmB,CAAC,EAClC,KAAK,EACL,OAAO,EACP,KAAK,GAKN;IACC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,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,+BAAO,UAAU,CAAC,gBAAgB,GAAG,OAAO,CAAC,MAAM,aAAY,CAChE,IACF,CACJ,CAAC,CAAC,CAAC,CACF,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,CAC5B,EACA,MAAM,IAAI,CACT,iBACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,CAAC,SAAS,CAAC,CAAC;gBACrB,CAAC,sBAGM,CACV,IACG,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { PortableSpec } from "@ggts-sh/spec";
2
+ import type { GGPlotProps } from "./plot-props.js";
3
+ import type { LayerRegistry } from "./registry.js";
4
+ export declare function assembleFromProps(props: Pick<GGPlotProps, "spec" | "data" | "aes" | "layers" | "a11y">, registry: LayerRegistry): PortableSpec | null;
5
+ //# sourceMappingURL=plot-assemble.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot-assemble.d.ts","sourceRoot":"","sources":["../src/plot-assemble.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEnD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC,EACrE,QAAQ,EAAE,aAAa,GACtB,YAAY,GAAG,IAAI,CAWrB"}
@@ -0,0 +1,14 @@
1
+ import { assemblePortableSpec, isHostPlotLayer, toLayerInput } from "@ggts-sh/compose";
2
+ export function assembleFromProps(props, registry) {
3
+ if (props.spec !== undefined) {
4
+ return assemblePortableSpec({ spec: props.spec, layers: [] });
5
+ }
6
+ return assemblePortableSpec({
7
+ ...(props.data !== undefined && { data: props.data }),
8
+ ...(props.aes !== undefined && { aes: props.aes }),
9
+ layers: props.layers ?? registry.markLayers.map(toLayerInput),
10
+ plotLayers: registry.layers.filter((layer) => layer.kind !== "mark" && !isHostPlotLayer(layer)),
11
+ ...(props.a11y !== undefined && { a11y: props.a11y }),
12
+ });
13
+ }
14
+ //# sourceMappingURL=plot-assemble.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot-assemble.js","sourceRoot":"","sources":["../src/plot-assemble.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMvF,MAAM,UAAU,iBAAiB,CAC/B,KAAqE,EACrE,QAAuB;IAEvB,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC7B,OAAO,oBAAoB,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAChE,CAAC;IACD,OAAO,oBAAoB,CAAC;QAC1B,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;QACrD,GAAG,CAAC,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;QAClD,MAAM,EAAE,KAAK,CAAC,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,CAAC;QAC7D,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;QAC/F,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;KACtD,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,20 @@
1
+ import type { BoundsEditorInput, InteractionTool, PreciseBoundsApplyEvent } from "@ggts-sh/core/interaction";
2
+ interface PlotControlsProps {
3
+ tools: readonly InteractionTool[];
4
+ activeTool: InteractionTool;
5
+ onToolChange: (tool: InteractionTool) => void;
6
+ canResetZoom: boolean;
7
+ onResetZoom: () => void;
8
+ canClearSelection: boolean;
9
+ onClearSelection: () => void;
10
+ canClearIntervals: boolean;
11
+ onClearIntervals: () => void;
12
+ boundsInputs: readonly {
13
+ panelId: string;
14
+ input: BoundsEditorInput;
15
+ }[];
16
+ onApplyBounds: (panelId: string, event: PreciseBoundsApplyEvent) => void;
17
+ }
18
+ export declare function PlotControls(props: PlotControlsProps): import("react").JSX.Element;
19
+ export {};
20
+ //# sourceMappingURL=plot-controls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plot-controls.d.ts","sourceRoot":"","sources":["../src/plot-controls.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAEV,iBAAiB,EACjB,eAAe,EACf,uBAAuB,EACxB,MAAM,2BAA2B,CAAC;AAEnC,UAAU,iBAAiB;IACzB,KAAK,EAAE,SAAS,eAAe,EAAE,CAAC;IAClC,UAAU,EAAE,eAAe,CAAC;IAC5B,YAAY,EAAE,CAAC,IAAI,EAAE,eAAe,KAAK,IAAI,CAAC;IAC9C,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,YAAY,EAAE,SAAS;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,iBAAiB,CAAA;KAAE,EAAE,CAAC;IACvE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC1E;AAiLD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAqFpD"}