@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.
- package/README.md +66 -0
- package/dist/GGPlot.d.ts +6 -0
- package/dist/GGPlot.d.ts.map +1 -0
- package/dist/GGPlot.js +18 -0
- package/dist/GGPlot.js.map +1 -0
- package/dist/datum-key.d.ts +21 -0
- package/dist/datum-key.d.ts.map +1 -0
- package/dist/datum-key.js +60 -0
- package/dist/datum-key.js.map +1 -0
- package/dist/defined-props.d.ts +3 -0
- package/dist/defined-props.d.ts.map +1 -0
- package/dist/defined-props.js +11 -0
- package/dist/defined-props.js.map +1 -0
- package/dist/geom-factory.d.ts +17 -0
- package/dist/geom-factory.d.ts.map +1 -0
- package/dist/geom-factory.js +63 -0
- package/dist/geom-factory.js.map +1 -0
- package/dist/geoms/GeomAbline.d.ts +8 -0
- package/dist/geoms/GeomAbline.d.ts.map +1 -0
- package/dist/geoms/GeomAbline.js +8 -0
- package/dist/geoms/GeomAbline.js.map +1 -0
- package/dist/geoms/GeomArea.d.ts +8 -0
- package/dist/geoms/GeomArea.d.ts.map +1 -0
- package/dist/geoms/GeomArea.js +6 -0
- package/dist/geoms/GeomArea.js.map +1 -0
- package/dist/geoms/GeomBar.d.ts +8 -0
- package/dist/geoms/GeomBar.d.ts.map +1 -0
- package/dist/geoms/GeomBar.js +6 -0
- package/dist/geoms/GeomBar.js.map +1 -0
- package/dist/geoms/GeomBin2d.d.ts +8 -0
- package/dist/geoms/GeomBin2d.d.ts.map +1 -0
- package/dist/geoms/GeomBin2d.js +8 -0
- package/dist/geoms/GeomBin2d.js.map +1 -0
- package/dist/geoms/GeomBlank.d.ts +8 -0
- package/dist/geoms/GeomBlank.d.ts.map +1 -0
- package/dist/geoms/GeomBlank.js +6 -0
- package/dist/geoms/GeomBlank.js.map +1 -0
- package/dist/geoms/GeomBoxplot.d.ts +8 -0
- package/dist/geoms/GeomBoxplot.d.ts.map +1 -0
- package/dist/geoms/GeomBoxplot.js +8 -0
- package/dist/geoms/GeomBoxplot.js.map +1 -0
- package/dist/geoms/GeomCol.d.ts +8 -0
- package/dist/geoms/GeomCol.d.ts.map +1 -0
- package/dist/geoms/GeomCol.js +6 -0
- package/dist/geoms/GeomCol.js.map +1 -0
- package/dist/geoms/GeomContour.d.ts +8 -0
- package/dist/geoms/GeomContour.d.ts.map +1 -0
- package/dist/geoms/GeomContour.js +8 -0
- package/dist/geoms/GeomContour.js.map +1 -0
- package/dist/geoms/GeomCount.d.ts +8 -0
- package/dist/geoms/GeomCount.d.ts.map +1 -0
- package/dist/geoms/GeomCount.js +6 -0
- package/dist/geoms/GeomCount.js.map +1 -0
- package/dist/geoms/GeomCrossbar.d.ts +8 -0
- package/dist/geoms/GeomCrossbar.d.ts.map +1 -0
- package/dist/geoms/GeomCrossbar.js +8 -0
- package/dist/geoms/GeomCrossbar.js.map +1 -0
- package/dist/geoms/GeomCurve.d.ts +8 -0
- package/dist/geoms/GeomCurve.d.ts.map +1 -0
- package/dist/geoms/GeomCurve.js +8 -0
- package/dist/geoms/GeomCurve.js.map +1 -0
- package/dist/geoms/GeomDensity.d.ts +8 -0
- package/dist/geoms/GeomDensity.d.ts.map +1 -0
- package/dist/geoms/GeomDensity.js +8 -0
- package/dist/geoms/GeomDensity.js.map +1 -0
- package/dist/geoms/GeomDensity2d.d.ts +8 -0
- package/dist/geoms/GeomDensity2d.d.ts.map +1 -0
- package/dist/geoms/GeomDensity2d.js +8 -0
- package/dist/geoms/GeomDensity2d.js.map +1 -0
- package/dist/geoms/GeomDensity2dFilled.d.ts +8 -0
- package/dist/geoms/GeomDensity2dFilled.d.ts.map +1 -0
- package/dist/geoms/GeomDensity2dFilled.js +8 -0
- package/dist/geoms/GeomDensity2dFilled.js.map +1 -0
- package/dist/geoms/GeomDotplot.d.ts +8 -0
- package/dist/geoms/GeomDotplot.d.ts.map +1 -0
- package/dist/geoms/GeomDotplot.js +8 -0
- package/dist/geoms/GeomDotplot.js.map +1 -0
- package/dist/geoms/GeomErrorbar.d.ts +8 -0
- package/dist/geoms/GeomErrorbar.d.ts.map +1 -0
- package/dist/geoms/GeomErrorbar.js +8 -0
- package/dist/geoms/GeomErrorbar.js.map +1 -0
- package/dist/geoms/GeomFreqpoly.d.ts +8 -0
- package/dist/geoms/GeomFreqpoly.d.ts.map +1 -0
- package/dist/geoms/GeomFreqpoly.js +8 -0
- package/dist/geoms/GeomFreqpoly.js.map +1 -0
- package/dist/geoms/GeomFunction.d.ts +8 -0
- package/dist/geoms/GeomFunction.d.ts.map +1 -0
- package/dist/geoms/GeomFunction.js +8 -0
- package/dist/geoms/GeomFunction.js.map +1 -0
- package/dist/geoms/GeomHex.d.ts +8 -0
- package/dist/geoms/GeomHex.d.ts.map +1 -0
- package/dist/geoms/GeomHex.js +8 -0
- package/dist/geoms/GeomHex.js.map +1 -0
- package/dist/geoms/GeomHistogram.d.ts +8 -0
- package/dist/geoms/GeomHistogram.d.ts.map +1 -0
- package/dist/geoms/GeomHistogram.js +8 -0
- package/dist/geoms/GeomHistogram.js.map +1 -0
- package/dist/geoms/GeomHline.d.ts +8 -0
- package/dist/geoms/GeomHline.d.ts.map +1 -0
- package/dist/geoms/GeomHline.js +6 -0
- package/dist/geoms/GeomHline.js.map +1 -0
- package/dist/geoms/GeomJitter.d.ts +11 -0
- package/dist/geoms/GeomJitter.d.ts.map +1 -0
- package/dist/geoms/GeomJitter.js +15 -0
- package/dist/geoms/GeomJitter.js.map +1 -0
- package/dist/geoms/GeomLabel.d.ts +8 -0
- package/dist/geoms/GeomLabel.d.ts.map +1 -0
- package/dist/geoms/GeomLabel.js +6 -0
- package/dist/geoms/GeomLabel.js.map +1 -0
- package/dist/geoms/GeomLine.d.ts +8 -0
- package/dist/geoms/GeomLine.d.ts.map +1 -0
- package/dist/geoms/GeomLine.js +6 -0
- package/dist/geoms/GeomLine.js.map +1 -0
- package/dist/geoms/GeomLinerange.d.ts +8 -0
- package/dist/geoms/GeomLinerange.d.ts.map +1 -0
- package/dist/geoms/GeomLinerange.js +8 -0
- package/dist/geoms/GeomLinerange.js.map +1 -0
- package/dist/geoms/GeomMap.d.ts +8 -0
- package/dist/geoms/GeomMap.d.ts.map +1 -0
- package/dist/geoms/GeomMap.js +8 -0
- package/dist/geoms/GeomMap.js.map +1 -0
- package/dist/geoms/GeomPath.d.ts +8 -0
- package/dist/geoms/GeomPath.d.ts.map +1 -0
- package/dist/geoms/GeomPath.js +6 -0
- package/dist/geoms/GeomPath.js.map +1 -0
- package/dist/geoms/GeomPoint.d.ts +8 -0
- package/dist/geoms/GeomPoint.d.ts.map +1 -0
- package/dist/geoms/GeomPoint.js +6 -0
- package/dist/geoms/GeomPoint.js.map +1 -0
- package/dist/geoms/GeomPointrange.d.ts +8 -0
- package/dist/geoms/GeomPointrange.d.ts.map +1 -0
- package/dist/geoms/GeomPointrange.js +8 -0
- package/dist/geoms/GeomPointrange.js.map +1 -0
- package/dist/geoms/GeomPolygon.d.ts +8 -0
- package/dist/geoms/GeomPolygon.d.ts.map +1 -0
- package/dist/geoms/GeomPolygon.js +8 -0
- package/dist/geoms/GeomPolygon.js.map +1 -0
- package/dist/geoms/GeomQq.d.ts +8 -0
- package/dist/geoms/GeomQq.d.ts.map +1 -0
- package/dist/geoms/GeomQq.js +8 -0
- package/dist/geoms/GeomQq.js.map +1 -0
- package/dist/geoms/GeomQqLine.d.ts +8 -0
- package/dist/geoms/GeomQqLine.d.ts.map +1 -0
- package/dist/geoms/GeomQqLine.js +8 -0
- package/dist/geoms/GeomQqLine.js.map +1 -0
- package/dist/geoms/GeomQuantile.d.ts +8 -0
- package/dist/geoms/GeomQuantile.d.ts.map +1 -0
- package/dist/geoms/GeomQuantile.js +8 -0
- package/dist/geoms/GeomQuantile.js.map +1 -0
- package/dist/geoms/GeomRaster.d.ts +8 -0
- package/dist/geoms/GeomRaster.d.ts.map +1 -0
- package/dist/geoms/GeomRaster.js +8 -0
- package/dist/geoms/GeomRaster.js.map +1 -0
- package/dist/geoms/GeomRect.d.ts +8 -0
- package/dist/geoms/GeomRect.d.ts.map +1 -0
- package/dist/geoms/GeomRect.js +6 -0
- package/dist/geoms/GeomRect.js.map +1 -0
- package/dist/geoms/GeomRibbon.d.ts +8 -0
- package/dist/geoms/GeomRibbon.d.ts.map +1 -0
- package/dist/geoms/GeomRibbon.js +6 -0
- package/dist/geoms/GeomRibbon.js.map +1 -0
- package/dist/geoms/GeomRug.d.ts +8 -0
- package/dist/geoms/GeomRug.d.ts.map +1 -0
- package/dist/geoms/GeomRug.js +8 -0
- package/dist/geoms/GeomRug.js.map +1 -0
- package/dist/geoms/GeomRule.d.ts +8 -0
- package/dist/geoms/GeomRule.d.ts.map +1 -0
- package/dist/geoms/GeomRule.js +6 -0
- package/dist/geoms/GeomRule.js.map +1 -0
- package/dist/geoms/GeomSegment.d.ts +8 -0
- package/dist/geoms/GeomSegment.d.ts.map +1 -0
- package/dist/geoms/GeomSegment.js +6 -0
- package/dist/geoms/GeomSegment.js.map +1 -0
- package/dist/geoms/GeomSf.d.ts +8 -0
- package/dist/geoms/GeomSf.d.ts.map +1 -0
- package/dist/geoms/GeomSf.js +8 -0
- package/dist/geoms/GeomSf.js.map +1 -0
- package/dist/geoms/GeomSfLabel.d.ts +8 -0
- package/dist/geoms/GeomSfLabel.d.ts.map +1 -0
- package/dist/geoms/GeomSfLabel.js +8 -0
- package/dist/geoms/GeomSfLabel.js.map +1 -0
- package/dist/geoms/GeomSfText.d.ts +8 -0
- package/dist/geoms/GeomSfText.d.ts.map +1 -0
- package/dist/geoms/GeomSfText.js +8 -0
- package/dist/geoms/GeomSfText.js.map +1 -0
- package/dist/geoms/GeomSmooth.d.ts +8 -0
- package/dist/geoms/GeomSmooth.d.ts.map +1 -0
- package/dist/geoms/GeomSmooth.js +8 -0
- package/dist/geoms/GeomSmooth.js.map +1 -0
- package/dist/geoms/GeomSpoke.d.ts +8 -0
- package/dist/geoms/GeomSpoke.d.ts.map +1 -0
- package/dist/geoms/GeomSpoke.js +8 -0
- package/dist/geoms/GeomSpoke.js.map +1 -0
- package/dist/geoms/GeomStep.d.ts +8 -0
- package/dist/geoms/GeomStep.d.ts.map +1 -0
- package/dist/geoms/GeomStep.js +6 -0
- package/dist/geoms/GeomStep.js.map +1 -0
- package/dist/geoms/GeomText.d.ts +8 -0
- package/dist/geoms/GeomText.d.ts.map +1 -0
- package/dist/geoms/GeomText.js +6 -0
- package/dist/geoms/GeomText.js.map +1 -0
- package/dist/geoms/GeomTile.d.ts +8 -0
- package/dist/geoms/GeomTile.d.ts.map +1 -0
- package/dist/geoms/GeomTile.js +8 -0
- package/dist/geoms/GeomTile.js.map +1 -0
- package/dist/geoms/GeomViolin.d.ts +8 -0
- package/dist/geoms/GeomViolin.d.ts.map +1 -0
- package/dist/geoms/GeomViolin.js +8 -0
- package/dist/geoms/GeomViolin.js.map +1 -0
- package/dist/geoms/GeomVline.d.ts +8 -0
- package/dist/geoms/GeomVline.d.ts.map +1 -0
- package/dist/geoms/GeomVline.js +6 -0
- package/dist/geoms/GeomVline.js.map +1 -0
- package/dist/geoms/index.d.ts +50 -0
- package/dist/geoms/index.d.ts.map +1 -0
- package/dist/geoms/index.js +51 -0
- package/dist/geoms/index.js.map +1 -0
- package/dist/grammar.d.ts +59 -0
- package/dist/grammar.d.ts.map +1 -0
- package/dist/grammar.js +134 -0
- package/dist/grammar.js.map +1 -0
- package/dist/host-effect.d.ts +3 -0
- package/dist/host-effect.d.ts.map +1 -0
- package/dist/host-effect.js +3 -0
- package/dist/host-effect.js.map +1 -0
- package/dist/host-init.d.ts +2 -0
- package/dist/host-init.d.ts.map +1 -0
- package/dist/host-init.js +4 -0
- package/dist/host-init.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/interaction.d.ts +9 -0
- package/dist/interaction.d.ts.map +1 -0
- package/dist/interaction.js +2 -0
- package/dist/interaction.js.map +1 -0
- package/dist/plot-accessibility.d.ts +23 -0
- package/dist/plot-accessibility.d.ts.map +1 -0
- package/dist/plot-accessibility.js +68 -0
- package/dist/plot-accessibility.js.map +1 -0
- package/dist/plot-assemble.d.ts +5 -0
- package/dist/plot-assemble.d.ts.map +1 -0
- package/dist/plot-assemble.js +14 -0
- package/dist/plot-assemble.js.map +1 -0
- package/dist/plot-controls.d.ts +20 -0
- package/dist/plot-controls.d.ts.map +1 -0
- package/dist/plot-controls.js +119 -0
- package/dist/plot-controls.js.map +1 -0
- package/dist/plot-gesture.d.ts +15 -0
- package/dist/plot-gesture.d.ts.map +1 -0
- package/dist/plot-gesture.js +55 -0
- package/dist/plot-gesture.js.map +1 -0
- package/dist/plot-host-identity.d.ts +5 -0
- package/dist/plot-host-identity.d.ts.map +1 -0
- package/dist/plot-host-identity.js +30 -0
- package/dist/plot-host-identity.js.map +1 -0
- package/dist/plot-inputs.d.ts +41 -0
- package/dist/plot-inputs.d.ts.map +1 -0
- package/dist/plot-inputs.js +147 -0
- package/dist/plot-inputs.js.map +1 -0
- package/dist/plot-interactions.d.ts +45 -0
- package/dist/plot-interactions.d.ts.map +1 -0
- package/dist/plot-interactions.js +447 -0
- package/dist/plot-interactions.js.map +1 -0
- package/dist/plot-legends.d.ts +20 -0
- package/dist/plot-legends.d.ts.map +1 -0
- package/dist/plot-legends.js +200 -0
- package/dist/plot-legends.js.map +1 -0
- package/dist/plot-overlay.d.ts +15 -0
- package/dist/plot-overlay.d.ts.map +1 -0
- package/dist/plot-overlay.js +69 -0
- package/dist/plot-overlay.js.map +1 -0
- package/dist/plot-props.d.ts +49 -0
- package/dist/plot-props.d.ts.map +1 -0
- package/dist/plot-props.js +2 -0
- package/dist/plot-props.js.map +1 -0
- package/dist/plot-runtime.d.ts +15 -0
- package/dist/plot-runtime.d.ts.map +1 -0
- package/dist/plot-runtime.js +59 -0
- package/dist/plot-runtime.js.map +1 -0
- package/dist/plot-surface.d.ts +3 -0
- package/dist/plot-surface.d.ts.map +1 -0
- package/dist/plot-surface.js +285 -0
- package/dist/plot-surface.js.map +1 -0
- package/dist/registry.d.ts +28 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +164 -0
- package/dist/registry.js.map +1 -0
- package/dist/scales.d.ts +132 -0
- package/dist/scales.d.ts.map +1 -0
- package/dist/scales.js +434 -0
- package/dist/scales.js.map +1 -0
- package/dist/strata-sync.d.ts +7 -0
- package/dist/strata-sync.d.ts.map +1 -0
- package/dist/strata-sync.js +158 -0
- package/dist/strata-sync.js.map +1 -0
- package/dist/themes.d.ts +38 -0
- package/dist/themes.d.ts.map +1 -0
- package/dist/themes.js +141 -0
- package/dist/themes.js.map +1 -0
- 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).
|
package/dist/GGPlot.d.ts
ADDED
|
@@ -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":"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"}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|