semiotic 3.9.0 → 3.9.2
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 +102 -90
- package/agent-skill/semiotic-charts/SKILL.md +14 -10
- package/ai/componentMetadata.cjs +13 -3
- package/ai/dist/mcp-server.js +140 -36407
- package/ai/examples.md +109 -6
- package/ai/reference.md +55 -18
- package/ai/schema.json +5964 -1190
- package/ai/surface-manifest.json +51 -7
- package/ai/system-prompt.md +16 -3
- package/dist/c-3SCUN5HI.min.js +1 -0
- package/dist/c-3VVKFA4M.min.js +1 -0
- package/dist/c-43TJZS3F.min.js +1 -0
- package/dist/c-4DTZPSUD.min.js +1 -0
- package/dist/c-4ES5367Y.min.js +1 -0
- package/dist/c-54IRWOGM.min.js +1 -0
- package/dist/c-5D2S4RMI.min.js +1 -0
- package/dist/c-5JWCTX3G.min.js +1 -0
- package/dist/c-6CMMSN6N.min.js +1 -0
- package/dist/c-6HRB2L7H.min.js +1 -0
- package/dist/c-7W4SV36A.min.js +1 -0
- package/dist/c-A4WRGZFX.min.js +1 -0
- package/dist/c-AG7WWVIH.min.js +1 -0
- package/dist/c-AH6J4MTN.min.js +1 -0
- package/dist/c-ALYR5LKK.min.js +1 -0
- package/dist/c-BYDPC44I.min.js +1 -0
- package/dist/c-CFFIU2MW.min.js +1 -0
- package/dist/c-CGNHBHCE.min.js +1 -0
- package/dist/c-CJYSXIFV.min.js +1 -0
- package/dist/c-CKLIFCGN.min.js +1 -0
- package/dist/c-CZF7MV67.min.js +1 -0
- package/dist/c-D53OKBSY.min.js +1 -0
- package/dist/c-DBQ2V7CH.min.js +1 -0
- package/dist/c-DPMVAUAW.min.js +1 -0
- package/dist/c-ECJCKLYY.min.js +1 -0
- package/dist/c-EGATGOWJ.min.js +1 -0
- package/dist/c-EGR6VYBW.min.js +1 -0
- package/dist/c-ENF72HU5.min.js +1 -0
- package/dist/c-ESNR43AN.min.js +1 -0
- package/dist/c-F3LIKINL.min.js +1 -0
- package/dist/c-F5ZB5GJ6.min.js +1 -0
- package/dist/c-G3VYMHKE.min.js +1 -0
- package/dist/c-GR6MOEQC.min.js +1 -0
- package/dist/c-GSVCN34B.min.js +1 -0
- package/dist/c-GYOQCEFP.min.js +1 -0
- package/dist/c-H3DNMTCC.min.js +1 -0
- package/dist/c-I6J3FEZE.min.js +1 -0
- package/dist/c-IGH6MGJ5.min.js +1 -0
- package/dist/c-II2EEAJN.min.js +1 -0
- package/dist/c-J6M4JHRS.min.js +1 -0
- package/dist/c-JM3MGLQV.min.js +1 -0
- package/dist/c-KM3N7F7R.min.js +1 -0
- package/dist/c-LF5BZFNC.min.js +1 -0
- package/dist/c-LKBSGFQC.min.js +1 -0
- package/dist/c-NDJADPIF.min.js +1 -0
- package/dist/c-NVPQCIL5.min.js +1 -0
- package/dist/c-OFWJBEE5.min.js +1 -0
- package/dist/c-OYFHP5F5.min.js +1 -0
- package/dist/c-PGKQGGQ2.min.js +1 -0
- package/dist/c-Q2IPZ3MU.min.js +1 -0
- package/dist/c-QKHMBE2E.min.js +1 -0
- package/dist/c-QMVM3AY6.min.js +1 -0
- package/dist/c-QSGWX53A.min.js +1 -0
- package/dist/c-RJKEKZOO.min.js +1 -0
- package/dist/c-SFDIIU5G.min.js +1 -0
- package/dist/c-SRTBCRVE.min.js +1 -0
- package/dist/c-T6UAIKBH.min.js +1 -0
- package/dist/c-TMCTEVVW.min.js +1 -0
- package/dist/c-TMOSJLT3.min.js +1 -0
- package/dist/c-U6ESPM7V.min.js +1 -0
- package/dist/c-UC5PTTFI.min.js +1 -0
- package/dist/c-VGKUEZBC.min.js +1 -0
- package/dist/c-VN2HG5BS.min.js +1 -0
- package/dist/{c-J5G56TUH.min.js → c-VPZDY5Q4.min.js} +1 -1
- package/dist/c-VRXUB2F2.min.js +1 -0
- package/dist/c-VUBQNQJH.min.js +1 -0
- package/dist/c-VUH4PGZY.min.js +1 -0
- package/dist/c-XDRV7RKW.min.js +1 -0
- package/dist/c-YGZHURXZ.min.js +1 -0
- package/dist/components/Annotation.d.ts +1 -1
- 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 +2 -1
- package/dist/components/ai/chartRecipes.d.ts +6 -0
- package/dist/components/ai/colorEvidence.d.ts +12 -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/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 +3 -0
- package/dist/components/charts/ordinal/DotPlot.d.ts +3 -0
- package/dist/components/charts/ordinal/FunnelChart.d.ts +3 -0
- package/dist/components/charts/ordinal/GaugeChart.d.ts +3 -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 +3 -0
- package/dist/components/charts/ordinal/RadarChart.capability.d.ts +2 -0
- package/dist/components/charts/ordinal/RadarChart.d.ts +75 -0
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +3 -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/GauntletChart.d.ts +1 -5
- package/dist/components/charts/physics/chainReactionTypes.d.ts +3 -0
- package/dist/components/charts/physics/gauntletPhysics.d.ts +1 -0
- package/dist/components/charts/physics/physicsHocUtils.d.ts +7 -1
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +10 -1
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +11 -1
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +14 -5
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +7 -1
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +7 -1
- package/dist/components/charts/realtime/aggregate.d.ts +12 -1
- package/dist/components/charts/realtime/realtimeChartRuntime.d.ts +4 -2
- package/dist/components/charts/realtime/realtimeStyleRules.d.ts +4 -0
- package/dist/components/charts/shared/annotationStatusFilter.d.ts +18 -0
- 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/selectionUtils.d.ts +3 -1
- package/dist/components/charts/shared/types.d.ts +4 -2
- package/dist/components/charts/shared/useChartLegend.d.ts +2 -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/xy/Heatmap.d.ts +16 -0
- package/dist/components/charts/xy/LineChart.d.ts +9 -0
- package/dist/components/charts/xy/Scatterplot.d.ts +7 -0
- package/dist/components/charts/xy/WaterfallChart.capability.d.ts +2 -0
- package/dist/components/charts/xy/WaterfallChart.d.ts +68 -0
- package/dist/components/evidence/chartEvidenceEnvelope.d.ts +146 -0
- package/dist/components/evidence/evidenceGate.d.ts +28 -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/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 +9 -0
- package/dist/components/semiotic-ai.d.ts +5 -17
- package/dist/components/semiotic-evidence.d.ts +10 -0
- 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-realtime-core.d.ts +3 -2
- package/dist/components/semiotic-recipes-core.d.ts +6 -0
- package/dist/components/semiotic-themes-core.d.ts +3 -0
- package/dist/components/semiotic-utils-core.d.ts +5 -0
- package/dist/components/semiotic-utils.d.ts +1 -1
- package/dist/components/semiotic-xy.d.ts +3 -0
- package/dist/components/semiotic.d.ts +9 -3
- package/dist/components/server/renderDashboard.d.ts +37 -0
- package/dist/components/server/renderEvidence.d.ts +27 -0
- package/dist/components/server/renderToStaticSVG.d.ts +2 -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/store/selectionProvenance.d.ts +8 -0
- package/dist/components/store/themeCore.d.ts +5 -1
- package/dist/components/stream/GeoPipelineStore.d.ts +1 -1
- 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/OrdinalPipelineStore.d.ts +1 -1
- package/dist/components/stream/PipelineStore.d.ts +1 -1
- package/dist/components/stream/SceneToSVG.d.ts +1 -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/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/physics/StreamPhysicsTypes.d.ts +1 -1
- package/dist/components/stream/pipelineDomainResolution.d.ts +6 -0
- package/dist/components/stream/renderers/pointCanvasRenderer.d.ts +4 -0
- package/dist/components/stream/renderers/resolveCSSColor.d.ts +4 -4
- package/dist/components/stream/types.d.ts +8 -1
- package/dist/components/stream/useEnsureCustomXYRenderers.d.ts +18 -0
- package/dist/components/stream/useMarginalValues.d.ts +13 -0
- package/dist/components/stream/xyCanvasRenderers.d.ts +4 -4
- 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/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.module.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-core.d.ts +9 -0
- package/dist/semiotic-ai-core.min.js +1 -1
- package/dist/semiotic-ai-core.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +5 -17
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-client-cjs-shared.min.js +1 -1
- package/dist/semiotic-client-shared.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-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-realtime-core.d.ts +3 -2
- package/dist/semiotic-realtime-core.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-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-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 +5 -0
- package/dist/semiotic-utils-core.min.js +1 -1
- package/dist/semiotic-utils-core.module.min.js +1 -1
- package/dist/semiotic-utils.d.ts +1 -1
- package/dist/semiotic-utils.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +3 -0
- package/dist/semiotic.d.ts +9 -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 +39 -60
- package/dist/c-3KZD6AXJ.min.js +0 -1
- package/dist/c-4TWEX5HG.min.js +0 -1
- package/dist/c-5YCIX3VZ.min.js +0 -1
- package/dist/c-6FEKTA3U.min.js +0 -1
- package/dist/c-74HEEZGK.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-E3JFRRMI.min.js +0 -1
- package/dist/c-EBFPQHHO.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-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-O6U6K4CW.min.js +0 -1
- package/dist/c-OQ7M4AGV.min.js +0 -1
- package/dist/c-OXYMVK7Q.min.js +0 -1
- package/dist/c-QHF5YON3.min.js +0 -1
- package/dist/c-RR3GO5SW.min.js +0 -1
- package/dist/c-S2BXNNJN.min.js +0 -1
- package/dist/c-SUILCHWU.min.js +0 -1
- package/dist/c-US5ZFT6E.min.js +0 -1
- package/dist/c-UUKVD4WB.min.js +0 -1
- package/dist/c-WJCD5EUY.min.js +0 -1
- package/dist/c-YDAY2WFR.min.js +0 -1
- package/dist/c-ZOWWU34K.min.js +0 -1
- /package/dist/{c-COHXCW3Q.min.js → c-YZVRZGX2.min.js} +0 -0
package/README.md
CHANGED
|
@@ -17,54 +17,31 @@ AI coding assistants generate correct chart code on the first try.
|
|
|
17
17
|
<img src="./docs/public/assets/img/semiotic-release-dashboard.svg" alt="Semiotic release dashboard showing chart count, bundle sizes, capability coverage, chart families, and documentation growth" width="100%">
|
|
18
18
|
<!-- semiotic-readme-dashboard:end -->
|
|
19
19
|
|
|
20
|
-
## What's New in 3.9.
|
|
21
|
-
|
|
22
|
-
3.9.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
import { ForceDirectedGraph } from "semiotic/network"
|
|
46
|
-
|
|
47
|
-
<ForceDirectedGraph
|
|
48
|
-
nodes={nodes}
|
|
49
|
-
edges={edges}
|
|
50
|
-
styleRules={[
|
|
51
|
-
{ when: node => Boolean(node.url), style: { cursor: "pointer" } }
|
|
52
|
-
]}
|
|
53
|
-
onClick={node => node?.url && openNode(node.url)}
|
|
54
|
-
/>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
Simple charts stay five lines:
|
|
58
|
-
|
|
59
|
-
```jsx
|
|
60
|
-
import { LineChart } from "semiotic/xy"
|
|
61
|
-
|
|
62
|
-
<LineChart
|
|
63
|
-
data={salesData}
|
|
64
|
-
xAccessor="month"
|
|
65
|
-
yAccessor="revenue"
|
|
66
|
-
/>
|
|
67
|
-
```
|
|
20
|
+
## What's New in 3.9.2
|
|
21
|
+
|
|
22
|
+
3.9.2 expands Semiotic's portable chart, accessibility, evidence, and rendering
|
|
23
|
+
surfaces while tightening browser/server parity and production entry graphs:
|
|
24
|
+
|
|
25
|
+
- `LineChart` gains the dedicated `semiotic/line` entry, and chart HOCs,
|
|
26
|
+
network layouts, force workers, and optional overlays load only the runtime
|
|
27
|
+
code their chart paths need.
|
|
28
|
+
- `ChartAccessContract@1`, `ChartEvidenceEnvelope@1`, and the new
|
|
29
|
+
`semiotic/access` and `semiotic/evidence` entries provide schema-backed access
|
|
30
|
+
inventories, privacy-aware provenance, deterministic hashing, MCP evidence
|
|
31
|
+
fragments, and publication gates.
|
|
32
|
+
- `ParallelCoordinatesRecipe` and `CalendarHeatmapRecipe` are now portable,
|
|
33
|
+
JSON-safe chart recipes, while Minimap, ScatterplotMatrix, and ChainReaction
|
|
34
|
+
gain evidence-backed static rendering through `semiotic/server` and MCP.
|
|
35
|
+
- Typed realtime handles preserve authored row types, `styleRules` now spans
|
|
36
|
+
ordinal, XY, network, geo, realtime, and physics families, and structured
|
|
37
|
+
navigation provides overview-first hierarchy and choropleth semantics.
|
|
38
|
+
- Renderer and interaction fixes cover constant-value heatmaps, linked
|
|
39
|
+
selection and hover, automatic network legends, Waterfall and Radar geometry,
|
|
40
|
+
marginal graphics, custom layouts, tree-shaken network registration, and
|
|
41
|
+
instance-local accessible names.
|
|
42
|
+
- Release evidence now includes controlled dense-browser measurements,
|
|
43
|
+
deterministic linked-hover cohorts, generated bundle guidance, stronger AI
|
|
44
|
+
diagnostics, and stricter shipped-product and contributor gates.
|
|
68
45
|
|
|
69
46
|
## Why Semiotic
|
|
70
47
|
|
|
@@ -79,7 +56,7 @@ generate correct code without examples.
|
|
|
79
56
|
Semiotic ships with everything an AI coding assistant needs to generate
|
|
80
57
|
correct visualizations without trial and error:
|
|
81
58
|
|
|
82
|
-
- **`semiotic/ai`** — a single import with the schema-backed chart capability catalog (XY, ordinal, network, realtime, geo, value), optimized for LLM code generation. See `ai/surface-manifest.json` for the generated current inventory. Note: the published entry files are pre-bundled, so importing one chart from `semiotic/ai` still ships most of the bundle — treat it as a codegen/tooling surface and use family subpaths (`semiotic/xy`, `semiotic/geo`, `semiotic/value`, …) in production code, at roughly half the single-chart cost.
|
|
59
|
+
- **`semiotic/ai`** — a single import with the schema-backed chart capability catalog (XY, ordinal, network, realtime, geo, value, and portable recipes), optimized for LLM code generation. See `ai/surface-manifest.json` for the generated current inventory. Note: the published entry files are pre-bundled, so importing one chart from `semiotic/ai` still ships most of the bundle — treat it as a codegen/tooling surface and use family subpaths (`semiotic/xy`, `semiotic/geo`, `semiotic/value`, …) in production code, at roughly half the single-chart cost.
|
|
83
60
|
- **`ai/schema.json`** — machine-readable prop schemas for every component
|
|
84
61
|
- **`npx semiotic-mcp`** — an MCP server for tool-based chart rendering in any MCP client
|
|
85
62
|
- **`npx semiotic-ai --doctor`** — validate component + props JSON from the command line with typo suggestions and anti-pattern detection
|
|
@@ -147,6 +124,11 @@ needs to communicate more than its encoding alone.
|
|
|
147
124
|
| **Charts** | Common chart forms with chart-level props | `<LineChart data={d} xAccessor="x" yAccessor="y" />` |
|
|
148
125
|
| **Frames** | Full control over rendering, interaction, and layout | `<StreamXYFrame chartType="line" lineStyle={...} />` |
|
|
149
126
|
|
|
127
|
+
Chart HOCs register only the mark plugins they need. Direct `StreamXYFrame`
|
|
128
|
+
loads the remaining built-ins on first client paint. Call
|
|
129
|
+
`registerBuiltInXYPlugins()` from `semiotic/xy` or `semiotic/realtime/core`
|
|
130
|
+
before the first render when SSR or the first frame must include marks.
|
|
131
|
+
|
|
150
132
|
Every Chart component accepts a `frameProps` prop to access the underlying
|
|
151
133
|
Frame API without leaving the simpler interface.
|
|
152
134
|
|
|
@@ -410,7 +392,7 @@ loadConversationArc(sink.load(), { enabled: false })
|
|
|
410
392
|
|
|
411
393
|
## Bundle Sizes
|
|
412
394
|
|
|
413
|
-
Semiotic ships
|
|
395
|
+
Semiotic ships 32 stable JavaScript entry points (31 subpaths plus the root). **Don't import from `"semiotic"` unless you need everything** — use the smallest sub-path that matches your charts or tooling.
|
|
414
396
|
|
|
415
397
|
The numbers below are **first-party artifact cost**: the gzip size of Semiotic's own code for each sub-path. They exclude React and other runtime dependencies, so they are not a prediction of a cold application bundle. Do not add artifact rows to estimate an app: dependency resolution and cross-import deduplication happen in the consumer bundler and are measured separately below.
|
|
416
398
|
|
|
@@ -419,35 +401,38 @@ The numbers below are **first-party artifact cost**: the gzip size of Semiotic's
|
|
|
419
401
|
|
|
420
402
|
| Entry Point | gzip | What's inside |
|
|
421
403
|
|---|---|---|
|
|
422
|
-
| `semiotic/
|
|
423
|
-
| `semiotic/
|
|
424
|
-
| `semiotic/
|
|
425
|
-
| `semiotic/
|
|
426
|
-
| `semiotic/
|
|
427
|
-
| `semiotic/
|
|
404
|
+
| `semiotic/access` | **35 KB** | Chart Access Contract factory and first-wave baseline contracts |
|
|
405
|
+
| `semiotic/evidence` | **50 KB** | Chart Evidence Envelope, deterministic hashing, and publication gate |
|
|
406
|
+
| `semiotic/line` | **135 KB** | LineChart only — one-chart micro boundary |
|
|
407
|
+
| `semiotic/xy` | **166 KB** | LineChart, AreaChart, Scatterplot, Heatmap, + 8 more XY charts |
|
|
408
|
+
| `semiotic/ordinal` | **130 KB** | BarChart, PieChart, BoxPlot, Histogram, + 11 more categorical charts |
|
|
409
|
+
| `semiotic/network` | **157 KB** | ForceDirectedGraph, SankeyDiagram, ProcessSankey, Treemap, + 4 more |
|
|
410
|
+
| `semiotic/geo` | **113 KB** | ChoroplethMap, FlowMap, DistanceCartogram, ProportionalSymbolMap |
|
|
411
|
+
| `semiotic/realtime` | **162 KB** | RealtimeLineChart, RealtimeHistogram, + 4 streaming charts |
|
|
412
|
+
| `semiotic/realtime/core` | **161 KB** | Streaming chart types, HOCs, and buffer helpers |
|
|
428
413
|
| `semiotic/realtime/react` | **1 KB** | Stream status and synced push hooks |
|
|
429
|
-
| `semiotic/server` | **
|
|
430
|
-
| `semiotic/server/node` | **
|
|
431
|
-
| `semiotic/server/edge` | **
|
|
432
|
-
| `semiotic/utils` | **
|
|
433
|
-
| `semiotic/utils/core` | **
|
|
414
|
+
| `semiotic/server` | **216 KB** | renderChart, renderDashboard, renderToImage, renderToAnimatedGif |
|
|
415
|
+
| `semiotic/server/node` | **216 KB** | renderChart, renderDashboard, renderToImage, renderToAnimatedGif |
|
|
416
|
+
| `semiotic/server/edge` | **222 KB** | renderChart, renderChartWithEvidence, renderToStaticSVG, renderDashboard |
|
|
417
|
+
| `semiotic/utils` | **103 KB** | ThemeProvider, numeric/accessibility audits, serialization — no chart components |
|
|
418
|
+
| `semiotic/utils/core` | **95 KB** | Pure theme helpers, numeric/accessibility audits, and serialization |
|
|
434
419
|
| `semiotic/utils/react` | **7 KB** | ThemeProvider, useTheme, useReducedMotion, useHighContrast, useStreamStatus |
|
|
435
|
-
| `semiotic/recipes` | **
|
|
436
|
-
| `semiotic/recipes/core` | **
|
|
437
|
-
| `semiotic/recipes/react` | **
|
|
438
|
-
| `semiotic/themes` | **
|
|
439
|
-
| `semiotic/themes/core` | **
|
|
440
|
-
| `semiotic/themes/react` | **
|
|
420
|
+
| `semiotic/recipes` | **100 KB** | Pure layout functions (waffle, marimekko, flextree, dagre, …) |
|
|
421
|
+
| `semiotic/recipes/core` | **92 KB** | Pure layout functions (waffle, marimekko, flextree, dagre, …) |
|
|
422
|
+
| `semiotic/recipes/react` | **8 KB** | Glyph and React layout-selection helpers |
|
|
423
|
+
| `semiotic/themes` | **12 KB** | Theme presets only (tufte, carbon, etc.) |
|
|
424
|
+
| `semiotic/themes/core` | **12 KB** | Theme presets and token helpers |
|
|
425
|
+
| `semiotic/themes/react` | **7 KB** | ThemeProvider/useTheme and hooks |
|
|
441
426
|
| `semiotic/data` | **4 KB** | bin, rollup, groupBy, pivot, fromVegaLite |
|
|
442
427
|
| `semiotic/value` | **6 KB** | BigNumber — focal-value KPI / scorecard (SingleValueFrame POC) |
|
|
443
|
-
| `semiotic/physics` | **
|
|
428
|
+
| `semiotic/physics` | **168 KB** | GaltonBoardChart, EventDropChart, UnitPileChart, CollisionSwarmChart, PacketFlowChart, PhysicsCustomChart |
|
|
444
429
|
| `semiotic/physics/matter` | **1 KB** | Matter.js migration helpers + optional peer guard (no chart components) |
|
|
445
430
|
| `semiotic/physics/rapier` | **1 KB** | Rapier peer guard + adapter decision metadata (no chart components) |
|
|
446
|
-
| `semiotic/ai` | **
|
|
447
|
-
| `semiotic/ai/core` | **
|
|
431
|
+
| `semiotic/ai` | **553 KB** | All schema-backed charts + validation — optimized for LLM code generation |
|
|
432
|
+
| `semiotic/ai/core` | **101 KB** | suggestCharts, auditData, describeChart, repairChartConfig, tool adapters — no chart components |
|
|
448
433
|
| `semiotic/controls` | **11 KB** | DirectManipulationControl, CircularBrush, MobileStandardControls, auditVisualizationControls — no frame renderer |
|
|
449
434
|
| `semiotic/rough` | **3 KB** | Optional deterministic Rough.js paint backend — exact Semiotic geometry remains authoritative |
|
|
450
|
-
| `semiotic` | **
|
|
435
|
+
| `semiotic` | **360 KB** | Everything below (full bundle) |
|
|
451
436
|
|
|
452
437
|
<!-- semiotic-bundle-sizes:end -->
|
|
453
438
|
|
|
@@ -468,38 +453,57 @@ Method: fresh `npm pack --ignore-scripts` tarball → temporary consumer → min
|
|
|
468
453
|
|
|
469
454
|
| Public named import | Runtime | gzip cold-consumer bundle |
|
|
470
455
|
|---|---:|---:|
|
|
471
|
-
| `import { LineChart } from "semiotic"` | browser | **
|
|
472
|
-
| `import { LineChart } from "semiotic/xy"` | browser | **
|
|
473
|
-
| `import {
|
|
474
|
-
| `import {
|
|
475
|
-
| `import {
|
|
456
|
+
| `import { LineChart } from "semiotic"` | browser | **140.0 KiB** |
|
|
457
|
+
| `import { LineChart } from "semiotic/xy"` | browser | **140.4 KiB** |
|
|
458
|
+
| `import { LineChart } from "semiotic/line"` | browser | **140.3 KiB** |
|
|
459
|
+
| `import { BarChart } from "semiotic/ordinal"` | browser | **133.1 KiB** |
|
|
460
|
+
| `import { SankeyDiagram } from "semiotic/network"` | browser | **157.5 KiB** |
|
|
461
|
+
| `import { RealtimeLineChart } from "semiotic/realtime"` | browser | **141.0 KiB** |
|
|
476
462
|
| `import { RingBuffer } from "semiotic/realtime/core"` | browser | **0.7 KiB** |
|
|
477
463
|
| `import { useStreamStatus } from "semiotic/realtime/react"` | browser | **0.6 KiB** |
|
|
478
|
-
| `import { GaltonBoardChart } from "semiotic/physics"` | browser | **
|
|
464
|
+
| `import { GaltonBoardChart } from "semiotic/physics"` | browser | **150.3 KiB** |
|
|
479
465
|
| `import { MATTER_PHYSICS_CAPABILITIES } from "semiotic/physics/matter"` | browser | **0.2 KiB** |
|
|
480
466
|
| `import { RAPIER_PHYSICS_CAPABILITIES } from "semiotic/physics/rapier"` | browser | **0.2 KiB** |
|
|
481
|
-
| `import { renderChart } from "semiotic/server"` | node | **
|
|
482
|
-
| `import { generateFrameSVGs } from "semiotic/server/edge"` | node | **
|
|
483
|
-
| `import { renderToImage } from "semiotic/server/node"` | node | **
|
|
484
|
-
| `import { suggestCharts } from "semiotic/ai"` | browser | **
|
|
485
|
-
| `import { suggestCharts } from "semiotic/ai/core"` | browser | **
|
|
467
|
+
| `import { renderChart } from "semiotic/server"` | node | **263.4 KiB** |
|
|
468
|
+
| `import { generateFrameSVGs } from "semiotic/server/edge"` | node | **118.8 KiB** |
|
|
469
|
+
| `import { renderToImage } from "semiotic/server/node"` | node | **264.0 KiB** |
|
|
470
|
+
| `import { suggestCharts } from "semiotic/ai"` | browser | **253.5 KiB** |
|
|
471
|
+
| `import { suggestCharts } from "semiotic/ai/core"` | browser | **44.8 KiB** |
|
|
472
|
+
| `import { createChartAccessContract } from "semiotic/access"` | browser | **31.0 KiB** |
|
|
473
|
+
| `import { toEvidenceEnvelope } from "semiotic/evidence"` | browser | **40.1 KiB** |
|
|
486
474
|
| `import { bin } from "semiotic/data"` | browser | **0.4 KiB** |
|
|
487
|
-
| `import { ChoroplethMap } from "semiotic/geo"` | browser | **
|
|
475
|
+
| `import { ChoroplethMap } from "semiotic/geo"` | browser | **115.5 KiB** |
|
|
488
476
|
| `import { createRoughRenderMode } from "semiotic/rough"` | browser | **3.1 KiB** |
|
|
489
477
|
| `import { resolveThemePreset } from "semiotic/themes"` | browser | **2.6 KiB** |
|
|
490
478
|
| `import { resolveThemePreset } from "semiotic/themes/core"` | browser | **2.6 KiB** |
|
|
491
|
-
| `import { ThemeProvider } from "semiotic/themes/react"` | browser | **5.
|
|
492
|
-
| `import { validateProps } from "semiotic/utils"` | browser | **9.
|
|
493
|
-
| `import { smartTickFormat } from "semiotic/utils/core"` | browser | **6.
|
|
494
|
-
| `import { useReducedMotion } from "semiotic/utils/react"` | browser | **2.
|
|
495
|
-
| `import { waffleLayout } from "semiotic/recipes"` | browser | **
|
|
496
|
-
| `import { waffleLayout } from "semiotic/recipes/core"` | browser | **
|
|
479
|
+
| `import { ThemeProvider } from "semiotic/themes/react"` | browser | **5.2 KiB** |
|
|
480
|
+
| `import { validateProps } from "semiotic/utils"` | browser | **9.2 KiB** |
|
|
481
|
+
| `import { smartTickFormat } from "semiotic/utils/core"` | browser | **6.9 KiB** |
|
|
482
|
+
| `import { useReducedMotion } from "semiotic/utils/react"` | browser | **2.4 KiB** |
|
|
483
|
+
| `import { waffleLayout } from "semiotic/recipes"` | browser | **1.7 KiB** |
|
|
484
|
+
| `import { waffleLayout } from "semiotic/recipes/core"` | browser | **1.7 KiB** |
|
|
497
485
|
| `import { Glyph } from "semiotic/recipes/react"` | browser | **0.8 KiB** |
|
|
498
486
|
| `import { BigNumber } from "semiotic/value"` | browser | **5.9 KiB** |
|
|
499
487
|
| `import { DirectManipulationControl } from "semiotic/controls"` | browser | **1.3 KiB** |
|
|
500
488
|
|
|
489
|
+
**Line-boundary interpretation:** the retained named import from `semiotic/line` emits 422.7 KiB raw versus 422.7 KiB from `semiotic/xy`; gzip differs by 0.1 KiB (0.1%). Tree-shaking converges both paths on the same LineChart implementation graph. Treat `semiotic/line` as a narrower API/direct-ESM artifact boundary, not an application-bundle saving. Do not add another per-chart entry until its packed named import beats the family path by both 10 KiB gzip and 7%.
|
|
490
|
+
|
|
501
491
|
<!-- semiotic-cold-consumer:end -->
|
|
502
492
|
|
|
493
|
+
**d3 packaging model:** Semiotic externalizes the twelve d3 modules it imports
|
|
494
|
+
and declares them as normal runtime dependencies. Consumers do not need to
|
|
495
|
+
install d3 packages manually; their bundler resolves, deduplicates, and
|
|
496
|
+
tree-shakes that dependency graph. A packed webpack comparison favored this
|
|
497
|
+
model in three of four representative chart families, and a Next 16 webpack
|
|
498
|
+
route was 21.8 KiB gzip smaller than the fully bundled alternative. The one
|
|
499
|
+
bundled win, Sankey, was only 1.1 KiB gzip. This choice retains a 22-package,
|
|
500
|
+
1.9 MB unpacked d3 install closure in exchange for smaller common application
|
|
501
|
+
graphs and an ordinary dependency contract. The checked policy is
|
|
502
|
+
`npm run check:d3-packaging`; the reproducible evidence is in
|
|
503
|
+
`benchmarks/setup/d3-packaging.json` and can be regenerated with
|
|
504
|
+
`npm run measure:d3-packaging -- --toolchain-root <dir>` after installing
|
|
505
|
+
webpack and Next in that isolated toolchain directory.
|
|
506
|
+
|
|
503
507
|
```jsx
|
|
504
508
|
// Import from the sub-path, not from "semiotic"
|
|
505
509
|
import { LineChart } from "semiotic/xy"
|
|
@@ -512,6 +516,12 @@ import { ChoroplethMap } from "semiotic/geo"
|
|
|
512
516
|
|
|
513
517
|
**When to use `"semiotic"`**: Fine when you want one import for mixed families. Shared chunks prevent duplicated runtime code across family subpaths; the cold-consumer table above is the better guide for a single named import.
|
|
514
518
|
|
|
519
|
+
**CommonJS compatibility note:** `require("semiotic/xy")` loads the shared
|
|
520
|
+
CommonJS client bundle (about 2.1 MB before compression) so React contexts stay
|
|
521
|
+
singletons across family imports. Prefer ESM imports in browser builds when
|
|
522
|
+
bundle size matters; splitting that CJS client without a context-identity
|
|
523
|
+
contract would be unsafe.
|
|
524
|
+
|
|
515
525
|
## TypeScript
|
|
516
526
|
|
|
517
527
|
Built with `strict: true`. Full type definitions ship with the package.
|
|
@@ -621,7 +631,9 @@ host-header allowlisting. For ChatGPT Apps domain verification, set
|
|
|
621
631
|
| Resource | Description |
|
|
622
632
|
|----------|-------------|
|
|
623
633
|
| **`semiotic://schema`** | Full machine-readable component schema JSON. |
|
|
624
|
-
| **`semiotic://
|
|
634
|
+
| **`semiotic://schema-index`** | Compact discovery index with categories, renderability, import paths, and each component's schema resource URI. |
|
|
635
|
+
| **`semiotic://schema/{component}`** | One component's schema, metadata, accessibility guidance, and behavior contracts (for example `semiotic://schema/LineChart`). |
|
|
636
|
+
| **`semiotic://components`** | Backward-compatible component index showing renderable/browser-only status and MCP categories. |
|
|
625
637
|
| **`semiotic://surface-manifest`** | Generated inventory of the current AI schema, exports, renderability, tools, resources, and prompts. |
|
|
626
638
|
| **`semiotic://behavior-contracts`** | Agent-visible semantic rules for color precedence, required prop combinations, push refs, and renderability. |
|
|
627
639
|
| **`semiotic://system-prompt`** | Compact AI instructions with import rules, chart props, SSR guidance, and pitfalls. |
|
|
@@ -16,11 +16,12 @@ validated and diagnosed; when a renderer is available, proven to paint. Otherwis
|
|
|
16
16
|
|
|
17
17
|
## Context discipline
|
|
18
18
|
|
|
19
|
-
Start with the task and the exact component schema. Use the MCP `getSchema` tool
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
Start with the task and the exact component schema. Use the MCP `getSchema` tool,
|
|
20
|
+
read `semiotic://schema/{component}`, or run
|
|
21
|
+
`npx semiotic-ai --schema <Component>`, then read one nearby example if needed.
|
|
22
|
+
Use `semiotic://schema-index` when the component is not known. Do not load the
|
|
23
|
+
full reference, schema, or example catalog by default; retrieve broader context
|
|
24
|
+
only when validation or diagnosis shows that it is necessary.
|
|
24
25
|
|
|
25
26
|
## The trust loop — generate → validate → diagnose → repair → prove
|
|
26
27
|
|
|
@@ -76,10 +77,13 @@ const ranked = suggestCharts(data, { intent: "trend", maxResults: 3, audience })
|
|
|
76
77
|
These are enforced by validation and the `npx semiotic-ai --doctor` gate. Honor
|
|
77
78
|
them in every proposal:
|
|
78
79
|
|
|
79
|
-
1. **Sub-path imports.** Import from the
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
1. **Sub-path imports.** Import from the smallest stable entry that covers every
|
|
81
|
+
chart in the route, never the barrel: use `semiotic/line` when `LineChart`
|
|
82
|
+
is the only XY chart; otherwise use family entries such as `semiotic/xy`,
|
|
83
|
+
`semiotic/ordinal`, `semiotic/network`, `semiotic/geo`, `semiotic/realtime`,
|
|
84
|
+
or `semiotic/ai`. Family entries avoid loading other families and the
|
|
85
|
+
AI/server surfaces; they do not necessarily exclude unused marks within their
|
|
86
|
+
own family.
|
|
83
87
|
2. **Static usage requires data in props.** `renderChart`, SSR snapshots, and any
|
|
84
88
|
copy-paste example need `data` (or `nodes`/`edges`) present.
|
|
85
89
|
3. **Push (live) mode omits `data` entirely.** Create a ref, do NOT pass
|
|
@@ -102,7 +106,7 @@ them in every proposal:
|
|
|
102
106
|
## What good output looks like
|
|
103
107
|
|
|
104
108
|
```tsx
|
|
105
|
-
import { LineChart } from "semiotic/
|
|
109
|
+
import { LineChart } from "semiotic/line"
|
|
106
110
|
|
|
107
111
|
<LineChart
|
|
108
112
|
data={series}
|
package/ai/componentMetadata.cjs
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict"
|
|
2
2
|
|
|
3
|
-
const CATEGORY_ORDER = ["xy", "ordinal", "network", "geo", "realtime", "physics", "value"]
|
|
3
|
+
const CATEGORY_ORDER = ["xy", "ordinal", "network", "geo", "realtime", "physics", "value", "recipe"]
|
|
4
4
|
|
|
5
5
|
const COMPONENTS_BY_CATEGORY = {
|
|
6
6
|
xy: [
|
|
7
7
|
"LineChart", "BumpChart", "AreaChart", "DifferenceChart", "StackedAreaChart", "Scatterplot", "QuadrantChart",
|
|
8
8
|
"MultiAxisLineChart", "CandlestickChart", "BubbleChart", "Heatmap",
|
|
9
|
-
"ConnectedScatterplot", "ScatterplotMatrix", "MinimapChart",
|
|
9
|
+
"ConnectedScatterplot", "ScatterplotMatrix", "MinimapChart", "WaterfallChart",
|
|
10
10
|
],
|
|
11
11
|
ordinal: [
|
|
12
12
|
"BarChart", "StackedBarChart", "LikertChart", "GroupedBarChart", "SwarmPlot",
|
|
13
13
|
"BoxPlot", "Histogram", "ViolinPlot", "RidgelinePlot", "DotPlot", "PieChart",
|
|
14
|
-
"DonutChart", "GaugeChart", "FunnelChart", "SwimlaneChart",
|
|
14
|
+
"DonutChart", "GaugeChart", "FunnelChart", "RadarChart", "SwimlaneChart",
|
|
15
15
|
],
|
|
16
16
|
network: [
|
|
17
17
|
"ForceDirectedGraph", "SankeyDiagram", "ProcessSankey", "ChordDiagram",
|
|
@@ -32,6 +32,9 @@ const COMPONENTS_BY_CATEGORY = {
|
|
|
32
32
|
value: [
|
|
33
33
|
"BigNumber",
|
|
34
34
|
],
|
|
35
|
+
recipe: [
|
|
36
|
+
"ParallelCoordinatesRecipe", "CalendarHeatmapRecipe",
|
|
37
|
+
],
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
const COMPONENT_TO_CATEGORY = new Map()
|
|
@@ -67,9 +70,14 @@ function categoryForAIExport(name) {
|
|
|
67
70
|
|
|
68
71
|
function importPathForCategory(category) {
|
|
69
72
|
if (category === "physics") return "semiotic/physics"
|
|
73
|
+
if (category === "recipe") return "semiotic/ai"
|
|
70
74
|
return category === "geo" ? "semiotic/geo" : `semiotic/${category}`
|
|
71
75
|
}
|
|
72
76
|
|
|
77
|
+
function schemaResourceUriForComponent(name) {
|
|
78
|
+
return `semiotic://schema/${encodeURIComponent(name)}`
|
|
79
|
+
}
|
|
80
|
+
|
|
73
81
|
function metadataForComponent(entryOrName) {
|
|
74
82
|
const name = typeof entryOrName === "string" ? entryOrName : entryOrName.name
|
|
75
83
|
const category = categoryForComponent(name)
|
|
@@ -84,6 +92,7 @@ function metadataForComponent(entryOrName) {
|
|
|
84
92
|
name,
|
|
85
93
|
category,
|
|
86
94
|
importPath: importPathForCategory(category),
|
|
95
|
+
schemaResourceUri: schemaResourceUriForComponent(name),
|
|
87
96
|
renderable: !isPushOnly,
|
|
88
97
|
requiresLiveData: isPushOnly,
|
|
89
98
|
description: typeof entryOrName === "string" ? undefined : entryOrName.description,
|
|
@@ -134,5 +143,6 @@ module.exports = {
|
|
|
134
143
|
findComponent,
|
|
135
144
|
importPathForCategory,
|
|
136
145
|
metadataForComponent,
|
|
146
|
+
schemaResourceUriForComponent,
|
|
137
147
|
schemaEntries,
|
|
138
148
|
}
|