semiotic 3.9.2 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +97 -76
- package/agent-skill/semiotic-charts/SKILL.md +13 -7
- package/ai/artifact-contract-reference.md +408 -0
- package/ai/artifact-surface-inventory.json +5586 -0
- package/ai/behaviorContracts.cjs +24 -2
- package/ai/cli.js +480 -56
- package/ai/componentMetadata.cjs +3 -1
- package/ai/dist/mcp-server.js +68 -68
- package/ai/examples.md +68 -1
- package/ai/reference.md +105 -14
- package/ai/schema.json +6646 -18
- package/ai/surface-manifest.json +34 -6
- package/ai/system-prompt.md +2 -0
- package/ai/task-packets/compare-category-totals.json +301 -0
- package/ai/task-packets/compare-category-totals.md +188 -0
- package/ai/task-packets/correct-published-chart.json +271 -0
- package/ai/task-packets/correct-published-chart.md +597 -0
- package/ai/task-packets/index.json +40 -0
- package/ai/task-packets/update-live-chart.json +289 -0
- package/ai/task-packets/update-live-chart.md +424 -0
- package/dist/c-2N7IU2NY.min.js +1 -0
- package/dist/c-2RL2QPZJ.min.js +1 -0
- package/dist/c-2WK7YJLL.min.js +1 -0
- package/dist/c-42PLDTX7.min.js +1 -0
- package/dist/c-45CQWZZ6.min.js +1 -0
- package/dist/c-4BRHKVKV.min.js +1 -0
- package/dist/c-7242NXSG.min.js +1 -0
- package/dist/c-7DVPSB5C.min.js +1 -0
- package/dist/c-7EGHJU2F.min.js +1 -0
- package/dist/c-A7OGOFSL.min.js +1 -0
- package/dist/c-AFBSWT77.min.js +1 -0
- package/dist/c-AH5HWZWS.min.js +1 -0
- package/dist/c-AJ7EC32V.min.js +1 -0
- package/dist/c-AQADQNY7.min.js +1 -0
- package/dist/c-ATM475SA.min.js +1 -0
- package/dist/c-AVO3Q7T7.min.js +1 -0
- package/dist/c-B7GW7IHJ.min.js +1 -0
- package/dist/c-BNFJMDHN.min.js +1 -0
- package/dist/c-BOHCQILI.min.js +1 -0
- package/dist/c-C3TZLTZK.min.js +1 -0
- package/dist/c-CGQAQWBV.min.js +1 -0
- package/dist/c-CPV4N35K.min.js +1 -0
- package/dist/c-D6HAAPTX.min.js +1 -0
- package/dist/c-DIPEYUOW.min.js +1 -0
- package/dist/c-E4JDJH4I.min.js +1 -0
- package/dist/c-E72OTUZU.min.js +1 -0
- package/dist/c-E7I2L7CU.min.js +1 -0
- package/dist/c-ELDWAO2V.min.js +1 -0
- package/dist/c-EUBTECGM.min.js +1 -0
- package/dist/c-EUMPMDCS.min.js +1 -0
- package/dist/c-EZZT2WAE.min.js +1 -0
- package/dist/c-FHBVFCQB.min.js +1 -0
- package/dist/c-G4HCO2IQ.min.js +1 -0
- package/dist/c-G5VIJEOK.min.js +1 -0
- package/dist/c-GHVOXAYH.min.js +1 -0
- package/dist/c-GNTXRXRN.min.js +1 -0
- package/dist/c-GXV3C3MO.min.js +1 -0
- package/dist/c-HHTK2R75.min.js +1 -0
- package/dist/c-HLLFJYTY.min.js +1 -0
- package/dist/c-HP4ZFM47.min.js +1 -0
- package/dist/c-HPOYKCCG.min.js +1 -0
- package/dist/c-HYDTS5OP.min.js +1 -0
- package/dist/c-I4QJ6YLM.min.js +1 -0
- package/dist/c-IK33LNZ6.min.js +1 -0
- package/dist/c-IK3PZHRY.min.js +1 -0
- package/dist/c-J6DVC236.min.js +1 -0
- package/dist/c-JIMJF6F6.min.js +1 -0
- package/dist/c-JUKIWTBJ.min.js +1 -0
- package/dist/c-KKPMHAZC.min.js +1 -0
- package/dist/c-L6WNDBHV.min.js +1 -0
- package/dist/c-LDEX5OFW.min.js +1 -0
- package/dist/c-LESEUVC5.min.js +1 -0
- package/dist/c-LYQMZMZQ.min.js +1 -0
- package/dist/c-MB6CV5NC.min.js +1 -0
- package/dist/c-MOKJOIPE.min.js +1 -0
- package/dist/c-MVR3RWF3.min.js +1 -0
- package/dist/c-N3FXLRNT.min.js +1 -0
- package/dist/c-N5NPTJVJ.min.js +1 -0
- package/dist/c-NHBL4J67.min.js +1 -0
- package/dist/c-ODG6TFSY.min.js +1 -0
- package/dist/c-ORLEBW72.min.js +1 -0
- package/dist/c-P65V6HLO.min.js +1 -0
- package/dist/c-PRIKOLTE.min.js +1 -0
- package/dist/c-PSKKFZNP.min.js +1 -0
- package/dist/c-PSNI6KAZ.min.js +1 -0
- package/dist/c-QA3HMQJP.min.js +1 -0
- package/dist/c-R2P4RR7Q.min.js +1 -0
- package/dist/c-RFC7UAG7.min.js +1 -0
- package/dist/c-S3AZX5PP.min.js +1 -0
- package/dist/c-SGAURYHG.min.js +1 -0
- package/dist/c-SJMWU6UX.min.js +1 -0
- package/dist/c-STIIGQOD.min.js +1 -0
- package/dist/c-T2ASIJVZ.min.js +1 -0
- package/dist/c-T2V7O2LO.min.js +1 -0
- package/dist/c-TKG2NP7G.min.js +1 -0
- package/dist/c-TX3THUTO.min.js +1 -0
- package/dist/c-TX7XJM3Z.min.js +1 -0
- package/dist/c-UC7SIU2W.min.js +1 -0
- package/dist/c-UMXSJIOV.min.js +1 -0
- package/dist/c-VJTDST2R.min.js +1 -0
- package/dist/c-VRSXMLYF.min.js +1 -0
- package/dist/c-VSLWSAN2.min.js +1 -0
- package/dist/c-VXLOLYTO.min.js +1 -0
- package/dist/c-W4ZUKSEQ.min.js +1 -0
- package/dist/c-WCBRPILW.min.js +1 -0
- package/dist/c-WGHT7OCY.min.js +1 -0
- package/dist/c-WUWXGQYA.min.js +1 -0
- package/dist/c-WWCW3APR.min.js +1 -0
- package/dist/{c-CKLIFCGN.min.js → c-XSB27XPS.min.js} +1 -1
- package/dist/c-Y6PYUMFU.min.js +1 -0
- package/dist/c-YDECTEUW.min.js +1 -0
- package/dist/c-YF3YKVQI.min.js +1 -0
- package/dist/c-YLZIV3VS.min.js +1 -0
- package/dist/c-ZIVPFTOC.min.js +1 -0
- package/dist/components/Annotation.d.ts +2 -1
- package/dist/components/ai/chartRecipeRegistry.d.ts +6 -1
- package/dist/components/ai/chartRecipes.d.ts +4 -0
- package/dist/components/ai/describePhysicsProjection.d.ts +18 -0
- package/dist/components/ai/describePhysicsSource.d.ts +13 -0
- package/dist/components/artifact/ArtifactInspector.d.ts +26 -0
- package/dist/components/artifact/ArtifactInspectorContextSections.d.ts +18 -0
- package/dist/components/artifact/artifactContractDiff.d.ts +8 -0
- package/dist/components/artifact/artifactInspectorSummary.d.ts +53 -0
- package/dist/components/artifact/artifactRevision.d.ts +54 -0
- package/dist/components/artifact/artifactTestFixtures.d.ts +17 -0
- package/dist/components/artifact/attachmentAudit.d.ts +13 -0
- package/dist/components/artifact/claimCorrections.d.ts +3 -0
- package/dist/components/artifact/claimGraph.d.ts +5 -0
- package/dist/components/artifact/claimLifecycle.d.ts +32 -0
- package/dist/components/artifact/claims.d.ts +24 -0
- package/dist/components/artifact/collection.d.ts +10 -0
- package/dist/components/artifact/collectionCorrectionScope.d.ts +4 -0
- package/dist/components/artifact/collectionImpact.d.ts +11 -0
- package/dist/components/artifact/collectionLineage.d.ts +3 -0
- package/dist/components/artifact/collectionOperations.d.ts +8 -0
- package/dist/components/artifact/collectionPolicy.d.ts +22 -0
- package/dist/components/artifact/collectionTypes.d.ts +117 -0
- package/dist/components/artifact/configurationRepair.d.ts +8 -0
- package/dist/components/artifact/contract.d.ts +30 -0
- package/dist/components/artifact/evaluateArtifact.d.ts +12 -0
- package/dist/components/artifact/evaluateArtifactTypes.d.ts +78 -0
- package/dist/components/artifact/evaluationPresentation.d.ts +9 -0
- package/dist/components/artifact/evidenceSample.d.ts +8 -0
- package/dist/components/artifact/exportPaths.d.ts +8 -0
- package/dist/components/artifact/fieldPolicies.d.ts +12 -0
- package/dist/components/artifact/fingerprint.d.ts +36 -0
- package/dist/components/artifact/grounding.d.ts +51 -0
- package/dist/components/artifact/groundingBudget.d.ts +38 -0
- package/dist/components/artifact/hostTransfer.d.ts +13 -0
- package/dist/components/artifact/identity.d.ts +19 -0
- package/dist/components/artifact/inheritance.d.ts +48 -0
- package/dist/components/artifact/inheritanceIntegrity.d.ts +3 -0
- package/dist/components/artifact/jsonCompatibility.d.ts +2 -0
- package/dist/components/artifact/obligations.d.ts +3 -0
- package/dist/components/artifact/policies.d.ts +45 -0
- package/dist/components/artifact/policyRelations.d.ts +3 -0
- package/dist/components/artifact/recordProjection.d.ts +7 -0
- package/dist/components/artifact/representation.d.ts +50 -0
- package/dist/components/artifact/serialization.d.ts +40 -0
- package/dist/components/artifact/temporal.d.ts +32 -0
- package/dist/components/artifact/temporalAdapters.d.ts +75 -0
- package/dist/components/artifact/temporalAuditHelpers.d.ts +12 -0
- package/dist/components/artifact/temporalPresentation.d.ts +8 -0
- package/dist/components/artifact/types.d.ts +341 -0
- package/dist/components/artifact/validation.d.ts +13 -0
- package/dist/components/artifact/validationFieldStatus.d.ts +7 -0
- package/dist/components/artifact/validationPrimitives.d.ts +24 -0
- package/dist/components/artifact/validationSurfaces.d.ts +7 -0
- package/dist/components/artifact/validationTemporal.d.ts +3 -0
- package/dist/components/charts/geo/FlowMap.d.ts +7 -0
- package/dist/components/charts/geo/flowMapLineStyle.d.ts +18 -0
- package/dist/components/charts/ordinal/DonutChart.d.ts +2 -0
- package/dist/components/charts/ordinal/FunnelChart.d.ts +2 -0
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -0
- package/dist/components/charts/ordinal/PieChart.d.ts +2 -0
- package/dist/components/charts/ordinal/RadarChart.d.ts +2 -0
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -0
- package/dist/components/charts/physics/CollisionSwarmChart.d.ts +1 -1
- package/dist/components/charts/physics/EventDropChart.d.ts +3 -1
- package/dist/components/charts/physics/GaltonBoardChart.d.ts +4 -2
- package/dist/components/charts/physics/ProcessFlowChart.d.ts +6 -0
- package/dist/components/charts/physics/UnitPileChart.d.ts +2 -1
- package/dist/components/charts/physics/collisionSwarmPacking.d.ts +14 -0
- package/dist/components/charts/physics/collisionSwarmPhysics.d.ts +1 -0
- package/dist/components/charts/physics/eventDropAdmission.d.ts +32 -0
- package/dist/components/charts/physics/eventDropPhysics.d.ts +22 -1
- package/dist/components/charts/physics/galtonBoardPhysics.d.ts +2 -9
- package/dist/components/charts/physics/physicsChartReconcile.d.ts +4 -0
- package/dist/components/charts/physics/physicsChartUtils.d.ts +1 -1
- package/dist/components/charts/physics/physicsGaltonData.d.ts +10 -0
- package/dist/components/charts/physics/physicsHocHandle.d.ts +2 -0
- package/dist/components/charts/physics/physicsPileData.d.ts +11 -0
- package/dist/components/charts/physics/physicsPilePhysics.d.ts +5 -12
- package/dist/components/charts/physics/physicsProjectionOverlays.d.ts +1 -1
- package/dist/components/charts/physics/physicsSourceRows.d.ts +8 -0
- package/dist/components/charts/physics/usePhysicsChartData.d.ts +19 -0
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +4 -0
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +14 -6
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +4 -0
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +4 -0
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +4 -0
- package/dist/components/charts/realtime/realtimeAccessors.d.ts +4 -0
- package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +8 -7
- package/dist/components/charts/realtime/realtimeChartTypes.d.ts +7 -0
- package/dist/components/charts/realtime/temporalHistogramConfig.d.ts +17 -11
- package/dist/components/charts/shared/GaugeReadout.d.ts +9 -0
- package/dist/components/charts/shared/ThresholdAnnotation.d.ts +18 -0
- package/dist/components/charts/shared/ThresholdEndCap.d.ts +7 -0
- package/dist/components/charts/shared/auditAccessibilityText.d.ts +4 -2
- package/dist/components/charts/shared/chartDataProps.d.ts +3 -0
- package/dist/components/charts/shared/chartSpecAtlasSchemas.d.ts +5 -0
- package/dist/components/charts/shared/chartSpecCore.d.ts +4 -0
- package/dist/components/charts/shared/chartSpecsAtlas.d.ts +2 -0
- package/dist/components/charts/shared/hooks.d.ts +3 -1
- package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
- package/dist/components/charts/shared/numericTickFormatter.d.ts +2 -0
- package/dist/components/charts/shared/radialCenterContent.d.ts +10 -0
- package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
- package/dist/components/charts/shared/useChartLegend.d.ts +4 -0
- package/dist/components/charts/shared/useXYPointStyle.d.ts +2 -0
- package/dist/components/charts/xy/BubbleChart.d.ts +7 -0
- package/dist/components/charts/xy/CandlestickChart.d.ts +7 -0
- package/dist/components/charts/xy/DifferenceChart.d.ts +7 -0
- package/dist/components/charts/xy/MinimapChart.d.ts +7 -0
- package/dist/components/charts/xy/MultiAxisLineChart.d.ts +7 -0
- package/dist/components/charts/xy/ScatterplotMatrix.d.ts +6 -0
- package/dist/components/charts/xy/WaterfallChart.d.ts +8 -0
- package/dist/components/charts/xy/differenceMarkStyle.d.ts +28 -0
- package/dist/components/charts/xy/multiAxisFields.d.ts +23 -0
- package/dist/components/charts/xy/scatterplotMatrixCells.d.ts +50 -0
- package/dist/components/evidence/chartEvidenceEnvelope.d.ts +16 -8
- package/dist/components/evidence/evidenceEnvelopeInput.d.ts +8 -0
- package/dist/components/evidence/evidenceEnvelopeValidation.d.ts +11 -0
- package/dist/components/evidence/evidenceGate.d.ts +3 -1
- package/dist/components/evidence/renderedSceneHash.d.ts +23 -0
- package/dist/components/evidence/stableJsonHash.d.ts +4 -0
- package/dist/components/export/chartConfig.d.ts +40 -5
- package/dist/components/export/chartConfigArtifact.d.ts +6 -0
- package/dist/components/legendLayout.d.ts +18 -0
- package/dist/components/legendStyles.d.ts +4 -0
- package/dist/components/recipes/atlas/DependencyForestChart.d.ts +20 -0
- package/dist/components/recipes/atlas/DependencyMatrix.d.ts +7 -0
- package/dist/components/recipes/atlas/FlowCircuitChart.d.ts +20 -0
- package/dist/components/recipes/atlas/MotifBraidChart.d.ts +17 -0
- package/dist/components/recipes/atlas/atlasChartOptions.d.ts +11 -0
- package/dist/components/recipes/atlas/braid.d.ts +62 -0
- package/dist/components/recipes/atlas/capsules.d.ts +18 -0
- package/dist/components/recipes/atlas/compare.d.ts +4 -0
- package/dist/components/recipes/atlas/completeness.d.ts +2 -0
- package/dist/components/recipes/atlas/dependencyForest.d.ts +32 -0
- package/dist/components/recipes/atlas/dependencyForestChartProps.d.ts +58 -0
- package/dist/components/recipes/atlas/dependencyForestLayout.d.ts +17 -0
- package/dist/components/recipes/atlas/dependencyQueries.d.ts +20 -0
- package/dist/components/recipes/atlas/dependencyTypes.d.ts +21 -0
- package/dist/components/recipes/atlas/directedGraph.d.ts +9 -0
- package/dist/components/recipes/atlas/entityCounts.d.ts +3 -0
- package/dist/components/recipes/atlas/flowCircuit.d.ts +32 -0
- package/dist/components/recipes/atlas/flowCircuitChartProps.d.ts +72 -0
- package/dist/components/recipes/atlas/flowCircuitChrome.d.ts +18 -0
- package/dist/components/recipes/atlas/flowCircuitGeometry.d.ts +11 -0
- package/dist/components/recipes/atlas/flowCircuitLayout.d.ts +20 -0
- package/dist/components/recipes/atlas/flowCircuitSemantics.d.ts +26 -0
- package/dist/components/recipes/atlas/flowCircuitTape.d.ts +22 -0
- package/dist/components/recipes/atlas/flowCircuitTypes.d.ts +144 -0
- package/dist/components/recipes/atlas/forests.d.ts +11 -0
- package/dist/components/recipes/atlas/ids.d.ts +6 -0
- package/dist/components/recipes/atlas/index.d.ts +26 -0
- package/dist/components/recipes/atlas/ledger.d.ts +7 -0
- package/dist/components/recipes/atlas/motifBraidChartProps.d.ts +51 -0
- package/dist/components/recipes/atlas/motifBraidGeometry.d.ts +5 -0
- package/dist/components/recipes/atlas/motifBraidLayout.d.ts +11 -0
- package/dist/components/recipes/atlas/motifs.d.ts +3 -0
- package/dist/components/recipes/atlas/prefixForest.d.ts +9 -0
- package/dist/components/recipes/atlas/prepare.d.ts +14 -0
- package/dist/components/recipes/atlas/prepareAsync.d.ts +7 -0
- package/dist/components/recipes/atlas/profile.d.ts +19 -0
- package/dist/components/recipes/atlas/publish.d.ts +10 -0
- package/dist/components/recipes/atlas/queries.d.ts +34 -0
- package/dist/components/recipes/atlas/requiredPaths.d.ts +9 -0
- package/dist/components/recipes/atlas/rootedForest.d.ts +4 -0
- package/dist/components/recipes/atlas/sections.d.ts +3 -0
- package/dist/components/recipes/atlas/support.d.ts +7 -0
- package/dist/components/recipes/atlas/types.d.ts +278 -0
- package/dist/components/recipes/atlas/validate.d.ts +12 -0
- package/dist/components/recipes/firstAvailableTrack.d.ts +17 -0
- package/dist/components/recipes/intervals.d.ts +1 -1
- package/dist/components/semiotic-ai-core.d.ts +33 -22
- package/dist/components/semiotic-ai.d.ts +15 -3
- package/dist/components/semiotic-artifact-react.d.ts +10 -0
- package/dist/components/semiotic-artifact.d.ts +23 -0
- package/dist/components/semiotic-atlas-core.d.ts +20 -0
- package/dist/components/semiotic-atlas.d.ts +8 -0
- package/dist/components/semiotic-experimental.d.ts +1 -1
- package/dist/components/semiotic-physics.d.ts +4 -4
- package/dist/components/semiotic-recipes-core.d.ts +9 -0
- package/dist/components/semiotic-text.d.ts +2 -0
- package/dist/components/semiotic-utils-core.d.ts +18 -18
- package/dist/components/semiotic.d.ts +3 -3
- package/dist/components/server/renderEvidence.d.ts +12 -0
- package/dist/components/server/renderToStaticSVG.d.ts +3 -0
- package/dist/components/server/serverChartConfigs.d.ts +3 -0
- package/dist/components/server/serverChartConfigsAtlas.d.ts +4 -0
- package/dist/components/server/staticSVGChrome.d.ts +1 -4
- package/dist/components/server/staticXYAxisTicks.d.ts +2 -38
- package/dist/components/server/staticXYGrid.d.ts +1 -1
- package/dist/components/server/svgSizing.d.ts +6 -0
- package/dist/components/shared/svgRoot.d.ts +17 -0
- package/dist/components/store/selectionProvenance.d.ts +6 -0
- package/dist/components/stream/GeoSVGOverlay.d.ts +4 -0
- package/dist/components/stream/NetworkPipelineStore.d.ts +1 -0
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -0
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +4 -0
- package/dist/components/stream/SVGOverlay.d.ts +4 -0
- package/dist/components/stream/SceneToSVG.d.ts +4 -19
- package/dist/components/stream/SceneToSVGXY.d.ts +13 -0
- package/dist/components/stream/StreamGeoFrame.d.ts +1 -2
- package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -2
- package/dist/components/stream/XYGrid.d.ts +11 -0
- package/dist/components/stream/axisTickUtils.d.ts +0 -1
- package/dist/components/stream/canvasSetup.d.ts +1 -2
- package/dist/components/stream/fontLoading.d.ts +4 -0
- package/dist/components/stream/hitTestUtils.d.ts +2 -0
- package/dist/components/stream/networkCustomLayout.d.ts +8 -0
- package/dist/components/stream/networkCustomLayoutCache.d.ts +12 -0
- package/dist/components/stream/networkPipelineConfig.d.ts +0 -7
- package/dist/components/stream/overlayAccessibleText.d.ts +18 -0
- package/dist/components/stream/physics/PhysicsControllers.d.ts +1 -1
- package/dist/components/stream/physics/PhysicsKernel.d.ts +9 -0
- package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +5 -4
- package/dist/components/stream/physics/PhysicsPipelineTypes.d.ts +9 -0
- package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +3 -0
- package/dist/components/stream/physics/physicsCanvasCoordinates.d.ts +5 -0
- package/dist/components/stream/physics/physicsFixedPosition.d.ts +16 -0
- package/dist/components/stream/physics/physicsKernelCloning.d.ts +6 -0
- package/dist/components/stream/physics/physicsPipelineObservations.d.ts +2 -0
- package/dist/components/stream/physics/physicsPipelineSettle.d.ts +15 -9
- package/dist/components/stream/physics/physicsRegionRuntime.d.ts +8 -17
- package/dist/components/stream/physics/physicsSemanticUI.d.ts +11 -0
- package/dist/components/stream/physics/usePhysicsCanvasPointer.d.ts +3 -1
- package/dist/components/stream/physics/usePhysicsSemanticNavigation.d.ts +2 -0
- package/dist/components/stream/pipelineConfig.d.ts +4 -0
- package/dist/components/stream/pipelineStoreUpdateResults.d.ts +1 -1
- package/dist/components/stream/resolveXYAxes.d.ts +13 -0
- package/dist/components/stream/sceneToSVGShared.d.ts +2 -1
- package/dist/components/stream/seriesGeometry.d.ts +13 -0
- package/dist/components/stream/shallowEqual.d.ts +2 -0
- package/dist/components/stream/streamEncodingTypes.d.ts +53 -0
- package/dist/components/stream/types.d.ts +4 -53
- package/dist/components/stream/useEnsureCustomXYRenderers.d.ts +4 -2
- package/dist/components/stream/useGeoFrameHandle.d.ts +16 -0
- package/dist/components/stream/useOrdinalFrameHandle.d.ts +15 -0
- package/dist/components/stream/useXYFrameHandle.d.ts +15 -0
- package/dist/components/stream/xyAxisTicks.d.ts +25 -0
- package/dist/components/stream/xyDateTicks.d.ts +3 -2
- package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
- package/dist/components/stream/xySceneBuilders/ribbonScene.d.ts +1 -1
- package/dist/components/stream/xySceneBuilders/types.d.ts +1 -0
- package/dist/components/text/annotationTextLayout.d.ts +28 -0
- package/dist/components/text/pretextAnnotationLayout.d.ts +29 -0
- package/dist/components/text/usePretextAnnotations.d.ts +12 -0
- 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.module.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/physics-matter.min.js +1 -1
- package/dist/physics-matter.module.min.js +1 -1
- package/dist/physics-rapier.min.js +1 -1
- package/dist/physics-rapier.module.min.js +1 -1
- package/dist/physics.module.min.js +1 -1
- package/dist/physicsWorker.js +1 -1
- package/dist/processSankeyLayoutWorker.js +1 -1
- package/dist/rough.min.js +1 -1
- package/dist/rough.module.min.js +1 -1
- package/dist/semiotic-access.module.min.js +1 -1
- package/dist/semiotic-ai-artifact-policy-constants.module.min.js +2 -0
- package/dist/semiotic-ai-core.d.ts +33 -22
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai-hash-primitives.module.min.js +2 -0
- package/dist/semiotic-ai.d.ts +15 -3
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-artifact-react.d.ts +10 -0
- package/dist/semiotic-artifact-react.min.js +2 -0
- package/dist/semiotic-artifact-react.module.min.js +2 -0
- package/dist/semiotic-artifact.d.ts +23 -0
- package/dist/semiotic-artifact.min.js +1 -0
- package/dist/semiotic-artifact.module.min.js +1 -0
- package/dist/semiotic-atlas-core.d.ts +20 -0
- package/dist/semiotic-atlas-core.min.js +1 -0
- package/dist/semiotic-atlas-core.module.min.js +1 -0
- package/dist/semiotic-atlas-selection.module.min.js +2 -0
- package/dist/semiotic-atlas.d.ts +8 -0
- package/dist/semiotic-atlas.min.js +2 -0
- package/dist/semiotic-atlas.module.min.js +2 -0
- package/dist/semiotic-client-cjs-shared.min.js +1 -1
- package/dist/semiotic-client-glyph.module.min.js +1 -1
- package/dist/semiotic-client-responsive.module.min.js +1 -1
- package/dist/semiotic-client-shared.module.min.js +1 -1
- package/dist/semiotic-custom-layout-selection-cjs-shared.min.js +1 -1
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-evidence.min.js +1 -1
- package/dist/semiotic-evidence.module.min.js +1 -1
- package/dist/semiotic-experimental-auxiliary.module.min.js +1 -1
- package/dist/semiotic-experimental-node-auxiliary.module.min.js +1 -1
- package/dist/semiotic-experimental-react-shared.module.min.js +1 -1
- package/dist/semiotic-experimental-vacp.min.js +1 -1
- package/dist/semiotic-experimental-vacp.module.min.js +1 -1
- package/dist/semiotic-experimental.d.ts +1 -1
- package/dist/semiotic-line.module.min.js +1 -1
- package/dist/semiotic-physics.d.ts +4 -4
- package/dist/semiotic-realtime-core.module.min.js +1 -1
- package/dist/semiotic-realtime-react.module.min.js +1 -1
- package/dist/semiotic-recipes-core-cjs-base.min.js +1 -1
- package/dist/semiotic-recipes-core.d.ts +9 -0
- package/dist/semiotic-recipes-core.module.min.js +1 -1
- package/dist/semiotic-recipes-geo-cjs.min.js +1 -1
- package/dist/semiotic-recipes-react.min.js +1 -1
- package/dist/semiotic-server-edge-node.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-text.d.ts +2 -0
- package/dist/semiotic-text.min.js +2 -0
- package/dist/semiotic-text.module.min.js +2 -0
- package/dist/semiotic-themes-core.min.js +1 -1
- package/dist/semiotic-themes-core.module.min.js +1 -1
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils-core.d.ts +18 -18
- package/dist/semiotic-utils-core.min.js +1 -1
- package/dist/semiotic-utils-core.module.min.js +1 -1
- package/dist/semiotic-value.module.min.js +1 -1
- package/dist/semiotic.d.ts +3 -3
- 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.module.min.js +1 -1
- package/package.json +70 -14
- package/spec/README.md +8 -3
- package/spec/v0.1/artifact-contract.schema.json +2299 -0
- package/spec/v0.1/examples/artifact-contract-full.json +369 -0
- package/spec/v0.1/examples/artifact-contract-unknown-state.json +46 -0
- package/dist/c-3BLJEQNG.min.js +0 -1
- package/dist/c-3SCUN5HI.min.js +0 -1
- package/dist/c-3VVKFA4M.min.js +0 -1
- package/dist/c-43TJZS3F.min.js +0 -1
- package/dist/c-4DTZPSUD.min.js +0 -1
- package/dist/c-4ES5367Y.min.js +0 -1
- package/dist/c-52TEGIUJ.min.js +0 -1
- package/dist/c-54IRWOGM.min.js +0 -1
- package/dist/c-5D2S4RMI.min.js +0 -1
- package/dist/c-5JWCTX3G.min.js +0 -1
- package/dist/c-6CMMSN6N.min.js +0 -1
- package/dist/c-6HRB2L7H.min.js +0 -1
- package/dist/c-6O5EVOPH.min.js +0 -1
- package/dist/c-7W4SV36A.min.js +0 -1
- package/dist/c-A4WRGZFX.min.js +0 -1
- package/dist/c-AG7WWVIH.min.js +0 -1
- package/dist/c-AH6J4MTN.min.js +0 -1
- package/dist/c-AKAF6JAD.min.js +0 -1
- package/dist/c-ALYR5LKK.min.js +0 -1
- package/dist/c-BBKITSXB.min.js +0 -1
- package/dist/c-BYDPC44I.min.js +0 -1
- package/dist/c-CFFIU2MW.min.js +0 -1
- package/dist/c-CGNHBHCE.min.js +0 -1
- package/dist/c-CJYSXIFV.min.js +0 -1
- package/dist/c-CZF7MV67.min.js +0 -1
- package/dist/c-D53OKBSY.min.js +0 -1
- package/dist/c-DADXPJXV.min.js +0 -1
- package/dist/c-DBQ2V7CH.min.js +0 -1
- package/dist/c-DPMVAUAW.min.js +0 -1
- package/dist/c-ECJCKLYY.min.js +0 -1
- package/dist/c-EGATGOWJ.min.js +0 -1
- package/dist/c-EGR6VYBW.min.js +0 -1
- package/dist/c-ESNR43AN.min.js +0 -1
- package/dist/c-F3LIKINL.min.js +0 -1
- package/dist/c-F5ZB5GJ6.min.js +0 -1
- package/dist/c-G36WS6LN.min.js +0 -1
- package/dist/c-G3VYMHKE.min.js +0 -1
- package/dist/c-GGISSW5E.min.js +0 -1
- package/dist/c-GR6MOEQC.min.js +0 -1
- package/dist/c-GSVCN34B.min.js +0 -1
- package/dist/c-GYOQCEFP.min.js +0 -1
- package/dist/c-H3DNMTCC.min.js +0 -1
- package/dist/c-I6J3FEZE.min.js +0 -1
- package/dist/c-IGH6MGJ5.min.js +0 -1
- package/dist/c-II2EEAJN.min.js +0 -1
- package/dist/c-IUHFPMHD.min.js +0 -1
- package/dist/c-J6M4JHRS.min.js +0 -1
- package/dist/c-JM3MGLQV.min.js +0 -1
- package/dist/c-KM3N7F7R.min.js +0 -1
- package/dist/c-LF5BZFNC.min.js +0 -1
- package/dist/c-LKBSGFQC.min.js +0 -1
- package/dist/c-MNF2S4AA.min.js +0 -1
- package/dist/c-MT3WBK7M.min.js +0 -1
- package/dist/c-NDJADPIF.min.js +0 -1
- package/dist/c-NVPQCIL5.min.js +0 -1
- package/dist/c-NY3JWV2K.min.js +0 -1
- package/dist/c-OFWJBEE5.min.js +0 -1
- package/dist/c-OYFHP5F5.min.js +0 -1
- package/dist/c-PGKQGGQ2.min.js +0 -1
- package/dist/c-PPWDL5ZI.min.js +0 -1
- package/dist/c-Q2IPZ3MU.min.js +0 -1
- package/dist/c-QKHMBE2E.min.js +0 -1
- package/dist/c-QMVM3AY6.min.js +0 -1
- package/dist/c-QSGWX53A.min.js +0 -1
- package/dist/c-RJKEKZOO.min.js +0 -1
- package/dist/c-RSVIHIQ4.min.js +0 -1
- package/dist/c-S6U5CGT5.min.js +0 -1
- package/dist/c-SFDIIU5G.min.js +0 -1
- package/dist/c-SLGMUBUL.min.js +0 -1
- package/dist/c-SRTBCRVE.min.js +0 -1
- package/dist/c-T6UAIKBH.min.js +0 -1
- package/dist/c-TMCTEVVW.min.js +0 -1
- package/dist/c-TMOSJLT3.min.js +0 -1
- package/dist/c-TZW3JGJ5.min.js +0 -1
- package/dist/c-U6ESPM7V.min.js +0 -1
- package/dist/c-UC5PTTFI.min.js +0 -1
- package/dist/c-USFMFKIH.min.js +0 -1
- package/dist/c-VGKUEZBC.min.js +0 -1
- package/dist/c-VGW3VG3I.min.js +0 -1
- package/dist/c-VN2HG5BS.min.js +0 -1
- package/dist/c-VPZDY5Q4.min.js +0 -1
- package/dist/c-VRXUB2F2.min.js +0 -1
- package/dist/c-VUBQNQJH.min.js +0 -1
- package/dist/c-VUH4PGZY.min.js +0 -1
- package/dist/c-W3CE4A4S.min.js +0 -1
- package/dist/c-X5UBGU2V.min.js +0 -1
- package/dist/c-XDRV7RKW.min.js +0 -1
- package/dist/c-YGZHURXZ.min.js +0 -1
- package/dist/c-YZVRZGX2.min.js +0 -1
- /package/dist/{c-N4G2L7ID.min.js → c-HYW2XA4Q.min.js} +0 -0
- /package/dist/{c-ENF72HU5.min.js → c-QAVFOEUY.min.js} +0 -0
- /package/dist/{c-OCI56QF2.min.js → c-V4XMSLC3.min.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Datum } from "../shared/datumTypes";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { StreamXYFrameProps } from "../../stream/types";
|
|
4
|
+
import { type StyleRule } from "../shared/styleRules";
|
|
4
5
|
import type { LegendPosition } from "../shared/hooks";
|
|
5
6
|
import type { BaseChartProps, AxisConfig, ChartAccessor } from "../shared/types";
|
|
6
7
|
import { type TooltipProp } from "../../Tooltip/Tooltip";
|
|
@@ -42,6 +43,12 @@ export interface MinimapChartProps<TDatum extends Datum = Datum> extends Omit<Ba
|
|
|
42
43
|
curve?: "linear" | "monotoneX" | "monotoneY" | "step" | "stepAfter" | "stepBefore" | "basis" | "cardinal" | "catmullRom";
|
|
43
44
|
/** Line stroke width (default: 2) */
|
|
44
45
|
lineWidth?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Declarative, threshold-aware line styling. Applied to the detail view
|
|
48
|
+
* and the default overview. Per-series against the first point, same as
|
|
49
|
+
* LineChart. `minimap.lineStyle` still wins on the overview.
|
|
50
|
+
*/
|
|
51
|
+
styleRules?: StyleRule[];
|
|
45
52
|
/** Fill area under lines */
|
|
46
53
|
fillArea?: boolean;
|
|
47
54
|
/** Area opacity when fillArea is true (default: 0.3) */
|
|
@@ -5,6 +5,7 @@ import type { RealtimeFrameHandle } from "../../realtime/types";
|
|
|
5
5
|
import type { BaseChartProps, AxisConfig, ChartAccessor } from "../shared/types";
|
|
6
6
|
import { type TooltipProp } from "../../Tooltip/Tooltip";
|
|
7
7
|
import type { LegendInteractionMode, LegendPosition } from "../shared/hooks";
|
|
8
|
+
import { type StyleRule } from "../shared/styleRules";
|
|
8
9
|
/**
|
|
9
10
|
* Configuration for a single series in a MultiAxisLineChart.
|
|
10
11
|
*/
|
|
@@ -40,6 +41,12 @@ export interface MultiAxisLineChartProps<TDatum extends Datum = Datum> extends B
|
|
|
40
41
|
curve?: CurveType;
|
|
41
42
|
/** Line width in pixels @default 2 */
|
|
42
43
|
lineWidth?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Declarative, threshold-aware line styling. Rules resolve per series against
|
|
46
|
+
* the original y (not the unitized display scale), so `{ axis: "y", gt: 10 }`
|
|
47
|
+
* matches the authored metric. Last applicable rule wins per property.
|
|
48
|
+
*/
|
|
49
|
+
styleRules?: StyleRule[];
|
|
43
50
|
/** Show legend @default true */
|
|
44
51
|
showLegend?: boolean;
|
|
45
52
|
/** Show grid lines @default false */
|
|
@@ -2,6 +2,7 @@ import type { Datum } from "../shared/datumTypes";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import type { BaseChartProps, ChartAccessor } from "../shared/types";
|
|
4
4
|
import { type TooltipProp } from "../../Tooltip/Tooltip";
|
|
5
|
+
import { type StyleRule } from "../shared/styleRules";
|
|
5
6
|
export interface ScatterplotMatrixProps<TDatum extends Datum = Datum> extends BaseChartProps {
|
|
6
7
|
/** Array of data objects */
|
|
7
8
|
data: TDatum[];
|
|
@@ -39,6 +40,11 @@ export interface ScatterplotMatrixProps<TDatum extends Datum = Datum> extends Ba
|
|
|
39
40
|
showLegend?: boolean;
|
|
40
41
|
/** Field or function to identify each data point in tooltips. Defaults to "Row {index}" */
|
|
41
42
|
idAccessor?: string | ((d: TDatum) => string);
|
|
43
|
+
/**
|
|
44
|
+
* Declarative, threshold-aware point styling applied to every scatter cell.
|
|
45
|
+
* `axis: "x"|"y"` is the cell's plotted fields; `field` reads the source row.
|
|
46
|
+
*/
|
|
47
|
+
styleRules?: StyleRule[];
|
|
42
48
|
/**
|
|
43
49
|
* Called when a point in any cell is clicked. Receives the clicked row datum
|
|
44
50
|
* and its grid-relative pixel position `{ x, y }` — the same coordinate space
|
|
@@ -5,6 +5,7 @@ import type { RealtimeFrameHandle } from "../../realtime/types";
|
|
|
5
5
|
import type { BaseChartProps, AxisConfig, ChartAccessor } from "../shared/types";
|
|
6
6
|
import { type TooltipProp } from "../../Tooltip/Tooltip";
|
|
7
7
|
import type { LegendInteractionMode, LegendPosition } from "../shared/hooks";
|
|
8
|
+
import { type StyleRule } from "../shared/styleRules";
|
|
8
9
|
export interface WaterfallChartProps<TDatum extends Datum = Datum> extends BaseChartProps, AxisConfig {
|
|
9
10
|
data?: TDatum[];
|
|
10
11
|
xAccessor?: ChartAccessor<TDatum, number | Date | string>;
|
|
@@ -17,6 +18,13 @@ export interface WaterfallChartProps<TDatum extends Datum = Datum> extends BaseC
|
|
|
17
18
|
connectorStroke?: string;
|
|
18
19
|
connectorWidth?: number;
|
|
19
20
|
gap?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Declarative, threshold-aware bar styling. Ordered `{ when, style }` rules;
|
|
23
|
+
* last applicable rule wins per property. `ctx` is `{ value, x, y }` from the
|
|
24
|
+
* step accessors so `{ axis: "y", lt: 0 }` matches negative deltas. Layers
|
|
25
|
+
* over the signed positive/negative fill; `frameProps.areaStyle` still wins.
|
|
26
|
+
*/
|
|
27
|
+
styleRules?: StyleRule[];
|
|
20
28
|
enableHover?: boolean;
|
|
21
29
|
showGrid?: boolean;
|
|
22
30
|
showLegend?: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Datum } from "../shared/datumTypes";
|
|
2
|
+
import { type StyleRule, type StyleRuleContext } from "../shared/styleRules";
|
|
3
|
+
/** Which series is on top (area) or which overlay line this vertex belongs to. */
|
|
4
|
+
export declare function differenceWinner(d: Datum): "A" | "B";
|
|
5
|
+
/**
|
|
6
|
+
* Rule context for synthesized difference rows. `axis: "x"|"y"` reads the
|
|
7
|
+
* plotted `__x`/`__y`; `field` thresholds see the original source row when
|
|
8
|
+
* `__sourceDatum` is present.
|
|
9
|
+
*/
|
|
10
|
+
export declare function makeDifferenceRuleContext(): (d: Datum) => StyleRuleContext;
|
|
11
|
+
export declare function buildDifferenceAreaStyle(options: {
|
|
12
|
+
seriesAColor: string;
|
|
13
|
+
seriesBColor: string;
|
|
14
|
+
areaOpacity: number;
|
|
15
|
+
styleRules?: ReadonlyArray<StyleRule>;
|
|
16
|
+
}): (d: Datum) => Datum;
|
|
17
|
+
export declare function buildDifferenceLineStyle(options: {
|
|
18
|
+
seriesAColor: string;
|
|
19
|
+
seriesBColor: string;
|
|
20
|
+
lineWidth: number;
|
|
21
|
+
styleRules?: ReadonlyArray<StyleRule>;
|
|
22
|
+
}): (d: Datum) => Datum;
|
|
23
|
+
export declare function buildDifferencePointStyle(options: {
|
|
24
|
+
seriesAColor: string;
|
|
25
|
+
seriesBColor: string;
|
|
26
|
+
pointRadius: number;
|
|
27
|
+
styleRules?: ReadonlyArray<StyleRule>;
|
|
28
|
+
}): (d: Datum) => Datum;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Datum } from "../shared/datumTypes";
|
|
2
|
+
import { type StyleRuleContext } from "../shared/styleRules";
|
|
3
|
+
/** Internal unitized y field shared by the MultiAxis HOC and SSR config. */
|
|
4
|
+
export declare const MULTI_AXIS_UNITIZED_FIELD = "__ma_unitized";
|
|
5
|
+
/** Internal series-identity field shared by the MultiAxis HOC and SSR config. */
|
|
6
|
+
export declare const MULTI_AXIS_SERIES_FIELD = "__ma_series";
|
|
7
|
+
/**
|
|
8
|
+
* Resolve one color per series. Per-series `color` wins, then a
|
|
9
|
+
* `{ label: color }` map, then a named/array palette, then the theme.
|
|
10
|
+
*/
|
|
11
|
+
export declare function resolveMultiAxisSeriesColors(series: ReadonlyArray<{
|
|
12
|
+
label?: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
}>, colorScheme: string | string[] | Record<string, string> | undefined, themeCategorical: readonly string[] | undefined): string[];
|
|
15
|
+
/**
|
|
16
|
+
* Style-rule context for dual-axis rows. Thresholds read the original series
|
|
17
|
+
* y (not the unitized [0, 1] plot value) so `{ axis: "y", gt: 10 }` matches
|
|
18
|
+
* the authored metric rather than the normalized display scale.
|
|
19
|
+
*/
|
|
20
|
+
export declare function makeMultiAxisRuleContext(xAccessor: string | ((d: Datum) => unknown) | undefined, series: ReadonlyArray<{
|
|
21
|
+
yAccessor?: string | ((d: Datum) => unknown);
|
|
22
|
+
label?: string;
|
|
23
|
+
}>): (d: Datum, group?: string) => StyleRuleContext;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Datum } from "../shared/datumTypes";
|
|
3
|
+
import type { ChartAccessor, ResolvedMobileInteractionConfig } from "../shared/types";
|
|
4
|
+
import { type StyleRule } from "../shared/styleRules";
|
|
5
|
+
export declare const SPLOM_IDX = "__splomIdx";
|
|
6
|
+
interface CellProps {
|
|
7
|
+
data: Datum[];
|
|
8
|
+
xField: string;
|
|
9
|
+
yField: string;
|
|
10
|
+
fieldLabels: Record<string, string>;
|
|
11
|
+
cellSize: number;
|
|
12
|
+
pointRadius: number;
|
|
13
|
+
pointOpacity: number;
|
|
14
|
+
styleRules?: StyleRule[];
|
|
15
|
+
colorBy?: ChartAccessor<Datum, string>;
|
|
16
|
+
colorScale?: (v: string) => string;
|
|
17
|
+
brushSelectionName: string;
|
|
18
|
+
hoverSelectionName: string;
|
|
19
|
+
unselectedOpacity: number;
|
|
20
|
+
showGrid: boolean;
|
|
21
|
+
maxDevicePixelRatio?: number;
|
|
22
|
+
mobileInteraction?: ResolvedMobileInteractionConfig;
|
|
23
|
+
/** "brush" or "hover" - mutually exclusive */
|
|
24
|
+
mode: "brush" | "hover";
|
|
25
|
+
/** Callback when a point is hovered (hover mode only). */
|
|
26
|
+
onPointHover?: (datum: Datum | null, px?: number, py?: number) => void;
|
|
27
|
+
/** Callback when a point is clicked. */
|
|
28
|
+
onPointClick?: (datum: Datum | null, px?: number, py?: number) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function ScatterplotCell({ data, xField, yField, fieldLabels: _fieldLabels, cellSize, pointRadius, pointOpacity, styleRules, colorBy, colorScale, brushSelectionName, hoverSelectionName, unselectedOpacity, showGrid: _showGrid, maxDevicePixelRatio, mobileInteraction, mode, onPointHover, onPointClick }: CellProps): React.JSX.Element;
|
|
31
|
+
interface DiagonalCellProps {
|
|
32
|
+
data: Datum[];
|
|
33
|
+
field: string;
|
|
34
|
+
label: string;
|
|
35
|
+
cellSize: number;
|
|
36
|
+
bins: number;
|
|
37
|
+
colorBy?: ChartAccessor<Datum, string>;
|
|
38
|
+
colorScale?: (v: string) => string;
|
|
39
|
+
brushSelectionName: string;
|
|
40
|
+
hoverSelectionName: string;
|
|
41
|
+
unselectedOpacity: number;
|
|
42
|
+
/** "brush" or "hover" - matches parent mode */
|
|
43
|
+
mode: "brush" | "hover";
|
|
44
|
+
}
|
|
45
|
+
export declare function DiagonalCell({ data, field, label, cellSize, bins, colorBy, colorScale, brushSelectionName, hoverSelectionName, unselectedOpacity: _unselectedOpacity, mode }: DiagonalCellProps): React.JSX.Element;
|
|
46
|
+
export declare function LabelCell({ label, cellSize }: {
|
|
47
|
+
label: string;
|
|
48
|
+
cellSize: number;
|
|
49
|
+
}): React.JSX.Element;
|
|
50
|
+
export {};
|
|
@@ -10,8 +10,13 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import { type ChartAccessContract, type StreamStatusInput } from "../access/chartAccessContract";
|
|
12
12
|
import { type ChartReaderGrounding } from "../ai/readerGrounding";
|
|
13
|
+
import { type PortableArtifactContract, type SerializedArtifactContract } from "../artifact/serialization";
|
|
14
|
+
import { type ArtifactIdentityBinding } from "../artifact/identity";
|
|
13
15
|
import type { RenderEvidence } from "../server/renderEvidence";
|
|
16
|
+
export { stableEvidenceHash } from "./stableJsonHash";
|
|
14
17
|
export declare const CHART_EVIDENCE_ENVELOPE_VERSION: 1;
|
|
18
|
+
declare const ARTIFACT_TRANSFER_BINDING_VERSION: 2;
|
|
19
|
+
declare const LEGACY_ARTIFACT_TRANSFER_BINDING_VERSION: 1;
|
|
15
20
|
export interface EnvelopeChartSection {
|
|
16
21
|
component: string;
|
|
17
22
|
surfaceVersion: string;
|
|
@@ -33,7 +38,11 @@ export interface EnvelopeTransformSection {
|
|
|
33
38
|
}
|
|
34
39
|
export interface EnvelopeRenderSection {
|
|
35
40
|
mode: "svg" | "canvas" | "png" | "not-rendered";
|
|
41
|
+
/** Version 2 identifies rendered SVG and coordinates; unversioned legacy hashes count marks only. */
|
|
36
42
|
sceneHash?: string;
|
|
43
|
+
sceneHashVersion?: 2;
|
|
44
|
+
/** SHA-256 of markCountByType only; this does not identify rendered geometry. */
|
|
45
|
+
markInventoryHash?: string;
|
|
37
46
|
imageHash?: string;
|
|
38
47
|
marksIntended?: number;
|
|
39
48
|
marksObserved?: number;
|
|
@@ -119,6 +128,8 @@ export interface EvidenceEnvelopeOptions {
|
|
|
119
128
|
knownGaps?: string[];
|
|
120
129
|
unsupportedClaims?: string[];
|
|
121
130
|
uncertaintyShown?: boolean;
|
|
131
|
+
/** Optional interpretation contract preserved beside render evidence. */
|
|
132
|
+
artifactContract?: PortableArtifactContract;
|
|
122
133
|
}
|
|
123
134
|
export interface ChartEvidenceEnvelope {
|
|
124
135
|
schemaVersion: typeof CHART_EVIDENCE_ENVELOPE_VERSION;
|
|
@@ -131,15 +142,12 @@ export interface ChartEvidenceEnvelope {
|
|
|
131
142
|
modalityChecks: EnvelopeModalityChecks;
|
|
132
143
|
audit: EnvelopeAuditSection;
|
|
133
144
|
limits: EnvelopeLimitsSection;
|
|
145
|
+
artifact?: SerializedArtifactContract & {
|
|
146
|
+
transferBindingVersion: typeof LEGACY_ARTIFACT_TRANSFER_BINDING_VERSION | typeof ARTIFACT_TRANSFER_BINDING_VERSION;
|
|
147
|
+
transferFingerprint: string;
|
|
148
|
+
identityBinding?: ArtifactIdentityBinding;
|
|
149
|
+
};
|
|
134
150
|
}
|
|
135
|
-
/**
|
|
136
|
-
* Stable SHA-256 over key-sorted JSON.
|
|
137
|
-
|
|
138
|
-
* This dependency-free implementation keeps the evidence entry browser,
|
|
139
|
-
* edge, Node, and RSC compatible. Input is UTF-8 encoded and processed in
|
|
140
|
-
* standard 512-bit blocks.
|
|
141
|
-
*/
|
|
142
|
-
export declare function stableEvidenceHash(value: unknown): string;
|
|
143
151
|
/** Assemble a versioned evidence envelope from existing Semiotic payloads. */
|
|
144
152
|
export declare function toEvidenceEnvelope(component: string, props: Record<string, unknown>, options?: EvidenceEnvelopeOptions): ChartEvidenceEnvelope;
|
|
145
153
|
/** Validate and restore an envelope without silently trusting malformed input. */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function redactProfileForEnvelope(profile: unknown): unknown;
|
|
2
|
+
/** Recursively remove raw source records from a navigation tree. */
|
|
3
|
+
export declare function redactNavigationTree(tree: unknown): unknown;
|
|
4
|
+
/**
|
|
5
|
+
* Normalize the chart's primary source records across supported data shapes.
|
|
6
|
+
* Used for count and integrity hashing only; records are never stored.
|
|
7
|
+
*/
|
|
8
|
+
export declare function normalizeSourceRecords(component: string, props: Record<string, unknown>): ReadonlyArray<unknown>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { EnvelopeRenderSection } from "./chartEvidenceEnvelope";
|
|
2
|
+
/** Validate the accessibility fields consumed by the publication gate. */
|
|
3
|
+
export declare function validateEnvelopeAccessibilityAudit(value: unknown, path: string): void;
|
|
4
|
+
/** A nested scene digest has no legacy form: it must always advertise v2. */
|
|
5
|
+
export declare function validateEnvelopeSceneHash(render: EnvelopeRenderSection): void;
|
|
6
|
+
/** Validate both attachment locations before the gate can trust their reports. */
|
|
7
|
+
export declare function validateEnvelopeArtifactAttachment(attachment: {
|
|
8
|
+
contract?: unknown;
|
|
9
|
+
transfer?: unknown;
|
|
10
|
+
binding?: unknown;
|
|
11
|
+
}, path: string): void;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* This is deliberately conservative: it fails on provable publication risks
|
|
5
5
|
* and records uncertainty rather than inventing semantic or visual agreement.
|
|
6
6
|
*/
|
|
7
|
-
import type
|
|
7
|
+
import { type ChartEvidenceEnvelope, type EnvelopeLimitsSection } from "./chartEvidenceEnvelope";
|
|
8
8
|
export type EvidenceGateStatus = "pass" | "fail";
|
|
9
9
|
export interface EvidenceGateFinding {
|
|
10
10
|
id: string;
|
|
@@ -15,6 +15,8 @@ export interface EvidenceGateResult {
|
|
|
15
15
|
status: EvidenceGateStatus;
|
|
16
16
|
ok: boolean;
|
|
17
17
|
findings: EvidenceGateFinding[];
|
|
18
|
+
/** Derived limits for valid envelopes; the caller's envelope is never edited. */
|
|
19
|
+
limits?: EnvelopeLimitsSection;
|
|
18
20
|
}
|
|
19
21
|
export interface EvidenceGateOptions {
|
|
20
22
|
requireRenderEvidence?: boolean;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface RenderedSceneHashContext {
|
|
2
|
+
frameType: string;
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
margin?: {
|
|
6
|
+
top: number;
|
|
7
|
+
right: number;
|
|
8
|
+
bottom: number;
|
|
9
|
+
left: number;
|
|
10
|
+
};
|
|
11
|
+
plot?: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
xDomain?: [number, number];
|
|
18
|
+
yDomain?: [number, number];
|
|
19
|
+
categories?: string[];
|
|
20
|
+
}
|
|
21
|
+
/** Identify the final SVG bytes and coordinates, including post-render theme CSS. */
|
|
22
|
+
export declare function renderedSceneHash(svg: string, context: RenderedSceneHashContext): string;
|
|
23
|
+
export {};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { SerializedSelections } from "./selectionSerializer";
|
|
2
2
|
import type { Datum } from "../charts/shared/datumTypes";
|
|
3
|
+
import type { ArtifactContract } from "../artifact/types";
|
|
4
|
+
import type { ArtifactTransferStatus, PortableArtifactContract } from "../artifact/serialization";
|
|
3
5
|
export interface ChartConfig {
|
|
4
6
|
/** Component name, e.g. "LineChart", "SankeyDiagram" */
|
|
5
7
|
component: string;
|
|
@@ -21,21 +23,54 @@ export interface ChartConfig {
|
|
|
21
23
|
intents: string[];
|
|
22
24
|
audience?: string[];
|
|
23
25
|
frameFamily: string;
|
|
26
|
+
recipeVersion?: string;
|
|
27
|
+
definitionFingerprint?: string;
|
|
28
|
+
layoutId?: string;
|
|
29
|
+
layoutVersion?: string;
|
|
30
|
+
layoutFingerprint?: string;
|
|
24
31
|
};
|
|
32
|
+
/** Optional interpretation sidecar, kept separate from executable chart props. */
|
|
33
|
+
artifactContract?: PortableArtifactContract;
|
|
34
|
+
/** Explicit preservation/version result for the sidecar. */
|
|
35
|
+
artifactTransfer?: ChartArtifactTransferStatus;
|
|
36
|
+
}
|
|
37
|
+
export interface ChartArtifactTransferStatus extends ArtifactTransferStatus {
|
|
38
|
+
/** Identity of the serialized non-data props; detects later payload drift. */
|
|
39
|
+
serializedConfigFingerprint?: string;
|
|
40
|
+
/** Identity of serialized data, or null when the payload intentionally has none. */
|
|
41
|
+
serializedDataFingerprint?: string | null;
|
|
42
|
+
/** Identity of the component or recipe, contract, transfer report, and payload bindings. */
|
|
43
|
+
transferFingerprint?: string;
|
|
25
44
|
}
|
|
26
45
|
export interface ToConfigOptions {
|
|
27
46
|
/** Include data arrays in the config. Default: true */
|
|
28
47
|
includeData?: boolean;
|
|
29
48
|
/** Serialized selection state to embed */
|
|
30
49
|
selections?: SerializedSelections;
|
|
50
|
+
/** Portable interpretation sidecar to preserve with the chart config. */
|
|
51
|
+
artifactContract?: ArtifactContract;
|
|
31
52
|
}
|
|
32
|
-
export
|
|
33
|
-
export declare function toConfig(componentName: string, props: Datum, options?: ToConfigOptions): ChartConfig;
|
|
34
|
-
export declare function fromConfig(config: ChartConfig): {
|
|
53
|
+
export interface FromConfigResult {
|
|
35
54
|
componentName: string;
|
|
36
55
|
props: Datum;
|
|
37
|
-
|
|
38
|
-
|
|
56
|
+
artifactContract?: PortableArtifactContract;
|
|
57
|
+
artifactTransfer?: ChartArtifactTransferStatus;
|
|
58
|
+
}
|
|
59
|
+
export interface ToURLOptions {
|
|
60
|
+
/** Refuse an encoded query string longer than this value. Omit for compatibility. */
|
|
61
|
+
maxLength?: number;
|
|
62
|
+
}
|
|
63
|
+
export interface JSXProjectionResult {
|
|
64
|
+
jsx: string;
|
|
65
|
+
omittedPaths: string[];
|
|
66
|
+
warnings: string[];
|
|
67
|
+
}
|
|
68
|
+
export type CopyFormat = "json" | "jsx";
|
|
69
|
+
export declare function toConfig(componentName: string, props: Datum, options?: ToConfigOptions): ChartConfig;
|
|
70
|
+
export declare function fromConfig(config: ChartConfig): FromConfigResult;
|
|
71
|
+
export declare function toURL(config: ChartConfig, options?: ToURLOptions): string;
|
|
39
72
|
export declare function fromURL(urlString: string): ChartConfig;
|
|
40
73
|
export declare function copyConfig(config: ChartConfig, format?: CopyFormat): Promise<void>;
|
|
41
74
|
export declare function configToJSX(config: ChartConfig): string;
|
|
75
|
+
/** Return JSX together with the top-level metadata it cannot represent. */
|
|
76
|
+
export declare function configToJSXWithReport(config: ChartConfig): JSXProjectionResult;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Datum } from "../charts/shared/datumTypes";
|
|
2
|
+
import { type ArtifactContract } from "../artifact/types";
|
|
3
|
+
import type { ChartConfig, FromConfigResult } from "./chartConfig";
|
|
4
|
+
export type ChartArtifactBindingContext = Pick<ChartConfig, "version" | "createdAt" | "recipeId" | "portable" | "manifest" | "reason" | "warnings" | "selections">;
|
|
5
|
+
export declare function artifactConfigFields(component: string, contract: ArtifactContract | undefined, sourceProps: Datum, serializedProps: Datum, context: ChartArtifactBindingContext): Pick<ChartConfig, "artifactContract" | "artifactTransfer">;
|
|
6
|
+
export declare function restoredArtifactFields(config: ChartConfig): Pick<FromConfigResult, "artifactContract" | "artifactTransfer">;
|
|
@@ -108,6 +108,7 @@ export declare function resolveXYAxisChrome(input: {
|
|
|
108
108
|
orient?: string;
|
|
109
109
|
label?: unknown;
|
|
110
110
|
autoRotate?: boolean;
|
|
111
|
+
visible?: boolean;
|
|
111
112
|
}>;
|
|
112
113
|
rotatedTicks?: boolean;
|
|
113
114
|
}): AxisChromeInput;
|
|
@@ -127,6 +128,7 @@ export declare function resolveXYFramePropsAxisChrome(frameProps: {
|
|
|
127
128
|
orient?: string;
|
|
128
129
|
label?: unknown;
|
|
129
130
|
autoRotate?: boolean;
|
|
131
|
+
visible?: boolean;
|
|
130
132
|
}>;
|
|
131
133
|
}, defaults: {
|
|
132
134
|
showAxes?: boolean;
|
|
@@ -137,6 +139,7 @@ export declare function resolveXYFramePropsAxisChrome(frameProps: {
|
|
|
137
139
|
orient?: string;
|
|
138
140
|
label?: unknown;
|
|
139
141
|
autoRotate?: boolean;
|
|
142
|
+
visible?: boolean;
|
|
140
143
|
}>;
|
|
141
144
|
}): AxisChromeInput;
|
|
142
145
|
/**
|
|
@@ -230,3 +233,18 @@ export declare function resolveLegendMetrics(layout?: LegendLayout): LegendMetri
|
|
|
230
233
|
* when labels, multiple groups, or custom row heights are used.
|
|
231
234
|
*/
|
|
232
235
|
export declare function layoutVerticalLegendGroups(groups: VerticalLegendGroupInput[], rowHeight: number): VerticalLegendGroupLayout[];
|
|
236
|
+
/** Drop only default margins belonging to explicitly hidden XY axes. */
|
|
237
|
+
export declare function resolveHiddenAxisMargins(defaults: {
|
|
238
|
+
top: number;
|
|
239
|
+
right: number;
|
|
240
|
+
bottom: number;
|
|
241
|
+
left: number;
|
|
242
|
+
}, axes: ReadonlyArray<{
|
|
243
|
+
orient: "top" | "bottom" | "left" | "right";
|
|
244
|
+
visible?: boolean;
|
|
245
|
+
}> | undefined, hasTitle?: boolean): {
|
|
246
|
+
top: number;
|
|
247
|
+
right: number;
|
|
248
|
+
bottom: number;
|
|
249
|
+
left: number;
|
|
250
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { dependencyForestChartProps, type DependencyForestChartProps } from "./dependencyForestChartProps";
|
|
3
|
+
export { dependencyForestChartProps };
|
|
4
|
+
export type { DependencyForestChartProps };
|
|
5
|
+
/**
|
|
6
|
+
* Dependency reader; graph preparation belongs outside the rendering callback.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { DependencyForestChart } from "semiotic/atlas"
|
|
10
|
+
* import { prepareDependencyForest } from "semiotic/atlas/core"
|
|
11
|
+
* const forest = prepareDependencyForest(atlas)
|
|
12
|
+
* <DependencyForestChart forest={forest} reading="required-paths" />
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* import { renderChartWithEvidence } from "semiotic/server"
|
|
16
|
+
* const { svg, evidence } = renderChartWithEvidence("DependencyForestChart", {
|
|
17
|
+
* forest, reading: "organize", title: "Original supply paths"
|
|
18
|
+
* })
|
|
19
|
+
*/
|
|
20
|
+
export declare function DependencyForestChart(props: DependencyForestChartProps): React.JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type DependencyForestProjection } from "./dependencyForest";
|
|
3
|
+
export declare function DependencyMatrix({ forest, nodeIds, onSelectEdges }: {
|
|
4
|
+
forest: DependencyForestProjection;
|
|
5
|
+
nodeIds: string[];
|
|
6
|
+
onSelectEdges?: (ids: string[]) => void;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { flowCircuitChartProps, type FlowCircuitChartProps } from "./flowCircuitChartProps";
|
|
3
|
+
export { flowCircuitChartProps };
|
|
4
|
+
export type { FlowCircuitChartProps };
|
|
5
|
+
/**
|
|
6
|
+
* Flow Circuit reader: replay/model state lives in its admitted upstream tape.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* import { FlowCircuitChart } from "semiotic/atlas"
|
|
10
|
+
* import { readCircuitEdition } from "semiotic/atlas/core"
|
|
11
|
+
* const reading = readCircuitEdition(edition, "observed-replay", 60)
|
|
12
|
+
* <FlowCircuitChart circuit={circuit} edition={edition} reading={reading} />
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* import { renderChartWithEvidence } from "semiotic/server"
|
|
16
|
+
* const { svg, evidence } = renderChartWithEvidence("FlowCircuitChart", {
|
|
17
|
+
* circuit, edition, reading, title: "Observed process", reducedMotion: true
|
|
18
|
+
* })
|
|
19
|
+
*/
|
|
20
|
+
export declare function FlowCircuitChart(props: FlowCircuitChartProps): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type MotifBraidChartProps } from "./motifBraidChartProps";
|
|
2
|
+
export type { MotifBraidChartProps };
|
|
3
|
+
/**
|
|
4
|
+
* Motif Braid reader. Prepare the atlas outside this component.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* import { MotifBraidChart } from "semiotic/atlas"
|
|
8
|
+
* // atlas is admitted by prepareNetworkAtlas from semiotic/atlas/core.
|
|
9
|
+
* <MotifBraidChart atlas={atlas} title="Supported journeys" />
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* import { renderChartWithEvidence } from "semiotic/server"
|
|
13
|
+
* const { svg, evidence } = renderChartWithEvidence("MotifBraidChart", {
|
|
14
|
+
* atlas, title: "Journey steps", accessibleTable: true
|
|
15
|
+
* })
|
|
16
|
+
*/
|
|
17
|
+
export declare function MotifBraidChart(props: MotifBraidChartProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { BaseChartProps } from "../../charts/shared/types";
|
|
2
|
+
/** Shared chart contracts retained by the public Atlas readers. */
|
|
3
|
+
export type AtlasChartOptions = Pick<BaseChartProps, "chartId" | "className" | "title" | "description" | "summary" | "accessibleTable" | "onObservation" | "linkedHover">;
|
|
4
|
+
/** Atlas views link on canonical vertices, not their distinct scene IDs. */
|
|
5
|
+
export declare function atlasLinkedHover(value: AtlasChartOptions["linkedHover"]): string | false | {
|
|
6
|
+
name?: string;
|
|
7
|
+
fields: string[];
|
|
8
|
+
mode?: "field" | "x-position" | "series";
|
|
9
|
+
xField?: string;
|
|
10
|
+
seriesField?: string;
|
|
11
|
+
} | undefined;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type MotifCapsule } from "./capsules";
|
|
2
|
+
import { assignedDenominator } from "./compare";
|
|
3
|
+
import { type MotifProfileStrip } from "./profile";
|
|
4
|
+
import type { PreparedNetworkAtlas, PrefixForest } from "./types";
|
|
5
|
+
export type TrajectoryGroup = {
|
|
6
|
+
id: string;
|
|
7
|
+
occurrenceId: string;
|
|
8
|
+
partition?: string;
|
|
9
|
+
nodePath: string[];
|
|
10
|
+
entityCount: number;
|
|
11
|
+
/** Traffic at each nodePath step; entityCount remains the cohort weight. */
|
|
12
|
+
stepEntityCounts?: number[];
|
|
13
|
+
/** Canonical escaped nodePath key produced by prepareMotifBraid. */
|
|
14
|
+
signature: string;
|
|
15
|
+
};
|
|
16
|
+
export type BraidRibbon = {
|
|
17
|
+
id: string;
|
|
18
|
+
groupId: string;
|
|
19
|
+
partition?: string;
|
|
20
|
+
fromPrefixId: string;
|
|
21
|
+
toPrefixId: string;
|
|
22
|
+
fromState: string;
|
|
23
|
+
toState: string;
|
|
24
|
+
entityCount: number;
|
|
25
|
+
/** Traffic at the destination step. Omit for a constant-width transition. */
|
|
26
|
+
toEntityCount?: number;
|
|
27
|
+
};
|
|
28
|
+
export type SignedReadout = {
|
|
29
|
+
motif: string;
|
|
30
|
+
leftPartition: string;
|
|
31
|
+
rightPartition: string;
|
|
32
|
+
leftCount: number;
|
|
33
|
+
rightCount: number;
|
|
34
|
+
deltaCount: number;
|
|
35
|
+
deltaBps: number;
|
|
36
|
+
denominator: number;
|
|
37
|
+
};
|
|
38
|
+
export type MotifBraidProjection = {
|
|
39
|
+
atlas: PreparedNetworkAtlas;
|
|
40
|
+
groups: TrajectoryGroup[];
|
|
41
|
+
signatureOrder: string[];
|
|
42
|
+
ribbons: BraidRibbon[];
|
|
43
|
+
capsules: MotifCapsule[];
|
|
44
|
+
profile: MotifProfileStrip;
|
|
45
|
+
differences: SignedReadout[];
|
|
46
|
+
prefixForest: PrefixForest;
|
|
47
|
+
sceneSeeds: {
|
|
48
|
+
nodes: Array<{
|
|
49
|
+
id: string;
|
|
50
|
+
partition?: string;
|
|
51
|
+
signature?: string;
|
|
52
|
+
}>;
|
|
53
|
+
edges: Array<{
|
|
54
|
+
id: string;
|
|
55
|
+
source: string;
|
|
56
|
+
target: string;
|
|
57
|
+
}>;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
export declare function prepareMotifBraid(atlas: PreparedNetworkAtlas): MotifBraidProjection;
|
|
61
|
+
export declare function ribbonSupportsRoute(braid: MotifBraidProjection, route: readonly string[]): boolean;
|
|
62
|
+
export { assignedDenominator };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MotifMatch, MotifTemplate } from "./types";
|
|
2
|
+
export type MotifCapsule = {
|
|
3
|
+
id: string;
|
|
4
|
+
matchId: string;
|
|
5
|
+
template: MotifTemplate;
|
|
6
|
+
entryState: string;
|
|
7
|
+
exitState: string;
|
|
8
|
+
entityCount: number;
|
|
9
|
+
occurrenceIds: string[];
|
|
10
|
+
selected: boolean;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Deterministic nonoverlapping layout capsules. Unselected overlapping matches
|
|
14
|
+
* stay in the match index; this choice must never change match counts.
|
|
15
|
+
*/
|
|
16
|
+
export declare function selectCapsules(matches: readonly MotifMatch[], options?: {
|
|
17
|
+
templates?: MotifTemplate[];
|
|
18
|
+
}): MotifCapsule[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { PreparedComparison, PreparedNetworkAtlas } from "./types";
|
|
2
|
+
export declare function buildComparison(atlas: PreparedNetworkAtlas): PreparedComparison | undefined;
|
|
3
|
+
export declare function assignedDenominator(atlas: PreparedNetworkAtlas, subjectId: string): number | undefined;
|
|
4
|
+
export declare function signedDifferenceBps(left: number, right: number, denominator: number): number;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PreparedNetworkAtlas } from "./types";
|
|
2
|
+
/** Prepared once outside rendering. Layout choices cannot change atlas facts. */
|
|
3
|
+
export declare function prepareDependencyForest(atlas: PreparedNetworkAtlas, options?: {
|
|
4
|
+
rankingPolicyId?: "rooted-traversal:id-asc" | "rooted-traversal:id-desc";
|
|
5
|
+
}): {
|
|
6
|
+
order: string[];
|
|
7
|
+
children: {
|
|
8
|
+
[k: string]: string[];
|
|
9
|
+
};
|
|
10
|
+
components: string[][];
|
|
11
|
+
requiredChildren: {
|
|
12
|
+
[k: string]: string[];
|
|
13
|
+
};
|
|
14
|
+
sceneSeeds: {
|
|
15
|
+
nodes: import("./types").AtlasNode[];
|
|
16
|
+
edges: import("./types").AtlasEdge[];
|
|
17
|
+
};
|
|
18
|
+
forest: import("./types").DisplayForest;
|
|
19
|
+
residual: import("./types").OriginalEdgeIndex;
|
|
20
|
+
atlas: PreparedNetworkAtlas;
|
|
21
|
+
};
|
|
22
|
+
export type DependencyForestProjection = ReturnType<typeof prepareDependencyForest>;
|
|
23
|
+
export declare function branchMembers(projection: DependencyForestProjection, root: string): Set<string>;
|
|
24
|
+
export declare function requiredTargets(projection: DependencyForestProjection, root: string): string[];
|
|
25
|
+
/** Include all incident residual edges, including every branch-boundary tie. */
|
|
26
|
+
export declare function getBranchResidualConnections(projection: DependencyForestProjection, root: string): import("./types").AtlasEdge[];
|
|
27
|
+
/** Matrix cells retain parallel edges and self-loops by original ID. */
|
|
28
|
+
export declare function dependencyMatrix(projection: DependencyForestProjection, nodeIds: readonly string[]): {
|
|
29
|
+
source: string;
|
|
30
|
+
target: string;
|
|
31
|
+
edgeIds: string[];
|
|
32
|
+
}[];
|