semiotic 3.8.6 → 3.8.8
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 +34 -8
- package/README.md +93 -56
- package/ai/behaviorContracts.cjs +86 -1
- package/ai/componentMetadata.cjs +4 -9
- package/ai/dist/mcp-server.js +125 -12
- package/ai/examples.md +154 -7
- package/ai/schema.json +1742 -156
- package/ai/surface-manifest.json +12 -10
- package/ai/system-prompt.md +9 -3
- package/dist/{chunk-chartContainerDataAudit-FEOD5GTQ.module.min.js → chunk-chartContainerDataAudit-IQ3NBN3Q.module.min.js} +1 -1
- package/dist/chunk-chunk-2B3AIKUZ.module.min.js +2 -0
- package/dist/chunk-chunk-2NVFEB7P.module.min.js +2 -0
- package/dist/chunk-chunk-3GCILWPB.module.min.js +2 -0
- package/dist/chunk-chunk-46KRGJQP.module.min.js +1 -0
- package/dist/{chunk-chunk-G7WFWHAD.module.min.js → chunk-chunk-4ITOQRXM.module.min.js} +1 -1
- package/dist/chunk-chunk-4MLLQUGW.module.min.js +2 -0
- package/dist/chunk-chunk-57RBPDBQ.module.min.js +2 -0
- package/dist/chunk-chunk-5VVNW5AZ.module.min.js +1 -0
- package/dist/chunk-chunk-66PCWJUG.module.min.js +1 -0
- package/dist/chunk-chunk-6V5VQVCT.module.min.js +2 -0
- package/dist/chunk-chunk-7LE56WAE.module.min.js +2 -0
- package/dist/chunk-chunk-7T25U75Z.module.min.js +2 -0
- package/dist/chunk-chunk-AF53TBSN.module.min.js +2 -0
- package/dist/chunk-chunk-BTZYH2IE.module.min.js +1 -0
- package/dist/chunk-chunk-BWV55BZK.module.min.js +2 -0
- package/dist/chunk-chunk-BZNOAHJV.module.min.js +2 -0
- package/dist/chunk-chunk-CD6PVVS3.module.min.js +2 -0
- package/dist/chunk-chunk-DTSNLGRK.module.min.js +2 -0
- package/dist/chunk-chunk-FC3NZWYR.module.min.js +2 -0
- package/dist/chunk-chunk-FEPXDKJP.module.min.js +1 -0
- package/dist/chunk-chunk-FJ76HWQZ.module.min.js +1 -0
- package/dist/chunk-chunk-FQPKOAIH.module.min.js +2 -0
- package/dist/chunk-chunk-FRGBMTZR.module.min.js +1 -0
- package/dist/chunk-chunk-G75OPF5N.module.min.js +2 -0
- package/dist/chunk-chunk-H5IFO6CU.module.min.js +2 -0
- package/dist/chunk-chunk-HADHLMY5.module.min.js +1 -0
- package/dist/chunk-chunk-HBFA4NN6.module.min.js +1 -0
- package/dist/chunk-chunk-HCNDE26Q.module.min.js +2 -0
- package/dist/chunk-chunk-J5QD4RAM.module.min.js +2 -0
- package/dist/chunk-chunk-JJ4BSUYL.module.min.js +2 -0
- package/dist/chunk-chunk-JRHXQGEV.module.min.js +2 -0
- package/dist/chunk-chunk-L6FFYGYS.module.min.js +1 -0
- package/dist/chunk-chunk-LJDH3WV3.module.min.js +2 -0
- package/dist/chunk-chunk-LSJUXBMF.module.min.js +1 -0
- package/dist/chunk-chunk-N3Q33XCB.module.min.js +2 -0
- package/dist/chunk-chunk-NWIGA3UK.module.min.js +1 -0
- package/dist/chunk-chunk-OG3TTJGJ.module.min.js +2 -0
- package/dist/{chunk-chunk-XEVJDUTH.module.min.js → chunk-chunk-OZK46A5U.module.min.js} +1 -1
- package/dist/chunk-chunk-PMR47KRY.module.min.js +2 -0
- package/dist/chunk-chunk-QQJNG23C.module.min.js +2 -0
- package/dist/chunk-chunk-RGJ6TKAH.module.min.js +2 -0
- package/dist/{chunk-chunk-RA7JCG7D.module.min.js → chunk-chunk-SFLUSZ73.module.min.js} +1 -1
- package/dist/chunk-chunk-SV4XAZ3Q.module.min.js +1 -0
- package/dist/chunk-chunk-TCMHJWFJ.module.min.js +1 -0
- package/dist/chunk-chunk-TSCFL235.module.min.js +1 -0
- package/dist/{chunk-chunk-XP3OHHFX.module.min.js → chunk-chunk-UEZ6SHW5.module.min.js} +1 -1
- package/dist/chunk-chunk-UOQRPGPK.module.min.js +2 -0
- package/dist/chunk-chunk-VUWYT7DY.module.min.js +2 -0
- package/dist/{chunk-chunk-GFTVACTO.module.min.js → chunk-chunk-W5HWGQMD.module.min.js} +1 -1
- package/dist/chunk-chunk-WFHZHWT7.module.min.js +1 -0
- package/dist/chunk-chunk-WGROBM3I.module.min.js +2 -0
- package/dist/chunk-chunk-WSDJFBKX.module.min.js +2 -0
- package/dist/chunk-statisticalOverlays-HMYYSGPE.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 +6 -6
- package/dist/components/charts/network/ProcessSankey.d.ts +105 -74
- package/dist/components/charts/network/processSankey/accessors.d.ts +7 -0
- package/dist/components/charts/network/processSankey/algorithm.d.ts +14 -193
- package/dist/components/charts/network/processSankey/axisChrome.d.ts +31 -0
- package/dist/components/charts/network/processSankey/bandPaths.d.ts +45 -0
- package/dist/components/charts/network/processSankey/buildScenes.d.ts +41 -3
- package/dist/components/charts/network/processSankey/fixtures.d.ts +17 -0
- package/dist/components/charts/network/processSankey/frameMargins.d.ts +11 -0
- package/dist/components/charts/network/processSankey/groupBonding.d.ts +13 -0
- package/dist/components/charts/network/processSankey/inventoryAtTime.d.ts +41 -0
- package/dist/components/charts/network/processSankey/labelPlacement.d.ts +34 -0
- package/dist/components/charts/network/processSankey/layoutGeometry.d.ts +47 -0
- package/dist/components/charts/network/processSankey/layoutOrchestrator.d.ts +44 -0
- package/dist/components/charts/network/processSankey/layoutQualityProduct.d.ts +27 -0
- package/dist/components/charts/network/processSankey/massSimulation.d.ts +16 -0
- package/dist/components/charts/network/processSankey/ordering.d.ts +55 -0
- package/dist/components/charts/network/processSankey/orderingBond.d.ts +33 -0
- package/dist/components/charts/network/processSankey/orientation.d.ts +5 -0
- package/dist/components/charts/network/processSankey/packing.d.ts +8 -0
- package/dist/components/charts/network/processSankey/packingCache.d.ts +23 -0
- package/dist/components/charts/network/processSankey/processSankeyLayoutAsync.d.ts +27 -0
- package/dist/components/charts/network/processSankey/processSankeyLayoutWorkerClient.d.ts +72 -0
- package/dist/components/charts/network/processSankey/processSankeyTooltip.d.ts +26 -0
- package/dist/components/charts/network/processSankey/processSankeyTypes.d.ts +163 -0
- package/dist/components/charts/network/processSankey/ribbonInputs.d.ts +26 -2
- package/dist/components/charts/network/processSankey/ribbonRunway.d.ts +45 -0
- package/dist/components/charts/network/processSankey/streamingLayout.d.ts +23 -0
- package/dist/components/charts/network/processSankey/time.d.ts +11 -0
- package/dist/components/charts/network/processSankey/useProcessSankeyPush.d.ts +29 -0
- package/dist/components/charts/network/processSankey/useProcessSankeyScenes.d.ts +26 -0
- package/dist/components/charts/network/processSankey/validation.d.ts +33 -0
- 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/chartFamilySets.d.ts +1 -0
- package/dist/components/charts/shared/formatUtils.d.ts +12 -1
- package/dist/components/charts/shared/hatchFill.d.ts +2 -0
- package/dist/components/charts/shared/hooks.d.ts +1 -1
- package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
- package/dist/components/charts/shared/leastSquaresRegression.d.ts +31 -0
- package/dist/components/charts/shared/styleRules.d.ts +5 -1
- package/dist/components/charts/shared/useChartLegend.d.ts +14 -1
- package/dist/components/charts/shared/useChartSetup.d.ts +8 -1
- package/dist/components/charts/shared/validateProps.d.ts +2 -2
- package/dist/components/charts/shared/withChartWrapper.d.ts +0 -6
- package/dist/components/data/numericFieldProfiler.d.ts +2 -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/layout1d.d.ts +68 -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-network.d.ts +2 -2
- package/dist/components/semiotic-physics.d.ts +9 -6
- package/dist/components/semiotic-recipes-core.d.ts +8 -1
- package/dist/components/semiotic.d.ts +2 -0
- 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 +12 -3
- package/dist/components/server/staticValue.d.ts +8 -0
- package/dist/components/store/createStore.d.ts +2 -0
- package/dist/components/stream/OrdinalPipelineStore.d.ts +3 -0
- package/dist/components/stream/PipelineStore.d.ts +5 -0
- package/dist/components/stream/accessorUtils.d.ts +21 -0
- package/dist/components/stream/frameKeyboardNavigation.d.ts +3 -2
- package/dist/components/stream/geoPipelineConfig.d.ts +10 -0
- package/dist/components/stream/layouts/forceLayoutWorkerClient.d.ts +3 -8
- package/dist/components/stream/layouts/index.d.ts +1 -1
- package/dist/components/stream/legendRenderer.d.ts +8 -0
- package/dist/components/stream/moduleWorkerSession.d.ts +67 -0
- package/dist/components/stream/networkTypes.d.ts +2 -0
- package/dist/components/stream/ordinalSceneBuilders/sceneBuilderMap.d.ts +2 -1
- package/dist/components/stream/physics/PhysicsEvidence.d.ts +37 -0
- package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -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/pipelineIntroCancellation.d.ts +6 -0
- package/dist/components/stream/pipelineTransitions.d.ts +15 -1
- package/dist/components/stream/renderers/canvasRenderHelpers.d.ts +16 -4
- package/dist/components/stream/renderers/symbolCanvasRenderer.d.ts +4 -0
- package/dist/components/stream/symbolPath.d.ts +8 -0
- package/dist/components/stream/types.d.ts +4 -0
- package/dist/components/stream/useCanvasFrameHost.d.ts +6 -0
- package/dist/components/stream/useSemanticFrameInteractions.d.ts +12 -3
- package/dist/components/stream/xyFrameAxisTypes.d.ts +4 -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/forceLayoutWorker.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/processSankeyLayoutWorker.js +1 -0
- 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-network.d.ts +2 -2
- 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 +8 -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-themes-core.module.min.js +1 -1
- package/dist/semiotic-themes-react.module.min.js +1 -1
- package/dist/semiotic-themes.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-react.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-value.min.js +1 -1
- package/dist/semiotic-value.module.min.js +1 -1
- package/dist/semiotic.d.ts +2 -0
- 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 +21 -4
- 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-3NGIKFD6.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-DSNGDNJY.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-OM6NWS4H.module.min.js +0 -2
- package/dist/chunk-chunk-PRDGLMJT.module.min.js +0 -2
- package/dist/chunk-chunk-PX5YQGDP.module.min.js +0 -2
- package/dist/chunk-chunk-Q2BS46W2.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-SMVD3EQJ.module.min.js +0 -2
- 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-WCX6U47H.module.min.js +0 -2
- 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
- package/dist/chunk-statisticalOverlays-6MVAK5RW.module.min.js +0 -2
- package/dist/components/stream/renderers/networkSymbolRenderer.d.ts +0 -2
|
@@ -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";
|
|
@@ -54,6 +59,8 @@ export type { GeoAreaHitTargetProps, HitTargetPointProps, HitTargetRectProps, Ne
|
|
|
54
59
|
export { runs, runLengthEncode } from "./recipes/runs";
|
|
55
60
|
export type { Run, RunOptions } from "./recipes/runs";
|
|
56
61
|
export { wrapValue, shortestArcDelta, cyclicRangeContains, selectCyclicRange } from "./recipes/cyclical";
|
|
62
|
+
export { placeWithMinGap, packBandsBySilhouette, orderByBarycenter, refineByAdjacentSwaps, orderExactSmall, countPairwiseCrossings, } from "./recipes/layout1d";
|
|
63
|
+
export type { MinGapPlacementOptions, SilhouetteSample, PackedBands, WeightedOrderRelation, GuardedOrderOptions, } from "./recipes/layout1d";
|
|
57
64
|
export { packIntervals, activeCountOverDomain } from "./recipes/intervals";
|
|
58
65
|
export type { PackedInterval, PackIntervalsResult, PackIntervalsOptions, ActiveCount, ActiveCountOptions, } from "./recipes/intervals";
|
|
59
66
|
export { layoutSequence, layoutChipStrip, estimateLabelWidth, packSpanLevels, scaleArcBand, spanArcPath, spanArcPeakY, partitionSharedEdges, } from "./recipes/sequenceLayout";
|
|
@@ -89,7 +96,7 @@ export { forceLayout, mulberry32 } from "./recipes/forceLayout";
|
|
|
89
96
|
export type { ForceLayoutOptions } from "./recipes/forceLayout";
|
|
90
97
|
export { forceLayoutAsync } from "./recipes/forceLayoutAsync";
|
|
91
98
|
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";
|
|
99
|
+
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
100
|
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
101
|
export { orderByGroupDegree, arcLayout, arcPath, circularLayout, adjacencyMatrix, } from "./recipes/networkLayouts";
|
|
95
102
|
export type { ArcLayoutOptions, CircularLayoutOptions, MatrixCell, AdjacencyMatrix, AdjacencyMatrixOptions, } from "./recipes/networkLayouts";
|
|
@@ -47,6 +47,8 @@ export { useSelection, useSelectionActions, useLinkedHover, useBrushSelection, u
|
|
|
47
47
|
export { useCustomLayoutSelection } from "./stream/customLayoutSelection";
|
|
48
48
|
export { useForceLayout } from "./charts/network/useForceLayout";
|
|
49
49
|
export type { ForceLayoutStatus, UseForceLayoutResult } from "./charts/network/useForceLayout";
|
|
50
|
+
export { inventoryAtTime, toProcessSankeyTime, validateProcessSankey, formatProcessSankeyIssue, diagnoseProcessSankeyLayout, diagnoseProcessSankeyProps, explainProcessSankeyLayout, } from "./charts/network/processSankey/algorithm";
|
|
51
|
+
export type { InventoryEdge, InventoryAtTimeOptions, ProcessSankeyTimeLike, ProcessSankeyIssue, } from "./charts/network/processSankey/algorithm";
|
|
50
52
|
export type { CustomLayoutSelection } from "./stream/customLayoutSelection";
|
|
51
53
|
export type { CustomLayoutFailureDiagnostic, CustomLayoutFailureRecovery, CustomLayoutFamily } from "./stream/customLayoutFailure";
|
|
52
54
|
export type { UseSelectionOptions, UseSelectionResult, UseSelectionActionsResult, UseLinkedHoverOptions, UseLinkedHoverResult, UseBrushSelectionOptions, UseBrushSelectionResult } from "./LinkedCharts";
|
|
@@ -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[];
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
2
|
import type { LegendLayout } from "../types/legendTypes";
|
|
3
3
|
import type { StreamXYFrameProps, StreamScales, StreamLayout } from "../stream/types";
|
|
4
|
+
import type { XYFrameAxisConfig } from "../stream/xyFrameAxisTypes";
|
|
4
5
|
import type { StreamNetworkFrameProps, RealtimeEdge } from "../stream/networkTypes";
|
|
5
6
|
import type { StreamOrdinalFrameProps } from "../stream/ordinalTypes";
|
|
6
7
|
import type { StreamGeoFrameProps } from "../stream/geoTypes";
|
|
7
8
|
import type { PhysicsSettledSVGOptions } from "../stream/physics/PhysicsSettledSVG";
|
|
8
9
|
import type { PhysicsPipelineStore, PhysicsQueuedSpawn } from "../stream/physics/PhysicsPipelineStore";
|
|
9
10
|
import type { OrdinalPipelineStore } from "../stream/OrdinalPipelineStore";
|
|
10
|
-
import type { RenderEvidence } from "./renderEvidence";
|
|
11
11
|
import { resolveTheme, type ThemeInput } from "./themeResolver";
|
|
12
12
|
import type { SemioticTheme } from "../store/ThemeStore";
|
|
13
13
|
import * as React from "react";
|
|
14
14
|
import { type AxisExtentMode } from "../charts/shared/axisExtent";
|
|
15
|
-
|
|
15
|
+
import { type AxisChromeInput } from "../legendLayout";
|
|
16
|
+
export type FrameType = "xy" | "ordinal" | "network" | "geo" | "physics";
|
|
16
17
|
export type StaticPhysicsFrameProps = PhysicsSettledSVGOptions & {
|
|
17
18
|
config?: ConstructorParameters<typeof PhysicsPipelineStore>[0];
|
|
18
19
|
initialSpawns?: PhysicsQueuedSpawn[];
|
|
@@ -55,6 +56,11 @@ type LegendPosition = "right" | "left" | "top" | "bottom";
|
|
|
55
56
|
type StaticLegendHostProps = ThemeAwareProps & {
|
|
56
57
|
legend?: unknown;
|
|
57
58
|
colorScheme?: string | string[] | Record<string, string>;
|
|
59
|
+
/**
|
|
60
|
+
* Bottom-axis chrome, so a bottom legend is placed and reserved outside the
|
|
61
|
+
* tick labels. Frames without a horizontal axis omit it and keep a 0 gutter.
|
|
62
|
+
*/
|
|
63
|
+
axisChrome?: AxisChromeInput;
|
|
58
64
|
};
|
|
59
65
|
/**
|
|
60
66
|
* The client HOCs reserve a minimum legend gutter before layout. The static
|
|
@@ -80,6 +86,7 @@ export declare function reserveStaticLegendMargin(margin: {
|
|
|
80
86
|
legendLayout?: LegendLayout;
|
|
81
87
|
minimumMargin?: number;
|
|
82
88
|
preserveExplicitMargin?: boolean;
|
|
89
|
+
axisChrome?: AxisChromeInput;
|
|
83
90
|
}): void;
|
|
84
91
|
export declare function reserveLegendConfigMargin(margin: {
|
|
85
92
|
top: number;
|
|
@@ -95,6 +102,7 @@ export declare function reserveLegendConfigMargin(margin: {
|
|
|
95
102
|
legendLayout?: LegendLayout;
|
|
96
103
|
minimumMargin?: number;
|
|
97
104
|
preserveExplicitMargin?: boolean;
|
|
105
|
+
axisChrome?: AxisChromeInput;
|
|
98
106
|
}): void;
|
|
99
107
|
export declare function renderLegendConfig(legend: unknown, options: {
|
|
100
108
|
theme: ReturnType<typeof resolveTheme>;
|
|
@@ -110,6 +118,7 @@ export declare function renderLegendConfig(legend: unknown, options: {
|
|
|
110
118
|
legendLayout?: LegendLayout;
|
|
111
119
|
idPrefix?: string;
|
|
112
120
|
reservedWidth?: number;
|
|
121
|
+
axisChrome?: AxisChromeInput;
|
|
113
122
|
}): React.ReactNode;
|
|
114
123
|
/** Reserve the plot gutter for either a supplied legend config or categories. */
|
|
115
124
|
export declare function reserveFrameLegendMargin(margin: {
|
|
@@ -140,7 +149,7 @@ export declare function renderFrameLegend(options: {
|
|
|
140
149
|
}): React.ReactNode;
|
|
141
150
|
export declare function defaultTickFormat(v: number): string;
|
|
142
151
|
/** Render grid lines for XY charts */
|
|
143
|
-
export declare function renderGridSVG(scales: StreamScales, layout: StreamLayout, theme: SemioticTheme, idPrefix?: string, axisExtent?: AxisExtentMode): React.ReactNode;
|
|
152
|
+
export declare function renderGridSVG(scales: StreamScales, layout: StreamLayout, theme: SemioticTheme, idPrefix?: string, axisExtent?: AxisExtentMode, axes?: XYFrameAxisConfig[]): React.ReactNode;
|
|
144
153
|
/** Render grid lines for ordinal charts */
|
|
145
154
|
export declare function renderOrdinalGridSVG(store: OrdinalPipelineStore, layout: {
|
|
146
155
|
width: number;
|
|
@@ -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;
|
|
@@ -4,3 +4,5 @@ export interface StoreProviderProps<T> {
|
|
|
4
4
|
initialState?: Partial<T>;
|
|
5
5
|
}
|
|
6
6
|
export declare function createStore<T>(fn: (set: (updater: (current: T) => Partial<T>) => void) => T): [React.FC<StoreProviderProps<T>>, <R>(selector: (state: T) => R, equalityFn?: (a: R, b: R) => boolean) => R];
|
|
7
|
+
/** True if `value` has at least one of its own enumerable keys. */
|
|
8
|
+
export declare function hasOwnEnumerableKey(value: object): boolean;
|
|
@@ -166,6 +166,9 @@ export declare class OrdinalPipelineStore implements UpdateResultStore {
|
|
|
166
166
|
* for the full rationale — Stream Frames call this when they detect
|
|
167
167
|
* SSR hydration so the canvas takeover doesn't re-animate from blank
|
|
168
168
|
* after the server already painted the chart.
|
|
169
|
+
*
|
|
170
|
+
* Snaps point/rect/wedge geometry + opacity targets so a mid-intro
|
|
171
|
+
* cancel cannot leave marks at partial lerp opacity.
|
|
169
172
|
*/
|
|
170
173
|
cancelIntroAnimation(): void;
|
|
171
174
|
/**
|
|
@@ -216,6 +216,11 @@ export declare class PipelineStore implements UpdateResultStore {
|
|
|
216
216
|
* sets it to 0. Without the clear, line / area charts would paint
|
|
217
217
|
* blank on the first canvas frame after hydration.
|
|
218
218
|
*
|
|
219
|
+
* Fill-based marks (point/glyph/rect/heatcell/candlestick) also snap
|
|
220
|
+
* geometry + opacity targets so a mid-intro cancel cannot leave
|
|
221
|
+
* `style.opacity` stuck at a partial lerp value (visible as faded
|
|
222
|
+
* circles after tab-away / SSR swap).
|
|
223
|
+
*
|
|
219
224
|
* Idempotent — a second call is a no-op since the maps are already
|
|
220
225
|
* empty and the per-node flags are already undefined.
|
|
221
226
|
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
1
2
|
/**
|
|
2
3
|
* Compare two accessor specs for equivalence, using **identity** semantics.
|
|
3
4
|
* - String accessors: compared by value (`"value" === "value"`).
|
|
@@ -29,3 +30,23 @@ export type CoercibleNumber = number | Date | string;
|
|
|
29
30
|
export declare function resolveAccessor<T extends Record<string, unknown>>(accessor: string | ((d: T) => CoercibleNumber) | undefined, fallback: string): (d: T) => number;
|
|
30
31
|
export declare function resolveRawAccessor<T extends Record<string, unknown>, TResult>(accessor: string | ((d: T) => TResult) | undefined, fallback: string): (d: T) => TResult;
|
|
31
32
|
export declare function resolveStringAccessor<T extends Record<string, unknown>>(accessor: string | ((d: T) => string) | undefined, fallback?: string): ((d: T) => string) | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Resolve a `nodeLabel` accessor (string key or function) into a label
|
|
35
|
+
* function, or `null` when unset — the network layout plugins' shared
|
|
36
|
+
* convention for "no label configured" (as opposed to `resolveStringAccessor`'s
|
|
37
|
+
* `undefined`). A string accessor falls back to `d.id` when the field is
|
|
38
|
+
* missing/empty. Shared by the chord/force/sankey layout plugins; hierarchy
|
|
39
|
+
* layouts use their own `resolveLabelFn` in `layouts/hierarchyUtils.ts`
|
|
40
|
+
* instead, since a hierarchy scene node nests the original datum under
|
|
41
|
+
* `.data` and must unwrap it before calling a user accessor.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveLabelFn(nodeLabel: string | ((d: Datum) => string) | undefined): ((d: Datum) => string) | null;
|
|
44
|
+
/**
|
|
45
|
+
* Resolve a d3-force-style edge endpoint (`source`/`target`) to its node id.
|
|
46
|
+
* Before a force/sankey/chord simulation resolves string ids into node
|
|
47
|
+
* object references, an edge endpoint is `string | { id: string }`; this
|
|
48
|
+
* reads the id either way. Shared by the chord/force/sankey layout plugins.
|
|
49
|
+
*/
|
|
50
|
+
export declare function resolveNodeRefId(ref: string | {
|
|
51
|
+
id: string;
|
|
52
|
+
}): string;
|
|
@@ -18,8 +18,9 @@ interface KeyboardInteractionParams<Store, Node = unknown> {
|
|
|
18
18
|
hoverRef: RefValue<HoverData | null>;
|
|
19
19
|
hoveredNodeRef?: RefValue<Node | null>;
|
|
20
20
|
setHoverPoint: SetHoverPoint;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
/** Optional — absent when neither a user callback nor onObservation is wired. */
|
|
22
|
+
customHoverBehavior?: SemanticHoverBehavior<HoverData>;
|
|
23
|
+
customClickBehavior?: SemanticClickBehavior<HoverData>;
|
|
23
24
|
scheduleRender: () => void;
|
|
24
25
|
}
|
|
25
26
|
export declare function useXYKeyboardNavigation(params: KeyboardInteractionParams<PipelineStore, SceneNode>): {
|
|
@@ -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>;
|
|
@@ -34,20 +34,15 @@ export declare function createFrameForceWorkerRequest(nodes: RealtimeNode[], edg
|
|
|
34
34
|
y: number;
|
|
35
35
|
}> | null): FrameForceWorkerRequest;
|
|
36
36
|
/**
|
|
37
|
-
* Long-lived force-layout worker session.
|
|
38
|
-
*
|
|
39
|
-
* paid once per page, not once per graph re-layout.
|
|
37
|
+
* Long-lived force-layout worker session. Built on {@link ModuleWorkerSession}
|
|
38
|
+
* so request-id / abort / terminate plumbing is shared with ProcessSankey.
|
|
40
39
|
*/
|
|
41
40
|
export declare class ForceLayoutWorkerSession {
|
|
42
|
-
private
|
|
43
|
-
private pending;
|
|
44
|
-
private worker;
|
|
45
|
-
private dead;
|
|
41
|
+
private readonly session;
|
|
46
42
|
constructor(worker?: Worker);
|
|
47
43
|
get isDead(): boolean;
|
|
48
44
|
request(request: ForceWorkerRequest, signal?: AbortSignal): Promise<ForceWorkerResponse>;
|
|
49
45
|
terminate(): void;
|
|
50
|
-
private rejectAll;
|
|
51
46
|
}
|
|
52
47
|
/** Test helper: drop the shared session so the next call creates a fresh Worker. */
|
|
53
48
|
export declare function _resetSharedForceLayoutSessionForTest(): void;
|
|
@@ -7,6 +7,6 @@ import { orbitLayoutPlugin } from "./orbitLayoutPlugin";
|
|
|
7
7
|
/**
|
|
8
8
|
* Registry mapping network chart types to their layout plugins.
|
|
9
9
|
*/
|
|
10
|
-
export declare const networkLayoutRegistry: Record<
|
|
10
|
+
export declare const networkLayoutRegistry: Record<NetworkChartType, NetworkLayoutPlugin>;
|
|
11
11
|
export declare function getLayoutPlugin(chartType: NetworkChartType): NetworkLayoutPlugin | undefined;
|
|
12
12
|
export { sankeyLayoutPlugin, forceLayoutPlugin, chordLayoutPlugin, hierarchyLayoutPlugin, orbitLayoutPlugin };
|
|
@@ -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.
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared long-lived module-worker session for layout offload (force, ProcessSankey).
|
|
3
|
+
*
|
|
4
|
+
* One Worker is reused across requests so module parse + startup is paid once
|
|
5
|
+
* per page. Callers supply wire parse / createWorker; this owns request ids,
|
|
6
|
+
* abort wiring, and terminate/reject-all lifecycle.
|
|
7
|
+
*/
|
|
8
|
+
export interface ModuleWorkerErrorPayload {
|
|
9
|
+
message: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
stack?: string;
|
|
12
|
+
}
|
|
13
|
+
export type ParsedModuleWorkerMessage<TResponse> = {
|
|
14
|
+
requestId?: number;
|
|
15
|
+
ok: true;
|
|
16
|
+
payload: TResponse;
|
|
17
|
+
} | {
|
|
18
|
+
requestId?: number;
|
|
19
|
+
ok: false;
|
|
20
|
+
error: Error;
|
|
21
|
+
};
|
|
22
|
+
export interface ModuleWorkerSessionOptions<TRequest, TResponse> {
|
|
23
|
+
/** Human-readable worker name (AbortError / terminate messages). */
|
|
24
|
+
name: string;
|
|
25
|
+
createWorker: () => Worker;
|
|
26
|
+
/**
|
|
27
|
+
* Map an `onmessage` payload into a success/error result.
|
|
28
|
+
* `requestId` may be omitted for one-shot workers (oldest pending wins).
|
|
29
|
+
*/
|
|
30
|
+
parseMessage: (data: unknown) => ParsedModuleWorkerMessage<TResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* Wrap a domain request for `postMessage`. Default: `{ requestId, request }`.
|
|
33
|
+
*/
|
|
34
|
+
encodeRequest?: (requestId: number, request: TRequest) => unknown;
|
|
35
|
+
}
|
|
36
|
+
declare function errorFromPayload(payload: ModuleWorkerErrorPayload): Error;
|
|
37
|
+
/**
|
|
38
|
+
* Build a standard `{ requestId?, ok, error|payload }` parser for wire
|
|
39
|
+
* responses that carry an optional `error` object and free-form success fields.
|
|
40
|
+
*/
|
|
41
|
+
export declare function parseModuleWorkerErrorField(data: unknown): {
|
|
42
|
+
requestId?: number;
|
|
43
|
+
error?: ModuleWorkerErrorPayload;
|
|
44
|
+
};
|
|
45
|
+
export { errorFromPayload as moduleWorkerErrorFromPayload };
|
|
46
|
+
export declare class ModuleWorkerSession<TRequest, TResponse> {
|
|
47
|
+
private nextRequestId;
|
|
48
|
+
private pending;
|
|
49
|
+
private worker;
|
|
50
|
+
private dead;
|
|
51
|
+
private readonly options;
|
|
52
|
+
constructor(options: ModuleWorkerSessionOptions<TRequest, TResponse>);
|
|
53
|
+
get isDead(): boolean;
|
|
54
|
+
request(request: TRequest, signal?: AbortSignal): Promise<TResponse>;
|
|
55
|
+
terminate(): void;
|
|
56
|
+
private rejectAll;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Lazy singleton holder for a session class that exposes `isDead` + `terminate`.
|
|
60
|
+
*/
|
|
61
|
+
export declare function createSharedWorkerSessionHolder<TSession extends {
|
|
62
|
+
isDead: boolean;
|
|
63
|
+
terminate(): void;
|
|
64
|
+
}>(create: () => TSession): {
|
|
65
|
+
get: () => TSession;
|
|
66
|
+
resetForTest: () => void;
|
|
67
|
+
};
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
* chartType → pure scene builder dispatch for OrdinalPipelineStore.
|
|
3
3
|
*/
|
|
4
4
|
import type { SceneBuilderFn } from "./types";
|
|
5
|
-
|
|
5
|
+
import type { OrdinalChartType } from "../ordinalTypes";
|
|
6
|
+
export declare const ORDINAL_SCENE_BUILDERS: Partial<Record<OrdinalChartType, SceneBuilderFn>>;
|
|
@@ -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;
|
|
@@ -153,6 +153,15 @@ export interface PhysicsKernelSnapshot {
|
|
|
153
153
|
springs: PhysicsKernelSnapshotSpring[];
|
|
154
154
|
activeSensors: string[];
|
|
155
155
|
}
|
|
156
|
+
/** Read a dot-separated property path off an arbitrary value. Shared across physics controllers. */
|
|
157
|
+
export declare function valueAtPath(source: unknown, path: string): unknown;
|
|
158
|
+
/**
|
|
159
|
+
* Test whether a body matches a `PhysicsColliderBodyFilter` — a predicate
|
|
160
|
+
* function or a declarative equals/notEquals/oneOf/notOneOf spec. Shared by
|
|
161
|
+
* collider/sensor permeability here and by the capacity-queue and
|
|
162
|
+
* service-operations controllers' own `bodyFilter` options.
|
|
163
|
+
*/
|
|
164
|
+
export declare function matchesPhysicsBodyFilter(body: PhysicsBodyState, filter: PhysicsColliderBodyFilter | undefined): boolean;
|
|
156
165
|
export declare class PhysicsKernelWorld {
|
|
157
166
|
readonly capabilities: {
|
|
158
167
|
determinism: "strict";
|