semiotic 3.7.5 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (575) hide show
  1. package/CLAUDE.md +63 -18
  2. package/README.md +121 -27
  3. package/agent-skill/semiotic-charts/SKILL.md +146 -0
  4. package/ai/cli.js +133 -45
  5. package/ai/componentMetadata.cjs +6 -1
  6. package/ai/dist/mcp-server.js +1741 -163
  7. package/ai/examples.md +174 -0
  8. package/ai/schema.json +2733 -536
  9. package/ai/surface-manifest.json +201 -0
  10. package/ai/system-prompt.md +20 -4
  11. package/dist/__tests__/scenarios/mcpProtocolTypes.d.ts +20 -0
  12. package/dist/components/AccessibleNavTree.d.ts +7 -1
  13. package/dist/components/CategoryColors.d.ts +1 -1
  14. package/dist/components/ChartContainer.d.ts +91 -0
  15. package/dist/components/ChartGrid.d.ts +11 -1
  16. package/dist/components/CircularBrush.d.ts +61 -0
  17. package/dist/components/ContextLayout.d.ts +5 -1
  18. package/dist/components/DirectManipulationControl.d.ts +63 -0
  19. package/dist/components/LinkedCharts.d.ts +3 -1
  20. package/dist/components/MobileAnnotationCalloutList.d.ts +13 -0
  21. package/dist/components/MobileChartContainer.d.ts +51 -0
  22. package/dist/components/MobileStandardControls.d.ts +68 -0
  23. package/dist/components/SmallMultipleChart.d.ts +84 -0
  24. package/dist/components/Tooltip/FlippingTooltip.d.ts +21 -0
  25. package/dist/components/ai/ChartRecipe.d.ts +16 -0
  26. package/dist/components/ai/IntentMark.d.ts +15 -0
  27. package/dist/components/ai/chartCapabilities.d.ts +8 -1
  28. package/dist/components/ai/chartCapabilityTypes.d.ts +26 -1
  29. package/dist/components/ai/chartClinic.d.ts +91 -0
  30. package/dist/components/ai/chartClinicMetadata.generated.d.ts +15 -0
  31. package/dist/components/ai/chartRecipeRegistry.d.ts +14 -0
  32. package/dist/components/ai/chartRecipes.d.ts +278 -0
  33. package/dist/components/ai/dataPitfallsBridge.d.ts +102 -0
  34. package/dist/components/ai/describeChart.d.ts +7 -0
  35. package/dist/components/ai/describeRecipeChart.d.ts +16 -0
  36. package/dist/components/ai/generativeChart.d.ts +28 -3
  37. package/dist/components/ai/intentManifest.d.ts +62 -0
  38. package/dist/components/ai/navigationTree.d.ts +3 -0
  39. package/dist/components/ai/observedSceneAudit.d.ts +72 -0
  40. package/dist/components/ai/readerGrounding.d.ts +83 -0
  41. package/dist/components/ai/recipeCapability.d.ts +8 -0
  42. package/dist/components/ai/recipeNavigation.d.ts +13 -0
  43. package/dist/components/ai/recipeSemantics.d.ts +11 -0
  44. package/dist/components/ai/repairChartConfig.d.ts +9 -0
  45. package/dist/components/ai/suggestCharts.d.ts +11 -1
  46. package/dist/components/ai/useNavigationSync.d.ts +17 -2
  47. package/dist/components/chartContainerMobile.d.ts +9 -0
  48. package/dist/components/charts/custom/GeoCustomChart.d.ts +48 -0
  49. package/dist/components/charts/custom/NetworkCustomChart.d.ts +8 -2
  50. package/dist/components/charts/custom/OrdinalCustomChart.d.ts +8 -2
  51. package/dist/components/charts/custom/XYCustomChart.d.ts +11 -2
  52. package/dist/components/charts/geo/ChoroplethMap.d.ts +19 -2
  53. package/dist/components/charts/geo/DistanceCartogram.d.ts +15 -3
  54. package/dist/components/charts/geo/FlowMap.d.ts +11 -7
  55. package/dist/components/charts/geo/ProportionalSymbolMap.d.ts +15 -3
  56. package/dist/components/charts/geo/index.d.ts +2 -0
  57. package/dist/components/charts/index.d.ts +35 -1
  58. package/dist/components/charts/network/ChordDiagram.d.ts +10 -2
  59. package/dist/components/charts/network/CirclePack.d.ts +1 -1
  60. package/dist/components/charts/network/ForceDirectedGraph.d.ts +26 -5
  61. package/dist/components/charts/network/OrbitDiagram.d.ts +1 -1
  62. package/dist/components/charts/network/ProcessSankey.d.ts +1 -1
  63. package/dist/components/charts/network/SankeyDiagram.d.ts +10 -2
  64. package/dist/components/charts/network/TreeDiagram.d.ts +1 -1
  65. package/dist/components/charts/network/Treemap.d.ts +1 -1
  66. package/dist/components/charts/network/useForceLayout.d.ts +17 -0
  67. package/dist/components/charts/ordinal/BarChart.d.ts +22 -1
  68. package/dist/components/charts/ordinal/BoxPlot.d.ts +1 -1
  69. package/dist/components/charts/ordinal/DonutChart.d.ts +1 -1
  70. package/dist/components/charts/ordinal/DotPlot.d.ts +1 -1
  71. package/dist/components/charts/ordinal/FunnelChart.d.ts +1 -1
  72. package/dist/components/charts/ordinal/GroupedBarChart.d.ts +12 -1
  73. package/dist/components/charts/ordinal/Histogram.d.ts +1 -1
  74. package/dist/components/charts/ordinal/PieChart.d.ts +1 -1
  75. package/dist/components/charts/ordinal/RidgelinePlot.d.ts +1 -1
  76. package/dist/components/charts/ordinal/StackedBarChart.d.ts +12 -1
  77. package/dist/components/charts/ordinal/SwarmPlot.d.ts +1 -1
  78. package/dist/components/charts/ordinal/SwimlaneChart.d.ts +1 -1
  79. package/dist/components/charts/ordinal/ViolinPlot.d.ts +1 -1
  80. package/dist/components/charts/physics/ChainReactionChart.d.ts +9 -0
  81. package/dist/components/charts/physics/CollisionSwarmChart.capability.d.ts +2 -0
  82. package/dist/components/charts/physics/CollisionSwarmChart.d.ts +54 -0
  83. package/dist/components/charts/physics/EventDropChart.capability.d.ts +2 -0
  84. package/dist/components/charts/physics/EventDropChart.d.ts +60 -0
  85. package/dist/components/charts/physics/GaltonBoardChart.capability.d.ts +2 -0
  86. package/dist/components/charts/physics/GaltonBoardChart.d.ts +74 -0
  87. package/dist/components/charts/physics/GauntletChart.capability.d.ts +2 -0
  88. package/dist/components/charts/physics/GauntletChart.d.ts +73 -0
  89. package/dist/components/charts/physics/PhysicalFlowChart.capability.d.ts +2 -0
  90. package/dist/components/charts/physics/PhysicalFlowChart.d.ts +63 -0
  91. package/dist/components/charts/physics/PhysicsCustomChart.d.ts +99 -0
  92. package/dist/components/charts/physics/PhysicsPileChart.capability.d.ts +2 -0
  93. package/dist/components/charts/physics/PhysicsPileChart.d.ts +60 -0
  94. package/dist/components/charts/physics/ProcessFlowChart.capability.d.ts +2 -0
  95. package/dist/components/charts/physics/ProcessFlowChart.d.ts +96 -0
  96. package/dist/components/charts/physics/chainReactionOverlay.d.ts +22 -0
  97. package/dist/components/charts/physics/chainReactionRuntime.d.ts +37 -0
  98. package/dist/components/charts/physics/chainReactionTypes.d.ts +97 -0
  99. package/dist/components/charts/physics/collisionSwarmPhysics.d.ts +27 -0
  100. package/dist/components/charts/physics/dependencyMachine.d.ts +188 -0
  101. package/dist/components/charts/physics/eventDropPhysics.d.ts +64 -0
  102. package/dist/components/charts/physics/galtonBoardPhysics.d.ts +28 -0
  103. package/dist/components/charts/physics/gauntletChartProps.d.ts +67 -0
  104. package/dist/components/charts/physics/gauntletChrome.d.ts +33 -0
  105. package/dist/components/charts/physics/gauntletController.d.ts +73 -0
  106. package/dist/components/charts/physics/gauntletEffects.d.ts +36 -0
  107. package/dist/components/charts/physics/gauntletPhysics.d.ts +71 -0
  108. package/dist/components/charts/physics/gauntletRuntime.d.ts +42 -0
  109. package/dist/components/charts/physics/gauntletTypes.d.ts +213 -0
  110. package/dist/components/charts/physics/physicalFlowPhysics.d.ts +57 -0
  111. package/dist/components/charts/physics/physicsChartShared.d.ts +57 -0
  112. package/dist/components/charts/physics/physicsChartUtils.d.ts +18 -0
  113. package/dist/components/charts/physics/physicsCustomLayout.d.ts +32 -0
  114. package/dist/components/charts/physics/physicsEncoding.d.ts +142 -0
  115. package/dist/components/charts/physics/physicsHocHandle.d.ts +53 -0
  116. package/dist/components/charts/physics/physicsHocUtils.d.ts +128 -0
  117. package/dist/components/charts/physics/physicsPilePhysics.d.ts +41 -0
  118. package/dist/components/charts/physics/physicsProcessPrimitives.d.ts +38 -0
  119. package/dist/components/charts/physics/processFlowPhysics.d.ts +97 -0
  120. package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +9 -1
  121. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +9 -1
  122. package/dist/components/charts/realtime/RealtimeLineChart.d.ts +9 -1
  123. package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +16 -2
  124. package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +9 -1
  125. package/dist/components/charts/shared/AnnotationLabel.d.ts +88 -0
  126. package/dist/components/charts/shared/annotationActivation.d.ts +35 -0
  127. package/dist/components/charts/shared/annotationLabelLayout.d.ts +5 -0
  128. package/dist/components/charts/shared/annotationRules.d.ts +2 -1
  129. package/dist/components/charts/shared/auditMobileVisualization.d.ts +91 -0
  130. package/dist/components/charts/shared/chartDefinitionPilot.d.ts +145 -0
  131. package/dist/components/charts/shared/chartFamilySets.d.ts +20 -0
  132. package/dist/components/charts/shared/chartSelectionUtils.d.ts +4 -0
  133. package/dist/components/charts/shared/chartSpecCore.d.ts +165 -0
  134. package/dist/components/charts/shared/chartSpecs.d.ts +8 -127
  135. package/dist/components/charts/shared/chartSpecsGeo.d.ts +2 -0
  136. package/dist/components/charts/shared/chartSpecsNetwork.d.ts +2 -0
  137. package/dist/components/charts/shared/chartSpecsOrdinal.d.ts +2 -0
  138. package/dist/components/charts/shared/chartSpecsPhysics.d.ts +2 -0
  139. package/dist/components/charts/shared/chartSpecsRealtime.d.ts +2 -0
  140. package/dist/components/charts/shared/chartSpecsValue.d.ts +2 -0
  141. package/dist/components/charts/shared/chartSpecsXY.d.ts +2 -0
  142. package/dist/components/charts/shared/colorContrast.d.ts +3 -0
  143. package/dist/components/charts/shared/colorUtils.d.ts +16 -1
  144. package/dist/components/charts/shared/datumTypes.d.ts +2 -0
  145. package/dist/components/charts/shared/diagnoseAnnotationChecks.d.ts +6 -0
  146. package/dist/components/charts/shared/diagnoseConfig.d.ts +9 -14
  147. package/dist/components/charts/shared/diagnoseMisleadingChecks.d.ts +9 -0
  148. package/dist/components/charts/shared/diagnosePhysicsChecks.d.ts +3 -0
  149. package/dist/components/charts/shared/diagnoseTypes.d.ts +10 -0
  150. package/dist/components/charts/shared/formatUtils.d.ts +3 -3
  151. package/dist/components/charts/shared/hatchFill.d.ts +87 -0
  152. package/dist/components/charts/shared/hooks.d.ts +34 -10
  153. package/dist/components/charts/shared/knownChartComponents.d.ts +9 -0
  154. package/dist/components/charts/shared/leastSquaresRegression.d.ts +16 -0
  155. package/dist/components/charts/shared/mergeShapeStyle.d.ts +3 -2
  156. package/dist/components/charts/shared/motionEncoding.d.ts +145 -0
  157. package/dist/components/charts/shared/responsiveRules.d.ts +56 -0
  158. package/dist/components/charts/shared/semanticInteractions.d.ts +42 -0
  159. package/dist/components/charts/shared/sparseArray.d.ts +1 -1
  160. package/dist/components/charts/shared/streamPropsHelpers.d.ts +17 -5
  161. package/dist/components/charts/shared/styleRules.d.ts +205 -0
  162. package/dist/components/charts/shared/temporalStrings.d.ts +7 -0
  163. package/dist/components/charts/shared/tooltipUtils.d.ts +22 -9
  164. package/dist/components/charts/shared/types.d.ts +58 -7
  165. package/dist/components/charts/shared/useAreaSeriesSetup.d.ts +16 -2
  166. package/dist/components/charts/shared/useChartSetup.d.ts +11 -4
  167. package/dist/components/charts/shared/useCustomChartSetup.d.ts +17 -5
  168. package/dist/components/charts/shared/useFrameImperativeHandle.d.ts +1 -2
  169. package/dist/components/charts/shared/useLikertAggregation.d.ts +4 -4
  170. package/dist/components/charts/shared/useNetworkChartSetup.d.ts +6 -2
  171. package/dist/components/charts/shared/useOrdinalBrush.d.ts +2 -1
  172. package/dist/components/charts/shared/useOrdinalPieceStyle.d.ts +25 -2
  173. package/dist/components/charts/shared/useStreamingLegend.d.ts +2 -2
  174. package/dist/components/charts/shared/useSyncedPushData.d.ts +49 -0
  175. package/dist/components/charts/shared/useXYLineStyle.d.ts +10 -0
  176. package/dist/components/charts/shared/useXYPointStyle.d.ts +19 -1
  177. package/dist/components/charts/shared/validateChartData.d.ts +7 -5
  178. package/dist/components/charts/shared/validationMap.d.ts +7 -9
  179. package/dist/components/charts/shared/validationMap.generated.d.ts +6 -0
  180. package/dist/components/charts/shared/withChartWrapper.d.ts +4 -3
  181. package/dist/components/charts/value/targetPresentation.d.ts +22 -0
  182. package/dist/components/charts/value/types.d.ts +5 -6
  183. package/dist/components/charts/xy/AreaChart.d.ts +9 -1
  184. package/dist/components/charts/xy/BubbleChart.d.ts +10 -1
  185. package/dist/components/charts/xy/ConnectedScatterplot.d.ts +7 -0
  186. package/dist/components/charts/xy/DifferenceChart.d.ts +1 -52
  187. package/dist/components/charts/xy/Heatmap.d.ts +2 -2
  188. package/dist/components/charts/xy/LineChart.d.ts +12 -1
  189. package/dist/components/charts/xy/MinimapChart.d.ts +1 -1
  190. package/dist/components/charts/xy/MultiAxisLineChart.d.ts +2 -2
  191. package/dist/components/charts/xy/QuadrantChart.d.ts +8 -1
  192. package/dist/components/charts/xy/Scatterplot.d.ts +11 -1
  193. package/dist/components/charts/xy/ScatterplotMatrix.d.ts +11 -1
  194. package/dist/components/charts/xy/StackedAreaChart.d.ts +16 -4
  195. package/dist/components/charts/xy/differenceSegments.d.ts +49 -0
  196. package/dist/components/charts/xy/scatterplotMatrixInteractionTypes.d.ts +12 -0
  197. package/dist/components/controls/SentenceFilter.d.ts +97 -0
  198. package/dist/components/controls/controlAudit.d.ts +24 -0
  199. package/dist/components/controls/controlContract.d.ts +57 -0
  200. package/dist/components/data/fromFlintChart.d.ts +74 -0
  201. package/dist/components/data/fromVegaLite.d.ts +46 -9
  202. package/dist/components/data/portability/index.d.ts +6 -3
  203. package/dist/components/data/portability/result.d.ts +52 -0
  204. package/dist/components/data/portability/spec.d.ts +31 -0
  205. package/dist/components/data/portability/vegaLite.d.ts +24 -6
  206. package/dist/components/export/chartConfig.d.ts +11 -0
  207. package/dist/components/realtime/types.d.ts +11 -0
  208. package/dist/components/recipes/annotationLayout.d.ts +29 -0
  209. package/dist/components/recipes/axisFixedForce.d.ts +119 -0
  210. package/dist/components/recipes/{gofishBoba.d.ts → boba.d.ts} +2 -2
  211. package/dist/components/recipes/cyclical.d.ts +39 -0
  212. package/dist/components/recipes/edgeRouter.d.ts +103 -0
  213. package/dist/components/recipes/forceLayout.d.ts +48 -0
  214. package/dist/components/recipes/forceLayoutAsync.d.ts +17 -0
  215. package/dist/components/recipes/gofishBobaHandwritten.d.ts +3 -0
  216. package/dist/components/recipes/gofishDisplayListFixtures.generated.d.ts +37 -0
  217. package/dist/components/recipes/gofishIR.d.ts +178 -132
  218. package/dist/components/recipes/gofishIRExamples.d.ts +30 -81
  219. package/dist/components/recipes/intervalLanes.d.ts +87 -0
  220. package/dist/components/recipes/intervals.d.ts +80 -0
  221. package/dist/components/recipes/isometricLandmarks.d.ts +88 -0
  222. package/dist/components/recipes/isotypeGlyphs.d.ts +17 -0
  223. package/dist/components/recipes/mobileAnnotationStrategy.d.ts +48 -0
  224. package/dist/components/recipes/mobileChartFamilyRecipes.d.ts +59 -0
  225. package/dist/components/recipes/networkAnalysis.d.ts +102 -0
  226. package/dist/components/recipes/networkLayouts.d.ts +83 -0
  227. package/dist/components/recipes/physics.d.ts +122 -0
  228. package/dist/components/recipes/physicsReference.d.ts +102 -0
  229. package/dist/components/recipes/processAggregates.d.ts +32 -0
  230. package/dist/components/recipes/processChrome.d.ts +67 -0
  231. package/dist/components/recipes/processJourney.d.ts +54 -0
  232. package/dist/components/recipes/processPhysics.d.ts +300 -0
  233. package/dist/components/recipes/processVolumeGeometry.d.ts +28 -0
  234. package/dist/components/recipes/radialCoords.d.ts +69 -0
  235. package/dist/components/recipes/random.d.ts +2 -0
  236. package/dist/components/recipes/recipeChrome.d.ts +91 -0
  237. package/dist/components/recipes/recipeGlyph.d.ts +42 -0
  238. package/dist/components/recipes/recipeLegend.d.ts +53 -1
  239. package/dist/components/recipes/recipeUtils.d.ts +52 -0
  240. package/dist/components/recipes/runs.d.ts +59 -0
  241. package/dist/components/recipes/tokenEncoding.d.ts +157 -0
  242. package/dist/components/recipes/tokenLayer.d.ts +79 -0
  243. package/dist/components/recipes/unitize.d.ts +108 -0
  244. package/dist/components/recipes/vector.d.ts +28 -0
  245. package/dist/components/recipes/waffle.d.ts +43 -0
  246. package/dist/components/rough/createRoughRenderMode.d.ts +46 -0
  247. package/dist/components/semiotic-ai-core.d.ts +47 -0
  248. package/dist/components/semiotic-ai.d.ts +53 -9
  249. package/dist/components/semiotic-controls.d.ts +20 -0
  250. package/dist/components/semiotic-experimental.d.ts +38 -9
  251. package/dist/components/semiotic-geo.d.ts +15 -0
  252. package/dist/components/semiotic-network.d.ts +15 -0
  253. package/dist/components/semiotic-ordinal.d.ts +14 -0
  254. package/dist/components/semiotic-physics-matter.d.ts +10 -0
  255. package/dist/components/semiotic-physics-rapier.d.ts +9 -0
  256. package/dist/components/semiotic-physics.d.ts +60 -0
  257. package/dist/components/semiotic-realtime-core.d.ts +34 -0
  258. package/dist/components/semiotic-realtime-react.d.ts +10 -0
  259. package/dist/components/semiotic-realtime.d.ts +4 -30
  260. package/dist/components/semiotic-recipes-core.d.ts +92 -0
  261. package/dist/components/semiotic-recipes-react.d.ts +7 -0
  262. package/dist/components/semiotic-recipes.d.ts +4 -43
  263. package/dist/components/semiotic-rough.d.ts +4 -0
  264. package/dist/components/semiotic-server-edge.d.ts +8 -0
  265. package/dist/components/semiotic-server-node.d.ts +5 -0
  266. package/dist/components/semiotic-server.d.ts +2 -2
  267. package/dist/components/semiotic-themes-core.d.ts +53 -0
  268. package/dist/components/semiotic-themes-react.d.ts +4 -0
  269. package/dist/components/semiotic-themes.d.ts +6 -76
  270. package/dist/components/semiotic-utils-core.d.ts +50 -0
  271. package/dist/components/semiotic-utils-react.d.ts +5 -0
  272. package/dist/components/semiotic-utils.d.ts +3 -39
  273. package/dist/components/semiotic-xy.d.ts +12 -0
  274. package/dist/components/semiotic.d.ts +44 -8
  275. package/dist/components/server/animatedGif.d.ts +36 -0
  276. package/dist/components/server/optionalImageTypes.d.ts +37 -0
  277. package/dist/components/server/renderEvidence.d.ts +1 -1
  278. package/dist/components/server/renderToStaticSVG.d.ts +3 -35
  279. package/dist/components/server/serverChartConfigShared.d.ts +21 -0
  280. package/dist/components/server/serverChartConfigs.d.ts +22 -12
  281. package/dist/components/server/serverChartConfigsCustom.d.ts +5 -0
  282. package/dist/components/server/serverChartConfigsGeo.d.ts +9 -0
  283. package/dist/components/server/serverChartConfigsNetwork.d.ts +8 -0
  284. package/dist/components/server/serverChartConfigsOrdinal.d.ts +16 -0
  285. package/dist/components/server/serverChartConfigsPhysics.d.ts +9 -0
  286. package/dist/components/server/serverChartConfigsXY.d.ts +11 -0
  287. package/dist/components/server/staticAnnotations.d.ts +6 -3
  288. package/dist/components/server/staticGeo.d.ts +4 -0
  289. package/dist/components/server/staticLegend.d.ts +2 -2
  290. package/dist/components/server/staticNetwork.d.ts +8 -0
  291. package/dist/components/server/staticOrdinal.d.ts +11 -0
  292. package/dist/components/server/staticPhysics.d.ts +3 -0
  293. package/dist/components/server/staticSVGChrome.d.ts +110 -0
  294. package/dist/components/server/staticXY.d.ts +4 -0
  295. package/dist/components/store/ObservationStore.d.ts +23 -2
  296. package/dist/components/store/themeSerialization.d.ts +32 -0
  297. package/dist/components/store/useChartInterrogation.d.ts +9 -0
  298. package/dist/components/stream/AccessibleDataTable.d.ts +7 -23
  299. package/dist/components/stream/AriaLiveTooltip.d.ts +9 -0
  300. package/dist/components/stream/CanvasHitTester.d.ts +4 -4
  301. package/dist/components/stream/DataSourceAdapter.d.ts +1 -1
  302. package/dist/components/stream/FocusRing.d.ts +4 -2
  303. package/dist/components/stream/FrameRuntime.d.ts +57 -0
  304. package/dist/components/stream/GeoCanvasHitTester.d.ts +1 -1
  305. package/dist/components/stream/GeoParticlePool.d.ts +1 -1
  306. package/dist/components/stream/GeoPipelineStore.d.ts +62 -3
  307. package/dist/components/stream/GeoSVGOverlay.d.ts +64 -0
  308. package/dist/components/stream/NetworkCanvasHitTester.d.ts +2 -1
  309. package/dist/components/stream/NetworkPipelineStore.d.ts +44 -36
  310. package/dist/components/stream/NetworkSSRFrame.d.ts +17 -0
  311. package/dist/components/stream/NetworkSVGOverlay.d.ts +10 -1
  312. package/dist/components/stream/OrdinalCanvasHitTester.d.ts +2 -2
  313. package/dist/components/stream/OrdinalPipelineStore.d.ts +55 -11
  314. package/dist/components/stream/OrdinalSVGOverlay.d.ts +9 -1
  315. package/dist/components/stream/OrdinalStyleResolver.d.ts +12 -0
  316. package/dist/components/stream/ParticlePool.d.ts +1 -1
  317. package/dist/components/stream/PipelineStore.d.ts +81 -174
  318. package/dist/components/stream/SVGOverlay.d.ts +6 -0
  319. package/dist/components/stream/SceneGraph.d.ts +12 -4
  320. package/dist/components/stream/StreamGeoFrame.d.ts +1 -1
  321. package/dist/components/stream/StreamNetworkFrame.d.ts +1 -1
  322. package/dist/components/stream/StreamOrdinalFrame.d.ts +1 -1
  323. package/dist/components/stream/StreamXYFrame.d.ts +2 -18
  324. package/dist/components/stream/accessibleDataRows.d.ts +33 -0
  325. package/dist/components/stream/accessorUtils.d.ts +25 -12
  326. package/dist/components/stream/annotationAccessorResolver.d.ts +2 -2
  327. package/dist/components/stream/brushAccessibility.d.ts +25 -0
  328. package/dist/components/stream/canvasBackground.d.ts +24 -0
  329. package/dist/components/stream/canvasSetup.d.ts +4 -1
  330. package/dist/components/stream/customLayoutFailure.d.ts +33 -0
  331. package/dist/components/stream/customLayoutPalette.d.ts +19 -9
  332. package/dist/components/stream/frameGraphics.d.ts +4 -0
  333. package/dist/components/stream/frameKeyboardNavigation.d.ts +45 -0
  334. package/dist/components/stream/frameThemeColors.d.ts +24 -0
  335. package/dist/components/stream/geoAnnotationAnchors.d.ts +14 -0
  336. package/dist/components/stream/geoCartogram.d.ts +17 -0
  337. package/dist/components/stream/geoCustomLayout.d.ts +59 -0
  338. package/dist/components/stream/geoDefaultTooltip.d.ts +11 -0
  339. package/dist/components/stream/geoFrameHelpers.d.ts +34 -0
  340. package/dist/components/stream/geoPipelineHelpers.d.ts +46 -0
  341. package/dist/components/stream/geoPipelineUpdateResults.d.ts +34 -0
  342. package/dist/components/stream/geoSceneBuilder.d.ts +16 -0
  343. package/dist/components/stream/geoTypes.d.ts +97 -15
  344. package/dist/components/stream/glyphDef.d.ts +98 -0
  345. package/dist/components/stream/hitTarget.d.ts +170 -0
  346. package/dist/components/stream/hitTestUtils.d.ts +2 -2
  347. package/dist/components/stream/hoverUtils.d.ts +7 -2
  348. package/dist/components/stream/keyboardNav.d.ts +4 -1
  349. package/dist/components/stream/layouts/forceLayoutPlugin.d.ts +9 -1
  350. package/dist/components/stream/layouts/forceLayoutWorkerClient.d.ts +58 -0
  351. package/dist/components/stream/layouts/hierarchyUtils.d.ts +2 -2
  352. package/dist/components/stream/networkBezier.d.ts +10 -0
  353. package/dist/components/stream/networkColorAccessors.d.ts +49 -0
  354. package/dist/components/stream/networkCustomLayoutRunner.d.ts +23 -0
  355. package/dist/components/stream/networkCustomRestyle.d.ts +15 -0
  356. package/dist/components/stream/networkDefaultTooltip.d.ts +10 -0
  357. package/dist/components/stream/networkFrameAnimation.d.ts +7 -0
  358. package/dist/components/stream/networkFrameHandleTypes.d.ts +39 -0
  359. package/dist/components/stream/networkFrameInteraction.d.ts +37 -0
  360. package/dist/components/stream/networkFrameObservations.d.ts +15 -0
  361. package/dist/components/stream/networkFramePaint.d.ts +52 -0
  362. package/dist/components/stream/networkInteractionTypes.d.ts +26 -0
  363. package/dist/components/stream/networkPipelineConfig.d.ts +22 -0
  364. package/dist/components/stream/networkPipelineHelpers.d.ts +12 -0
  365. package/dist/components/stream/networkPipelineUpdateResults.d.ts +38 -0
  366. package/dist/components/stream/networkRealtimeEncoding.d.ts +41 -0
  367. package/dist/components/stream/networkTypes.d.ts +103 -51
  368. package/dist/components/stream/ordinalCanvasRenderers.d.ts +7 -0
  369. package/dist/components/stream/ordinalDataIndex.d.ts +5 -0
  370. package/dist/components/stream/ordinalDefaultTooltip.d.ts +10 -0
  371. package/dist/components/stream/ordinalDomain.d.ts +38 -0
  372. package/dist/components/stream/ordinalPipelineUpdateResults.d.ts +31 -0
  373. package/dist/components/stream/ordinalPulse.d.ts +10 -0
  374. package/dist/components/stream/ordinalPulseResources.d.ts +3 -0
  375. package/dist/components/stream/ordinalSceneBuilders/sceneBuilderMap.d.ts +5 -0
  376. package/dist/components/stream/ordinalSceneBuilders/types.d.ts +2 -2
  377. package/dist/components/stream/ordinalSpatialIndex.d.ts +9 -0
  378. package/dist/components/stream/ordinalTypes.d.ts +68 -9
  379. package/dist/components/stream/paintNeeds.d.ts +31 -0
  380. package/dist/components/stream/physics/CapacityQueueController.d.ts +5 -0
  381. package/dist/components/stream/physics/CapacityQueueTypes.d.ts +134 -0
  382. package/dist/components/stream/physics/MatterPhysicsEngineAdapter.d.ts +42 -0
  383. package/dist/components/stream/physics/PhysicsAccessibility.d.ts +48 -0
  384. package/dist/components/stream/physics/PhysicsAnnotations.d.ts +58 -0
  385. package/dist/components/stream/physics/PhysicsBodyBudget.d.ts +26 -0
  386. package/dist/components/stream/physics/PhysicsBodySpatialIndex.d.ts +10 -0
  387. package/dist/components/stream/physics/PhysicsCanvasTheme.d.ts +26 -0
  388. package/dist/components/stream/physics/PhysicsControllers.d.ts +75 -0
  389. package/dist/components/stream/physics/PhysicsEngineAdapter.d.ts +59 -0
  390. package/dist/components/stream/physics/PhysicsEngineConformance.d.ts +23 -0
  391. package/dist/components/stream/physics/PhysicsEvidence.d.ts +25 -0
  392. package/dist/components/stream/physics/PhysicsKernel.d.ts +207 -0
  393. package/dist/components/stream/physics/PhysicsOptionalEngineAdapters.d.ts +12 -0
  394. package/dist/components/stream/physics/PhysicsPipelineStore.d.ts +86 -0
  395. package/dist/components/stream/physics/PhysicsPipelineTypes.d.ts +181 -0
  396. package/dist/components/stream/physics/PhysicsSVGOverlay.d.ts +78 -0
  397. package/dist/components/stream/physics/PhysicsSediment.d.ts +69 -0
  398. package/dist/components/stream/physics/PhysicsSettledSVG.d.ts +18 -0
  399. package/dist/components/stream/physics/PhysicsSettledScene.d.ts +21 -0
  400. package/dist/components/stream/physics/PhysicsWorkerClient.d.ts +24 -0
  401. package/dist/components/stream/physics/PhysicsWorkerProtocol.d.ts +101 -0
  402. package/dist/components/stream/physics/PhysicsWorkerRuntime.d.ts +5 -0
  403. package/dist/components/stream/physics/RapierPhysicsEngineAdapter.d.ts +18 -0
  404. package/dist/components/stream/physics/ServiceOperationsControllers.d.ts +27 -0
  405. package/dist/components/stream/physics/ServiceOperationsTypes.d.ts +89 -0
  406. package/dist/components/stream/physics/StreamPhysicsFrame.d.ts +6 -0
  407. package/dist/components/stream/physics/StreamPhysicsTypes.d.ts +317 -0
  408. package/dist/components/stream/physics/physicsBodyCanvas.d.ts +27 -0
  409. package/dist/components/stream/physics/physicsFrameObservations.d.ts +19 -0
  410. package/dist/components/stream/physics/physicsFrameSetup.d.ts +4 -0
  411. package/dist/components/stream/physics/physicsPipelineControls.d.ts +4 -0
  412. package/dist/components/stream/physics/physicsPipelineHelpers.d.ts +41 -0
  413. package/dist/components/stream/physics/physicsPipelineObservations.d.ts +14 -0
  414. package/dist/components/stream/physics/physicsPipelineUpdateResults.d.ts +27 -0
  415. package/dist/components/stream/physics/physicsRegionRuntime.d.ts +54 -0
  416. package/dist/components/stream/physics/physicsSemanticUI.d.ts +20 -0
  417. package/dist/components/stream/physics/usePhysicsFrameLifecyclePolicy.d.ts +18 -0
  418. package/dist/components/stream/pipelineBufferUtils.d.ts +26 -0
  419. package/dist/components/stream/pipelineConfig.d.ts +179 -0
  420. package/dist/components/stream/pipelineDecay.d.ts +21 -3
  421. package/dist/components/stream/pipelineDomainResolution.d.ts +62 -0
  422. package/dist/components/stream/pipelineIdentityOps.d.ts +26 -0
  423. package/dist/components/stream/pipelinePulse.d.ts +17 -3
  424. package/dist/components/stream/pipelineRibbons.d.ts +41 -0
  425. package/dist/components/stream/pipelineSpatialIndex.d.ts +12 -0
  426. package/dist/components/stream/pipelineStoreUpdateResults.d.ts +33 -0
  427. package/dist/components/stream/pipelineStyleResolvers.d.ts +46 -0
  428. package/dist/components/stream/pipelineTransitions.d.ts +3 -1
  429. package/dist/components/stream/pipelineUpdateContract.d.ts +69 -0
  430. package/dist/components/stream/pipelineUpdateStore.d.ts +21 -0
  431. package/dist/components/stream/pulseFrameRefresh.d.ts +22 -0
  432. package/dist/components/stream/renderBackend.d.ts +27 -0
  433. package/dist/components/stream/renderers/canvasRenderHelpers.d.ts +15 -1
  434. package/dist/components/stream/renderers/geoCanvasRenderer.d.ts +3 -2
  435. package/dist/components/stream/renderers/glyphCanvasRenderer.d.ts +6 -0
  436. package/dist/components/stream/renderers/networkParticleRenderer.d.ts +1 -1
  437. package/dist/components/stream/renderers/resolveCSSColor.d.ts +6 -0
  438. package/dist/components/stream/sceneRenderBackendTypes.d.ts +28 -0
  439. package/dist/components/stream/sceneRevisionDiagnostics.d.ts +45 -0
  440. package/dist/components/stream/streamSemanticTypes.d.ts +16 -0
  441. package/dist/components/stream/streamStoreSync.d.ts +37 -0
  442. package/dist/components/stream/streamThemeTypes.d.ts +14 -0
  443. package/dist/components/stream/svgOverlayUtils.d.ts +10 -0
  444. package/dist/components/stream/test-utils/frameScheduler.d.ts +12 -0
  445. package/dist/components/stream/test-utils/revisionConsumption.d.ts +13 -0
  446. package/dist/components/stream/titleLayout.d.ts +31 -0
  447. package/dist/components/stream/types.d.ts +165 -72
  448. package/dist/components/stream/useCanvasFrameHost.d.ts +71 -0
  449. package/dist/components/stream/useFrame.d.ts +44 -2
  450. package/dist/components/stream/useHydration.d.ts +6 -0
  451. package/dist/components/stream/useLegendCategoryEmission.d.ts +5 -0
  452. package/dist/components/stream/useSemanticFrameInteractions.d.ts +22 -0
  453. package/dist/components/stream/useUpdateResultSnapshot.d.ts +7 -0
  454. package/dist/components/stream/workerModuleUrl.d.ts +10 -0
  455. package/dist/components/stream/xyAnnotationAnchors.d.ts +13 -0
  456. package/dist/components/stream/xyCanvasRenderers.d.ts +7 -0
  457. package/dist/components/stream/xyCrosshair.d.ts +11 -0
  458. package/dist/components/stream/xyDateTicks.d.ts +9 -0
  459. package/dist/components/stream/xyDefaultTooltip.d.ts +10 -0
  460. package/dist/components/stream/xyFrameAxisTypes.d.ts +50 -0
  461. package/dist/components/stream/xySceneBuilders/types.d.ts +10 -9
  462. package/dist/controls.min.js +2 -0
  463. package/dist/controls.module.min.js +2 -0
  464. package/dist/forceLayoutWorker.js +1 -0
  465. package/dist/geo.min.js +1 -1
  466. package/dist/geo.module.min.js +1 -1
  467. package/dist/network.min.js +1 -1
  468. package/dist/network.module.min.js +1 -1
  469. package/dist/ordinal.min.js +1 -1
  470. package/dist/ordinal.module.min.js +1 -1
  471. package/dist/physics-matter.min.js +1 -0
  472. package/dist/physics-matter.module.min.js +1 -0
  473. package/dist/physics-rapier.min.js +1 -0
  474. package/dist/physics-rapier.module.min.js +1 -0
  475. package/dist/physics.min.js +2 -0
  476. package/dist/physics.module.min.js +2 -0
  477. package/dist/physicsWorker.js +1 -0
  478. package/dist/realtime.min.js +1 -1
  479. package/dist/realtime.module.min.js +1 -1
  480. package/dist/rough.min.js +1 -0
  481. package/dist/rough.module.min.js +1 -0
  482. package/dist/semiotic-ai-chunk-OG7BQUUW.module.min.js +2 -0
  483. package/dist/semiotic-ai-core.d.ts +47 -0
  484. package/dist/semiotic-ai-core.min.js +1 -0
  485. package/dist/semiotic-ai-core.module.min.js +1 -0
  486. package/dist/semiotic-ai-statisticalOverlays-CY4WKR4A.module.min.js +2 -0
  487. package/dist/semiotic-ai.d.ts +53 -9
  488. package/dist/semiotic-ai.min.js +1 -1
  489. package/dist/semiotic-ai.module.min.js +1 -1
  490. package/dist/semiotic-chunk-3FSVZ46U.module.min.js +2 -0
  491. package/dist/semiotic-controls.d.ts +20 -0
  492. package/dist/semiotic-data.min.js +1 -1
  493. package/dist/semiotic-data.module.min.js +1 -1
  494. package/dist/semiotic-experimental.d.ts +38 -9
  495. package/dist/semiotic-experimental.min.js +1 -1
  496. package/dist/semiotic-experimental.module.min.js +1 -1
  497. package/dist/semiotic-geo.d.ts +15 -0
  498. package/dist/semiotic-network.d.ts +15 -0
  499. package/dist/semiotic-ordinal.d.ts +14 -0
  500. package/dist/semiotic-physics-matter.d.ts +10 -0
  501. package/dist/semiotic-physics-rapier.d.ts +9 -0
  502. package/dist/semiotic-physics.d.ts +60 -0
  503. package/dist/semiotic-realtime-core.d.ts +34 -0
  504. package/dist/semiotic-realtime-core.min.js +1 -0
  505. package/dist/semiotic-realtime-core.module.min.js +1 -0
  506. package/dist/semiotic-realtime-react.d.ts +10 -0
  507. package/dist/semiotic-realtime-react.min.js +2 -0
  508. package/dist/semiotic-realtime-react.module.min.js +2 -0
  509. package/dist/semiotic-realtime.d.ts +4 -30
  510. package/dist/semiotic-recipes-core.d.ts +92 -0
  511. package/dist/semiotic-recipes-core.min.js +1 -0
  512. package/dist/semiotic-recipes-core.module.min.js +1 -0
  513. package/dist/semiotic-recipes-react.d.ts +7 -0
  514. package/dist/semiotic-recipes-react.min.js +2 -0
  515. package/dist/semiotic-recipes-react.module.min.js +2 -0
  516. package/dist/semiotic-recipes.d.ts +4 -43
  517. package/dist/semiotic-recipes.min.js +1 -1
  518. package/dist/semiotic-recipes.module.min.js +1 -1
  519. package/dist/semiotic-rough.d.ts +4 -0
  520. package/dist/semiotic-server-edge.d.ts +8 -0
  521. package/dist/semiotic-server-edge.min.js +1 -0
  522. package/dist/semiotic-server-edge.module.min.js +1 -0
  523. package/dist/semiotic-server-node.d.ts +5 -0
  524. package/dist/semiotic-server-node.min.js +1 -0
  525. package/dist/semiotic-server-node.module.min.js +1 -0
  526. package/dist/semiotic-server.d.ts +2 -2
  527. package/dist/semiotic-statisticalOverlays-UOMSFKVJ.module.min.js +2 -0
  528. package/dist/semiotic-themes-core.d.ts +53 -0
  529. package/dist/semiotic-themes-core.min.js +1 -0
  530. package/dist/semiotic-themes-core.module.min.js +1 -0
  531. package/dist/semiotic-themes-react.d.ts +4 -0
  532. package/dist/semiotic-themes-react.min.js +2 -0
  533. package/dist/semiotic-themes-react.module.min.js +2 -0
  534. package/dist/semiotic-themes.d.ts +6 -76
  535. package/dist/semiotic-themes.min.js +1 -2
  536. package/dist/semiotic-themes.module.min.js +1 -2
  537. package/dist/semiotic-utils-core.d.ts +50 -0
  538. package/dist/semiotic-utils-core.min.js +1 -0
  539. package/dist/semiotic-utils-core.module.min.js +1 -0
  540. package/dist/semiotic-utils-react.d.ts +5 -0
  541. package/dist/semiotic-utils-react.min.js +2 -0
  542. package/dist/semiotic-utils-react.module.min.js +2 -0
  543. package/dist/semiotic-utils.d.ts +3 -39
  544. package/dist/semiotic-utils.min.js +1 -2
  545. package/dist/semiotic-utils.module.min.js +1 -2
  546. package/dist/semiotic-value.min.js +1 -1
  547. package/dist/semiotic-value.module.min.js +1 -1
  548. package/dist/semiotic-xy.d.ts +12 -0
  549. package/dist/semiotic.d.ts +44 -8
  550. package/dist/semiotic.min.js +1 -1
  551. package/dist/semiotic.module.min.js +1 -1
  552. package/dist/server.min.js +1 -1
  553. package/dist/server.module.min.js +1 -1
  554. package/dist/test-utils/capturedFrameProps.d.ts +67 -0
  555. package/dist/test-utils/frameMock.d.ts +12 -9
  556. package/dist/xy-chunk-IWD6IB6V.module.min.js +2 -0
  557. package/dist/xy-statisticalOverlays-7RWG6LJT.module.min.js +2 -0
  558. package/dist/xy.min.js +1 -1
  559. package/dist/xy.module.min.js +1 -1
  560. package/package.json +259 -88
  561. package/spec/README.md +152 -0
  562. package/spec/bindings/README.md +35 -0
  563. package/spec/bindings/vega-lite.mjs +112 -0
  564. package/spec/v0.1/annotation-provenance.schema.json +127 -0
  565. package/spec/v0.1/audience-profile.schema.json +67 -0
  566. package/spec/v0.1/chart-capability.schema.json +186 -0
  567. package/dist/components/recipes/gofish.d.ts +0 -207
  568. package/dist/components/recipes/gofishInterpreter.d.ts +0 -52
  569. package/dist/components/recipes/gofishLambdas.d.ts +0 -145
  570. package/dist/semiotic-ai-semiotic-ai-u954ylUn.js +0 -2
  571. package/dist/semiotic-ai-statisticalOverlays-CU7jW05Q.js +0 -1
  572. package/dist/semiotic-semiotic-BmrYbi99.js +0 -2
  573. package/dist/semiotic-statisticalOverlays-IjZw8Lsu.js +0 -1
  574. package/dist/xy-semiotic-xy-Dufu3D0-.js +0 -2
  575. package/dist/xy-statisticalOverlays-3Ni9bRph.js +0 -1
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ function t(t){let n=1/0,r=-1/0;for(const a of t)n>a&&(n=a),a>r&&(r=a);return[n,r]}function n(t,n=1/0){let r=n;for(const n of t)r>n&&(r=n);return r}function r(t,n=-1/0){let r=n;for(const n of t)n>r&&(r=n);return r}function a(t,n=.5){const r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t);if(!r)return t;const a=Math.round(parseInt(r[1],16)*(1-n)),o=Math.round(parseInt(r[2],16)*(1-n)),e=Math.round(parseInt(r[3],16)*(1-n));return`#${a.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}${e.toString(16).padStart(2,"0")}`}function o(t,n=.5){const r=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i.exec(t);if(!r)return t;const a=Math.round(parseInt(r[1],16)+(255-parseInt(r[1],16))*n),o=Math.round(parseInt(r[2],16)+(255-parseInt(r[2],16))*n),e=Math.round(parseInt(r[3],16)+(255-parseInt(r[3],16))*n);return`#${a.toString(16).padStart(2,"0")}${o.toString(16).padStart(2,"0")}${e.toString(16).padStart(2,"0")}`}export{t as getMinMax,n as getMin,r as getMax,a as darkenColor,o as lightenColor};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Lightweight, frame-independent visualization controls.
3
+ *
4
+ * Import from `semiotic/controls` when a chart needs accessible HTML or SVG
5
+ * controls but does not need a frame renderer in the same bundle. Frame-owned
6
+ * brushing remains in `semiotic/xy` and `semiotic/ordinal` because it depends
7
+ * on frame scales, streaming state, and selection stores.
8
+ */
9
+ export { DirectManipulationControl, } from "./components/DirectManipulationControl";
10
+ export type { DirectManipulationControlProps, } from "./components/DirectManipulationControl";
11
+ export { SentenceFilter } from "./components/controls/SentenceFilter";
12
+ export type { SentenceFilterBaseDefinition, SentenceFilterChangeMeta, SentenceFilterDefinition, SentenceFilterMultiSelectDefinition, SentenceFilterNumberDefinition, SentenceFilterOption, SentenceFilterPrimitive, SentenceFilterProps, SentenceFilterRangeDefinition, SentenceFilterRenderContext, SentenceFilterSelectDefinition, SentenceFilterTextDefinition, SentenceFilterToggleDefinition, SentenceFilterValue, } from "./components/controls/SentenceFilter";
13
+ export { createControlObservationAdapter, VISUALIZATION_CONTROL_TYPES, } from "./components/controls/controlContract";
14
+ export type { ControlInputSource, ControlObservation, ControlObservationAdapterOptions, ControlObservationCallback, ControlObservationPhase, VisualizationControlDefinition, VisualizationControlType, VisualizationControlValue, } from "./components/controls/controlContract";
15
+ export { auditVisualizationControls } from "./components/controls/controlAudit";
16
+ export type { AuditVisualizationControlsOptions, ControlAuditFinding, ControlAuditResult, ControlAuditStatus, } from "./components/controls/controlAudit";
17
+ export { CircularBrush } from "./components/CircularBrush";
18
+ export type { CircularBrushProps, CircularBrushValue } from "./components/CircularBrush";
19
+ export { MobileStandardControls, clampMobileRange, useMobileRangeControls, zoomMobileRange, } from "./components/MobileStandardControls";
20
+ export type { MobileStandardControlLegendItem, MobileStandardBrushControls, MobileStandardZoomControls, MobileStandardLegendControls, MobileStandardControlsProps, MobileStandardControlRequest, UseMobileRangeControlsOptions, UseMobileRangeControlsResult, } from "./components/MobileStandardControls";
@@ -1 +1 @@
1
- "use strict";function e(e){let t=1/0,o=-1/0;for(const l of e)t>l&&(t=l),l>o&&(o=l);return[t,o]}function t(t,o){const{groupBy:l,value:i,agg:a="sum"}=o,n=new Map;for(const e of t){const t=e[l]+"";n.has(t)||n.set(t,[]),n.get(t).push(Number(e[i]))}const r=[];for(const[t,o]of n){let i;switch(a){case"count":i=o.length;break;case"mean":i=o.reduce((e,t)=>e+t,0)/o.length;break;case"min":i=e(o)[0];break;case"max":i=e(o)[1];break;default:i=o.reduce((e,t)=>e+t,0)}r.push({[l]:t,value:i})}return r}function o(e){return Math.round(1e3*e)/1e3+""}function l(e){return"nominal"===e||"ordinal"===e}function i(e){return"quantitative"===e||"temporal"===e}"function"==typeof SuppressedError&&SuppressedError;const a={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"},n={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"},r={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function s(e,t,o,l,i){var a,n;(null==e?void 0:e.field)&&(o.xAccessor=l?"value":e.field),(null==t?void 0:t.field)&&(o.yAccessor=i?"value":t.field),(null===(a=null==e?void 0:e.axis)||void 0===a?void 0:a.title)&&(o.xLabel=e.axis.title),(null===(n=null==t?void 0:t.axis)||void 0===n?void 0:n.title)&&(o.yLabel=t.axis.title)}function c(e,t,o){const l={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(o.length>0){l.warnings=o;for(const e of o)console.warn("[semiotic/fromVegaLite] "+e)}return l}exports.bin=function(t,l){const{field:i,bins:a=10}=l,n=t.map(e=>Number(e[i])).filter(e=>!isNaN(e));if(0===n.length)return[];const[r,s]=e(n),c=l.domain?l.domain[0]:r,u=l.domain?l.domain[1]:s;if(c===u)return[{category:`${c}-${u}`,value:n.length}];const d=(u-c)/a,f=Array(a).fill(0);for(const e of n){let t=Math.floor((e-c)/d);t===a&&(t=a-1),t>=0&&a>t&&f[t]++}return f.map((e,t)=>{const l=c+t*d,i=l+d;return{category:`${o(l)}-${o(i)}`,value:e}})},exports.fromArrow=function(e,t={}){var o;if(!e||"number"!=typeof e.numRows||!e.schema)return console.warn("[semiotic/fromArrow] Expected an Arrow table with `numRows` and `schema`. Returning []."),[];const l=!1!==t.coerceBigInt,i=e.schema.fields.map(e=>e.name),a=null!==(o=t.fields)&&void 0!==o?o:i,n=[];for(const t of a){const o=e.getChild(t);o?n.push({name:t,column:o}):console.warn(`[semiotic/fromArrow] Column "${t}" is not in the table schema; skipping it.`)}let r=!1;const s=Array(e.numRows);for(let t=0;e.numRows>t;t++){const e={};for(const{name:o,column:i}of n){let a=i.get(t);l&&"bigint"==typeof a&&(a<BigInt(Number.MIN_SAFE_INTEGER)||a>BigInt(Number.MAX_SAFE_INTEGER)?r||(r=!0,console.warn("[semiotic/fromArrow] A 64-bit integer exceeds Number.MAX_SAFE_INTEGER; left as bigint to avoid precision loss.")):a=Number(a)),e[o]=a}s[t]=e}return s},exports.fromVegaLite=function(e){var o,u,d,f,v,p,m,g,y,b,h,x;const A=[],{type:w,markProps:k}=function(e){if("string"==typeof e)return{type:e,markProps:{}};const{type:t}=e;return{type:t,markProps:function(e,t){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&0>t.indexOf(l)&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(l=Object.getOwnPropertySymbols(e);l.length>i;i++)0>t.indexOf(l[i])&&Object.prototype.propertyIsEnumerable.call(e,l[i])&&(o[l[i]]=e[l[i]])}return o}(e,["type"])}}(e.mark),L=e.encoding||{},O=L.x,S=L.y,B=L.color,R=L.size,j=L.theta,C=L.opacity;let E;(null===(o=e.data)||void 0===o?void 0:o.values)?E=e.data.values:(null===(u=e.data)||void 0===u?void 0:u.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||L.facet||L.row||L.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 N={};e.width&&(N.width=e.width),e.height&&(N.height=e.height);const P=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(P&&(N.title=P),(null==B?void 0:B.field)&&(N.colorBy=B.field,null===(d=B.scale)||void 0===d?void 0:d.scheme)){const e=a[B.scale.scheme];e&&(N.colorScheme=e)}void 0!==(null==C?void 0:C.value)&&(N.pointOpacity=C.value);const I=null==O?void 0:O.aggregate,M=null==S?void 0:S.aggregate;if(E&&(I||M)){const e=M?S:O,o=M?O:S,l=r[e.aggregate];if(l&&(null==o?void 0:o.field)&&e.field)E=t(E,{groupBy:o.field,value:e.field,agg:l});else if(("count"===l||"count"===e.aggregate)&&(null==o?void 0:o.field)&&E){const e=new Map;for(const t of E){const l=t[o.field]+"";e.set(l,(e.get(l)||0)+1)}E=Array.from(e,([e,t])=>({[o.field]:e,value:t}))}}if((null==O?void 0:O.bin)||(null==S?void 0:S.bin)){const e="Histogram";E&&(N.data=E),(null==O?void 0:O.bin)?(N.valueAccessor=O.field,(null==S?void 0:S.field)&&(N.categoryAccessor=S.field),(null===(f=O.axis)||void 0===f?void 0:f.title)&&(N.valueLabel=O.axis.title)):(null==S?void 0:S.bin)&&(N.valueAccessor=S.field,(null==O?void 0:O.field)&&(N.categoryAccessor=O.field),(null===(v=S.axis)||void 0===v?void 0:v.title)&&(N.valueLabel=S.axis.title));const t=(null==O?void 0:O.bin)||(null==S?void 0:S.bin),o="object"==typeof t?t.maxbins:void 0;return o&&(N.bins=o),c(e,N,A)}let F;switch(w){case"bar":F=function(e,t,o,a,n,r,s){var c,u,d,f,v,p;let m;return(null==o?void 0:o.field)&&!1!==(null==e?void 0:e.stack)&&!1!==(null==t?void 0:t.stack)&&null!==(null==e?void 0:e.stack)&&null!==(null==t?void 0:t.stack)?(m="StackedBarChart",a.stackBy=o.field):m="BarChart",l(null==e?void 0:e.type)&&i(null==t?void 0:t.type)?(a.categoryAccessor=e.field,a.valueAccessor=s?"value":t.field,(null===(c=null==e?void 0:e.axis)||void 0===c?void 0:c.title)&&(a.categoryLabel=e.axis.title),(null===(u=null==t?void 0:t.axis)||void 0===u?void 0:u.title)&&(a.valueLabel=t.axis.title)):i(null==e?void 0:e.type)&&l(null==t?void 0:t.type)?(a.categoryAccessor=t.field,a.valueAccessor=r?"value":e.field,a.orientation="horizontal",(null===(d=null==t?void 0:t.axis)||void 0===d?void 0:d.title)&&(a.categoryLabel=t.axis.title),(null===(f=null==e?void 0:e.axis)||void 0===f?void 0:f.title)&&(a.valueLabel=e.axis.title)):((null==e?void 0:e.field)&&(a.categoryAccessor=e.field),(null==t?void 0:t.field)&&(a.valueAccessor=s?"value":t.field),(null===(v=null==e?void 0:e.axis)||void 0===v?void 0:v.title)&&(a.categoryLabel=e.axis.title),(null===(p=null==t?void 0:t.axis)||void 0===p?void 0:p.title)&&(a.valueLabel=t.axis.title)),n&&(a.data=n),m}(O,S,B,N,E,I,M);break;case"line":if(F="LineChart",s(O,S,N,I,M),(null==B?void 0:B.field)&&(N.lineBy=B.field),k.interpolate){const e=n[k.interpolate];e&&(N.curve=e)}!0===k.point&&(N.showPoints=!0),E&&(N.data=E);break;case"area":if((null==B?void 0:B.field)?(F="StackedAreaChart",N.areaBy=B.field):F="AreaChart",s(O,S,N,I,M),k.interpolate){const e=n[k.interpolate];e&&(N.curve=e)}void 0!==k.opacity&&(N.areaOpacity=k.opacity),E&&(N.data=E);break;case"point":case"circle":case"square":(null==R?void 0:R.field)?(F="BubbleChart",N.sizeBy=R.field,(null===(p=R.scale)||void 0===p?void 0:p.range)&&(N.sizeRange=R.scale.range)):F="Scatterplot",s(O,S,N,I,M),E&&(N.data=E);break;case"rect":F="Heatmap",(null==O?void 0:O.field)&&(N.xAccessor=O.field),(null==S?void 0:S.field)&&(N.yAccessor=S.field),(null==B?void 0:B.field)&&(N.valueAccessor=B.field,delete N.colorBy),(null===(m=null==O?void 0:O.axis)||void 0===m?void 0:m.title)&&(N.xLabel=O.axis.title),(null===(g=null==S?void 0:S.axis)||void 0===g?void 0:g.title)&&(N.yLabel=S.axis.title),E&&(N.data=E);break;case"arc":k.innerRadius&&k.innerRadius>0?(F="DonutChart",N.innerRadius=k.innerRadius):F="PieChart",(null==j?void 0:j.field)?N.valueAccessor=j.field:(null==S?void 0:S.field)&&(N.valueAccessor=M?"value":S.field),(null==B?void 0:B.field)&&(N.categoryAccessor=B.field),(null==O?void 0:O.field)&&!(null==j?void 0:j.field)&&(N.categoryAccessor=O.field),E&&(N.data=E);break;case"tick":F="DotPlot",l(null==O?void 0:O.type)?(N.categoryAccessor=O.field,(null==S?void 0:S.field)&&(N.valueAccessor=M?"value":S.field),(null===(y=null==O?void 0:O.axis)||void 0===y?void 0:y.title)&&(N.categoryLabel=O.axis.title),(null===(b=null==S?void 0:S.axis)||void 0===b?void 0:b.title)&&(N.valueLabel=S.axis.title)):l(null==S?void 0:S.type)?(N.categoryAccessor=S.field,(null==O?void 0:O.field)&&(N.valueAccessor=I?"value":O.field),N.orientation="horizontal",(null===(h=null==S?void 0:S.axis)||void 0===h?void 0:h.title)&&(N.categoryLabel=S.axis.title),(null===(x=null==O?void 0:O.axis)||void 0===x?void 0:x.title)&&(N.valueLabel=O.axis.title)):((null==O?void 0:O.field)&&(N.categoryAccessor=O.field),(null==S?void 0:S.field)&&(N.valueAccessor=M?"value":S.field)),E&&(N.data=E);break;default:A.push(`Unsupported mark type "${w}". Defaulting to Scatterplot.`),F="Scatterplot",s(O,S,N,I,M),E&&(N.data=E)}return c(F,N,A)},exports.groupBy=function(e,t){const{key:o,fields:l}=t,i=new Map;for(const t of e){const e=t[o]+"";if(i.has(e)||i.set(e,[]),l){const o={};for(const e of l)e in t&&(o[e]=t[e]);i.get(e).push(o)}else i.get(e).push(Object.assign({},t))}const a=[];for(const[e,t]of i)a.push({id:e,coordinates:t});return a},exports.mergeData=function(e,t,o){const{featureKey:l,dataKey:i}=o,a=new Map;for(const e of t)a.set(e[i]+"",e);return e.map(e=>{const t=(e=>{const t=l.split(".");let o=e;for(const e of t)o=null==o?void 0:o[e];return(null!=o?o:"")+""})(e),o=a.get(t);return o?Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),o)}):e})},exports.pivot=function(e,t){const{columns:o,nameField:l="name",valueField:i="value"}=t,a=new Set(o),n=[];for(const t of e){const e={};for(const o of Object.keys(t))a.has(o)||(e[o]=t[o]);for(const a of o)n.push(Object.assign(Object.assign({},e),{[l]:a,[i]:t[a]}))}return n},exports.rollup=t;
1
+ "use strict";var e,t=Object.defineProperty,a=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,i={};function n(e){let t=1/0,a=-1/0;for(const r of e)t>r&&(t=r),r>a&&(a=r);return[t,a]}function s(e,t){const{field:a,bins:r=10}=t,o=e.map(e=>Number(e[a])).filter(e=>!isNaN(e));if(0===o.length)return[];const[i,s]=n(o),l=t.domain?t.domain[0]:i,c=t.domain?t.domain[1]:s;if(l===c)return[{category:`${l}-${c}`,value:o.length}];const u=(c-l)/r,d=Array(r).fill(0);for(const e of o){let t=Math.floor((e-l)/u);t===r&&(t=r-1),t>=0&&r>t&&d[t]++}return d.map((e,t)=>{const a=l+t*u,r=a+u;return{category:`${f(a)}-${f(r)}`,value:e}})}function l(e,t){const{groupBy:a,value:r,agg:o="sum"}=t,i=new Map;for(const t of e){const e=t[a]+"";i.has(e)||i.set(e,[]),i.get(e).push(Number(t[r]))}const s=[];for(const[e,t]of i){let r;switch(o){case"count":r=t.length;break;case"mean":r=t.reduce((e,t)=>e+t,0)/t.length;break;case"min":r=n(t)[0];break;case"max":r=n(t)[1];break;default:r=t.reduce((e,t)=>e+t,0)}s.push({[a]:e,value:r})}return s}function c(e,t){const{key:a,fields:r}=t,o=new Map;for(const t of e){const e=t[a]+"";if(o.has(e)||o.set(e,[]),r){const a={};for(const e of r)e in t&&(a[e]=t[e]);o.get(e).push(a)}else o.get(e).push({...t})}const i=[];for(const[e,t]of o)i.push({id:e,coordinates:t});return i}function u(e,t){const{columns:a,nameField:r="name",valueField:o="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,[r]:i,[o]:t[i]})}return n}function f(e){return Math.round(1e3*e)/1e3+""}function d(e){return"nominal"===e||"ordinal"===e}function p(e){return"quantitative"===e||"temporal"===e}((e,a)=>{for(var r in a)t(e,r,{get:a[r],enumerable:!0})})(i,{bin:()=>s,fromArrow:()=>x,fromVegaLite:()=>b,groupBy:()=>c,mergeData:()=>A,pivot:()=>u,rollup:()=>l}),module.exports=(e=i,((e,i,n,s)=>{if(i)for(let n of r(i))o.call(e,n)||void 0===n||t(e,n,{get:()=>i[n],enumerable:!(s=a(i,n))||s.enumerable});return e})(t({},"__esModule",{value:!0}),e));var m={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"},y={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"},g={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function b(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,...r}=e,{usermeta:o,...i}=t[0];return{...r,...i}}(e);const t=[],{type:a,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),o=e.encoding||{},i=o.x,n=o.y,s=o.color,c=o.size,u=o.theta,f=o.opacity;let b;e.data?.values?b=e.data.values:e.data?.url&&t.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&t.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&t.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&t.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||o.facet||o.row||o.column)&&t.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&t.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&t.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");const x={};e.width&&(x.width=e.width),e.height&&(x.height=e.height);const A=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(A&&(x.title=A),s?.field&&(x.colorBy=s.field,s.scale?.scheme)){const e=m[s.scale.scheme];e&&(x.colorScheme=e)}void 0!==f?.value&&(x.pointOpacity=f.value);const w=i?.aggregate,k=n?.aggregate;if(b&&(w||k)){const e=k?n:i,t=k?i:n,a=g[e.aggregate];if(a&&t?.field&&e.field)b=l(b,{groupBy:t.field,value:e.field,agg:a});else if(("count"===a||"count"===e.aggregate)&&t?.field&&b){const e=new Map;for(const a of b){const r=a[t.field]+"";e.set(r,(e.get(r)||0)+1)}b=Array.from(e,([e,a])=>({[t.field]:e,value:a}))}}if(i?.bin||n?.bin){const e="Histogram";b&&(x.data=b),i?.bin?(x.valueAccessor=i.field,n?.field&&(x.categoryAccessor=n.field),i.axis?.title&&(x.valueLabel=i.axis.title)):n?.bin&&(x.valueAccessor=n.field,i?.field&&(x.categoryAccessor=i.field),n.axis?.title&&(x.valueLabel=n.axis.title));const a=i?.bin||n?.bin,r="object"==typeof a?a.maxbins:void 0;return r&&(x.bins=r),v(e,x,t)}let L;switch(a){case"bar":L=function(e,t,a,r,o,i,n){let s;return a?.field&&!1!==e?.stack&&!1!==t?.stack&&null!==e?.stack&&null!==t?.stack?(s="StackedBarChart",r.stackBy=a.field):s="BarChart",d(e?.type)&&p(t?.type)?(r.categoryAccessor=e.field,r.valueAccessor=n?"value":t.field,e?.axis?.title&&(r.categoryLabel=e.axis.title),t?.axis?.title&&(r.valueLabel=t.axis.title)):p(e?.type)&&d(t?.type)?(r.categoryAccessor=t.field,r.valueAccessor=i?"value":e.field,r.orientation="horizontal",t?.axis?.title&&(r.categoryLabel=t.axis.title),e?.axis?.title&&(r.valueLabel=e.axis.title)):(e?.field&&(r.categoryAccessor=e.field),t?.field&&(r.valueAccessor=n?"value":t.field),e?.axis?.title&&(r.categoryLabel=e.axis.title),t?.axis?.title&&(r.valueLabel=t.axis.title)),o&&(r.data=o),s}(i,n,s,x,b,w,k);break;case"line":if(L="LineChart",h(i,n,x,w,k),s?.field&&(x.lineBy=s.field),r.interpolate){const e=y[r.interpolate];e&&(x.curve=e)}!0===r.point&&(x.showPoints=!0),b&&(x.data=b);break;case"area":if(s?.field?(L="StackedAreaChart",x.areaBy=s.field):L="AreaChart",h(i,n,x,w,k),r.interpolate){const e=y[r.interpolate];e&&(x.curve=e)}void 0!==r.opacity&&(x.areaOpacity=r.opacity),b&&(x.data=b);break;case"point":case"circle":case"square":c?.field?(L="BubbleChart",x.sizeBy=c.field,c.scale?.range&&(x.sizeRange=c.scale.range)):L="Scatterplot",h(i,n,x,w,k),b&&(x.data=b);break;case"rect":L="Heatmap",i?.field&&(x.xAccessor=i.field),n?.field&&(x.yAccessor=n.field),s?.field&&(x.valueAccessor=s.field,delete x.colorBy),i?.axis?.title&&(x.xLabel=i.axis.title),n?.axis?.title&&(x.yLabel=n.axis.title),b&&(x.data=b);break;case"arc":r.innerRadius&&r.innerRadius>0?(L="DonutChart",x.innerRadius=r.innerRadius):L="PieChart",u?.field?x.valueAccessor=u.field:n?.field&&(x.valueAccessor=k?"value":n.field),s?.field&&(x.categoryAccessor=s.field),i?.field&&!u?.field&&(x.categoryAccessor=i.field),b&&(x.data=b);break;case"tick":L="DotPlot",d(i?.type)?(x.categoryAccessor=i.field,n?.field&&(x.valueAccessor=k?"value":n.field),i?.axis?.title&&(x.categoryLabel=i.axis.title),n?.axis?.title&&(x.valueLabel=n.axis.title)):d(n?.type)?(x.categoryAccessor=n.field,i?.field&&(x.valueAccessor=w?"value":i.field),x.orientation="horizontal",n?.axis?.title&&(x.categoryLabel=n.axis.title),i?.axis?.title&&(x.valueLabel=i.axis.title)):(i?.field&&(x.categoryAccessor=i.field),n?.field&&(x.valueAccessor=k?"value":n.field)),b&&(x.data=b);break;default:t.push(`Unsupported mark type "${a}". Defaulting to Scatterplot.`),L="Scatterplot",h(i,n,x,w,k),b&&(x.data=b)}return v(L,x,t)}function h(e,t,a,r,o){e?.field&&(a.xAccessor=r?"value":e.field),t?.field&&(a.yAccessor=o?"value":t.field),e?.axis?.title&&(a.xLabel=e.axis.title),t?.axis?.title&&(a.yLabel=t.axis.title)}function v(e,t,a){const r={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(a.length>0){r.warnings=a;for(const e of a)console.warn("[semiotic/fromVegaLite] "+e)}return r}function x(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,r=e.schema.fields.map(e=>e.name),o=t.fields??r,i=[];for(const t of o){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:r,column:o}of i){let i=o.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[r]=i}s[t]=e}return s}function A(e,t,a){const{featureKey:r,dataKey:o}=a,i=new Map;for(const e of t)i.set(e[o]+"",e);return e.map(e=>{const t=(e=>{const t=r.split(".");let a=e;for(const e of t)a=null!==a&&"object"==typeof a?a[e]:void 0;return(a??"")+""})(e),a=i.get(t);return a?{...e,properties:{...e.properties,...a}}:e})}
@@ -1 +1 @@
1
- function e(e){let t=1/0,o=-1/0;for(const l of e)t>l&&(t=l),l>o&&(o=l);return[t,o]}function t(t,o){const{field:l,bins:i=10}=o,n=t.map(e=>Number(e[l])).filter(e=>!isNaN(e));if(0===n.length)return[];const[r,s]=e(n),c=o.domain?o.domain[0]:r,d=o.domain?o.domain[1]:s;if(c===d)return[{category:`${c}-${d}`,value:n.length}];const u=(d-c)/i,f=Array(i).fill(0);for(const e of n){let t=Math.floor((e-c)/u);t===i&&(t=i-1),t>=0&&i>t&&f[t]++}return f.map((e,t)=>{const o=c+t*u,l=o+u;return{category:`${a(o)}-${a(l)}`,value:e}})}function o(t,o){const{groupBy:l,value:i,agg:a="sum"}=o,n=new Map;for(const e of t){const t=e[l]+"";n.has(t)||n.set(t,[]),n.get(t).push(Number(e[i]))}const r=[];for(const[t,o]of n){let i;switch(a){case"count":i=o.length;break;case"mean":i=o.reduce((e,t)=>e+t,0)/o.length;break;case"min":i=e(o)[0];break;case"max":i=e(o)[1];break;default:i=o.reduce((e,t)=>e+t,0)}r.push({[l]:t,value:i})}return r}function l(e,t){const{key:o,fields:l}=t,i=new Map;for(const t of e){const e=t[o]+"";if(i.has(e)||i.set(e,[]),l){const o={};for(const e of l)e in t&&(o[e]=t[e]);i.get(e).push(o)}else i.get(e).push(Object.assign({},t))}const a=[];for(const[e,t]of i)a.push({id:e,coordinates:t});return a}function i(e,t){const{columns:o,nameField:l="name",valueField:i="value"}=t,a=new Set(o),n=[];for(const t of e){const e={};for(const o of Object.keys(t))a.has(o)||(e[o]=t[o]);for(const a of o)n.push(Object.assign(Object.assign({},e),{[l]:a,[i]:t[a]}))}return n}function a(e){return Math.round(1e3*e)/1e3+""}function n(e){return"nominal"===e||"ordinal"===e}function r(e){return"quantitative"===e||"temporal"===e}"function"==typeof SuppressedError&&SuppressedError;const s={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"},c={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"},d={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function u(e){var t,l,i,a,u,p,m,g,y,b,h,x;const A=[],{type:w,markProps:k}=function(e){if("string"==typeof e)return{type:e,markProps:{}};const{type:t}=e;return{type:t,markProps:function(e,t){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&0>t.indexOf(l)&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(l=Object.getOwnPropertySymbols(e);l.length>i;i++)0>t.indexOf(l[i])&&Object.prototype.propertyIsEnumerable.call(e,l[i])&&(o[l[i]]=e[l[i]])}return o}(e,["type"])}}(e.mark),L=e.encoding||{},O=L.x,S=L.y,B=L.color,R=L.size,j=L.theta,C=L.opacity;let E;(null===(t=e.data)||void 0===t?void 0:t.values)?E=e.data.values:(null===(l=e.data)||void 0===l?void 0:l.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||L.facet||L.row||L.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 N={};e.width&&(N.width=e.width),e.height&&(N.height=e.height);const P=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(P&&(N.title=P),(null==B?void 0:B.field)&&(N.colorBy=B.field,null===(i=B.scale)||void 0===i?void 0:i.scheme)){const e=s[B.scale.scheme];e&&(N.colorScheme=e)}void 0!==(null==C?void 0:C.value)&&(N.pointOpacity=C.value);const I=null==O?void 0:O.aggregate,M=null==S?void 0:S.aggregate;if(E&&(I||M)){const e=M?S:O,t=M?O:S,l=d[e.aggregate];if(l&&(null==t?void 0:t.field)&&e.field)E=o(E,{groupBy:t.field,value:e.field,agg:l});else if(("count"===l||"count"===e.aggregate)&&(null==t?void 0:t.field)&&E){const e=new Map;for(const o of E){const l=o[t.field]+"";e.set(l,(e.get(l)||0)+1)}E=Array.from(e,([e,o])=>({[t.field]:e,value:o}))}}if((null==O?void 0:O.bin)||(null==S?void 0:S.bin)){const e="Histogram";E&&(N.data=E),(null==O?void 0:O.bin)?(N.valueAccessor=O.field,(null==S?void 0:S.field)&&(N.categoryAccessor=S.field),(null===(a=O.axis)||void 0===a?void 0:a.title)&&(N.valueLabel=O.axis.title)):(null==S?void 0:S.bin)&&(N.valueAccessor=S.field,(null==O?void 0:O.field)&&(N.categoryAccessor=O.field),(null===(u=S.axis)||void 0===u?void 0:u.title)&&(N.valueLabel=S.axis.title));const t=(null==O?void 0:O.bin)||(null==S?void 0:S.bin),o="object"==typeof t?t.maxbins:void 0;return o&&(N.bins=o),v(e,N,A)}let F;switch(w){case"bar":F=function(e,t,o,l,i,a,s){var c,d,u,f,v,p;let m;return(null==o?void 0:o.field)&&!1!==(null==e?void 0:e.stack)&&!1!==(null==t?void 0:t.stack)&&null!==(null==e?void 0:e.stack)&&null!==(null==t?void 0:t.stack)?(m="StackedBarChart",l.stackBy=o.field):m="BarChart",n(null==e?void 0:e.type)&&r(null==t?void 0:t.type)?(l.categoryAccessor=e.field,l.valueAccessor=s?"value":t.field,(null===(c=null==e?void 0:e.axis)||void 0===c?void 0:c.title)&&(l.categoryLabel=e.axis.title),(null===(d=null==t?void 0:t.axis)||void 0===d?void 0:d.title)&&(l.valueLabel=t.axis.title)):r(null==e?void 0:e.type)&&n(null==t?void 0:t.type)?(l.categoryAccessor=t.field,l.valueAccessor=a?"value":e.field,l.orientation="horizontal",(null===(u=null==t?void 0:t.axis)||void 0===u?void 0:u.title)&&(l.categoryLabel=t.axis.title),(null===(f=null==e?void 0:e.axis)||void 0===f?void 0:f.title)&&(l.valueLabel=e.axis.title)):((null==e?void 0:e.field)&&(l.categoryAccessor=e.field),(null==t?void 0:t.field)&&(l.valueAccessor=s?"value":t.field),(null===(v=null==e?void 0:e.axis)||void 0===v?void 0:v.title)&&(l.categoryLabel=e.axis.title),(null===(p=null==t?void 0:t.axis)||void 0===p?void 0:p.title)&&(l.valueLabel=t.axis.title)),i&&(l.data=i),m}(O,S,B,N,E,I,M);break;case"line":if(F="LineChart",f(O,S,N,I,M),(null==B?void 0:B.field)&&(N.lineBy=B.field),k.interpolate){const e=c[k.interpolate];e&&(N.curve=e)}!0===k.point&&(N.showPoints=!0),E&&(N.data=E);break;case"area":if((null==B?void 0:B.field)?(F="StackedAreaChart",N.areaBy=B.field):F="AreaChart",f(O,S,N,I,M),k.interpolate){const e=c[k.interpolate];e&&(N.curve=e)}void 0!==k.opacity&&(N.areaOpacity=k.opacity),E&&(N.data=E);break;case"point":case"circle":case"square":(null==R?void 0:R.field)?(F="BubbleChart",N.sizeBy=R.field,(null===(p=R.scale)||void 0===p?void 0:p.range)&&(N.sizeRange=R.scale.range)):F="Scatterplot",f(O,S,N,I,M),E&&(N.data=E);break;case"rect":F="Heatmap",(null==O?void 0:O.field)&&(N.xAccessor=O.field),(null==S?void 0:S.field)&&(N.yAccessor=S.field),(null==B?void 0:B.field)&&(N.valueAccessor=B.field,delete N.colorBy),(null===(m=null==O?void 0:O.axis)||void 0===m?void 0:m.title)&&(N.xLabel=O.axis.title),(null===(g=null==S?void 0:S.axis)||void 0===g?void 0:g.title)&&(N.yLabel=S.axis.title),E&&(N.data=E);break;case"arc":k.innerRadius&&k.innerRadius>0?(F="DonutChart",N.innerRadius=k.innerRadius):F="PieChart",(null==j?void 0:j.field)?N.valueAccessor=j.field:(null==S?void 0:S.field)&&(N.valueAccessor=M?"value":S.field),(null==B?void 0:B.field)&&(N.categoryAccessor=B.field),(null==O?void 0:O.field)&&!(null==j?void 0:j.field)&&(N.categoryAccessor=O.field),E&&(N.data=E);break;case"tick":F="DotPlot",n(null==O?void 0:O.type)?(N.categoryAccessor=O.field,(null==S?void 0:S.field)&&(N.valueAccessor=M?"value":S.field),(null===(y=null==O?void 0:O.axis)||void 0===y?void 0:y.title)&&(N.categoryLabel=O.axis.title),(null===(b=null==S?void 0:S.axis)||void 0===b?void 0:b.title)&&(N.valueLabel=S.axis.title)):n(null==S?void 0:S.type)?(N.categoryAccessor=S.field,(null==O?void 0:O.field)&&(N.valueAccessor=I?"value":O.field),N.orientation="horizontal",(null===(h=null==S?void 0:S.axis)||void 0===h?void 0:h.title)&&(N.categoryLabel=S.axis.title),(null===(x=null==O?void 0:O.axis)||void 0===x?void 0:x.title)&&(N.valueLabel=O.axis.title)):((null==O?void 0:O.field)&&(N.categoryAccessor=O.field),(null==S?void 0:S.field)&&(N.valueAccessor=M?"value":S.field)),E&&(N.data=E);break;default:A.push(`Unsupported mark type "${w}". Defaulting to Scatterplot.`),F="Scatterplot",f(O,S,N,I,M),E&&(N.data=E)}return v(F,N,A)}function f(e,t,o,l,i){var a,n;(null==e?void 0:e.field)&&(o.xAccessor=l?"value":e.field),(null==t?void 0:t.field)&&(o.yAccessor=i?"value":t.field),(null===(a=null==e?void 0:e.axis)||void 0===a?void 0:a.title)&&(o.xLabel=e.axis.title),(null===(n=null==t?void 0:t.axis)||void 0===n?void 0:n.title)&&(o.yLabel=t.axis.title)}function v(e,t,o){const l={component:e,props:t,version:"1",createdAt:(new Date).toISOString()};if(o.length>0){l.warnings=o;for(const e of o)console.warn("[semiotic/fromVegaLite] "+e)}return l}function p(e,t={}){var o;if(!e||"number"!=typeof e.numRows||!e.schema)return console.warn("[semiotic/fromArrow] Expected an Arrow table with `numRows` and `schema`. Returning []."),[];const l=!1!==t.coerceBigInt,i=e.schema.fields.map(e=>e.name),a=null!==(o=t.fields)&&void 0!==o?o:i,n=[];for(const t of a){const o=e.getChild(t);o?n.push({name:t,column:o}):console.warn(`[semiotic/fromArrow] Column "${t}" is not in the table schema; skipping it.`)}let r=!1;const s=Array(e.numRows);for(let t=0;e.numRows>t;t++){const e={};for(const{name:o,column:i}of n){let a=i.get(t);l&&"bigint"==typeof a&&(a<BigInt(Number.MIN_SAFE_INTEGER)||a>BigInt(Number.MAX_SAFE_INTEGER)?r||(r=!0,console.warn("[semiotic/fromArrow] A 64-bit integer exceeds Number.MAX_SAFE_INTEGER; left as bigint to avoid precision loss.")):a=Number(a)),e[o]=a}s[t]=e}return s}function m(e,t,o){const{featureKey:l,dataKey:i}=o,a=new Map;for(const e of t)a.set(e[i]+"",e);return e.map(e=>{const t=(e=>{const t=l.split(".");let o=e;for(const e of t)o=null==o?void 0:o[e];return(null!=o?o:"")+""})(e),o=a.get(t);return o?Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),o)}):e})}export{t as bin,p as fromArrow,u as fromVegaLite,l as groupBy,m as mergeData,i as pivot,o as rollup};
1
+ function e(e){let t=1/0,a=-1/0;for(const o of e)t>o&&(t=o),o>a&&(a=o);return[t,a]}function t(t,a){const{field:o,bins:r=10}=a,n=t.map(e=>Number(e[o])).filter(e=>!isNaN(e));if(0===n.length)return[];const[s,l]=e(n),c=a.domain?a.domain[0]:s,u=a.domain?a.domain[1]:l;if(c===u)return[{category:`${c}-${u}`,value:n.length}];const f=(u-c)/r,d=Array(r).fill(0);for(const e of n){let t=Math.floor((e-c)/f);t===r&&(t=r-1),t>=0&&r>t&&d[t]++}return d.map((e,t)=>{const a=c+t*f,o=a+f;return{category:`${i(a)}-${i(o)}`,value:e}})}function a(t,a){const{groupBy:o,value:r,agg:i="sum"}=a,n=new Map;for(const e of t){const t=e[o]+"";n.has(t)||n.set(t,[]),n.get(t).push(Number(e[r]))}const s=[];for(const[t,a]of n){let r;switch(i){case"count":r=a.length;break;case"mean":r=a.reduce((e,t)=>e+t,0)/a.length;break;case"min":r=e(a)[0];break;case"max":r=e(a)[1];break;default:r=a.reduce((e,t)=>e+t,0)}s.push({[o]:t,value:r})}return s}function o(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 r(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 i(e){return Math.round(1e3*e)/1e3+""}function n(e){return"nominal"===e||"ordinal"===e}function s(e){return"quantitative"===e||"temporal"===e}var l={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"},c={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"},u={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function f(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 t=[],{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),i=e.encoding||{},f=i.x,m=i.y,y=i.color,g=i.size,h=i.theta,b=i.opacity;let v;e.data?.values?v=e.data.values:e.data?.url&&t.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&t.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite()."),e.layer&&t.push('Layered specs ("layer") are not supported. Only single-mark specs can be translated.'),(e.hconcat||e.vconcat||e.concat)&&t.push('Concatenated views ("hconcat"/"vconcat"/"concat") are not supported. Translate each sub-spec individually.'),(e.facet||i.facet||i.row||i.column)&&t.push("Faceted views are not supported. Use Semiotic's LinkedCharts or render multiple charts manually."),e.repeat&&t.push('Repeated views ("repeat") are not supported. Translate each field combination individually.'),(e.params||e.selection)&&t.push("Selections/params are not supported. Use Semiotic's LinkedCharts and selection props for interactivity.");const x={};e.width&&(x.width=e.width),e.height&&(x.height=e.height);const A=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(A&&(x.title=A),y?.field&&(x.colorBy=y.field,y.scale?.scheme)){const e=l[y.scale.scheme];e&&(x.colorScheme=e)}void 0!==b?.value&&(x.pointOpacity=b.value);const k=f?.aggregate,w=m?.aggregate;if(v&&(k||w)){const e=w?m:f,t=w?f:m,o=u[e.aggregate];if(o&&t?.field&&e.field)v=a(v,{groupBy:t.field,value:e.field,agg:o});else if(("count"===o||"count"===e.aggregate)&&t?.field&&v){const e=new Map;for(const a of v){const o=a[t.field]+"";e.set(o,(e.get(o)||0)+1)}v=Array.from(e,([e,a])=>({[t.field]:e,value:a}))}}if(f?.bin||m?.bin){const e="Histogram";v&&(x.data=v),f?.bin?(x.valueAccessor=f.field,m?.field&&(x.categoryAccessor=m.field),f.axis?.title&&(x.valueLabel=f.axis.title)):m?.bin&&(x.valueAccessor=m.field,f?.field&&(x.categoryAccessor=f.field),m.axis?.title&&(x.valueLabel=m.axis.title));const a=f?.bin||m?.bin,o="object"==typeof a?a.maxbins:void 0;return o&&(x.bins=o),p(e,x,t)}let L;switch(o){case"bar":L=function(e,t,a,o,r,i,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",n(e?.type)&&s(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)):s(e?.type)&&n(t?.type)?(o.categoryAccessor=t.field,o.valueAccessor=i?"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}(f,m,y,x,v,k,w);break;case"line":if(L="LineChart",d(f,m,x,k,w),y?.field&&(x.lineBy=y.field),r.interpolate){const e=c[r.interpolate];e&&(x.curve=e)}!0===r.point&&(x.showPoints=!0),v&&(x.data=v);break;case"area":if(y?.field?(L="StackedAreaChart",x.areaBy=y.field):L="AreaChart",d(f,m,x,k,w),r.interpolate){const e=c[r.interpolate];e&&(x.curve=e)}void 0!==r.opacity&&(x.areaOpacity=r.opacity),v&&(x.data=v);break;case"point":case"circle":case"square":g?.field?(L="BubbleChart",x.sizeBy=g.field,g.scale?.range&&(x.sizeRange=g.scale.range)):L="Scatterplot",d(f,m,x,k,w),v&&(x.data=v);break;case"rect":L="Heatmap",f?.field&&(x.xAccessor=f.field),m?.field&&(x.yAccessor=m.field),y?.field&&(x.valueAccessor=y.field,delete x.colorBy),f?.axis?.title&&(x.xLabel=f.axis.title),m?.axis?.title&&(x.yLabel=m.axis.title),v&&(x.data=v);break;case"arc":r.innerRadius&&r.innerRadius>0?(L="DonutChart",x.innerRadius=r.innerRadius):L="PieChart",h?.field?x.valueAccessor=h.field:m?.field&&(x.valueAccessor=w?"value":m.field),y?.field&&(x.categoryAccessor=y.field),f?.field&&!h?.field&&(x.categoryAccessor=f.field),v&&(x.data=v);break;case"tick":L="DotPlot",n(f?.type)?(x.categoryAccessor=f.field,m?.field&&(x.valueAccessor=w?"value":m.field),f?.axis?.title&&(x.categoryLabel=f.axis.title),m?.axis?.title&&(x.valueLabel=m.axis.title)):n(m?.type)?(x.categoryAccessor=m.field,f?.field&&(x.valueAccessor=k?"value":f.field),x.orientation="horizontal",m?.axis?.title&&(x.categoryLabel=m.axis.title),f?.axis?.title&&(x.valueLabel=f.axis.title)):(f?.field&&(x.categoryAccessor=f.field),m?.field&&(x.valueAccessor=w?"value":m.field)),v&&(x.data=v);break;default:t.push(`Unsupported mark type "${o}". Defaulting to Scatterplot.`),L="Scatterplot",d(f,m,x,k,w),v&&(x.data=v)}return p(L,x,t)}function d(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 p(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 m(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 y(e,t,a){const{featureKey:o,dataKey:r}=a,i=new Map;for(const e of t)i.set(e[r]+"",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?a[e]:void 0;return(a??"")+""})(e),a=i.get(t);return a?{...e,properties:{...e.properties,...a}}:e})}export{t as bin,m as fromArrow,f as fromVegaLite,o as groupBy,y as mergeData,r as pivot,a as rollup};
@@ -6,15 +6,44 @@
6
6
  * without a deprecation window and are excluded from stable API-surface and
7
7
  * bundle-size gates.
8
8
  */
9
- export { EXPERIMENTAL_GOFISH_ADAPTER_NAME, unstable_fromGofishIR, } from "./components/recipes/gofishIR";
10
- export type { GofishIRDocument as UnstableGofishIRDocument, GofishChartConfig as UnstableGofishChartConfig, GofishChartFamily as UnstableGofishChartFamily, FromGofishIROptions as UnstableFromGofishIROptions, } from "./components/recipes/gofishIR";
11
- export { registerGofishLambda as unstable_registerGofishLambda, unregisterGofishLambda as unstable_unregisterGofishLambda, } from "./components/recipes/gofishLambdas";
12
- export type { GofishLambda as UnstableGofishLambda, } from "./components/recipes/gofishLambdas";
13
- export { gofishIRExamples as unstable_gofishIRExamples, flowerIR as unstable_gofishFlowerIR, bottleIR as unstable_gofishBottleIR, polarRibbonIR as unstable_gofishPolarRibbonIR, titanicCircleTreemapIR as unstable_gofishTitanicCircleTreemapIR, pythonMemoryIR as unstable_gofishPythonMemoryIR, bobaIR as unstable_gofishBobaIR, } from "./components/recipes/gofishIRExamples";
9
+ export { EXPERIMENTAL_GOFISH_ADAPTER_NAME, unstable_fromGofishIR } from "./components/recipes/gofishIR";
10
+ export type { GofishDisplayListDocument as UnstableGofishDisplayListDocument, GofishDisplayItem as UnstableGofishDisplayItem, GofishChartConfig as UnstableGofishChartConfig, FromGofishIROptions as UnstableFromGofishIROptions } from "./components/recipes/gofishIR";
11
+ export { gofishIRExamples as unstable_gofishIRExamples, flowerIR as unstable_gofishFlowerIR, treemapIR as unstable_gofishTreemapIR, bottleIR as unstable_gofishBottleIR, bobaIR as unstable_gofishBobaIR, pythonIR as unstable_gofishPythonIR } from "./components/recipes/gofishIRExamples";
14
12
  export type { GofishIRExample as UnstableGofishIRExample } from "./components/recipes/gofishIRExamples";
15
- export { IDID_SPEC_VERSION, BUILTIN_INTENT_IDS as unstable_BUILTIN_INTENT_IDS, validatePortableCapability as unstable_validatePortableCapability, validatePortableAudienceProfile as unstable_validatePortableAudienceProfile, validatePortableAnnotation as unstable_validatePortableAnnotation, toVegaLite as unstable_toVegaLite, attachIDID as unstable_attachIDID, readIDID as unstable_readIDID, attachIDIDAnnotations as unstable_attachIDIDAnnotations, readIDIDAnnotations as unstable_readIDIDAnnotations, } from "./components/data/portability";
13
+ export { DEFAULT_DATA_PITFALLS_ANNOTATION_PALETTE as unstable_DEFAULT_DATA_PITFALLS_ANNOTATION_PALETTE, buildDataPitfallsAnnotationBridge as unstable_buildDataPitfallsAnnotationBridge, buildDataPitfallsBridge as unstable_buildDataPitfallsBridge, buildDataPitfallsNotificationBridge as unstable_buildDataPitfallsNotificationBridge, dataPitfallsFindingToAnnotation as unstable_dataPitfallsFindingToAnnotation, dataPitfallsFindingToNotification as unstable_dataPitfallsFindingToNotification, toDataPitfallsAnnotations as unstable_toDataPitfallsAnnotations, toDataPitfallsChain as unstable_toDataPitfallsChain, toDataPitfallsNotifications as unstable_toDataPitfallsNotifications } from "./components/ai/dataPitfallsBridge";
14
+ export type { DataPitfallsAnnotationBridge as UnstableDataPitfallsAnnotationBridge, DataPitfallsAnnotationBridgeOptions as UnstableDataPitfallsAnnotationBridgeOptions, DataPitfallsAnnotationType as UnstableDataPitfallsAnnotationType, DataPitfallsBridgeOptions as UnstableDataPitfallsBridgeOptions, DataPitfallsBridgeResult as UnstableDataPitfallsBridgeResult, DataPitfallsChainInput as UnstableDataPitfallsChainInput, DataPitfallsChainStage as UnstableDataPitfallsChainStage, DataPitfallsChartNotification as UnstableDataPitfallsChartNotification, DataPitfallsDocumentInput as UnstableDataPitfallsDocumentInput, DataPitfallsFinding as UnstableDataPitfallsFinding, DataPitfallsImageInput as UnstableDataPitfallsImageInput, DataPitfallsImageMediaType as UnstableDataPitfallsImageMediaType, DataPitfallsImageSource as UnstableDataPitfallsImageSource, DataPitfallsInputKind as UnstableDataPitfallsInputKind, DataPitfallsNotificationBridge as UnstableDataPitfallsNotificationBridge, DataPitfallsNotificationBridgeOptions as UnstableDataPitfallsNotificationBridgeOptions, DataPitfallsNotificationLevel as UnstableDataPitfallsNotificationLevel, DataPitfallsNotificationMessage as UnstableDataPitfallsNotificationMessage, DataPitfallsRenderedChart as UnstableDataPitfallsRenderedChart, DataPitfallsReport as UnstableDataPitfallsReport, DataPitfallsSemioticAnnotation as UnstableDataPitfallsSemioticAnnotation, DataPitfallsSeverity as UnstableDataPitfallsSeverity, DataPitfallsSlideContent as UnstableDataPitfallsSlideContent, DataPitfallsSlidesInput as UnstableDataPitfallsSlidesInput, DataPitfallsSingleArtifactInput as UnstableDataPitfallsSingleArtifactInput, DataPitfallsTextInput as UnstableDataPitfallsTextInput } from "./components/ai/dataPitfallsBridge";
15
+ export { IDID_SPEC_VERSION, BUILTIN_INTENT_IDS as unstable_BUILTIN_INTENT_IDS, validatePortableCapability as unstable_validatePortableCapability, validatePortableAudienceProfile as unstable_validatePortableAudienceProfile, validatePortableAnnotation as unstable_validatePortableAnnotation, toVegaLite as unstable_toVegaLite, toVegaLiteResult as unstable_toVegaLiteResult, fromVegaLiteResult as unstable_fromVegaLiteResult, unwrapIDIDEnrichedVegaLiteSpec as unstable_unwrapIDIDEnrichedVegaLiteSpec, attachIDID as unstable_attachIDID, readIDID as unstable_readIDID, attachIDIDAnnotations as unstable_attachIDIDAnnotations, readIDIDAnnotations as unstable_readIDIDAnnotations } from "./components/data/portability";
16
+ export type { FromVegaLiteOptions as UnstableFromVegaLiteOptions, PortabilityDiagnostic as UnstablePortabilityDiagnostic, PortabilityDiagnosticSeverity as UnstablePortabilityDiagnosticSeverity, PortabilityExportResult as UnstablePortabilityExportResult, PortabilityImportResult as UnstablePortabilityImportResult, PortabilityLoss as UnstablePortabilityLoss, PortabilityProvenance as UnstablePortabilityProvenance, PortabilityResult as UnstablePortabilityResult, PortabilityStatus as UnstablePortabilityStatus, ToVegaLiteOptions as UnstableToVegaLiteOptions, VegaLiteExportResult as UnstableVegaLiteExportResult, VegaLiteImportResult as UnstableVegaLiteImportResult, } from "./components/data/portability";
16
17
  export { fromObservablePlot as unstable_fromObservablePlot } from "./components/data/fromObservablePlot";
17
18
  export { fromMermaid as unstable_fromMermaid } from "./components/data/fromMermaid";
18
- export type { MermaidResult as UnstableMermaidResult, MermaidNode as UnstableMermaidNode, MermaidEdge as UnstableMermaidEdge, MermaidDirection as UnstableMermaidDirection, MermaidNodeShape as UnstableMermaidNodeShape, } from "./components/data/fromMermaid";
19
- export type { ObservablePlotSpec as UnstableObservablePlotSpec, ObservablePlotMark as UnstableObservablePlotMark, ObservablePlotMarkOptions as UnstableObservablePlotMarkOptions, ObservablePlotScale as UnstableObservablePlotScale, ObservablePlotChannel as UnstableObservablePlotChannel, } from "./components/data/fromObservablePlot";
20
- export type { BuiltInIntentId as UnstableBuiltInIntentId, PortableIntentId as UnstablePortableIntentId, PortableChartRubric as UnstablePortableChartRubric, PortableChartVariant as UnstablePortableChartVariant, PortableChartCapability as UnstablePortableChartCapability, PortableReceptionModality as UnstablePortableReceptionModality, PortableAudienceTarget as UnstablePortableAudienceTarget, PortableAudienceProfile as UnstablePortableAudienceProfile, PortableAnnotationProvenance as UnstablePortableAnnotationProvenance, PortableAnnotationLifecycle as UnstablePortableAnnotationLifecycle, PortableAnnotated as UnstablePortableAnnotated, ValidationResult as UnstablePortabilityValidationResult, IDIDVegaLiteMeta as UnstableIDIDVegaLiteMeta, } from "./components/data/portability";
19
+ export type { MermaidResult as UnstableMermaidResult, MermaidNode as UnstableMermaidNode, MermaidEdge as UnstableMermaidEdge, MermaidDirection as UnstableMermaidDirection, MermaidNodeShape as UnstableMermaidNodeShape } from "./components/data/fromMermaid";
20
+ export type { ObservablePlotSpec as UnstableObservablePlotSpec, ObservablePlotMark as UnstableObservablePlotMark, ObservablePlotMarkOptions as UnstableObservablePlotMarkOptions, ObservablePlotScale as UnstableObservablePlotScale, ObservablePlotChannel as UnstableObservablePlotChannel } from "./components/data/fromObservablePlot";
21
+ export { fromFlintChart as unstable_fromFlintChart } from "./components/data/fromFlintChart";
22
+ export type { FlintAggregate as UnstableFlintAggregate, FlintChartAssemblyInput as UnstableFlintChartAssemblyInput, FlintChartConfig as UnstableFlintChartConfig, FlintChartConfigMetadata as UnstableFlintChartConfigMetadata, FlintChartEncoding as UnstableFlintChartEncoding, FlintChartSize as UnstableFlintChartSize, FlintEncodingInput as UnstableFlintEncodingInput, FlintEncodingType as UnstableFlintEncodingType, FlintRawEncodingValue as UnstableFlintRawEncodingValue, FlintSemanticAnnotation as UnstableFlintSemanticAnnotation } from "./components/data/fromFlintChart";
23
+ export { DEFAULT_PHYSICS_CANVAS_THEME as unstable_DEFAULT_PHYSICS_CANVAS_THEME, physicsCanvasColorWithAlpha as unstable_physicsCanvasColorWithAlpha, resolvePhysicsCanvasTheme as unstable_resolvePhysicsCanvasTheme } from "./components/stream/physics/PhysicsCanvasTheme";
24
+ export { buildPhysicsSettledEvidence as unstable_buildPhysicsSettledEvidence } from "./components/stream/physics/PhysicsEvidence";
25
+ export { buildPhysicsSettledScene as unstable_buildPhysicsSettledScene, physicsBodiesToXYSceneNodes as unstable_physicsBodiesToXYSceneNodes, physicsBodyToXYSceneNode as unstable_physicsBodyToXYSceneNode } from "./components/stream/physics/PhysicsSettledScene";
26
+ export { renderPhysicsSettledSVG as unstable_renderPhysicsSettledSVG } from "./components/stream/physics/PhysicsSettledSVG";
27
+ export { collidersFromPhysicsAnnotations as unstable_collidersFromPhysicsAnnotations, resolvePhysicsBodyAnnotations as unstable_resolvePhysicsBodyAnnotations, summarizePhysicsAnnotations as unstable_summarizePhysicsAnnotations } from "./components/stream/physics/PhysicsAnnotations";
28
+ export { BuiltInPhysicsEngineAdapter as unstable_BuiltInPhysicsEngineAdapter, createDefaultPhysicsEngineAdapter as unstable_createDefaultPhysicsEngineAdapter } from "./components/stream/physics/PhysicsEngineAdapter";
29
+ export { PhysicsPipelineStore as unstable_PhysicsPipelineStore, collidersFromPlotBounds as unstable_collidersFromPlotBounds, collidersFromXScaleBins as unstable_collidersFromXScaleBins, schedulePhysicsSpawns as unstable_schedulePhysicsSpawns } from "./components/stream/physics/PhysicsPipelineStore";
30
+ export { evaluatePhysicsBodyBudget as unstable_evaluatePhysicsBodyBudget } from "./components/stream/physics/PhysicsBodyBudget";
31
+ export { PhysicsSedimentAccumulator as unstable_PhysicsSedimentAccumulator, sedimentHeightfield as unstable_sedimentHeightfield } from "./components/stream/physics/PhysicsSediment";
32
+ export { StreamPhysicsFrame as unstable_StreamPhysicsFrame } from "./components/stream/physics/StreamPhysicsFrame";
33
+ export { PhysicsCustomChart as unstable_PhysicsCustomChart } from "./components/charts/physics/PhysicsCustomChart";
34
+ export { buildPhysicsNavigationTree as unstable_buildPhysicsNavigationTree, buildPhysicsSettledProjection as unstable_buildPhysicsSettledProjection, physicsObservationAnnouncement as unstable_physicsObservationAnnouncement } from "./components/stream/physics/PhysicsAccessibility";
35
+ export type { PhysicsBoundsColliderOptions as UnstablePhysicsBoundsColliderOptions, PhysicsObservationEvent as UnstablePhysicsObservationEvent, PhysicsObservationEventType as UnstablePhysicsObservationEventType, PhysicsObservationRecord as UnstablePhysicsObservationRecord, PhysicsPipelineConfig as UnstablePhysicsPipelineConfig, PhysicsPipelineControlSurface as UnstablePhysicsPipelineControlSurface, PhysicsPipelineObservationOptions as UnstablePhysicsPipelineObservationOptions, PhysicsPipelineQueuedSpawnSnapshot as UnstablePhysicsPipelineQueuedSpawnSnapshot, PhysicsPipelineSnapshot as UnstablePhysicsPipelineSnapshot, PhysicsPipelineTickResult as UnstablePhysicsPipelineTickResult, PhysicsPlotBounds as UnstablePhysicsPlotBounds, PhysicsQueuedSpawn as UnstablePhysicsQueuedSpawn, PhysicsSensorObservationConfig as UnstablePhysicsSensorObservationConfig, PhysicsSimulationState as UnstablePhysicsSimulationState, PhysicsSpawnPacing as UnstablePhysicsSpawnPacing, PhysicsSpawnPacingOptions as UnstablePhysicsSpawnPacingOptions, PhysicsSpawnSpringSpec as UnstablePhysicsSpawnSpringSpec, PhysicsSpawnTimeAccessor as UnstablePhysicsSpawnTimeAccessor, PhysicsXBinColliderOptions as UnstablePhysicsXBinColliderOptions } from "./components/stream/physics/PhysicsPipelineStore";
36
+ export type { PhysicsBodyBudgetAction as UnstablePhysicsBodyBudgetAction, PhysicsBodyBudgetDecision as UnstablePhysicsBodyBudgetDecision, PhysicsBodyBudgetInput as UnstablePhysicsBodyBudgetInput, PhysicsBodyBudgetOptions as UnstablePhysicsBodyBudgetOptions, PhysicsBodyBudgetState as UnstablePhysicsBodyBudgetState } from "./components/stream/physics/PhysicsBodyBudget";
37
+ export type { PhysicsSedimentAccessor as UnstablePhysicsSedimentAccessor, PhysicsSedimentBinSnapshot as UnstablePhysicsSedimentBinSnapshot, PhysicsSedimentColumn as UnstablePhysicsSedimentColumn, PhysicsSedimentConfig as UnstablePhysicsSedimentConfig, PhysicsSedimentHeightfieldOptions as UnstablePhysicsSedimentHeightfieldOptions, PhysicsSedimentTotals as UnstablePhysicsSedimentTotals, PhysicsSedimentValueAccessor as UnstablePhysicsSedimentValueAccessor, RunningStatsSnapshot as UnstableRunningStatsSnapshot } from "./components/stream/physics/PhysicsSediment";
38
+ export type { PhysicsEngineAdapter as UnstablePhysicsEngineAdapter, PhysicsEngineAdapterFactory as UnstablePhysicsEngineAdapterFactory, PhysicsEngineAdapterInput as UnstablePhysicsEngineAdapterInput, PhysicsEngineCapabilities as UnstablePhysicsEngineCapabilities, PhysicsEngineDeterminism as UnstablePhysicsEngineDeterminism } from "./components/stream/physics/PhysicsEngineAdapter";
39
+ export type { PhysicsColliderShape as UnstablePhysicsColliderShape, PhysicsColliderSpec as UnstablePhysicsColliderSpec } from "./components/stream/physics/PhysicsKernel";
40
+ export type { PhysicsCanvasTheme as UnstablePhysicsCanvasTheme } from "./components/stream/physics/PhysicsCanvasTheme";
41
+ export type { PhysicsBodySelection as UnstablePhysicsBodySelection, PhysicsBodyStyleContext as UnstablePhysicsBodyStyleContext, StreamPhysicsExecutionState as UnstableStreamPhysicsExecutionState, StreamPhysicsFrameHandle as UnstableStreamPhysicsFrameHandle, StreamPhysicsFrameProps as UnstableStreamPhysicsFrameProps } from "./components/stream/physics/StreamPhysicsFrame";
42
+ export type { PhysicsCustomChartProps as UnstablePhysicsCustomChartProps, PhysicsCustomLayout as UnstablePhysicsCustomLayout, PhysicsCustomLayoutContext as UnstablePhysicsCustomLayoutContext, PhysicsCustomLayoutResult as UnstablePhysicsCustomLayoutResult, PhysicsCustomSpawnDatumResult as UnstablePhysicsCustomSpawnDatumResult } from "./components/charts/physics/PhysicsCustomChart";
43
+ export type { PhysicsExecution as UnstablePhysicsExecution } from "./components/stream/physics/PhysicsWorkerProtocol";
44
+ export type { PhysicsAnnotationAxis as UnstablePhysicsAnnotationAxis, PhysicsAnnotationColliderOptions as UnstablePhysicsAnnotationColliderOptions, PhysicsAnnotationRole as UnstablePhysicsAnnotationRole, PhysicsAnnotationSummary as UnstablePhysicsAnnotationSummary, PhysicsBodyAnnotation as UnstablePhysicsBodyAnnotation, PhysicsResolvedBodyAnnotation as UnstablePhysicsResolvedBodyAnnotation, PhysicsStaticAnnotation as UnstablePhysicsStaticAnnotation } from "./components/stream/physics/PhysicsAnnotations";
45
+ export type { PhysicsEvidenceBinCount as UnstablePhysicsEvidenceBinCount, PhysicsSettledEvidence as UnstablePhysicsSettledEvidence, PhysicsSettledEvidenceOptions as UnstablePhysicsSettledEvidenceOptions } from "./components/stream/physics/PhysicsEvidence";
46
+ export type { PhysicsSettledScene as UnstablePhysicsSettledScene, PhysicsSettledSceneOptions as UnstablePhysicsSettledSceneOptions } from "./components/stream/physics/PhysicsSettledScene";
47
+ export type { PhysicsSettledSVGOptions as UnstablePhysicsSettledSVGOptions, PhysicsSettledSVGRender as UnstablePhysicsSettledSVGRender } from "./components/stream/physics/PhysicsSettledSVG";
48
+ export type { PhysicsNavigationTreeOptions as UnstablePhysicsNavigationTreeOptions, PhysicsObservationAnnouncementOptions as UnstablePhysicsObservationAnnouncementOptions, PhysicsProjectionBodySummary as UnstablePhysicsProjectionBodySummary, PhysicsProjectionContainerSpec as UnstablePhysicsProjectionContainerSpec, PhysicsSettledProjectionOptions as UnstablePhysicsSettledProjectionOptions, PhysicsSettledProjectionRow as UnstablePhysicsSettledProjectionRow } from "./components/stream/physics/PhysicsAccessibility";
49
+ export type { BuiltInIntentId as UnstableBuiltInIntentId, PortableIntentId as UnstablePortableIntentId, PortableChartRubric as UnstablePortableChartRubric, PortableChartVariant as UnstablePortableChartVariant, PortableMobileInteractionCapability as UnstablePortableMobileInteractionCapability, PortableMobileLabelCapability as UnstablePortableMobileLabelCapability, PortableMobileCustomCapability as UnstablePortableMobileCustomCapability, PortableMobileCapability as UnstablePortableMobileCapability, PortableChartCapability as UnstablePortableChartCapability, PortableReceptionModality as UnstablePortableReceptionModality, PortableAudienceTarget as UnstablePortableAudienceTarget, PortableAudienceProfile as UnstablePortableAudienceProfile, PortableAnnotationProvenance as UnstablePortableAnnotationProvenance, PortableAnnotationLifecycle as UnstablePortableAnnotationLifecycle, PortableAnnotated as UnstablePortableAnnotated, ValidationResult as UnstablePortabilityValidationResult, IDIDVegaLiteMeta as UnstableIDIDVegaLiteMeta } from "./components/data/portability";