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
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lineRenderer = void 0;
|
|
4
|
-
function resolveColor(value, thresholds, baseColor) {
|
|
5
|
-
let color = baseColor;
|
|
6
|
-
for (const t of thresholds) {
|
|
7
|
-
if (t.thresholdType === "lesser") {
|
|
8
|
-
if (value < t.value)
|
|
9
|
-
color = t.color;
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
if (value > t.value)
|
|
13
|
-
color = t.color;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return color;
|
|
17
|
-
}
|
|
18
|
-
const lineRenderer = (ctx, data, scales, layout, style, accessors, annotations) => {
|
|
19
|
-
const { time: timeScale, value: valueScale } = scales;
|
|
20
|
-
const { timeAxis } = layout;
|
|
21
|
-
const { time: getTime, value: getValue } = accessors;
|
|
22
|
-
const baseColor = style.stroke || "#007bff";
|
|
23
|
-
// Extract color thresholds from annotations
|
|
24
|
-
const colorThresholds = annotations
|
|
25
|
-
? annotations
|
|
26
|
-
.filter((a) => a.type === "threshold" && a.color)
|
|
27
|
-
.map((a) => ({
|
|
28
|
-
value: a.value,
|
|
29
|
-
color: a.color,
|
|
30
|
-
thresholdType: (a.thresholdType || "greater")
|
|
31
|
-
}))
|
|
32
|
-
: null;
|
|
33
|
-
const hasColorThresholds = colorThresholds && colorThresholds.length > 0;
|
|
34
|
-
// Fast path: no color thresholds — single-path draw, zero overhead
|
|
35
|
-
if (!hasColorThresholds) {
|
|
36
|
-
ctx.beginPath();
|
|
37
|
-
ctx.strokeStyle = baseColor;
|
|
38
|
-
ctx.lineWidth = style.strokeWidth || 2;
|
|
39
|
-
if (style.strokeDasharray) {
|
|
40
|
-
ctx.setLineDash(style.strokeDasharray.split(/[\s,]+/).map(Number));
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
ctx.setLineDash([]);
|
|
44
|
-
}
|
|
45
|
-
let started = false;
|
|
46
|
-
for (const d of data) {
|
|
47
|
-
const t = getTime(d);
|
|
48
|
-
const v = getValue(d);
|
|
49
|
-
if (t == null || v == null || Number.isNaN(t) || Number.isNaN(v)) {
|
|
50
|
-
started = false;
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
const tPixel = timeScale(t);
|
|
54
|
-
const vPixel = valueScale(v);
|
|
55
|
-
const x = timeAxis === "x" ? tPixel : vPixel;
|
|
56
|
-
const y = timeAxis === "x" ? vPixel : tPixel;
|
|
57
|
-
if (!started) {
|
|
58
|
-
ctx.moveTo(x, y);
|
|
59
|
-
started = true;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
ctx.lineTo(x, y);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
ctx.stroke();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
// Threshold mode: segment-based drawing
|
|
69
|
-
ctx.lineWidth = style.strokeWidth || 2;
|
|
70
|
-
if (style.strokeDasharray) {
|
|
71
|
-
ctx.setLineDash(style.strokeDasharray.split(/[\s,]+/).map(Number));
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
ctx.setLineDash([]);
|
|
75
|
-
}
|
|
76
|
-
let prevX = null;
|
|
77
|
-
let prevY = null;
|
|
78
|
-
let prevValue = null;
|
|
79
|
-
let prevColor = null;
|
|
80
|
-
let pathStarted = false;
|
|
81
|
-
function toPixel(t, v) {
|
|
82
|
-
const tPixel = timeScale(t);
|
|
83
|
-
const vPixel = valueScale(v);
|
|
84
|
-
return timeAxis === "x" ? [tPixel, vPixel] : [vPixel, tPixel];
|
|
85
|
-
}
|
|
86
|
-
function startSegment(color, x, y) {
|
|
87
|
-
ctx.beginPath();
|
|
88
|
-
ctx.strokeStyle = color;
|
|
89
|
-
ctx.moveTo(x, y);
|
|
90
|
-
pathStarted = true;
|
|
91
|
-
}
|
|
92
|
-
function endSegment() {
|
|
93
|
-
if (pathStarted) {
|
|
94
|
-
ctx.stroke();
|
|
95
|
-
pathStarted = false;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
for (const d of data) {
|
|
99
|
-
const t = getTime(d);
|
|
100
|
-
const v = getValue(d);
|
|
101
|
-
if (t == null || v == null || Number.isNaN(t) || Number.isNaN(v)) {
|
|
102
|
-
endSegment();
|
|
103
|
-
prevX = null;
|
|
104
|
-
prevY = null;
|
|
105
|
-
prevValue = null;
|
|
106
|
-
prevColor = null;
|
|
107
|
-
continue;
|
|
108
|
-
}
|
|
109
|
-
const [x, y] = toPixel(t, v);
|
|
110
|
-
const currColor = resolveColor(v, colorThresholds, baseColor);
|
|
111
|
-
if (prevX === null || prevColor === null || prevValue === null) {
|
|
112
|
-
// First valid point
|
|
113
|
-
startSegment(currColor, x, y);
|
|
114
|
-
prevX = x;
|
|
115
|
-
prevY = y;
|
|
116
|
-
prevValue = v;
|
|
117
|
-
prevColor = currColor;
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
if (currColor === prevColor) {
|
|
121
|
-
ctx.lineTo(x, y);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
// Find all thresholds crossed between prevValue and v, sorted by interpolation t
|
|
125
|
-
const crossings = [];
|
|
126
|
-
for (const threshold of colorThresholds) {
|
|
127
|
-
const tv = threshold.value;
|
|
128
|
-
// Check if the threshold value lies between prevValue and v
|
|
129
|
-
if ((prevValue <= tv && v >= tv) || (prevValue >= tv && v <= tv)) {
|
|
130
|
-
// Don't add crossing at exact endpoints
|
|
131
|
-
if (prevValue !== tv && v !== tv) {
|
|
132
|
-
const interpT = (tv - prevValue) / (v - prevValue);
|
|
133
|
-
crossings.push({ t: interpT, color: "" }); // color resolved after sorting
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
// Sort crossings by interpolation parameter
|
|
138
|
-
crossings.sort((a, b) => a.t - b.t);
|
|
139
|
-
// Walk through crossings
|
|
140
|
-
let lastT = 0;
|
|
141
|
-
let runningColor = prevColor;
|
|
142
|
-
for (const crossing of crossings) {
|
|
143
|
-
const midX = prevX + (x - prevX) * crossing.t;
|
|
144
|
-
const midY = prevY + (y - prevY) * crossing.t;
|
|
145
|
-
// Determine value at crossing point to resolve next color
|
|
146
|
-
const midValue = prevValue + (v - prevValue) * crossing.t;
|
|
147
|
-
// Nudge slightly past the crossing to determine the color on the other side
|
|
148
|
-
const nudgedValue = prevValue + (v - prevValue) * Math.min(crossing.t + 0.0001, 1);
|
|
149
|
-
const nextColor = resolveColor(nudgedValue, colorThresholds, baseColor);
|
|
150
|
-
ctx.lineTo(midX, midY);
|
|
151
|
-
endSegment();
|
|
152
|
-
startSegment(nextColor, midX, midY);
|
|
153
|
-
runningColor = nextColor;
|
|
154
|
-
}
|
|
155
|
-
ctx.lineTo(x, y);
|
|
156
|
-
}
|
|
157
|
-
prevX = x;
|
|
158
|
-
prevY = y;
|
|
159
|
-
prevValue = v;
|
|
160
|
-
prevColor = currColor;
|
|
161
|
-
}
|
|
162
|
-
endSegment();
|
|
163
|
-
};
|
|
164
|
-
exports.lineRenderer = lineRenderer;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.swarmRenderer = void 0;
|
|
4
|
-
const DEFAULT_PALETTE = [
|
|
5
|
-
"#007bff", "#28a745", "#dc3545", "#fd7e14", "#6f42c1",
|
|
6
|
-
"#20c997", "#e83e8c", "#17a2b8", "#6610f2", "#ffc107"
|
|
7
|
-
];
|
|
8
|
-
function resolveColor(value, thresholds, baseColor) {
|
|
9
|
-
let color = baseColor;
|
|
10
|
-
for (const t of thresholds) {
|
|
11
|
-
if (t.thresholdType === "lesser") {
|
|
12
|
-
if (value < t.value)
|
|
13
|
-
color = t.color;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
if (value > t.value)
|
|
17
|
-
color = t.color;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return color;
|
|
21
|
-
}
|
|
22
|
-
const swarmRenderer = (ctx, data, scales, layout, style, accessors, annotations, options) => {
|
|
23
|
-
const { time: timeScale, value: valueScale } = scales;
|
|
24
|
-
const { timeAxis } = layout;
|
|
25
|
-
const { time: getTime, value: getValue, category: getCategory } = accessors;
|
|
26
|
-
const ss = options?.swarmStyle;
|
|
27
|
-
const barColors = options?.barColors;
|
|
28
|
-
const radius = ss?.radius ?? 3;
|
|
29
|
-
const defaultFill = ss?.fill ?? style.stroke ?? "#007bff";
|
|
30
|
-
const opacity = ss?.opacity ?? 0.7;
|
|
31
|
-
const hasStroke = ss?.stroke != null;
|
|
32
|
-
// Extract color thresholds from annotations
|
|
33
|
-
const colorThresholds = annotations
|
|
34
|
-
? annotations
|
|
35
|
-
.filter((a) => a.type === "threshold" && a.color)
|
|
36
|
-
.map((a) => ({
|
|
37
|
-
value: a.value,
|
|
38
|
-
color: a.color,
|
|
39
|
-
thresholdType: (a.thresholdType || "greater")
|
|
40
|
-
}))
|
|
41
|
-
: null;
|
|
42
|
-
const hasColorThresholds = colorThresholds && colorThresholds.length > 0;
|
|
43
|
-
ctx.globalAlpha = opacity;
|
|
44
|
-
let paletteIndex = 0;
|
|
45
|
-
const categoryColorCache = {};
|
|
46
|
-
for (const d of data) {
|
|
47
|
-
const t = getTime(d);
|
|
48
|
-
const v = getValue(d);
|
|
49
|
-
if (v == null || Number.isNaN(v))
|
|
50
|
-
continue;
|
|
51
|
-
let x, y;
|
|
52
|
-
if (timeAxis === "x") {
|
|
53
|
-
x = timeScale(t);
|
|
54
|
-
y = valueScale(v);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
x = valueScale(v);
|
|
58
|
-
y = timeScale(t);
|
|
59
|
-
}
|
|
60
|
-
// Determine fill color
|
|
61
|
-
let fill = defaultFill;
|
|
62
|
-
if (getCategory) {
|
|
63
|
-
const cat = getCategory(d);
|
|
64
|
-
if (barColors && barColors[cat]) {
|
|
65
|
-
fill = barColors[cat];
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
if (!(cat in categoryColorCache)) {
|
|
69
|
-
categoryColorCache[cat] = DEFAULT_PALETTE[paletteIndex % DEFAULT_PALETTE.length];
|
|
70
|
-
paletteIndex++;
|
|
71
|
-
}
|
|
72
|
-
fill = categoryColorCache[cat];
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
// Threshold coloring overrides category/default fill
|
|
76
|
-
if (hasColorThresholds) {
|
|
77
|
-
fill = resolveColor(v, colorThresholds, fill);
|
|
78
|
-
}
|
|
79
|
-
ctx.fillStyle = fill;
|
|
80
|
-
ctx.beginPath();
|
|
81
|
-
ctx.arc(x, y, radius, 0, Math.PI * 2);
|
|
82
|
-
ctx.fill();
|
|
83
|
-
if (hasStroke) {
|
|
84
|
-
ctx.strokeStyle = ss.stroke;
|
|
85
|
-
ctx.lineWidth = ss?.strokeWidth ?? 1;
|
|
86
|
-
ctx.stroke();
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
ctx.globalAlpha = 1;
|
|
90
|
-
};
|
|
91
|
-
exports.swarmRenderer = swarmRenderer;
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.waterfallRenderer = void 0;
|
|
4
|
-
exports.computeWaterfallExtent = computeWaterfallExtent;
|
|
5
|
-
const DEFAULT_POSITIVE_COLOR = "#28a745";
|
|
6
|
-
const DEFAULT_NEGATIVE_COLOR = "#dc3545";
|
|
7
|
-
function computeWaterfallExtent(data, getValue) {
|
|
8
|
-
let min = 0;
|
|
9
|
-
let max = 0;
|
|
10
|
-
let cumulative = 0;
|
|
11
|
-
for (const d of data) {
|
|
12
|
-
const v = getValue(d);
|
|
13
|
-
if (v == null || Number.isNaN(v))
|
|
14
|
-
continue;
|
|
15
|
-
cumulative += v;
|
|
16
|
-
if (cumulative < min)
|
|
17
|
-
min = cumulative;
|
|
18
|
-
if (cumulative > max)
|
|
19
|
-
max = cumulative;
|
|
20
|
-
}
|
|
21
|
-
return [min, max];
|
|
22
|
-
}
|
|
23
|
-
const waterfallRenderer = (ctx, data, scales, layout, style, accessors, annotations, options) => {
|
|
24
|
-
const { time: timeScale, value: valueScale } = scales;
|
|
25
|
-
const { timeAxis, width, height } = layout;
|
|
26
|
-
const { time: getTime, value: getValue } = accessors;
|
|
27
|
-
const ws = options?.waterfallStyle;
|
|
28
|
-
const positiveColor = ws?.positiveColor ?? DEFAULT_POSITIVE_COLOR;
|
|
29
|
-
const negativeColor = ws?.negativeColor ?? DEFAULT_NEGATIVE_COLOR;
|
|
30
|
-
const gap = ws?.gap ?? 1;
|
|
31
|
-
const connectorStroke = ws?.connectorStroke;
|
|
32
|
-
const connectorWidth = ws?.connectorWidth ?? 1;
|
|
33
|
-
const hasStroke = ws?.stroke != null;
|
|
34
|
-
if (hasStroke) {
|
|
35
|
-
ctx.strokeStyle = ws.stroke;
|
|
36
|
-
ctx.lineWidth = ws?.strokeWidth ?? 1;
|
|
37
|
-
}
|
|
38
|
-
// Collect into array for random access (skip NaN/null values)
|
|
39
|
-
const arr = [];
|
|
40
|
-
for (const d of data) {
|
|
41
|
-
const v = getValue(d);
|
|
42
|
-
if (v == null || Number.isNaN(v))
|
|
43
|
-
continue;
|
|
44
|
-
arr.push(d);
|
|
45
|
-
}
|
|
46
|
-
if (arr.length === 0)
|
|
47
|
-
return;
|
|
48
|
-
let baseline = 0;
|
|
49
|
-
// Track the end edge of the previous bar and its cumulative value for connectors
|
|
50
|
-
let prevEdge = null;
|
|
51
|
-
let prevCumulative = null;
|
|
52
|
-
for (let i = 0; i < arr.length; i++) {
|
|
53
|
-
const d = arr[i];
|
|
54
|
-
const t = getTime(d);
|
|
55
|
-
const delta = getValue(d);
|
|
56
|
-
const cumEnd = baseline + delta;
|
|
57
|
-
// Compute bar width from time gap to next point
|
|
58
|
-
let barWidthTime;
|
|
59
|
-
if (i < arr.length - 1) {
|
|
60
|
-
barWidthTime = getTime(arr[i + 1]) - t;
|
|
61
|
-
}
|
|
62
|
-
else if (i > 0) {
|
|
63
|
-
barWidthTime = t - getTime(arr[i - 1]);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
// Single point fallback: use 0 to trigger pixel fallback
|
|
67
|
-
barWidthTime = 0;
|
|
68
|
-
}
|
|
69
|
-
ctx.fillStyle = delta >= 0 ? positiveColor : negativeColor;
|
|
70
|
-
if (timeAxis === "x") {
|
|
71
|
-
let rawX0, rawX1;
|
|
72
|
-
if (barWidthTime !== 0) {
|
|
73
|
-
rawX0 = timeScale(t);
|
|
74
|
-
rawX1 = timeScale(t + barWidthTime);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
rawX0 = timeScale(t);
|
|
78
|
-
rawX1 = rawX0 + width / 10;
|
|
79
|
-
}
|
|
80
|
-
const x0 = Math.min(rawX0, rawX1) + gap / 2;
|
|
81
|
-
const x1 = Math.max(rawX0, rawX1) - gap / 2;
|
|
82
|
-
const barWidth = x1 - x0;
|
|
83
|
-
if (barWidth <= 0) {
|
|
84
|
-
baseline = cumEnd;
|
|
85
|
-
prevEdge = x1;
|
|
86
|
-
prevCumulative = cumEnd;
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
const yBaseline = valueScale(baseline);
|
|
90
|
-
const yTop = valueScale(cumEnd);
|
|
91
|
-
const rectY = Math.min(yBaseline, yTop);
|
|
92
|
-
const rectH = Math.abs(yBaseline - yTop);
|
|
93
|
-
// Connector line at the baseline level from previous bar's right edge to this bar's left edge
|
|
94
|
-
if (connectorStroke && prevEdge != null && prevCumulative != null) {
|
|
95
|
-
ctx.save();
|
|
96
|
-
ctx.strokeStyle = connectorStroke;
|
|
97
|
-
ctx.lineWidth = connectorWidth;
|
|
98
|
-
const connY = valueScale(prevCumulative);
|
|
99
|
-
ctx.beginPath();
|
|
100
|
-
ctx.moveTo(prevEdge, connY);
|
|
101
|
-
ctx.lineTo(x0, connY);
|
|
102
|
-
ctx.stroke();
|
|
103
|
-
ctx.restore();
|
|
104
|
-
if (hasStroke) {
|
|
105
|
-
ctx.strokeStyle = ws.stroke;
|
|
106
|
-
ctx.lineWidth = ws?.strokeWidth ?? 1;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
ctx.fillRect(x0, rectY, barWidth, rectH);
|
|
110
|
-
if (hasStroke)
|
|
111
|
-
ctx.strokeRect(x0, rectY, barWidth, rectH);
|
|
112
|
-
prevEdge = x1;
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
// timeAxis === "y": horizontal bars
|
|
116
|
-
let rawY0, rawY1;
|
|
117
|
-
if (barWidthTime !== 0) {
|
|
118
|
-
rawY0 = timeScale(t);
|
|
119
|
-
rawY1 = timeScale(t + barWidthTime);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
rawY0 = timeScale(t);
|
|
123
|
-
rawY1 = rawY0 + height / 10;
|
|
124
|
-
}
|
|
125
|
-
const y0 = Math.min(rawY0, rawY1) + gap / 2;
|
|
126
|
-
const y1 = Math.max(rawY0, rawY1) - gap / 2;
|
|
127
|
-
const barHeight = y1 - y0;
|
|
128
|
-
if (barHeight <= 0) {
|
|
129
|
-
baseline = cumEnd;
|
|
130
|
-
prevEdge = y1;
|
|
131
|
-
prevCumulative = cumEnd;
|
|
132
|
-
continue;
|
|
133
|
-
}
|
|
134
|
-
const xBaseline = valueScale(baseline);
|
|
135
|
-
const xEnd = valueScale(cumEnd);
|
|
136
|
-
const rectX = Math.min(xBaseline, xEnd);
|
|
137
|
-
const rectW = Math.abs(xEnd - xBaseline);
|
|
138
|
-
// Connector line at the baseline level from previous bar's bottom edge to this bar's top edge
|
|
139
|
-
if (connectorStroke && prevEdge != null && prevCumulative != null) {
|
|
140
|
-
ctx.save();
|
|
141
|
-
ctx.strokeStyle = connectorStroke;
|
|
142
|
-
ctx.lineWidth = connectorWidth;
|
|
143
|
-
const connX = valueScale(prevCumulative);
|
|
144
|
-
ctx.beginPath();
|
|
145
|
-
ctx.moveTo(connX, prevEdge);
|
|
146
|
-
ctx.lineTo(connX, y0);
|
|
147
|
-
ctx.stroke();
|
|
148
|
-
ctx.restore();
|
|
149
|
-
if (hasStroke) {
|
|
150
|
-
ctx.strokeStyle = ws.stroke;
|
|
151
|
-
ctx.lineWidth = ws?.strokeWidth ?? 1;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
ctx.fillRect(rectX, y0, rectW, barHeight);
|
|
155
|
-
if (hasStroke)
|
|
156
|
-
ctx.strokeRect(rectX, y0, rectW, barHeight);
|
|
157
|
-
prevEdge = y1;
|
|
158
|
-
}
|
|
159
|
-
baseline = cumEnd;
|
|
160
|
-
prevCumulative = cumEnd;
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
exports.waterfallRenderer = waterfallRenderer;
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.validateProps = exports.exportChart = exports.useTheme = exports.ThemeProvider = exports.MultiLineTooltip = exports.TooltipProvider = exports.RealtimeHeatmap = exports.RealtimeWaterfallChart = exports.RealtimeSwarmChart = exports.RealtimeHistogram = exports.RealtimeLineChart = exports.CirclePack = exports.Treemap = exports.TreeDiagram = exports.SankeyDiagram = exports.ChordDiagram = exports.ForceDirectedGraph = exports.DonutChart = exports.PieChart = exports.DotPlot = exports.ViolinPlot = exports.Histogram = exports.BoxPlot = exports.SwarmPlot = exports.GroupedBarChart = exports.StackedBarChart = exports.BarChart = exports.useFilteredData = exports.useBrushSelection = exports.useLinkedHover = exports.useSelection = exports.LinkedCharts = exports.ScatterplotMatrix = exports.Heatmap = exports.BubbleChart = exports.Scatterplot = exports.StackedAreaChart = exports.AreaChart = exports.LineChart = void 0;
|
|
5
|
-
// Semiotic AI — curated HOC-only surface for AI code generation
|
|
6
|
-
// Import: import { LineChart, BarChart, ... } from "semiotic/ai"
|
|
7
|
-
// XY Charts
|
|
8
|
-
var LineChart_1 = require("./charts/xy/LineChart");
|
|
9
|
-
Object.defineProperty(exports, "LineChart", { enumerable: true, get: function () { return LineChart_1.LineChart; } });
|
|
10
|
-
var AreaChart_1 = require("./charts/xy/AreaChart");
|
|
11
|
-
Object.defineProperty(exports, "AreaChart", { enumerable: true, get: function () { return AreaChart_1.AreaChart; } });
|
|
12
|
-
var StackedAreaChart_1 = require("./charts/xy/StackedAreaChart");
|
|
13
|
-
Object.defineProperty(exports, "StackedAreaChart", { enumerable: true, get: function () { return StackedAreaChart_1.StackedAreaChart; } });
|
|
14
|
-
var Scatterplot_1 = require("./charts/xy/Scatterplot");
|
|
15
|
-
Object.defineProperty(exports, "Scatterplot", { enumerable: true, get: function () { return Scatterplot_1.Scatterplot; } });
|
|
16
|
-
var BubbleChart_1 = require("./charts/xy/BubbleChart");
|
|
17
|
-
Object.defineProperty(exports, "BubbleChart", { enumerable: true, get: function () { return BubbleChart_1.BubbleChart; } });
|
|
18
|
-
var Heatmap_1 = require("./charts/xy/Heatmap");
|
|
19
|
-
Object.defineProperty(exports, "Heatmap", { enumerable: true, get: function () { return Heatmap_1.Heatmap; } });
|
|
20
|
-
var ScatterplotMatrix_1 = require("./charts/xy/ScatterplotMatrix");
|
|
21
|
-
Object.defineProperty(exports, "ScatterplotMatrix", { enumerable: true, get: function () { return ScatterplotMatrix_1.ScatterplotMatrix; } });
|
|
22
|
-
// Coordinated Views
|
|
23
|
-
var LinkedCharts_1 = require("./LinkedCharts");
|
|
24
|
-
Object.defineProperty(exports, "LinkedCharts", { enumerable: true, get: function () { return LinkedCharts_1.LinkedCharts; } });
|
|
25
|
-
var LinkedCharts_2 = require("./LinkedCharts");
|
|
26
|
-
Object.defineProperty(exports, "useSelection", { enumerable: true, get: function () { return LinkedCharts_2.useSelection; } });
|
|
27
|
-
Object.defineProperty(exports, "useLinkedHover", { enumerable: true, get: function () { return LinkedCharts_2.useLinkedHover; } });
|
|
28
|
-
Object.defineProperty(exports, "useBrushSelection", { enumerable: true, get: function () { return LinkedCharts_2.useBrushSelection; } });
|
|
29
|
-
Object.defineProperty(exports, "useFilteredData", { enumerable: true, get: function () { return LinkedCharts_2.useFilteredData; } });
|
|
30
|
-
// Ordinal Charts
|
|
31
|
-
var BarChart_1 = require("./charts/ordinal/BarChart");
|
|
32
|
-
Object.defineProperty(exports, "BarChart", { enumerable: true, get: function () { return BarChart_1.BarChart; } });
|
|
33
|
-
var StackedBarChart_1 = require("./charts/ordinal/StackedBarChart");
|
|
34
|
-
Object.defineProperty(exports, "StackedBarChart", { enumerable: true, get: function () { return StackedBarChart_1.StackedBarChart; } });
|
|
35
|
-
var GroupedBarChart_1 = require("./charts/ordinal/GroupedBarChart");
|
|
36
|
-
Object.defineProperty(exports, "GroupedBarChart", { enumerable: true, get: function () { return GroupedBarChart_1.GroupedBarChart; } });
|
|
37
|
-
var SwarmPlot_1 = require("./charts/ordinal/SwarmPlot");
|
|
38
|
-
Object.defineProperty(exports, "SwarmPlot", { enumerable: true, get: function () { return SwarmPlot_1.SwarmPlot; } });
|
|
39
|
-
var BoxPlot_1 = require("./charts/ordinal/BoxPlot");
|
|
40
|
-
Object.defineProperty(exports, "BoxPlot", { enumerable: true, get: function () { return BoxPlot_1.BoxPlot; } });
|
|
41
|
-
var Histogram_1 = require("./charts/ordinal/Histogram");
|
|
42
|
-
Object.defineProperty(exports, "Histogram", { enumerable: true, get: function () { return Histogram_1.Histogram; } });
|
|
43
|
-
var ViolinPlot_1 = require("./charts/ordinal/ViolinPlot");
|
|
44
|
-
Object.defineProperty(exports, "ViolinPlot", { enumerable: true, get: function () { return ViolinPlot_1.ViolinPlot; } });
|
|
45
|
-
var DotPlot_1 = require("./charts/ordinal/DotPlot");
|
|
46
|
-
Object.defineProperty(exports, "DotPlot", { enumerable: true, get: function () { return DotPlot_1.DotPlot; } });
|
|
47
|
-
var PieChart_1 = require("./charts/ordinal/PieChart");
|
|
48
|
-
Object.defineProperty(exports, "PieChart", { enumerable: true, get: function () { return PieChart_1.PieChart; } });
|
|
49
|
-
var DonutChart_1 = require("./charts/ordinal/DonutChart");
|
|
50
|
-
Object.defineProperty(exports, "DonutChart", { enumerable: true, get: function () { return DonutChart_1.DonutChart; } });
|
|
51
|
-
// Network Charts
|
|
52
|
-
var ForceDirectedGraph_1 = require("./charts/network/ForceDirectedGraph");
|
|
53
|
-
Object.defineProperty(exports, "ForceDirectedGraph", { enumerable: true, get: function () { return ForceDirectedGraph_1.ForceDirectedGraph; } });
|
|
54
|
-
var ChordDiagram_1 = require("./charts/network/ChordDiagram");
|
|
55
|
-
Object.defineProperty(exports, "ChordDiagram", { enumerable: true, get: function () { return ChordDiagram_1.ChordDiagram; } });
|
|
56
|
-
var SankeyDiagram_1 = require("./charts/network/SankeyDiagram");
|
|
57
|
-
Object.defineProperty(exports, "SankeyDiagram", { enumerable: true, get: function () { return SankeyDiagram_1.SankeyDiagram; } });
|
|
58
|
-
var TreeDiagram_1 = require("./charts/network/TreeDiagram");
|
|
59
|
-
Object.defineProperty(exports, "TreeDiagram", { enumerable: true, get: function () { return TreeDiagram_1.TreeDiagram; } });
|
|
60
|
-
var Treemap_1 = require("./charts/network/Treemap");
|
|
61
|
-
Object.defineProperty(exports, "Treemap", { enumerable: true, get: function () { return Treemap_1.Treemap; } });
|
|
62
|
-
var CirclePack_1 = require("./charts/network/CirclePack");
|
|
63
|
-
Object.defineProperty(exports, "CirclePack", { enumerable: true, get: function () { return CirclePack_1.CirclePack; } });
|
|
64
|
-
// Realtime Charts
|
|
65
|
-
var RealtimeLineChart_1 = require("./charts/realtime/RealtimeLineChart");
|
|
66
|
-
Object.defineProperty(exports, "RealtimeLineChart", { enumerable: true, get: function () { return RealtimeLineChart_1.RealtimeLineChart; } });
|
|
67
|
-
var RealtimeHistogram_1 = require("./charts/realtime/RealtimeHistogram");
|
|
68
|
-
Object.defineProperty(exports, "RealtimeHistogram", { enumerable: true, get: function () { return RealtimeHistogram_1.RealtimeHistogram; } });
|
|
69
|
-
var RealtimeSwarmChart_1 = require("./charts/realtime/RealtimeSwarmChart");
|
|
70
|
-
Object.defineProperty(exports, "RealtimeSwarmChart", { enumerable: true, get: function () { return RealtimeSwarmChart_1.RealtimeSwarmChart; } });
|
|
71
|
-
var RealtimeWaterfallChart_1 = require("./charts/realtime/RealtimeWaterfallChart");
|
|
72
|
-
Object.defineProperty(exports, "RealtimeWaterfallChart", { enumerable: true, get: function () { return RealtimeWaterfallChart_1.RealtimeWaterfallChart; } });
|
|
73
|
-
var RealtimeHeatmap_1 = require("./charts/realtime/RealtimeHeatmap");
|
|
74
|
-
Object.defineProperty(exports, "RealtimeHeatmap", { enumerable: true, get: function () { return RealtimeHeatmap_1.RealtimeHeatmap; } });
|
|
75
|
-
// Essential utilities
|
|
76
|
-
var TooltipStore_1 = require("./store/TooltipStore");
|
|
77
|
-
Object.defineProperty(exports, "TooltipProvider", { enumerable: true, get: function () { return TooltipStore_1.TooltipProvider; } });
|
|
78
|
-
var Tooltip_1 = require("./Tooltip/Tooltip");
|
|
79
|
-
Object.defineProperty(exports, "MultiLineTooltip", { enumerable: true, get: function () { return Tooltip_1.MultiLineTooltip; } });
|
|
80
|
-
// Theme
|
|
81
|
-
var ThemeProvider_1 = require("./ThemeProvider");
|
|
82
|
-
Object.defineProperty(exports, "ThemeProvider", { enumerable: true, get: function () { return ThemeProvider_1.ThemeProvider; } });
|
|
83
|
-
Object.defineProperty(exports, "useTheme", { enumerable: true, get: function () { return ThemeProvider_1.useTheme; } });
|
|
84
|
-
// Export utility
|
|
85
|
-
var exportChart_1 = require("./export/exportChart");
|
|
86
|
-
Object.defineProperty(exports, "exportChart", { enumerable: true, get: function () { return exportChart_1.exportChart; } });
|
|
87
|
-
// AI validation
|
|
88
|
-
var validateProps_1 = require("./charts/shared/validateProps");
|
|
89
|
-
Object.defineProperty(exports, "validateProps", { enumerable: true, get: function () { return validateProps_1.validateProps; } });
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pivot = exports.groupBy = exports.rollup = exports.bin = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Semiotic data transform utilities.
|
|
6
|
-
* Import from "semiotic/data"
|
|
7
|
-
*/
|
|
8
|
-
var transforms_1 = require("./data/transforms");
|
|
9
|
-
Object.defineProperty(exports, "bin", { enumerable: true, get: function () { return transforms_1.bin; } });
|
|
10
|
-
Object.defineProperty(exports, "rollup", { enumerable: true, get: function () { return transforms_1.rollup; } });
|
|
11
|
-
Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return transforms_1.groupBy; } });
|
|
12
|
-
Object.defineProperty(exports, "pivot", { enumerable: true, get: function () { return transforms_1.pivot; } });
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Network entry point — for force graphs, sankey, chord, trees, etc.
|
|
4
|
-
* Import from "semiotic/network" instead of the full bundle to reduce bundle size.
|
|
5
|
-
*/
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.nodesEdgesFromHierarchy = exports.calculateDataExtent = exports.AnnotationLayer = exports.Annotation = exports.Legend = exports.Axis = exports.CirclePack = exports.Treemap = exports.TreeDiagram = exports.ChordDiagram = exports.SankeyDiagram = exports.ForceDirectedGraph = exports.StreamNetworkFrame = void 0;
|
|
11
|
-
const StreamNetworkFrame_1 = __importDefault(require("./stream/StreamNetworkFrame"));
|
|
12
|
-
exports.StreamNetworkFrame = StreamNetworkFrame_1.default;
|
|
13
|
-
// Common utilities
|
|
14
|
-
const Axis_1 = __importDefault(require("./Axis"));
|
|
15
|
-
exports.Axis = Axis_1.default;
|
|
16
|
-
const Legend_1 = __importDefault(require("./Legend"));
|
|
17
|
-
exports.Legend = Legend_1.default;
|
|
18
|
-
const Annotation_1 = __importDefault(require("./Annotation"));
|
|
19
|
-
exports.Annotation = Annotation_1.default;
|
|
20
|
-
const AnnotationLayer_1 = __importDefault(require("./AnnotationLayer/AnnotationLayer"));
|
|
21
|
-
exports.AnnotationLayer = AnnotationLayer_1.default;
|
|
22
|
-
const dataFunctions_1 = require("./data/dataFunctions");
|
|
23
|
-
Object.defineProperty(exports, "calculateDataExtent", { enumerable: true, get: function () { return dataFunctions_1.calculateDataExtent; } });
|
|
24
|
-
const hierarchyUtils_1 = require("./processing/hierarchyUtils");
|
|
25
|
-
Object.defineProperty(exports, "nodesEdgesFromHierarchy", { enumerable: true, get: function () { return hierarchyUtils_1.nodesEdgesFromHierarchy; } });
|
|
26
|
-
// Chart HOCs
|
|
27
|
-
const ForceDirectedGraph_1 = require("./charts/network/ForceDirectedGraph");
|
|
28
|
-
Object.defineProperty(exports, "ForceDirectedGraph", { enumerable: true, get: function () { return ForceDirectedGraph_1.ForceDirectedGraph; } });
|
|
29
|
-
const SankeyDiagram_1 = require("./charts/network/SankeyDiagram");
|
|
30
|
-
Object.defineProperty(exports, "SankeyDiagram", { enumerable: true, get: function () { return SankeyDiagram_1.SankeyDiagram; } });
|
|
31
|
-
const ChordDiagram_1 = require("./charts/network/ChordDiagram");
|
|
32
|
-
Object.defineProperty(exports, "ChordDiagram", { enumerable: true, get: function () { return ChordDiagram_1.ChordDiagram; } });
|
|
33
|
-
const TreeDiagram_1 = require("./charts/network/TreeDiagram");
|
|
34
|
-
Object.defineProperty(exports, "TreeDiagram", { enumerable: true, get: function () { return TreeDiagram_1.TreeDiagram; } });
|
|
35
|
-
const Treemap_1 = require("./charts/network/Treemap");
|
|
36
|
-
Object.defineProperty(exports, "Treemap", { enumerable: true, get: function () { return Treemap_1.Treemap; } });
|
|
37
|
-
const CirclePack_1 = require("./charts/network/CirclePack");
|
|
38
|
-
Object.defineProperty(exports, "CirclePack", { enumerable: true, get: function () { return CirclePack_1.CirclePack; } });
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Ordinal entry point — for bar charts, pie charts, timelines, etc.
|
|
4
|
-
* Import from "semiotic/ordinal" instead of the full bundle to reduce bundle size.
|
|
5
|
-
*/
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ViolinPlot = exports.Histogram = exports.calculateDataExtent = exports.AnnotationLayer = exports.Annotation = exports.Legend = exports.Axis = exports.StreamOrdinalFrame = void 0;
|
|
11
|
-
const StreamOrdinalFrame_1 = __importDefault(require("./stream/StreamOrdinalFrame"));
|
|
12
|
-
exports.StreamOrdinalFrame = StreamOrdinalFrame_1.default;
|
|
13
|
-
// Common utilities
|
|
14
|
-
const Axis_1 = __importDefault(require("./Axis"));
|
|
15
|
-
exports.Axis = Axis_1.default;
|
|
16
|
-
const Legend_1 = __importDefault(require("./Legend"));
|
|
17
|
-
exports.Legend = Legend_1.default;
|
|
18
|
-
const Annotation_1 = __importDefault(require("./Annotation"));
|
|
19
|
-
exports.Annotation = Annotation_1.default;
|
|
20
|
-
const AnnotationLayer_1 = __importDefault(require("./AnnotationLayer/AnnotationLayer"));
|
|
21
|
-
exports.AnnotationLayer = AnnotationLayer_1.default;
|
|
22
|
-
const dataFunctions_1 = require("./data/dataFunctions");
|
|
23
|
-
Object.defineProperty(exports, "calculateDataExtent", { enumerable: true, get: function () { return dataFunctions_1.calculateDataExtent; } });
|
|
24
|
-
// Chart HOCs
|
|
25
|
-
const Histogram_1 = require("./charts/ordinal/Histogram");
|
|
26
|
-
Object.defineProperty(exports, "Histogram", { enumerable: true, get: function () { return Histogram_1.Histogram; } });
|
|
27
|
-
const ViolinPlot_1 = require("./charts/ordinal/ViolinPlot");
|
|
28
|
-
Object.defineProperty(exports, "ViolinPlot", { enumerable: true, get: function () { return ViolinPlot_1.ViolinPlot; } });
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Realtime entry point — for streaming/realtime canvas-first visualizations.
|
|
4
|
-
* Import from "semiotic/realtime" instead of the full bundle to reduce bundle size.
|
|
5
|
-
*/
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.RealtimeHeatmap = exports.RealtimeWaterfallChart = exports.RealtimeSwarmChart = exports.RealtimeHistogram = exports.RealtimeLineChart = exports.IncrementalExtent = exports.RingBuffer = exports.StreamNetworkFrame = exports.StreamXYFrame = void 0;
|
|
11
|
-
const StreamXYFrame_1 = __importDefault(require("./stream/StreamXYFrame"));
|
|
12
|
-
exports.StreamXYFrame = StreamXYFrame_1.default;
|
|
13
|
-
const StreamNetworkFrame_1 = __importDefault(require("./stream/StreamNetworkFrame"));
|
|
14
|
-
exports.StreamNetworkFrame = StreamNetworkFrame_1.default;
|
|
15
|
-
// Data structures
|
|
16
|
-
const RingBuffer_1 = require("./realtime/RingBuffer");
|
|
17
|
-
Object.defineProperty(exports, "RingBuffer", { enumerable: true, get: function () { return RingBuffer_1.RingBuffer; } });
|
|
18
|
-
const IncrementalExtent_1 = require("./realtime/IncrementalExtent");
|
|
19
|
-
Object.defineProperty(exports, "IncrementalExtent", { enumerable: true, get: function () { return IncrementalExtent_1.IncrementalExtent; } });
|
|
20
|
-
// Chart HOCs
|
|
21
|
-
const RealtimeLineChart_1 = require("./charts/realtime/RealtimeLineChart");
|
|
22
|
-
Object.defineProperty(exports, "RealtimeLineChart", { enumerable: true, get: function () { return RealtimeLineChart_1.RealtimeLineChart; } });
|
|
23
|
-
const RealtimeHistogram_1 = require("./charts/realtime/RealtimeHistogram");
|
|
24
|
-
Object.defineProperty(exports, "RealtimeHistogram", { enumerable: true, get: function () { return RealtimeHistogram_1.RealtimeHistogram; } });
|
|
25
|
-
const RealtimeSwarmChart_1 = require("./charts/realtime/RealtimeSwarmChart");
|
|
26
|
-
Object.defineProperty(exports, "RealtimeSwarmChart", { enumerable: true, get: function () { return RealtimeSwarmChart_1.RealtimeSwarmChart; } });
|
|
27
|
-
const RealtimeWaterfallChart_1 = require("./charts/realtime/RealtimeWaterfallChart");
|
|
28
|
-
Object.defineProperty(exports, "RealtimeWaterfallChart", { enumerable: true, get: function () { return RealtimeWaterfallChart_1.RealtimeWaterfallChart; } });
|
|
29
|
-
const RealtimeHeatmap_1 = require("./charts/realtime/RealtimeHeatmap");
|
|
30
|
-
Object.defineProperty(exports, "RealtimeHeatmap", { enumerable: true, get: function () { return RealtimeHeatmap_1.RealtimeHeatmap; } });
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.renderNetworkToStaticSVG = exports.renderOrdinalToStaticSVG = exports.renderXYToStaticSVG = exports.renderToStaticSVG = void 0;
|
|
4
|
-
var renderToStaticSVG_1 = require("./server/renderToStaticSVG");
|
|
5
|
-
Object.defineProperty(exports, "renderToStaticSVG", { enumerable: true, get: function () { return renderToStaticSVG_1.renderToStaticSVG; } });
|
|
6
|
-
Object.defineProperty(exports, "renderXYToStaticSVG", { enumerable: true, get: function () { return renderToStaticSVG_1.renderXYToStaticSVG; } });
|
|
7
|
-
Object.defineProperty(exports, "renderOrdinalToStaticSVG", { enumerable: true, get: function () { return renderToStaticSVG_1.renderOrdinalToStaticSVG; } });
|
|
8
|
-
Object.defineProperty(exports, "renderNetworkToStaticSVG", { enumerable: true, get: function () { return renderToStaticSVG_1.renderNetworkToStaticSVG; } });
|