semiotic 3.2.0 → 3.2.1
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/CLAUDE.md +50 -8
- package/README.md +11 -11
- package/ai/examples.md +91 -0
- package/ai/schema.json +223 -9
- package/ai/system-prompt.md +12 -4
- package/dist/components/ChartContainer.d.ts +2 -0
- package/dist/components/DataSummaryContext.d.ts +12 -0
- package/dist/components/Tooltip/FlippingTooltip.d.ts +34 -0
- package/dist/components/charts/index.d.ts +4 -0
- package/dist/components/charts/ordinal/BarChart.d.ts +3 -1
- package/dist/components/charts/ordinal/BoxPlot.d.ts +3 -1
- package/dist/components/charts/ordinal/DonutChart.d.ts +0 -1
- package/dist/components/charts/ordinal/DotPlot.d.ts +3 -1
- package/dist/components/charts/ordinal/FunnelChart.d.ts +3 -1
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +3 -1
- package/dist/components/charts/ordinal/Histogram.d.ts +16 -2
- package/dist/components/charts/ordinal/LikertChart.d.ts +94 -0
- package/dist/components/charts/ordinal/PieChart.d.ts +0 -1
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +11 -7
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +3 -1
- package/dist/components/charts/ordinal/SwarmPlot.d.ts +14 -1
- package/dist/components/charts/ordinal/SwimlaneChart.d.ts +65 -0
- package/dist/components/charts/ordinal/ViolinPlot.d.ts +16 -2
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +20 -0
- package/dist/components/charts/shared/annotationResolvers.d.ts +28 -0
- package/dist/components/charts/shared/hooks.d.ts +23 -2
- package/dist/components/charts/shared/selectionUtils.d.ts +5 -1
- package/dist/components/charts/shared/statsTooltip.d.ts +11 -0
- package/dist/components/charts/shared/types.d.ts +22 -1
- package/dist/components/charts/shared/useChartSetup.d.ts +12 -2
- package/dist/components/charts/shared/useLikertAggregation.d.ts +51 -0
- package/dist/components/charts/shared/useOrdinalBrush.d.ts +28 -0
- package/dist/components/charts/shared/useOrdinalStreaming.d.ts +54 -0
- package/dist/components/charts/shared/useStreamingLegend.d.ts +2 -2
- package/dist/components/charts/shared/validateProps.d.ts +2 -2
- package/dist/components/charts/shared/validationMap.d.ts +12 -0
- package/dist/components/charts/xy/AreaChart.d.ts +11 -0
- package/dist/components/charts/xy/MinimapChart.d.ts +1 -1
- package/dist/components/charts/xy/StackedAreaChart.d.ts +11 -0
- package/dist/components/realtime/types.d.ts +4 -0
- package/dist/components/semiotic-ai.d.ts +1 -0
- package/dist/components/semiotic-ordinal.d.ts +2 -0
- package/dist/components/semiotic-themes.d.ts +16 -0
- package/dist/components/semiotic-utils.d.ts +30 -0
- package/dist/components/semiotic.d.ts +4 -4
- package/dist/components/store/LinkedCrosshairStore.d.ts +11 -0
- package/dist/components/store/useSelection.d.ts +1 -0
- package/dist/components/stream/AccessibleDataTable.d.ts +28 -6
- package/dist/components/stream/FocusRing.d.ts +33 -0
- package/dist/components/stream/OrdinalBrushOverlay.d.ts +43 -0
- package/dist/components/stream/OrdinalPipelineStore.d.ts +16 -0
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +1 -1
- package/dist/components/stream/PipelineStore.d.ts +5 -47
- package/dist/components/stream/SVGOverlay.d.ts +4 -0
- package/dist/components/stream/SceneGraph.d.ts +6 -1
- package/dist/components/stream/XYBrushOverlay.d.ts +47 -0
- package/dist/components/stream/geoTypes.d.ts +5 -1
- package/dist/components/stream/keyboardNav.d.ts +85 -9
- package/dist/components/stream/layouts/hierarchySceneBuilders.d.ts +35 -0
- package/dist/components/stream/layouts/hierarchyUtils.d.ts +25 -0
- package/dist/components/stream/networkTypes.d.ts +5 -1
- package/dist/components/stream/ordinalSceneBuilders/swimlaneScene.d.ts +12 -0
- package/dist/components/stream/ordinalTypes.d.ts +15 -3
- package/dist/components/stream/pipelineDecay.d.ts +20 -0
- package/dist/components/stream/pipelinePulse.d.ts +24 -0
- package/dist/components/stream/pipelineTransitions.d.ts +59 -0
- package/dist/components/stream/renderers/pointCanvasRenderer.d.ts +2 -1
- package/dist/components/stream/types.d.ts +19 -1
- package/dist/components/stream/useMediaPreferences.d.ts +11 -0
- package/dist/components/stream/xySceneBuilders/areaScene.d.ts +13 -0
- package/dist/components/stream/xySceneBuilders/barScene.d.ts +18 -0
- package/dist/components/stream/xySceneBuilders/boundsScene.d.ts +8 -0
- package/dist/components/stream/xySceneBuilders/candlestickScene.d.ts +10 -0
- package/dist/components/stream/xySceneBuilders/emitPointNodes.d.ts +13 -0
- package/dist/components/stream/xySceneBuilders/heatmapScene.d.ts +3 -0
- package/dist/components/stream/xySceneBuilders/lineScene.d.ts +12 -0
- package/dist/components/stream/xySceneBuilders/pointScene.d.ts +12 -0
- package/dist/components/stream/xySceneBuilders/swarmScene.d.ts +10 -0
- package/dist/components/stream/xySceneBuilders/types.d.ts +93 -0
- package/dist/components/stream/xySceneBuilders/waterfallScene.d.ts +12 -0
- package/dist/geo.min.js +1 -1
- package/dist/geo.module.min.js +1 -1
- package/dist/network.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +1 -0
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-ordinal.d.ts +2 -0
- package/dist/{semiotic-statisticalOverlays-D8LhSbQt.js → semiotic-statisticalOverlays-DGX_WWc5.js} +1 -1
- package/dist/semiotic-themes.d.ts +16 -0
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils.d.ts +30 -0
- package/dist/semiotic-utils.min.js +1 -0
- package/dist/semiotic-utils.module.min.js +1 -0
- package/dist/semiotic.d.ts +4 -4
- package/dist/semiotic.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +15 -8
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Candlestick (OHLC) scene builder.
|
|
3
|
+
*
|
|
4
|
+
* Renders open-high-low-close bars with auto-width sizing based on data spacing.
|
|
5
|
+
*
|
|
6
|
+
* Consumed by: PipelineStore.buildSceneNodes (chartType "candlestick")
|
|
7
|
+
*/
|
|
8
|
+
import type { SceneNode, StreamLayout } from "../types";
|
|
9
|
+
import type { XYSceneContext } from "./types";
|
|
10
|
+
export declare function buildCandlestickScene(ctx: XYSceneContext, data: Record<string, any>[], layout: StreamLayout): SceneNode[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared helper for emitting PointSceneNodes from grouped data.
|
|
3
|
+
*
|
|
4
|
+
* Used by line, area, and stacked area scene builders when the HOC's
|
|
5
|
+
* `showPoints` prop is active (i.e., `ctx.config.pointStyle` is set).
|
|
6
|
+
* Handles group color fallback for push API mode and pointId passthrough.
|
|
7
|
+
*/
|
|
8
|
+
import type { SceneNode } from "../types";
|
|
9
|
+
import type { XYSceneContext } from "./types";
|
|
10
|
+
export declare function emitPointNodes(ctx: XYSceneContext, groups: {
|
|
11
|
+
key: string;
|
|
12
|
+
data: Record<string, any>[];
|
|
13
|
+
}[], nodes: SceneNode[], yGetOverride?: (d: Record<string, any>) => number): void;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Line scene builder — produces LineSceneNode[] from grouped data.
|
|
3
|
+
*
|
|
4
|
+
* Handles: color thresholds from annotations, bounds/envelope areas,
|
|
5
|
+
* and curve type attachment for canvas interpolation.
|
|
6
|
+
*
|
|
7
|
+
* Dependencies: SceneGraph (buildLineNode), boundsScene (buildBoundsForGroup)
|
|
8
|
+
* Consumed by: PipelineStore.buildSceneNodes (chartType "line")
|
|
9
|
+
*/
|
|
10
|
+
import type { SceneNode } from "../types";
|
|
11
|
+
import type { XYSceneContext } from "./types";
|
|
12
|
+
export declare function buildLineScene(ctx: XYSceneContext, data: Record<string, any>[]): SceneNode[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Point/scatter/bubble scene builder.
|
|
3
|
+
*
|
|
4
|
+
* Handles: size scaling from sizeAccessor, color mapping from colorAccessor,
|
|
5
|
+
* and pointId attachment for hit testing.
|
|
6
|
+
*
|
|
7
|
+
* Dependencies: SceneGraph (buildPointNode)
|
|
8
|
+
* Consumed by: PipelineStore.buildSceneNodes (chartTypes "scatter", "bubble")
|
|
9
|
+
*/
|
|
10
|
+
import type { SceneNode } from "../types";
|
|
11
|
+
import type { XYSceneContext } from "./types";
|
|
12
|
+
export declare function buildPointScene(ctx: XYSceneContext, data: Record<string, any>[]): SceneNode[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Realtime swarm chart scene builder.
|
|
3
|
+
*
|
|
4
|
+
* Simple point scatter with category-based coloring from barColors config.
|
|
5
|
+
*
|
|
6
|
+
* Consumed by: PipelineStore.buildSceneNodes (chartType "swarm")
|
|
7
|
+
*/
|
|
8
|
+
import type { SceneNode } from "../types";
|
|
9
|
+
import type { XYSceneContext } from "./types";
|
|
10
|
+
export declare function buildSwarmScene(ctx: XYSceneContext, data: Record<string, any>[]): SceneNode[];
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* XYSceneContext — shared context passed to all XY scene builder functions.
|
|
3
|
+
*
|
|
4
|
+
* Mirrors the ordinal pattern (OrdinalSceneContext in ordinalSceneBuilders/).
|
|
5
|
+
* Scene builders are pure functions that receive this context instead of
|
|
6
|
+
* accessing PipelineStore instance fields directly.
|
|
7
|
+
*/
|
|
8
|
+
import type { StreamScales, Style, CurveType } from "../types";
|
|
9
|
+
export interface XYSceneContext {
|
|
10
|
+
scales: StreamScales;
|
|
11
|
+
config: XYSceneConfig;
|
|
12
|
+
getX: (d: any) => number;
|
|
13
|
+
getY: (d: any) => number;
|
|
14
|
+
getY0?: (d: any) => number | null;
|
|
15
|
+
getSize?: (d: any) => number;
|
|
16
|
+
getColor?: (d: any) => string;
|
|
17
|
+
getGroup?: (d: any) => string;
|
|
18
|
+
getCategory?: (d: any) => string;
|
|
19
|
+
getPointId?: (d: any) => string;
|
|
20
|
+
getBounds?: (d: any) => number | null;
|
|
21
|
+
getOpen?: (d: any) => number;
|
|
22
|
+
getHigh?: (d: any) => number;
|
|
23
|
+
getLow?: (d: any) => number;
|
|
24
|
+
getClose?: (d: any) => number;
|
|
25
|
+
/** Style resolvers — delegate to PipelineStore's cached color management */
|
|
26
|
+
resolveLineStyle: (group: string, sampleDatum?: Record<string, any>) => Style;
|
|
27
|
+
resolveAreaStyle: (group: string, sampleDatum?: Record<string, any>) => Style;
|
|
28
|
+
resolveBoundsStyle: (group: string, sampleDatum?: Record<string, any>) => Style;
|
|
29
|
+
resolveColorMap: (data: Record<string, any>[]) => Map<string, string>;
|
|
30
|
+
resolveGroupColor: (group: string) => string | null;
|
|
31
|
+
/** Group data by lineBy/colorBy accessor */
|
|
32
|
+
groupData: (data: Record<string, any>[]) => {
|
|
33
|
+
key: string;
|
|
34
|
+
data: Record<string, any>[];
|
|
35
|
+
}[];
|
|
36
|
+
/** Instance-scoped mutable cache for bar category ordering (prevents cross-instance leaks) */
|
|
37
|
+
barCategoryCache?: {
|
|
38
|
+
key: string;
|
|
39
|
+
order: string[];
|
|
40
|
+
} | null;
|
|
41
|
+
}
|
|
42
|
+
/** Subset of PipelineConfig fields that scene builders need */
|
|
43
|
+
export interface XYSceneConfig {
|
|
44
|
+
chartType: string;
|
|
45
|
+
curve?: CurveType;
|
|
46
|
+
colorScheme?: string | string[];
|
|
47
|
+
normalize?: boolean;
|
|
48
|
+
gradientFill?: boolean | {
|
|
49
|
+
topOpacity?: number;
|
|
50
|
+
bottomOpacity?: number;
|
|
51
|
+
};
|
|
52
|
+
annotations?: Record<string, any>[];
|
|
53
|
+
pointStyle?: (d: any) => Style & {
|
|
54
|
+
r?: number;
|
|
55
|
+
};
|
|
56
|
+
sizeRange?: [number, number];
|
|
57
|
+
xAccessor?: string | ((d: any) => any);
|
|
58
|
+
yAccessor?: string | ((d: any) => any);
|
|
59
|
+
valueAccessor?: string | ((d: any) => any);
|
|
60
|
+
heatmapAggregation?: "count" | "sum" | "mean";
|
|
61
|
+
heatmapXBins?: number;
|
|
62
|
+
heatmapYBins?: number;
|
|
63
|
+
showValues?: boolean;
|
|
64
|
+
heatmapValueFormat?: (v: number) => string;
|
|
65
|
+
binSize?: number;
|
|
66
|
+
barColors?: Record<string, string>;
|
|
67
|
+
swarmStyle?: {
|
|
68
|
+
radius?: number;
|
|
69
|
+
fill?: string;
|
|
70
|
+
opacity?: number;
|
|
71
|
+
stroke?: string;
|
|
72
|
+
strokeWidth?: number;
|
|
73
|
+
};
|
|
74
|
+
waterfallStyle?: {
|
|
75
|
+
positiveColor?: string;
|
|
76
|
+
negativeColor?: string;
|
|
77
|
+
gap?: number;
|
|
78
|
+
stroke?: string;
|
|
79
|
+
strokeWidth?: number;
|
|
80
|
+
connectorStroke?: string;
|
|
81
|
+
connectorWidth?: number;
|
|
82
|
+
};
|
|
83
|
+
candlestickStyle?: {
|
|
84
|
+
upColor?: string;
|
|
85
|
+
downColor?: string;
|
|
86
|
+
wickColor?: string;
|
|
87
|
+
wickWidth?: number;
|
|
88
|
+
bodyWidth?: number;
|
|
89
|
+
};
|
|
90
|
+
boundsStyle?: Style | ((d: any, group: string) => Style);
|
|
91
|
+
lineStyle?: Style | ((d: any, group: string) => Style);
|
|
92
|
+
areaStyle?: (d: any) => Style;
|
|
93
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Waterfall chart scene builder.
|
|
3
|
+
*
|
|
4
|
+
* Builds cumulative delta bars from time-series data. Each bar's base starts
|
|
5
|
+
* where the previous bar ended. Positive/negative deltas get distinct colors.
|
|
6
|
+
*
|
|
7
|
+
* Dependencies: SceneGraph (buildRectNode)
|
|
8
|
+
* Consumed by: PipelineStore.buildSceneNodes (chartType "waterfall")
|
|
9
|
+
*/
|
|
10
|
+
import type { SceneNode, StreamLayout } from "../types";
|
|
11
|
+
import type { XYSceneContext } from "./types";
|
|
12
|
+
export declare function buildWaterfallScene(ctx: XYSceneContext, data: Record<string, any>[], layout: StreamLayout): SceneNode[];
|