semiotic 2.0.3 → 3.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +828 -0
- package/README.md +215 -37
- package/ai/cli.js +48 -0
- package/ai/dist/ai/componentRegistry.js +45 -0
- package/ai/dist/ai/mcp-server.js +99 -0
- package/ai/dist/ai/renderHOCToSVG.js +77 -0
- package/ai/dist/src/components/Annotation.js +358 -0
- package/ai/dist/src/components/AnnotationLayer/AnnotationLayer.js +369 -0
- package/ai/dist/src/components/Axis/Axis.js +374 -0
- package/ai/dist/src/components/Axis/axisTitle.js +14 -0
- package/ai/dist/src/components/Axis/index.js +7 -0
- package/ai/dist/src/components/Axis/summaryGraphic.js +37 -0
- package/ai/dist/src/components/Brush.js +84 -0
- package/ai/dist/src/components/ChartErrorBoundary.js +91 -0
- package/ai/dist/src/components/DividedLine.js +65 -0
- package/ai/dist/src/components/Legend.js +140 -0
- package/ai/dist/src/components/LinkedCharts.js +95 -0
- package/ai/dist/src/components/ThemeProvider.js +79 -0
- package/ai/dist/src/components/Tooltip/Tooltip.js +309 -0
- package/ai/dist/src/components/TooltipPositioner/index.js +132 -0
- package/ai/dist/src/components/annotationLayerBehavior/annotationHandling.js +73 -0
- package/ai/dist/src/components/annotationLayerBehavior/d3labeler.js +254 -0
- package/ai/dist/src/components/annotationRules/baseRules.js +150 -0
- package/ai/dist/src/components/annotationRules/networkframeRules.js +196 -0
- package/ai/dist/src/components/annotationRules/xyframeRules.js +297 -0
- package/ai/dist/src/components/batchWork.js +35 -0
- package/ai/dist/src/components/charts/index.js +109 -0
- package/ai/dist/src/components/charts/network/ChordDiagram.js +142 -0
- package/ai/dist/src/components/charts/network/CirclePack.js +108 -0
- package/ai/dist/src/components/charts/network/ForceDirectedGraph.js +121 -0
- package/ai/dist/src/components/charts/network/SankeyDiagram.js +155 -0
- package/ai/dist/src/components/charts/network/TreeDiagram.js +110 -0
- package/ai/dist/src/components/charts/network/Treemap.js +106 -0
- package/ai/dist/src/components/charts/ordinal/BarChart.js +156 -0
- package/ai/dist/src/components/charts/ordinal/BoxPlot.js +139 -0
- package/ai/dist/src/components/charts/ordinal/DonutChart.js +130 -0
- package/ai/dist/src/components/charts/ordinal/DotPlot.js +126 -0
- package/ai/dist/src/components/charts/ordinal/GroupedBarChart.js +129 -0
- package/ai/dist/src/components/charts/ordinal/Histogram.js +132 -0
- package/ai/dist/src/components/charts/ordinal/PieChart.js +128 -0
- package/ai/dist/src/components/charts/ordinal/RidgelinePlot.js +130 -0
- package/ai/dist/src/components/charts/ordinal/StackedBarChart.js +130 -0
- package/ai/dist/src/components/charts/ordinal/SwarmPlot.js +147 -0
- package/ai/dist/src/components/charts/ordinal/ViolinPlot.js +138 -0
- package/ai/dist/src/components/charts/realtime/RealtimeHeatmap.js +79 -0
- package/ai/dist/src/components/charts/realtime/RealtimeHistogram.js +114 -0
- package/ai/dist/src/components/charts/realtime/RealtimeLineChart.js +93 -0
- package/ai/dist/src/components/charts/realtime/RealtimeSwarmChart.js +105 -0
- package/ai/dist/src/components/charts/realtime/RealtimeWaterfallChart.js +106 -0
- package/ai/dist/src/components/charts/shared/ChartError.js +72 -0
- package/ai/dist/src/components/charts/shared/colorUtils.js +138 -0
- package/ai/dist/src/components/charts/shared/formatUtils.js +213 -0
- package/ai/dist/src/components/charts/shared/hooks.js +49 -0
- package/ai/dist/src/components/charts/shared/legendUtils.js +57 -0
- package/ai/dist/src/components/charts/shared/selectionUtils.js +67 -0
- package/ai/dist/src/components/charts/shared/tooltipUtils.js +79 -0
- package/ai/dist/src/components/charts/shared/types.js +2 -0
- package/ai/dist/src/components/charts/shared/validateChartData.js +82 -0
- package/ai/dist/src/components/charts/shared/validateProps.js +736 -0
- package/ai/dist/src/components/charts/xy/AreaChart.js +230 -0
- package/ai/dist/src/components/charts/xy/BubbleChart.js +251 -0
- package/ai/dist/src/components/charts/xy/Heatmap.js +235 -0
- package/ai/dist/src/components/charts/xy/LineChart.js +307 -0
- package/ai/dist/src/components/charts/xy/MinimapChart.js +298 -0
- package/ai/dist/src/components/charts/xy/Scatterplot.js +172 -0
- package/ai/dist/src/components/charts/xy/ScatterplotMatrix.js +426 -0
- package/ai/dist/src/components/charts/xy/StackedAreaChart.js +231 -0
- package/ai/dist/src/components/constants/coordinateNames.js +11 -0
- package/ai/dist/src/components/constants/frame_props.js +251 -0
- package/ai/dist/src/components/data/dataFunctions.js +487 -0
- package/ai/dist/src/components/data/multiAccessorUtils.js +14 -0
- package/ai/dist/src/components/data/transforms.js +143 -0
- package/ai/dist/src/components/data/unflowedFunctions.js +5 -0
- package/ai/dist/src/components/export/exportChart.js +121 -0
- package/ai/dist/src/components/generic_utilities/functions.js +5 -0
- package/ai/dist/src/components/geometry/areaDrawing.js +312 -0
- package/ai/dist/src/components/geometry/contourLayout.js +73 -0
- package/ai/dist/src/components/geometry/hexbinLayout.js +163 -0
- package/ai/dist/src/components/geometry/lineDrawing.js +356 -0
- package/ai/dist/src/components/geometry/sankeyLinks.js +331 -0
- package/ai/dist/src/components/geometry/summaryLayouts.js +136 -0
- package/ai/dist/src/components/index.js +18 -0
- package/ai/dist/src/components/processing/InteractionItems.js +223 -0
- package/ai/dist/src/components/processing/hierarchyUtils.js +104 -0
- package/ai/dist/src/components/processing/layouts/chordLayout.js +58 -0
- package/ai/dist/src/components/processing/layouts/forceLayout.js +142 -0
- package/ai/dist/src/components/processing/layouts/hierarchyLayout.js +31 -0
- package/ai/dist/src/components/processing/layouts/index.js +32 -0
- package/ai/dist/src/components/processing/layouts/sankeyLayout.js +96 -0
- package/ai/dist/src/components/processing/layouts/simpleLayouts.js +34 -0
- package/ai/dist/src/components/processing/layouts/types.js +2 -0
- package/ai/dist/src/components/processing/networkDefaults.js +39 -0
- package/ai/dist/src/components/realtime/BinAccumulator.js +36 -0
- package/ai/dist/src/components/realtime/IncrementalExtent.js +55 -0
- package/ai/dist/src/components/realtime/RingBuffer.js +104 -0
- package/ai/dist/src/components/realtime/renderers/barRenderer.js +133 -0
- package/ai/dist/src/components/realtime/renderers/candlestickRenderer.js +7 -0
- package/ai/dist/src/components/realtime/renderers/lineRenderer.js +164 -0
- package/ai/dist/src/components/realtime/renderers/swarmRenderer.js +91 -0
- package/ai/dist/src/components/realtime/renderers/types.js +2 -0
- package/ai/dist/src/components/realtime/renderers/waterfallRenderer.js +163 -0
- package/ai/dist/src/components/realtime/types.js +2 -0
- package/ai/dist/src/components/semiotic-ai.js +89 -0
- package/ai/dist/src/components/semiotic-data.js +12 -0
- package/ai/dist/src/components/semiotic-network.js +38 -0
- package/ai/dist/src/components/semiotic-ordinal.js +28 -0
- package/ai/dist/src/components/semiotic-realtime.js +30 -0
- package/ai/dist/src/components/semiotic-server.js +8 -0
- package/ai/dist/src/components/semiotic-xy.js +35 -0
- package/ai/dist/src/components/semiotic.js +109 -0
- package/ai/dist/src/components/server/renderToStaticSVG.js +594 -0
- package/ai/dist/src/components/store/SelectionStore.js +91 -0
- package/ai/dist/src/components/store/ThemeStore.js +78 -0
- package/ai/dist/src/components/store/TooltipStore.js +13 -0
- package/ai/dist/src/components/store/createStore.js +81 -0
- package/ai/dist/src/components/store/useSelection.js +133 -0
- package/ai/dist/src/components/stream/CanvasHitTester.js +164 -0
- package/ai/dist/src/components/stream/DataSourceAdapter.js +99 -0
- package/ai/dist/src/components/stream/MarginalGraphics.js +266 -0
- package/ai/dist/src/components/stream/NetworkCanvasHitTester.js +228 -0
- package/ai/dist/src/components/stream/NetworkPipelineStore.js +498 -0
- package/ai/dist/src/components/stream/NetworkSVGOverlay.js +70 -0
- package/ai/dist/src/components/stream/NetworkSceneGraph.js +38 -0
- package/ai/dist/src/components/stream/OrdinalCanvasHitTester.js +146 -0
- package/ai/dist/src/components/stream/OrdinalPipelineStore.js +786 -0
- package/ai/dist/src/components/stream/OrdinalSVGOverlay.js +130 -0
- package/ai/dist/src/components/stream/ParticlePool.js +174 -0
- package/ai/dist/src/components/stream/PipelineStore.js +1243 -0
- package/ai/dist/src/components/stream/SVGOverlay.js +129 -0
- package/ai/dist/src/components/stream/SceneGraph.js +132 -0
- package/ai/dist/src/components/stream/StreamNetworkFrame.js +561 -0
- package/ai/dist/src/components/stream/StreamOrdinalFrame.js +492 -0
- package/ai/dist/src/components/stream/StreamXYFrame.js +590 -0
- package/ai/dist/src/components/stream/accessorUtils.js +20 -0
- package/ai/dist/src/components/stream/index.js +32 -0
- package/ai/dist/src/components/stream/layouts/chordLayoutPlugin.js +352 -0
- package/ai/dist/src/components/stream/layouts/forceLayoutPlugin.js +230 -0
- package/ai/dist/src/components/stream/layouts/hierarchyLayoutPlugin.js +568 -0
- package/ai/dist/src/components/stream/layouts/index.js +28 -0
- package/ai/dist/src/components/stream/layouts/sankeyLayoutPlugin.js +245 -0
- package/ai/dist/src/components/stream/networkTypes.js +17 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/barScene.js +126 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/connectorScene.js +62 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/pieScene.js +33 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/pointScene.js +63 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/statisticalScene.js +278 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/timelineScene.js +30 -0
- package/ai/dist/src/components/stream/ordinalSceneBuilders/types.js +2 -0
- package/ai/dist/src/components/stream/ordinalTypes.js +2 -0
- package/ai/dist/src/components/stream/renderers/areaCanvasRenderer.js +48 -0
- package/ai/dist/src/components/stream/renderers/barCanvasRenderer.js +70 -0
- package/ai/dist/src/components/stream/renderers/boxplotCanvasRenderer.js +75 -0
- package/ai/dist/src/components/stream/renderers/candlestickCanvasRenderer.js +28 -0
- package/ai/dist/src/components/stream/renderers/connectorCanvasRenderer.js +47 -0
- package/ai/dist/src/components/stream/renderers/heatmapCanvasRenderer.js +31 -0
- package/ai/dist/src/components/stream/renderers/lineCanvasRenderer.js +140 -0
- package/ai/dist/src/components/stream/renderers/networkArcRenderer.js +38 -0
- package/ai/dist/src/components/stream/renderers/networkCircleRenderer.js +37 -0
- package/ai/dist/src/components/stream/renderers/networkEdgeRenderer.js +102 -0
- package/ai/dist/src/components/stream/renderers/networkParticleRenderer.js +63 -0
- package/ai/dist/src/components/stream/renderers/networkRectRenderer.js +35 -0
- package/ai/dist/src/components/stream/renderers/pointCanvasRenderer.js +38 -0
- package/ai/dist/src/components/stream/renderers/swarmCanvasRenderer.js +10 -0
- package/ai/dist/src/components/stream/renderers/types.js +2 -0
- package/ai/dist/src/components/stream/renderers/violinCanvasRenderer.js +47 -0
- package/ai/dist/src/components/stream/renderers/waterfallCanvasRenderer.js +38 -0
- package/ai/dist/src/components/stream/renderers/wedgeCanvasRenderer.js +33 -0
- package/ai/dist/src/components/stream/types.js +2 -0
- package/ai/dist/src/components/types/annotationTypes.js +2 -0
- package/ai/dist/src/components/types/canvasTypes.js +2 -0
- package/ai/dist/src/components/types/generalTypes.js +2 -0
- package/ai/dist/src/components/types/interactionTypes.js +2 -0
- package/ai/dist/src/components/types/legendTypes.js +2 -0
- package/ai/dist/src/components/types/networkTypes.js +2 -0
- package/ai/dist/src/components/types/ordinalTypes.js +2 -0
- package/ai/dist/src/components/types/xyTypes.js +2 -0
- package/ai/dist/src/components/useBoundingRect.js +24 -0
- package/ai/dist/src/components/visualizationLayerBehavior/axis.js +301 -0
- package/ai/dist/src/components/visualizationLayerBehavior/general.js +435 -0
- package/ai/dist/src/setupTests.js +4 -0
- package/ai/examples.md +489 -0
- package/ai/schema.json +1338 -0
- package/ai/system-prompt.md +41 -0
- package/dist/AnnotationLayer/AnnotationLayer.d.ts +0 -1
- package/dist/Axis/axisTitle.d.ts +3 -3
- package/dist/Axis/summaryGraphic.d.ts +1 -1
- package/dist/ChartErrorBoundary.d.ts +39 -0
- package/dist/LinkedCharts.d.ts +42 -0
- package/dist/ThemeProvider.d.ts +12 -0
- package/dist/Tooltip/Tooltip.d.ts +141 -0
- package/dist/TooltipPositioner/index.d.ts +1 -1
- package/dist/annotationLayerBehavior/annotationHandling.d.ts +2 -2
- package/dist/annotationRules/networkframeRules.d.ts +2 -2
- package/dist/annotationRules/xyframeRules.d.ts +2 -2
- package/dist/batchWork.d.ts +1 -1
- package/dist/charts/index.d.ts +74 -0
- package/dist/charts/network/ChordDiagram.d.ts +36 -0
- package/dist/charts/network/CirclePack.d.ts +32 -0
- package/dist/charts/network/ForceDirectedGraph.d.ts +38 -0
- package/dist/charts/network/SankeyDiagram.d.ts +38 -0
- package/dist/charts/network/TreeDiagram.d.ts +34 -0
- package/dist/charts/network/Treemap.d.ts +33 -0
- package/dist/charts/ordinal/BarChart.d.ts +32 -0
- package/dist/charts/ordinal/BoxPlot.d.ts +27 -0
- package/dist/charts/ordinal/DonutChart.d.ts +23 -0
- package/dist/charts/ordinal/DotPlot.d.ts +27 -0
- package/dist/charts/ordinal/GroupedBarChart.d.ts +26 -0
- package/dist/charts/ordinal/Histogram.d.ts +26 -0
- package/dist/charts/ordinal/PieChart.d.ts +21 -0
- package/dist/charts/ordinal/RidgelinePlot.d.ts +34 -0
- package/dist/charts/ordinal/StackedBarChart.d.ts +27 -0
- package/dist/charts/ordinal/SwarmPlot.d.ts +29 -0
- package/dist/charts/ordinal/ViolinPlot.d.ts +28 -0
- package/dist/charts/realtime/RealtimeHeatmap.d.ts +95 -0
- package/dist/charts/realtime/RealtimeHistogram.d.ts +119 -0
- package/dist/charts/realtime/RealtimeLineChart.d.ts +98 -0
- package/dist/charts/realtime/RealtimeSwarmChart.d.ts +100 -0
- package/dist/charts/realtime/RealtimeWaterfallChart.d.ts +97 -0
- package/dist/charts/shared/ChartError.d.ts +19 -0
- package/dist/charts/shared/colorUtils.d.ts +62 -0
- package/dist/charts/shared/formatUtils.d.ts +94 -0
- package/dist/charts/shared/hooks.d.ts +20 -0
- package/dist/charts/shared/legendUtils.d.ts +32 -0
- package/dist/charts/shared/selectionUtils.d.ts +51 -0
- package/dist/charts/shared/tooltipUtils.d.ts +18 -0
- package/dist/charts/shared/types.d.ts +97 -0
- package/dist/charts/shared/validateChartData.d.ts +41 -0
- package/dist/charts/shared/validateProps.d.ts +18 -0
- package/dist/charts/xy/AreaChart.d.ts +130 -0
- package/dist/charts/xy/BubbleChart.d.ts +164 -0
- package/dist/charts/xy/Heatmap.d.ts +156 -0
- package/dist/charts/xy/LineChart.d.ts +196 -0
- package/dist/charts/xy/MinimapChart.d.ts +73 -0
- package/dist/charts/xy/Scatterplot.d.ts +55 -0
- package/dist/charts/xy/ScatterplotMatrix.d.ts +71 -0
- package/dist/charts/xy/StackedAreaChart.d.ts +134 -0
- package/dist/constants/frame_props.d.ts +9 -0
- package/dist/data/dataFunctions.d.ts +10 -11
- package/dist/data/transforms.d.ts +45 -0
- package/dist/export/exportChart.d.ts +16 -0
- package/dist/{svg → geometry}/areaDrawing.d.ts +3 -13
- package/dist/geometry/contourLayout.d.ts +6 -0
- package/dist/geometry/hexbinLayout.d.ts +7 -0
- package/dist/{svg → geometry}/lineDrawing.d.ts +7 -35
- package/dist/geometry/sankeyLinks.d.ts +2 -0
- package/dist/geometry/summaryLayouts.d.ts +45 -0
- package/dist/index.d.ts +1 -125
- package/dist/network.js +7495 -0
- package/dist/network.js.map +1 -0
- package/dist/network.min.js +1 -0
- package/dist/network.module.js +7458 -0
- package/dist/network.module.js.map +1 -0
- package/dist/network.module.min.js +1 -0
- package/dist/ordinal.js +6497 -0
- package/dist/ordinal.js.map +1 -0
- package/dist/ordinal.min.js +1 -0
- package/dist/ordinal.module.js +6465 -0
- package/dist/ordinal.module.js.map +1 -0
- package/dist/ordinal.module.min.js +1 -0
- package/dist/processing/InteractionItems.d.ts +5 -4
- package/dist/processing/hierarchyUtils.d.ts +16 -0
- package/dist/processing/layouts/chordLayout.d.ts +2 -0
- package/dist/processing/layouts/forceLayout.d.ts +3 -0
- package/dist/processing/layouts/hierarchyLayout.d.ts +10 -0
- package/dist/processing/layouts/index.d.ts +8 -0
- package/dist/processing/layouts/sankeyLayout.d.ts +8 -0
- package/dist/processing/layouts/simpleLayouts.d.ts +7 -0
- package/dist/processing/layouts/types.d.ts +17 -0
- package/dist/processing/networkDefaults.d.ts +36 -0
- package/dist/realtime/BinAccumulator.d.ts +8 -0
- package/dist/realtime/IncrementalExtent.d.ts +13 -0
- package/dist/realtime/RingBuffer.d.ts +19 -0
- package/dist/realtime/renderers/barRenderer.d.ts +2 -0
- package/dist/realtime/renderers/candlestickRenderer.d.ts +2 -0
- package/dist/realtime/renderers/lineRenderer.d.ts +2 -0
- package/dist/realtime/renderers/swarmRenderer.d.ts +2 -0
- package/dist/realtime/renderers/types.d.ts +9 -0
- package/dist/realtime/renderers/waterfallRenderer.d.ts +3 -0
- package/dist/realtime/types.d.ts +113 -0
- package/dist/realtime.js +7072 -0
- package/dist/realtime.js.map +1 -0
- package/dist/realtime.min.js +1 -0
- package/dist/realtime.module.js +7043 -0
- package/dist/realtime.module.js.map +1 -0
- package/dist/realtime.module.min.js +1 -0
- package/dist/semiotic-ai.d.ts +36 -0
- package/dist/semiotic-ai.js +13323 -0
- package/dist/semiotic-ai.js.map +1 -0
- package/dist/semiotic-ai.min.js +1 -0
- package/dist/semiotic-ai.module.js +13264 -0
- package/dist/semiotic-ai.module.js.map +1 -0
- package/dist/semiotic-ai.module.min.js +1 -0
- package/dist/semiotic-data.d.ts +5 -0
- package/dist/semiotic-data.js +141 -0
- package/dist/semiotic-data.js.map +1 -0
- package/dist/semiotic-data.min.js +1 -0
- package/dist/semiotic-data.module.js +136 -0
- package/dist/semiotic-data.module.js.map +1 -0
- package/dist/semiotic-data.module.min.js +1 -0
- package/dist/semiotic-network.d.ts +23 -0
- package/dist/semiotic-ordinal.d.ts +19 -0
- package/dist/semiotic-realtime.d.ts +22 -0
- package/dist/semiotic-server.d.ts +1 -0
- package/dist/semiotic-xy.d.ts +21 -0
- package/dist/semiotic.d.ts +41 -28
- package/dist/semiotic.js +16257 -13130
- package/dist/semiotic.js.map +1 -0
- package/dist/semiotic.min.js +1 -0
- package/dist/semiotic.module.js +16198 -13100
- package/dist/semiotic.module.js.map +1 -0
- package/dist/semiotic.module.min.js +1 -0
- package/dist/server/renderToStaticSVG.d.ts +9 -0
- package/dist/server.js +5191 -0
- package/dist/server.js.map +1 -0
- package/dist/server.min.js +1 -0
- package/dist/server.module.js +5166 -0
- package/dist/server.module.js.map +1 -0
- package/dist/server.module.min.js +1 -0
- package/dist/store/SelectionStore.d.ts +29 -0
- package/dist/store/ThemeStore.d.ts +26 -0
- package/dist/store/useSelection.d.ts +66 -0
- package/dist/stream/CanvasHitTester.d.ts +18 -0
- package/dist/stream/DataSourceAdapter.d.ts +32 -0
- package/dist/stream/MarginalGraphics.d.ts +19 -0
- package/dist/stream/NetworkCanvasHitTester.d.ts +14 -0
- package/dist/stream/NetworkPipelineStore.d.ts +74 -0
- package/dist/stream/NetworkSVGOverlay.d.ts +40 -0
- package/dist/stream/NetworkSceneGraph.d.ts +14 -0
- package/dist/stream/OrdinalCanvasHitTester.d.ts +9 -0
- package/dist/stream/OrdinalPipelineStore.d.ts +65 -0
- package/dist/stream/OrdinalSVGOverlay.d.ts +34 -0
- package/dist/stream/ParticlePool.d.ts +28 -0
- package/dist/stream/PipelineStore.d.ts +161 -0
- package/dist/stream/SVGOverlay.d.ts +37 -0
- package/dist/stream/SceneGraph.d.ts +16 -0
- package/dist/stream/StreamNetworkFrame.d.ts +4 -0
- package/dist/stream/StreamOrdinalFrame.d.ts +4 -0
- package/dist/stream/StreamXYFrame.d.ts +4 -0
- package/dist/stream/accessorUtils.d.ts +2 -0
- package/dist/stream/index.d.ts +16 -0
- package/dist/stream/layouts/chordLayoutPlugin.d.ts +8 -0
- package/dist/stream/layouts/forceLayoutPlugin.d.ts +9 -0
- package/dist/stream/layouts/hierarchyLayoutPlugin.d.ts +17 -0
- package/dist/stream/layouts/index.d.ts +11 -0
- package/dist/stream/layouts/sankeyLayoutPlugin.d.ts +8 -0
- package/dist/stream/networkTypes.d.ts +346 -0
- package/dist/stream/ordinalSceneBuilders/barScene.d.ts +4 -0
- package/dist/stream/ordinalSceneBuilders/connectorScene.d.ts +3 -0
- package/dist/stream/ordinalSceneBuilders/pieScene.d.ts +3 -0
- package/dist/stream/ordinalSceneBuilders/pointScene.d.ts +4 -0
- package/dist/stream/ordinalSceneBuilders/statisticalScene.d.ts +6 -0
- package/dist/stream/ordinalSceneBuilders/timelineScene.d.ts +3 -0
- package/dist/stream/ordinalSceneBuilders/types.d.ts +21 -0
- package/dist/stream/ordinalTypes.d.ts +225 -0
- package/dist/stream/renderers/areaCanvasRenderer.d.ts +7 -0
- package/dist/stream/renderers/barCanvasRenderer.d.ts +7 -0
- package/dist/stream/renderers/boxplotCanvasRenderer.d.ts +2 -0
- package/dist/stream/renderers/candlestickCanvasRenderer.d.ts +2 -0
- package/dist/stream/renderers/connectorCanvasRenderer.d.ts +2 -0
- package/dist/stream/renderers/heatmapCanvasRenderer.d.ts +6 -0
- package/dist/stream/renderers/lineCanvasRenderer.d.ts +8 -0
- package/dist/stream/renderers/networkArcRenderer.d.ts +5 -0
- package/dist/stream/renderers/networkCircleRenderer.d.ts +5 -0
- package/dist/stream/renderers/networkEdgeRenderer.d.ts +10 -0
- package/dist/stream/renderers/networkParticleRenderer.d.ts +11 -0
- package/dist/stream/renderers/networkRectRenderer.d.ts +5 -0
- package/dist/stream/renderers/pointCanvasRenderer.d.ts +7 -0
- package/dist/stream/renderers/swarmCanvasRenderer.d.ts +7 -0
- package/dist/stream/renderers/types.d.ts +7 -0
- package/dist/stream/renderers/violinCanvasRenderer.d.ts +2 -0
- package/dist/stream/renderers/waterfallCanvasRenderer.d.ts +8 -0
- package/dist/stream/renderers/wedgeCanvasRenderer.d.ts +2 -0
- package/dist/stream/types.d.ts +307 -0
- package/dist/types/annotationTypes.d.ts +13 -18
- package/dist/types/canvasTypes.d.ts +1 -1
- package/dist/types/generalTypes.d.ts +41 -36
- package/dist/types/interactionTypes.d.ts +7 -9
- package/dist/types/legendTypes.d.ts +2 -2
- package/dist/types/networkTypes.d.ts +40 -30
- package/dist/types/ordinalTypes.d.ts +27 -18
- package/dist/types/xyTypes.d.ts +1 -95
- package/dist/visualizationLayerBehavior/axis.d.ts +3 -5
- package/dist/visualizationLayerBehavior/general.d.ts +8 -12
- package/dist/xy.js +6993 -0
- package/dist/xy.js.map +1 -0
- package/dist/xy.min.js +1 -0
- package/dist/xy.module.js +6957 -0
- package/dist/xy.module.js.map +1 -0
- package/dist/xy.module.min.js +1 -0
- package/package.json +123 -67
- package/dist/AnnotationLayer/helpers.d.ts +0 -6
- package/dist/AnnotationLayer/index.d.ts +0 -2
- package/dist/FacetController.d.ts +0 -12
- package/dist/Frame.d.ts +0 -2
- package/dist/InteractionLayer.d.ts +0 -3
- package/dist/Mark/Mark.d.ts +0 -3
- package/dist/Mark/Mark.types.d.ts +0 -10
- package/dist/Mark/constants/markTransition.d.ts +0 -10
- package/dist/Mark/markBehavior/drawing.d.ts +0 -13
- package/dist/MiniMap.d.ts +0 -14
- package/dist/MinimapXYFrame.d.ts +0 -10
- package/dist/NetworkFrame.d.ts +0 -4
- package/dist/OrdinalFrame.d.ts +0 -4
- package/dist/ResponsiveFrame.d.ts +0 -22
- package/dist/ResponsiveMinimapXYFrame.d.ts +0 -6
- package/dist/ResponsiveNetworkFrame.d.ts +0 -6
- package/dist/ResponsiveOrdinalFrame.d.ts +0 -6
- package/dist/ResponsiveXYFrame.d.ts +0 -6
- package/dist/SpanOrDiv.d.ts +0 -10
- package/dist/SparkFrame.d.ts +0 -14
- package/dist/SparkNetworkFrame.d.ts +0 -5
- package/dist/SparkOrdinalFrame.d.ts +0 -5
- package/dist/SparkXYFrame.d.ts +0 -5
- package/dist/VisualizationLayer.d.ts +0 -33
- package/dist/XYFrame.d.ts +0 -4
- package/dist/annotationRules/orframeRules.d.ts +0 -105
- package/dist/components/Annotation.d.ts +0 -3
- package/dist/components/AnnotationLayer/AnnotationLayer.d.ts +0 -26
- package/dist/components/Axis/Axis.d.ts +0 -7
- package/dist/components/Axis/axisTitle.d.ts +0 -10
- package/dist/components/Axis/index.d.ts +0 -2
- package/dist/components/Axis/summaryGraphic.d.ts +0 -17
- package/dist/components/Brush.d.ts +0 -12
- package/dist/components/DividedLine.d.ts +0 -16
- package/dist/components/FacetController.d.ts +0 -12
- package/dist/components/Frame.d.ts +0 -2
- package/dist/components/InteractionLayer.d.ts +0 -3
- package/dist/components/Legend.d.ts +0 -3
- package/dist/components/Mark/Mark.d.ts +0 -3
- package/dist/components/Mark/Mark.types.d.ts +0 -10
- package/dist/components/Mark/markBehavior/drawing.d.ts +0 -13
- package/dist/components/MiniMap.d.ts +0 -14
- package/dist/components/MinimapXYFrame.d.ts +0 -10
- package/dist/components/NetworkFrame.d.ts +0 -4
- package/dist/components/OrdinalFrame.d.ts +0 -4
- package/dist/components/ResponsiveFrame.d.ts +0 -22
- package/dist/components/ResponsiveMinimapXYFrame.d.ts +0 -6
- package/dist/components/ResponsiveNetworkFrame.d.ts +0 -6
- package/dist/components/ResponsiveOrdinalFrame.d.ts +0 -6
- package/dist/components/ResponsiveXYFrame.d.ts +0 -6
- package/dist/components/SpanOrDiv.d.ts +0 -10
- package/dist/components/SparkFrame.d.ts +0 -14
- package/dist/components/SparkNetworkFrame.d.ts +0 -5
- package/dist/components/SparkOrdinalFrame.d.ts +0 -5
- package/dist/components/SparkXYFrame.d.ts +0 -5
- package/dist/components/TooltipPositioner/index.d.ts +0 -7
- package/dist/components/VisualizationLayer.d.ts +0 -33
- package/dist/components/XYFrame.d.ts +0 -4
- package/dist/components/annotationLayerBehavior/annotationHandling.d.ts +0 -19
- package/dist/components/annotationLayerBehavior/d3labeler.d.ts +0 -9
- package/dist/components/annotationRules/baseRules.d.ts +0 -25
- package/dist/components/annotationRules/networkframeRules.d.ts +0 -48
- package/dist/components/annotationRules/orframeRules.d.ts +0 -105
- package/dist/components/annotationRules/xyframeRules.d.ts +0 -117
- package/dist/components/batchWork.d.ts +0 -6
- package/dist/components/constants/coordinateNames.d.ts +0 -8
- package/dist/components/constants/frame_props.d.ts +0 -4
- package/dist/components/constants/jsx.d.ts +0 -19
- package/dist/components/data/dataFunctions.d.ts +0 -46
- package/dist/components/data/multiAccessorUtils.d.ts +0 -1
- package/dist/components/data/unflowedFunctions.d.ts +0 -1
- package/dist/components/generic_utilities/functions.d.ts +0 -1
- package/dist/components/index.d.ts +0 -125
- package/dist/components/interactionLayerBehavior/InteractionCanvas.d.ts +0 -20
- package/dist/components/processing/InteractionItems.d.ts +0 -12
- package/dist/components/processing/network.d.ts +0 -114
- package/dist/components/processing/ordinal.d.ts +0 -102
- package/dist/components/processing/xyDrawing.d.ts +0 -135
- package/dist/components/semiotic.d.ts +0 -35
- package/dist/components/store/TooltipStore.d.ts +0 -2
- package/dist/components/store/createStore.d.ts +0 -1
- package/dist/components/svg/SvgHelper.d.ts +0 -37
- package/dist/components/svg/areaDrawing.d.ts +0 -31
- package/dist/components/svg/ckmeans.d.ts +0 -69
- package/dist/components/svg/frameFunctions.d.ts +0 -119
- package/dist/components/svg/lineDrawing.d.ts +0 -99
- package/dist/components/svg/networkDrawing.d.ts +0 -134
- package/dist/components/svg/pieceDrawing.d.ts +0 -13
- package/dist/components/svg/pieceLayouts.d.ts +0 -71
- package/dist/components/svg/summaryLayouts.d.ts +0 -74
- package/dist/components/types/annotationTypes.d.ts +0 -140
- package/dist/components/types/canvasTypes.d.ts +0 -9
- package/dist/components/types/generalTypes.d.ts +0 -236
- package/dist/components/types/interactionTypes.d.ts +0 -74
- package/dist/components/types/legendTypes.d.ts +0 -20
- package/dist/components/types/networkTypes.d.ts +0 -165
- package/dist/components/types/ordinalTypes.d.ts +0 -103
- package/dist/components/types/xyTypes.d.ts +0 -118
- package/dist/components/useBoundingRect.d.ts +0 -2
- package/dist/components/useDerivedStateFromProps.d.ts +0 -1
- package/dist/components/useLegacyUnmountCallback.d.ts +0 -1
- package/dist/components/visualizationLayerBehavior/axis.d.ts +0 -38
- package/dist/components/visualizationLayerBehavior/general.d.ts +0 -84
- package/dist/constants/jsx.d.ts +0 -19
- package/dist/interactionLayerBehavior/InteractionCanvas.d.ts +0 -20
- package/dist/processing/network.d.ts +0 -114
- package/dist/processing/ordinal.d.ts +0 -102
- package/dist/processing/xyDrawing.d.ts +0 -135
- package/dist/setupTests.d.ts +0 -1
- package/dist/svg/SvgHelper.d.ts +0 -37
- package/dist/svg/ckmeans.d.ts +0 -69
- package/dist/svg/frameFunctions.d.ts +0 -119
- package/dist/svg/networkDrawing.d.ts +0 -134
- package/dist/svg/pieceDrawing.d.ts +0 -13
- package/dist/svg/pieceLayouts.d.ts +0 -71
- package/dist/svg/summaryLayouts.d.ts +0 -74
- package/dist/useDerivedStateFromProps.d.ts +0 -1
- package/dist/useLegacyUnmountCallback.d.ts +0 -1
|
@@ -0,0 +1,164 @@
|
|
|
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;
|
|
@@ -0,0 +1,91 @@
|
|
|
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;
|
|
@@ -0,0 +1,163 @@
|
|
|
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;
|
|
@@ -0,0 +1,89 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,38 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,28 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,30 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,8 @@
|
|
|
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; } });
|