semiotic 3.8.6 → 3.8.7
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 +33 -7
- package/README.md +82 -55
- package/ai/behaviorContracts.cjs +86 -1
- package/ai/componentMetadata.cjs +4 -9
- package/ai/dist/mcp-server.js +97 -10
- package/ai/examples.md +154 -7
- package/ai/schema.json +1611 -145
- package/ai/surface-manifest.json +12 -10
- package/ai/system-prompt.md +9 -3
- package/dist/{chunk-chartContainerDataAudit-FEOD5GTQ.module.min.js → chunk-chartContainerDataAudit-JDSVSKGM.module.min.js} +1 -1
- package/dist/chunk-chunk-2YAZHXL4.module.min.js +2 -0
- package/dist/{chunk-chunk-G7WFWHAD.module.min.js → chunk-chunk-4ITOQRXM.module.min.js} +1 -1
- package/dist/chunk-chunk-5SD6BHVW.module.min.js +2 -0
- package/dist/chunk-chunk-6V5VQVCT.module.min.js +2 -0
- package/dist/chunk-chunk-7TTBHSAG.module.min.js +2 -0
- package/dist/chunk-chunk-7ZDJSYKI.module.min.js +2 -0
- package/dist/chunk-chunk-BGHPD3RA.module.min.js +1 -0
- package/dist/chunk-chunk-BMRZ2SPU.module.min.js +2 -0
- package/dist/chunk-chunk-BNGBEY7N.module.min.js +2 -0
- package/dist/chunk-chunk-C7APLVQD.module.min.js +2 -0
- package/dist/chunk-chunk-DGWFBOGB.module.min.js +1 -0
- package/dist/{chunk-chunk-Q2BS46W2.module.min.js → chunk-chunk-DIVE2DRA.module.min.js} +1 -1
- package/dist/chunk-chunk-FBUNUIPV.module.min.js +2 -0
- package/dist/chunk-chunk-FQPKOAIH.module.min.js +2 -0
- package/dist/chunk-chunk-FRO4TRXK.module.min.js +2 -0
- package/dist/chunk-chunk-G7QVPZUD.module.min.js +2 -0
- package/dist/chunk-chunk-GBPYV4FP.module.min.js +2 -0
- package/dist/chunk-chunk-GU2EJIDJ.module.min.js +2 -0
- package/dist/chunk-chunk-J5QD4RAM.module.min.js +2 -0
- package/dist/{chunk-chunk-RA7JCG7D.module.min.js → chunk-chunk-JWXLNZSM.module.min.js} +1 -1
- package/dist/chunk-chunk-KXAFCCDB.module.min.js +2 -0
- package/dist/chunk-chunk-LG7YKJAK.module.min.js +2 -0
- package/dist/{chunk-chunk-XP3OHHFX.module.min.js → chunk-chunk-LVHDZAT3.module.min.js} +1 -1
- package/dist/chunk-chunk-LWITSR2O.module.min.js +2 -0
- package/dist/{chunk-chunk-SMVD3EQJ.module.min.js → chunk-chunk-MX35T6RX.module.min.js} +1 -1
- package/dist/chunk-chunk-NH4MEAKP.module.min.js +2 -0
- package/dist/chunk-chunk-NJETWX42.module.min.js +2 -0
- package/dist/chunk-chunk-NW25WGLS.module.min.js +2 -0
- package/dist/{chunk-chunk-GFTVACTO.module.min.js → chunk-chunk-OI7R7EJB.module.min.js} +1 -1
- package/dist/{chunk-chunk-OM6NWS4H.module.min.js → chunk-chunk-ONMLEXHR.module.min.js} +1 -1
- package/dist/chunk-chunk-OY66GCE6.module.min.js +1 -0
- package/dist/chunk-chunk-PZFT457G.module.min.js +1 -0
- package/dist/chunk-chunk-Q3WW6JGR.module.min.js +1 -0
- package/dist/chunk-chunk-Q6XKQTOQ.module.min.js +1 -0
- package/dist/chunk-chunk-RJRM2E6P.module.min.js +1 -0
- package/dist/chunk-chunk-RPL7WYXI.module.min.js +1 -0
- package/dist/chunk-chunk-SV4XAZ3Q.module.min.js +1 -0
- package/dist/chunk-chunk-TSCFL235.module.min.js +1 -0
- package/dist/chunk-chunk-UOQRPGPK.module.min.js +2 -0
- package/dist/chunk-chunk-V3OAKG32.module.min.js +1 -0
- package/dist/chunk-chunk-WLOIUMWG.module.min.js +2 -0
- package/dist/chunk-chunk-XEGXX4F7.module.min.js +1 -0
- package/dist/chunk-chunk-XFRBLXYM.module.min.js +1 -0
- package/dist/chunk-chunk-Z2AJERX5.module.min.js +2 -0
- package/dist/chunk-chunk-ZXYDYAB7.module.min.js +2 -0
- package/dist/components/ai/SemioticVACPBridge.d.ts +22 -0
- package/dist/components/ai/chartCapabilities.d.ts +4 -3
- package/dist/components/ai/conversationArc.d.ts +2 -176
- package/dist/components/ai/conversationArcTypes.d.ts +202 -0
- package/dist/components/ai/readerGrounding.d.ts +12 -0
- package/dist/components/ai/vacpAdapter.d.ts +13 -0
- package/dist/components/ai/vacpAdapterActions.d.ts +2 -0
- package/dist/components/ai/vacpAdapterModel.d.ts +7 -0
- package/dist/components/ai/vacpAdapterRuntime.d.ts +26 -0
- package/dist/components/ai/vacpAdapterState.d.ts +3 -0
- package/dist/components/ai/vacpAdapterTypes.d.ts +169 -0
- package/dist/components/ai/vacpTypes.d.ts +160 -0
- package/dist/components/charts/index.d.ts +4 -4
- package/dist/components/charts/physics/ChainReactionChart.capability.d.ts +9 -0
- package/dist/components/charts/physics/ChainReactionChart.d.ts +29 -0
- package/dist/components/charts/physics/CollisionSwarmChart.d.ts +1 -1
- package/dist/components/charts/physics/EventDropChart.d.ts +7 -2
- package/dist/components/charts/physics/GaltonBoardChart.d.ts +1 -1
- package/dist/components/charts/physics/{PhysicsPileChart.capability.d.ts → PacketFlowChart.capability.d.ts} +1 -1
- package/dist/components/charts/physics/{PhysicalFlowChart.d.ts → PacketFlowChart.d.ts} +22 -6
- package/dist/components/charts/physics/PhysicsCustomChart.d.ts +1 -1
- package/dist/components/charts/physics/ProcessFlowChart.d.ts +7 -4
- package/dist/components/charts/physics/{PhysicalFlowChart.capability.d.ts → UnitPileChart.capability.d.ts} +1 -1
- package/dist/components/charts/physics/{PhysicsPileChart.d.ts → UnitPileChart.d.ts} +19 -6
- package/dist/components/charts/physics/crucibleChartProps.d.ts +1 -1
- package/dist/components/charts/physics/crucibleChartUtils.d.ts +9 -0
- package/dist/components/charts/physics/gauntletChartProps.d.ts +6 -1
- package/dist/components/charts/physics/gauntletTerminal.d.ts +61 -0
- package/dist/components/charts/physics/packetFlowSemantics.d.ts +6 -0
- package/dist/components/charts/physics/physicsHocUtils.d.ts +45 -2
- package/dist/components/charts/shared/auditAccessibilityStyles.d.ts +9 -0
- package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
- package/dist/components/charts/shared/useChartLegend.d.ts +8 -1
- package/dist/components/charts/shared/useChartSetup.d.ts +7 -0
- package/dist/components/data/portability/capabilityBinding.d.ts +41 -0
- package/dist/components/data/portability/index.d.ts +2 -0
- package/dist/components/legendLayout.d.ts +56 -0
- package/dist/components/recipes/geographicDotGrid.d.ts +82 -0
- package/dist/components/recipes/geographicGrid.d.ts +100 -0
- package/dist/components/recipes/physics.d.ts +2 -0
- package/dist/components/recipes/physicsStageGeography.d.ts +137 -0
- package/dist/components/semiotic-ai.d.ts +4 -3
- package/dist/components/semiotic-experimental-vacp.d.ts +11 -0
- package/dist/components/semiotic-experimental.d.ts +6 -3
- package/dist/components/semiotic-geo.d.ts +4 -0
- package/dist/components/semiotic-physics.d.ts +9 -6
- package/dist/components/semiotic-recipes-core.d.ts +6 -1
- package/dist/components/server/renderEvidence.d.ts +1 -1
- package/dist/components/server/renderToStaticSVG.d.ts +2 -1
- package/dist/components/server/serverChartConfigHeatmap.d.ts +6 -0
- package/dist/components/server/serverChartConfigNetworkStyles.d.ts +12 -0
- package/dist/components/server/serverChartConfigShared.d.ts +16 -0
- package/dist/components/server/serverChartConfigs.d.ts +2 -2
- package/dist/components/server/serverChartConfigsPhysics.d.ts +2 -2
- package/dist/components/server/serverChartConfigsXY.d.ts +0 -1
- package/dist/components/server/staticLegend.d.ts +6 -0
- package/dist/components/server/staticSVGChrome.d.ts +10 -2
- package/dist/components/server/staticValue.d.ts +8 -0
- package/dist/components/stream/geoPipelineConfig.d.ts +10 -0
- package/dist/components/stream/legendRenderer.d.ts +8 -0
- package/dist/components/stream/physics/PhysicsEvidence.d.ts +37 -0
- package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +9 -0
- package/dist/components/stream/physics/PhysicsSettledScene.d.ts +5 -0
- package/dist/components/stream/physics/physicsFramePipelineConfig.d.ts +19 -0
- package/dist/components/stream/physics/physicsPipelineSettle.d.ts +52 -0
- package/dist/components/stream/physics/physicsRegionRuntime.d.ts +23 -0
- package/dist/components/stream/types.d.ts +2 -0
- package/dist/components/types/legendTypes.d.ts +17 -1
- package/dist/controls.min.js +1 -1
- package/dist/controls.module.min.js +1 -1
- 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/physics.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/physicsWorker.js +1 -1
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.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 +4 -3
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-experimental-vacp.d.ts +11 -0
- package/dist/semiotic-experimental-vacp.min.js +1 -0
- package/dist/semiotic-experimental-vacp.module.min.js +1 -0
- package/dist/semiotic-experimental.d.ts +6 -3
- package/dist/semiotic-experimental.min.js +2 -1
- package/dist/semiotic-experimental.module.min.js +2 -1
- package/dist/semiotic-geo.d.ts +4 -0
- package/dist/semiotic-physics.d.ts +9 -6
- package/dist/semiotic-realtime-core.min.js +1 -1
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-recipes-core.d.ts +6 -1
- package/dist/semiotic-recipes-core.min.js +1 -1
- package/dist/semiotic-recipes-core.module.min.js +1 -1
- package/dist/semiotic-recipes.min.js +1 -1
- package/dist/semiotic-recipes.module.min.js +1 -1
- package/dist/semiotic-server-edge.min.js +1 -1
- package/dist/semiotic-server-edge.module.min.js +1 -1
- package/dist/semiotic-server-node.min.js +1 -1
- package/dist/semiotic-server-node.module.min.js +1 -1
- package/dist/semiotic-utils-core.min.js +1 -1
- package/dist/semiotic-utils-core.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.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +18 -2
- package/spec/README.md +94 -2
- package/spec/bindings/README.md +14 -3
- package/spec/v0.1/examples/annotation-provenance-reviewed-revision.json +27 -0
- package/spec/v0.1/examples/annotation-provenance-watcher-threshold.json +21 -0
- package/spec/v0.1/examples/audience-profile-executive-review.json +24 -0
- package/spec/v0.1/examples/audience-profile-incident-operators.json +42 -0
- package/spec/v0.1/examples/chart-capability-bar-comparison.json +48 -0
- package/spec/v0.1/examples/chart-capability-service-flow.json +54 -0
- package/dist/chunk-chunk-2CHN2TA3.module.min.js +0 -1
- package/dist/chunk-chunk-3SHB24AG.module.min.js +0 -1
- package/dist/chunk-chunk-4MMOOYTX.module.min.js +0 -2
- package/dist/chunk-chunk-5RKXZQ2P.module.min.js +0 -1
- package/dist/chunk-chunk-75OTQSXS.module.min.js +0 -1
- package/dist/chunk-chunk-7ALTGHK6.module.min.js +0 -1
- package/dist/chunk-chunk-A5GRQUOF.module.min.js +0 -1
- package/dist/chunk-chunk-AAF5LZAU.module.min.js +0 -2
- package/dist/chunk-chunk-ARZGA4LJ.module.min.js +0 -2
- package/dist/chunk-chunk-C4YA6TDR.module.min.js +0 -1
- package/dist/chunk-chunk-CAFLML4L.module.min.js +0 -2
- package/dist/chunk-chunk-CO5KQMGH.module.min.js +0 -1
- package/dist/chunk-chunk-FHBN7OEB.module.min.js +0 -2
- package/dist/chunk-chunk-GMQ5AYTD.module.min.js +0 -1
- package/dist/chunk-chunk-IP2UE74X.module.min.js +0 -1
- package/dist/chunk-chunk-ITDWLZXV.module.min.js +0 -2
- package/dist/chunk-chunk-JCG72SGW.module.min.js +0 -2
- package/dist/chunk-chunk-LPSPATPC.module.min.js +0 -1
- package/dist/chunk-chunk-PX5YQGDP.module.min.js +0 -2
- package/dist/chunk-chunk-QSQVBIJA.module.min.js +0 -1
- package/dist/chunk-chunk-RCF52Z42.module.min.js +0 -2
- package/dist/chunk-chunk-RNUHEXZA.module.min.js +0 -2
- package/dist/chunk-chunk-ROZWKEUG.module.min.js +0 -1
- package/dist/chunk-chunk-T2FKJD4O.module.min.js +0 -2
- package/dist/chunk-chunk-UDREYOLV.module.min.js +0 -1
- package/dist/chunk-chunk-VOWE3SAP.module.min.js +0 -2
- package/dist/chunk-chunk-VQPNBUSW.module.min.js +0 -2
- package/dist/chunk-chunk-WAWCIHFJ.module.min.js +0 -1
- package/dist/chunk-chunk-WYARAXHR.module.min.js +0 -2
- package/dist/chunk-chunk-XV3KGYTR.module.min.js +0 -2
- package/dist/chunk-chunk-YC2IVEPX.module.min.js +0 -1
- package/dist/chunk-chunk-ZOAQDIJO.module.min.js +0 -1
- package/dist/chunk-chunk-ZXIXAPRE.module.min.js +0 -2
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Physics stage geography — the shared spatial vocabulary every physics chart
|
|
3
|
+
* has been re-inventing.
|
|
4
|
+
*
|
|
5
|
+
* ## The observation
|
|
6
|
+
*
|
|
7
|
+
* Every physics chart in Semiotic is the same three-zone apparatus under a
|
|
8
|
+
* different local name:
|
|
9
|
+
*
|
|
10
|
+
* | chart | charge | apparatus | destinations |
|
|
11
|
+
* |----------------|----------------|----------------------|-----------------------|
|
|
12
|
+
* | Galton | hopper | peg field | bins |
|
|
13
|
+
* | Pile | drop point | tubes | category piles |
|
|
14
|
+
* | CollisionSwarm | x positions | collision relaxation | settled x positions |
|
|
15
|
+
* | EventDrop | arrivals | watermark barrier | windows + late gutter |
|
|
16
|
+
* | ProcessFlow | arrival | capacitated stages | absorb stages |
|
|
17
|
+
* | Gauntlet | start | gates | socket / graveyard |
|
|
18
|
+
* | Crucible | charge | phases | outlets |
|
|
19
|
+
* | ChainReaction | completed task | dependency sockets | armed tasks |
|
|
20
|
+
*
|
|
21
|
+
* They also all conserve something, which is what the settled ledger checks.
|
|
22
|
+
* `GauntletLayout` calls its zones `startX`/`socketX`/`graveyardX`;
|
|
23
|
+
* `CrucibleLayout` calls them `chamber`/`mouth`/`outlets`; Galton and Pile
|
|
24
|
+
* independently wrote the *same* lane formula
|
|
25
|
+
* (`plot.x + (index + 0.5) * plot.width / count`). Naming the geography once
|
|
26
|
+
* means the tenth physics chart costs less than the first.
|
|
27
|
+
*
|
|
28
|
+
* ## Scope
|
|
29
|
+
*
|
|
30
|
+
* This is authoring vocabulary, not a retrofit. Existing charts keep their own
|
|
31
|
+
* layouts (their SSR baselines depend on them); `physicsStageGeography.test.ts`
|
|
32
|
+
* proves this builder reproduces their lane math, so a new chart can adopt it
|
|
33
|
+
* and land in the same visual family. Reach for it when building a new physics
|
|
34
|
+
* chart or a `PhysicsCustomChart` layout.
|
|
35
|
+
*/
|
|
36
|
+
import type { PhysicsColliderSpec } from "../stream/physics/PhysicsKernel";
|
|
37
|
+
export interface PhysicsZone {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
export interface PhysicsDestinationZone extends PhysicsZone {
|
|
44
|
+
id: string;
|
|
45
|
+
label: string;
|
|
46
|
+
/** Reading order along the flow axis. */
|
|
47
|
+
order: number;
|
|
48
|
+
/** Center of the zone — where a settled pile or bin count anchors. */
|
|
49
|
+
centerX: number;
|
|
50
|
+
centerY: number;
|
|
51
|
+
}
|
|
52
|
+
export interface PhysicsStageGeography {
|
|
53
|
+
width: number;
|
|
54
|
+
height: number;
|
|
55
|
+
/** Direction the charge travels toward its destinations. */
|
|
56
|
+
flow: "down" | "right";
|
|
57
|
+
/** Where bodies enter the world. */
|
|
58
|
+
charge: PhysicsZone;
|
|
59
|
+
/** Where the apparatus acts: pegs, gates, phases, stages, barriers. */
|
|
60
|
+
apparatus: PhysicsZone;
|
|
61
|
+
/** Where bodies come to rest, in reading order. */
|
|
62
|
+
destinations: PhysicsDestinationZone[];
|
|
63
|
+
/** Strip reserved for the settled projection. Bodies never enter it. */
|
|
64
|
+
projection: PhysicsZone;
|
|
65
|
+
}
|
|
66
|
+
export interface PhysicsStageGeographyOptions {
|
|
67
|
+
size: [number, number];
|
|
68
|
+
/**
|
|
69
|
+
* Destination bins/lanes/outlets. A number produces `bin-0…bin-n` ids, which
|
|
70
|
+
* is the common case for a histogram-shaped board.
|
|
71
|
+
*/
|
|
72
|
+
destinations: number | ReadonlyArray<{
|
|
73
|
+
id: string;
|
|
74
|
+
label?: string;
|
|
75
|
+
}>;
|
|
76
|
+
/** Charge travels down (boards, piles) or right (process lanes, routes). */
|
|
77
|
+
flow?: "down" | "right";
|
|
78
|
+
/** Outer inset in px. */
|
|
79
|
+
padding?: number | {
|
|
80
|
+
top?: number;
|
|
81
|
+
right?: number;
|
|
82
|
+
bottom?: number;
|
|
83
|
+
left?: number;
|
|
84
|
+
};
|
|
85
|
+
/** Fraction of the flow axis given to the entry zone. */
|
|
86
|
+
chargeExtent?: number;
|
|
87
|
+
/** Fraction of the flow axis given to the settled destinations. */
|
|
88
|
+
destinationExtent?: number;
|
|
89
|
+
/** Fraction of the flow axis reserved for the projection strip. */
|
|
90
|
+
projectionExtent?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Fraction of each destination lane the body-holding channel occupies. `1`
|
|
93
|
+
* means bins touch (a histogram); lower values leave visible gutters (tubes).
|
|
94
|
+
*/
|
|
95
|
+
channelRatio?: number;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Build the charge → apparatus → destinations geography for a physics stage.
|
|
99
|
+
*
|
|
100
|
+
* The cross-axis lane math matches what Galton bins and Pile tubes already use,
|
|
101
|
+
* so a chart built on this lands in the same visual family as the existing ones.
|
|
102
|
+
*/
|
|
103
|
+
export declare function physicsStageGeography(options: PhysicsStageGeographyOptions): PhysicsStageGeography;
|
|
104
|
+
/** Look a destination up by id. */
|
|
105
|
+
export declare function physicsDestination(geography: PhysicsStageGeography, id: string): PhysicsDestinationZone | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Where the nth of `count` bodies should enter the charge zone, spread evenly
|
|
108
|
+
* across it so a burst does not spawn co-located and explode apart.
|
|
109
|
+
*/
|
|
110
|
+
export declare function physicsChargePoint(geography: PhysicsStageGeography, index: number, count: number): {
|
|
111
|
+
x: number;
|
|
112
|
+
y: number;
|
|
113
|
+
};
|
|
114
|
+
export interface PhysicsStageColliderOptions {
|
|
115
|
+
/** Collider thickness in px. */
|
|
116
|
+
thickness?: number;
|
|
117
|
+
/** Prefix for generated collider ids. */
|
|
118
|
+
idPrefix?: string;
|
|
119
|
+
/** Add the outer boundary walls in addition to the destination dividers. */
|
|
120
|
+
walls?: boolean;
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Colliders that make the destinations physically real: a floor plus one
|
|
124
|
+
* divider between each pair of adjacent destinations, so bodies land in the bin
|
|
125
|
+
* the data says they should. This is the geometry every board/pile chart writes
|
|
126
|
+
* by hand.
|
|
127
|
+
*/
|
|
128
|
+
export declare function physicsStageColliders(geography: PhysicsStageGeography, options?: PhysicsStageColliderOptions): PhysicsColliderSpec[];
|
|
129
|
+
/**
|
|
130
|
+
* One sentence naming the apparatus, for accessible descriptions and agent
|
|
131
|
+
* grounding. The reading protocol should be stateable in words, not only drawn.
|
|
132
|
+
*/
|
|
133
|
+
export declare function describePhysicsStageGeography(geography: PhysicsStageGeography, nouns?: {
|
|
134
|
+
charge?: string;
|
|
135
|
+
apparatus?: string;
|
|
136
|
+
destination?: string;
|
|
137
|
+
}): string;
|
|
@@ -46,12 +46,13 @@ export { RealtimeHeatmap } from "./charts/realtime/RealtimeHeatmap";
|
|
|
46
46
|
export { GaltonBoardChart } from "./charts/physics/GaltonBoardChart";
|
|
47
47
|
export { EventDropChart } from "./charts/physics/EventDropChart";
|
|
48
48
|
export { PhysicsCustomChart } from "./charts/physics/PhysicsCustomChart";
|
|
49
|
-
export {
|
|
49
|
+
export { UnitPileChart } from "./charts/physics/UnitPileChart";
|
|
50
50
|
export { CollisionSwarmChart } from "./charts/physics/CollisionSwarmChart";
|
|
51
|
-
export {
|
|
51
|
+
export { PacketFlowChart } from "./charts/physics/PacketFlowChart";
|
|
52
52
|
export { ProcessFlowChart } from "./charts/physics/ProcessFlowChart";
|
|
53
53
|
export { GauntletChart } from "./charts/physics/GauntletChart";
|
|
54
54
|
export { CrucibleChart } from "./charts/physics/CrucibleChart";
|
|
55
|
+
export { ChainReactionChart } from "./charts/physics/ChainReactionChart";
|
|
55
56
|
export { BigNumber } from "./charts/value/BigNumber";
|
|
56
57
|
export { TooltipProvider } from "./store/TooltipStore";
|
|
57
58
|
export { MultiLineTooltip } from "./Tooltip/Tooltip";
|
|
@@ -172,7 +173,7 @@ export type { AnnotationProvenance, AnnotationSource, AnnotationActorKind, Annot
|
|
|
172
173
|
export { useConversationArc, summarizeArc } from "./ai/useConversationArc";
|
|
173
174
|
export type { UseConversationArcOptions, UseConversationArcResult, ConversationArcSummary } from "./ai/useConversationArc";
|
|
174
175
|
export { enableConversationArc, disableConversationArc, getConversationArcStore, subscribeToConversationArcChange, registerConversationArcSink, createLocalStorageConversationArcSink, createIndexedDBConversationArcSink, createWebhookConversationArcSink, loadConversationArc, replayConversationArc, recordAudienceChange, recordAnnotationStatusChange } from "./ai/conversationArc";
|
|
175
|
-
export type { ConversationArcEvent, ConversationArcEventType, ConversationArcEventInput, ConversationArcStore, ConversationArcListener, ConversationArcSink, ConversationArcStorageLike, EnableConversationArcOptions, LoadConversationArcOptions, LocalStorageConversationArcSinkOptions, IndexedDBConversationArcSinkOptions, ConversationArcWebhookFetch, WebhookConversationArcSinkOptions, SuggestionShownEvent, SuggestionChosenEvent, AudienceSetEvent, ChartRenderedEvent, ChartEditedEvent, ChartReplacedEvent, ChartExportedEvent, ChartAbandonedEvent, InterrogationAskedEvent, InterrogationAnsweredEvent, NavNodeFocusedEvent, NavBranchExpandedEvent, AnnotationStatusChangedEvent } from "./ai/conversationArc";
|
|
176
|
+
export type { ConversationArcEvent, ConversationArcEventType, ConversationArcEventInput, ConversationArcStore, ConversationArcListener, ConversationArcSink, ConversationArcStorageLike, EnableConversationArcOptions, LoadConversationArcOptions, LocalStorageConversationArcSinkOptions, IndexedDBConversationArcSinkOptions, ConversationArcWebhookFetch, WebhookConversationArcSinkOptions, SuggestionShownEvent, SuggestionChosenEvent, AudienceSetEvent, ChartRenderedEvent, ChartEditedEvent, ChartReplacedEvent, ChartExportedEvent, ChartAbandonedEvent, InterrogationAskedEvent, InterrogationAnsweredEvent, NavNodeFocusedEvent, NavBranchExpandedEvent, AnnotationStatusChangedEvent, ProposalRefusedEvent, RenderEvidenceEvent } from "./ai/conversationArc";
|
|
176
177
|
export { useChartObserver } from "./store/useObservation";
|
|
177
178
|
export type { UseChartObserverOptions, UseChartObserverResult } from "./store/useObservation";
|
|
178
179
|
export type { ChartObservation, OnObservationCallback, HoverObservation, HoverEndObservation, BrushObservation, BrushEndObservation, SelectionObservation, SelectionEndObservation, ClickObservation, ClickEndObservation, ObservationInputType, FocusObservation, ActivateObservation, AnnotationActivateObservation } from "./store/ObservationStore";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure experimental VACP 0.1.0 entry point.
|
|
3
|
+
*
|
|
4
|
+
* This subpath contains no React component or client directive, so server,
|
|
5
|
+
* headless, and non-React hosts can construct the semantic bridge without
|
|
6
|
+
* pulling in the browser-only experimental facade.
|
|
7
|
+
*/
|
|
8
|
+
export { SEMIOTIC_VACP_ACTIVATE_NAVIGATION_ACTION as unstable_SEMIOTIC_VACP_ACTIVATE_NAVIGATION_ACTION, SEMIOTIC_VACP_CLEAR_SELECTION_ACTION as unstable_SEMIOTIC_VACP_CLEAR_SELECTION_ACTION, SEMIOTIC_VACP_INSPECT_DATA_ACTION as unstable_SEMIOTIC_VACP_INSPECT_DATA_ACTION, SEMIOTIC_VACP_SET_INTERVAL_SELECTION_ACTION as unstable_SEMIOTIC_VACP_SET_INTERVAL_SELECTION_ACTION, SEMIOTIC_VACP_SET_POINT_SELECTION_ACTION as unstable_SEMIOTIC_VACP_SET_POINT_SELECTION_ACTION, createSemioticVACPBridge as unstable_createSemioticVACPBridge, installSemioticVACPBridge as unstable_installSemioticVACPBridge } from "./ai/vacpAdapter";
|
|
9
|
+
export { VACP_DATA_SCHEMA_ACTION as unstable_VACP_DATA_SCHEMA_ACTION, VACP_SCHEMA_VERSION as unstable_VACP_SCHEMA_VERSION } from "./ai/vacpTypes";
|
|
10
|
+
export type { CreateSemioticVACPBridgeOptions as UnstableCreateSemioticVACPBridgeOptions, InstallSemioticVACPBridgeOptions as UnstableInstallSemioticVACPBridgeOptions, SemioticVACPBridge as UnstableSemioticVACPBridge, SemioticVACPBridgeInstallation as UnstableSemioticVACPBridgeInstallation, SemioticVACPChart as UnstableSemioticVACPChart, SemioticVACPCustomAction as UnstableSemioticVACPCustomAction, SemioticVACPDataAccess as UnstableSemioticVACPDataAccess, SemioticVACPNavigationBinding as UnstableSemioticVACPNavigationBinding, SemioticVACPRefs as UnstableSemioticVACPRefs, SemioticVACPSelectionActions as UnstableSemioticVACPSelectionActions, SemioticVACPSelectionBinding as UnstableSemioticVACPSelectionBinding, SemioticVACPSelectionMode as UnstableSemioticVACPSelectionMode } from "./ai/vacpAdapter";
|
|
11
|
+
export type { VacpActionCall as UnstableVacpActionCall, VacpActionDescriptor as UnstableVacpActionDescriptor, VacpActionResult as UnstableVacpActionResult, VacpCapabilitiesRequest as UnstableVacpCapabilitiesRequest, VacpCapabilitiesSnapshot as UnstableVacpCapabilitiesSnapshot, VacpDataSchemaColumn as UnstableVacpDataSchemaColumn, VacpDataSchemaDetail as UnstableVacpDataSchemaDetail, VacpDataSchemaParams as UnstableVacpDataSchemaParams, VacpDataSchemaResult as UnstableVacpDataSchemaResult, VacpEdge as UnstableVacpEdge, VacpEdgeKind as UnstableVacpEdgeKind, VacpGraph as UnstableVacpGraph, VacpLayer as UnstableVacpLayer, VacpNode as UnstableVacpNode, VacpNodeKind as UnstableVacpNodeKind, VacpRef as UnstableVacpRef, VacpSchemaVersion as UnstableVacpSchemaVersion, VacpStateDeltaPayload as UnstableVacpStateDeltaPayload, VacpStateRequest as UnstableVacpStateRequest, VacpStateSnapshot as UnstableVacpStateSnapshot, VacpStateUpdate as UnstableVacpStateUpdate, VacpWindowBridge as UnstableVacpWindowBridge } from "./ai/vacpTypes";
|
|
@@ -12,7 +12,10 @@ export { gofishIRExamples as unstable_gofishIRExamples, flowerIR as unstable_gof
|
|
|
12
12
|
export type { GofishIRExample as UnstableGofishIRExample } from "./recipes/gofishIRExamples";
|
|
13
13
|
export { DEFAULT_DATA_PITFALLS_ANNOTATION_PALETTE as unstable_DEFAULT_DATA_PITFALLS_ANNOTATION_PALETTE, buildDataPitfallsAnnotationBridge as unstable_buildDataPitfallsAnnotationBridge, buildDataPitfallsBridge as unstable_buildDataPitfallsBridge, buildDataPitfallsNotificationBridge as unstable_buildDataPitfallsNotificationBridge, dataPitfallsFindingToAnnotation as unstable_dataPitfallsFindingToAnnotation, dataPitfallsFindingToNotification as unstable_dataPitfallsFindingToNotification, toDataPitfallsAnnotations as unstable_toDataPitfallsAnnotations, toDataPitfallsChain as unstable_toDataPitfallsChain, toDataPitfallsNotifications as unstable_toDataPitfallsNotifications } from "./ai/dataPitfallsBridge";
|
|
14
14
|
export type { DataPitfallsAnnotationBridge as UnstableDataPitfallsAnnotationBridge, DataPitfallsAnnotationBridgeOptions as UnstableDataPitfallsAnnotationBridgeOptions, DataPitfallsAnnotationType as UnstableDataPitfallsAnnotationType, DataPitfallsBridgeOptions as UnstableDataPitfallsBridgeOptions, DataPitfallsBridgeResult as UnstableDataPitfallsBridgeResult, DataPitfallsChainInput as UnstableDataPitfallsChainInput, DataPitfallsChainStage as UnstableDataPitfallsChainStage, DataPitfallsChartNotification as UnstableDataPitfallsChartNotification, DataPitfallsDocumentInput as UnstableDataPitfallsDocumentInput, DataPitfallsFinding as UnstableDataPitfallsFinding, DataPitfallsImageInput as UnstableDataPitfallsImageInput, DataPitfallsImageMediaType as UnstableDataPitfallsImageMediaType, DataPitfallsImageSource as UnstableDataPitfallsImageSource, DataPitfallsInputKind as UnstableDataPitfallsInputKind, DataPitfallsNotificationBridge as UnstableDataPitfallsNotificationBridge, DataPitfallsNotificationBridgeOptions as UnstableDataPitfallsNotificationBridgeOptions, DataPitfallsNotificationLevel as UnstableDataPitfallsNotificationLevel, DataPitfallsNotificationMessage as UnstableDataPitfallsNotificationMessage, DataPitfallsRenderedChart as UnstableDataPitfallsRenderedChart, DataPitfallsReport as UnstableDataPitfallsReport, DataPitfallsSemioticAnnotation as UnstableDataPitfallsSemioticAnnotation, DataPitfallsSeverity as UnstableDataPitfallsSeverity, DataPitfallsSlideContent as UnstableDataPitfallsSlideContent, DataPitfallsSlidesInput as UnstableDataPitfallsSlidesInput, DataPitfallsSingleArtifactInput as UnstableDataPitfallsSingleArtifactInput, DataPitfallsTextInput as UnstableDataPitfallsTextInput } from "./ai/dataPitfallsBridge";
|
|
15
|
-
export
|
|
15
|
+
export * from "./semiotic-experimental-vacp";
|
|
16
|
+
export { SemioticVACPBridge as unstable_SemioticVACPBridge } from "./ai/SemioticVACPBridge";
|
|
17
|
+
export type { SemioticVACPBridgeProps as UnstableSemioticVACPBridgeProps } from "./ai/SemioticVACPBridge";
|
|
18
|
+
export { IDID_SPEC_VERSION, BUILTIN_INTENT_IDS as unstable_BUILTIN_INTENT_IDS, validatePortableCapability as unstable_validatePortableCapability, validatePortableAudienceProfile as unstable_validatePortableAudienceProfile, validatePortableAnnotation as unstable_validatePortableAnnotation, bindPortableCapability as unstable_bindPortableCapability, toVegaLite as unstable_toVegaLite, toVegaLiteResult as unstable_toVegaLiteResult, fromVegaLiteResult as unstable_fromVegaLiteResult, unwrapIDIDEnrichedVegaLiteSpec as unstable_unwrapIDIDEnrichedVegaLiteSpec, attachIDID as unstable_attachIDID, readIDID as unstable_readIDID, attachIDIDAnnotations as unstable_attachIDIDAnnotations, readIDIDAnnotations as unstable_readIDIDAnnotations } from "./data/portability";
|
|
16
19
|
export type { FromVegaLiteOptions as UnstableFromVegaLiteOptions, PortabilityDiagnostic as UnstablePortabilityDiagnostic, PortabilityDiagnosticSeverity as UnstablePortabilityDiagnosticSeverity, PortabilityExportResult as UnstablePortabilityExportResult, PortabilityImportResult as UnstablePortabilityImportResult, PortabilityLoss as UnstablePortabilityLoss, PortabilityProvenance as UnstablePortabilityProvenance, PortabilityResult as UnstablePortabilityResult, PortabilityStatus as UnstablePortabilityStatus, ToVegaLiteOptions as UnstableToVegaLiteOptions, VegaLiteExportResult as UnstableVegaLiteExportResult, VegaLiteImportResult as UnstableVegaLiteImportResult, } from "./data/portability";
|
|
17
20
|
export { fromObservablePlot as unstable_fromObservablePlot } from "./data/fromObservablePlot";
|
|
18
21
|
export { fromMermaid as unstable_fromMermaid } from "./data/fromMermaid";
|
|
@@ -42,8 +45,8 @@ export type { PhysicsBodySelection as UnstablePhysicsBodySelection, PhysicsBodyS
|
|
|
42
45
|
export type { PhysicsCustomChartProps as UnstablePhysicsCustomChartProps, PhysicsCustomLayout as UnstablePhysicsCustomLayout, PhysicsCustomLayoutContext as UnstablePhysicsCustomLayoutContext, PhysicsCustomLayoutResult as UnstablePhysicsCustomLayoutResult, PhysicsCustomSpawnDatumResult as UnstablePhysicsCustomSpawnDatumResult } from "./charts/physics/PhysicsCustomChart";
|
|
43
46
|
export type { PhysicsExecution as UnstablePhysicsExecution } from "./stream/physics/PhysicsWorkerProtocol";
|
|
44
47
|
export type { PhysicsAnnotationAxis as UnstablePhysicsAnnotationAxis, PhysicsAnnotationColliderOptions as UnstablePhysicsAnnotationColliderOptions, PhysicsAnnotationRole as UnstablePhysicsAnnotationRole, PhysicsAnnotationSummary as UnstablePhysicsAnnotationSummary, PhysicsBodyAnnotation as UnstablePhysicsBodyAnnotation, PhysicsResolvedBodyAnnotation as UnstablePhysicsResolvedBodyAnnotation, PhysicsStaticAnnotation as UnstablePhysicsStaticAnnotation } from "./stream/physics/PhysicsAnnotations";
|
|
45
|
-
export type { PhysicsEvidenceBinCount as UnstablePhysicsEvidenceBinCount, PhysicsSettledEvidence as UnstablePhysicsSettledEvidence, PhysicsSettledEvidenceOptions as UnstablePhysicsSettledEvidenceOptions } from "./stream/physics/PhysicsEvidence";
|
|
48
|
+
export type { PhysicsEvidenceBinCount as UnstablePhysicsEvidenceBinCount, PhysicsSettledEvidence as UnstablePhysicsSettledEvidence, PhysicsSettledEvidenceOptions as UnstablePhysicsSettledEvidenceOptions, PhysicsSettledLedger as UnstablePhysicsSettledLedger } from "./stream/physics/PhysicsEvidence";
|
|
46
49
|
export type { PhysicsSettledScene as UnstablePhysicsSettledScene, PhysicsSettledSceneOptions as UnstablePhysicsSettledSceneOptions } from "./stream/physics/PhysicsSettledScene";
|
|
47
50
|
export type { PhysicsSettledSVGOptions as UnstablePhysicsSettledSVGOptions, PhysicsSettledSVGRender as UnstablePhysicsSettledSVGRender } from "./stream/physics/PhysicsSettledSVG";
|
|
48
51
|
export type { PhysicsNavigationTreeOptions as UnstablePhysicsNavigationTreeOptions, PhysicsObservationAnnouncementOptions as UnstablePhysicsObservationAnnouncementOptions, PhysicsProjectionBodySummary as UnstablePhysicsProjectionBodySummary, PhysicsProjectionContainerSpec as UnstablePhysicsProjectionContainerSpec, PhysicsSettledProjectionOptions as UnstablePhysicsSettledProjectionOptions, PhysicsSettledProjectionRow as UnstablePhysicsSettledProjectionRow } from "./stream/physics/PhysicsAccessibility";
|
|
49
|
-
export type { BuiltInIntentId as UnstableBuiltInIntentId, PortableIntentId as UnstablePortableIntentId, PortableChartRubric as UnstablePortableChartRubric, PortableChartVariant as UnstablePortableChartVariant, PortableMobileInteractionCapability as UnstablePortableMobileInteractionCapability, PortableMobileLabelCapability as UnstablePortableMobileLabelCapability, PortableMobileCustomCapability as UnstablePortableMobileCustomCapability, PortableMobileCapability as UnstablePortableMobileCapability, PortableChartCapability as UnstablePortableChartCapability, PortableReceptionModality as UnstablePortableReceptionModality, PortableAudienceTarget as UnstablePortableAudienceTarget, PortableAudienceProfile as UnstablePortableAudienceProfile, PortableAnnotationProvenance as UnstablePortableAnnotationProvenance, PortableAnnotationLifecycle as UnstablePortableAnnotationLifecycle, PortableAnnotated as UnstablePortableAnnotated, ValidationResult as UnstablePortabilityValidationResult, IDIDVegaLiteMeta as UnstableIDIDVegaLiteMeta } from "./data/portability";
|
|
52
|
+
export type { BuiltInIntentId as UnstableBuiltInIntentId, PortableIntentId as UnstablePortableIntentId, PortableChartRubric as UnstablePortableChartRubric, PortableChartVariant as UnstablePortableChartVariant, BoundPortableChartCapability as UnstableBoundPortableChartCapability, PortableCapabilityBindingResult as UnstablePortableCapabilityBindingResult, PortableMobileInteractionCapability as UnstablePortableMobileInteractionCapability, PortableMobileLabelCapability as UnstablePortableMobileLabelCapability, PortableMobileCustomCapability as UnstablePortableMobileCustomCapability, PortableMobileCapability as UnstablePortableMobileCapability, PortableChartCapability as UnstablePortableChartCapability, PortableReceptionModality as UnstablePortableReceptionModality, PortableAudienceTarget as UnstablePortableAudienceTarget, PortableAudienceProfile as UnstablePortableAudienceProfile, PortableAnnotationProvenance as UnstablePortableAnnotationProvenance, PortableAnnotationLifecycle as UnstablePortableAnnotationLifecycle, PortableAnnotated as UnstablePortableAnnotated, ValidationResult as UnstablePortabilityValidationResult, IDIDVegaLiteMeta as UnstableIDIDVegaLiteMeta } from "./data/portability";
|
|
@@ -19,6 +19,10 @@ export type { GlyphSceneNode, SceneAccessibilityMetadata } from "./stream/types"
|
|
|
19
19
|
export type { CategoricalLegendConfig, GradientLegendConfig, GradientLegendValue, LegendGroup, LegendItem, LegendLayout, LegendValue, } from "./types/legendTypes";
|
|
20
20
|
export type { StreamGeoFrameProps, StreamGeoFrameHandle, GeoAreaSceneNode, GeoSceneNode, GeoScales, ProjectionProp, ProjectionName, GraticuleConfig, DistanceCartogramConfig, GeoPipelineConfig } from "./stream/geoTypes";
|
|
21
21
|
export type { GeoCustomLayout, GeoLayoutContext, GeoLayoutResult } from "./stream/geoCustomLayout";
|
|
22
|
+
export { geographicGridLayout, gridifyGeographicPoints, } from "./recipes/geographicGrid";
|
|
23
|
+
export type { GeographicGridConfig, GeographicGridInput, GeographicGridShape, GeographicGridSource, GridifiedGeographicPoint, GridifyGeographicPointsOptions, } from "./recipes/geographicGrid";
|
|
24
|
+
export { geographicDotGridLayout, sampleGeographicDotGrid, } from "./recipes/geographicDotGrid";
|
|
25
|
+
export type { GeographicDotGridAccessor, GeographicDotGridConfig, GeographicDotGridDatum, GeographicDotGridSampleOptions, GeographicDotGridShape, } from "./recipes/geographicDotGrid";
|
|
22
26
|
export type { CustomLayoutFailureDiagnostic, CustomLayoutFailureRecovery, CustomLayoutFamily } from "./stream/customLayoutFailure";
|
|
23
27
|
export type { GeoParticleStyle } from "./stream/GeoParticlePool";
|
|
24
28
|
export { mergeData } from "./geo/mergeData";
|
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { GaltonBoardChart } from "./charts/physics/GaltonBoardChart";
|
|
6
6
|
import { EventDropChart } from "./charts/physics/EventDropChart";
|
|
7
|
-
import { PhysicsPileChart } from "./charts/physics/
|
|
7
|
+
import { UnitPileChart, PhysicsPileChart } from "./charts/physics/UnitPileChart";
|
|
8
8
|
import { PhysicsCustomChart } from "./charts/physics/PhysicsCustomChart";
|
|
9
9
|
import { CollisionSwarmChart } from "./charts/physics/CollisionSwarmChart";
|
|
10
10
|
import { compilePhysicsEncoding, createPhysicsEncodingLayout } from "./charts/physics/physicsEncoding";
|
|
11
11
|
import { GauntletChart, GuantletChart, planGauntletPropertyWork, replaceGauntletNegative } from "./charts/physics/GauntletChart";
|
|
12
|
-
import {
|
|
12
|
+
import { resolveGauntletTerminalState, resolveGauntletTerminalStates } from "./charts/physics/gauntletTerminal";
|
|
13
|
+
import { PacketFlowChart, PhysicalFlowChart } from "./charts/physics/PacketFlowChart";
|
|
13
14
|
import { ProcessFlowChart } from "./charts/physics/ProcessFlowChart";
|
|
14
15
|
import { physicsProcessBoundaryColliders, physicsProcessGroupSemanticItems, physicsProcessRegionSemanticItem, physicsProcessStageSemanticItems } from "./charts/physics/physicsProcessPrimitives";
|
|
15
16
|
import { buildCollisionSwarmPhysics, buildEventDropPhysics, buildGaltonBoardPhysics, buildPhysicalFlowPhysics, buildPhysicsPile, buildProcessFlowPhysics } from "./charts/physics/physicsChartUtils";
|
|
@@ -21,19 +22,21 @@ import { evaluatePhysicsBodyBudget } from "./stream/physics/PhysicsBodyBudget";
|
|
|
21
22
|
import { PhysicsSedimentAccumulator, sedimentHeightfield } from "./stream/physics/PhysicsSediment";
|
|
22
23
|
import { composePhysicsControllers, createCapacityQueueController, createPortalController, createDependencyGateController, createServiceLevelController, createServiceResourcePoolController } from "./stream/physics/PhysicsControllers";
|
|
23
24
|
import { processChrome } from "./recipes/processChrome";
|
|
24
|
-
import { absorbRegion, aggregateRegionCounts, arrivalReplay, bodyGroupSpec, capacitatedRegion, chargeGateRegion, collidersFromScales, createProcessJourneyLedger, forceFieldRegion, galtonPegs, groupCompletionRows, comparePhysicsTrace, membraneRegion, portalRegion, pressureFieldRegion, processLaneWalls, processJourneyRows, processStageLayout, processStageRegions, processVolumePolygons, physicsReferenceEnvelope, regionCountsToProjectionRows, routeSurfaceRegion, sedimentBake, spawnFromTokens, stageTargetInVolume, updateProcessJourney } from "./recipes/physics";
|
|
25
|
-
export { BuiltInPhysicsEngineAdapter, CollisionSwarmChart, EventDropChart, GauntletChart, GaltonBoardChart, GuantletChart, PhysicalFlowChart, PhysicsCustomChart, PhysicsPileChart, PhysicsPipelineStore, PhysicsSedimentAccumulator, ProcessFlowChart, absorbRegion, aggregateRegionCounts, arrivalReplay, bodyGroupSpec, buildCollisionSwarmPhysics, buildEventDropPhysics, buildGaltonBoardPhysics, buildPhysicalFlowPhysics, buildPhysicsPile, buildProcessFlowPhysics, capacitatedRegion, chargeGateRegion, collidersFromScales, compilePhysicsEncoding, composePhysicsControllers, createCapacityQueueController, createDependencyGateController, createDefaultPhysicsEngineAdapter, createPortalController, createPhysicsEncodingLayout, createServiceLevelController, createServiceResourcePoolController, createProcessJourneyLedger, evaluatePhysicsBodyBudget, processChrome, forceFieldRegion, galtonPegs, groupCompletionRows, comparePhysicsTrace, planGauntletPropertyWork, membraneRegion, physicsProcessBoundaryColliders, physicsProcessGroupSemanticItems, physicsProcessRegionSemanticItem, physicsProcessStageSemanticItems, portalRegion, pressureFieldRegion, processLaneWalls, processJourneyRows, processStageLayout, processStageRegions, processVolumePolygons, physicsReferenceEnvelope, regionCountsToProjectionRows, replaceGauntletNegative, routeSurfaceRegion, sedimentBake, sedimentHeightfield, spawnFromTokens, stageTargetInVolume, updateProcessJourney, NamedStreamPhysicsFrame as StreamPhysicsFrame };
|
|
25
|
+
import { absorbRegion, aggregateRegionCounts, arrivalReplay, bodyGroupSpec, capacitatedRegion, chargeGateRegion, collidersFromScales, createProcessJourneyLedger, forceFieldRegion, galtonPegs, groupCompletionRows, comparePhysicsTrace, membraneRegion, portalRegion, pressureFieldRegion, processLaneWalls, processJourneyRows, processStageLayout, describePhysicsStageGeography, physicsChargePoint, physicsDestination, physicsStageColliders, physicsStageGeography, processStageRegions, processVolumePolygons, physicsReferenceEnvelope, regionCountsToProjectionRows, routeSurfaceRegion, sedimentBake, spawnFromTokens, stageTargetInVolume, updateProcessJourney } from "./recipes/physics";
|
|
26
|
+
export { BuiltInPhysicsEngineAdapter, CollisionSwarmChart, EventDropChart, GauntletChart, GaltonBoardChart, GuantletChart, PacketFlowChart, PhysicalFlowChart, PhysicsCustomChart, PhysicsPileChart, UnitPileChart, PhysicsPipelineStore, PhysicsSedimentAccumulator, ProcessFlowChart, absorbRegion, aggregateRegionCounts, arrivalReplay, bodyGroupSpec, buildCollisionSwarmPhysics, buildEventDropPhysics, buildGaltonBoardPhysics, buildPhysicalFlowPhysics, buildPhysicsPile, buildProcessFlowPhysics, capacitatedRegion, chargeGateRegion, collidersFromScales, compilePhysicsEncoding, composePhysicsControllers, createCapacityQueueController, createDependencyGateController, createDefaultPhysicsEngineAdapter, createPortalController, createPhysicsEncodingLayout, createServiceLevelController, createServiceResourcePoolController, createProcessJourneyLedger, evaluatePhysicsBodyBudget, processChrome, forceFieldRegion, galtonPegs, groupCompletionRows, comparePhysicsTrace, planGauntletPropertyWork, membraneRegion, physicsProcessBoundaryColliders, physicsProcessGroupSemanticItems, physicsProcessRegionSemanticItem, physicsProcessStageSemanticItems, portalRegion, pressureFieldRegion, processLaneWalls, processJourneyRows, processStageLayout, describePhysicsStageGeography, physicsChargePoint, physicsDestination, physicsStageColliders, physicsStageGeography, processStageRegions, processVolumePolygons, physicsReferenceEnvelope, regionCountsToProjectionRows, replaceGauntletNegative, resolveGauntletTerminalState, resolveGauntletTerminalStates, routeSurfaceRegion, sedimentBake, sedimentHeightfield, spawnFromTokens, stageTargetInVolume, updateProcessJourney, NamedStreamPhysicsFrame as StreamPhysicsFrame };
|
|
26
27
|
export default StreamPhysicsFrame;
|
|
27
28
|
export type { CollisionSwarmChartProps } from "./charts/physics/CollisionSwarmChart";
|
|
28
29
|
export type { EventDropChartProps } from "./charts/physics/EventDropChart";
|
|
29
30
|
export * from "./charts/physics/CrucibleChart";
|
|
31
|
+
export type { GauntletTerminalOptions } from "./charts/physics/gauntletTerminal";
|
|
32
|
+
export type { PhysicsDestinationZone, PhysicsStageColliderOptions, PhysicsStageGeography, PhysicsStageGeographyOptions, PhysicsZone } from "./recipes/physicsStageGeography";
|
|
30
33
|
export type { GauntletChartProps, GauntletEffect, GauntletEvent, GauntletEventContext, GauntletEventLogItem, GauntletGate, GauntletLayout, GauntletNegativeReplacementOptions, GauntletPopSpec, GauntletProjectPlacement, GauntletProjectState, GauntletPropertyForceContext, GauntletPropertyDefinition, GauntletPropertyWorkPlan, GauntletPropertyWorkPlanOptions } from "./charts/physics/GauntletChart";
|
|
31
34
|
export type { PhysicsProcessBodyGroup, PhysicsProcessBoundaryOptions, PhysicsProcessStage } from "./charts/physics/physicsProcessPrimitives";
|
|
32
35
|
export type { GaltonBoardChartProps, GaltonBoardReferenceLine } from "./charts/physics/GaltonBoardChart";
|
|
33
|
-
export type { PhysicalFlowChartProps } from "./charts/physics/
|
|
36
|
+
export type { PacketFlowChartProps, PhysicalFlowChartProps } from "./charts/physics/PacketFlowChart";
|
|
34
37
|
export type { ProcessFlowChartProps, ProcessFlowProjectionMetadata, ProcessFlowStageDef } from "./charts/physics/ProcessFlowChart";
|
|
35
38
|
export type { PhysicsCustomChartProps, PhysicsCustomLayout, PhysicsCustomLayoutContext, PhysicsCustomLayoutResult, PhysicsCustomSpawnDatumResult } from "./charts/physics/PhysicsCustomChart";
|
|
36
|
-
export type { PhysicsPileChartProps } from "./charts/physics/
|
|
39
|
+
export type { UnitPileChartProps, PhysicsPileChartProps } from "./charts/physics/UnitPileChart";
|
|
37
40
|
export type { CompilePhysicsEncodingOptions, CreatePhysicsEncodingLayoutOptions, PhysicsAccessibleEncoding, PhysicsAppearanceEncoding, PhysicsDynamicsEncoding, PhysicsEncoding, PhysicsEncodingAccessor, PhysicsEncodingCompilation, PhysicsEncodingConstant, PhysicsEncodingDefaults, PhysicsEncodingLayoutExtension, PhysicsKinematicsEncoding, PhysicsPlacementEncoding, PhysicsProcessEncoding, PhysicsTimeEncoding, ResolvedPhysicsEncodingRow } from "./charts/physics/physicsEncoding";
|
|
38
41
|
export type { PhysicsChartLayout, CollisionSwarmPhysicsOptions, CollisionSwarmProjectionMetadata, EventDropWindowOptions, EventDropPhysicsOptions, GaltonBoardProjectionMetadata, GaltonBoardPhysicsOptions, PhysicalFlowCoordinateMode, PhysicalFlowOptions, PhysicalFlowPathConstraint, PhysicalFlowPoint, PhysicalFlowProjectionMetadata, PhysicalFlowRawPath, PhysicsPileOptions, ProcessFlowPhysicsOptions } from "./charts/physics/physicsChartUtils";
|
|
39
42
|
export type { CapacityQueueAbandonedInfo, CapacityQueueAgeSummary, CapacityQueueBlockedInfo, CapacityQueueControllerOptions, CapacityQueueProcessedInfo, CapacityQueueSnapshot, CapacityQueueVisitInfo, CapacityQueueWindowSnapshot, ComposedPhysicsControllers, DependencyGateController, DependencyGateOptions, DependencyGateSnapshot, PhysicsController, PhysicsControllerTickContext, ServiceLevelCaseInfo, ServiceLevelCaseState, ServiceLevelController, ServiceLevelControllerOptions, ServiceLevelSnapshot, ServiceResourceAssignment, ServiceResourceDefinition, ServiceResourcePoolController, ServiceResourcePoolOptions, ServiceResourcePoolSnapshot } from "./stream/physics/PhysicsControllers";
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { waffleLayout, allocateCells } from "./recipes/waffle";
|
|
9
9
|
export { unitize, unitizeRange } from "./recipes/unitize";
|
|
10
|
+
export type { PhysicsDestinationZone, PhysicsStageColliderOptions, PhysicsStageGeography, PhysicsStageGeographyOptions, PhysicsZone } from "./recipes/physicsStageGeography";
|
|
10
11
|
export type { UnitSign, RangeUnitSign, UnitizeOptions, UnitizeResult, UnitizeRangeResult, } from "./recipes/unitize";
|
|
11
12
|
export { generateTokens, layoutTokenGrid, normalizeTokenEncoding, diagnoseTokenEncoding, suggestTokenEncoding, tokenTaskIntentToCapabilityIntents, } from "./recipes/tokenEncoding";
|
|
12
13
|
export type { TokenType, TokenSemantics, TokenCountStrategy, TokenLayout, TokenLabelPolicy, TokenTaskIntent, TokenCapabilityIntent, TokenEncoding, TokenGeneratorInput, VisualToken, TokenDiagnosticCode, TokenDiagnostic, TokenDiagnosticsContext, TokenSet, TokenGridOptions, PositionedToken, TokenEncodingSuggestion, SuggestTokenEncodingInput, } from "./recipes/tokenEncoding";
|
|
@@ -17,6 +18,10 @@ export { calendarLayout } from "./recipes/calendar";
|
|
|
17
18
|
export type { CalendarConfig } from "./recipes/calendar";
|
|
18
19
|
export { isometricLandmarkLayout, selectIsometricLandmarks, DEFAULT_ISOMETRIC_SPRITE_SIZES, } from "./recipes/isometricLandmarks";
|
|
19
20
|
export type { IsometricLandmarkConfig, IsometricLandmarkTile, IsometricTerrainCell, IsometricTerrainKind, LandmarkKind, } from "./recipes/isometricLandmarks";
|
|
21
|
+
export { geographicGridLayout, gridifyGeographicPoints, } from "./recipes/geographicGrid";
|
|
22
|
+
export type { GeographicGridConfig, GeographicGridInput, GeographicGridShape, GeographicGridSource, GridifiedGeographicPoint, GridifyGeographicPointsOptions, } from "./recipes/geographicGrid";
|
|
23
|
+
export { geographicDotGridLayout, sampleGeographicDotGrid, } from "./recipes/geographicDotGrid";
|
|
24
|
+
export type { GeographicDotGridAccessor, GeographicDotGridConfig, GeographicDotGridDatum, GeographicDotGridSampleOptions, GeographicDotGridShape, } from "./recipes/geographicDotGrid";
|
|
20
25
|
export { flextreeLayout } from "./recipes/flextree";
|
|
21
26
|
export type { FlextreeConfig } from "./recipes/flextree";
|
|
22
27
|
export { dagreLayout } from "./recipes/dagre";
|
|
@@ -89,7 +94,7 @@ export { forceLayout, mulberry32 } from "./recipes/forceLayout";
|
|
|
89
94
|
export type { ForceLayoutOptions } from "./recipes/forceLayout";
|
|
90
95
|
export { forceLayoutAsync } from "./recipes/forceLayoutAsync";
|
|
91
96
|
export type { ForceLayoutAsyncOptions } from "./recipes/forceLayoutAsync";
|
|
92
|
-
export { absorbRegion, aggregateRegionCounts, arrivalReplay, bodyGroupSpec, capacitatedRegion, chargeGateRegion, collidersFromScales, composePhysicsControllers, createCapacityQueueController, createDependencyGateController, createPortalController, createServiceLevelController, createServiceResourcePoolController, createProcessJourneyLedger, comparePhysicsTrace, forceFieldRegion, processChrome, galtonPegs, groupCompletionRows, membraneRegion, portalRegion, pressureFieldRegion, processLaneWalls, processJourneyRows, processStageLayout, processStageRegions, processVolumePolygons, physicsReferenceEnvelope, regionCountsToProjectionRows, routeSurfaceRegion, sedimentBake, spawnFromTokens, stageTargetInVolume, updateProcessJourney, } from "./recipes/physics";
|
|
97
|
+
export { absorbRegion, aggregateRegionCounts, arrivalReplay, bodyGroupSpec, capacitatedRegion, chargeGateRegion, collidersFromScales, composePhysicsControllers, createCapacityQueueController, createDependencyGateController, createPortalController, createServiceLevelController, createServiceResourcePoolController, createProcessJourneyLedger, comparePhysicsTrace, forceFieldRegion, processChrome, galtonPegs, groupCompletionRows, membraneRegion, portalRegion, pressureFieldRegion, processLaneWalls, processJourneyRows, processStageLayout, describePhysicsStageGeography, physicsChargePoint, physicsDestination, physicsStageColliders, physicsStageGeography, processStageRegions, processVolumePolygons, physicsReferenceEnvelope, regionCountsToProjectionRows, routeSurfaceRegion, sedimentBake, spawnFromTokens, stageTargetInVolume, updateProcessJourney, } from "./recipes/physics";
|
|
93
98
|
export type { ArrivalReplayOptions, BandScale, BodyGroupSpec, BodyGroupSpecOptions, CapacityQueueAbandonedInfo, CapacityQueueAgeSummary, CapacityQueueBlockedInfo, CapacityQueueControllerOptions, CapacityQueueProcessedInfo, CapacityQueueSnapshot, CapacityQueueVisitInfo, CapacityQueueWindowSnapshot, ComposedPhysicsControllers, DependencyGateController, DependencyGateOptions, DependencyGateSnapshot, GaltonPegsOptions, ProcessChromeGroup, ProcessChromeLayout, ProcessChromeOptions, ProcessChromeStage, NumericScale, PhysicsBandColliderOptions, PhysicsColliderSpec, PhysicsPlotBounds, PhysicsQueuedSpawn, PhysicsReferenceBandSelector, PhysicsReferenceEnvelope, PhysicsReferenceEnvelopeOptions, PhysicsReferenceEnvelopePoint, PhysicsReferenceSampleGrid, PhysicsReferenceTrace, PhysicsScalarTraceSample, PhysicsScaleColliderOptions, PhysicsSedimentBinSnapshot, PhysicsSedimentColumn, PhysicsSedimentHeightfieldOptions, PhysicsSpawnPacingOptions, PhysicsTraceAccessor, PhysicsTraceComparison, PhysicsTraceComparisonOptions, PhysicsTraceComparisonPoint, PhysicsTraceComparisonStatus, PhysicsTraceInterpolation, PhysicsTraceOutsideDomain, ProcessMembraneDef, ProcessJourneyEntityState, ProcessJourneyLedger, ProcessJourneyRow, ProcessJourneyStage, ProcessJourneyUpdateOptions, ProcessRegionBaseOptions, ProcessStageRegionOptions, ProcessStageDef, ProcessVolumeLayout, ProcessVolumeLayoutOptions, ProcessVolumeMembraneBand, ProcessVolumePoint, ProcessVolumePolygon, ProcessVolumePolygonRole, PhysicsController, PhysicsControllerTickContext, ServiceLevelCaseInfo, ServiceLevelCaseState, ServiceLevelController, ServiceLevelControllerOptions, ServiceLevelSnapshot, ServiceResourceAssignment, ServiceResourceDefinition, ServiceResourcePoolController, ServiceResourcePoolOptions, ServiceResourcePoolSnapshot, ProcessVolumeShape, ProcessVolumeStageBand, RegionCountBucket, RegionCountMap, SedimentBakeOptions, SedimentBakeResult, SpawnFromTokensOptions, } from "./recipes/physics";
|
|
94
99
|
export { orderByGroupDegree, arcLayout, arcPath, circularLayout, adjacencyMatrix, } from "./recipes/networkLayouts";
|
|
95
100
|
export type { ArcLayoutOptions, CircularLayoutOptions, MatrixCell, AdjacencyMatrix, AdjacencyMatrixOptions, } from "./recipes/networkLayouts";
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
export interface RenderEvidence {
|
|
19
19
|
/** HOC component name as passed to renderChart. */
|
|
20
20
|
component: string;
|
|
21
|
-
frameType: "xy" | "ordinal" | "network" | "geo" | "physics";
|
|
21
|
+
frameType: "xy" | "ordinal" | "network" | "geo" | "physics" | "value";
|
|
22
22
|
/** "ok" when the scene produced data marks; "empty" when it did not. */
|
|
23
23
|
status: "ok" | "empty";
|
|
24
24
|
/** True when zero data marks rendered. */
|
|
@@ -7,6 +7,7 @@ import { CHART_CONFIGS } from "./serverChartConfigs";
|
|
|
7
7
|
import { type ThemeInput } from "./themeResolver";
|
|
8
8
|
import { type RenderEvidence } from "./renderEvidence";
|
|
9
9
|
import { type ThemeAwareProps, type StaticFrameProps, type FrameType } from "./staticSVGChrome";
|
|
10
|
+
import { type ValueChartName } from "./staticValue";
|
|
10
11
|
export declare function renderToStaticSVG(frameType: FrameType, props: StaticFrameProps): string;
|
|
11
12
|
export declare function renderXYToStaticSVG(props: StreamXYFrameProps & ThemeAwareProps): string;
|
|
12
13
|
export declare function renderOrdinalToStaticSVG(props: StreamOrdinalFrameProps & ThemeAwareProps): string;
|
|
@@ -18,7 +19,7 @@ export declare function renderGeoToStaticSVG(props: StreamGeoFrameProps & ThemeA
|
|
|
18
19
|
* union — no second edit required, no silent drift like the CandlestickChart
|
|
19
20
|
* gap that motivated this refactor.
|
|
20
21
|
*/
|
|
21
|
-
type ChartName = keyof typeof CHART_CONFIGS;
|
|
22
|
+
type ChartName = keyof typeof CHART_CONFIGS | ValueChartName;
|
|
22
23
|
interface RenderChartOptions {
|
|
23
24
|
/** Output format — currently only "svg" is synchronous */
|
|
24
25
|
format?: "svg";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
|
+
import { type PrimitiveStyleOverrides } from "../charts/shared/mergeShapeStyle";
|
|
3
|
+
/**
|
|
4
|
+
* Compose user/frame node styling over a hierarchy HOC's built-in encoding,
|
|
5
|
+
* then apply chart-level primitives with their documented final precedence.
|
|
6
|
+
*/
|
|
7
|
+
export declare function composeHierarchyNodeStyle(baseNodeStyle: (d: Datum) => Record<string, unknown>, userNodeStyle: ((d: Datum) => Record<string, unknown> | undefined | null) | Record<string, unknown> | undefined | null, primitives?: PrimitiveStyleOverrides): (d: Datum) => Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Mirror ForceDirectedGraph's edge primitive resolution on the static path.
|
|
10
|
+
* An explicit edgeStyle remains the final escape hatch.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveForceEdgeStyle(rest: Datum): any;
|
|
@@ -3,6 +3,7 @@ import type { ChartMode } from "../charts/shared/types";
|
|
|
3
3
|
import type { ChartModeInput, ChartModeResult } from "../charts/shared/chartMode";
|
|
4
4
|
import type { SemioticTheme } from "../store/ThemeStore";
|
|
5
5
|
import type { ReactNode } from "react";
|
|
6
|
+
import type { PrimitiveStyleOverrides } from "../charts/shared/mergeShapeStyle";
|
|
6
7
|
export type FrameType = "xy" | "ordinal" | "network" | "geo" | "physics";
|
|
7
8
|
export type ServerAccessorValue = string | number | boolean | Date | null | undefined;
|
|
8
9
|
export type ServerAccessor = string | ((datum: Datum) => ServerAccessorValue);
|
|
@@ -41,6 +42,21 @@ export interface ChartConfig {
|
|
|
41
42
|
export declare function accessorValue(accessor: ServerAccessor | undefined, fallback: string, d: Datum): ServerAccessorValue;
|
|
42
43
|
export declare function numericValue(value: ServerAccessorValue): number;
|
|
43
44
|
export declare function viridisColor(i: number, n: number): string;
|
|
45
|
+
/**
|
|
46
|
+
* Pull the top-level primitive styling props out of a chart's raw props so a
|
|
47
|
+
* server config can overlay them with `mergeShapeStyle`, exactly as the HOC
|
|
48
|
+
* does before handing style functions to its frame.
|
|
49
|
+
*
|
|
50
|
+
* Every shape-drawing HOC applies `stroke`/`strokeWidth`/`opacity` last, so
|
|
51
|
+
* they win over `frameProps.*Style` returns and the HOC's own base style. A
|
|
52
|
+
* server config that builds its style function without this overlay silently
|
|
53
|
+
* drops the whole channel — the static SVG comes back byte-identical to an
|
|
54
|
+
* unstyled render while the canvas honors it.
|
|
55
|
+
*
|
|
56
|
+
* Keys are omitted when unset so `mergeShapeStyle` can return its input
|
|
57
|
+
* unchanged and callers keep the no-override fast path.
|
|
58
|
+
*/
|
|
59
|
+
export declare function primitiveStyleOverrides(rest: Datum): PrimitiveStyleOverrides;
|
|
44
60
|
export declare function prepareConnectedScatterplotData(data: ServerChartData, rest: Datum): {
|
|
45
61
|
data: ServerChartData;
|
|
46
62
|
orderMap: WeakMap<Datum, {
|
|
@@ -49,11 +49,11 @@ export declare const CHART_CONFIGS: {
|
|
|
49
49
|
GeoCustomChart: ChartConfig;
|
|
50
50
|
GaltonBoardChart: ChartConfig;
|
|
51
51
|
EventDropChart: ChartConfig;
|
|
52
|
-
|
|
52
|
+
UnitPileChart: ChartConfig;
|
|
53
53
|
CollisionSwarmChart: ChartConfig;
|
|
54
54
|
ProcessFlowChart: ChartConfig;
|
|
55
55
|
GauntletChart: ChartConfig;
|
|
56
56
|
CrucibleChart: ChartConfig;
|
|
57
|
-
|
|
57
|
+
PacketFlowChart: ChartConfig;
|
|
58
58
|
PhysicsCustomChart: ChartConfig;
|
|
59
59
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ChartConfig } from "./serverChartConfigShared";
|
|
2
2
|
export declare const galtonBoardChart: ChartConfig;
|
|
3
3
|
export declare const eventDropChart: ChartConfig;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const unitPileChart: ChartConfig;
|
|
5
5
|
export declare const collisionSwarmChart: ChartConfig;
|
|
6
6
|
export declare const processFlowChart: ChartConfig;
|
|
7
7
|
export declare const gauntletChart: ChartConfig;
|
|
@@ -14,5 +14,5 @@ export declare const gauntletChart: ChartConfig;
|
|
|
14
14
|
* therefore cannot alter this static semantic state.
|
|
15
15
|
*/
|
|
16
16
|
export declare const crucibleChart: ChartConfig;
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const packetFlowChart: ChartConfig;
|
|
18
18
|
export declare const physicsCustomChart: ChartConfig;
|
|
@@ -8,6 +8,7 @@ import * as React from "react";
|
|
|
8
8
|
import type { SemioticTheme } from "../store/ThemeStore";
|
|
9
9
|
import type { Datum } from "../charts/shared/datumTypes";
|
|
10
10
|
import type { CategoricalLegendConfig, GradientLegendConfig, LegendGroup, LegendLayout } from "../types/legendTypes";
|
|
11
|
+
import { type AxisChromeInput } from "../legendLayout";
|
|
11
12
|
interface LegendItemLayout {
|
|
12
13
|
category: string;
|
|
13
14
|
width: number;
|
|
@@ -51,6 +52,11 @@ export interface StaticLegendConfig {
|
|
|
51
52
|
reservedWidth?: number;
|
|
52
53
|
/** Optional id namespace used for generated SVG ids */
|
|
53
54
|
idPrefix?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Axis chrome on the legend's side, so a top/bottom legend clears the tick
|
|
57
|
+
* labels instead of drawing on them. Mirrors `renderLegendFromConfig`.
|
|
58
|
+
*/
|
|
59
|
+
axisChrome?: AxisChromeInput;
|
|
54
60
|
}
|
|
55
61
|
export interface StaticLegendGroupsConfig extends Omit<StaticLegendConfig, "categories" | "colorScheme"> {
|
|
56
62
|
legendGroups: LegendGroup[];
|
|
@@ -7,12 +7,12 @@ import type { StreamGeoFrameProps } from "../stream/geoTypes";
|
|
|
7
7
|
import type { PhysicsSettledSVGOptions } from "../stream/physics/PhysicsSettledSVG";
|
|
8
8
|
import type { PhysicsPipelineStore, PhysicsQueuedSpawn } from "../stream/physics/PhysicsPipelineStore";
|
|
9
9
|
import type { OrdinalPipelineStore } from "../stream/OrdinalPipelineStore";
|
|
10
|
-
import type { RenderEvidence } from "./renderEvidence";
|
|
11
10
|
import { resolveTheme, type ThemeInput } from "./themeResolver";
|
|
12
11
|
import type { SemioticTheme } from "../store/ThemeStore";
|
|
13
12
|
import * as React from "react";
|
|
14
13
|
import { type AxisExtentMode } from "../charts/shared/axisExtent";
|
|
15
|
-
|
|
14
|
+
import { type AxisChromeInput } from "../legendLayout";
|
|
15
|
+
export type FrameType = "xy" | "ordinal" | "network" | "geo" | "physics";
|
|
16
16
|
export type StaticPhysicsFrameProps = PhysicsSettledSVGOptions & {
|
|
17
17
|
config?: ConstructorParameters<typeof PhysicsPipelineStore>[0];
|
|
18
18
|
initialSpawns?: PhysicsQueuedSpawn[];
|
|
@@ -55,6 +55,11 @@ type LegendPosition = "right" | "left" | "top" | "bottom";
|
|
|
55
55
|
type StaticLegendHostProps = ThemeAwareProps & {
|
|
56
56
|
legend?: unknown;
|
|
57
57
|
colorScheme?: string | string[] | Record<string, string>;
|
|
58
|
+
/**
|
|
59
|
+
* Bottom-axis chrome, so a bottom legend is placed and reserved outside the
|
|
60
|
+
* tick labels. Frames without a horizontal axis omit it and keep a 0 gutter.
|
|
61
|
+
*/
|
|
62
|
+
axisChrome?: AxisChromeInput;
|
|
58
63
|
};
|
|
59
64
|
/**
|
|
60
65
|
* The client HOCs reserve a minimum legend gutter before layout. The static
|
|
@@ -80,6 +85,7 @@ export declare function reserveStaticLegendMargin(margin: {
|
|
|
80
85
|
legendLayout?: LegendLayout;
|
|
81
86
|
minimumMargin?: number;
|
|
82
87
|
preserveExplicitMargin?: boolean;
|
|
88
|
+
axisChrome?: AxisChromeInput;
|
|
83
89
|
}): void;
|
|
84
90
|
export declare function reserveLegendConfigMargin(margin: {
|
|
85
91
|
top: number;
|
|
@@ -95,6 +101,7 @@ export declare function reserveLegendConfigMargin(margin: {
|
|
|
95
101
|
legendLayout?: LegendLayout;
|
|
96
102
|
minimumMargin?: number;
|
|
97
103
|
preserveExplicitMargin?: boolean;
|
|
104
|
+
axisChrome?: AxisChromeInput;
|
|
98
105
|
}): void;
|
|
99
106
|
export declare function renderLegendConfig(legend: unknown, options: {
|
|
100
107
|
theme: ReturnType<typeof resolveTheme>;
|
|
@@ -110,6 +117,7 @@ export declare function renderLegendConfig(legend: unknown, options: {
|
|
|
110
117
|
legendLayout?: LegendLayout;
|
|
111
118
|
idPrefix?: string;
|
|
112
119
|
reservedWidth?: number;
|
|
120
|
+
axisChrome?: AxisChromeInput;
|
|
113
121
|
}): React.ReactNode;
|
|
114
122
|
/** Reserve the plot gutter for either a supplied legend config or categories. */
|
|
115
123
|
export declare function reserveFrameLegendMargin(margin: {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
|
+
import { type EvidenceSink } from "./renderEvidence";
|
|
3
|
+
export declare function renderBigNumberToStaticSVG(props: Datum, sink?: EvidenceSink): string;
|
|
4
|
+
export declare const VALUE_RENDERERS: {
|
|
5
|
+
readonly BigNumber: typeof renderBigNumberToStaticSVG;
|
|
6
|
+
};
|
|
7
|
+
export type ValueChartName = keyof typeof VALUE_RENDERERS;
|
|
8
|
+
export declare function renderValueChart(component: ValueChartName, props: Datum, sink?: EvidenceSink): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GeoPipelineConfig } from "./geoTypes";
|
|
2
|
+
/**
|
|
3
|
+
* `fitPadding` is applied to both sides of the plot, so 0.5 would leave a
|
|
4
|
+
* zero-sized extent (and a clipped globe with radius zero). Normalize nullish
|
|
5
|
+
* values at the public config boundary, and reject invalid values before they
|
|
6
|
+
* can reach d3 with a negative or non-finite projection extent.
|
|
7
|
+
*/
|
|
8
|
+
export declare function normalizeFitPadding(value: unknown): number;
|
|
9
|
+
export declare function normalizeInitialGeoPipelineConfig(config: GeoPipelineConfig): GeoPipelineConfig;
|
|
10
|
+
export declare function normalizeGeoPipelineConfigUpdate(config: Partial<GeoPipelineConfig>): Partial<GeoPipelineConfig>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { LegendLayout, LegendValue } from "../types/legendTypes";
|
|
3
|
+
import { type AxisChromeInput } from "../legendLayout";
|
|
3
4
|
export interface LegendRenderConfig {
|
|
4
5
|
legend: LegendValue;
|
|
5
6
|
totalWidth: number;
|
|
@@ -22,6 +23,13 @@ export interface LegendRenderConfig {
|
|
|
22
23
|
legendHighlightedCategory?: string | null;
|
|
23
24
|
legendIsolatedCategories?: Set<string>;
|
|
24
25
|
legendInteraction?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Chrome drawn by the **bottom** axis, so a bottom legend can be placed
|
|
28
|
+
* outside it instead of on top of the tick labels. Omit for frames with no
|
|
29
|
+
* horizontal axis (network, geo) — the gutter resolves to 0. Top legends do
|
|
30
|
+
* not auto-measure; see `LegendLayout.axisGutter`.
|
|
31
|
+
*/
|
|
32
|
+
axisChrome?: AxisChromeInput;
|
|
25
33
|
}
|
|
26
34
|
/**
|
|
27
35
|
* Renders a legend (categorical, gradient, or custom ReactNode) inside an SVG overlay.
|
|
@@ -9,6 +9,31 @@ export interface PhysicsEvidenceBinCount {
|
|
|
9
9
|
secondaryLabel?: string;
|
|
10
10
|
observed?: number;
|
|
11
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* Where every charged body ended up.
|
|
14
|
+
*
|
|
15
|
+
* Physics charts all share one deep structure — a charge enters, an apparatus
|
|
16
|
+
* routes it, and it comes to rest in destinations — so they all owe the same
|
|
17
|
+
* invariant: every body that entered is accounted for in exactly one place.
|
|
18
|
+
* That invariant is this family's "bars start at zero": it is what makes a
|
|
19
|
+
* settled projection an auditable reading rather than a claim about a movie.
|
|
20
|
+
*
|
|
21
|
+
* Supply `charge` (the total the chart says entered) and the evidence reports
|
|
22
|
+
* whether the world can still account for it.
|
|
23
|
+
*/
|
|
24
|
+
export interface PhysicsSettledLedger {
|
|
25
|
+
/** Total the chart claims entered the apparatus. */
|
|
26
|
+
charge: number;
|
|
27
|
+
/** Bodies live in the world when it came to rest. */
|
|
28
|
+
live: number;
|
|
29
|
+
/** Bodies the queue still owes and never admitted. */
|
|
30
|
+
queued: number;
|
|
31
|
+
/** Bodies retired into sediment by the body budget. */
|
|
32
|
+
sedimented: number;
|
|
33
|
+
/** `charge - (live + queued + sedimented)`. Non-zero means bodies vanished. */
|
|
34
|
+
unaccounted: number;
|
|
35
|
+
balanced: boolean;
|
|
36
|
+
}
|
|
12
37
|
export interface PhysicsSettledEvidence {
|
|
13
38
|
bodyCount: number;
|
|
14
39
|
sleepingCount: number;
|
|
@@ -16,10 +41,22 @@ export interface PhysicsSettledEvidence {
|
|
|
16
41
|
stepsRun: number;
|
|
17
42
|
seed: number;
|
|
18
43
|
binCounts: PhysicsEvidenceBinCount[];
|
|
44
|
+
/** Spawns still owed by the queue. Non-zero in a settled scene is a defect. */
|
|
45
|
+
queuedCount: number;
|
|
46
|
+
/** Bodies the body budget retired into sediment. */
|
|
47
|
+
sedimentedCount: number;
|
|
48
|
+
ledger?: PhysicsSettledLedger;
|
|
49
|
+
warnings: string[];
|
|
19
50
|
}
|
|
20
51
|
export interface PhysicsSettledEvidenceOptions {
|
|
21
52
|
bodies?: PhysicsBodyState[];
|
|
22
53
|
projectionRows?: PhysicsSettledProjectionRow[];
|
|
23
54
|
stepsRun?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Total bodies the chart claims entered the apparatus. Pass it when the chart
|
|
57
|
+
* knows its own charge (a unitized total, a row count) to enable the ledger
|
|
58
|
+
* check. Omit it and the ledger is simply absent — never guessed.
|
|
59
|
+
*/
|
|
60
|
+
charge?: number;
|
|
24
61
|
}
|
|
25
62
|
export declare function buildPhysicsSettledEvidence(snapshot: PhysicsPipelineSnapshot, options?: PhysicsSettledEvidenceOptions): PhysicsSettledEvidence;
|