@graphysdk/react 2.0.0-beta.1788434676386 → 2.0.0-beta.1788514429233

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 CHANGED
@@ -60,6 +60,14 @@ const input = pipe(
60
60
  );
61
61
  ```
62
62
 
63
+ ## Custom geoms
64
+
65
+ Plugin authoring uses the same package. `Geom`, the value readers, `defineGeomRenderer`, and `createGraphyKit` are all exported from `@graphysdk/react` — there is no need to add `@graphysdk/viz-engine` or `@graphysdk/react-renderer` as direct dependencies.
66
+
67
+ ```tsx
68
+ import { Geom, createGraphyKit, defineGeomRenderer } from '@graphysdk/react';
69
+ ```
70
+
63
71
  ## Other packages
64
72
 
65
73
  An explicit setting always wins over this package's default.
@@ -1,3 +1,7 @@
1
- /** Viz-engine builders and types for the `@graphysdk/react` entry. */
2
- export type { Data, Spec, SpecInput } from '@graphysdk/viz-engine';
3
- export { annotation, config, coord, createSpec, geom, highlight, mapping, pipe, scale, stat, style, styles, token, transform, } from '@graphysdk/viz-engine';
1
+ /**
2
+ * Viz-engine builders, types, and the plugin compile surface for the `@graphysdk/react` entry.
3
+ * The render half (`defineGeomRenderer`, `createGraphyKit`, `UnitSpaceSvg`) is re-exported from
4
+ * `@graphysdk/react-renderer` by the package index, so a custom geom can be authored from one import.
5
+ */
6
+ export type { AnchorContext, AnchorPosition, ColorScheme, CompiledGeom, CompiledLayer, Data, GeomCompilerInput, GeomStyleReaders, Observation, Spec, SpecInput, } from '@graphysdk/viz-engine';
7
+ export { annotation, config, coord, createSpec, createStyleResolver, Dataset, Geom, geom, getAlpha, getAngleExtent, getBarRectBounds, getColor, getGroup, getLineType, getRadiusExtent, getScaledAesthetic, getSize, getStrokeWidth, getX, getXMax, getXMin, getY, getYMax, getYMin, getYRaw, GROUP_VARIABLES, highlight, mapping, pipe, POSITION_VARIABLES, scale, stat, style, styles, token, toPercent, toViewBoxX, toViewBoxY, transform, VISUAL_VARIABLES, } from '@graphysdk/viz-engine';