semiotic 3.4.0 → 3.4.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 +16 -3
- package/ai/schema.json +42 -1
- package/ai/system-prompt.md +4 -0
- package/dist/components/Annotation.d.ts +42 -2
- package/dist/components/CategoryColors.d.ts +1 -1
- package/dist/components/ChartGrid.d.ts +1 -1
- package/dist/components/ContextLayout.d.ts +1 -1
- package/dist/components/DataSummaryContext.d.ts +1 -1
- package/dist/components/DetailsPanel.d.ts +3 -2
- package/dist/components/Legend.d.ts +2 -3
- package/dist/components/LinkedCharts.d.ts +1 -1
- package/dist/components/ThemeProvider.d.ts +1 -1
- package/dist/components/Tooltip/FlippingTooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -3
- package/dist/components/charts/geo/ChoroplethMap.d.ts +4 -4
- package/dist/components/charts/geo/DistanceCartogram.d.ts +5 -4
- package/dist/components/charts/geo/FlowMap.d.ts +4 -4
- package/dist/components/charts/geo/ProportionalSymbolMap.d.ts +4 -3
- package/dist/components/charts/index.d.ts +2 -0
- package/dist/components/charts/network/ChordDiagram.d.ts +4 -3
- package/dist/components/charts/network/CirclePack.d.ts +3 -3
- package/dist/components/charts/network/ForceDirectedGraph.d.ts +3 -2
- package/dist/components/charts/network/OrbitDiagram.d.ts +6 -5
- package/dist/components/charts/network/SankeyDiagram.d.ts +4 -3
- package/dist/components/charts/network/TreeDiagram.d.ts +3 -3
- package/dist/components/charts/network/Treemap.d.ts +3 -3
- package/dist/components/charts/ordinal/BarChart.d.ts +24 -4
- package/dist/components/charts/ordinal/BoxPlot.d.ts +4 -3
- package/dist/components/charts/ordinal/DonutChart.d.ts +4 -3
- package/dist/components/charts/ordinal/DotPlot.d.ts +4 -3
- package/dist/components/charts/ordinal/FunnelChart.d.ts +4 -3
- package/dist/components/charts/ordinal/GaugeChart.d.ts +2 -1
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +4 -3
- package/dist/components/charts/ordinal/Histogram.d.ts +4 -3
- package/dist/components/charts/ordinal/LikertChart.d.ts +4 -3
- package/dist/components/charts/ordinal/PieChart.d.ts +4 -3
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +4 -3
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +4 -3
- package/dist/components/charts/ordinal/SwarmPlot.d.ts +4 -3
- package/dist/components/charts/ordinal/SwimlaneChart.d.ts +4 -3
- package/dist/components/charts/ordinal/ViolinPlot.d.ts +4 -3
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +7 -6
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +10 -7
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +9 -6
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +7 -6
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +9 -6
- package/dist/components/charts/shared/ChartError.d.ts +1 -2
- package/dist/components/charts/shared/annotationResolvers.d.ts +4 -3
- package/dist/components/charts/shared/annotationRules.d.ts +2 -1
- package/dist/components/charts/shared/colorUtils.d.ts +4 -3
- package/dist/components/charts/shared/datumTypes.d.ts +20 -0
- package/dist/components/charts/shared/diagnoseConfig.d.ts +2 -7
- package/dist/components/charts/shared/formatUtils.d.ts +4 -2
- package/dist/components/charts/shared/hooks.d.ts +27 -23
- package/dist/components/charts/shared/legendUtils.d.ts +3 -2
- package/dist/components/charts/shared/mergeShapeStyle.d.ts +43 -0
- package/dist/components/charts/shared/networkUtils.d.ts +7 -6
- package/dist/components/charts/shared/selectionUtils.d.ts +5 -4
- package/dist/components/charts/shared/statisticalOverlays.d.ts +14 -26
- package/dist/components/charts/shared/statisticalOverlaysLazy.d.ts +2 -2
- package/dist/components/charts/shared/statsTooltip.d.ts +3 -2
- package/dist/components/charts/shared/tooltipUtils.d.ts +7 -6
- package/dist/components/charts/shared/types.d.ts +22 -13
- package/dist/components/charts/shared/useChartSetup.d.ts +7 -6
- package/dist/components/charts/shared/useLikertAggregation.d.ts +18 -7
- package/dist/components/charts/shared/useOrdinalStreaming.d.ts +3 -2
- package/dist/components/charts/shared/useStreamingLegend.d.ts +2 -1
- package/dist/components/charts/shared/validateChartData.d.ts +2 -1
- package/dist/components/charts/shared/validateProps.d.ts +2 -8
- package/dist/components/charts/shared/withChartWrapper.d.ts +1 -1
- package/dist/components/charts/xy/AreaChart.d.ts +4 -3
- package/dist/components/charts/xy/BubbleChart.d.ts +4 -3
- package/dist/components/charts/xy/CandlestickChart.d.ts +47 -0
- package/dist/components/charts/xy/ConnectedScatterplot.d.ts +4 -3
- package/dist/components/charts/xy/Heatmap.d.ts +12 -7
- package/dist/components/charts/xy/LineChart.d.ts +4 -3
- package/dist/components/charts/xy/MinimapChart.d.ts +4 -4
- package/dist/components/charts/xy/MultiAxisLineChart.d.ts +5 -4
- package/dist/components/charts/xy/QuadrantChart.d.ts +4 -3
- package/dist/components/charts/xy/Scatterplot.d.ts +4 -3
- package/dist/components/charts/xy/ScatterplotMatrix.d.ts +3 -3
- package/dist/components/charts/xy/StackedAreaChart.d.ts +4 -3
- package/dist/components/data/transforms.d.ts +8 -7
- package/dist/components/export/chartConfig.d.ts +4 -3
- package/dist/components/geo/mergeData.d.ts +2 -1
- package/dist/components/realtime/BinAccumulator.d.ts +3 -2
- package/dist/components/realtime/renderers/types.d.ts +2 -1
- package/dist/components/realtime/renderers/waterfallRenderer.d.ts +2 -1
- package/dist/components/realtime/types.d.ts +20 -16
- package/dist/components/semiotic-themes.d.ts +2 -1
- package/dist/components/semiotic-xy.d.ts +2 -0
- package/dist/components/semiotic.d.ts +3 -3
- package/dist/components/server/animatedGif.d.ts +4 -18
- package/dist/components/server/renderToStaticSVG.d.ts +5 -4
- package/dist/components/server/serverChartConfigs.d.ts +2 -10
- package/dist/components/server/staticAnnotations.d.ts +2 -1
- package/dist/components/server/staticLegend.d.ts +2 -1
- package/dist/components/store/ObservationStore.d.ts +4 -3
- package/dist/components/store/SelectionStore.d.ts +3 -8
- package/dist/components/store/ThemeStore.d.ts +32 -4
- package/dist/components/store/TooltipStore.d.ts +1 -1
- package/dist/components/store/useSelection.d.ts +6 -5
- package/dist/components/stream/AccessibleDataTable.d.ts +5 -5
- package/dist/components/stream/CanvasHitTester.d.ts +2 -1
- package/dist/components/stream/DataSourceAdapter.d.ts +2 -1
- package/dist/components/stream/FocusRing.d.ts +1 -2
- package/dist/components/stream/GeoParticlePool.d.ts +2 -1
- package/dist/components/stream/GeoPipelineStore.d.ts +7 -6
- package/dist/components/stream/MarginalGraphics.d.ts +1 -2
- package/dist/components/stream/NetworkPipelineStore.d.ts +3 -2
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -4
- package/dist/components/stream/OrdinalBrushOverlay.d.ts +1 -19
- package/dist/components/stream/OrdinalPipelineStore.d.ts +6 -5
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +6 -5
- package/dist/components/stream/PipelineStore.d.ts +63 -28
- package/dist/components/stream/SVGOverlay.d.ts +10 -10
- package/dist/components/stream/SceneGraph.d.ts +6 -5
- package/dist/components/stream/StreamGeoFrame.d.ts +2 -1
- package/dist/components/stream/StreamNetworkFrame.d.ts +2 -1
- package/dist/components/stream/StreamOrdinalFrame.d.ts +2 -1
- package/dist/components/stream/StreamXYFrame.d.ts +2 -1
- package/dist/components/stream/XYBrushOverlay.d.ts +1 -21
- package/dist/components/stream/devDataAccessWarning.d.ts +2 -11
- package/dist/components/stream/geoTypes.d.ts +25 -18
- package/dist/components/stream/hoverUtils.d.ts +2 -1
- package/dist/components/stream/layouts/hierarchySceneBuilders.d.ts +4 -3
- package/dist/components/stream/layouts/hierarchyUtils.d.ts +4 -3
- package/dist/components/stream/networkTypes.d.ts +33 -28
- package/dist/components/stream/ordinalSceneBuilders/barFunnelScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/barScene.d.ts +2 -2
- package/dist/components/stream/ordinalSceneBuilders/connectorScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/pointScene.d.ts +2 -2
- package/dist/components/stream/ordinalSceneBuilders/statisticalScene.d.ts +4 -4
- package/dist/components/stream/ordinalSceneBuilders/swimlaneScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/timelineScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/types.d.ts +9 -8
- package/dist/components/stream/ordinalTypes.d.ts +54 -22
- package/dist/components/stream/pipelineDecay.d.ts +2 -1
- package/dist/components/stream/pipelinePulse.d.ts +2 -1
- package/dist/components/stream/pipelineTransitions.d.ts +16 -4
- package/dist/components/stream/renderers/colorUtils.d.ts +20 -0
- package/dist/components/stream/types.d.ts +45 -8
- package/dist/components/stream/xySceneBuilders/areaScene.d.ts +3 -2
- package/dist/components/stream/xySceneBuilders/barScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/boundsScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/candlestickScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/emitPointNodes.d.ts +3 -2
- package/dist/components/stream/xySceneBuilders/heatmapScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/lineScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/mixedScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/pointScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/swarmScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/types.d.ts +35 -26
- package/dist/components/stream/xySceneBuilders/waterfallScene.d.ts +2 -1
- package/dist/components/types/marginType.d.ts +15 -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.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-statisticalOverlays-Ckd_jM8z.js +1 -0
- package/dist/semiotic-themes.d.ts +2 -1
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils.min.js +1 -1
- package/dist/semiotic-utils.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +2 -0
- package/dist/semiotic.d.ts +3 -3
- 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/test-utils/canvasMock.d.ts +10 -2
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +38 -31
- package/dist/components/types/annotationTypes.d.ts +0 -145
- package/dist/components/types/generalTypes.d.ts +0 -241
- package/dist/components/types/interactionTypes.d.ts +0 -72
- package/dist/components/types/networkTypes.d.ts +0 -174
- package/dist/components/types/ordinalTypes.d.ts +0 -112
- package/dist/semiotic-statisticalOverlays-DGX_WWc5.js +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
export { useCrosshairPosition, setCrosshairPosition, clearCrosshairPosition } from "./LinkedCrosshairStore";
|
|
2
3
|
export interface UseSelectionOptions {
|
|
3
4
|
/** Name of the selection to participate in */
|
|
@@ -9,7 +10,7 @@ export interface UseSelectionOptions {
|
|
|
9
10
|
}
|
|
10
11
|
export interface UseSelectionResult {
|
|
11
12
|
/** Returns true if the datum matches the current selection */
|
|
12
|
-
predicate: (datum:
|
|
13
|
+
predicate: (datum: Datum) => boolean;
|
|
13
14
|
/** Whether any selection clause is currently active */
|
|
14
15
|
isActive: boolean;
|
|
15
16
|
/** Set a point selection (categorical values) */
|
|
@@ -30,9 +31,9 @@ export interface UseLinkedHoverOptions {
|
|
|
30
31
|
}
|
|
31
32
|
export interface UseLinkedHoverResult {
|
|
32
33
|
/** Call with a datum to set hover, or null to clear */
|
|
33
|
-
onHover: (datum:
|
|
34
|
+
onHover: (datum: Datum | null) => void;
|
|
34
35
|
/** Returns true if datum matches the hover selection */
|
|
35
|
-
predicate: (datum:
|
|
36
|
+
predicate: (datum: Datum) => boolean;
|
|
36
37
|
/** Whether any hover is active */
|
|
37
38
|
isActive: boolean;
|
|
38
39
|
}
|
|
@@ -53,7 +54,7 @@ export interface UseBrushSelectionResult {
|
|
|
53
54
|
end: (extent: any) => void;
|
|
54
55
|
};
|
|
55
56
|
/** Returns true if datum matches the brush selection */
|
|
56
|
-
predicate: (datum:
|
|
57
|
+
predicate: (datum: Datum) => boolean;
|
|
57
58
|
/** Whether any brush is active */
|
|
58
59
|
isActive: boolean;
|
|
59
60
|
/** Clear the brush */
|
|
@@ -64,4 +65,4 @@ export declare function useBrushSelection(options: UseBrushSelectionOptions): Us
|
|
|
64
65
|
* Returns the subset of `data` that matches the given selection.
|
|
65
66
|
* In crossfilter mode, pass the consumer's clientId so its own clause is excluded.
|
|
66
67
|
*/
|
|
67
|
-
export declare function useFilteredData<T extends
|
|
68
|
+
export declare function useFilteredData<T extends Datum>(data: T[], selectionName: string, clientId?: string): T[];
|
|
@@ -26,7 +26,7 @@ interface AccessibleDataTableProps {
|
|
|
26
26
|
* On activation (or when ChartContainer's dataSummary action is toggled),
|
|
27
27
|
* computes a statistical summary (.describe()-style) and shows 5 sample rows.
|
|
28
28
|
*/
|
|
29
|
-
export declare function AccessibleDataTable({ scene, chartType, tableId, chartTitle }: AccessibleDataTableProps):
|
|
29
|
+
export declare function AccessibleDataTable({ scene, chartType, tableId, chartTitle }: AccessibleDataTableProps): import("react/jsx-runtime").JSX.Element | null;
|
|
30
30
|
interface NetworkAccessibleDataTableProps {
|
|
31
31
|
nodes: Array<{
|
|
32
32
|
datum?: any;
|
|
@@ -48,25 +48,25 @@ interface NetworkAccessibleDataTableProps {
|
|
|
48
48
|
/**
|
|
49
49
|
* JIT accessible data summary for network charts.
|
|
50
50
|
*/
|
|
51
|
-
export declare function NetworkAccessibleDataTable({ nodes, edges, chartType, tableId, chartTitle }: NetworkAccessibleDataTableProps):
|
|
51
|
+
export declare function NetworkAccessibleDataTable({ nodes, edges, chartType, tableId, chartTitle }: NetworkAccessibleDataTableProps): import("react/jsx-runtime").JSX.Element | null;
|
|
52
52
|
/**
|
|
53
53
|
* Screen-reader-only summary note for the chart.
|
|
54
54
|
* Rendered as role="note" so assistive technology can discover it.
|
|
55
55
|
*/
|
|
56
56
|
export declare function ScreenReaderSummary({ summary }: {
|
|
57
57
|
summary?: string;
|
|
58
|
-
}):
|
|
58
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
59
59
|
/**
|
|
60
60
|
* Screen-reader-only skip link to jump past chart canvas to the data table.
|
|
61
61
|
* Only rendered when accessibleTable is enabled.
|
|
62
62
|
*/
|
|
63
63
|
export declare function SkipToTableLink({ tableId }: {
|
|
64
64
|
tableId: string;
|
|
65
|
-
}):
|
|
65
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
66
66
|
/**
|
|
67
67
|
* Visually-hidden aria-live region that mirrors tooltip text for screen readers.
|
|
68
68
|
*/
|
|
69
69
|
export declare function AriaLiveTooltip({ hoverPoint }: {
|
|
70
70
|
hoverPoint: any;
|
|
71
|
-
}):
|
|
71
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
72
72
|
export { SR_ONLY_STYLE };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { SceneNode, PointSceneNode } from "./types";
|
|
2
2
|
import type { RingBuffer } from "../realtime/RingBuffer";
|
|
3
3
|
import type { Quadtree } from "d3-quadtree";
|
|
4
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
4
5
|
export interface HitResult {
|
|
5
6
|
node: SceneNode;
|
|
6
7
|
datum: any;
|
|
@@ -39,4 +40,4 @@ export declare function findAllNodesAtX(scene: SceneNode[], px: number, maxXDist
|
|
|
39
40
|
/**
|
|
40
41
|
* Binary search for nearest point by time value in a RingBuffer.
|
|
41
42
|
*/
|
|
42
|
-
export declare function findNearestIndex(buf: RingBuffer<
|
|
43
|
+
export declare function findNearestIndex(buf: RingBuffer<Datum>, targetTime: number, getTime: (d: Datum) => number): number;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Changeset } from "./types";
|
|
2
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
3
|
export type ChangesetCallback<T> = (changeset: Changeset<T>) => void;
|
|
3
|
-
export declare class DataSourceAdapter<T =
|
|
4
|
+
export declare class DataSourceAdapter<T = Datum> {
|
|
4
5
|
private callback;
|
|
5
6
|
private lastBoundedData;
|
|
6
7
|
private chunkTimer;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
/**
|
|
3
2
|
* Shape-appropriate keyboard focus indicator for canvas-based charts.
|
|
4
3
|
*
|
|
@@ -30,4 +29,4 @@ export interface FocusRingProps {
|
|
|
30
29
|
/** Height of rect-shaped focus target */
|
|
31
30
|
height?: number;
|
|
32
31
|
}
|
|
33
|
-
export declare function FocusRing({ active, hoverPoint, margin, size, shape, width, height }: FocusRingProps):
|
|
32
|
+
export declare function FocusRing({ active, hoverPoint, margin, size, shape, width, height }: FocusRingProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
/**
|
|
2
3
|
* GeoParticlePool — particle system for geo line paths.
|
|
3
4
|
*
|
|
@@ -20,7 +21,7 @@ export interface GeoParticleStyle {
|
|
|
20
21
|
/** Particle radius @default 2 */
|
|
21
22
|
radius?: number;
|
|
22
23
|
/** Particle color: a CSS color string, "source" to inherit from line stroke, or a function `(datum) => string` */
|
|
23
|
-
color?: string | ((datum:
|
|
24
|
+
color?: string | ((datum: Datum) => string);
|
|
24
25
|
/** Particle opacity @default 0.7 */
|
|
25
26
|
opacity?: number;
|
|
26
27
|
/** Speed multiplier @default 1 */
|
|
@@ -3,6 +3,7 @@ import { type Quadtree } from "d3-quadtree";
|
|
|
3
3
|
import type { GeoPipelineConfig, GeoScales, GeoSceneNode } from "./geoTypes";
|
|
4
4
|
import type { PointSceneNode, StreamLayout } from "./types";
|
|
5
5
|
import type { ActiveTransition } from "./pipelineTransitionUtils";
|
|
6
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
6
7
|
export declare class GeoPipelineStore {
|
|
7
8
|
config: GeoPipelineConfig;
|
|
8
9
|
scene: GeoSceneNode[];
|
|
@@ -38,19 +39,19 @@ export declare class GeoPipelineStore {
|
|
|
38
39
|
constructor(config: GeoPipelineConfig);
|
|
39
40
|
updateConfig(config: Partial<GeoPipelineConfig>): void;
|
|
40
41
|
setAreas(features: GeoJSON.Feature[]): void;
|
|
41
|
-
setPoints(data:
|
|
42
|
-
setLines(data:
|
|
42
|
+
setPoints(data: Datum[]): void;
|
|
43
|
+
setLines(data: Datum[]): void;
|
|
43
44
|
/** Initialize streaming mode with a ring buffer */
|
|
44
45
|
initStreaming(windowSize?: number): void;
|
|
45
46
|
/** Push a single streaming point */
|
|
46
|
-
pushPoint(datum:
|
|
47
|
+
pushPoint(datum: Datum): void;
|
|
47
48
|
/** Push multiple streaming points */
|
|
48
|
-
pushMany(data:
|
|
49
|
+
pushMany(data: Datum[]): void;
|
|
49
50
|
/**
|
|
50
51
|
* Remove points by ID. Requires pointIdAccessor to be configured.
|
|
51
52
|
* Returns the removed items.
|
|
52
53
|
*/
|
|
53
|
-
removePoint(id: string | string[]):
|
|
54
|
+
removePoint(id: string | string[]): Datum[];
|
|
54
55
|
clear(): void;
|
|
55
56
|
computeScene(layout: StreamLayout): void;
|
|
56
57
|
private fitProjection;
|
|
@@ -82,7 +83,7 @@ export declare class GeoPipelineStore {
|
|
|
82
83
|
scale: number;
|
|
83
84
|
translate: [number, number];
|
|
84
85
|
};
|
|
85
|
-
getPoints():
|
|
86
|
+
getPoints(): Datum[];
|
|
86
87
|
/**
|
|
87
88
|
* Build (or clear) the quadtree spatial index for point scene nodes.
|
|
88
89
|
* Only built when the point count exceeds QUADTREE_THRESHOLD; below that
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
1
|
import type { ScaleLinear } from "d3-scale";
|
|
3
2
|
import type { MarginalConfig, MarginalType } from "./types";
|
|
4
3
|
export type MarginalOrient = "top" | "bottom" | "left" | "right";
|
|
@@ -16,4 +15,4 @@ export interface MarginalGraphicsProps {
|
|
|
16
15
|
}
|
|
17
16
|
/** Resolve a string shorthand or full config into a MarginalConfig */
|
|
18
17
|
export declare function normalizeMarginalConfig(input: MarginalConfig | MarginalType): MarginalConfig;
|
|
19
|
-
export declare function MarginalGraphics({ orient, config: rawConfig, values, scale, size, length }: MarginalGraphicsProps):
|
|
18
|
+
export declare function MarginalGraphics({ orient, config: rawConfig, values, scale, size, length }: MarginalGraphicsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ParticlePool } from "./ParticlePool";
|
|
2
2
|
import type { ActiveTransition } from "./pipelineTransitionUtils";
|
|
3
3
|
import type { NetworkPipelineConfig, NetworkSceneNode, NetworkSceneEdge, NetworkLabel, RealtimeNode, RealtimeEdge, EdgePush } from "./networkTypes";
|
|
4
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
4
5
|
/**
|
|
5
6
|
* NetworkPipelineStore — stateful store for the StreamNetworkFrame.
|
|
6
7
|
*
|
|
@@ -134,12 +135,12 @@ export declare class NetworkPipelineStore {
|
|
|
134
135
|
/**
|
|
135
136
|
* Update a node's data by ID. Returns the previous data, or null if not found.
|
|
136
137
|
*/
|
|
137
|
-
updateNode(id: string, updater: (data:
|
|
138
|
+
updateNode(id: string, updater: (data: Datum) => Datum): Datum | null;
|
|
138
139
|
/**
|
|
139
140
|
* Update all edges between source and target. Handles parallel edges.
|
|
140
141
|
* Returns array of previous data values (one per updated edge), or empty array.
|
|
141
142
|
*/
|
|
142
|
-
updateEdge(sourceId: string, targetId: string, updater: (data:
|
|
143
|
+
updateEdge(sourceId: string, targetId: string, updater: (data: Datum) => Datum): Datum[];
|
|
143
144
|
/**
|
|
144
145
|
* Remove a node by ID. Also removes all edges connected to this node.
|
|
145
146
|
* Returns true if the node was found and removed.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import type { NetworkLabel } from "./networkTypes";
|
|
4
4
|
import type { LegendGroup, GradientLegendConfig } from "../types/legendTypes";
|
|
@@ -47,8 +47,8 @@ export interface NetworkSVGOverlayProps {
|
|
|
47
47
|
h?: number;
|
|
48
48
|
}>;
|
|
49
49
|
/** Annotations */
|
|
50
|
-
annotations?:
|
|
51
|
-
svgAnnotationRules?: (annotation:
|
|
50
|
+
annotations?: Datum[];
|
|
51
|
+
svgAnnotationRules?: (annotation: Datum, index: number, context: any) => ReactNode;
|
|
52
52
|
annotationFrame?: number;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
@@ -57,7 +57,7 @@ export interface NetworkSVGOverlayProps {
|
|
|
57
57
|
* Unlike XY/ordinal overlays, network charts don't have axes or grid lines.
|
|
58
58
|
* The overlay is positioned absolutely over the canvas.
|
|
59
59
|
*/
|
|
60
|
-
export declare function NetworkSVGOverlay(props: NetworkSVGOverlayProps):
|
|
60
|
+
export declare function NetworkSVGOverlay(props: NetworkSVGOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
61
61
|
export declare namespace NetworkSVGOverlay {
|
|
62
62
|
var displayName: string;
|
|
63
63
|
}
|
|
@@ -1,21 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OrdinalBrushOverlay — d3-brush SVG overlay for ordinal frames.
|
|
3
|
-
*
|
|
4
|
-
* Renders a transparent SVG positioned above the canvas. Brushes along the
|
|
5
|
-
* r-axis (value axis) only: horizontal projection → brushX, vertical → brushY.
|
|
6
|
-
*
|
|
7
|
-
* Key design decisions:
|
|
8
|
-
* - Outer SVG has pointerEvents:"none", inner brush-g has "all", so
|
|
9
|
-
* axes/legends rendered underneath remain clickable.
|
|
10
|
-
* - d3-brush lifecycle (useEffect) depends on [width, height, isHorizontal]
|
|
11
|
-
* only — NOT scales. Scales are read from a ref to avoid brush teardown
|
|
12
|
-
* mid-drag (scales change every render due to new object identity).
|
|
13
|
-
* - A separate useEffect repositions the brush when scales change (streaming).
|
|
14
|
-
*
|
|
15
|
-
* Consumed by: StreamOrdinalFrame (rendered when brush prop is set).
|
|
16
|
-
* Wired by: useOrdinalBrush hook in HOC charts.
|
|
17
|
-
*/
|
|
18
|
-
import * as React from "react";
|
|
19
1
|
import type { OrdinalScales } from "./ordinalTypes";
|
|
20
2
|
interface OrdinalBrushOverlayProps {
|
|
21
3
|
width: number;
|
|
@@ -39,5 +21,5 @@ interface OrdinalBrushOverlayProps {
|
|
|
39
21
|
* In horizontal projection, r maps to x-pixels → uses brushX.
|
|
40
22
|
* In vertical projection, r maps to y-pixels → uses brushY.
|
|
41
23
|
*/
|
|
42
|
-
export declare function OrdinalBrushOverlay({ width, height, totalWidth, totalHeight, margin, scales, onBrush }: OrdinalBrushOverlayProps):
|
|
24
|
+
export declare function OrdinalBrushOverlay({ width, height, totalWidth, totalHeight, margin, scales, onBrush }: OrdinalBrushOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
43
25
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
/**
|
|
2
3
|
* OrdinalPipelineStore — stateful pipeline for ordinal chart data.
|
|
3
4
|
*
|
|
@@ -114,20 +115,20 @@ export declare class OrdinalPipelineStore {
|
|
|
114
115
|
private snapshotPositions;
|
|
115
116
|
private startTransition;
|
|
116
117
|
advanceTransition(now: number): boolean;
|
|
117
|
-
getData():
|
|
118
|
+
getData(): Datum[];
|
|
118
119
|
/**
|
|
119
120
|
* Remove data items by ID. Requires dataIdAccessor to be configured.
|
|
120
121
|
* Returns the removed items. Marks the store dirty for scene rebuild.
|
|
121
122
|
*/
|
|
122
|
-
remove(id: string | string[]):
|
|
123
|
+
remove(id: string | string[]): Datum[];
|
|
123
124
|
/**
|
|
124
125
|
* Update data items by ID. Requires dataIdAccessor.
|
|
125
126
|
* Returns the previous values. Categories and extents are rebuilt.
|
|
126
127
|
*/
|
|
127
|
-
update(id: string | string[], updater: (d:
|
|
128
|
+
update(id: string | string[], updater: (d: Datum) => Datum): Datum[];
|
|
128
129
|
clear(): void;
|
|
129
130
|
get size(): number;
|
|
130
|
-
getOAccessor(): (d:
|
|
131
|
-
getRAccessor(): (d:
|
|
131
|
+
getOAccessor(): (d: Datum) => string;
|
|
132
|
+
getRAccessor(): (d: Datum) => number;
|
|
132
133
|
updateConfig(config: Partial<OrdinalPipelineConfig>): void;
|
|
133
134
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import type { OrdinalScales } from "./ordinalTypes";
|
|
3
4
|
import type { AnnotationContext } from "../realtime/types";
|
|
@@ -42,12 +43,12 @@ interface OrdinalSVGOverlayProps {
|
|
|
42
43
|
legendIsolatedCategories?: Set<string>;
|
|
43
44
|
legendPosition?: "right" | "left" | "top" | "bottom";
|
|
44
45
|
foregroundGraphics?: ReactNode;
|
|
45
|
-
annotations?:
|
|
46
|
-
svgAnnotationRules?: (annotation:
|
|
46
|
+
annotations?: Datum[];
|
|
47
|
+
svgAnnotationRules?: (annotation: Datum, index: number, context: AnnotationContext) => ReactNode;
|
|
47
48
|
annotationFrame?: number;
|
|
48
49
|
xAccessor?: string;
|
|
49
50
|
yAccessor?: string;
|
|
50
|
-
annotationData?:
|
|
51
|
+
annotationData?: Datum[];
|
|
51
52
|
/** When true, grid lines and axis baselines are skipped (rendered by OrdinalSVGUnderlay instead) */
|
|
52
53
|
underlayRendered?: boolean;
|
|
53
54
|
children?: ReactNode;
|
|
@@ -69,6 +70,6 @@ interface OrdinalSVGUnderlayProps {
|
|
|
69
70
|
rFormat?: (d: number) => string;
|
|
70
71
|
rTickValues?: number[];
|
|
71
72
|
}
|
|
72
|
-
export declare function OrdinalSVGUnderlay(props: OrdinalSVGUnderlayProps):
|
|
73
|
-
export declare function OrdinalSVGOverlay(props: OrdinalSVGOverlayProps):
|
|
73
|
+
export declare function OrdinalSVGUnderlay(props: OrdinalSVGUnderlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
74
|
+
export declare function OrdinalSVGOverlay(props: OrdinalSVGOverlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
74
75
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
import { type Quadtree } from "d3-quadtree";
|
|
2
3
|
import { RingBuffer } from "../realtime/RingBuffer";
|
|
3
|
-
import type { Changeset, StreamChartType, StreamScales, StreamLayout, SceneNode, PointSceneNode, CandlestickStyle, Style, ArrowOfTime, WindowMode, DecayConfig, PulseConfig, TransitionConfig, StalenessConfig, CurveType } from "./types";
|
|
4
|
+
import type { Changeset, StreamChartType, StreamScales, StreamLayout, SceneNode, PointSceneNode, CandlestickStyle, Style, ArrowOfTime, WindowMode, DecayConfig, PulseConfig, TransitionConfig, StalenessConfig, CurveType, BarStyle, ThemeSemanticColors } from "./types";
|
|
4
5
|
import type { ActiveTransition } from "./pipelineTransitionUtils";
|
|
5
6
|
export interface PipelineConfig {
|
|
6
7
|
chartType: StreamChartType;
|
|
@@ -12,14 +13,14 @@ export interface PipelineConfig {
|
|
|
12
13
|
/** Pixel inset on scale ranges to prevent glyph clipping at chart edges. Default 0. */
|
|
13
14
|
scalePadding?: number;
|
|
14
15
|
maxCapacity?: number;
|
|
15
|
-
xAccessor?: string | ((d:
|
|
16
|
-
yAccessor?: string | ((d:
|
|
17
|
-
timeAccessor?: string | ((d:
|
|
18
|
-
valueAccessor?: string | ((d:
|
|
19
|
-
colorAccessor?: string | ((d:
|
|
20
|
-
sizeAccessor?: string | ((d:
|
|
21
|
-
groupAccessor?: string | ((d:
|
|
22
|
-
categoryAccessor?: string | ((d:
|
|
16
|
+
xAccessor?: string | ((d: Datum) => number);
|
|
17
|
+
yAccessor?: string | ((d: Datum) => number);
|
|
18
|
+
timeAccessor?: string | ((d: Datum) => number);
|
|
19
|
+
valueAccessor?: string | ((d: Datum) => number);
|
|
20
|
+
colorAccessor?: string | ((d: Datum) => string);
|
|
21
|
+
sizeAccessor?: string | ((d: Datum) => number);
|
|
22
|
+
groupAccessor?: string | ((d: Datum) => string);
|
|
23
|
+
categoryAccessor?: string | ((d: Datum) => string);
|
|
23
24
|
lineDataAccessor?: string;
|
|
24
25
|
xScaleType?: "linear" | "log" | "time";
|
|
25
26
|
yScaleType?: "linear" | "log";
|
|
@@ -28,16 +29,16 @@ export interface PipelineConfig {
|
|
|
28
29
|
sizeRange?: [number, number];
|
|
29
30
|
binSize?: number;
|
|
30
31
|
normalize?: boolean;
|
|
31
|
-
openAccessor?: string | ((d:
|
|
32
|
-
highAccessor?: string | ((d:
|
|
33
|
-
lowAccessor?: string | ((d:
|
|
34
|
-
closeAccessor?: string | ((d:
|
|
32
|
+
openAccessor?: string | ((d: Datum) => number);
|
|
33
|
+
highAccessor?: string | ((d: Datum) => number);
|
|
34
|
+
lowAccessor?: string | ((d: Datum) => number);
|
|
35
|
+
closeAccessor?: string | ((d: Datum) => number);
|
|
35
36
|
candlestickStyle?: CandlestickStyle;
|
|
36
37
|
/** Internal: set by PipelineStore when open/close accessors are both missing */
|
|
37
38
|
candlestickRangeMode?: boolean;
|
|
38
|
-
boundsAccessor?: string | ((d:
|
|
39
|
+
boundsAccessor?: string | ((d: Datum) => number);
|
|
39
40
|
boundsStyle?: any;
|
|
40
|
-
y0Accessor?: string | ((d:
|
|
41
|
+
y0Accessor?: string | ((d: Datum) => number);
|
|
41
42
|
gradientFill?: {
|
|
42
43
|
topOpacity: number;
|
|
43
44
|
bottomOpacity: number;
|
|
@@ -55,10 +56,10 @@ export interface PipelineConfig {
|
|
|
55
56
|
}>;
|
|
56
57
|
};
|
|
57
58
|
lineStyle?: any;
|
|
58
|
-
pointStyle?: (d:
|
|
59
|
+
pointStyle?: (d: Datum) => Style & {
|
|
59
60
|
r?: number;
|
|
60
61
|
};
|
|
61
|
-
areaStyle?: (d:
|
|
62
|
+
areaStyle?: (d: Datum) => Style;
|
|
62
63
|
swarmStyle?: {
|
|
63
64
|
radius?: number;
|
|
64
65
|
fill?: string;
|
|
@@ -78,8 +79,31 @@ export interface PipelineConfig {
|
|
|
78
79
|
colorScheme?: string | string[];
|
|
79
80
|
/** Theme categorical palette — used as fallback when colorScheme is not an explicit array */
|
|
80
81
|
themeCategorical?: string[];
|
|
82
|
+
/**
|
|
83
|
+
* Theme-resolved semantic role colors. Scene builders use these as the
|
|
84
|
+
* default before falling back to hardcoded hex. Populated by the Stream
|
|
85
|
+
* Frame from the in-memory `SemioticTheme.colors` object at render time
|
|
86
|
+
* — the values are concrete hex (or whatever the preset declares), not
|
|
87
|
+
* `var(...)` strings, and so this channel does NOT participate in the
|
|
88
|
+
* DOM CSS cascade. Changing the ambient theme (`<ThemeProvider>`) or
|
|
89
|
+
* swapping to a nested provider is how you override these values.
|
|
90
|
+
*
|
|
91
|
+
* Per-scope overrides via CSS custom properties
|
|
92
|
+
* (e.g. `<div style={{ "--semiotic-danger": "#c00" }}>`) work only for
|
|
93
|
+
* values a user explicitly passes through as `var(--...)` strings in
|
|
94
|
+
* chart props — those are resolved via `getComputedStyle` in the
|
|
95
|
+
* canvas renderer at paint time (see `resolveCSSColor.ts`). The theme
|
|
96
|
+
* defaults in this field don't read CSS.
|
|
97
|
+
*/
|
|
98
|
+
themeSemantic?: ThemeSemanticColors;
|
|
99
|
+
/** Theme sequential scheme name (e.g. "blues") — fallback when `colorScheme` is not explicitly set for magnitude encodings (heatmap, choropleth, size). */
|
|
100
|
+
themeSequential?: string;
|
|
101
|
+
/** Theme diverging scheme name (e.g. "RdBu") — fallback when `colorScheme` is not explicitly set for midpoint encodings (likert, bivariate, ± deviation). */
|
|
102
|
+
themeDiverging?: string;
|
|
81
103
|
barColors?: Record<string, string>;
|
|
82
|
-
|
|
104
|
+
/** Histogram bar style — fill/stroke/strokeWidth/gap. Accepted by RealtimeHistogram and routed through to the bar scene builder. */
|
|
105
|
+
barStyle?: BarStyle;
|
|
106
|
+
annotations?: Datum[];
|
|
83
107
|
decay?: DecayConfig;
|
|
84
108
|
pulse?: PulseConfig;
|
|
85
109
|
transition?: TransitionConfig;
|
|
@@ -91,7 +115,7 @@ export interface PipelineConfig {
|
|
|
91
115
|
heatmapYBins?: number;
|
|
92
116
|
showValues?: boolean;
|
|
93
117
|
heatmapValueFormat?: (v: number) => string;
|
|
94
|
-
pointIdAccessor?: string | ((d:
|
|
118
|
+
pointIdAccessor?: string | ((d: Datum) => string);
|
|
95
119
|
curve?: CurveType;
|
|
96
120
|
}
|
|
97
121
|
export declare class PipelineStore {
|
|
@@ -124,8 +148,15 @@ export declare class PipelineStore {
|
|
|
124
148
|
lastIngestTime: number;
|
|
125
149
|
/** Unified color map cache keyed by sorted category set — shared across point, swarm, etc. */
|
|
126
150
|
private _colorMapCache;
|
|
127
|
-
/** Separate group→color map for resolveGroupColor (insertion-order based, never invalidates _colorMapCache)
|
|
151
|
+
/** Separate group→color map for resolveGroupColor (insertion-order based, never invalidates _colorMapCache).
|
|
152
|
+
* FIFO-bounded to `GROUP_COLOR_MAP_CAP` entries — in long-running streams with unique group IDs (e.g. UUIDs
|
|
153
|
+
* as `lineBy` keys) this would otherwise grow unboundedly. Evicted groups that re-appear get a new palette
|
|
154
|
+
* slot; stable color assignment is only guaranteed for the most-recent `CAP` unique groups. */
|
|
128
155
|
private _groupColorMap;
|
|
156
|
+
/** Monotonic counter for group-color palette indexing. Decoupled from `_groupColorMap.size` so FIFO eviction
|
|
157
|
+
* doesn't cause new groups to collide with existing entries on a shrunk map. */
|
|
158
|
+
private _groupColorCounter;
|
|
159
|
+
private static readonly GROUP_COLOR_MAP_CAP;
|
|
129
160
|
private _barCategoryCache;
|
|
130
161
|
/** Sorted bin boundary values from the last bar scene build (for data-driven brush snapping) */
|
|
131
162
|
private _binBoundaries;
|
|
@@ -202,7 +233,11 @@ export declare class PipelineStore {
|
|
|
202
233
|
private resolveAreaStyle;
|
|
203
234
|
/** Resolve a group name to a color from the cached color map or a dedicated group palette.
|
|
204
235
|
* First checks _colorMapCache (populated by resolveColorMap when colorAccessor is set).
|
|
205
|
-
* Falls back to _groupColorMap (insertion-order, never mutates _colorMapCache).
|
|
236
|
+
* Falls back to _groupColorMap (insertion-order, never mutates _colorMapCache).
|
|
237
|
+
*
|
|
238
|
+
* FIFO-evicts the oldest entry when the map exceeds `GROUP_COLOR_MAP_CAP`. The palette index
|
|
239
|
+
* uses `_groupColorCounter` (monotonic, decoupled from map size) so eviction doesn't cause
|
|
240
|
+
* new groups to collide with existing entries on a shrunk map. */
|
|
206
241
|
private resolveGroupColor;
|
|
207
242
|
/**
|
|
208
243
|
* Return a cached materialized array of the buffer contents.
|
|
@@ -211,18 +246,18 @@ export declare class PipelineStore {
|
|
|
211
246
|
* transition ticks, hover redraws, and other non-data-changing renders.
|
|
212
247
|
*/
|
|
213
248
|
private getBufferArray;
|
|
214
|
-
getData():
|
|
249
|
+
getData(): Datum[];
|
|
215
250
|
/**
|
|
216
251
|
* Remove data points by ID. Requires pointIdAccessor to be configured.
|
|
217
252
|
* Returns the removed items. Marks the store dirty for scene rebuild.
|
|
218
253
|
*/
|
|
219
|
-
remove(id: string | string[]):
|
|
254
|
+
remove(id: string | string[]): Datum[];
|
|
220
255
|
/**
|
|
221
256
|
* Update data points by ID. Requires pointIdAccessor.
|
|
222
257
|
* The updater receives the current datum and returns the replacement.
|
|
223
258
|
* Returns the previous values. Extents and scene are marked dirty.
|
|
224
259
|
*/
|
|
225
|
-
update(id: string | string[], updater: (d:
|
|
260
|
+
update(id: string | string[], updater: (d: Datum) => Datum): Datum[];
|
|
226
261
|
/** Returns sorted bin boundary values from the last bar scene build. Persists until clear() or the next bar scene build. */
|
|
227
262
|
getBinBoundaries(): number[];
|
|
228
263
|
getExtents(): {
|
|
@@ -231,9 +266,9 @@ export declare class PipelineStore {
|
|
|
231
266
|
} | null;
|
|
232
267
|
clear(): void;
|
|
233
268
|
get size(): number;
|
|
234
|
-
getBuffer(): RingBuffer<
|
|
235
|
-
getXAccessor(): (d:
|
|
236
|
-
getYAccessor(): (d:
|
|
237
|
-
getCategoryAccessor(): ((d:
|
|
269
|
+
getBuffer(): RingBuffer<Datum>;
|
|
270
|
+
getXAccessor(): (d: Datum) => number;
|
|
271
|
+
getYAccessor(): (d: Datum) => number;
|
|
272
|
+
getCategoryAccessor(): ((d: Datum) => string) | undefined;
|
|
238
273
|
updateConfig(config: Partial<PipelineConfig>): void;
|
|
239
274
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
2
|
import type { StreamScales, MarginalGraphicsConfig } from "./types";
|
|
3
3
|
import type { AnnotationContext } from "../realtime/types";
|
|
4
4
|
import type { ReactNode } from "react";
|
|
@@ -38,8 +38,8 @@ interface SVGOverlayProps {
|
|
|
38
38
|
yLabel?: string;
|
|
39
39
|
/** Label for the right Y axis (dual-axis charts) */
|
|
40
40
|
yLabelRight?: string;
|
|
41
|
-
xFormat?: (d:
|
|
42
|
-
yFormat?: (d:
|
|
41
|
+
xFormat?: (d: number | Date | string, index?: number, allTicks?: number[]) => string | ReactNode;
|
|
42
|
+
yFormat?: (d: number | Date | string) => string | ReactNode;
|
|
43
43
|
showGrid?: boolean;
|
|
44
44
|
title?: string | ReactNode;
|
|
45
45
|
legend?: ReactNode | {
|
|
@@ -65,12 +65,12 @@ interface SVGOverlayProps {
|
|
|
65
65
|
marginalGraphics?: MarginalGraphicsConfig;
|
|
66
66
|
xValues?: number[];
|
|
67
67
|
yValues?: number[];
|
|
68
|
-
annotations?:
|
|
69
|
-
svgAnnotationRules?: (annotation:
|
|
68
|
+
annotations?: Datum[];
|
|
69
|
+
svgAnnotationRules?: (annotation: Datum, index: number, context: AnnotationContext) => ReactNode;
|
|
70
70
|
annotationFrame?: number;
|
|
71
71
|
xAccessor?: string;
|
|
72
72
|
yAccessor?: string;
|
|
73
|
-
annotationData?:
|
|
73
|
+
annotationData?: Datum[];
|
|
74
74
|
pointNodes?: {
|
|
75
75
|
pointId?: string;
|
|
76
76
|
x: number;
|
|
@@ -102,9 +102,9 @@ interface SVGUnderlayProps {
|
|
|
102
102
|
showAxes?: boolean;
|
|
103
103
|
axes?: AxisConfig[];
|
|
104
104
|
showGrid?: boolean;
|
|
105
|
-
xFormat?: (d:
|
|
106
|
-
yFormat?: (d:
|
|
105
|
+
xFormat?: (d: number | Date | string, index?: number, allTicks?: number[]) => string | ReactNode;
|
|
106
|
+
yFormat?: (d: number | Date | string) => string | ReactNode;
|
|
107
107
|
}
|
|
108
|
-
export declare function SVGUnderlay(props: SVGUnderlayProps):
|
|
109
|
-
export declare function SVGOverlay(props: SVGOverlayProps):
|
|
108
|
+
export declare function SVGUnderlay(props: SVGUnderlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
109
|
+
export declare function SVGOverlay(props: SVGOverlayProps): import("react/jsx-runtime").JSX.Element | null;
|
|
110
110
|
export {};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { SceneNode, LineSceneNode, AreaSceneNode, PointSceneNode, RectSceneNode, HeatcellSceneNode, Style, StreamScales, CurveType } from "./types";
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
2
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
3
|
+
export declare function buildLineNode(data: Datum[], scales: StreamScales, xGet: (d: Datum) => number, yGet: (d: Datum) => number, style: Style, group?: string): LineSceneNode;
|
|
4
|
+
export declare function buildAreaNode(data: Datum[], scales: StreamScales, xGet: (d: Datum) => number, yGet: (d: Datum) => number, baselineY: number, style: Style, group?: string, y0Get?: (d: Datum) => number): AreaSceneNode;
|
|
4
5
|
/** Per-group-per-x stacked top values, keyed by group then x */
|
|
5
6
|
export type StackedTops = Map<string, Map<number, number>>;
|
|
6
7
|
export declare function buildStackedAreaNodes(groups: {
|
|
7
8
|
key: string;
|
|
8
|
-
data:
|
|
9
|
-
}[], scales: StreamScales, xGet: (d:
|
|
9
|
+
data: Datum[];
|
|
10
|
+
}[], scales: StreamScales, xGet: (d: Datum) => number, yGet: (d: Datum) => number, styleFn: (group: string, sampleDatum?: Datum) => Style, normalize?: boolean, curve?: CurveType): {
|
|
10
11
|
nodes: AreaSceneNode[];
|
|
11
12
|
stackedTops: StackedTops;
|
|
12
13
|
};
|
|
13
|
-
export declare function buildPointNode(datum:
|
|
14
|
+
export declare function buildPointNode(datum: Datum, scales: StreamScales, xGet: (d: Datum) => number, yGet: (d: Datum) => number, r: number, style: Style, pointId?: string): PointSceneNode | null;
|
|
14
15
|
export declare function buildRectNode(x: number, y: number, w: number, h: number, style: Style, datum: any, group?: string): RectSceneNode;
|
|
15
16
|
export declare function buildHeatcellNode(x: number, y: number, w: number, h: number, fill: string, datum: any, options?: {
|
|
16
17
|
value?: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import type { StreamGeoFrameProps, StreamGeoFrameHandle } from "./geoTypes";
|
|
3
|
-
declare const StreamGeoFrame: React.ForwardRefExoticComponent<StreamGeoFrameProps<
|
|
4
|
+
declare const StreamGeoFrame: React.ForwardRefExoticComponent<StreamGeoFrameProps<Datum> & React.RefAttributes<StreamGeoFrameHandle>>;
|
|
4
5
|
export default StreamGeoFrame;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import type { StreamNetworkFrameProps, StreamNetworkFrameHandle } from "./networkTypes";
|
|
3
|
-
declare const StreamNetworkFrame: React.ForwardRefExoticComponent<StreamNetworkFrameProps<
|
|
4
|
+
declare const StreamNetworkFrame: React.ForwardRefExoticComponent<StreamNetworkFrameProps<Datum> & React.RefAttributes<StreamNetworkFrameHandle>>;
|
|
4
5
|
export default StreamNetworkFrame;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import type { StreamOrdinalFrameProps, StreamOrdinalFrameHandle } from "./ordinalTypes";
|
|
3
|
-
declare const StreamOrdinalFrame: React.ForwardRefExoticComponent<StreamOrdinalFrameProps<
|
|
4
|
+
declare const StreamOrdinalFrame: React.ForwardRefExoticComponent<StreamOrdinalFrameProps<Datum> & React.RefAttributes<StreamOrdinalFrameHandle<Datum>>>;
|
|
4
5
|
export default StreamOrdinalFrame;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import type { StreamXYFrameProps, StreamXYFrameHandle } from "./types";
|
|
3
4
|
/**
|
|
@@ -17,5 +18,5 @@ import type { StreamXYFrameProps, StreamXYFrameHandle } from "./types";
|
|
|
17
18
|
* raw color without alpha — degrades gracefully.
|
|
18
19
|
*/
|
|
19
20
|
export declare function withAlpha(color: string, alphaHex: string): string;
|
|
20
|
-
declare const StreamXYFrame: React.ForwardRefExoticComponent<StreamXYFrameProps<
|
|
21
|
+
declare const StreamXYFrame: React.ForwardRefExoticComponent<StreamXYFrameProps<Datum> & React.RefAttributes<StreamXYFrameHandle<Datum>>>;
|
|
21
22
|
export default StreamXYFrame;
|