semiotic 3.12.0 → 3.12.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/README.md +50 -46
- package/ai/artifact-surface-inventory.json +1 -1
- package/ai/behaviorContracts.cjs +1 -1
- package/ai/dist/diagnose-operation.js +3 -3
- package/ai/dist/mcp-server.js +1 -1
- package/ai/reference.md +15 -3
- package/ai/schema.json +908 -96
- package/ai/surface-manifest.json +1 -1
- package/ai/task-packets/compare-category-totals.json +5 -5
- package/ai/task-packets/compare-category-totals.md +2 -2
- package/ai/task-packets/correct-published-chart.json +5 -5
- package/ai/task-packets/correct-published-chart.md +2 -2
- package/ai/task-packets/index.json +6 -6
- package/ai/task-packets/update-live-chart.json +5 -5
- package/ai/task-packets/update-live-chart.md +2 -2
- package/dist/c-27DCB5T6.min.js +7 -7
- package/dist/c-2CKIGFD2.min.js +1 -1
- package/dist/c-3FATLOH4.min.js +1 -0
- package/dist/{c-STVM6CBI.min.js → c-4SCJKAWZ.min.js} +200 -200
- package/dist/c-5FUOKMH6.min.js +7 -0
- package/dist/c-AAIPWVQ5.min.js +6 -6
- package/dist/{c-2RG4WOVX.min.js → c-ALLF3Y77.min.js} +1 -1
- package/dist/{c-QMKQVCCZ.min.js → c-C5GXUHUO.min.js} +6 -6
- package/dist/c-C67QDKTU.min.js +34 -0
- package/dist/c-F76M77YC.min.js +1 -0
- package/dist/c-FEVXPKQH.min.js +1 -1
- package/dist/c-G42WVQO2.min.js +1 -0
- package/dist/c-G5A3YWTN.min.js +66 -0
- package/dist/c-H4HVKBU3.min.js +1 -0
- package/dist/c-HU3ASFKT.min.js +1 -0
- package/dist/c-I4FYCVJB.min.js +391 -0
- package/dist/{c-5L7JGWQW.min.js → c-IATPZOL7.min.js} +28 -28
- package/dist/c-IE5EBBP6.min.js +110 -0
- package/dist/c-IGONIKZL.min.js +1 -0
- package/dist/c-IKPM53JH.min.js +1 -0
- package/dist/c-IU4QZ7Y5.min.js +1 -1
- package/dist/{c-2ACLVPKF.min.js → c-K5VE57OI.min.js} +1 -1
- package/dist/c-KWJIBJ4R.min.js +1 -0
- package/dist/c-LIMFU6RD.min.js +1 -0
- package/dist/c-M4T43G76.min.js +1 -0
- package/dist/c-M7QUZZCE.min.js +1 -1
- package/dist/c-NVSINXE5.min.js +1 -0
- package/dist/{c-FAF6EV4E.min.js → c-NWRYV6ZF.min.js} +1 -1
- package/dist/c-O5GU2R5W.min.js +1 -0
- package/dist/c-OC7GNXGZ.min.js +1 -0
- package/dist/c-OV5F3DQP.min.js +1 -0
- package/dist/{c-5TAXHW7I.min.js → c-PJ5CAYAW.min.js} +1 -1
- package/dist/c-Q5LZRQGD.min.js +1 -0
- package/dist/c-QP3PXK3N.min.js +1 -0
- package/dist/c-SGZ7ZD2I.min.js +51 -0
- package/dist/c-SSKV5JPW.min.js +1 -1
- package/dist/c-THWTHWXU.min.js +37 -0
- package/dist/c-TRMNDRC4.min.js +41 -0
- package/dist/c-UP656CST.min.js +1 -1
- package/dist/c-USYOK5OX.min.js +1 -0
- package/dist/c-VI753KBO.min.js +1 -0
- package/dist/{c-TT4CTEBR.min.js → c-VLAAAFST.min.js} +1 -1
- package/dist/c-VSOQPII4.min.js +5 -5
- package/dist/c-WGDM4ZRP.min.js +26 -0
- package/dist/c-XCV7VUU3.min.js +87 -0
- package/dist/c-XGDZPYBI.min.js +1 -0
- package/dist/c-XI6CLZII.min.js +1 -0
- package/dist/{c-L4Q2YMXO.min.js → c-XLC7PKM7.min.js} +1 -1
- package/dist/{c-3YAGKCPU.min.js → c-YEB6Z35F.min.js} +1 -1
- package/dist/c-YWZBFG63.min.js +1 -0
- package/dist/c-ZMYO3NZU.min.js +2 -0
- package/dist/c-ZO36H5VH.min.js +48 -0
- package/dist/components/LinkedCharts.d.ts +6 -1
- package/dist/components/Tooltip/Tooltip.d.ts +11 -1
- package/dist/components/Tooltip/tooltipChrome.d.ts +8 -2
- package/dist/components/bundling/semioticVite.d.ts +24 -0
- package/dist/components/charts/physics/cruciblePhysics.d.ts +2 -2
- package/dist/components/charts/physics/gauntletPhysics.d.ts +2 -6
- package/dist/components/charts/physics/physicsHocUtils.d.ts +8 -1
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +2 -0
- package/dist/components/charts/shared/chartSize.d.ts +58 -0
- package/dist/components/charts/shared/chartSizeDefaults.d.ts +189 -0
- package/dist/components/charts/shared/chartSizeDefaultsAtlas.d.ts +9 -0
- package/dist/components/charts/shared/chartSizeDefaultsNetwork.d.ts +29 -0
- package/dist/components/charts/shared/chartSizeDefaultsOrdinal.d.ts +13 -0
- package/dist/components/charts/shared/chartSizeDefaultsPhysics.d.ts +41 -0
- package/dist/components/charts/shared/chartSizeDefaultsValue.d.ts +19 -0
- package/dist/components/charts/shared/chartSizeDefaultsXY.d.ts +10 -0
- package/dist/components/charts/shared/networkPerspectiveWireSchema.d.ts +3 -0
- package/dist/components/charts/shared/useChartSetup.d.ts +3 -0
- package/dist/components/charts/shared/useCustomChartSetup.d.ts +4 -0
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +2 -0
- package/dist/components/charts/shared/withChartWrapper.d.ts +6 -2
- package/dist/components/charts/value/BigNumber.d.ts +0 -8
- package/dist/components/charts/xy/minimapLayout.d.ts +10 -0
- package/dist/components/realtime/BinAccumulator.d.ts +5 -2
- package/dist/components/recipes/atlas/dependencyForestChartProps.d.ts +4 -4
- package/dist/components/recipes/atlas/flowCircuitChartProps.d.ts +177 -1
- package/dist/components/recipes/atlas/flowCircuitLayout.d.ts +3 -0
- package/dist/components/recipes/atlas/motifBraidChartProps.d.ts +2 -0
- package/dist/components/recipes/atlas/resolution/BoundaryLoomChart.d.ts +3 -0
- package/dist/components/recipes/atlas/resolution/ComponentCutaway.d.ts +16 -0
- package/dist/components/recipes/atlas/resolution/ResolutionAtlasChart.d.ts +3 -0
- package/dist/components/recipes/atlas/resolution/ResolutionGlyphs.d.ts +15 -0
- package/dist/components/recipes/atlas/resolution/ResolutionReader.d.ts +5 -0
- package/dist/components/recipes/atlas/resolution/appearance.d.ts +58 -0
- package/dist/components/recipes/atlas/resolution/boundaryLoomLayout.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/chartProps.d.ts +75 -0
- package/dist/components/recipes/atlas/resolution/componentCutawayLayout.d.ts +12 -0
- package/dist/components/recipes/atlas/resolution/cutawayContext.d.ts +23 -0
- package/dist/components/recipes/atlas/resolution/cutawayGraph.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/cycles.d.ts +7 -0
- package/dist/components/recipes/atlas/resolution/evidence.d.ts +43 -0
- package/dist/components/recipes/atlas/resolution/glyphs.d.ts +40 -0
- package/dist/components/recipes/atlas/resolution/identity.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/indexGraph.d.ts +32 -0
- package/dist/components/recipes/atlas/resolution/ownership.d.ts +25 -0
- package/dist/components/recipes/atlas/resolution/plan.d.ts +12 -0
- package/dist/components/recipes/atlas/resolution/ports.d.ts +44 -0
- package/dist/components/recipes/atlas/resolution/prepare.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/project.d.ts +70 -0
- package/dist/components/recipes/atlas/resolution/queries.d.ts +23 -0
- package/dist/components/recipes/atlas/resolution/resolutionAtlasLayout.d.ts +9 -0
- package/dist/components/recipes/atlas/resolution/rules.d.ts +14 -0
- package/dist/components/recipes/atlas/resolution/scene.d.ts +52 -0
- package/dist/components/recipes/atlas/resolution/selection.d.ts +3 -0
- package/dist/components/recipes/atlas/resolution/sets.d.ts +10 -0
- package/dist/components/recipes/atlas/resolution/types.d.ts +401 -0
- package/dist/components/recipes/atlas/resolution/validate.d.ts +4 -0
- package/dist/components/recipes/atlas/resolution/witnesses.d.ts +18 -0
- package/dist/components/recipes/atlas/resolution/worker.d.ts +34 -0
- package/dist/components/recipes/lineageDag.d.ts +4 -0
- package/dist/components/recipes/recipeUtils.d.ts +2 -0
- package/dist/components/recipes/transitDiagram.d.ts +2 -61
- package/dist/components/recipes/transitDiagramTypes.d.ts +65 -0
- package/dist/components/semiotic-ai.d.ts +2 -0
- package/dist/components/semiotic-experimental-network-resolution-react.d.ts +12 -0
- package/dist/components/semiotic-experimental-network-resolution.d.ts +13 -0
- package/dist/components/semiotic-geo.d.ts +1 -1
- package/dist/components/semiotic-network-perspective-core.d.ts +6 -0
- package/dist/components/semiotic-network.d.ts +1 -1
- package/dist/components/semiotic-ordinal.d.ts +1 -1
- package/dist/components/semiotic-physics.d.ts +1 -1
- package/dist/components/semiotic-realtime-core.d.ts +1 -1
- package/dist/components/semiotic-realtime-react.d.ts +2 -0
- package/dist/components/semiotic-utils-core.d.ts +3 -1
- package/dist/components/semiotic-vite.d.ts +2 -0
- package/dist/components/semiotic-xy.d.ts +3 -1
- package/dist/components/semiotic.d.ts +3 -1
- package/dist/components/server/renderToStaticSVG.d.ts +2 -1
- package/dist/components/server/serverChartConfigShared.d.ts +2 -0
- package/dist/components/store/LinkedCrosshairStore.d.ts +43 -11
- package/dist/components/store/themeCore.d.ts +2 -0
- package/dist/components/stream/frameKeyboardNavigation.d.ts +3 -1
- package/dist/components/stream/hoverUtils.d.ts +5 -0
- package/dist/components/stream/networkCustomLayout.d.ts +3 -0
- package/dist/components/stream/networkPerspective.d.ts +2 -0
- package/dist/components/stream/networkPerspectiveFit.d.ts +12 -1
- package/dist/components/stream/networkPerspectiveSolid.d.ts +1 -1
- package/dist/components/stream/networkSceneTypes.d.ts +4 -0
- package/dist/components/stream/networkTypes.d.ts +2 -0
- package/dist/components/stream/pipelineConfig.d.ts +2 -0
- package/dist/components/stream/pipelineDomainResolution.d.ts +4 -1
- package/dist/components/stream/types.d.ts +2 -0
- package/dist/components/stream/useFrame.d.ts +2 -0
- package/dist/components/stream/xySceneBuilders/types.d.ts +2 -0
- package/dist/controls.module.min.js +31 -31
- package/dist/geo.min.js +150 -150
- package/dist/geo.module.min.js +31 -31
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/rough.module.min.js +1 -1
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +2 -0
- package/dist/semiotic-ai.module.min.js +13 -13
- package/dist/semiotic-artifact-react.module.min.js +4 -4
- package/dist/semiotic-artifact.min.js +1 -1
- package/dist/semiotic-artifact.module.min.js +1 -1
- package/dist/semiotic-atlas-selection.module.min.js +1 -1
- package/dist/semiotic-atlas.module.min.js +10 -12
- package/dist/semiotic-client-cjs-shared.min.js +1078 -925
- package/dist/semiotic-client-glyph.module.min.js +2 -2
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +8 -9
- package/dist/semiotic-experimental-network-resolution-react.d.ts +12 -0
- package/dist/semiotic-experimental-network-resolution-react.min.js +2 -0
- package/dist/semiotic-experimental-network-resolution-react.module.min.js +89 -0
- package/dist/semiotic-experimental-network-resolution.d.ts +13 -0
- package/dist/semiotic-experimental-network-resolution.min.js +2 -0
- package/dist/semiotic-experimental-network-resolution.module.min.js +2 -0
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +9 -10
- package/dist/semiotic-geo.d.ts +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-network-perspective-core.d.ts +6 -0
- package/dist/semiotic-network-perspective-core.min.js +1 -0
- package/dist/semiotic-network-perspective-core.module.min.js +1 -0
- package/dist/semiotic-network-perspective.module.min.js +1 -1
- package/dist/semiotic-network-placement.min.js +4 -0
- package/dist/semiotic-network-placement.module.min.js +4 -0
- package/dist/semiotic-network-zoom.module.min.js +1 -1
- package/dist/semiotic-network.d.ts +1 -1
- package/dist/semiotic-ordinal.d.ts +1 -1
- package/dist/semiotic-physics.d.ts +1 -1
- package/dist/semiotic-realtime-core.d.ts +1 -1
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.d.ts +2 -0
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +101 -106
- package/dist/semiotic-recipes-core.module.min.js +75 -76
- package/dist/semiotic-server-edge-node.module.min.js +391 -392
- package/dist/semiotic-server-edge.min.js +387 -388
- package/dist/semiotic-server-edge.module.min.js +371 -371
- package/dist/semiotic-server-node.min.js +387 -388
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-utils-core.d.ts +3 -1
- package/dist/semiotic-utils-core.min.js +12 -11
- package/dist/semiotic-utils-core.module.min.js +12 -11
- package/dist/semiotic-value.module.min.js +4 -4
- package/dist/semiotic-vite.d.ts +2 -0
- package/dist/semiotic-vite.min.js +1 -0
- package/dist/semiotic-vite.module.min.js +1 -0
- package/dist/semiotic-xy.d.ts +3 -1
- package/dist/semiotic.d.ts +3 -1
- package/dist/semiotic.module.min.js +12 -12
- package/dist/server.min.js +387 -388
- package/dist/server.module.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +42 -13
- package/dist/c-2AB65V3L.min.js +0 -1
- package/dist/c-2U5JMOPN.min.js +0 -88
- package/dist/c-3DCTIRW4.min.js +0 -1
- package/dist/c-3OKFRTYM.min.js +0 -1
- package/dist/c-3VZHOPFW.min.js +0 -1
- package/dist/c-4ZSQIBC7.min.js +0 -1
- package/dist/c-5M4RUS7V.min.js +0 -34
- package/dist/c-6O5WWP7F.min.js +0 -1
- package/dist/c-73TOIYIW.min.js +0 -48
- package/dist/c-AE4M7BWH.min.js +0 -1
- package/dist/c-AEIK2NFW.min.js +0 -30
- package/dist/c-AFQSEIZ4.min.js +0 -4
- package/dist/c-BBX7DVVB.min.js +0 -51
- package/dist/c-CNYFCSG4.min.js +0 -5
- package/dist/c-E6QH2WYE.min.js +0 -1
- package/dist/c-GOMQWQJR.min.js +0 -1
- package/dist/c-GTYG4PDT.min.js +0 -1
- package/dist/c-H23GIKTK.min.js +0 -1
- package/dist/c-HQLUUSRJ.min.js +0 -1
- package/dist/c-HXUOFDSD.min.js +0 -64
- package/dist/c-L3LKYOLK.min.js +0 -1
- package/dist/c-MIKDFGKH.min.js +0 -1
- package/dist/c-OYSPTIAG.min.js +0 -1
- package/dist/c-PWPJNYQP.min.js +0 -1
- package/dist/c-QZ5SWKHC.min.js +0 -392
- package/dist/c-RXJH4IRX.min.js +0 -41
- package/dist/c-SN2D6QMH.min.js +0 -1
- package/dist/c-U5YGK6HL.min.js +0 -1
- package/dist/c-VIN5ASK2.min.js +0 -37
- package/dist/c-XZ3GASUJ.min.js +0 -1
- package/dist/c-ZLZZTH4I.min.js +0 -118
|
@@ -2,16 +2,22 @@ import { type FlowCircuitLayoutConfig } from "./flowCircuitLayout";
|
|
|
2
2
|
import { type AtlasChartOptions } from "./atlasChartOptions";
|
|
3
3
|
import type { PhysicsCustomChartProps } from "../../charts/physics/PhysicsCustomChart";
|
|
4
4
|
import type { BaseChartProps } from "../../charts/shared/types";
|
|
5
|
+
import type { NetworkCustomChartProps } from "../../charts/custom/NetworkCustomChart";
|
|
5
6
|
export type FlowCircuitChartProps = FlowCircuitLayoutConfig & AtlasChartOptions & {
|
|
6
7
|
width?: number;
|
|
7
8
|
height?: number;
|
|
8
9
|
annotations?: PhysicsCustomChartProps["annotations"];
|
|
10
|
+
/** Physics frame options for the flat view. */
|
|
9
11
|
frameProps?: PhysicsCustomChartProps["frameProps"];
|
|
12
|
+
/** Network frame options for a projected view, including zoom and SVG rendering. */
|
|
13
|
+
networkFrameProps?: NetworkCustomChartProps["frameProps"];
|
|
14
|
+
/** Project the fixed circuit apparatus through the network renderer. */
|
|
15
|
+
perspective?: NetworkCustomChartProps["perspective"];
|
|
10
16
|
/** Named linked-view selection, separate from the local graph selection. */
|
|
11
17
|
linkedSelection?: Pick<NonNullable<BaseChartProps["selection"]>, "name">;
|
|
12
18
|
onSelectNode?: (id: string) => void;
|
|
13
19
|
};
|
|
14
|
-
export declare function flowCircuitChartProps({ width, height, title, description, summary, accessibleTable, chartId, className, onObservation, linkedHover, annotations, frameProps, linkedSelection: _linkedSelection, onSelectNode: _onSelectNode, ...config }: FlowCircuitChartProps): {
|
|
20
|
+
export declare function flowCircuitChartProps({ width, height, title, description, summary, accessibleTable, chartId, className, onObservation, linkedHover, annotations, frameProps, perspective: _perspective, networkFrameProps: _networkFrameProps, linkedSelection: _linkedSelection, onSelectNode: _onSelectNode, ...config }: FlowCircuitChartProps): {
|
|
15
21
|
key: string;
|
|
16
22
|
data: {
|
|
17
23
|
arrivals: number | null;
|
|
@@ -70,3 +76,173 @@ export declare function flowCircuitChartProps({ width, height, title, descriptio
|
|
|
70
76
|
accessibleTable: import("../../stream/accessibleTableTypes").AccessibleTableProp;
|
|
71
77
|
tooltip: false | (() => null);
|
|
72
78
|
};
|
|
79
|
+
/** Network rendering uses the same tape, layout geometry and semantic datums. */
|
|
80
|
+
export declare function flowCircuitNetworkChartProps(props: FlowCircuitChartProps): {
|
|
81
|
+
annotations: import("../../stream/networkColorAccessors").Datum[] | undefined;
|
|
82
|
+
nodes: {
|
|
83
|
+
arrivals: number | null;
|
|
84
|
+
completions: number | null;
|
|
85
|
+
capacity: number | null;
|
|
86
|
+
queued: number | null;
|
|
87
|
+
status: import("./types").EvidenceStatus;
|
|
88
|
+
id: string;
|
|
89
|
+
nodeId: string;
|
|
90
|
+
kind: string;
|
|
91
|
+
moduleKind: import("./flowCircuitTypes").CircuitModuleKind;
|
|
92
|
+
label: string;
|
|
93
|
+
unit: import("./flowCircuitTypes").CircuitUnit;
|
|
94
|
+
sourceRevision: string;
|
|
95
|
+
analysisRevision: string;
|
|
96
|
+
relationScopeId: string;
|
|
97
|
+
editionId: string;
|
|
98
|
+
editionKind: "observed" | "modeled";
|
|
99
|
+
synthetic: boolean;
|
|
100
|
+
mode: import("./flowCircuitTypes").CircuitMode;
|
|
101
|
+
observedAt: number;
|
|
102
|
+
}[];
|
|
103
|
+
edges: import("./types").AtlasEdge[];
|
|
104
|
+
layout: import("../../semiotic-network").NetworkCustomLayout<FlowCircuitLayoutConfig>;
|
|
105
|
+
perspective: import("../../semiotic-network-perspective-core").NetworkPerspective | undefined;
|
|
106
|
+
margin: number;
|
|
107
|
+
frameProps: {
|
|
108
|
+
background?: string;
|
|
109
|
+
data?: import("../../stream/networkColorAccessors").Datum | undefined;
|
|
110
|
+
legend?: import("../../semiotic-geo").LegendValue;
|
|
111
|
+
summary?: string;
|
|
112
|
+
title?: string | import("react").ReactNode;
|
|
113
|
+
animate?: import("../../stream/pipelineTransitionUtils").AnimateProp;
|
|
114
|
+
description?: string;
|
|
115
|
+
valueAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => number) | undefined;
|
|
116
|
+
annotations?: import("../../stream/networkColorAccessors").Datum[];
|
|
117
|
+
chartId?: string;
|
|
118
|
+
onObservation?: import("../../semiotic-ai-observations").OnObservationCallback;
|
|
119
|
+
clock?: import("../../stream/FrameRuntime").FrameClock;
|
|
120
|
+
random?: import("../../stream/FrameRuntime").FrameRandom;
|
|
121
|
+
seed?: number;
|
|
122
|
+
paused?: boolean;
|
|
123
|
+
transition?: import("../../stream/streamEncodingTypes").TransitionConfig;
|
|
124
|
+
responsiveWidth?: boolean;
|
|
125
|
+
responsiveHeight?: boolean;
|
|
126
|
+
margin?: {
|
|
127
|
+
top?: number;
|
|
128
|
+
right?: number;
|
|
129
|
+
bottom?: number;
|
|
130
|
+
left?: number;
|
|
131
|
+
};
|
|
132
|
+
className?: string;
|
|
133
|
+
maxDevicePixelRatio?: number;
|
|
134
|
+
renderMode?: import("../../semiotic-rough").SceneRenderMode<import("../../semiotic-network").NetworkSceneNode | import("../../semiotic-network").NetworkSceneEdge>;
|
|
135
|
+
colorScheme?: string | string[] | Record<string, string>;
|
|
136
|
+
tooltipContent?: (d: import("../../semiotic-realtime-core").HoverData) => import("react").ReactNode;
|
|
137
|
+
enableHover?: boolean;
|
|
138
|
+
autoPlaceAnnotations?: import("../annotationLayout").AutoPlaceAnnotations;
|
|
139
|
+
svgAnnotationRules?: (annotation: import("../../stream/networkColorAccessors").Datum, index: number, context: import("../../semiotic-realtime-core").AnnotationContext) => import("react").ReactNode;
|
|
140
|
+
legendHoverBehavior?: (item: {
|
|
141
|
+
label: string;
|
|
142
|
+
} | null) => void;
|
|
143
|
+
legendClickBehavior?: (item: {
|
|
144
|
+
label: string;
|
|
145
|
+
}) => void;
|
|
146
|
+
legendHighlightedCategory?: string | null;
|
|
147
|
+
legendIsolatedCategories?: Set<string>;
|
|
148
|
+
legendPosition?: "right" | "left" | "top" | "bottom";
|
|
149
|
+
legendLayout?: import("../../semiotic-geo").LegendLayout;
|
|
150
|
+
legendCategoryAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string | number) | undefined;
|
|
151
|
+
onCategoriesChange?: (categories: string[]) => void;
|
|
152
|
+
backgroundGraphics?: string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | ((ctx: import("../../stream/types").FrameGraphicsContext<null>) => import("react").ReactNode) | null | undefined;
|
|
153
|
+
foregroundGraphics?: string | number | bigint | boolean | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | null | undefined> | ((ctx: import("../../stream/types").FrameGraphicsContext<null>) => import("react").ReactNode) | null | undefined;
|
|
154
|
+
decay?: import("../../semiotic-realtime-core").DecayConfig;
|
|
155
|
+
pulse?: import("../../semiotic-realtime-core").PulseConfig;
|
|
156
|
+
staleness?: import("../../semiotic-realtime-core").StalenessConfig;
|
|
157
|
+
frameScheduler?: import("../../stream/useFrame").FrameScheduler;
|
|
158
|
+
suspendWhenHidden?: boolean;
|
|
159
|
+
accessibleTable?: import("../../stream/accessibleTableTypes").AccessibleTableProp;
|
|
160
|
+
onLayoutError?: (diagnostic: import("../../semiotic-geo").CustomLayoutFailureDiagnostic) => void;
|
|
161
|
+
colorBy?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string | number);
|
|
162
|
+
initialEdges?: import("../../stream/networkTypes").EdgePush[];
|
|
163
|
+
nodeIDAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string) | undefined;
|
|
164
|
+
sourceAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string) | undefined;
|
|
165
|
+
targetAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string) | undefined;
|
|
166
|
+
edgeIdAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string);
|
|
167
|
+
childrenAccessor?: string | ((d: import("../../stream/networkColorAccessors").Datum) => import("../../stream/networkColorAccessors").Datum[]) | undefined;
|
|
168
|
+
hierarchySum?: string | ((d: import("../../stream/networkColorAccessors").Datum) => number) | undefined;
|
|
169
|
+
orientation?: "horizontal" | "vertical";
|
|
170
|
+
nodeAlign?: "justify" | "left" | "right" | "center";
|
|
171
|
+
nodePaddingRatio?: number;
|
|
172
|
+
nodeWidth?: number;
|
|
173
|
+
iterations?: number;
|
|
174
|
+
forceStrength?: number;
|
|
175
|
+
layoutExecution?: "auto" | "worker" | "sync";
|
|
176
|
+
layoutLoadingContent?: import("react").ReactNode | false;
|
|
177
|
+
onLayoutStateChange?: (state: "pending" | "ready" | "error") => void;
|
|
178
|
+
padAngle?: number;
|
|
179
|
+
groupWidth?: number;
|
|
180
|
+
sortGroups?: (a: number, b: number) => number;
|
|
181
|
+
edgeSort?: (a: import("../../stream/networkColorAccessors").Datum, b: import("../../stream/networkColorAccessors").Datum) => number;
|
|
182
|
+
perspective?: import("../../semiotic-network-perspective-core").NetworkPerspective;
|
|
183
|
+
treeOrientation?: "vertical" | "horizontal" | "radial";
|
|
184
|
+
edgeType?: "line" | "curve";
|
|
185
|
+
padding?: number;
|
|
186
|
+
paddingTop?: number;
|
|
187
|
+
tensionConfig?: Partial<import("../../stream/networkTypes").TensionConfig>;
|
|
188
|
+
showParticles?: boolean;
|
|
189
|
+
particleStyle?: import("../../stream/networkTypes").ParticleStyle;
|
|
190
|
+
nodeStyle?: (d: import("../../stream/networkColorAccessors").Datum) => import("../../semiotic-network").NetworkMarkStyle;
|
|
191
|
+
edgeStyle?: (d: import("../../stream/networkColorAccessors").Datum) => import("../../semiotic-network").NetworkMarkStyle;
|
|
192
|
+
edgeColorBy?: "source" | "target" | "gradient" | ((d: import("../../stream/networkColorAccessors").Datum) => string);
|
|
193
|
+
edgeOpacity?: number;
|
|
194
|
+
colorByDepth?: boolean;
|
|
195
|
+
nodeSize?: number | string | ((d: import("../../stream/networkColorAccessors").Datum) => number);
|
|
196
|
+
nodeSizeRange?: [number, number];
|
|
197
|
+
nodeLabel?: string | ((d: import("../../stream/networkColorAccessors").Datum) => string);
|
|
198
|
+
showLabels?: boolean;
|
|
199
|
+
labelMode?: "leaf" | "parent" | "all";
|
|
200
|
+
thresholds?: import("../../semiotic-network").ThresholdAlertConfig;
|
|
201
|
+
orbitMode?: "flat" | "solar" | "atomic" | number[];
|
|
202
|
+
orbitSize?: number | ((node: import("../../stream/networkColorAccessors").Datum) => number);
|
|
203
|
+
orbitSpeed?: number;
|
|
204
|
+
orbitRevolution?: (node: import("../../stream/networkColorAccessors").Datum) => number;
|
|
205
|
+
orbitRevolutionStyle?: "locked" | "decay" | "alternate";
|
|
206
|
+
orbitEccentricity?: number | ((node: import("../../stream/networkColorAccessors").Datum) => number);
|
|
207
|
+
orbitShowRings?: boolean;
|
|
208
|
+
orbitAnimated?: boolean;
|
|
209
|
+
viewport?: import("../../semiotic-network").NetworkViewportProps["viewport"];
|
|
210
|
+
viewTransform?: import("../../semiotic-network").NetworkViewportProps["viewTransform"];
|
|
211
|
+
htmlMarkCulling?: import("../../semiotic-network").NetworkViewportProps["htmlMarkCulling"];
|
|
212
|
+
onViewportChange?: import("../../semiotic-network").NetworkViewportProps["onViewportChange"];
|
|
213
|
+
customClickBehavior?: import("../../charts/shared/semanticInteractions").SemanticClickBehavior<import("../../semiotic-realtime-core").HoverData>;
|
|
214
|
+
customHoverBehavior?: import("../../charts/shared/semanticInteractions").SemanticHoverBehavior<import("../../semiotic-realtime-core").HoverData>;
|
|
215
|
+
onAnnotationActivate?: import("../../semiotic-ai").OnAnnotationActivateCallback;
|
|
216
|
+
onTopologyChange?: ((nodes: import("../../stream/networkTypes").RealtimeNode[], edges: import("../../stream/networkTypes").RealtimeEdge[]) => void) | undefined;
|
|
217
|
+
annotationObservationCallback?: import("../../semiotic-ai-observations").OnObservationCallback;
|
|
218
|
+
};
|
|
219
|
+
tooltip: (datum: Record<string, unknown>) => string;
|
|
220
|
+
layoutConfig: {
|
|
221
|
+
layoutSelection?: import("../../semiotic-network").CustomLayoutSelection | null;
|
|
222
|
+
colors?: Partial<import("./flowCircuitChrome").CircuitColors>;
|
|
223
|
+
circuit: import("./flowCircuitTypes").FlowCircuitProjection;
|
|
224
|
+
edition: import("./flowCircuitTypes").CircuitEdition;
|
|
225
|
+
reading: import("./flowCircuitTypes").CircuitReading;
|
|
226
|
+
selection?: import("./flowCircuitTypes").CircuitSelection;
|
|
227
|
+
particleBudget?: number;
|
|
228
|
+
placementSeed?: number;
|
|
229
|
+
reducedMotion?: boolean;
|
|
230
|
+
highlightedEdgeIds?: string[];
|
|
231
|
+
};
|
|
232
|
+
width: number;
|
|
233
|
+
height: number;
|
|
234
|
+
chartId: string | undefined;
|
|
235
|
+
className: string | undefined;
|
|
236
|
+
onObservation: import("../../semiotic-ai-observations").OnObservationCallback | undefined;
|
|
237
|
+
linkedHover: string | false | {
|
|
238
|
+
name?: string;
|
|
239
|
+
fields: string[];
|
|
240
|
+
mode?: "field" | "x-position" | "series";
|
|
241
|
+
xField?: string;
|
|
242
|
+
seriesField?: string;
|
|
243
|
+
} | undefined;
|
|
244
|
+
title: string;
|
|
245
|
+
description: string;
|
|
246
|
+
summary: string;
|
|
247
|
+
accessibleTable: import("../../stream/accessibleTableTypes").AccessibleTableProp;
|
|
248
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PhysicsCustomLayout } from "../../charts/physics/PhysicsCustomChart";
|
|
2
|
+
import type { NetworkCustomLayout } from "../../stream/networkCustomLayout";
|
|
2
3
|
import { type CircuitColors } from "./flowCircuitChrome";
|
|
3
4
|
import type { FlowCircuitProjection, CircuitEdition, CircuitReading, CircuitSelection } from "./flowCircuitTypes";
|
|
4
5
|
import type { CustomLayoutSelection } from "../../stream/customLayoutSelection";
|
|
@@ -18,3 +19,5 @@ export interface FlowCircuitLayoutConfig {
|
|
|
18
19
|
export declare const flowCircuitLayout: PhysicsCustomLayout<{
|
|
19
20
|
id: string;
|
|
20
21
|
}, FlowCircuitLayoutConfig>;
|
|
22
|
+
/** The same fixed apparatus through the network projection and hit-test stage. */
|
|
23
|
+
export declare const flowCircuitNetworkLayout: NetworkCustomLayout<FlowCircuitLayoutConfig>;
|
|
@@ -10,6 +10,7 @@ export type MotifBraidChartProps = AtlasChartOptions & {
|
|
|
10
10
|
onClick?: NetworkCustomChartProps["onClick"];
|
|
11
11
|
annotations?: NetworkCustomChartProps["annotations"];
|
|
12
12
|
frameProps?: NetworkCustomChartProps["frameProps"];
|
|
13
|
+
perspective?: NetworkCustomChartProps["perspective"];
|
|
13
14
|
};
|
|
14
15
|
/** Shared client/static reader contract; atlas analysis precedes rendering. */
|
|
15
16
|
export declare function motifBraidChartProps({ atlas, linkedHover, ...props }: MotifBraidChartProps, braid?: import("./braid").MotifBraidProjection): {
|
|
@@ -48,4 +49,5 @@ export declare function motifBraidChartProps({ atlas, linkedHover, ...props }: M
|
|
|
48
49
|
onClick?: NetworkCustomChartProps["onClick"];
|
|
49
50
|
annotations?: NetworkCustomChartProps["annotations"];
|
|
50
51
|
frameProps?: NetworkCustomChartProps["frameProps"];
|
|
52
|
+
perspective?: NetworkCustomChartProps["perspective"];
|
|
51
53
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Basis, PreparedNetworkResolution } from "./types";
|
|
2
|
+
import type { ResolutionAppearance } from "./appearance";
|
|
3
|
+
export interface ComponentCutawayProps {
|
|
4
|
+
resolution: PreparedNetworkResolution;
|
|
5
|
+
pageId: string;
|
|
6
|
+
groupId: string;
|
|
7
|
+
/** Initial reading; changing this prop resets the query and port page. */
|
|
8
|
+
basis?: Basis;
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
title?: string;
|
|
12
|
+
accessibleTable?: boolean;
|
|
13
|
+
appearance?: ResolutionAppearance;
|
|
14
|
+
}
|
|
15
|
+
/** Original connections and bounded endpoint support, embeddable without either reader. */
|
|
16
|
+
export declare function ComponentCutaway(props: ComponentCutawayProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ResolutionAppearance } from "./appearance";
|
|
2
|
+
import type { PreparedNetworkResolution } from "./types";
|
|
3
|
+
/** Compact static/browser owner strip; the text preserves the whole meaning without color. */
|
|
4
|
+
export declare function NodeResolutionStrip({ resolution, nodeId, width, appearance }: {
|
|
5
|
+
resolution: PreparedNetworkResolution;
|
|
6
|
+
nodeId: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
appearance?: ResolutionAppearance;
|
|
9
|
+
}): import("react").JSX.Element;
|
|
10
|
+
/** The direct source relation and one bounded, replayable alternative. */
|
|
11
|
+
export declare function EdgeWitnessGlyph({ resolution, edgeId, appearance }: {
|
|
12
|
+
resolution: PreparedNetworkResolution;
|
|
13
|
+
edgeId: string;
|
|
14
|
+
appearance?: ResolutionAppearance;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type ResolutionChartProps } from "./chartProps";
|
|
2
|
+
/** Shared frame and evidence inspector for the two experimental readers. */
|
|
3
|
+
export declare function ResolutionReader(props: ResolutionChartProps & {
|
|
4
|
+
mode: "resolution-atlas" | "boundary-loom";
|
|
5
|
+
}): import("react").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { NetworkLayoutContext } from "../../../stream/networkCustomLayout";
|
|
2
|
+
import type { NetworkLabel } from "../../../stream/networkTypes";
|
|
3
|
+
import type { CustomLayoutSelection } from "../../../stream/customLayoutSelection";
|
|
4
|
+
import type { Style } from "../../../stream/types";
|
|
5
|
+
import type { Datum } from "../../../charts/shared/datumTypes";
|
|
6
|
+
export type ResolutionMarkRole = "component" | "edge" | "endpoint" | "membership" | "bracket" | "rail" | "historyInternal" | "historyBoundary" | "cycleInternal" | "cycleBoundary" | "supportYes" | "supportNo" | "supportUnknown" | "cutawayNode" | "cutawayEntry" | "cutawayExit" | "cutawayWitness";
|
|
7
|
+
export interface ResolutionStyleContext {
|
|
8
|
+
datum: Datum;
|
|
9
|
+
role: ResolutionMarkRole;
|
|
10
|
+
generation?: number;
|
|
11
|
+
highlighted: boolean;
|
|
12
|
+
selected: boolean;
|
|
13
|
+
theme: NetworkLayoutContext["theme"];
|
|
14
|
+
}
|
|
15
|
+
/** Shared by the readers, Cutaway, glyphs, and their static layouts. */
|
|
16
|
+
export interface ResolutionAppearance {
|
|
17
|
+
/** Edge ownership colors; default to theme secondary (internal) and primary (boundary). */
|
|
18
|
+
edgeColors?: {
|
|
19
|
+
internal?: string;
|
|
20
|
+
boundary?: string;
|
|
21
|
+
};
|
|
22
|
+
/** Sequential scheme name, colors indexed by absolute generation, or a color callback. */
|
|
23
|
+
generationColors?: string | readonly string[] | ((generation: number) => string);
|
|
24
|
+
/** Per-role overrides applied after defaults, including during hover and selection. */
|
|
25
|
+
styles?: Partial<Record<ResolutionMarkRole, Partial<Style> | ((context: ResolutionStyleContext) => Partial<Style>)>>;
|
|
26
|
+
labelStyle?: Partial<Pick<NetworkLabel, "fill" | "fontSize" | "fontWeight" | "stroke" | "strokeWidth" | "paintOrder">>;
|
|
27
|
+
dimmedOpacity?: number;
|
|
28
|
+
}
|
|
29
|
+
/** Internal extension of the frame's existing restyle channel; no geometry update. */
|
|
30
|
+
export interface ResolutionLayoutSelection extends CustomLayoutSelection {
|
|
31
|
+
resolutionHover?: (datum: Datum) => boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare function resolutionAppearance(theme: NetworkLayoutContext["theme"], appearance?: ResolutionAppearance, generationCount?: number): {
|
|
34
|
+
colors: {
|
|
35
|
+
primary?: string;
|
|
36
|
+
secondary?: string;
|
|
37
|
+
success?: string;
|
|
38
|
+
danger?: string;
|
|
39
|
+
warning?: string;
|
|
40
|
+
error?: string;
|
|
41
|
+
info?: string;
|
|
42
|
+
text?: string;
|
|
43
|
+
textSecondary?: string;
|
|
44
|
+
border?: string;
|
|
45
|
+
grid?: string;
|
|
46
|
+
surface?: string;
|
|
47
|
+
};
|
|
48
|
+
edgeColors: {
|
|
49
|
+
internal: string;
|
|
50
|
+
boundary: string;
|
|
51
|
+
};
|
|
52
|
+
generationColor: (generation: number) => string;
|
|
53
|
+
style: (context: Omit<ResolutionStyleContext, "theme">, base: Style) => Style;
|
|
54
|
+
labelStyle: Partial<Pick<NetworkLabel, "fill" | "stroke" | "fontSize" | "strokeWidth" | "fontWeight" | "paintOrder">> | undefined;
|
|
55
|
+
dimmedOpacity: number;
|
|
56
|
+
};
|
|
57
|
+
/** Match only the hovered component's original members, without expanding through later unions. */
|
|
58
|
+
export declare function resolutionHoverPredicate(datum: Datum | null): ((candidate: Datum) => boolean) | undefined;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NetworkCustomLayout } from "../../../stream/networkCustomLayout";
|
|
2
|
+
import type { ResolutionLayoutConfig } from "./resolutionAtlasLayout";
|
|
3
|
+
/** Literal edge columns freeze across page changes; crossings without endpoint marks mean nothing. */
|
|
4
|
+
export declare const boundaryLoomLayout: NetworkCustomLayout<ResolutionLayoutConfig>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { ResolutionAppearance } from "./appearance";
|
|
2
|
+
import type { NetworkCustomChartProps } from "../../../charts/custom/NetworkCustomChart";
|
|
3
|
+
import { type ResolutionProjection } from "./project";
|
|
4
|
+
import type { CanonicalSelection, PreparedNetworkResolution, ResolutionViewSpec, SemanticTarget } from "./types";
|
|
5
|
+
export interface ResolutionChartProps {
|
|
6
|
+
resolution: PreparedNetworkResolution;
|
|
7
|
+
appearance?: ResolutionAppearance;
|
|
8
|
+
/** Highlight corresponding components on hover. Enabled by default. */
|
|
9
|
+
hoverHighlight?: boolean;
|
|
10
|
+
onObservation?: NetworkCustomChartProps["onObservation"];
|
|
11
|
+
pageId?: string;
|
|
12
|
+
view?: ResolutionViewSpec;
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
title?: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
summary?: string;
|
|
18
|
+
accessibleTable?: boolean;
|
|
19
|
+
selection?: NetworkCustomChartProps["selection"];
|
|
20
|
+
linkedHover?: NetworkCustomChartProps["linkedHover"];
|
|
21
|
+
selected?: CanonicalSelection;
|
|
22
|
+
onSelect?: (selection: CanonicalSelection, target: SemanticTarget) => void;
|
|
23
|
+
frameProps?: NetworkCustomChartProps["frameProps"];
|
|
24
|
+
tooltip?: NetworkCustomChartProps["tooltip"];
|
|
25
|
+
}
|
|
26
|
+
export declare function readerProjection(props: ResolutionChartProps, mode: "resolution-atlas" | "boundary-loom"): ResolutionProjection;
|
|
27
|
+
/** Shared client/static chart props. Analysis and scoped queries precede rendering. */
|
|
28
|
+
export declare function resolutionChartProps(props: ResolutionChartProps, mode: "resolution-atlas" | "boundary-loom", projection?: ResolutionProjection): {
|
|
29
|
+
nodes: {
|
|
30
|
+
sourceRevision: string;
|
|
31
|
+
analysisRevision: string;
|
|
32
|
+
nodeId?: string | undefined;
|
|
33
|
+
connectionType?: "boundary" | "internal" | undefined;
|
|
34
|
+
id: string;
|
|
35
|
+
semanticTarget: SemanticTarget;
|
|
36
|
+
canonicalSelection: CanonicalSelection;
|
|
37
|
+
description: string;
|
|
38
|
+
label: string;
|
|
39
|
+
nodeIds: string[];
|
|
40
|
+
edgeIds: string[];
|
|
41
|
+
kind: "annotation" | "group" | "membership" | "bundle" | "original-node" | "original-edge" | "port" | "support-cell";
|
|
42
|
+
}[];
|
|
43
|
+
edges: never[];
|
|
44
|
+
layout: import("../../../semiotic-network").NetworkCustomLayout<import("./resolutionAtlasLayout").ResolutionLayoutConfig>;
|
|
45
|
+
layoutConfig: {
|
|
46
|
+
projection: ResolutionProjection;
|
|
47
|
+
appearance: ResolutionAppearance | undefined;
|
|
48
|
+
};
|
|
49
|
+
width: number;
|
|
50
|
+
height: number;
|
|
51
|
+
margin: {
|
|
52
|
+
left: number;
|
|
53
|
+
top: number;
|
|
54
|
+
right: number;
|
|
55
|
+
bottom: number;
|
|
56
|
+
};
|
|
57
|
+
title: string;
|
|
58
|
+
description: string;
|
|
59
|
+
summary: string;
|
|
60
|
+
accessibleTable: boolean;
|
|
61
|
+
animate: false;
|
|
62
|
+
selection: import("../../../semiotic").SelectionConfig | undefined;
|
|
63
|
+
onObservation: import("../../../semiotic-ai-observations").OnObservationCallback | undefined;
|
|
64
|
+
linkedHover: string | false | {
|
|
65
|
+
name?: string;
|
|
66
|
+
fields: string[];
|
|
67
|
+
mode?: "field" | "x-position" | "series";
|
|
68
|
+
xField?: string;
|
|
69
|
+
seriesField?: string;
|
|
70
|
+
} | undefined;
|
|
71
|
+
frameProps: Partial<Omit<import("../../../semiotic-network").StreamNetworkFrameProps<import("../../../stream/networkColorAccessors").Datum>, "nodes" | "edges" | "size" | "chartType" | "customNetworkLayout" | "layoutConfig" | "layoutSelection">> | undefined;
|
|
72
|
+
tooltip: boolean | "multi" | import("../../../semiotic-geo").TooltipConfig | ((data: Record<string, unknown>) => import("react").JSX.Element | null) | import("../../../semiotic-geo").MultiTooltipConfig | import("../../../semiotic-geo").CustomTooltipConfig | ((data: Record<string, unknown>) => React.ReactNode) | ((datum: {
|
|
73
|
+
description?: string;
|
|
74
|
+
}) => import("react").JSX.Element);
|
|
75
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ResolutionAppearance } from "./appearance";
|
|
2
|
+
import type { NetworkCustomLayout } from "../../../stream/networkCustomLayout";
|
|
3
|
+
import type { projectComponentCutaway } from "./ports";
|
|
4
|
+
export type CutawayProjection = ReturnType<typeof projectComponentCutaway>;
|
|
5
|
+
export declare const componentCutawayLayout: NetworkCustomLayout<{
|
|
6
|
+
cutaway: CutawayProjection;
|
|
7
|
+
appearance?: ResolutionAppearance;
|
|
8
|
+
selectedPair?: {
|
|
9
|
+
ingressId: string;
|
|
10
|
+
egressId: string;
|
|
11
|
+
};
|
|
12
|
+
}>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PortPathResult, PreparedNetworkResolution } from "./types";
|
|
2
|
+
/** A bounded drawing of original records; its limits never change support queries. */
|
|
3
|
+
export declare function cutawayContext(resolution: PreparedNetworkResolution, groupId: string, results: PortPathResult[]): {
|
|
4
|
+
label: string;
|
|
5
|
+
nodeCount: number;
|
|
6
|
+
internalCycleRank: number;
|
|
7
|
+
nodes: {
|
|
8
|
+
id: string;
|
|
9
|
+
sourceSet: import("./types").SetRef;
|
|
10
|
+
inside: boolean;
|
|
11
|
+
entry: boolean;
|
|
12
|
+
exit: boolean;
|
|
13
|
+
}[];
|
|
14
|
+
edges: {
|
|
15
|
+
id: string;
|
|
16
|
+
sourceSet: import("./types").SetRef;
|
|
17
|
+
source: string;
|
|
18
|
+
target: string;
|
|
19
|
+
internal: boolean;
|
|
20
|
+
}[];
|
|
21
|
+
totalNodes: number;
|
|
22
|
+
totalEdges: number;
|
|
23
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CutawayProjection } from "./componentCutawayLayout";
|
|
2
|
+
import { sceneBuilder } from "./scene";
|
|
3
|
+
/** Original nodes and directed edges, including the outside neighbors of real ports. */
|
|
4
|
+
export declare function drawCutawayGraph(scene: ReturnType<typeof sceneBuilder>, cutaway: CutawayProjection, selected: CutawayProjection["value"]["cells"][number] | undefined, width: number, height: number): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CycleLedger } from "./types";
|
|
2
|
+
/** Forget direction but keep every edge ID, parallel record, self-loop and isolate. */
|
|
3
|
+
export declare function cycleRank(nodeIds: readonly string[], edges: readonly {
|
|
4
|
+
source: string;
|
|
5
|
+
target: string;
|
|
6
|
+
}[]): number;
|
|
7
|
+
export declare function cycleLedger(sourceRank: number, internalRank: number, boundaryRank: number): CycleLedger;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { PreparedNetworkResolution, SemanticTarget } from "./types";
|
|
2
|
+
/** A portable packet of the selected claim and its exact source records, not scene coordinates. */
|
|
3
|
+
export declare function exportResolutionEvidence(resolution: PreparedNetworkResolution, target: SemanticTarget, authorize?: (target: SemanticTarget) => boolean): {
|
|
4
|
+
evidence: import("./types").PortPathResult;
|
|
5
|
+
schemaVersion: "0.1";
|
|
6
|
+
revision: import("./types").RevisionRef;
|
|
7
|
+
analysisRevision: string;
|
|
8
|
+
scopeId: string;
|
|
9
|
+
target: SemanticTarget;
|
|
10
|
+
limitations: string[];
|
|
11
|
+
} | {
|
|
12
|
+
evidence: import("./types").QueryEnvelope<{
|
|
13
|
+
group: import("./types").ResolutionGroup;
|
|
14
|
+
events: import("./types").ResolutionEvent[];
|
|
15
|
+
ports: import("./types").BoundaryPort[];
|
|
16
|
+
}>;
|
|
17
|
+
nodes: string[];
|
|
18
|
+
edges: {
|
|
19
|
+
id: string;
|
|
20
|
+
source: string;
|
|
21
|
+
target: string;
|
|
22
|
+
}[];
|
|
23
|
+
cycles: import("./types").QueryEnvelope<import("./types").CycleLedger>;
|
|
24
|
+
schemaVersion: "0.1";
|
|
25
|
+
revision: import("./types").RevisionRef;
|
|
26
|
+
analysisRevision: string;
|
|
27
|
+
scopeId: string;
|
|
28
|
+
target: SemanticTarget;
|
|
29
|
+
limitations: string[];
|
|
30
|
+
} | {
|
|
31
|
+
evidence: import("./types").QueryEnvelope<import("./types").EdgeHistory>;
|
|
32
|
+
edge: {
|
|
33
|
+
id: string;
|
|
34
|
+
source: string;
|
|
35
|
+
target: string;
|
|
36
|
+
};
|
|
37
|
+
schemaVersion: "0.1";
|
|
38
|
+
revision: import("./types").RevisionRef;
|
|
39
|
+
analysisRevision: string;
|
|
40
|
+
scopeId: string;
|
|
41
|
+
target: SemanticTarget;
|
|
42
|
+
limitations: string[];
|
|
43
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { PreparedNetworkResolution } from "./types";
|
|
2
|
+
/** Owner quantities stay attached to their owner, rather than becoming node scores. */
|
|
3
|
+
export declare function projectNodeResolutionStrip(resolution: PreparedNetworkResolution, nodeId: string): import("./types").QueryEnvelope<{
|
|
4
|
+
nodeId: string;
|
|
5
|
+
pins: import("./types").Pin[];
|
|
6
|
+
pages: {
|
|
7
|
+
pageId: string;
|
|
8
|
+
ordinal: number;
|
|
9
|
+
groupId: string;
|
|
10
|
+
label: string;
|
|
11
|
+
ownerMemberCount: number;
|
|
12
|
+
ownerBoundaryEdges: number;
|
|
13
|
+
}[];
|
|
14
|
+
}>;
|
|
15
|
+
export declare function projectEdgeWitnessGlyph(resolution: PreparedNetworkResolution, edgeId: string): import("./types").QueryEnvelope<{
|
|
16
|
+
direct: {
|
|
17
|
+
id: string;
|
|
18
|
+
source: string;
|
|
19
|
+
target: string;
|
|
20
|
+
};
|
|
21
|
+
history: import("./types").EdgeHistory;
|
|
22
|
+
alternative: import("./types").QueryEnvelope<import("./types").EdgeAlternative>;
|
|
23
|
+
}>;
|
|
24
|
+
/** Policy branches are compared through the same original IDs, never treated as a transition. */
|
|
25
|
+
export declare function compareResolutionPolicies(left: PreparedNetworkResolution, right: PreparedNetworkResolution, originalNodeIds?: string[]): {
|
|
26
|
+
revision: import("./types").RevisionRef;
|
|
27
|
+
leftAnalysisRevision: string;
|
|
28
|
+
rightAnalysisRevision: string;
|
|
29
|
+
sourceNodeCount: number;
|
|
30
|
+
sourceEdgeCount: number;
|
|
31
|
+
sourceCycleRank: number;
|
|
32
|
+
rows: {
|
|
33
|
+
nodeId: string;
|
|
34
|
+
leftOwner: string;
|
|
35
|
+
rightOwner: string;
|
|
36
|
+
leftMembers: string[];
|
|
37
|
+
rightMembers: string[];
|
|
38
|
+
membershipChanged: boolean;
|
|
39
|
+
}[];
|
|
40
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Code-unit order, independent of the host locale. */
|
|
2
|
+
export declare function compareIds(left: string, right: string): number;
|
|
3
|
+
export declare function contentId(kind: string, content: unknown): string;
|
|
4
|
+
export declare function sortedIds(ids: Iterable<string>): string[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PreparedNetworkResolution } from "./types";
|
|
2
|
+
export type ResolutionSource = PreparedNetworkResolution["source"];
|
|
3
|
+
export type SourceEdge = ResolutionSource["edges"][number];
|
|
4
|
+
export declare function indexGraph(source: ResolutionSource): {
|
|
5
|
+
nodes: {
|
|
6
|
+
id: string;
|
|
7
|
+
sectionId?: string;
|
|
8
|
+
}[];
|
|
9
|
+
edges: {
|
|
10
|
+
id: string;
|
|
11
|
+
source: string;
|
|
12
|
+
target: string;
|
|
13
|
+
}[];
|
|
14
|
+
outgoing: Map<string, {
|
|
15
|
+
id: string;
|
|
16
|
+
source: string;
|
|
17
|
+
target: string;
|
|
18
|
+
}[]>;
|
|
19
|
+
incoming: Map<string, {
|
|
20
|
+
id: string;
|
|
21
|
+
source: string;
|
|
22
|
+
target: string;
|
|
23
|
+
}[]>;
|
|
24
|
+
neighbors: Map<string, Set<string>>;
|
|
25
|
+
successors: Map<string, Set<string>>;
|
|
26
|
+
predecessors: Map<string, Set<string>>;
|
|
27
|
+
components: string[][];
|
|
28
|
+
cyclicNodes: Set<string>;
|
|
29
|
+
};
|
|
30
|
+
export type GraphIndex = ReturnType<typeof indexGraph>;
|
|
31
|
+
/** Connected pieces of an induced weak projection, retaining isolated vertices. */
|
|
32
|
+
export declare function connectedParts(ids: readonly string[], graph: GraphIndex): string[][];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type GraphIndex } from "./indexGraph";
|
|
2
|
+
import { SourceSetStore } from "./sets";
|
|
3
|
+
import type { BoundaryBundle, BoundaryPort, Coverage, EdgeSemantics, ResolutionGroup, ResolutionPage } from "./types";
|
|
4
|
+
export interface GroupSeed {
|
|
5
|
+
id: string;
|
|
6
|
+
members: string[];
|
|
7
|
+
label: string;
|
|
8
|
+
kind: ResolutionGroup["kind"];
|
|
9
|
+
childGroupIds: string[];
|
|
10
|
+
explanationEventIds: string[];
|
|
11
|
+
}
|
|
12
|
+
/** Owns each edge once. Stable groups and sets are reused across pages. */
|
|
13
|
+
export declare class OwnershipBuilder {
|
|
14
|
+
readonly graph: GraphIndex;
|
|
15
|
+
readonly contextId: string;
|
|
16
|
+
readonly sets: SourceSetStore;
|
|
17
|
+
readonly groups: Map<string, ResolutionGroup>;
|
|
18
|
+
readonly bundles: Map<string, BoundaryBundle>;
|
|
19
|
+
readonly ports: Map<string, BoundaryPort>;
|
|
20
|
+
private semantics;
|
|
21
|
+
readonly sourceRank: number;
|
|
22
|
+
constructor(graph: GraphIndex, contextId: string, semantics: EdgeSemantics[]);
|
|
23
|
+
relationKey(edgeId: string): string;
|
|
24
|
+
page(id: string, ordinal: number, label: string, seeds: GroupSeed[], coverage: Coverage): ResolutionPage;
|
|
25
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { GroupSeed } from "./ownership";
|
|
2
|
+
import type { OwnershipBuilder } from "./ownership";
|
|
3
|
+
import { type Candidate } from "./rules";
|
|
4
|
+
import type { ResolutionBindings, ResolutionEvent, ResolutionSpec, RuleSpec, SourceFeature } from "./types";
|
|
5
|
+
export declare function planCandidates(candidates: Candidate[], current: GroupSeed[], builder: OwnershipBuilder, rule: RuleSpec, ruleIndex: number, spec: ResolutionSpec, bindings: ResolutionBindings, fromPageId: string, toPageId: string, remaining: number): {
|
|
6
|
+
groups: GroupSeed[];
|
|
7
|
+
features: SourceFeature[];
|
|
8
|
+
events: ResolutionEvent[];
|
|
9
|
+
examined: number;
|
|
10
|
+
total: number;
|
|
11
|
+
truncated: boolean;
|
|
12
|
+
};
|