@graphysdk/react 2.0.0-beta.1788435388461 → 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 +8 -0
- package/dist/authoring.d.ts +7 -3
- package/dist/editable.browser.mjs +3024 -2992
- package/dist/index.browser.mjs +1429 -1397
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +51 -25
- package/package.json +3 -3
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.
|
package/dist/authoring.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
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';
|