semiotic 3.0.0-beta.2 → 3.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +93 -753
- package/README.md +92 -7
- package/ai/dist/componentRegistry.js +26 -0
- package/ai/dist/{ai/mcp-server.js → mcp-server.js} +1 -1
- package/ai/dist/{ai/renderHOCToSVG.js → renderHOCToSVG.js} +2 -2
- package/dist/ChartContainer.d.ts +60 -0
- package/dist/DetailsPanel.d.ts +37 -0
- package/dist/LinkedCharts.d.ts +2 -0
- package/dist/Tooltip/Tooltip.d.ts +2 -2
- package/dist/charts/index.d.ts +1 -1
- package/dist/charts/ordinal/BarChart.d.ts +1 -0
- package/dist/charts/ordinal/BoxPlot.d.ts +1 -0
- package/dist/charts/ordinal/DonutChart.d.ts +1 -0
- package/dist/charts/ordinal/DotPlot.d.ts +1 -0
- package/dist/charts/ordinal/GroupedBarChart.d.ts +1 -0
- package/dist/charts/ordinal/Histogram.d.ts +1 -0
- package/dist/charts/ordinal/PieChart.d.ts +1 -0
- package/dist/charts/ordinal/RidgelinePlot.d.ts +1 -0
- package/dist/charts/ordinal/StackedBarChart.d.ts +1 -0
- package/dist/charts/ordinal/SwarmPlot.d.ts +1 -0
- package/dist/charts/ordinal/ViolinPlot.d.ts +1 -0
- package/dist/charts/realtime/RealtimeHeatmap.d.ts +11 -0
- package/dist/charts/realtime/RealtimeHistogram.d.ts +15 -1
- package/dist/charts/realtime/RealtimeLineChart.d.ts +6 -0
- package/dist/charts/realtime/RealtimeSwarmChart.d.ts +6 -0
- package/dist/charts/realtime/RealtimeWaterfallChart.d.ts +6 -0
- package/dist/charts/shared/annotationRules.d.ts +3 -0
- package/dist/charts/shared/colorUtils.d.ts +17 -11
- package/dist/charts/shared/hooks.d.ts +96 -1
- package/dist/charts/shared/loess.d.ts +13 -0
- package/dist/charts/shared/networkUtils.d.ts +31 -0
- package/dist/charts/shared/tooltipUtils.d.ts +16 -0
- package/dist/charts/shared/types.d.ts +17 -2
- package/dist/charts/shared/validateChartData.d.ts +2 -3
- package/dist/charts/shared/validateProps.d.ts +18 -0
- package/dist/charts/xy/AreaChart.d.ts +4 -0
- package/dist/charts/xy/BubbleChart.d.ts +6 -0
- package/dist/charts/xy/Heatmap.d.ts +4 -0
- package/dist/charts/xy/LineChart.d.ts +6 -0
- package/dist/charts/xy/Scatterplot.d.ts +4 -0
- package/dist/charts/xy/StackedAreaChart.d.ts +4 -0
- package/dist/data/fromVegaLite.d.ts +48 -0
- package/dist/export/chartConfig.d.ts +29 -0
- package/dist/export/selectionSerializer.d.ts +20 -0
- package/dist/geometry/sankeyLinks.d.ts +1 -1
- package/dist/network.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/realtime/types.d.ts +20 -6
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +14 -0
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-data.d.ts +2 -0
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-network.d.ts +9 -19
- package/dist/semiotic-ordinal.d.ts +12 -14
- package/dist/semiotic-xy.d.ts +12 -18
- package/dist/semiotic.d.ts +16 -13
- package/dist/semiotic.min.js +1 -1
- package/dist/semiotic.module.min.js +1 -1
- package/dist/server.min.js +1 -1
- package/dist/server.module.min.js +1 -1
- package/dist/store/ObservationStore.d.ts +61 -0
- package/dist/store/SelectionStore.d.ts +9 -1
- package/dist/store/ThemeStore.d.ts +6 -1
- package/dist/store/TooltipStore.d.ts +3 -1
- package/dist/store/createStore.d.ts +4 -1
- package/dist/store/useObservation.d.ts +18 -0
- package/dist/stream/MarginalGraphics.d.ts +1 -1
- package/dist/stream/NetworkPipelineStore.d.ts +44 -0
- package/dist/stream/OrdinalCanvasHitTester.d.ts +1 -0
- package/dist/stream/OrdinalSVGOverlay.d.ts +6 -2
- package/dist/stream/ParticlePool.d.ts +2 -1
- package/dist/stream/PipelineStore.d.ts +11 -0
- package/dist/stream/SVGOverlay.d.ts +21 -2
- package/dist/stream/SceneGraph.d.ts +1 -1
- package/dist/stream/networkTypes.d.ts +58 -1
- package/dist/stream/ordinalTypes.d.ts +13 -0
- package/dist/stream/types.d.ts +14 -0
- package/dist/types/annotationTypes.d.ts +10 -0
- package/dist/types/networkTypes.d.ts +1 -2
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +30 -42
- package/ai/dist/ai/componentRegistry.js +0 -45
- package/ai/dist/src/components/Annotation.js +0 -358
- package/ai/dist/src/components/AnnotationLayer/AnnotationLayer.js +0 -369
- package/ai/dist/src/components/Axis/Axis.js +0 -374
- package/ai/dist/src/components/Axis/axisTitle.js +0 -14
- package/ai/dist/src/components/Axis/index.js +0 -7
- package/ai/dist/src/components/Axis/summaryGraphic.js +0 -37
- package/ai/dist/src/components/Brush.js +0 -84
- package/ai/dist/src/components/ChartErrorBoundary.js +0 -91
- package/ai/dist/src/components/DividedLine.js +0 -65
- package/ai/dist/src/components/Legend.js +0 -140
- package/ai/dist/src/components/LinkedCharts.js +0 -95
- package/ai/dist/src/components/ThemeProvider.js +0 -79
- package/ai/dist/src/components/Tooltip/Tooltip.js +0 -309
- package/ai/dist/src/components/TooltipPositioner/index.js +0 -132
- package/ai/dist/src/components/annotationLayerBehavior/annotationHandling.js +0 -73
- package/ai/dist/src/components/annotationLayerBehavior/d3labeler.js +0 -254
- package/ai/dist/src/components/annotationRules/baseRules.js +0 -150
- package/ai/dist/src/components/annotationRules/networkframeRules.js +0 -196
- package/ai/dist/src/components/annotationRules/xyframeRules.js +0 -297
- package/ai/dist/src/components/batchWork.js +0 -35
- package/ai/dist/src/components/charts/index.js +0 -109
- package/ai/dist/src/components/charts/network/ChordDiagram.js +0 -142
- package/ai/dist/src/components/charts/network/CirclePack.js +0 -108
- package/ai/dist/src/components/charts/network/ForceDirectedGraph.js +0 -121
- package/ai/dist/src/components/charts/network/SankeyDiagram.js +0 -155
- package/ai/dist/src/components/charts/network/TreeDiagram.js +0 -110
- package/ai/dist/src/components/charts/network/Treemap.js +0 -106
- package/ai/dist/src/components/charts/ordinal/BarChart.js +0 -156
- package/ai/dist/src/components/charts/ordinal/BoxPlot.js +0 -139
- package/ai/dist/src/components/charts/ordinal/DonutChart.js +0 -130
- package/ai/dist/src/components/charts/ordinal/DotPlot.js +0 -126
- package/ai/dist/src/components/charts/ordinal/GroupedBarChart.js +0 -129
- package/ai/dist/src/components/charts/ordinal/Histogram.js +0 -132
- package/ai/dist/src/components/charts/ordinal/PieChart.js +0 -128
- package/ai/dist/src/components/charts/ordinal/RidgelinePlot.js +0 -130
- package/ai/dist/src/components/charts/ordinal/StackedBarChart.js +0 -130
- package/ai/dist/src/components/charts/ordinal/SwarmPlot.js +0 -147
- package/ai/dist/src/components/charts/ordinal/ViolinPlot.js +0 -138
- package/ai/dist/src/components/charts/realtime/RealtimeHeatmap.js +0 -79
- package/ai/dist/src/components/charts/realtime/RealtimeHistogram.js +0 -114
- package/ai/dist/src/components/charts/realtime/RealtimeLineChart.js +0 -93
- package/ai/dist/src/components/charts/realtime/RealtimeSwarmChart.js +0 -105
- package/ai/dist/src/components/charts/realtime/RealtimeWaterfallChart.js +0 -106
- package/ai/dist/src/components/charts/shared/ChartError.js +0 -72
- package/ai/dist/src/components/charts/shared/colorUtils.js +0 -138
- package/ai/dist/src/components/charts/shared/formatUtils.js +0 -213
- package/ai/dist/src/components/charts/shared/hooks.js +0 -49
- package/ai/dist/src/components/charts/shared/legendUtils.js +0 -57
- package/ai/dist/src/components/charts/shared/selectionUtils.js +0 -67
- package/ai/dist/src/components/charts/shared/tooltipUtils.js +0 -79
- package/ai/dist/src/components/charts/shared/types.js +0 -2
- package/ai/dist/src/components/charts/shared/validateChartData.js +0 -82
- package/ai/dist/src/components/charts/shared/validateProps.js +0 -736
- package/ai/dist/src/components/charts/xy/AreaChart.js +0 -230
- package/ai/dist/src/components/charts/xy/BubbleChart.js +0 -251
- package/ai/dist/src/components/charts/xy/Heatmap.js +0 -235
- package/ai/dist/src/components/charts/xy/LineChart.js +0 -307
- package/ai/dist/src/components/charts/xy/MinimapChart.js +0 -298
- package/ai/dist/src/components/charts/xy/Scatterplot.js +0 -172
- package/ai/dist/src/components/charts/xy/ScatterplotMatrix.js +0 -426
- package/ai/dist/src/components/charts/xy/StackedAreaChart.js +0 -231
- package/ai/dist/src/components/constants/coordinateNames.js +0 -11
- package/ai/dist/src/components/constants/frame_props.js +0 -251
- package/ai/dist/src/components/data/dataFunctions.js +0 -487
- package/ai/dist/src/components/data/multiAccessorUtils.js +0 -14
- package/ai/dist/src/components/data/transforms.js +0 -143
- package/ai/dist/src/components/data/unflowedFunctions.js +0 -5
- package/ai/dist/src/components/export/exportChart.js +0 -121
- package/ai/dist/src/components/generic_utilities/functions.js +0 -5
- package/ai/dist/src/components/geometry/areaDrawing.js +0 -312
- package/ai/dist/src/components/geometry/contourLayout.js +0 -73
- package/ai/dist/src/components/geometry/hexbinLayout.js +0 -163
- package/ai/dist/src/components/geometry/lineDrawing.js +0 -356
- package/ai/dist/src/components/geometry/sankeyLinks.js +0 -331
- package/ai/dist/src/components/geometry/summaryLayouts.js +0 -136
- package/ai/dist/src/components/index.js +0 -18
- package/ai/dist/src/components/processing/InteractionItems.js +0 -223
- package/ai/dist/src/components/processing/hierarchyUtils.js +0 -104
- package/ai/dist/src/components/processing/layouts/chordLayout.js +0 -58
- package/ai/dist/src/components/processing/layouts/forceLayout.js +0 -142
- package/ai/dist/src/components/processing/layouts/hierarchyLayout.js +0 -31
- package/ai/dist/src/components/processing/layouts/index.js +0 -32
- package/ai/dist/src/components/processing/layouts/sankeyLayout.js +0 -96
- package/ai/dist/src/components/processing/layouts/simpleLayouts.js +0 -34
- package/ai/dist/src/components/processing/layouts/types.js +0 -2
- package/ai/dist/src/components/processing/networkDefaults.js +0 -39
- package/ai/dist/src/components/realtime/BinAccumulator.js +0 -36
- package/ai/dist/src/components/realtime/IncrementalExtent.js +0 -55
- package/ai/dist/src/components/realtime/RingBuffer.js +0 -104
- package/ai/dist/src/components/realtime/renderers/barRenderer.js +0 -133
- package/ai/dist/src/components/realtime/renderers/candlestickRenderer.js +0 -7
- package/ai/dist/src/components/realtime/renderers/lineRenderer.js +0 -164
- package/ai/dist/src/components/realtime/renderers/swarmRenderer.js +0 -91
- package/ai/dist/src/components/realtime/renderers/types.js +0 -2
- package/ai/dist/src/components/realtime/renderers/waterfallRenderer.js +0 -163
- package/ai/dist/src/components/realtime/types.js +0 -2
- package/ai/dist/src/components/semiotic-ai.js +0 -89
- package/ai/dist/src/components/semiotic-data.js +0 -12
- package/ai/dist/src/components/semiotic-network.js +0 -38
- package/ai/dist/src/components/semiotic-ordinal.js +0 -28
- package/ai/dist/src/components/semiotic-realtime.js +0 -30
- package/ai/dist/src/components/semiotic-server.js +0 -8
- package/ai/dist/src/components/semiotic-xy.js +0 -35
- package/ai/dist/src/components/semiotic.js +0 -109
- package/ai/dist/src/components/server/renderToStaticSVG.js +0 -594
- package/ai/dist/src/components/store/SelectionStore.js +0 -91
- package/ai/dist/src/components/store/ThemeStore.js +0 -78
- package/ai/dist/src/components/store/TooltipStore.js +0 -13
- package/ai/dist/src/components/store/createStore.js +0 -81
- package/ai/dist/src/components/store/useSelection.js +0 -133
- package/ai/dist/src/components/stream/CanvasHitTester.js +0 -164
- package/ai/dist/src/components/stream/DataSourceAdapter.js +0 -99
- package/ai/dist/src/components/stream/MarginalGraphics.js +0 -266
- package/ai/dist/src/components/stream/NetworkCanvasHitTester.js +0 -228
- package/ai/dist/src/components/stream/NetworkPipelineStore.js +0 -498
- package/ai/dist/src/components/stream/NetworkSVGOverlay.js +0 -70
- package/ai/dist/src/components/stream/NetworkSceneGraph.js +0 -38
- package/ai/dist/src/components/stream/OrdinalCanvasHitTester.js +0 -146
- package/ai/dist/src/components/stream/OrdinalPipelineStore.js +0 -786
- package/ai/dist/src/components/stream/OrdinalSVGOverlay.js +0 -130
- package/ai/dist/src/components/stream/ParticlePool.js +0 -174
- package/ai/dist/src/components/stream/PipelineStore.js +0 -1243
- package/ai/dist/src/components/stream/SVGOverlay.js +0 -129
- package/ai/dist/src/components/stream/SceneGraph.js +0 -132
- package/ai/dist/src/components/stream/StreamNetworkFrame.js +0 -561
- package/ai/dist/src/components/stream/StreamOrdinalFrame.js +0 -492
- package/ai/dist/src/components/stream/StreamXYFrame.js +0 -590
- package/ai/dist/src/components/stream/accessorUtils.js +0 -20
- package/ai/dist/src/components/stream/index.js +0 -32
- package/ai/dist/src/components/stream/layouts/chordLayoutPlugin.js +0 -352
- package/ai/dist/src/components/stream/layouts/forceLayoutPlugin.js +0 -230
- package/ai/dist/src/components/stream/layouts/hierarchyLayoutPlugin.js +0 -568
- package/ai/dist/src/components/stream/layouts/index.js +0 -28
- package/ai/dist/src/components/stream/layouts/sankeyLayoutPlugin.js +0 -245
- package/ai/dist/src/components/stream/networkTypes.js +0 -17
- package/ai/dist/src/components/stream/ordinalSceneBuilders/barScene.js +0 -126
- package/ai/dist/src/components/stream/ordinalSceneBuilders/connectorScene.js +0 -62
- package/ai/dist/src/components/stream/ordinalSceneBuilders/pieScene.js +0 -33
- package/ai/dist/src/components/stream/ordinalSceneBuilders/pointScene.js +0 -63
- package/ai/dist/src/components/stream/ordinalSceneBuilders/statisticalScene.js +0 -278
- package/ai/dist/src/components/stream/ordinalSceneBuilders/timelineScene.js +0 -30
- package/ai/dist/src/components/stream/ordinalSceneBuilders/types.js +0 -2
- package/ai/dist/src/components/stream/ordinalTypes.js +0 -2
- package/ai/dist/src/components/stream/renderers/areaCanvasRenderer.js +0 -48
- package/ai/dist/src/components/stream/renderers/barCanvasRenderer.js +0 -70
- package/ai/dist/src/components/stream/renderers/boxplotCanvasRenderer.js +0 -75
- package/ai/dist/src/components/stream/renderers/candlestickCanvasRenderer.js +0 -28
- package/ai/dist/src/components/stream/renderers/connectorCanvasRenderer.js +0 -47
- package/ai/dist/src/components/stream/renderers/heatmapCanvasRenderer.js +0 -31
- package/ai/dist/src/components/stream/renderers/lineCanvasRenderer.js +0 -140
- package/ai/dist/src/components/stream/renderers/networkArcRenderer.js +0 -38
- package/ai/dist/src/components/stream/renderers/networkCircleRenderer.js +0 -37
- package/ai/dist/src/components/stream/renderers/networkEdgeRenderer.js +0 -102
- package/ai/dist/src/components/stream/renderers/networkParticleRenderer.js +0 -63
- package/ai/dist/src/components/stream/renderers/networkRectRenderer.js +0 -35
- package/ai/dist/src/components/stream/renderers/pointCanvasRenderer.js +0 -38
- package/ai/dist/src/components/stream/renderers/swarmCanvasRenderer.js +0 -10
- package/ai/dist/src/components/stream/renderers/types.js +0 -2
- package/ai/dist/src/components/stream/renderers/violinCanvasRenderer.js +0 -47
- package/ai/dist/src/components/stream/renderers/waterfallCanvasRenderer.js +0 -38
- package/ai/dist/src/components/stream/renderers/wedgeCanvasRenderer.js +0 -33
- package/ai/dist/src/components/stream/types.js +0 -2
- package/ai/dist/src/components/types/annotationTypes.js +0 -2
- package/ai/dist/src/components/types/canvasTypes.js +0 -2
- package/ai/dist/src/components/types/generalTypes.js +0 -2
- package/ai/dist/src/components/types/interactionTypes.js +0 -2
- package/ai/dist/src/components/types/legendTypes.js +0 -2
- package/ai/dist/src/components/types/networkTypes.js +0 -2
- package/ai/dist/src/components/types/ordinalTypes.js +0 -2
- package/ai/dist/src/components/types/xyTypes.js +0 -2
- package/ai/dist/src/components/useBoundingRect.js +0 -24
- package/ai/dist/src/components/visualizationLayerBehavior/axis.js +0 -301
- package/ai/dist/src/components/visualizationLayerBehavior/general.js +0 -435
- package/ai/dist/src/setupTests.js +0 -4
- package/dist/AnnotationLayer/AnnotationLayer.d.ts +0 -25
- package/dist/Axis/Axis.d.ts +0 -7
- package/dist/Axis/axisTitle.d.ts +0 -10
- package/dist/Axis/index.d.ts +0 -2
- package/dist/Axis/summaryGraphic.d.ts +0 -17
- package/dist/Brush.d.ts +0 -12
- package/dist/DividedLine.d.ts +0 -16
- package/dist/TooltipPositioner/index.d.ts +0 -7
- package/dist/annotationLayerBehavior/annotationHandling.d.ts +0 -19
- package/dist/annotationLayerBehavior/d3labeler.d.ts +0 -9
- package/dist/annotationRules/baseRules.d.ts +0 -25
- package/dist/annotationRules/networkframeRules.d.ts +0 -48
- package/dist/annotationRules/xyframeRules.d.ts +0 -117
- package/dist/batchWork.d.ts +0 -6
- package/dist/constants/coordinateNames.d.ts +0 -8
- package/dist/constants/frame_props.d.ts +0 -13
- package/dist/data/dataFunctions.d.ts +0 -45
- package/dist/data/multiAccessorUtils.d.ts +0 -1
- package/dist/data/unflowedFunctions.d.ts +0 -1
- package/dist/generic_utilities/functions.d.ts +0 -1
- package/dist/geometry/areaDrawing.d.ts +0 -21
- package/dist/geometry/contourLayout.d.ts +0 -6
- package/dist/geometry/hexbinLayout.d.ts +0 -7
- package/dist/geometry/lineDrawing.d.ts +0 -71
- package/dist/geometry/summaryLayouts.d.ts +0 -45
- package/dist/index.d.ts +0 -1
- package/dist/network.js +0 -7495
- package/dist/network.js.map +0 -1
- package/dist/network.module.js +0 -7458
- package/dist/network.module.js.map +0 -1
- package/dist/ordinal.js +0 -6497
- package/dist/ordinal.js.map +0 -1
- package/dist/ordinal.module.js +0 -6465
- package/dist/ordinal.module.js.map +0 -1
- package/dist/processing/InteractionItems.d.ts +0 -13
- package/dist/processing/hierarchyUtils.d.ts +0 -16
- package/dist/processing/layouts/chordLayout.d.ts +0 -2
- package/dist/processing/layouts/forceLayout.d.ts +0 -3
- package/dist/processing/layouts/hierarchyLayout.d.ts +0 -10
- package/dist/processing/layouts/index.d.ts +0 -8
- package/dist/processing/layouts/sankeyLayout.d.ts +0 -8
- package/dist/processing/layouts/simpleLayouts.d.ts +0 -7
- package/dist/processing/layouts/types.d.ts +0 -17
- package/dist/processing/networkDefaults.d.ts +0 -36
- package/dist/realtime/renderers/barRenderer.d.ts +0 -2
- package/dist/realtime/renderers/candlestickRenderer.d.ts +0 -2
- package/dist/realtime/renderers/lineRenderer.d.ts +0 -2
- package/dist/realtime/renderers/swarmRenderer.d.ts +0 -2
- package/dist/realtime.js +0 -7072
- package/dist/realtime.js.map +0 -1
- package/dist/realtime.module.js +0 -7043
- package/dist/realtime.module.js.map +0 -1
- package/dist/semiotic-ai.js +0 -13323
- package/dist/semiotic-ai.js.map +0 -1
- package/dist/semiotic-ai.module.js +0 -13264
- package/dist/semiotic-ai.module.js.map +0 -1
- package/dist/semiotic-data.js +0 -141
- package/dist/semiotic-data.js.map +0 -1
- package/dist/semiotic-data.module.js +0 -136
- package/dist/semiotic-data.module.js.map +0 -1
- package/dist/semiotic.js +0 -16351
- package/dist/semiotic.js.map +0 -1
- package/dist/semiotic.module.js +0 -16265
- package/dist/semiotic.module.js.map +0 -1
- package/dist/server.js +0 -5191
- package/dist/server.js.map +0 -1
- package/dist/server.module.js +0 -5166
- package/dist/server.module.js.map +0 -1
- package/dist/stream/NetworkSceneGraph.d.ts +0 -14
- package/dist/stream/index.d.ts +0 -16
- package/dist/types/canvasTypes.d.ts +0 -9
- package/dist/types/xyTypes.d.ts +0 -24
- package/dist/useBoundingRect.d.ts +0 -2
- package/dist/visualizationLayerBehavior/axis.d.ts +0 -36
- package/dist/visualizationLayerBehavior/general.d.ts +0 -80
- package/dist/xy.js +0 -6993
- package/dist/xy.js.map +0 -1
- package/dist/xy.module.js +0 -6957
- package/dist/xy.module.js.map +0 -1
package/dist/semiotic-data.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function t(t){return Math.round(1e3*
|
|
1
|
+
"use strict";function e(e,l){const{groupBy:t,value:i,agg:o="sum"}=l,a=new Map;for(const l of e){const e=l[t]+"";a.has(e)||a.set(e,[]),a.get(e).push(Number(l[i]))}const n=[];for(const[e,l]of a){let i;switch(o){case"count":i=l.length;break;case"mean":i=l.reduce((e,l)=>e+l,0)/l.length;break;case"min":i=Math.min(...l);break;case"max":i=Math.max(...l);break;default:i=l.reduce((e,l)=>e+l,0)}n.push({[t]:e,value:i})}return n}function l(e){return Math.round(1e3*e)/1e3+""}function t(e){return"nominal"===e||"ordinal"===e}function i(e){return"quantitative"===e||"temporal"===e}"function"==typeof SuppressedError&&SuppressedError;const o={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"},a={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"},n={sum:"sum",mean:"mean",average:"mean",count:"count",min:"min",max:"max",median:"mean"};function r(e,l,t,i,o){var a,n;(null==e?void 0:e.field)&&(t.xAccessor=i?"value":e.field),(null==l?void 0:l.field)&&(t.yAccessor=o?"value":l.field),(null===(a=null==e?void 0:e.axis)||void 0===a?void 0:a.title)&&(t.xLabel=e.axis.title),(null===(n=null==l?void 0:l.axis)||void 0===n?void 0:n.title)&&(t.yLabel=l.axis.title)}function s(e,l,t){const i={component:e,props:l,version:"1",createdAt:(new Date).toISOString()};return t.length>0&&(i.warnings=t),i}exports.bin=function(e,t){const{field:i,bins:o=10}=t,a=e.map(e=>Number(e[i])).filter(e=>!isNaN(e));if(0===a.length)return[];const n=t.domain?t.domain[0]:Math.min(...a),r=t.domain?t.domain[1]:Math.max(...a);if(n===r)return[{category:`${n}-${r}`,value:a.length}];const s=(r-n)/o,d=Array(o).fill(0);for(const e of a){let l=Math.floor((e-n)/s);l===o&&(l=o-1),l>=0&&o>l&&d[l]++}return d.map((e,t)=>{const i=n+t*s,o=i+s;return{category:`${l(i)}-${l(o)}`,value:e}})},exports.fromVegaLite=function(l){var d,u,c,v,f,p,g,y,m,b,x,h,A,k;const L=[],{type:O,markProps:w}=function(e){if("string"==typeof e)return{type:e,markProps:{}};const{type:l}=e;return{type:l,markProps:function(e,l){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>l.indexOf(i)&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);i.length>o;o++)0>l.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t}(e,["type"])}}(l.mark),B=l.encoding||{},S=B.x,P=B.y,j=B.color,M=B.size,C=B.theta,R=B.opacity;let z;(null===(d=l.data)||void 0===d?void 0:d.values)?z=l.data.values:(null===(u=l.data)||void 0===u?void 0:u.url)&&L.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),l.transform&&l.transform.length>0&&L.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite().");const $={};l.width&&($.width=l.width),l.height&&($.height=l.height);const D=function(e){if(e)return"string"==typeof e?e:e.text}(l.title);if(D&&($.title=D),(null==j?void 0:j.field)&&($.colorBy=j.field,null===(c=j.scale)||void 0===c?void 0:c.scheme)){const e=o[j.scale.scheme];e&&($.colorScheme=e)}void 0!==(null==R?void 0:R.value)&&($.pointOpacity=R.value);const N=null==S?void 0:S.aggregate,E=null==P?void 0:P.aggregate;if(z&&(N||E)){const l=E?P:S,t=E?S:P,i=n[l.aggregate];if(i&&(null==t?void 0:t.field)&&l.field)z=e(z,{groupBy:t.field,value:l.field,agg:i});else if(("count"===i||"count"===l.aggregate)&&(null==t?void 0:t.field)&&z){const e=new Map;for(const l of z){const i=l[t.field]+"";e.set(i,(e.get(i)||0)+1)}z=Array.from(e,([e,l])=>({[t.field]:e,value:l}))}}if((null==S?void 0:S.bin)||(null==P?void 0:P.bin)){const e="Histogram";z&&($.data=z),(null==S?void 0:S.bin)?($.valueAccessor=S.field,(null==P?void 0:P.field)&&($.categoryAccessor=P.field),(null===(v=S.axis)||void 0===v?void 0:v.title)&&($.valueLabel=S.axis.title)):(null==P?void 0:P.bin)&&($.valueAccessor=P.field,(null==S?void 0:S.field)&&($.categoryAccessor=S.field),(null===(f=P.axis)||void 0===f?void 0:f.title)&&($.valueLabel=P.axis.title));const l="object"==typeof((null==S?void 0:S.bin)||(null==P?void 0:P.bin))?(null===(p=null==S?void 0:S.bin)||void 0===p?void 0:p.maxbins)||(null===(g=null==P?void 0:P.bin)||void 0===g?void 0:g.maxbins):void 0;return l&&($.bins=l),s(e,$,L)}let V;switch(O){case"bar":V=function(e,l,o,a,n,r,s){var d,u,c,v,f,p;let g;return(null==o?void 0:o.field)&&!1!==(null==e?void 0:e.stack)&&!1!==(null==l?void 0:l.stack)&&null!==(null==e?void 0:e.stack)&&null!==(null==l?void 0:l.stack)?(g="StackedBarChart",a.stackBy=o.field):g="BarChart",t(null==e?void 0:e.type)&&i(null==l?void 0:l.type)?(a.categoryAccessor=e.field,a.valueAccessor=s?"value":l.field,(null===(d=null==e?void 0:e.axis)||void 0===d?void 0:d.title)&&(a.categoryLabel=e.axis.title),(null===(u=null==l?void 0:l.axis)||void 0===u?void 0:u.title)&&(a.valueLabel=l.axis.title)):i(null==e?void 0:e.type)&&t(null==l?void 0:l.type)?(a.categoryAccessor=l.field,a.valueAccessor=r?"value":e.field,a.orientation="horizontal",(null===(c=null==l?void 0:l.axis)||void 0===c?void 0:c.title)&&(a.categoryLabel=l.axis.title),(null===(v=null==e?void 0:e.axis)||void 0===v?void 0:v.title)&&(a.valueLabel=e.axis.title)):((null==e?void 0:e.field)&&(a.categoryAccessor=e.field),(null==l?void 0:l.field)&&(a.valueAccessor=s?"value":l.field),(null===(f=null==e?void 0:e.axis)||void 0===f?void 0:f.title)&&(a.categoryLabel=e.axis.title),(null===(p=null==l?void 0:l.axis)||void 0===p?void 0:p.title)&&(a.valueLabel=l.axis.title)),n&&(a.data=n),g}(S,P,j,$,z,N,E);break;case"line":if(V="LineChart",r(S,P,$,N,E),(null==j?void 0:j.field)&&($.lineBy=j.field),w.interpolate){const e=a[w.interpolate];e&&($.curve=e)}!0===w.point&&($.showPoints=!0),z&&($.data=z);break;case"area":if((null==j?void 0:j.field)?(V="StackedAreaChart",$.areaBy=j.field):V="AreaChart",r(S,P,$,N,E),w.interpolate){const e=a[w.interpolate];e&&($.curve=e)}void 0!==w.opacity&&($.areaOpacity=w.opacity),z&&($.data=z);break;case"point":case"circle":case"square":(null==M?void 0:M.field)?(V="BubbleChart",$.sizeBy=M.field,(null===(y=M.scale)||void 0===y?void 0:y.range)&&($.sizeRange=M.scale.range)):V="Scatterplot",r(S,P,$,N,E),z&&($.data=z);break;case"rect":V="Heatmap",(null==S?void 0:S.field)&&($.xAccessor=S.field),(null==P?void 0:P.field)&&($.yAccessor=P.field),(null==j?void 0:j.field)&&($.valueAccessor=j.field,delete $.colorBy),(null===(m=null==S?void 0:S.axis)||void 0===m?void 0:m.title)&&($.xLabel=S.axis.title),(null===(b=null==P?void 0:P.axis)||void 0===b?void 0:b.title)&&($.yLabel=P.axis.title),z&&($.data=z);break;case"arc":w.innerRadius&&w.innerRadius>0?(V="DonutChart",$.innerRadius=w.innerRadius):V="PieChart",(null==C?void 0:C.field)?$.valueAccessor=C.field:(null==P?void 0:P.field)&&($.valueAccessor=E?"value":P.field),(null==j?void 0:j.field)&&($.categoryAccessor=j.field),(null==S?void 0:S.field)&&!(null==C?void 0:C.field)&&($.categoryAccessor=S.field),z&&($.data=z);break;case"tick":V="DotPlot",t(null==S?void 0:S.type)?($.categoryAccessor=S.field,(null==P?void 0:P.field)&&($.valueAccessor=E?"value":P.field),(null===(x=null==S?void 0:S.axis)||void 0===x?void 0:x.title)&&($.categoryLabel=S.axis.title),(null===(h=null==P?void 0:P.axis)||void 0===h?void 0:h.title)&&($.valueLabel=P.axis.title)):t(null==P?void 0:P.type)?($.categoryAccessor=P.field,(null==S?void 0:S.field)&&($.valueAccessor=N?"value":S.field),$.orientation="horizontal",(null===(A=null==P?void 0:P.axis)||void 0===A?void 0:A.title)&&($.categoryLabel=P.axis.title),(null===(k=null==S?void 0:S.axis)||void 0===k?void 0:k.title)&&($.valueLabel=S.axis.title)):((null==S?void 0:S.field)&&($.categoryAccessor=S.field),(null==P?void 0:P.field)&&($.valueAccessor=E?"value":P.field)),z&&($.data=z);break;default:L.push(`Unsupported mark type "${O}". Defaulting to Scatterplot.`),V="Scatterplot",r(S,P,$,N,E),z&&($.data=z)}return s(V,$,L)},exports.groupBy=function(e,l){const{key:t,fields:i}=l,o=new Map;for(const l of e){const e=l[t]+"";if(o.has(e)||o.set(e,[]),i){const t={};for(const e of i)e in l&&(t[e]=l[e]);o.get(e).push(t)}else o.get(e).push(Object.assign({},l))}const a=[];for(const[e,l]of o)a.push({id:e,coordinates:l});return a},exports.pivot=function(e,l){const{columns:t,nameField:i="name",valueField:o="value"}=l,a=new Set(t),n=[];for(const l of e){const e={};for(const t of Object.keys(l))a.has(t)||(e[t]=l[t]);for(const a of t)n.push(Object.assign(Object.assign({},e),{[i]:a,[o]:l[a]}))}return n},exports.rollup=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,
|
|
1
|
+
function e(e,l){const{field:t,bins:i=10}=l,a=e.map(e=>Number(e[t])).filter(e=>!isNaN(e));if(0===a.length)return[];const n=l.domain?l.domain[0]:Math.min(...a),r=l.domain?l.domain[1]:Math.max(...a);if(n===r)return[{category:`${n}-${r}`,value:a.length}];const s=(r-n)/i,d=Array(i).fill(0);for(const e of a){let l=Math.floor((e-n)/s);l===i&&(l=i-1),l>=0&&i>l&&d[l]++}return d.map((e,l)=>{const t=n+l*s,i=t+s;return{category:`${o(t)}-${o(i)}`,value:e}})}function l(e,l){const{groupBy:t,value:i,agg:o="sum"}=l,a=new Map;for(const l of e){const e=l[t]+"";a.has(e)||a.set(e,[]),a.get(e).push(Number(l[i]))}const n=[];for(const[e,l]of a){let i;switch(o){case"count":i=l.length;break;case"mean":i=l.reduce((e,l)=>e+l,0)/l.length;break;case"min":i=Math.min(...l);break;case"max":i=Math.max(...l);break;default:i=l.reduce((e,l)=>e+l,0)}n.push({[t]:e,value:i})}return n}function t(e,l){const{key:t,fields:i}=l,o=new Map;for(const l of e){const e=l[t]+"";if(o.has(e)||o.set(e,[]),i){const t={};for(const e of i)e in l&&(t[e]=l[e]);o.get(e).push(t)}else o.get(e).push(Object.assign({},l))}const a=[];for(const[e,l]of o)a.push({id:e,coordinates:l});return a}function i(e,l){const{columns:t,nameField:i="name",valueField:o="value"}=l,a=new Set(t),n=[];for(const l of e){const e={};for(const t of Object.keys(l))a.has(t)||(e[t]=l[t]);for(const a of t)n.push(Object.assign(Object.assign({},e),{[i]:a,[o]:l[a]}))}return n}function o(e){return Math.round(1e3*e)/1e3+""}function a(e){return"nominal"===e||"ordinal"===e}function n(e){return"quantitative"===e||"temporal"===e}"function"==typeof SuppressedError&&SuppressedError;const r={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"},s={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 c(e){var t,i,o,c,f,p,g,y,m,b,h,x,A,k;const L=[],{type:O,markProps:w}=function(e){if("string"==typeof e)return{type:e,markProps:{}};const{type:l}=e;return{type:l,markProps:function(e,l){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>l.indexOf(i)&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);i.length>o;o++)0>l.indexOf(i[o])&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(t[i[o]]=e[i[o]])}return t}(e,["type"])}}(e.mark),S=e.encoding||{},B=S.x,P=S.y,j=S.color,M=S.size,C=S.theta,R=S.opacity;let z;(null===(t=e.data)||void 0===t?void 0:t.values)?z=e.data.values:(null===(i=e.data)||void 0===i?void 0:i.url)&&L.push("data.url is not supported — only inline data.values can be translated. Provide data manually."),e.transform&&e.transform.length>0&&L.push("Vega-Lite transforms are not supported. Pre-transform your data before passing to fromVegaLite().");const $={};e.width&&($.width=e.width),e.height&&($.height=e.height);const D=function(e){if(e)return"string"==typeof e?e:e.text}(e.title);if(D&&($.title=D),(null==j?void 0:j.field)&&($.colorBy=j.field,null===(o=j.scale)||void 0===o?void 0:o.scheme)){const e=r[j.scale.scheme];e&&($.colorScheme=e)}void 0!==(null==R?void 0:R.value)&&($.pointOpacity=R.value);const N=null==B?void 0:B.aggregate,E=null==P?void 0:P.aggregate;if(z&&(N||E)){const e=E?P:B,t=E?B:P,i=d[e.aggregate];if(i&&(null==t?void 0:t.field)&&e.field)z=l(z,{groupBy:t.field,value:e.field,agg:i});else if(("count"===i||"count"===e.aggregate)&&(null==t?void 0:t.field)&&z){const e=new Map;for(const l of z){const i=l[t.field]+"";e.set(i,(e.get(i)||0)+1)}z=Array.from(e,([e,l])=>({[t.field]:e,value:l}))}}if((null==B?void 0:B.bin)||(null==P?void 0:P.bin)){const e="Histogram";z&&($.data=z),(null==B?void 0:B.bin)?($.valueAccessor=B.field,(null==P?void 0:P.field)&&($.categoryAccessor=P.field),(null===(c=B.axis)||void 0===c?void 0:c.title)&&($.valueLabel=B.axis.title)):(null==P?void 0:P.bin)&&($.valueAccessor=P.field,(null==B?void 0:B.field)&&($.categoryAccessor=B.field),(null===(f=P.axis)||void 0===f?void 0:f.title)&&($.valueLabel=P.axis.title));const l="object"==typeof((null==B?void 0:B.bin)||(null==P?void 0:P.bin))?(null===(p=null==B?void 0:B.bin)||void 0===p?void 0:p.maxbins)||(null===(g=null==P?void 0:P.bin)||void 0===g?void 0:g.maxbins):void 0;return l&&($.bins=l),v(e,$,L)}let q;switch(O){case"bar":q=function(e,l,t,i,o,r,s){var d,c,u,v,f,p;let g;return(null==t?void 0:t.field)&&!1!==(null==e?void 0:e.stack)&&!1!==(null==l?void 0:l.stack)&&null!==(null==e?void 0:e.stack)&&null!==(null==l?void 0:l.stack)?(g="StackedBarChart",i.stackBy=t.field):g="BarChart",a(null==e?void 0:e.type)&&n(null==l?void 0:l.type)?(i.categoryAccessor=e.field,i.valueAccessor=s?"value":l.field,(null===(d=null==e?void 0:e.axis)||void 0===d?void 0:d.title)&&(i.categoryLabel=e.axis.title),(null===(c=null==l?void 0:l.axis)||void 0===c?void 0:c.title)&&(i.valueLabel=l.axis.title)):n(null==e?void 0:e.type)&&a(null==l?void 0:l.type)?(i.categoryAccessor=l.field,i.valueAccessor=r?"value":e.field,i.orientation="horizontal",(null===(u=null==l?void 0:l.axis)||void 0===u?void 0:u.title)&&(i.categoryLabel=l.axis.title),(null===(v=null==e?void 0:e.axis)||void 0===v?void 0:v.title)&&(i.valueLabel=e.axis.title)):((null==e?void 0:e.field)&&(i.categoryAccessor=e.field),(null==l?void 0:l.field)&&(i.valueAccessor=s?"value":l.field),(null===(f=null==e?void 0:e.axis)||void 0===f?void 0:f.title)&&(i.categoryLabel=e.axis.title),(null===(p=null==l?void 0:l.axis)||void 0===p?void 0:p.title)&&(i.valueLabel=l.axis.title)),o&&(i.data=o),g}(B,P,j,$,z,N,E);break;case"line":if(q="LineChart",u(B,P,$,N,E),(null==j?void 0:j.field)&&($.lineBy=j.field),w.interpolate){const e=s[w.interpolate];e&&($.curve=e)}!0===w.point&&($.showPoints=!0),z&&($.data=z);break;case"area":if((null==j?void 0:j.field)?(q="StackedAreaChart",$.areaBy=j.field):q="AreaChart",u(B,P,$,N,E),w.interpolate){const e=s[w.interpolate];e&&($.curve=e)}void 0!==w.opacity&&($.areaOpacity=w.opacity),z&&($.data=z);break;case"point":case"circle":case"square":(null==M?void 0:M.field)?(q="BubbleChart",$.sizeBy=M.field,(null===(y=M.scale)||void 0===y?void 0:y.range)&&($.sizeRange=M.scale.range)):q="Scatterplot",u(B,P,$,N,E),z&&($.data=z);break;case"rect":q="Heatmap",(null==B?void 0:B.field)&&($.xAccessor=B.field),(null==P?void 0:P.field)&&($.yAccessor=P.field),(null==j?void 0:j.field)&&($.valueAccessor=j.field,delete $.colorBy),(null===(m=null==B?void 0:B.axis)||void 0===m?void 0:m.title)&&($.xLabel=B.axis.title),(null===(b=null==P?void 0:P.axis)||void 0===b?void 0:b.title)&&($.yLabel=P.axis.title),z&&($.data=z);break;case"arc":w.innerRadius&&w.innerRadius>0?(q="DonutChart",$.innerRadius=w.innerRadius):q="PieChart",(null==C?void 0:C.field)?$.valueAccessor=C.field:(null==P?void 0:P.field)&&($.valueAccessor=E?"value":P.field),(null==j?void 0:j.field)&&($.categoryAccessor=j.field),(null==B?void 0:B.field)&&!(null==C?void 0:C.field)&&($.categoryAccessor=B.field),z&&($.data=z);break;case"tick":q="DotPlot",a(null==B?void 0:B.type)?($.categoryAccessor=B.field,(null==P?void 0:P.field)&&($.valueAccessor=E?"value":P.field),(null===(h=null==B?void 0:B.axis)||void 0===h?void 0:h.title)&&($.categoryLabel=B.axis.title),(null===(x=null==P?void 0:P.axis)||void 0===x?void 0:x.title)&&($.valueLabel=P.axis.title)):a(null==P?void 0:P.type)?($.categoryAccessor=P.field,(null==B?void 0:B.field)&&($.valueAccessor=N?"value":B.field),$.orientation="horizontal",(null===(A=null==P?void 0:P.axis)||void 0===A?void 0:A.title)&&($.categoryLabel=P.axis.title),(null===(k=null==B?void 0:B.axis)||void 0===k?void 0:k.title)&&($.valueLabel=B.axis.title)):((null==B?void 0:B.field)&&($.categoryAccessor=B.field),(null==P?void 0:P.field)&&($.valueAccessor=E?"value":P.field)),z&&($.data=z);break;default:L.push(`Unsupported mark type "${O}". Defaulting to Scatterplot.`),q="Scatterplot",u(B,P,$,N,E),z&&($.data=z)}return v(q,$,L)}function u(e,l,t,i,o){var a,n;(null==e?void 0:e.field)&&(t.xAccessor=i?"value":e.field),(null==l?void 0:l.field)&&(t.yAccessor=o?"value":l.field),(null===(a=null==e?void 0:e.axis)||void 0===a?void 0:a.title)&&(t.xLabel=e.axis.title),(null===(n=null==l?void 0:l.axis)||void 0===n?void 0:n.title)&&(t.yLabel=l.axis.title)}function v(e,l,t){const i={component:e,props:l,version:"1",createdAt:(new Date).toISOString()};return t.length>0&&(i.warnings=t),i}export{e as bin,c as fromVegaLite,t as groupBy,i as pivot,l as rollup};
|
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Network entry point —
|
|
2
|
+
* Network entry point — force graphs, sankey, chord, trees, treemaps, circle packing.
|
|
3
3
|
* Import from "semiotic/network" instead of the full bundle to reduce bundle size.
|
|
4
4
|
*/
|
|
5
5
|
import StreamNetworkFrame from "./stream/StreamNetworkFrame";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
import { ChordDiagram } from "./charts/network/ChordDiagram";
|
|
15
|
-
import { TreeDiagram } from "./charts/network/TreeDiagram";
|
|
16
|
-
import { Treemap } from "./charts/network/Treemap";
|
|
17
|
-
import { CirclePack } from "./charts/network/CirclePack";
|
|
18
|
-
export { StreamNetworkFrame, ForceDirectedGraph, SankeyDiagram, ChordDiagram, TreeDiagram, Treemap, CirclePack, Axis, Legend, Annotation, AnnotationLayer, calculateDataExtent, nodesEdgesFromHierarchy };
|
|
19
|
-
export type { StreamNetworkFrameProps, StreamNetworkFrameHandle, NetworkChartType, NetworkSceneNode, NetworkSceneEdge, NetworkLabel } from "./stream/networkTypes";
|
|
20
|
-
export { AnnotationType, CustomHoverType, AnnotationTypes, AnnotationHandling, AnnotationProps, AxisProps, AxisGeneratingFunction } from "./types/annotationTypes";
|
|
21
|
-
export { GenericObject, MarginType, ProjectionTypes, ExtentType, ProjectedPoint, PieceLayoutType, RoughType, CanvasPostProcessTypes, ExtentSettingsType, accessorType, DataAccessor, AccessorFnType, GenericAccessor, VizLayerTypes, RenderPipelineType, GeneralFrameProps, GeneralFrameState } from "./types/generalTypes";
|
|
22
|
-
export { AdvancedInteractionSettings, Interactivity, InteractionLayerProps, VoronoiEntryType, BaseColumnType, InteractionLayerState } from "./types/interactionTypes";
|
|
23
|
-
export { SupportedLegendGlyphs, ItemType, LegendItem, LegendGroup, LegendProps } from "./types/legendTypes";
|
|
6
|
+
export { StreamNetworkFrame };
|
|
7
|
+
export { ForceDirectedGraph } from "./charts/network/ForceDirectedGraph";
|
|
8
|
+
export { SankeyDiagram } from "./charts/network/SankeyDiagram";
|
|
9
|
+
export { ChordDiagram } from "./charts/network/ChordDiagram";
|
|
10
|
+
export { TreeDiagram } from "./charts/network/TreeDiagram";
|
|
11
|
+
export { Treemap } from "./charts/network/Treemap";
|
|
12
|
+
export { CirclePack } from "./charts/network/CirclePack";
|
|
13
|
+
export type { StreamNetworkFrameProps, StreamNetworkFrameHandle, NetworkChartType, NetworkSceneNode, NetworkSceneEdge, NetworkLabel, ThresholdAlertConfig } from "./stream/networkTypes";
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Ordinal entry point —
|
|
2
|
+
* Ordinal entry point — bar charts, pie charts, distribution charts.
|
|
3
3
|
* Import from "semiotic/ordinal" instead of the full bundle to reduce bundle size.
|
|
4
4
|
*/
|
|
5
5
|
import StreamOrdinalFrame from "./stream/StreamOrdinalFrame";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export {
|
|
6
|
+
export { StreamOrdinalFrame };
|
|
7
|
+
export { BarChart } from "./charts/ordinal/BarChart";
|
|
8
|
+
export { StackedBarChart } from "./charts/ordinal/StackedBarChart";
|
|
9
|
+
export { GroupedBarChart } from "./charts/ordinal/GroupedBarChart";
|
|
10
|
+
export { SwarmPlot } from "./charts/ordinal/SwarmPlot";
|
|
11
|
+
export { BoxPlot } from "./charts/ordinal/BoxPlot";
|
|
12
|
+
export { Histogram } from "./charts/ordinal/Histogram";
|
|
13
|
+
export { ViolinPlot } from "./charts/ordinal/ViolinPlot";
|
|
14
|
+
export { DotPlot } from "./charts/ordinal/DotPlot";
|
|
15
|
+
export { PieChart } from "./charts/ordinal/PieChart";
|
|
16
|
+
export { DonutChart } from "./charts/ordinal/DonutChart";
|
|
14
17
|
export type { StreamOrdinalFrameProps, StreamOrdinalFrameHandle, OrdinalChartType, OrdinalScales, OrdinalSceneNode } from "./stream/ordinalTypes";
|
|
15
|
-
export { OExtentObject, PieceTypes, PieceTypeSettings, ProjectedOrdinalSummary, OrdinalFrameProps, OrdinalFrameState } from "./types/ordinalTypes";
|
|
16
|
-
export { AnnotationType, CustomHoverType, AnnotationTypes, AnnotationHandling, AnnotationProps, AxisProps, AxisGeneratingFunction } from "./types/annotationTypes";
|
|
17
|
-
export { GenericObject, MarginType, ProjectionTypes, ExtentType, ProjectedPoint, PieceLayoutType, RoughType, CanvasPostProcessTypes, ExtentSettingsType, accessorType, DataAccessor, AccessorFnType, GenericAccessor, VizLayerTypes, RenderPipelineType, OrdinalSummaryTypes, OrdinalSummaryTypeSettings, AxisSummaryTypeSettings, GeneralFrameProps, GeneralFrameState } from "./types/generalTypes";
|
|
18
|
-
export { AdvancedInteractionSettings, Interactivity, InteractionLayerProps, VoronoiEntryType, BaseColumnType, InteractionLayerState } from "./types/interactionTypes";
|
|
19
|
-
export { SupportedLegendGlyphs, ItemType, LegendItem, LegendGroup, LegendProps } from "./types/legendTypes";
|
package/dist/semiotic-xy.d.ts
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* XY entry point
|
|
3
|
-
* Import
|
|
2
|
+
* XY entry point — line, area, scatter, heatmap, and bubble charts.
|
|
3
|
+
* Import from "semiotic/xy" instead of the full bundle to reduce bundle size.
|
|
4
4
|
*/
|
|
5
5
|
import StreamXYFrame from "./stream/StreamXYFrame";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export { StreamXYFrame, MinimapChart, Axis, Legend, Annotation, AnnotationLayer, Brush, DividedLine, funnelize, calculateDataExtent, hexbinning, heatmapping };
|
|
17
|
-
export { SummaryLayoutType } from "./types/xyTypes";
|
|
18
|
-
export { AnnotationType, CustomHoverType, AnnotationTypes, AnnotationHandling, AnnotationProps, AxisProps, AxisGeneratingFunction } from "./types/annotationTypes";
|
|
19
|
-
export { GenericObject, MarginType, ProjectionTypes, ExtentType, ProjectedPoint, PieceLayoutType, ProjectedLine, ProjectedSummary, RoughType, CanvasPostProcessTypes, ExtentSettingsType, accessorType, DataAccessor, AccessorFnType, BasicLineTypes, LineTypeSettings, BasicSummaryTypes, SummaryTypeSettings, RawLine, RawSummary, RawPoint, CustomAreaMarkProps, ProjectedBin, GenericAccessor, VizLayerTypes, RenderPipelineType, GeneralFrameProps, GeneralFrameState } from "./types/generalTypes";
|
|
20
|
-
export { AdvancedInteractionSettings, Interactivity, InteractionLayerProps, VoronoiEntryType, BaseColumnType, InteractionLayerState } from "./types/interactionTypes";
|
|
21
|
-
export { SupportedLegendGlyphs, ItemType, LegendItem, LegendGroup, LegendProps } from "./types/legendTypes";
|
|
6
|
+
export { StreamXYFrame };
|
|
7
|
+
export { LineChart } from "./charts/xy/LineChart";
|
|
8
|
+
export { AreaChart } from "./charts/xy/AreaChart";
|
|
9
|
+
export { StackedAreaChart } from "./charts/xy/StackedAreaChart";
|
|
10
|
+
export { Scatterplot } from "./charts/xy/Scatterplot";
|
|
11
|
+
export { BubbleChart } from "./charts/xy/BubbleChart";
|
|
12
|
+
export { Heatmap } from "./charts/xy/Heatmap";
|
|
13
|
+
export { ScatterplotMatrix } from "./charts/xy/ScatterplotMatrix";
|
|
14
|
+
export { MinimapChart } from "./charts/xy/MinimapChart";
|
|
15
|
+
export type { StreamXYFrameProps, StreamXYFrameHandle } from "./stream/types";
|
package/dist/semiotic.d.ts
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import StreamXYFrame from "./stream/StreamXYFrame";
|
|
2
2
|
import StreamOrdinalFrame from "./stream/StreamOrdinalFrame";
|
|
3
3
|
import StreamNetworkFrame from "./stream/StreamNetworkFrame";
|
|
4
|
-
import AnnotationLayer from "./AnnotationLayer/AnnotationLayer";
|
|
5
|
-
import DividedLine from "./DividedLine";
|
|
6
|
-
import Axis from "./Axis";
|
|
7
|
-
import Legend from "./Legend";
|
|
8
|
-
import Annotation from "./Annotation";
|
|
9
|
-
import Brush from "./Brush";
|
|
10
|
-
import { funnelize } from "./geometry/lineDrawing";
|
|
11
|
-
import { calculateDataExtent } from "./data/dataFunctions";
|
|
12
|
-
import { hexbinning, heatmapping } from "./geometry/areaDrawing";
|
|
13
|
-
import { nodesEdgesFromHierarchy } from "./processing/hierarchyUtils";
|
|
14
4
|
import { Scatterplot, LineChart, AreaChart, StackedAreaChart, Heatmap, BubbleChart, BarChart, StackedBarChart, SwarmPlot, BoxPlot, Histogram, ViolinPlot, RidgelinePlot, DotPlot, PieChart, DonutChart, GroupedBarChart, ForceDirectedGraph, ChordDiagram, SankeyDiagram, TreeDiagram, Treemap, CirclePack, ScatterplotMatrix, MinimapChart } from "./charts";
|
|
15
5
|
import { LinkedCharts } from "./LinkedCharts";
|
|
16
6
|
import { ThemeProvider, useTheme } from "./ThemeProvider";
|
|
17
7
|
import { exportChart } from "./export/exportChart";
|
|
8
|
+
import { toConfig, fromConfig, toURL, fromURL, copyConfig, configToJSX } from "./export/chartConfig";
|
|
9
|
+
import { serializeSelections, deserializeSelections } from "./export/selectionSerializer";
|
|
10
|
+
import { fromVegaLite } from "./data/fromVegaLite";
|
|
18
11
|
import { ChartErrorBoundary } from "./ChartErrorBoundary";
|
|
12
|
+
import { ChartContainer } from "./ChartContainer";
|
|
13
|
+
import { DetailsPanel } from "./DetailsPanel";
|
|
19
14
|
import { Tooltip, MultiLineTooltip, normalizeTooltip } from "./Tooltip/Tooltip";
|
|
20
15
|
import { RingBuffer } from "./realtime/RingBuffer";
|
|
21
16
|
import { IncrementalExtent } from "./realtime/IncrementalExtent";
|
|
@@ -24,20 +19,28 @@ import { RealtimeTemporalHistogram, RealtimeHistogram } from "./charts/realtime/
|
|
|
24
19
|
import { RealtimeSwarmChart } from "./charts/realtime/RealtimeSwarmChart";
|
|
25
20
|
import { RealtimeWaterfallChart } from "./charts/realtime/RealtimeWaterfallChart";
|
|
26
21
|
import { RealtimeHeatmap } from "./charts/realtime/RealtimeHeatmap";
|
|
27
|
-
export { StreamXYFrame, StreamOrdinalFrame, StreamNetworkFrame,
|
|
28
|
-
export { ScatterplotProps, LineChartProps, AreaChartProps, StackedAreaChartProps, HeatmapProps, BubbleChartProps, BarChartProps, StackedBarChartProps, SwarmPlotProps, BoxPlotProps, HistogramProps, ViolinPlotProps, DotPlotProps, PieChartProps, DonutChartProps, GroupedBarChartProps, ForceDirectedGraphProps, ChordDiagramProps, SankeyDiagramProps, TreeDiagramProps, TreemapProps, CirclePackProps, ScatterplotMatrixProps, MinimapChartProps, MinimapConfig, BaseChartProps, AxisConfig, Accessor, ChartAccessor } from "./charts";
|
|
22
|
+
export { StreamXYFrame, StreamOrdinalFrame, StreamNetworkFrame, Scatterplot, LineChart, AreaChart, StackedAreaChart, Heatmap, BubbleChart, BarChart, StackedBarChart, SwarmPlot, BoxPlot, Histogram, ViolinPlot, RidgelinePlot, DotPlot, ForceDirectedGraph, ChordDiagram, SankeyDiagram, TreeDiagram, PieChart, DonutChart, GroupedBarChart, Treemap, CirclePack, ScatterplotMatrix, MinimapChart, LinkedCharts, ThemeProvider, useTheme, exportChart, toConfig, fromConfig, toURL, fromURL, copyConfig, configToJSX, serializeSelections, deserializeSelections, fromVegaLite, ChartErrorBoundary, ChartContainer, DetailsPanel, Tooltip, MultiLineTooltip, normalizeTooltip, RingBuffer, IncrementalExtent, RealtimeLineChart, RealtimeTemporalHistogram, RealtimeHistogram, RealtimeSwarmChart, RealtimeWaterfallChart, RealtimeHeatmap };
|
|
23
|
+
export { ScatterplotProps, LineChartProps, AreaChartProps, StackedAreaChartProps, HeatmapProps, BubbleChartProps, BarChartProps, StackedBarChartProps, SwarmPlotProps, BoxPlotProps, HistogramProps, ViolinPlotProps, DotPlotProps, PieChartProps, DonutChartProps, GroupedBarChartProps, ForceDirectedGraphProps, ChordDiagramProps, SankeyDiagramProps, TreeDiagramProps, TreemapProps, CirclePackProps, ScatterplotMatrixProps, MinimapChartProps, MinimapConfig, BaseChartProps, AxisConfig, Accessor, ChartAccessor, ChartMode } from "./charts";
|
|
29
24
|
export type { StreamXYFrameProps, StreamXYFrameHandle, StreamChartType, RuntimeMode, SceneNode, Changeset, StreamScales, StreamLayout, CurveType, CanvasRendererFn } from "./stream/types";
|
|
30
25
|
export type { StreamRendererFn } from "./stream/renderers/types";
|
|
31
26
|
export type { StreamOrdinalFrameProps, StreamOrdinalFrameHandle, OrdinalChartType, OrdinalScales, OrdinalSceneNode } from "./stream/ordinalTypes";
|
|
32
|
-
export type { StreamNetworkFrameProps, StreamNetworkFrameHandle, NetworkChartType, NetworkSceneNode, NetworkSceneEdge, NetworkLabel } from "./stream/networkTypes";
|
|
27
|
+
export type { StreamNetworkFrameProps, StreamNetworkFrameHandle, NetworkChartType, NetworkSceneNode, NetworkSceneEdge, NetworkLabel, ThresholdAlertConfig } from "./stream/networkTypes";
|
|
33
28
|
export type { SelectionConfig, LinkedHoverProp, LinkedBrushProp } from "./charts/shared/types";
|
|
34
29
|
export type { LinkedChartsProps } from "./LinkedCharts";
|
|
35
30
|
export { useSelection, useLinkedHover, useBrushSelection, useFilteredData } from "./LinkedCharts";
|
|
36
31
|
export type { UseSelectionOptions, UseSelectionResult, UseLinkedHoverOptions, UseLinkedHoverResult, UseBrushSelectionOptions, UseBrushSelectionResult } from "./LinkedCharts";
|
|
32
|
+
export { useChartObserver } from "./LinkedCharts";
|
|
33
|
+
export type { UseChartObserverOptions, UseChartObserverResult } from "./LinkedCharts";
|
|
34
|
+
export type { ChartObservation, OnObservationCallback } from "./store/ObservationStore";
|
|
37
35
|
export type { ResolutionMode, SelectionClause, Selection } from "./store/SelectionStore";
|
|
38
36
|
export type { SemioticTheme } from "./ThemeProvider";
|
|
39
37
|
export { LIGHT_THEME, DARK_THEME } from "./ThemeProvider";
|
|
40
38
|
export type { ChartErrorBoundaryProps } from "./ChartErrorBoundary";
|
|
39
|
+
export type { ChartContainerProps, ChartContainerHandle } from "./ChartContainer";
|
|
40
|
+
export type { DetailsPanelProps } from "./DetailsPanel";
|
|
41
|
+
export type { ChartConfig, ToConfigOptions, CopyFormat } from "./export/chartConfig";
|
|
42
|
+
export type { VegaLiteSpec, VegaLiteEncoding } from "./data/fromVegaLite";
|
|
43
|
+
export type { SerializedSelections, SerializedSelection, SerializedFieldSelection } from "./export/selectionSerializer";
|
|
41
44
|
export { smartTickFormat } from "./charts/shared/formatUtils";
|
|
42
45
|
export type { TooltipProp, TooltipConfig, TooltipField, MultiLineTooltipConfig } from "./Tooltip/Tooltip";
|
|
43
46
|
export type { ArrowOfTime, WindowMode, ThresholdType, LineStyle, BarStyle, WaterfallStyle, SwarmStyle, AnnotationContext, CrosshairStyle, HoverAnnotationConfig, HoverData } from "./realtime/types";
|