semiotic 3.2.1 → 3.2.2

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/ai/schema.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "name": "semiotic",
4
- "version": "3.2.1",
4
+ "version": "3.2.2",
5
5
  "description": "React data visualization library for charts, networks, and beyond",
6
6
  "tools": [
7
7
  {
@@ -3938,6 +3938,18 @@
3938
3938
  "gap": {
3939
3939
  "type": "number"
3940
3940
  },
3941
+ "brush": {
3942
+ "type": ["boolean", "string", "object"],
3943
+ "description": "Enable brush selection. true defaults to { dimension: \"x\", snap: \"bin\" }. String: \"x\". Object: { dimension, snap: \"continuous\"|\"bin\", snapDuring }."
3944
+ },
3945
+ "onBrush": {
3946
+ "type": "function",
3947
+ "description": "Callback when brush extent changes: (extent | null) => void"
3948
+ },
3949
+ "linkedBrush": {
3950
+ "type": ["string", "object"],
3951
+ "description": "Cross-chart brush coordination via LinkedCharts. String: selection name. Object: { name, xField, yField }."
3952
+ },
3941
3953
  "showAxes": {
3942
3954
  "type": "boolean",
3943
3955
  "default": true
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Dev-mode helper that warns when user callbacks access properties that exist
3
+ * on `.data` but not on the RealtimeNode/RealtimeEdge wrapper.
4
+ *
5
+ * Common pitfall:
6
+ * nodeStyle={(d) => ({ fill: d.category })} // undefined!
7
+ * nodeStyle={(d) => ({ fill: d.data?.category })} // correct
8
+ *
9
+ * In production, this is a no-op passthrough.
10
+ */
11
+ export declare function wrapWithDataHint<T extends {
12
+ data?: Record<string, any>;
13
+ }>(datum: T, callbackName: string): T;