semiotic 3.0.0 → 3.1.0
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 +242 -29
- package/README.md +101 -66
- package/ai/cli.js +34 -21
- package/ai/dist/componentRegistry.js +2 -0
- package/ai/dist/mcp-server.js +54 -0
- package/ai/examples.md +433 -18
- package/ai/schema.json +134 -1
- package/ai/system-prompt.md +51 -10
- package/dist/{ChartGrid.d.ts → components/ChartGrid.d.ts} +9 -7
- package/dist/components/Legend.d.ts +9 -0
- package/dist/{LinkedCharts.d.ts → components/LinkedCharts.d.ts} +34 -1
- package/dist/{Tooltip → components/Tooltip}/Tooltip.d.ts +9 -2
- package/dist/components/charts/geo/ChoroplethMap.d.ts +53 -0
- package/dist/components/charts/geo/DistanceCartogram.d.ts +90 -0
- package/dist/components/charts/geo/FlowMap.d.ts +83 -0
- package/dist/components/charts/geo/ProportionalSymbolMap.d.ts +67 -0
- package/dist/components/charts/geo/index.d.ts +8 -0
- package/dist/{charts → components/charts}/index.d.ts +4 -0
- package/dist/{charts → components/charts}/network/ChordDiagram.d.ts +8 -5
- package/dist/{charts → components/charts}/network/CirclePack.d.ts +4 -2
- package/dist/{charts → components/charts}/network/ForceDirectedGraph.d.ts +10 -6
- package/dist/components/charts/network/OrbitDiagram.d.ts +79 -0
- package/dist/{charts → components/charts}/network/SankeyDiagram.d.ts +8 -5
- package/dist/{charts → components/charts}/network/TreeDiagram.d.ts +4 -2
- package/dist/{charts → components/charts}/network/Treemap.d.ts +4 -2
- package/dist/{charts → components/charts}/ordinal/BarChart.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/BoxPlot.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/DonutChart.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/DotPlot.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/GroupedBarChart.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/Histogram.d.ts +8 -5
- package/dist/{charts → components/charts}/ordinal/PieChart.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/RidgelinePlot.d.ts +2 -0
- package/dist/{charts → components/charts}/ordinal/StackedBarChart.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/SwarmPlot.d.ts +9 -5
- package/dist/{charts → components/charts}/ordinal/ViolinPlot.d.ts +8 -5
- package/dist/{charts → components/charts}/realtime/RealtimeHeatmap.d.ts +24 -6
- package/dist/{charts → components/charts}/realtime/RealtimeHistogram.d.ts +28 -7
- package/dist/{charts → components/charts}/realtime/RealtimeLineChart.d.ts +23 -5
- package/dist/{charts → components/charts}/realtime/RealtimeSwarmChart.d.ts +24 -6
- package/dist/{charts → components/charts}/realtime/RealtimeWaterfallChart.d.ts +23 -5
- package/dist/{charts → components/charts}/shared/colorUtils.d.ts +5 -0
- package/dist/components/charts/shared/diagnoseConfig.d.ts +23 -0
- package/dist/{charts → components/charts}/shared/hooks.d.ts +36 -2
- package/dist/{charts → components/charts}/shared/legendUtils.d.ts +2 -3
- package/dist/{charts → components/charts}/shared/statisticalOverlays.d.ts +1 -2
- package/dist/components/charts/shared/statisticalOverlaysLazy.d.ts +10 -0
- package/dist/components/charts/shared/stringDistance.d.ts +11 -0
- package/dist/{charts → components/charts}/shared/tooltipUtils.d.ts +2 -2
- package/dist/{charts → components/charts}/shared/types.d.ts +16 -4
- package/dist/components/charts/shared/useChartSetup.d.ts +112 -0
- package/dist/components/charts/shared/useStreamingLegend.d.ts +65 -0
- package/dist/{charts → components/charts}/shared/withChartWrapper.d.ts +10 -0
- package/dist/{charts → components/charts}/xy/AreaChart.d.ts +18 -5
- package/dist/{charts → components/charts}/xy/BubbleChart.d.ts +18 -5
- package/dist/{charts → components/charts}/xy/ConnectedScatterplot.d.ts +10 -6
- package/dist/{charts → components/charts}/xy/Heatmap.d.ts +24 -5
- package/dist/{charts → components/charts}/xy/LineChart.d.ts +47 -5
- package/dist/{charts → components/charts}/xy/MinimapChart.d.ts +3 -0
- package/dist/components/charts/xy/QuadrantChart.d.ts +120 -0
- package/dist/{charts → components/charts}/xy/Scatterplot.d.ts +11 -5
- package/dist/{charts → components/charts}/xy/StackedAreaChart.d.ts +18 -5
- package/dist/{export → components/export}/exportChart.d.ts +6 -1
- package/dist/components/geo/mergeData.d.ts +18 -0
- package/dist/components/geo/referenceGeography.d.ts +10 -0
- package/dist/components/geo/useReferenceAreas.d.ts +13 -0
- package/dist/{realtime → components/realtime}/RingBuffer.d.ts +1 -0
- package/dist/{realtime → components/realtime}/types.d.ts +17 -0
- package/dist/components/semiotic-ai.d.ts +61 -0
- package/dist/components/semiotic-data.d.ts +8 -0
- package/dist/components/semiotic-geo.d.ts +16 -0
- package/dist/components/semiotic-network.d.ts +14 -0
- package/dist/components/semiotic-ordinal.d.ts +18 -0
- package/dist/components/semiotic-realtime.d.ts +22 -0
- package/dist/components/semiotic-server.d.ts +1 -0
- package/dist/components/semiotic-xy.d.ts +17 -0
- package/dist/components/semiotic.d.ts +57 -0
- package/dist/{server → components/server}/renderToStaticSVG.d.ts +11 -2
- package/dist/components/stream/AccessibleDataTable.d.ts +50 -0
- package/dist/{stream → components/stream}/CanvasHitTester.d.ts +8 -2
- package/dist/components/stream/DataSourceAdapter.d.ts +64 -0
- package/dist/components/stream/GeoCanvasHitTester.d.ts +19 -0
- package/dist/components/stream/GeoParticlePool.d.ts +46 -0
- package/dist/components/stream/GeoPipelineStore.d.ts +81 -0
- package/dist/components/stream/GeoTileRenderer.d.ts +31 -0
- package/dist/{stream → components/stream}/NetworkPipelineStore.d.ts +16 -4
- package/dist/{stream → components/stream}/NetworkSVGOverlay.d.ts +24 -1
- package/dist/{stream → components/stream}/OrdinalPipelineStore.d.ts +8 -4
- package/dist/{stream → components/stream}/OrdinalSVGOverlay.d.ts +31 -1
- package/dist/{stream → components/stream}/PipelineStore.d.ts +64 -5
- package/dist/components/stream/SVGOverlay.d.ts +98 -0
- package/dist/{stream → components/stream}/SceneGraph.d.ts +7 -3
- package/dist/components/stream/SceneToSVG.d.ts +22 -0
- package/dist/components/stream/StreamGeoFrame.d.ts +4 -0
- package/dist/{stream → components/stream}/accessorUtils.d.ts +1 -0
- package/dist/components/stream/canvasSetup.d.ts +26 -0
- package/dist/components/stream/geoTypes.d.ts +186 -0
- package/dist/components/stream/hitTestUtils.d.ts +23 -0
- package/dist/components/stream/layouts/forceLayoutPlugin.d.ts +2 -0
- package/dist/{stream → components/stream}/layouts/index.d.ts +2 -1
- package/dist/components/stream/layouts/orbitLayoutPlugin.d.ts +2 -0
- package/dist/components/stream/legendRenderer.d.ts +33 -0
- package/dist/{stream → components/stream}/networkTypes.d.ts +59 -3
- package/dist/{stream → components/stream}/ordinalTypes.d.ts +26 -10
- package/dist/components/stream/pipelineTransitionUtils.d.ts +42 -0
- package/dist/components/stream/renderers/areaCanvasRenderer.d.ts +2 -0
- package/dist/components/stream/renderers/geoCanvasRenderer.d.ts +9 -0
- package/dist/{stream → components/stream}/renderers/heatmapCanvasRenderer.d.ts +2 -1
- package/dist/{stream → components/stream}/renderers/lineCanvasRenderer.d.ts +1 -0
- package/dist/components/stream/renderers/renderPulse.d.ts +50 -0
- package/dist/{stream → components/stream}/types.d.ts +89 -3
- package/dist/components/stream/useStalenessCheck.d.ts +16 -0
- package/dist/components/types/legendTypes.d.ts +49 -0
- package/dist/geo.min.js +1 -0
- package/dist/geo.module.min.js +1 -0
- 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.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai.d.ts +3 -0
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-data.d.ts +1 -0
- package/dist/semiotic-data.min.js +1 -1
- package/dist/semiotic-data.module.min.js +1 -1
- package/dist/semiotic-geo.d.ts +16 -0
- package/dist/semiotic-network.d.ts +1 -0
- package/dist/semiotic-ordinal.d.ts +1 -0
- package/dist/semiotic-server.d.ts +1 -1
- package/dist/semiotic-xy.d.ts +1 -0
- package/dist/semiotic.d.ts +4 -4
- 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/test-utils/canvasMock.d.ts +23 -0
- package/dist/test-utils/frameMock.d.ts +78 -0
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +34 -20
- package/dist/Legend.d.ts +0 -3
- package/dist/stream/DataSourceAdapter.d.ts +0 -35
- package/dist/stream/SVGOverlay.d.ts +0 -56
- package/dist/stream/layouts/forceLayoutPlugin.d.ts +0 -9
- package/dist/stream/renderers/areaCanvasRenderer.d.ts +0 -7
- package/dist/types/legendTypes.d.ts +0 -20
- /package/dist/{Annotation.d.ts → components/Annotation.d.ts} +0 -0
- /package/dist/{CategoryColors.d.ts → components/CategoryColors.d.ts} +0 -0
- /package/dist/{ChartContainer.d.ts → components/ChartContainer.d.ts} +0 -0
- /package/dist/{ChartErrorBoundary.d.ts → components/ChartErrorBoundary.d.ts} +0 -0
- /package/dist/{ContextLayout.d.ts → components/ContextLayout.d.ts} +0 -0
- /package/dist/{DetailsPanel.d.ts → components/DetailsPanel.d.ts} +0 -0
- /package/dist/{ThemeProvider.d.ts → components/ThemeProvider.d.ts} +0 -0
- /package/dist/{charts → components/charts}/shared/ChartError.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/annotationRules.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/formatUtils.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/loess.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/networkUtils.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/selectionUtils.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/validateChartData.d.ts +0 -0
- /package/dist/{charts → components/charts}/shared/validateProps.d.ts +0 -0
- /package/dist/{charts → components/charts}/xy/ScatterplotMatrix.d.ts +0 -0
- /package/dist/{data → components/data}/fromVegaLite.d.ts +0 -0
- /package/dist/{data → components/data}/transforms.d.ts +0 -0
- /package/dist/{export → components/export}/chartConfig.d.ts +0 -0
- /package/dist/{export → components/export}/selectionSerializer.d.ts +0 -0
- /package/dist/{geometry → components/geometry}/sankeyLinks.d.ts +0 -0
- /package/dist/{realtime → components/realtime}/BinAccumulator.d.ts +0 -0
- /package/dist/{realtime → components/realtime}/IncrementalExtent.d.ts +0 -0
- /package/dist/{realtime → components/realtime}/renderers/types.d.ts +0 -0
- /package/dist/{realtime → components/realtime}/renderers/waterfallRenderer.d.ts +0 -0
- /package/dist/{store → components/store}/ObservationStore.d.ts +0 -0
- /package/dist/{store → components/store}/SelectionStore.d.ts +0 -0
- /package/dist/{store → components/store}/ThemeStore.d.ts +0 -0
- /package/dist/{store → components/store}/TooltipStore.d.ts +0 -0
- /package/dist/{store → components/store}/createStore.d.ts +0 -0
- /package/dist/{store → components/store}/useObservation.d.ts +0 -0
- /package/dist/{store → components/store}/useSelection.d.ts +0 -0
- /package/dist/{stream → components/stream}/MarginalGraphics.d.ts +0 -0
- /package/dist/{stream → components/stream}/NetworkCanvasHitTester.d.ts +0 -0
- /package/dist/{stream → components/stream}/OrdinalCanvasHitTester.d.ts +0 -0
- /package/dist/{stream → components/stream}/ParticlePool.d.ts +0 -0
- /package/dist/{stream → components/stream}/StreamNetworkFrame.d.ts +0 -0
- /package/dist/{stream → components/stream}/StreamOrdinalFrame.d.ts +0 -0
- /package/dist/{stream → components/stream}/StreamXYFrame.d.ts +0 -0
- /package/dist/{stream → components/stream}/keyboardNav.d.ts +0 -0
- /package/dist/{stream → components/stream}/layouts/chordLayoutPlugin.d.ts +0 -0
- /package/dist/{stream → components/stream}/layouts/hierarchyLayoutPlugin.d.ts +0 -0
- /package/dist/{stream → components/stream}/layouts/sankeyLayoutPlugin.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/barScene.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/connectorScene.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/pieScene.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/pointScene.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/statisticalScene.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/timelineScene.d.ts +0 -0
- /package/dist/{stream → components/stream}/ordinalSceneBuilders/types.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/barCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/boxplotCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/candlestickCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/connectorCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/networkArcRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/networkCircleRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/networkEdgeRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/networkParticleRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/networkRectRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/pointCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/swarmCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/types.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/violinCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/waterfallCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/renderers/wedgeCanvasRenderer.d.ts +0 -0
- /package/dist/{stream → components/stream}/useResponsiveSize.d.ts +0 -0
- /package/dist/{types → components/types}/annotationTypes.d.ts +0 -0
- /package/dist/{types → components/types}/generalTypes.d.ts +0 -0
- /package/dist/{types → components/types}/interactionTypes.d.ts +0 -0
- /package/dist/{types → components/types}/networkTypes.d.ts +0 -0
- /package/dist/{types → components/types}/ordinalTypes.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semiotic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "The semiotic JavaScript data visualization framework",
|
|
5
5
|
"main": "dist/semiotic.min.js",
|
|
6
6
|
"module": "dist/semiotic.module.min.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"default": "./dist/realtime.module.min.js"
|
|
43
43
|
},
|
|
44
44
|
"./server": {
|
|
45
|
-
"types": "./dist/server.d.ts",
|
|
45
|
+
"types": "./dist/semiotic-server.d.ts",
|
|
46
46
|
"import": "./dist/server.module.min.js",
|
|
47
47
|
"require": "./dist/server.min.js",
|
|
48
48
|
"default": "./dist/server.module.min.js"
|
|
@@ -59,6 +59,12 @@
|
|
|
59
59
|
"require": "./dist/semiotic-data.min.js",
|
|
60
60
|
"default": "./dist/semiotic-data.module.min.js"
|
|
61
61
|
},
|
|
62
|
+
"./geo": {
|
|
63
|
+
"types": "./dist/semiotic-geo.d.ts",
|
|
64
|
+
"import": "./dist/geo.module.min.js",
|
|
65
|
+
"require": "./dist/geo.min.js",
|
|
66
|
+
"default": "./dist/geo.module.min.js"
|
|
67
|
+
},
|
|
62
68
|
"./package.json": "./package.json"
|
|
63
69
|
},
|
|
64
70
|
"files": [
|
|
@@ -78,14 +84,14 @@
|
|
|
78
84
|
"build": "parcel build --target website",
|
|
79
85
|
"build:analyze": "node scripts/build.mjs --analyze",
|
|
80
86
|
"build:prod": "node scripts/build.mjs --production",
|
|
81
|
-
"test": "
|
|
87
|
+
"test": "vitest run",
|
|
82
88
|
"pretest:dist": "node scripts/build.mjs",
|
|
83
89
|
"test:dist": "playwright test",
|
|
84
90
|
"bench": "vitest bench",
|
|
85
91
|
"bench:ui": "vitest bench --ui",
|
|
86
92
|
"bench:baseline": "vitest bench --run && node scripts/save-baseline.js",
|
|
87
93
|
"bench:compare": "vitest bench --run && node scripts/compare-baseline.js",
|
|
88
|
-
"serve-examples": "npm run dist && parcel serve integration-tests/index.html integration-tests/xy-examples/index.html integration-tests/ordinal-examples/index.html integration-tests/network-examples/index.html integration-tests/viz-examples/index.html integration-tests/hoc-legend-examples/index.html --dist-dir .parcel-cache/integration-tests",
|
|
94
|
+
"serve-examples": "npm run dist && parcel serve integration-tests/index.html integration-tests/xy-examples/index.html integration-tests/ordinal-examples/index.html integration-tests/network-examples/index.html integration-tests/viz-examples/index.html integration-tests/hoc-legend-examples/index.html integration-tests/coordinated-examples/index.html integration-tests/accessibility-examples/index.html integration-tests/geo-examples/index.html integration-tests/realtime-examples/index.html integration-tests/streaming-regression-examples/index.html --dist-dir .parcel-cache/integration-tests",
|
|
89
95
|
"dist": "node scripts/build.mjs",
|
|
90
96
|
"dist:prod": "node scripts/build.mjs --production",
|
|
91
97
|
"lint": "eslint src",
|
|
@@ -97,10 +103,15 @@
|
|
|
97
103
|
"docs:dev": "parcel serve --target website --no-cache --port 3000",
|
|
98
104
|
"website:start": "npm run dist:prod && parcel serve --target website --no-cache",
|
|
99
105
|
"website:start:clean": "npm run clean && npm run dist:prod && parcel serve --target website --no-cache",
|
|
100
|
-
"
|
|
106
|
+
"generate:ssr-gallery": "npx tsx scripts/ssr-gallery.tsx > docs/public/ssr-gallery.html 2>/dev/null",
|
|
107
|
+
"website:build": "npm run dist:prod && npm run generate:ssr-gallery && parcel build --target website && node scripts/prerender.mjs",
|
|
101
108
|
"build:mcp": "tsc -p tsconfig.mcp.json",
|
|
109
|
+
"docs:api": "typedoc",
|
|
110
|
+
"docs:api:json": "typedoc --json docs/build/api/api.json",
|
|
102
111
|
"typescript": "tsc --noEmit",
|
|
103
|
-
"
|
|
112
|
+
"check:schema": "node scripts/check-schema-freshness.js",
|
|
113
|
+
"release:check": "npm run lint && npm run typescript && npm run test && npm run check:schema && node scripts/build.mjs --production && npm pack --dry-run",
|
|
114
|
+
"prepublishOnly": "npm run lint && npm run typescript && npm run test && npm run check:schema && node scripts/build.mjs --production"
|
|
104
115
|
},
|
|
105
116
|
"targets": {
|
|
106
117
|
"website": {
|
|
@@ -114,7 +125,8 @@
|
|
|
114
125
|
}
|
|
115
126
|
},
|
|
116
127
|
"alias": {
|
|
117
|
-
"semiotic": "./src/components/semiotic.ts"
|
|
128
|
+
"semiotic": "./src/components/semiotic.ts",
|
|
129
|
+
"semiotic/geo": "./src/components/semiotic-geo.ts"
|
|
118
130
|
},
|
|
119
131
|
"repository": {
|
|
120
132
|
"type": "git",
|
|
@@ -129,21 +141,18 @@
|
|
|
129
141
|
],
|
|
130
142
|
"license": "Apache-2.0",
|
|
131
143
|
"devDependencies": {
|
|
132
|
-
"@babel/core": "^7.24.4",
|
|
133
|
-
"@babel/preset-env": "^7.24.4",
|
|
134
|
-
"@babel/preset-react": "^7.24.1",
|
|
135
144
|
"@parcel/transformer-inline-string": "^2.16.4",
|
|
136
145
|
"@playwright/test": "^1.17.1",
|
|
137
146
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
138
147
|
"@rollup/plugin-terser": "^1.0.0",
|
|
139
148
|
"@testing-library/jest-dom": "^6.9.1",
|
|
140
149
|
"@testing-library/react": "^14.3.0",
|
|
141
|
-
"@testing-library/user-event": "^14.4.3",
|
|
142
150
|
"@types/d3-array": "^3.2.0",
|
|
143
151
|
"@types/d3-brush": "^3.0.0",
|
|
144
152
|
"@types/d3-chord": "^3.0.0",
|
|
145
153
|
"@types/d3-force": "^3.0.0",
|
|
146
154
|
"@types/d3-format": "^3.0.0",
|
|
155
|
+
"@types/d3-geo": "^3.1.0",
|
|
147
156
|
"@types/d3-hierarchy": "^3.1.0",
|
|
148
157
|
"@types/d3-interpolate": "^3.0.0",
|
|
149
158
|
"@types/d3-scale": "^4.0.9",
|
|
@@ -151,36 +160,34 @@
|
|
|
151
160
|
"@types/d3-selection": "^3.0.0",
|
|
152
161
|
"@types/d3-shape": "^3.1.0",
|
|
153
162
|
"@types/d3-time-format": "^4.0.0",
|
|
154
|
-
"@types/
|
|
163
|
+
"@types/d3-zoom": "^3.0.8",
|
|
155
164
|
"@types/node": "^20.19.35",
|
|
156
165
|
"@types/react": "^18.3.28",
|
|
157
166
|
"@types/react-dom": "^18.3.7",
|
|
158
167
|
"@types/seedrandom": "^3.0.5",
|
|
168
|
+
"@types/topojson-client": "^3.1.5",
|
|
159
169
|
"@typescript-eslint/eslint-plugin": "^5.4.6",
|
|
170
|
+
"@typescript-eslint/parser": "^5.4.6",
|
|
171
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
160
172
|
"@vitest/ui": "^4.0.18",
|
|
161
|
-
"babel-jest": "^29.7.0",
|
|
162
173
|
"d3-dsv": "1.0.5",
|
|
163
174
|
"d3-flextree-v4": "^1.0.1",
|
|
164
|
-
"dagre": "^0.8.2",
|
|
165
175
|
"eslint": "^8.0.0",
|
|
166
176
|
"eslint-plugin-react": "^7.27.1",
|
|
167
|
-
"
|
|
168
|
-
"jest-environment-jsdom": "^30.2.0",
|
|
177
|
+
"jsdom": "^26.1.0",
|
|
169
178
|
"marked": "4.0.10",
|
|
170
|
-
"material-design-icons-svg": "1.1.2",
|
|
171
179
|
"parcel": "^2.16.4",
|
|
172
180
|
"playwright-chromium": "^1.17.1",
|
|
173
181
|
"prettier": "^3.8.1",
|
|
174
182
|
"react": "^18.1.0",
|
|
175
183
|
"react-dom": "^18.1.0",
|
|
176
184
|
"react-router-dom": "^6.2.1",
|
|
177
|
-
"resize-observer-polyfill": "^1.5.1",
|
|
178
185
|
"rollup": "^4.59.0",
|
|
179
186
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
180
187
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
181
188
|
"rollup-plugin-visualizer": "^7.0.0",
|
|
182
189
|
"seedrandom": "^3.0.5",
|
|
183
|
-
"
|
|
190
|
+
"typedoc": "^0.28.17",
|
|
184
191
|
"typescript": "~5.9.3",
|
|
185
192
|
"vitest": "^4.0.18"
|
|
186
193
|
},
|
|
@@ -190,19 +197,26 @@
|
|
|
190
197
|
},
|
|
191
198
|
"dependencies": {
|
|
192
199
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
200
|
+
"@types/d3-quadtree": "^3.0.6",
|
|
193
201
|
"d3-array": "^3.2.4",
|
|
194
202
|
"d3-brush": "^3.0.0",
|
|
195
203
|
"d3-chord": "^3.0.1",
|
|
196
204
|
"d3-force": "^3.0.0",
|
|
197
205
|
"d3-format": "^3.1.0",
|
|
206
|
+
"d3-geo": "^3.1.1",
|
|
198
207
|
"d3-hierarchy": "^3.1.2",
|
|
199
208
|
"d3-interpolate": "^3.0.1",
|
|
209
|
+
"d3-quadtree": "^3.0.1",
|
|
200
210
|
"d3-scale": "^4.0.2",
|
|
201
211
|
"d3-scale-chromatic": "^3.1.0",
|
|
202
212
|
"d3-selection": "^3.0.0",
|
|
203
213
|
"d3-shape": "^3.2.0",
|
|
214
|
+
"d3-tile": "^1.0.0",
|
|
204
215
|
"d3-time-format": "^4.1.0",
|
|
205
|
-
"
|
|
216
|
+
"d3-zoom": "^3.0.0",
|
|
217
|
+
"regression": "^2.0.1",
|
|
218
|
+
"topojson-client": "^3.1.0",
|
|
219
|
+
"world-atlas": "^2.0.2"
|
|
206
220
|
},
|
|
207
221
|
"browserslist": {
|
|
208
222
|
"development": [
|
package/dist/Legend.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { Changeset } from "./types";
|
|
2
|
-
export type ChangesetCallback<T> = (changeset: Changeset<T>) => void;
|
|
3
|
-
export declare class DataSourceAdapter<T = Record<string, any>> {
|
|
4
|
-
private callback;
|
|
5
|
-
private lastBoundedData;
|
|
6
|
-
private chunkTimer;
|
|
7
|
-
constructor(callback: ChangesetCallback<T>);
|
|
8
|
-
/** Clear the dedup cache so the next setBoundedData call re-ingests even the same reference.
|
|
9
|
-
* Also cancels any in-flight progressive chunking. */
|
|
10
|
-
clearLastData(): void;
|
|
11
|
-
/**
|
|
12
|
-
* Ingest a bounded data array (from props).
|
|
13
|
-
*
|
|
14
|
-
* Small datasets emit a single changeset synchronously.
|
|
15
|
-
* Large datasets (> CHUNK_THRESHOLD) are split into chunks that render
|
|
16
|
-
* progressively: the first chunk fires immediately (bounded: true to
|
|
17
|
-
* reset + seed the buffer), subsequent chunks arrive on successive
|
|
18
|
-
* animation frames (bounded: false so they append without clearing).
|
|
19
|
-
*/
|
|
20
|
-
setBoundedData(data: T[]): void;
|
|
21
|
-
/**
|
|
22
|
-
* Push a single datum (streaming mode).
|
|
23
|
-
* Emits a micro-changeset with `bounded: false`.
|
|
24
|
-
*/
|
|
25
|
-
push(datum: T): void;
|
|
26
|
-
/**
|
|
27
|
-
* Push multiple data (streaming batch).
|
|
28
|
-
* Emits a single changeset with `bounded: false`.
|
|
29
|
-
*/
|
|
30
|
-
pushMany(data: T[]): void;
|
|
31
|
-
/**
|
|
32
|
-
* Reset the adapter state.
|
|
33
|
-
*/
|
|
34
|
-
clear(): void;
|
|
35
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import type { StreamScales, MarginalGraphicsConfig } from "./types";
|
|
3
|
-
import type { AnnotationContext } from "../realtime/types";
|
|
4
|
-
import type { ReactNode } from "react";
|
|
5
|
-
import type { LegendGroup } from "../types/legendTypes";
|
|
6
|
-
export interface AxisConfig {
|
|
7
|
-
orient: "left" | "right" | "top" | "bottom";
|
|
8
|
-
label?: string;
|
|
9
|
-
ticks?: number;
|
|
10
|
-
tickFormat?: (d: any) => string;
|
|
11
|
-
baseline?: boolean | "under";
|
|
12
|
-
jaggedBase?: boolean;
|
|
13
|
-
}
|
|
14
|
-
interface SVGOverlayProps {
|
|
15
|
-
width: number;
|
|
16
|
-
height: number;
|
|
17
|
-
totalWidth: number;
|
|
18
|
-
totalHeight: number;
|
|
19
|
-
margin: {
|
|
20
|
-
top: number;
|
|
21
|
-
right: number;
|
|
22
|
-
bottom: number;
|
|
23
|
-
left: number;
|
|
24
|
-
};
|
|
25
|
-
scales: StreamScales | null;
|
|
26
|
-
showAxes?: boolean;
|
|
27
|
-
axes?: AxisConfig[];
|
|
28
|
-
xLabel?: string;
|
|
29
|
-
yLabel?: string;
|
|
30
|
-
xFormat?: (d: any) => string;
|
|
31
|
-
yFormat?: (d: any) => string;
|
|
32
|
-
showGrid?: boolean;
|
|
33
|
-
title?: string | ReactNode;
|
|
34
|
-
legend?: ReactNode | {
|
|
35
|
-
legendGroups: LegendGroup[];
|
|
36
|
-
};
|
|
37
|
-
foregroundGraphics?: ReactNode;
|
|
38
|
-
marginalGraphics?: MarginalGraphicsConfig;
|
|
39
|
-
xValues?: number[];
|
|
40
|
-
yValues?: number[];
|
|
41
|
-
annotations?: Record<string, any>[];
|
|
42
|
-
svgAnnotationRules?: (annotation: Record<string, any>, index: number, context: AnnotationContext) => ReactNode;
|
|
43
|
-
annotationFrame?: number;
|
|
44
|
-
xAccessor?: string;
|
|
45
|
-
yAccessor?: string;
|
|
46
|
-
annotationData?: Record<string, any>[];
|
|
47
|
-
pointNodes?: {
|
|
48
|
-
pointId?: string;
|
|
49
|
-
x: number;
|
|
50
|
-
y: number;
|
|
51
|
-
r: number;
|
|
52
|
-
}[];
|
|
53
|
-
children?: ReactNode;
|
|
54
|
-
}
|
|
55
|
-
export declare function SVGOverlay(props: SVGOverlayProps): React.JSX.Element | null;
|
|
56
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { NetworkLayoutPlugin } from "../networkTypes";
|
|
2
|
-
/**
|
|
3
|
-
* Force-directed layout plugin — uses d3-force for physics-based node positioning.
|
|
4
|
-
*
|
|
5
|
-
* Produces circle scene nodes and line scene edges. Runs the force simulation
|
|
6
|
-
* synchronously for a configurable number of iterations, using phyllotaxis
|
|
7
|
-
* spiral for deterministic initial positions.
|
|
8
|
-
*/
|
|
9
|
-
export declare const forceLayoutPlugin: NetworkLayoutPlugin;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { StreamRendererFn } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Canvas area renderer.
|
|
4
|
-
* Renders AreaSceneNode as filled regions between topPath and bottomPath.
|
|
5
|
-
* Supports both overlapping areas and stacked areas.
|
|
6
|
-
*/
|
|
7
|
-
export declare const areaCanvasRenderer: StreamRendererFn;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type SupportedLegendGlyphs = "fill" | "line";
|
|
2
|
-
export type ItemType = SupportedLegendGlyphs | Function;
|
|
3
|
-
export interface LegendItem {
|
|
4
|
-
label: string;
|
|
5
|
-
}
|
|
6
|
-
export interface LegendGroup {
|
|
7
|
-
type?: ItemType;
|
|
8
|
-
styleFn: Function;
|
|
9
|
-
items: LegendItem[];
|
|
10
|
-
label: string;
|
|
11
|
-
}
|
|
12
|
-
export interface LegendProps {
|
|
13
|
-
legendGroups?: LegendGroup[];
|
|
14
|
-
customClickBehavior?: Function;
|
|
15
|
-
title?: string;
|
|
16
|
-
width?: number;
|
|
17
|
-
height?: number;
|
|
18
|
-
orientation?: string;
|
|
19
|
-
position?: "left" | "right";
|
|
20
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|