semiotic 3.9.1 → 3.10.0
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 +137 -58
- package/agent-skill/semiotic-charts/SKILL.md +27 -17
- 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 +13 -3
- package/ai/dist/mcp-server.js +140 -36407
- package/ai/examples.md +110 -7
- package/ai/reference.md +82 -28
- package/ai/schema.json +7675 -1471
- package/ai/surface-manifest.json +60 -9
- package/ai/system-prompt.md +18 -3
- 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-2WK7YJLL.min.js +1 -0
- package/dist/c-33QOXEUG.min.js +1 -0
- package/dist/c-42PLDTX7.min.js +1 -0
- package/dist/c-447VIMRO.min.js +1 -0
- package/dist/c-4FN7Q6VQ.min.js +1 -0
- package/dist/c-553QUDKA.min.js +1 -0
- package/dist/c-55BAJ333.min.js +1 -0
- package/dist/c-7242NXSG.min.js +1 -0
- package/dist/c-7EGHJU2F.min.js +1 -0
- package/dist/c-7HP7MB2I.min.js +1 -0
- package/dist/c-7NBU5ZKS.min.js +1 -0
- package/dist/c-AFBSWT77.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-AZKPVBOC.min.js +1 -0
- package/dist/c-BNFJMDHN.min.js +1 -0
- package/dist/c-BNG5ECK5.min.js +1 -0
- package/dist/c-BOHCQILI.min.js +1 -0
- package/dist/c-CCTGN5CK.min.js +1 -0
- package/dist/c-CPSPZH6A.min.js +1 -0
- package/dist/c-CPV4N35K.min.js +1 -0
- package/dist/c-D6HAAPTX.min.js +1 -0
- package/dist/c-DE5Q3U2X.min.js +1 -0
- package/dist/c-DK662R77.min.js +1 -0
- package/dist/c-DY2676CR.min.js +1 -0
- package/dist/c-E32M6XW5.min.js +1 -0
- package/dist/c-E4JDJH4I.min.js +1 -0
- package/dist/c-E7I2L7CU.min.js +1 -0
- package/dist/c-EBOQ7ER7.min.js +1 -0
- package/dist/c-ELDWAO2V.min.js +1 -0
- package/dist/c-EUBTECGM.min.js +1 -0
- package/dist/c-GNTXRXRN.min.js +1 -0
- package/dist/c-GSZRZRD6.min.js +1 -0
- package/dist/c-GWX7JGMF.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-HPOYKCCG.min.js +1 -0
- package/dist/c-HXDKPIKR.min.js +1 -0
- package/dist/c-I4QJ6YLM.min.js +1 -0
- package/dist/c-IDJV3CZK.min.js +1 -0
- package/dist/c-ITKX3RC5.min.js +1 -0
- package/dist/c-JG2JCQLP.min.js +1 -0
- package/dist/c-JLGRHXGZ.min.js +1 -0
- package/dist/c-JO2UGTCP.min.js +1 -0
- package/dist/c-JUKIWTBJ.min.js +1 -0
- package/dist/c-KCRJGUHP.min.js +1 -0
- package/dist/c-LMGSSD2E.min.js +1 -0
- package/dist/c-LYQMZMZQ.min.js +1 -0
- package/dist/c-LYVKDBQJ.min.js +1 -0
- package/dist/c-MVR3RWF3.min.js +1 -0
- package/dist/c-MXCP7GNZ.min.js +1 -0
- package/dist/c-NG7BLZTR.min.js +1 -0
- package/dist/c-NYZ2QNAM.min.js +1 -0
- package/dist/c-OO5QLMJC.min.js +1 -0
- package/dist/c-OOVX2JPQ.min.js +1 -0
- package/dist/c-ORLEBW72.min.js +1 -0
- package/dist/c-P65V6HLO.min.js +1 -0
- package/dist/c-PP6VY3QU.min.js +1 -0
- package/dist/c-PRIKOLTE.min.js +1 -0
- package/dist/c-PSNI6KAZ.min.js +1 -0
- package/dist/c-PYNW54D2.min.js +1 -0
- package/dist/c-QA3HMQJP.min.js +1 -0
- package/dist/c-QAVFOEUY.min.js +1 -0
- package/dist/c-ROEHCIGV.min.js +1 -0
- package/dist/c-S3AZX5PP.min.js +1 -0
- package/dist/c-T2V7O2LO.min.js +1 -0
- package/dist/c-TIXX5CAU.min.js +1 -0
- package/dist/c-TKG2NP7G.min.js +1 -0
- package/dist/c-VJTDST2R.min.js +1 -0
- package/dist/c-VXLOLYTO.min.js +1 -0
- package/dist/c-W4ZUKSEQ.min.js +1 -0
- package/dist/c-WH2O53VI.min.js +1 -0
- package/dist/c-WNGH47HF.min.js +1 -0
- package/dist/c-WUWXGQYA.min.js +1 -0
- package/dist/c-XDQKXPX4.min.js +1 -0
- package/dist/c-XSB27XPS.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-ZYPXQF7B.min.js +1 -0
- package/dist/components/Annotation.d.ts +3 -2
- package/dist/components/access/chartAccessCapabilities.generated.d.ts +14 -0
- package/dist/components/access/chartAccessContract.d.ts +90 -0
- package/dist/components/access/chartAccessContractFixtures.d.ts +11 -0
- package/dist/components/ai/aestheticProfileTypes.d.ts +35 -0
- package/dist/components/ai/annotationProvenance.d.ts +2 -7
- package/dist/components/ai/auditVisualHierarchy.d.ts +49 -0
- package/dist/components/ai/builtInChartRecipeLayouts.d.ts +2 -0
- package/dist/components/ai/builtInChartRecipePublic.d.ts +4 -0
- package/dist/components/ai/builtInChartRecipes.d.ts +26 -0
- package/dist/components/ai/chartCapabilities.d.ts +3 -1
- package/dist/components/ai/chartRecipeRegistry.d.ts +7 -1
- package/dist/components/ai/chartRecipes.d.ts +10 -0
- package/dist/components/ai/colorEvidence.d.ts +12 -0
- package/dist/components/ai/describePhysicsProjection.d.ts +18 -0
- package/dist/components/ai/describePhysicsSource.d.ts +13 -0
- package/dist/components/ai/evaluateAesthetics.d.ts +47 -0
- package/dist/components/ai/geoNavigation.d.ts +4 -0
- package/dist/components/ai/hierarchyNavigation.d.ts +4 -0
- package/dist/components/ai/navigationTree.d.ts +7 -1
- package/dist/components/ai/qualityFixtures.d.ts +8 -0
- package/dist/components/ai/suggestionPropContracts.d.ts +1 -1
- package/dist/components/ai/useNavigationSync.d.ts +3 -3
- 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/index.d.ts +4 -0
- package/dist/components/charts/network/ChordDiagram.d.ts +5 -1
- package/dist/components/charts/network/CirclePack.d.ts +8 -1
- package/dist/components/charts/network/OrbitDiagram.d.ts +9 -0
- package/dist/components/charts/network/TreeDiagram.d.ts +8 -1
- package/dist/components/charts/network/Treemap.d.ts +8 -1
- package/dist/components/charts/ordinal/BarChart.d.ts +6 -0
- package/dist/components/charts/ordinal/BoxPlot.d.ts +3 -0
- package/dist/components/charts/ordinal/DonutChart.d.ts +5 -0
- package/dist/components/charts/ordinal/DotPlot.d.ts +3 -0
- package/dist/components/charts/ordinal/FunnelChart.d.ts +5 -0
- package/dist/components/charts/ordinal/GaugeChart.d.ts +3 -0
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -0
- package/dist/components/charts/ordinal/Histogram.d.ts +3 -0
- package/dist/components/charts/ordinal/LikertChart.d.ts +3 -0
- package/dist/components/charts/ordinal/PieChart.d.ts +5 -0
- package/dist/components/charts/ordinal/RadarChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/RadarChart.d.ts +77 -0
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +3 -0
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -0
- package/dist/components/charts/ordinal/SwarmPlot.d.ts +3 -0
- package/dist/components/charts/ordinal/SwimlaneChart.d.ts +3 -0
- package/dist/components/charts/ordinal/ViolinPlot.d.ts +3 -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/GauntletChart.d.ts +1 -5
- 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/chainReactionTypes.d.ts +3 -0
- 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/gauntletPhysics.d.ts +1 -0
- 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/physicsHocUtils.d.ts +7 -1
- 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 +14 -1
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +25 -7
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +18 -5
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +11 -1
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +11 -1
- package/dist/components/charts/realtime/aggregate.d.ts +12 -1
- package/dist/components/charts/realtime/realtimeAccessors.d.ts +4 -0
- package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +8 -5
- package/dist/components/charts/realtime/realtimeChartTypes.d.ts +7 -0
- package/dist/components/charts/realtime/realtimeStyleRules.d.ts +4 -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/annotationStatusFilter.d.ts +18 -0
- package/dist/components/charts/shared/auditAccessibilityText.d.ts +4 -2
- package/dist/components/charts/shared/chartDefinitionPilot.d.ts +5 -4
- package/dist/components/charts/shared/chartSpecCore.d.ts +2 -2
- package/dist/components/charts/shared/heatmapStyleRules.d.ts +13 -0
- package/dist/components/charts/shared/knownChartComponents.d.ts +1 -1
- package/dist/components/charts/shared/networkUtils.d.ts +14 -0
- 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/selectionUtils.d.ts +3 -1
- package/dist/components/charts/shared/tooltipUtils.d.ts +1 -1
- package/dist/components/charts/shared/types.d.ts +4 -2
- package/dist/components/charts/shared/useChartLegend.d.ts +6 -1
- package/dist/components/charts/shared/useLikertAggregation.d.ts +8 -2
- package/dist/components/charts/shared/useNetworkChartSetup.d.ts +9 -5
- package/dist/components/charts/shared/useOrdinalPieceStyle.d.ts +1 -1
- package/dist/components/charts/shared/useXYBrush.d.ts +24 -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/Heatmap.d.ts +16 -0
- package/dist/components/charts/xy/LineChart.d.ts +9 -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/Scatterplot.d.ts +7 -0
- package/dist/components/charts/xy/ScatterplotMatrix.d.ts +6 -0
- package/dist/components/charts/xy/WaterfallChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/WaterfallChart.d.ts +76 -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 +154 -0
- 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 +30 -0
- 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/realtime/BinAccumulator.d.ts +5 -1
- package/dist/components/realtime/types.d.ts +16 -7
- package/dist/components/recipes/adjacencyFlow.d.ts +12 -0
- package/dist/components/recipes/adjacencyFlowAggregation.d.ts +72 -0
- package/dist/components/recipes/adjacencyFlowGeometry.d.ts +79 -0
- package/dist/components/recipes/firstAvailableTrack.d.ts +17 -0
- package/dist/components/recipes/intervals.d.ts +1 -1
- package/dist/components/recipes/lineageDag.d.ts +17 -0
- package/dist/components/recipes/lineageDagHulls.d.ts +22 -0
- package/dist/components/recipes/transitDiagram.d.ts +75 -0
- package/dist/components/recipes/transitDiagramGeometry.d.ts +47 -0
- package/dist/components/semiotic-access.d.ts +9 -0
- package/dist/components/semiotic-ai-audits.d.ts +17 -0
- package/dist/components/semiotic-ai-core.d.ts +38 -18
- package/dist/components/semiotic-ai.d.ts +20 -20
- package/dist/components/semiotic-artifact-react.d.ts +10 -0
- package/dist/components/semiotic-artifact.d.ts +23 -0
- package/dist/components/semiotic-evidence.d.ts +10 -0
- package/dist/components/semiotic-experimental.d.ts +1 -1
- package/dist/components/semiotic-line.d.ts +9 -0
- package/dist/components/semiotic-network.d.ts +3 -0
- package/dist/components/semiotic-ordinal.d.ts +2 -0
- package/dist/components/semiotic-physics.d.ts +4 -4
- package/dist/components/semiotic-realtime-core.d.ts +3 -2
- package/dist/components/semiotic-recipes-core.d.ts +6 -0
- package/dist/components/semiotic-text.d.ts +2 -0
- package/dist/components/semiotic-themes-core.d.ts +3 -0
- package/dist/components/semiotic-utils-core.d.ts +19 -14
- package/dist/components/semiotic-xy.d.ts +3 -0
- package/dist/components/semiotic.d.ts +11 -5
- package/dist/components/server/renderDashboard.d.ts +37 -0
- package/dist/components/server/renderEvidence.d.ts +39 -0
- package/dist/components/server/renderToStaticSVG.d.ts +5 -30
- package/dist/components/server/serverChartConfigShared.d.ts +13 -0
- package/dist/components/server/serverChartConfigs.d.ts +9 -0
- package/dist/components/server/serverChartConfigsComposite.d.ts +4 -0
- package/dist/components/server/serverChartConfigsCustom.d.ts +2 -0
- package/dist/components/server/serverChartConfigsGeo.d.ts +1 -0
- package/dist/components/server/serverChartConfigsOrdinal.d.ts +3 -2
- package/dist/components/server/serverChartConfigsXY.d.ts +1 -0
- package/dist/components/server/serverChartConfigsXYExtra.d.ts +3 -0
- package/dist/components/server/serverCompositeChainReaction.d.ts +3 -0
- package/dist/components/server/serverOrdinalGauge.d.ts +3 -0
- package/dist/components/server/serverOrdinalLikert.d.ts +2 -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 +14 -0
- package/dist/components/store/themeCore.d.ts +5 -1
- package/dist/components/stream/GeoPipelineStore.d.ts +1 -1
- package/dist/components/stream/GeoSVGOverlay.d.ts +4 -0
- package/dist/components/stream/MarginalGraphics.d.ts +3 -3
- package/dist/components/stream/MarginalGraphicsLazy.d.ts +22 -0
- package/dist/components/stream/NetworkPipelineStore.d.ts +2 -0
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -0
- package/dist/components/stream/OrdinalPipelineStore.d.ts +1 -1
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +4 -0
- package/dist/components/stream/PipelineStore.d.ts +1 -1
- 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 +8 -2
- package/dist/components/stream/customLayoutAttempt.d.ts +21 -0
- package/dist/components/stream/geoTypes.d.ts +1 -1
- package/dist/components/stream/hitTestUtils.d.ts +2 -0
- package/dist/components/stream/isServerEnvironment.d.ts +6 -0
- package/dist/components/stream/layouts/forceLayoutNodeSize.d.ts +12 -0
- package/dist/components/stream/layouts/forceLayoutPlugin.d.ts +2 -9
- package/dist/components/stream/layouts/forceLayoutWorkerClient.d.ts +2 -21
- package/dist/components/stream/layouts/forceLayoutWorkerPolicy.d.ts +21 -0
- package/dist/components/stream/layouts/index.d.ts +6 -12
- package/dist/components/stream/layouts/missingPlugin.d.ts +7 -0
- package/dist/components/stream/layouts/registerBuiltIn.d.ts +1 -0
- package/dist/components/stream/layouts/registry.d.ts +12 -0
- package/dist/components/stream/marginalConfig.d.ts +3 -0
- package/dist/components/stream/networkCustomLayout.d.ts +7 -0
- package/dist/components/stream/networkCustomLayoutOutput.d.ts +13 -0
- package/dist/components/stream/networkCustomLayoutRunner.d.ts +1 -1
- package/dist/components/stream/networkTypes.d.ts +5 -1
- package/dist/components/stream/ordinalTypes.d.ts +1 -1
- 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 +4 -1
- 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 +9 -0
- package/dist/components/stream/pipelineConfig.d.ts +4 -0
- package/dist/components/stream/pipelineDomainResolution.d.ts +6 -0
- package/dist/components/stream/pipelineStoreUpdateResults.d.ts +1 -1
- package/dist/components/stream/renderers/pointCanvasRenderer.d.ts +4 -0
- package/dist/components/stream/renderers/resolveCSSColor.d.ts +4 -4
- 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/streamEncodingTypes.d.ts +53 -0
- package/dist/components/stream/types.d.ts +12 -54
- package/dist/components/stream/useEnsureCustomXYRenderers.d.ts +18 -0
- package/dist/components/stream/useGeoFrameHandle.d.ts +16 -0
- package/dist/components/stream/useMarginalValues.d.ts +13 -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/xyCanvasRenderers.d.ts +4 -4
- package/dist/components/stream/xyDateTicks.d.ts +3 -2
- package/dist/components/stream/xyFrameAxisTypes.d.ts +2 -0
- package/dist/components/stream/xyPlugins/areaPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/barPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/candlestickPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/customPlugin.d.ts +6 -0
- package/dist/components/stream/xyPlugins/heatmapPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/lineFamily.d.ts +5 -0
- package/dist/components/stream/xyPlugins/linePlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/missingPlugin.d.ts +7 -0
- package/dist/components/stream/xyPlugins/mixedPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/pointPlugin.d.ts +3 -0
- package/dist/components/stream/xyPlugins/registerBuiltIn.d.ts +1 -0
- package/dist/components/stream/xyPlugins/registry.d.ts +31 -0
- package/dist/components/stream/xyPlugins/stackedAreaPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/swarmPlugin.d.ts +2 -0
- package/dist/components/stream/xyPlugins/waterfallPlugin.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/forceLayoutWorker.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.d.ts +9 -0
- package/dist/semiotic-access.min.js +2 -0
- package/dist/semiotic-access.module.min.js +2 -0
- package/dist/semiotic-ai-artifact-policy-constants.module.min.js +2 -0
- package/dist/semiotic-ai-core.d.ts +38 -18
- 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 +20 -20
- 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-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.d.ts +10 -0
- package/dist/semiotic-evidence.min.js +1 -0
- package/dist/semiotic-evidence.module.min.js +1 -0
- 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.d.ts +9 -0
- package/dist/semiotic-line.min.js +2 -0
- package/dist/semiotic-line.module.min.js +2 -0
- package/dist/semiotic-network.d.ts +3 -0
- package/dist/semiotic-ordinal.d.ts +2 -0
- package/dist/semiotic-physics.d.ts +4 -4
- package/dist/semiotic-realtime-core.d.ts +3 -2
- 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 +6 -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.d.ts +3 -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 +19 -14
- 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-xy.d.ts +3 -0
- package/dist/semiotic.d.ts +11 -5
- 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 +91 -71
- 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-3KZD6AXJ.min.js +0 -1
- package/dist/c-4TWEX5HG.min.js +0 -1
- package/dist/c-52TEGIUJ.min.js +0 -1
- package/dist/c-5YCIX3VZ.min.js +0 -1
- package/dist/c-6FEKTA3U.min.js +0 -1
- package/dist/c-6O5EVOPH.min.js +0 -1
- package/dist/c-74HEEZGK.min.js +0 -1
- package/dist/c-AKAF6JAD.min.js +0 -1
- package/dist/c-BBKITSXB.min.js +0 -1
- package/dist/c-BWNB6USU.min.js +0 -1
- package/dist/c-C25ENHIK.min.js +0 -1
- package/dist/c-CDR5AO3R.min.js +0 -1
- package/dist/c-COHXCW3Q.min.js +0 -1
- package/dist/c-DADXPJXV.min.js +0 -1
- package/dist/c-E3JFRRMI.min.js +0 -1
- package/dist/c-EBFPQHHO.min.js +0 -1
- package/dist/c-G36WS6LN.min.js +0 -1
- package/dist/c-GGISSW5E.min.js +0 -1
- package/dist/c-GIKRQI4X.min.js +0 -1
- package/dist/c-GPYOFETM.min.js +0 -1
- package/dist/c-IDUHYYSI.min.js +0 -1
- package/dist/c-IUHFPMHD.min.js +0 -1
- package/dist/c-J5G56TUH.min.js +0 -1
- package/dist/c-JAZ73J32.min.js +0 -1
- package/dist/c-KG3NXHAL.min.js +0 -1
- package/dist/c-KII3PLZE.min.js +0 -1
- package/dist/c-LIXGXMNS.min.js +0 -1
- package/dist/c-LVEY6D6B.min.js +0 -1
- package/dist/c-M4Y3BHFR.min.js +0 -1
- package/dist/c-MAIICR2Z.min.js +0 -1
- package/dist/c-MG5DM6VE.min.js +0 -1
- package/dist/c-MNF2S4AA.min.js +0 -1
- package/dist/c-MT3WBK7M.min.js +0 -1
- package/dist/c-NY3JWV2K.min.js +0 -1
- package/dist/c-O6U6K4CW.min.js +0 -1
- package/dist/c-OQ7M4AGV.min.js +0 -1
- package/dist/c-OXYMVK7Q.min.js +0 -1
- package/dist/c-PPWDL5ZI.min.js +0 -1
- package/dist/c-QHF5YON3.min.js +0 -1
- package/dist/c-RR3GO5SW.min.js +0 -1
- package/dist/c-RSVIHIQ4.min.js +0 -1
- package/dist/c-S2BXNNJN.min.js +0 -1
- package/dist/c-S6U5CGT5.min.js +0 -1
- package/dist/c-SLGMUBUL.min.js +0 -1
- package/dist/c-SUILCHWU.min.js +0 -1
- package/dist/c-TZW3JGJ5.min.js +0 -1
- package/dist/c-US5ZFT6E.min.js +0 -1
- package/dist/c-USFMFKIH.min.js +0 -1
- package/dist/c-UUKVD4WB.min.js +0 -1
- package/dist/c-VGW3VG3I.min.js +0 -1
- package/dist/c-W3CE4A4S.min.js +0 -1
- package/dist/c-WJCD5EUY.min.js +0 -1
- package/dist/c-X5UBGU2V.min.js +0 -1
- package/dist/c-YDAY2WFR.min.js +0 -1
- package/dist/c-ZOWWU34K.min.js +0 -1
- /package/dist/{c-N4G2L7ID.min.js → c-HYW2XA4Q.min.js} +0 -0
- /package/dist/{c-OCI56QF2.min.js → c-V4XMSLC3.min.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
function e({def:e,color:t,accent:r,paintOverride:o}){return l(c,{children:e.parts.map((e,n)=>{let c=o?"none"===e.fill?void 0:o:i(e.fill,t,r),a=o?e.stroke&&"none"!==e.stroke?o:void 0:i(e.stroke??"none",t,r);return c||a?l("path",{d:e.d,fill:c??"none",stroke:a,strokeWidth:a?e.strokeWidth??1:void 0,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin,opacity:e.opacity},n):null})})}function t({def:t,size:i=24,color:c="currentColor",accent:d="#ffffff",fraction:f=1,fractionStart:s=0,fractionDirection:p="horizontal",ghostColor:h,x:u=0,y:m=0,opacity:k,className:g}){let y=n.useId();if(!t?.parts?.length)return null;let[,v]=t.viewBox??r,x=i/(v>0?v:1);if(0>=x)return null;let j=o(t,f,s,p),L=j?"glyph-clip"+y.replace(/[^A-Za-z0-9_-]/g,"_"):void 0;return a("g",{className:g,transform:`translate(${u} ${m}) scale(${x})`,opacity:k,"aria-hidden":"true",children:[j&&L&&l("clipPath",{id:L,children:l("rect",{x:j.x,y:j.y,width:j.width,height:j.height})}),j&&h?l(e,{def:t,color:c,accent:d,paintOverride:h}):null,j&&L?l("g",{clipPath:`url(#${L})`,children:l(e,{def:t,color:c,accent:d})}):l(e,{def:t,color:c,accent:d})]})}import{DEFAULT_GLYPH_VIEWBOX as r,glyphFractionClipRect as o,resolveGlyphPaint as i}from"./c-YF3YKVQI.min.js";import*as n from"react";import{Fragment as c,jsx as l,jsxs as a}from"react/jsx-runtime";export{t as Glyph};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
function t(t,e=0,i=1/0,h=0){let n=Number.isFinite(e)?e:0,r=Number.isFinite(i)?Math.max(n,i):1/0,m=Number.isFinite(t)?Math.floor(t):n,u=Math.max(n,Math.min(r,m));return h>0&&Number.isFinite(h)?Math.max(n,Math.min(r,Math.round(u/h)*h)):u}function e(e,n,r,u={}){let o=i(null),[a,d]=h(null);return m(()=>{if(!n&&!r)return;let e=o.current;if(!e||typeof ResizeObserver>"u")return;let i=(e,i)=>({w:t(e,u.minWidth,u.maxWidth,u.widthStep),h:t(i,u.minHeight,u.maxHeight,u.heightStep)}),h=e.getBoundingClientRect();(h.width>0||h.height>0)&&d(i(h.width,h.height));let m=new ResizeObserver(t=>{for(let e of t){let{width:t,height:h}=e.contentRect,n=i(t,h);d(t=>t&&t.w===n.w&&t.h===n.h?t:n)}});return m.observe(e),()=>m.disconnect()},[n,r,u.minWidth,u.maxWidth,u.widthStep,u.minHeight,u.maxHeight,u.heightStep]),[o,[n&&a?a.w:e[0],r&&a?a.h:e[1]]]}import{useRef as i,useState as h,useEffect as n,useLayoutEffect as r}from"react";var m=typeof window>"u"?n:r;export{t as resolveResponsiveDimension,e as useResponsiveSize};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{useCustomLayoutSelection as m}from"./c-
|
|
2
|
+
import{useCustomLayoutSelection as m}from"./c-YDECTEUW.min.js";import{ThemeProviderWrapper as r,useHighContrast as i,useObservationSelector as o,useReducedMotion as e,useSelectionSelector as p,useTheme as s}from"./c-JUKIWTBJ.min.js";import"./c-T2V7O2LO.min.js";export{r as ThemeProvider,m as useCustomLayoutSelection,i as useHighContrast,o as useObservationSelector,e as useReducedMotion,p as useSelectionSelector,s as useTheme};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
2
|
+
function e(){return b??(b=d.createContext(null)),b}function t({value:t,children:r}){const o=e();return(0,v.jsx)(o.Provider,{value:t,children:r})}function r(){const t=e();return d.useContext(t)??y}function o(e,r){return null!=e?(0,v.jsx)(t,{value:r,children:e}):e}var n,u=Object.create,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,i=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,f=(e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of a(t))s.call(e,n)||n===r||c(e,n,{get:()=>t[n],enumerable:!(o=l(t,n))||o.enumerable});return e},p={};((e,t)=>{for(var r in t)c(e,r,{get:t[r],enumerable:!0})})(p,{CustomLayoutSelectionProvider:()=>t,useCustomLayoutSelection:()=>r,wrapWithCustomLayoutSelection:()=>o}),module.exports=(n=p,f(c({},"__esModule",{value:!0}),n));var b,d=((e,t,r)=>(r=null!=e?u(i(e)):{},f(e&&e.__esModule?r:c(r,"default",{value:e,enumerable:!0}),e)))(require("react")),v=require("react/jsx-runtime"),y={isActive:!1,predicate:()=>!0};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(e,t){const{field:a,bins:o=10}=t,i=e.map(e=>Number(e[a])).filter(e=>!isNaN(e));if(0===i.length)return[];const[n,s]=function(e){let t=1/0,a=-1/0;for(const o of e)t>o&&(t=o),o>a&&(a=o);return[t,a]}(i),l=t.domain?t.domain[0]:n,c=t.domain?t.domain[1]:s;if(l===c)return[{category:`${l}-${c}`,value:i.length}];const u=(c-l)/o,f=Array(o).fill(0);for(const e of i){let t=Math.floor((e-l)/u);t===o&&(t=o-1),t>=0&&o>t&&f[t]++}return f.map((e,t)=>{const a=l+t*u,o=a+u;return{category:`${r(a)}-${r(o)}`,value:e}})}function t(e,t){const{groupBy:a,value:o,agg:r="sum"}=t,i=new Map,n="min"===r?1/0:"max"===r?-1/0:0;for(const t of e){const e=t[a]+"";let s=i.get(e);s||(s={total:n,count:0},i.set(e,s));const l=Number(t[o]);switch(s.count++,r){case"count":break;case"min":s.total>l&&(s.total=l);break;case"max":l>s.total&&(s.total=l);break;default:s.total+=l}}const s=[];for(const[e,t]of i){const o="count"===r?t.count:"mean"===r?t.total/t.count:t.total;s.push({[a]:e,value:o})}return s}function a(e,t){const{key:a,fields:o}=t,r=new Map;for(const t of e){const e=t[a]+"";if(r.has(e)||r.set(e,[]),o){const a={};for(const e of o)e in t&&(a[e]=t[e]);r.get(e).push(a)}else r.get(e).push({...t})}const i=[];for(const[e,t]of r)i.push({id:e,coordinates:t});return i}function o(e,t){const{columns:a,nameField:o="name",valueField:r="value"}=t,i=new Set(a),n=[];for(const t of e){const e={};for(const a of Object.keys(t))i.has(a)||(e[a]=t[a]);for(const i of a)n.push({...e,[o]:i,[r]:t[i]})}return n}function r(e){return Math.round(1e3*e)/1e3+""}function i(e){return"nominal"===e||"ordinal"===e}function n(e){return"quantitative"===e||"temporal"===e}function s(e){e=function(e){if(!function(e){return e.usermeta?.idid}(e)||!Array.isArray(e.layer))return e;const t=e.layer.filter(e=>!function(e){return"annotation-layer"===e.usermeta?.idid?.role}(e));if(1!==t.length)return e;const{layer:a,...o}=e,{usermeta:r,...i}=t[0];return{...o,...i}}(e);const a=[],{type:o,markProps:r}=function(e){if(!e)return{type:"",markProps:{}};if("string"==typeof e)return{type:e,markProps:{}};const{type:t,...a}=e;return{type:t,markProps:a}}(e.mark),s=e.encoding||{},u=s.x,f=s.y,d=s.color,p=s.size,m=s.theta,y=s.opacity;let g;e.data?.values?g=e.data.values:e.data?.url&&a.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&a.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&a.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&a.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||s.facet||s.row||s.column)&&a.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&a.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&a.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");const b={};e.width&&(b.width=e.width),e.height&&(b.height=e.height);const A=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(A&&(b.title=A),d?.field&&(b.colorBy=d.field,d.scale?.scheme)){const e=h[d.scale.scheme];e&&(b.colorScheme=e)}void 0!==y?.value&&(b.pointOpacity=y.value);const w=u?.aggregate,k=f?.aggregate;if(g&&(w||k)){const e=k?f:u,a=k?u:f,o=x[e.aggregate];if(o&&a?.field&&e.field)g=t(g,{groupBy:a.field,value:e.field,agg:o});else if(("count"===o||"count"===e.aggregate)&&a?.field&&g){const e=new Map;for(const t of g){const o=t[a.field]+"";e.set(o,(e.get(o)||0)+1)}g=Array.from(e,([e,t])=>({[a.field]:e,value:t}))}}if(u?.bin||f?.bin){const e="Histogram";g&&(b.data=g),u?.bin?(b.valueAccessor=u.field,f?.field&&(b.categoryAccessor=f.field),u.axis?.title&&(b.valueLabel=u.axis.title)):f?.bin&&(b.valueAccessor=f.field,u?.field&&(b.categoryAccessor=u.field),f.axis?.title&&(b.valueLabel=f.axis.title));const t=u?.bin||f?.bin,o="object"==typeof t?t.maxbins:void 0;return o&&(b.bins=o),c(e,b,a)}let L;switch(o){case"bar":L=function(e,t,a,o,r,s,l){let c;return a?.field&&!1!==e?.stack&&!1!==t?.stack&&null!==e?.stack&&null!==t?.stack?(c="StackedBarChart",o.stackBy=a.field):c="BarChart",i(e?.type)&&n(t?.type)?(o.categoryAccessor=e.field,o.valueAccessor=l?"value":t.field,e?.axis?.title&&(o.categoryLabel=e.axis.title),t?.axis?.title&&(o.valueLabel=t.axis.title)):n(e?.type)&&i(t?.type)?(o.categoryAccessor=t.field,o.valueAccessor=s?"value":e.field,o.orientation="horizontal",t?.axis?.title&&(o.categoryLabel=t.axis.title),e?.axis?.title&&(o.valueLabel=e.axis.title)):(e?.field&&(o.categoryAccessor=e.field),t?.field&&(o.valueAccessor=l?"value":t.field),e?.axis?.title&&(o.categoryLabel=e.axis.title),t?.axis?.title&&(o.valueLabel=t.axis.title)),r&&(o.data=r),c}(u,f,d,b,g,w,k);break;case"line":if(L="LineChart",l(u,f,b,w,k),d?.field&&(b.lineBy=d.field),r.interpolate){const e=v[r.interpolate];e&&(b.curve=e)}!0===r.point&&(b.showPoints=!0),g&&(b.data=g);break;case"area":if(d?.field?(L="StackedAreaChart",b.areaBy=d.field):L="AreaChart",l(u,f,b,w,k),r.interpolate){const e=v[r.interpolate];e&&(b.curve=e)}void 0!==r.opacity&&(b.areaOpacity=r.opacity),g&&(b.data=g);break;case"point":case"circle":case"square":p?.field?(L="BubbleChart",b.sizeBy=p.field,p.scale?.range&&(b.sizeRange=p.scale.range)):L="Scatterplot",l(u,f,b,w,k),g&&(b.data=g);break;case"rect":L="Heatmap",u?.field&&(b.xAccessor=u.field),f?.field&&(b.yAccessor=f.field),d?.field&&(b.valueAccessor=d.field,delete b.colorBy),u?.axis?.title&&(b.xLabel=u.axis.title),f?.axis?.title&&(b.yLabel=f.axis.title),g&&(b.data=g);break;case"arc":r.innerRadius&&r.innerRadius>0?(L="DonutChart",b.innerRadius=r.innerRadius):L="PieChart",m?.field?b.valueAccessor=m.field:f?.field&&(b.valueAccessor=k?"value":f.field),d?.field&&(b.categoryAccessor=d.field),u?.field&&!m?.field&&(b.categoryAccessor=u.field),g&&(b.data=g);break;case"tick":L="DotPlot",i(u?.type)?(b.categoryAccessor=u.field,f?.field&&(b.valueAccessor=k?"value":f.field),u?.axis?.title&&(b.categoryLabel=u.axis.title),f?.axis?.title&&(b.valueLabel=f.axis.title)):i(f?.type)?(b.categoryAccessor=f.field,u?.field&&(b.valueAccessor=w?"value":u.field),b.orientation="horizontal",f?.axis?.title&&(b.categoryLabel=f.axis.title),u?.axis?.title&&(b.valueLabel=u.axis.title)):(u?.field&&(b.categoryAccessor=u.field),f?.field&&(b.valueAccessor=k?"value":f.field)),g&&(b.data=g);break;default:a.push(`Unsupported mark type "${o}". Defaulting to Scatterplot.`),L="Scatterplot",l(u,f,b,w,k),g&&(b.data=g)}return c(L,b,a)}function l(e,t,a,o,r){e?.field&&(a.xAccessor=o?"value":e.field),t?.field&&(a.yAccessor=r?"value":t.field),e?.axis?.title&&(a.xLabel=e.axis.title),t?.axis?.title&&(a.yLabel=t.axis.title)}function c(e,t,a){const o={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(a.length>0){o.warnings=a;for(const e of a)console.warn("[semiotic/fromVegaLite] "+e)}return o}function u(e,t={}){if(!e||"number"!=typeof e.numRows||!e.schema)return console.warn("[semiotic/fromArrow] Expected an Arrow table with `numRows` and `schema`. Returning []."),[];const a=!1!==t.coerceBigInt,o=e.schema.fields.map(e=>e.name),r=t.fields??o,i=[];for(const t of r){const a=e.getChild(t);a?i.push({name:t,column:a}):console.warn(`[semiotic/fromArrow] Column "${t}" is not in the table schema; skipping it.`)}let n=!1;const s=Array(e.numRows);for(let t=0;e.numRows>t;t++){const e={};for(const{name:o,column:r}of i){let i=r.get(t);a&&"bigint"==typeof i&&(i<BigInt(Number.MIN_SAFE_INTEGER)||i>BigInt(Number.MAX_SAFE_INTEGER)?n||(n=!0,console.warn("[semiotic/fromArrow] A 64-bit integer exceeds Number.MAX_SAFE_INTEGER; left as bigint to avoid precision loss.")):i=Number(i)),e[o]=i}s[t]=e}return s}function f(e,t,a){const{featureKey:o,dataKey:r}=a,i=new Map;for(const e of t){const t=(Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0)+"";i.set(t,e)}return e.map(e=>{const t=(e=>{const t=o.split(".");let a=e;for(const e of t)a=null!==a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;return(a??"")+""})(e),a=i.get(t);return a?{...e,properties:{...e.properties,...a}}:e})}var d,p=Object.defineProperty,m=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,b={};((e,t)=>{for(var a in t)p(e,a,{get:t[a],enumerable:!0})})(b,{bin:()=>e,fromArrow:()=>u,fromVegaLite:()=>s,groupBy:()=>a,mergeData:()=>f,pivot:()=>o,rollup:()=>t}),module.exports=(d=b,((e,t,a,o)=>{if(t)for(let a of y(t))g.call(e,a)||void 0===a||p(e,a,{get:()=>t[a],enumerable:!(o=m(t,a))||o.enumerable});return e})(p({},"__esModule",{value:!0}),d));var h={category10:"category10",category20:"category20",category20b:"category20",category20c:"category20",accent:"accent",dark2:"dark2",paired:"paired",pastel1:"pastel1",pastel2:"pastel2",set1:"set1",set2:"set2",set3:"set3",tableau10:"category10",tableau20:"category20"},v={linear:"linear","monotone-x":"monotoneX","monotone-y":"monotoneY",monotone:"monotoneX",step:"step","step-after":"stepAfter","step-before":"stepBefore",basis:"basis",cardinal:"cardinal","catmull-rom":"catmullRom"},x={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function e(e,t){let{field:a,bins:i=10}=t,l=e.map(e=>Number(e[a])).filter(e=>!isNaN(e));if(0===l.length)return[];let[o,n]=d(l),s=t.domain?t.domain[0]:o,c=t.domain?t.domain[1]:n;if(s===c)return[{category:`${s}-${c}`,value:l.length}];let u=(c-s)/i,f=Array(i).fill(0);for(let e of l){let t=Math.floor((e-s)/u);t===i&&(t=i-1),t>=0&&i>t&&f[t]++}return f.map((e,t)=>{let a=s+t*u,i=a+u;return{category:`${r(a)}-${r(i)}`,value:e}})}function t(e,t){let{groupBy:a,value:i,agg:r="sum"}=t,l=new Map,o="min"===r?1/0:"max"===r?-1/0:0;for(let t of e){let e=t[a]+"",n=l.get(e);n||(n={total:o,count:0},l.set(e,n));let s=Number(t[i]);switch(n.count++,r){case"count":break;case"min":n.total>s&&(n.total=s);break;case"max":s>n.total&&(n.total=s);break;default:n.total+=s}}let n=[];for(let[e,t]of l){let i="count"===r?t.count:"mean"===r?t.total/t.count:t.total;n.push({[a]:e,value:i})}return n}function a(e,t){let{key:a,fields:i}=t,r=new Map;for(let t of e){let e=t[a]+"";if(r.has(e)||r.set(e,[]),i){let a={};for(let e of i)e in t&&(a[e]=t[e]);r.get(e).push(a)}else r.get(e).push({...t})}let l=[];for(let[e,t]of r)l.push({id:e,coordinates:t});return l}function i(e,t){let{columns:a,nameField:i="name",valueField:r="value"}=t,l=new Set(a),o=[];for(let t of e){let e={};for(let a of Object.keys(t))l.has(a)||(e[a]=t[a]);for(let l of a)o.push({...e,[i]:l,[r]:t[l]})}return o}function r(e){return Math.round(1e3*e)/1e3+""}function l(e){return"nominal"===e||"ordinal"===e}function o(e){return"quantitative"===e||"temporal"===e}function n(e){e=function(e){if(!function(e){return e.usermeta?.idid}(e)||!Array.isArray(e.layer))return e;let t=e.layer.filter(e=>!function(e){return"annotation-layer"===e.usermeta?.idid?.role}(e));if(1!==t.length)return e;let{layer:a,...i}=e,{usermeta:r,...l}=t[0];return{...i,...l}}(e);let a,i=[],{type:r,markProps:n}=function(e){if(!e)return{type:"",markProps:{}};if("string"==typeof e)return{type:e,markProps:{}};let{type:t,...a}=e;return{type:t,markProps:a}}(e.mark),u=e.encoding||{},f=u.x,d=u.y,g=u.color,b=u.size,h=u.theta,v=u.opacity;e.data?.values?a=e.data.values:e.data?.url&&i.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&i.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&i.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&i.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||u.facet||u.row||u.column)&&i.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&i.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&i.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");let x={};e.width&&(x.width=e.width),e.height&&(x.height=e.height);let A=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(A&&(x.title=A),g?.field&&(x.colorBy=g.field,g.scale?.scheme)){let e=p[g.scale.scheme];e&&(x.colorScheme=e)}void 0!==v?.value&&(x.pointOpacity=v.value);let k,w=f?.aggregate,L=d?.aggregate;if(a&&(w||L)){let e=L?d:f,i=L?f:d,r=y[e.aggregate];if(r&&i?.field&&e.field)a=t(a,{groupBy:i.field,value:e.field,agg:r});else if(("count"===r||"count"===e.aggregate)&&i?.field&&a){let e=new Map;for(let t of a){let a=t[i.field]+"";e.set(a,(e.get(a)||0)+1)}a=Array.from(e,([e,t])=>({[i.field]:e,value:t}))}}if(f?.bin||d?.bin){let e="Histogram";a&&(x.data=a),f?.bin?(x.valueAccessor=f.field,d?.field&&(x.categoryAccessor=d.field),f.axis?.title&&(x.valueLabel=f.axis.title)):d?.bin&&(x.valueAccessor=d.field,f?.field&&(x.categoryAccessor=f.field),d.axis?.title&&(x.valueLabel=d.axis.title));let t=f?.bin||d?.bin,r="object"==typeof t?t.maxbins:void 0;return r&&(x.bins=r),c(e,x,i)}switch(r){case"bar":k=function(e,t,a,i,r,n,s){let c;return a?.field&&!1!==e?.stack&&!1!==t?.stack&&null!==e?.stack&&null!==t?.stack?(c="StackedBarChart",i.stackBy=a.field):c="BarChart",l(e?.type)&&o(t?.type)?(i.categoryAccessor=e.field,i.valueAccessor=s?"value":t.field,e?.axis?.title&&(i.categoryLabel=e.axis.title),t?.axis?.title&&(i.valueLabel=t.axis.title)):o(e?.type)&&l(t?.type)?(i.categoryAccessor=t.field,i.valueAccessor=n?"value":e.field,i.orientation="horizontal",t?.axis?.title&&(i.categoryLabel=t.axis.title),e?.axis?.title&&(i.valueLabel=e.axis.title)):(e?.field&&(i.categoryAccessor=e.field),t?.field&&(i.valueAccessor=s?"value":t.field),e?.axis?.title&&(i.categoryLabel=e.axis.title),t?.axis?.title&&(i.valueLabel=t.axis.title)),r&&(i.data=r),c}(f,d,g,x,a,w,L);break;case"line":if(k="LineChart",s(f,d,x,w,L),g?.field&&(x.lineBy=g.field),n.interpolate){let e=m[n.interpolate];e&&(x.curve=e)}!0===n.point&&(x.showPoints=!0),a&&(x.data=a);break;case"area":if(g?.field?(k="StackedAreaChart",x.areaBy=g.field):k="AreaChart",s(f,d,x,w,L),n.interpolate){let e=m[n.interpolate];e&&(x.curve=e)}void 0!==n.opacity&&(x.areaOpacity=n.opacity),a&&(x.data=a);break;case"point":case"circle":case"square":b?.field?(k="BubbleChart",x.sizeBy=b.field,b.scale?.range&&(x.sizeRange=b.scale.range)):k="Scatterplot",s(f,d,x,w,L),a&&(x.data=a);break;case"rect":k="Heatmap",f?.field&&(x.xAccessor=f.field),d?.field&&(x.yAccessor=d.field),g?.field&&(x.valueAccessor=g.field,delete x.colorBy),f?.axis?.title&&(x.xLabel=f.axis.title),d?.axis?.title&&(x.yLabel=d.axis.title),a&&(x.data=a);break;case"arc":n.innerRadius&&n.innerRadius>0?(k="DonutChart",x.innerRadius=n.innerRadius):k="PieChart",h?.field?x.valueAccessor=h.field:d?.field&&(x.valueAccessor=L?"value":d.field),g?.field&&(x.categoryAccessor=g.field),f?.field&&!h?.field&&(x.categoryAccessor=f.field),a&&(x.data=a);break;case"tick":k="DotPlot",l(f?.type)?(x.categoryAccessor=f.field,d?.field&&(x.valueAccessor=L?"value":d.field),f?.axis?.title&&(x.categoryLabel=f.axis.title),d?.axis?.title&&(x.valueLabel=d.axis.title)):l(d?.type)?(x.categoryAccessor=d.field,f?.field&&(x.valueAccessor=w?"value":f.field),x.orientation="horizontal",d?.axis?.title&&(x.categoryLabel=d.axis.title),f?.axis?.title&&(x.valueLabel=f.axis.title)):(f?.field&&(x.categoryAccessor=f.field),d?.field&&(x.valueAccessor=L?"value":d.field)),a&&(x.data=a);break;default:i.push(`Unsupported mark type "${r}". Defaulting to Scatterplot.`),k="Scatterplot",s(f,d,x,w,L),a&&(x.data=a)}return c(k,x,i)}function s(e,t,a,i,r){e?.field&&(a.xAccessor=i?"value":e.field),t?.field&&(a.yAccessor=r?"value":t.field),e?.axis?.title&&(a.xLabel=e.axis.title),t?.axis?.title&&(a.yLabel=t.axis.title)}function c(e,t,a){let i={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(a.length>0){i.warnings=a;for(let e of a)console.warn("[semiotic/fromVegaLite] "+e)}return i}function u(e,t={}){if(!e||"number"!=typeof e.numRows||!e.schema)return console.warn("[semiotic/fromArrow] Expected an Arrow table with `numRows` and `schema`. Returning []."),[];let a=!1!==t.coerceBigInt,i=e.schema.fields.map(e=>e.name),r=t.fields??i,l=[];for(let t of r){let a=e.getChild(t);a?l.push({name:t,column:a}):console.warn(`[semiotic/fromArrow] Column "${t}" is not in the table schema; skipping it.`)}let o=!1,n=Array(e.numRows);for(let t=0;e.numRows>t;t++){let e={};for(let{name:i,column:r}of l){let l=r.get(t);a&&"bigint"==typeof l&&(l<BigInt(Number.MIN_SAFE_INTEGER)||l>BigInt(Number.MAX_SAFE_INTEGER)?o||(o=!0,console.warn("[semiotic/fromArrow] A 64-bit integer exceeds Number.MAX_SAFE_INTEGER; left as bigint to avoid precision loss.")):l=Number(l)),e[i]=l}n[t]=e}return n}function f(e,t,a){let{featureKey:i,dataKey:r}=a,l=new Map;for(let e of t){let t=(Object.prototype.hasOwnProperty.call(e,r)?e[r]:void 0)+"";l.set(t,e)}return e.map(e=>{let t=(e=>{let t=i.split("."),a=e;for(let e of t)a=null!==a&&"object"==typeof a&&Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;return(a??"")+""})(e),a=l.get(t);return a?{...e,properties:{...e.properties,...a}}:e})}import{getMinMax as d}from"./c-QA3HMQJP.min.js";var p={category10:"category10",category20:"category20",category20b:"category20",category20c:"category20",accent:"accent",dark2:"dark2",paired:"paired",pastel1:"pastel1",pastel2:"pastel2",set1:"set1",set2:"set2",set3:"set3",tableau10:"category10",tableau20:"category20"},m={linear:"linear","monotone-x":"monotoneX","monotone-y":"monotoneY",monotone:"monotoneX",step:"step","step-after":"stepAfter","step-before":"stepBefore",basis:"basis",cardinal:"cardinal","catmull-rom":"catmullRom"},y={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};export{e as bin,u as fromArrow,n as fromVegaLite,a as groupBy,f as mergeData,i as pivot,t as rollup};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* semiotic/evidence — portable evidence envelopes and publication gates.
|
|
3
|
+
*
|
|
4
|
+
* Keep this separate from chart family entries: production rendering should
|
|
5
|
+
* not load provenance tooling unless a route asks for it.
|
|
6
|
+
*/
|
|
7
|
+
export { CHART_EVIDENCE_ENVELOPE_VERSION, fromEvidenceEnvelope, stableEvidenceHash, toEvidenceEnvelope, } from "./components/evidence/chartEvidenceEnvelope";
|
|
8
|
+
export type { ChartEvidenceEnvelope, EnvelopeAccessSection, EnvelopeAuditSection, EnvelopeChartSection, EnvelopeInputSection, EnvelopeLimitsSection, EnvelopeMeaningClaim, EnvelopeMeaningSection, EnvelopeModalityChecks, EnvelopeRenderSection, EnvelopeTransformOperation, EnvelopeTransformSection, EvidenceEnvelopeOptions, ModalityConflict, ModalityObservation, } from "./components/evidence/chartEvidenceEnvelope";
|
|
9
|
+
export { evaluateEvidenceGate, } from "./components/evidence/evidenceGate";
|
|
10
|
+
export type { EvidenceGateFinding, EvidenceGateOptions, EvidenceGateResult, EvidenceGateStatus, } from "./components/evidence/evidenceGate";
|