semiotic 3.3.1 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +25 -6
- package/README.md +1 -1
- package/ai/dist/mcp-server.js +104 -9
- package/ai/schema.json +42 -1
- package/ai/system-prompt.md +4 -0
- package/dist/components/Annotation.d.ts +42 -2
- package/dist/components/CategoryColors.d.ts +1 -1
- package/dist/components/ChartGrid.d.ts +1 -1
- package/dist/components/ContextLayout.d.ts +1 -1
- package/dist/components/DataSummaryContext.d.ts +1 -1
- package/dist/components/DetailsPanel.d.ts +3 -2
- package/dist/components/Legend.d.ts +2 -3
- package/dist/components/LinkedCharts.d.ts +9 -1
- package/dist/components/ThemeProvider.d.ts +1 -1
- package/dist/components/Tooltip/FlippingTooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -3
- package/dist/components/charts/geo/ChoroplethMap.d.ts +4 -4
- package/dist/components/charts/geo/DistanceCartogram.d.ts +5 -4
- package/dist/components/charts/geo/FlowMap.d.ts +4 -4
- package/dist/components/charts/geo/ProportionalSymbolMap.d.ts +4 -3
- package/dist/components/charts/index.d.ts +3 -1
- package/dist/components/charts/network/ChordDiagram.d.ts +4 -3
- package/dist/components/charts/network/CirclePack.d.ts +3 -3
- package/dist/components/charts/network/ForceDirectedGraph.d.ts +3 -2
- package/dist/components/charts/network/OrbitDiagram.d.ts +6 -5
- package/dist/components/charts/network/SankeyDiagram.d.ts +4 -3
- package/dist/components/charts/network/TreeDiagram.d.ts +3 -3
- package/dist/components/charts/network/Treemap.d.ts +3 -3
- package/dist/components/charts/ordinal/BarChart.d.ts +30 -4
- package/dist/components/charts/ordinal/BoxPlot.d.ts +4 -3
- package/dist/components/charts/ordinal/DonutChart.d.ts +4 -3
- package/dist/components/charts/ordinal/DotPlot.d.ts +13 -4
- package/dist/components/charts/ordinal/FunnelChart.d.ts +4 -3
- package/dist/components/charts/ordinal/GaugeChart.d.ts +2 -1
- package/dist/components/charts/ordinal/GroupedBarChart.d.ts +6 -5
- package/dist/components/charts/ordinal/Histogram.d.ts +4 -3
- package/dist/components/charts/ordinal/LikertChart.d.ts +8 -4
- package/dist/components/charts/ordinal/PieChart.d.ts +4 -3
- package/dist/components/charts/ordinal/RidgelinePlot.d.ts +4 -3
- package/dist/components/charts/ordinal/StackedBarChart.d.ts +6 -5
- package/dist/components/charts/ordinal/SwarmPlot.d.ts +4 -3
- package/dist/components/charts/ordinal/SwimlaneChart.d.ts +4 -3
- package/dist/components/charts/ordinal/ViolinPlot.d.ts +4 -3
- package/dist/components/charts/realtime/RealtimeHeatmap.d.ts +7 -6
- package/dist/components/charts/realtime/RealtimeHistogram.d.ts +10 -7
- package/dist/components/charts/realtime/RealtimeLineChart.d.ts +9 -6
- package/dist/components/charts/realtime/RealtimeSwarmChart.d.ts +7 -6
- package/dist/components/charts/realtime/RealtimeWaterfallChart.d.ts +9 -6
- package/dist/components/charts/shared/ChartError.d.ts +1 -2
- package/dist/components/charts/shared/annotationResolvers.d.ts +4 -3
- package/dist/components/charts/shared/annotationRules.d.ts +2 -1
- package/dist/components/charts/shared/colorUtils.d.ts +4 -3
- package/dist/components/charts/shared/datumTypes.d.ts +20 -0
- package/dist/components/charts/shared/diagnoseConfig.d.ts +2 -7
- package/dist/components/charts/shared/formatUtils.d.ts +4 -2
- package/dist/components/charts/shared/hooks.d.ts +41 -24
- package/dist/components/charts/shared/legendUtils.d.ts +3 -2
- package/dist/components/charts/shared/mergeShapeStyle.d.ts +43 -0
- package/dist/components/charts/shared/networkUtils.d.ts +7 -6
- package/dist/components/charts/shared/selectionUtils.d.ts +14 -11
- package/dist/components/charts/shared/statisticalOverlays.d.ts +14 -26
- package/dist/components/charts/shared/statisticalOverlaysLazy.d.ts +2 -2
- package/dist/components/charts/shared/statsTooltip.d.ts +3 -2
- package/dist/components/charts/shared/tooltipUtils.d.ts +20 -7
- package/dist/components/charts/shared/types.d.ts +27 -19
- package/dist/components/charts/shared/useChartSetup.d.ts +15 -6
- package/dist/components/charts/shared/useLikertAggregation.d.ts +18 -7
- package/dist/components/charts/shared/useOrdinalStreaming.d.ts +3 -2
- package/dist/components/charts/shared/useResolvedSelection.d.ts +2 -0
- package/dist/components/charts/shared/useStreamingLegend.d.ts +2 -1
- package/dist/components/charts/shared/validateChartData.d.ts +2 -1
- package/dist/components/charts/shared/validateProps.d.ts +2 -8
- package/dist/components/charts/shared/withChartWrapper.d.ts +1 -1
- package/dist/components/charts/xy/AreaChart.d.ts +4 -3
- package/dist/components/charts/xy/BubbleChart.d.ts +4 -3
- package/dist/components/charts/xy/CandlestickChart.d.ts +47 -0
- package/dist/components/charts/xy/ConnectedScatterplot.d.ts +4 -3
- package/dist/components/charts/xy/Heatmap.d.ts +12 -7
- package/dist/components/charts/xy/LineChart.d.ts +4 -3
- package/dist/components/charts/xy/MinimapChart.d.ts +4 -4
- package/dist/components/charts/xy/MultiAxisLineChart.d.ts +5 -4
- package/dist/components/charts/xy/QuadrantChart.d.ts +4 -3
- package/dist/components/charts/xy/Scatterplot.d.ts +4 -3
- package/dist/components/charts/xy/ScatterplotMatrix.d.ts +3 -3
- package/dist/components/charts/xy/StackedAreaChart.d.ts +4 -3
- package/dist/components/data/transforms.d.ts +8 -7
- package/dist/components/export/chartConfig.d.ts +4 -3
- package/dist/components/geo/mergeData.d.ts +2 -1
- package/dist/components/realtime/BinAccumulator.d.ts +3 -2
- package/dist/components/realtime/renderers/types.d.ts +2 -1
- package/dist/components/realtime/renderers/waterfallRenderer.d.ts +2 -1
- package/dist/components/realtime/types.d.ts +32 -16
- package/dist/components/semiotic-geo.d.ts +4 -0
- package/dist/components/semiotic-network.d.ts +7 -0
- package/dist/components/semiotic-ordinal.d.ts +8 -0
- package/dist/components/semiotic-themes.d.ts +2 -1
- package/dist/components/semiotic-xy.d.ts +11 -0
- package/dist/components/semiotic.d.ts +3 -3
- package/dist/components/server/animatedGif.d.ts +4 -18
- package/dist/components/server/renderToStaticSVG.d.ts +6 -5
- package/dist/components/server/serverChartConfigs.d.ts +2 -10
- package/dist/components/server/staticAnnotations.d.ts +2 -1
- package/dist/components/server/staticLegend.d.ts +2 -1
- package/dist/components/store/ObservationStore.d.ts +4 -3
- package/dist/components/store/SelectionStore.d.ts +3 -8
- package/dist/components/store/ThemeStore.d.ts +34 -4
- package/dist/components/store/TooltipStore.d.ts +1 -1
- package/dist/components/store/useSelection.d.ts +6 -5
- package/dist/components/stream/AccessibleDataTable.d.ts +5 -5
- package/dist/components/stream/CanvasHitTester.d.ts +10 -4
- package/dist/components/stream/DataSourceAdapter.d.ts +19 -1
- package/dist/components/stream/FocusRing.d.ts +1 -2
- package/dist/components/stream/GeoCanvasHitTester.d.ts +1 -1
- package/dist/components/stream/GeoParticlePool.d.ts +2 -1
- package/dist/components/stream/GeoPipelineStore.d.ts +26 -7
- package/dist/components/stream/MarginalGraphics.d.ts +1 -2
- package/dist/components/stream/NetworkPipelineStore.d.ts +8 -2
- package/dist/components/stream/NetworkSVGOverlay.d.ts +4 -4
- package/dist/components/stream/OrdinalBrushOverlay.d.ts +1 -19
- package/dist/components/stream/OrdinalCanvasHitTester.d.ts +3 -1
- package/dist/components/stream/OrdinalPipelineStore.d.ts +44 -6
- package/dist/components/stream/OrdinalSVGOverlay.d.ts +6 -5
- package/dist/components/stream/ParticlePool.d.ts +4 -0
- package/dist/components/stream/PipelineStore.d.ts +80 -30
- package/dist/components/stream/SVGOverlay.d.ts +10 -10
- package/dist/components/stream/SceneGraph.d.ts +6 -5
- package/dist/components/stream/StreamGeoFrame.d.ts +2 -1
- package/dist/components/stream/StreamNetworkFrame.d.ts +2 -1
- package/dist/components/stream/StreamOrdinalFrame.d.ts +2 -1
- package/dist/components/stream/StreamXYFrame.d.ts +19 -1
- package/dist/components/stream/XYBrushOverlay.d.ts +1 -21
- package/dist/components/stream/devDataAccessWarning.d.ts +2 -11
- package/dist/components/stream/geoTypes.d.ts +32 -18
- package/dist/components/stream/hoverUtils.d.ts +14 -1
- package/dist/components/stream/layouts/hierarchySceneBuilders.d.ts +4 -3
- package/dist/components/stream/layouts/hierarchyUtils.d.ts +4 -3
- package/dist/components/stream/networkTypes.d.ts +51 -28
- package/dist/components/stream/ordinalSceneBuilders/barFunnelScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/barScene.d.ts +2 -2
- package/dist/components/stream/ordinalSceneBuilders/connectorScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/pointScene.d.ts +2 -2
- package/dist/components/stream/ordinalSceneBuilders/statisticalScene.d.ts +4 -4
- package/dist/components/stream/ordinalSceneBuilders/swimlaneScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/timelineScene.d.ts +1 -1
- package/dist/components/stream/ordinalSceneBuilders/types.d.ts +9 -8
- package/dist/components/stream/ordinalTypes.d.ts +102 -29
- package/dist/components/stream/pipelineDecay.d.ts +2 -1
- package/dist/components/stream/pipelinePulse.d.ts +2 -1
- package/dist/components/stream/pipelineTransitionUtils.d.ts +21 -0
- package/dist/components/stream/pipelineTransitions.d.ts +16 -4
- package/dist/components/stream/quadtreeHitTest.d.ts +22 -0
- package/dist/components/stream/renderers/colorUtils.d.ts +20 -0
- package/dist/components/stream/renderers/resolveCSSColor.d.ts +23 -6
- package/dist/components/stream/types.d.ts +63 -8
- package/dist/components/stream/useFrame.d.ts +122 -0
- package/dist/components/stream/xySceneBuilders/areaScene.d.ts +3 -2
- package/dist/components/stream/xySceneBuilders/barScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/boundsScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/candlestickScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/emitPointNodes.d.ts +3 -2
- package/dist/components/stream/xySceneBuilders/heatmapScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/lineScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/mixedScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/pointScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/swarmScene.d.ts +2 -1
- package/dist/components/stream/xySceneBuilders/types.d.ts +35 -26
- package/dist/components/stream/xySceneBuilders/waterfallScene.d.ts +2 -1
- package/dist/components/types/marginType.d.ts +15 -0
- package/dist/geo.min.js +1 -1
- package/dist/geo.module.min.js +1 -1
- package/dist/network.min.js +1 -1
- package/dist/network.module.min.js +1 -1
- package/dist/ordinal.min.js +1 -1
- package/dist/ordinal.module.min.js +1 -1
- package/dist/realtime.min.js +1 -1
- package/dist/realtime.module.min.js +1 -1
- package/dist/semiotic-ai.min.js +1 -1
- package/dist/semiotic-ai.module.min.js +1 -1
- package/dist/semiotic-geo.d.ts +4 -0
- package/dist/semiotic-network.d.ts +7 -0
- package/dist/semiotic-ordinal.d.ts +8 -0
- package/dist/semiotic-statisticalOverlays-Ckd_jM8z.js +1 -0
- package/dist/semiotic-themes.d.ts +2 -1
- package/dist/semiotic-themes.min.js +1 -1
- package/dist/semiotic-themes.module.min.js +1 -1
- package/dist/semiotic-utils.min.js +1 -1
- package/dist/semiotic-utils.module.min.js +1 -1
- package/dist/semiotic-xy.d.ts +11 -0
- package/dist/semiotic.d.ts +3 -3
- 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 +35 -1
- package/dist/test-utils/ordinalFixtures.d.ts +48 -0
- package/dist/xy.min.js +1 -1
- package/dist/xy.module.min.js +1 -1
- package/package.json +50 -42
- package/dist/components/types/annotationTypes.d.ts +0 -145
- package/dist/components/types/generalTypes.d.ts +0 -241
- package/dist/components/types/interactionTypes.d.ts +0 -72
- package/dist/components/types/networkTypes.d.ts +0 -174
- package/dist/components/types/ordinalTypes.d.ts +0 -112
- package/dist/semiotic-statisticalOverlays-DGX_WWc5.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semiotic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"mcpName": "io.github.nteract/semiotic",
|
|
5
5
|
"description": "React data visualization library with built-in MCP server for AI-assisted chart generation",
|
|
6
6
|
"main": "dist/semiotic.min.js",
|
|
@@ -96,19 +96,20 @@
|
|
|
96
96
|
"scripts": {
|
|
97
97
|
"start": "parcel serve --target website --port 3000",
|
|
98
98
|
"build": "parcel build --target website",
|
|
99
|
-
"build:analyze": "node scripts/build.mjs --analyze",
|
|
100
|
-
"build:prod": "node scripts/build.mjs --production",
|
|
99
|
+
"build:analyze": "node --max-old-space-size=8192 scripts/build.mjs --analyze",
|
|
100
|
+
"build:prod": "node --max-old-space-size=8192 scripts/build.mjs --production",
|
|
101
101
|
"test": "vitest run",
|
|
102
|
-
"pretest:dist": "node scripts/build.mjs",
|
|
102
|
+
"pretest:dist": "node --max-old-space-size=8192 scripts/build.mjs",
|
|
103
103
|
"test:dist": "playwright test",
|
|
104
|
+
"test:visual:update": "playwright test --update-snapshots",
|
|
104
105
|
"bench": "vitest bench",
|
|
105
106
|
"bench:ui": "vitest bench --ui",
|
|
106
107
|
"bench:baseline": "vitest bench --run && node scripts/save-baseline.js",
|
|
107
108
|
"bench:compare": "vitest bench --run && node scripts/compare-baseline.js",
|
|
108
|
-
"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/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",
|
|
109
|
-
"serve-examples:ci": "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/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",
|
|
110
|
-
"dist": "node scripts/build.mjs",
|
|
111
|
-
"dist:prod": "node scripts/build.mjs --production",
|
|
109
|
+
"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/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 integration-tests/themed-examples/index.html integration-tests/background-graphics-examples/index.html integration-tests/histogram-theme-stroke-examples/index.html integration-tests/primitive-theme-matrix-examples/index.html integration-tests/status-scale-theme-examples/index.html integration-tests/primitive-props-examples/index.html integration-tests/chart-modes-examples/index.html --dist-dir .parcel-cache/integration-tests",
|
|
110
|
+
"serve-examples:ci": "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/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 integration-tests/themed-examples/index.html integration-tests/background-graphics-examples/index.html integration-tests/histogram-theme-stroke-examples/index.html integration-tests/primitive-theme-matrix-examples/index.html integration-tests/status-scale-theme-examples/index.html integration-tests/primitive-props-examples/index.html integration-tests/chart-modes-examples/index.html --dist-dir .parcel-cache/integration-tests",
|
|
111
|
+
"dist": "node --max-old-space-size=8192 scripts/build.mjs",
|
|
112
|
+
"dist:prod": "node --max-old-space-size=8192 scripts/build.mjs --production",
|
|
112
113
|
"lint": "eslint src",
|
|
113
114
|
"lint:fix": "eslint src --fix",
|
|
114
115
|
"create-release-branch": "sh ./scripts/create-release-branch.sh",
|
|
@@ -127,8 +128,8 @@
|
|
|
127
128
|
"typescript": "tsc --noEmit",
|
|
128
129
|
"size": "size-limit",
|
|
129
130
|
"check:schema": "node scripts/check-schema-freshness.js",
|
|
130
|
-
"release:check": "npm run lint && npm run typescript && npm run test && npm run check:schema &&
|
|
131
|
-
"prepublishOnly": "npm run lint && npm run typescript && npm run test && npm run check:schema && rm -rf dist &&
|
|
131
|
+
"release:check": "npm run lint && npm run typescript && npm run test && npm run check:schema && npm run dist:prod && npm pack --dry-run",
|
|
132
|
+
"prepublishOnly": "npm run lint && npm run typescript && npm run test && npm run check:schema && rm -rf dist && npm run dist:prod"
|
|
132
133
|
},
|
|
133
134
|
"targets": {
|
|
134
135
|
"website": {
|
|
@@ -144,7 +145,8 @@
|
|
|
144
145
|
"alias": {
|
|
145
146
|
"semiotic": "./src/components/semiotic.ts",
|
|
146
147
|
"semiotic/geo": "./src/components/semiotic-geo.ts",
|
|
147
|
-
"semiotic/utils": "./src/components/semiotic-utils.ts"
|
|
148
|
+
"semiotic/utils": "./src/components/semiotic-utils.ts",
|
|
149
|
+
"react-router-dom": "react-router"
|
|
148
150
|
},
|
|
149
151
|
"repository": {
|
|
150
152
|
"type": "git",
|
|
@@ -182,15 +184,15 @@
|
|
|
182
184
|
"size-limit": [
|
|
183
185
|
{
|
|
184
186
|
"path": "dist/semiotic.module.min.js",
|
|
185
|
-
"limit": "
|
|
187
|
+
"limit": "240 KB"
|
|
186
188
|
},
|
|
187
189
|
{
|
|
188
190
|
"path": "dist/xy.module.min.js",
|
|
189
|
-
"limit": "
|
|
191
|
+
"limit": "135 KB"
|
|
190
192
|
},
|
|
191
193
|
{
|
|
192
194
|
"path": "dist/ordinal.module.min.js",
|
|
193
|
-
"limit": "
|
|
195
|
+
"limit": "110 KB"
|
|
194
196
|
},
|
|
195
197
|
{
|
|
196
198
|
"path": "dist/network.module.min.js",
|
|
@@ -202,20 +204,21 @@
|
|
|
202
204
|
},
|
|
203
205
|
{
|
|
204
206
|
"path": "dist/realtime.module.min.js",
|
|
205
|
-
"limit": "
|
|
207
|
+
"limit": "140 KB"
|
|
206
208
|
}
|
|
207
209
|
],
|
|
208
210
|
"devDependencies": {
|
|
209
|
-
"@axe-core/playwright": "^4.11.
|
|
210
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
211
|
+
"@axe-core/playwright": "^4.11.2",
|
|
212
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
211
213
|
"@parcel/transformer-inline-string": "^2.16.4",
|
|
212
|
-
"@playwright/test": "^1.
|
|
214
|
+
"@playwright/test": "^1.59.1",
|
|
213
215
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
214
216
|
"@rollup/plugin-terser": "^1.0.0",
|
|
215
217
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
216
|
-
"@size-limit/file": "^
|
|
218
|
+
"@size-limit/file": "^12.0.0",
|
|
219
|
+
"@testing-library/dom": "^10.4.1",
|
|
217
220
|
"@testing-library/jest-dom": "^6.9.1",
|
|
218
|
-
"@testing-library/react": "^
|
|
221
|
+
"@testing-library/react": "^16.3.2",
|
|
219
222
|
"@types/d3-array": "^3.2.0",
|
|
220
223
|
"@types/d3-brush": "^3.0.0",
|
|
221
224
|
"@types/d3-chord": "^3.0.0",
|
|
@@ -231,45 +234,48 @@
|
|
|
231
234
|
"@types/d3-shape": "^3.1.0",
|
|
232
235
|
"@types/d3-time-format": "^4.0.0",
|
|
233
236
|
"@types/d3-zoom": "^3.0.8",
|
|
234
|
-
"@types/node": "^
|
|
235
|
-
"@types/react": "^
|
|
236
|
-
"@types/react-dom": "^
|
|
237
|
+
"@types/node": "^22.19.17",
|
|
238
|
+
"@types/react": "^19.2.14",
|
|
239
|
+
"@types/react-dom": "^19.2.3",
|
|
237
240
|
"@types/seedrandom": "^3.0.5",
|
|
238
241
|
"@types/topojson-client": "^3.1.5",
|
|
239
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
240
|
-
"@typescript-eslint/parser": "^
|
|
241
|
-
"@vitest/coverage-v8": "^4.1.
|
|
242
|
-
"@vitest/ui": "^4.
|
|
242
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
243
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
244
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
245
|
+
"@vitest/ui": "^4.1.4",
|
|
243
246
|
"buffer": "^6.0.3",
|
|
244
247
|
"crypto-browserify": "^3.12.1",
|
|
245
|
-
"d3-dsv": "
|
|
248
|
+
"d3-dsv": "^3.0.1",
|
|
246
249
|
"d3-flextree-v4": "^1.0.1",
|
|
247
|
-
"esbuild": "^0.
|
|
248
|
-
"eslint": "^
|
|
249
|
-
"eslint-plugin-react": "^7.
|
|
250
|
+
"esbuild": "^0.28.0",
|
|
251
|
+
"eslint": "^9.39.4",
|
|
252
|
+
"eslint-plugin-react": "^7.37.5",
|
|
253
|
+
"@eslint/js": "^9.39.4",
|
|
254
|
+
"globals": "^17.5.0",
|
|
255
|
+
"typescript-eslint": "^8.59.0",
|
|
250
256
|
"events": "^3.3.0",
|
|
251
|
-
"jsdom": "^
|
|
252
|
-
"marked": "
|
|
257
|
+
"jsdom": "^29.0.2",
|
|
258
|
+
"marked": "^18.0.2",
|
|
253
259
|
"os-browserify": "^0.3.0",
|
|
254
260
|
"parcel": "^2.16.4",
|
|
255
261
|
"path-browserify": "^1.0.1",
|
|
256
|
-
"playwright-chromium": "^1.
|
|
257
|
-
"prettier": "^3.8.
|
|
262
|
+
"playwright-chromium": "^1.59.1",
|
|
263
|
+
"prettier": "^3.8.3",
|
|
258
264
|
"process": "^0.11.10",
|
|
259
|
-
"react": "^
|
|
260
|
-
"react-dom": "^
|
|
261
|
-
"react-router-dom": "^
|
|
265
|
+
"react": "^19.2.5",
|
|
266
|
+
"react-dom": "^19.2.5",
|
|
267
|
+
"react-router-dom": "^7.0.0",
|
|
262
268
|
"rollup": "^4.59.0",
|
|
263
269
|
"rollup-plugin-auto-external": "^2.0.0",
|
|
264
270
|
"rollup-plugin-visualizer": "^7.0.0",
|
|
265
271
|
"seedrandom": "^3.0.5",
|
|
266
|
-
"size-limit": "^
|
|
272
|
+
"size-limit": "^12.0.0",
|
|
267
273
|
"stream-browserify": "^3.0.0",
|
|
268
274
|
"tslib": "^2.8.1",
|
|
269
|
-
"typedoc": "^0.28.
|
|
270
|
-
"typescript": "~
|
|
275
|
+
"typedoc": "^0.28.19",
|
|
276
|
+
"typescript": "~6.0.3",
|
|
271
277
|
"util": "^0.12.5",
|
|
272
|
-
"vitest": "^4.
|
|
278
|
+
"vitest": "^4.1.4",
|
|
273
279
|
"vm-browserify": "^1.1.2"
|
|
274
280
|
},
|
|
275
281
|
"peerDependencies": {
|
|
@@ -297,6 +303,8 @@
|
|
|
297
303
|
"d3-tile": "^1.0.0",
|
|
298
304
|
"d3-time-format": "^4.1.0",
|
|
299
305
|
"d3-zoom": "^3.0.0",
|
|
306
|
+
"marked-gfm-heading-id": "^4.1.4",
|
|
307
|
+
"react-router": "^7.14.1",
|
|
300
308
|
"regression": "^2.0.1",
|
|
301
309
|
"topojson-client": "^3.1.0",
|
|
302
310
|
"world-atlas": "^2.0.2"
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { RawPoint, MarginType, AxisSummaryTypeSettings, OrdinalSummaryTypes } from "./generalTypes";
|
|
2
|
-
import { NodeType, EdgeType } from "./networkTypes";
|
|
3
|
-
import { ScaleLinear } from "d3-scale";
|
|
4
|
-
export type AnnotationType = {
|
|
5
|
-
type?: string;
|
|
6
|
-
column?: {
|
|
7
|
-
name: string;
|
|
8
|
-
};
|
|
9
|
-
facetColumn?: string;
|
|
10
|
-
bounds?: RawPoint[];
|
|
11
|
-
x?: number;
|
|
12
|
-
y?: number;
|
|
13
|
-
yTop?: number;
|
|
14
|
-
yBottom?: number;
|
|
15
|
-
yMiddle?: number;
|
|
16
|
-
coordinates?: object[];
|
|
17
|
-
key?: string;
|
|
18
|
-
percent?: number;
|
|
19
|
-
style?: Record<string, any> | ((arg?: Record<string, any>, index?: number) => Record<string, any>);
|
|
20
|
-
ids?: string[];
|
|
21
|
-
edge?: EdgeType;
|
|
22
|
-
source?: NodeType;
|
|
23
|
-
target?: NodeType;
|
|
24
|
-
id?: string;
|
|
25
|
-
element?: Element;
|
|
26
|
-
label?: string | Element;
|
|
27
|
-
neighbors?: object[];
|
|
28
|
-
isColumnAnnotation?: boolean;
|
|
29
|
-
};
|
|
30
|
-
export type CustomHoverType = boolean | Array<AnnotationType | Function> | object | Function | "all" | "edge" | "node" | "area";
|
|
31
|
-
export type AnnotationTypes = "marginalia" | "bump" | false;
|
|
32
|
-
interface AnnotationLayout {
|
|
33
|
-
type: AnnotationTypes;
|
|
34
|
-
orient?: "nearest" | "left" | "right" | "top" | "bottom" | Array<string>;
|
|
35
|
-
characterWidth?: number;
|
|
36
|
-
noteHeight?: Function | number;
|
|
37
|
-
noteWidth?: Function | number;
|
|
38
|
-
lineWidth?: number;
|
|
39
|
-
lineHeight?: number;
|
|
40
|
-
padding?: number;
|
|
41
|
-
iterations?: number;
|
|
42
|
-
pointSizeFunction?: Function;
|
|
43
|
-
labelSizeFunction?: Function;
|
|
44
|
-
marginOffset?: number;
|
|
45
|
-
axisMarginOverride?: {
|
|
46
|
-
top?: number;
|
|
47
|
-
right?: number;
|
|
48
|
-
bottom?: number;
|
|
49
|
-
left?: number;
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export interface AnnotationHandling {
|
|
53
|
-
dataVersion?: string;
|
|
54
|
-
layout: AnnotationLayout;
|
|
55
|
-
}
|
|
56
|
-
export interface AnnotationProps {
|
|
57
|
-
noteData: {
|
|
58
|
-
eventListeners?: object;
|
|
59
|
-
events?: object;
|
|
60
|
-
type: string;
|
|
61
|
-
screenCoordinates?: Array<Array<number>>;
|
|
62
|
-
coordinates?: boolean;
|
|
63
|
-
noteHeight?: Function | number;
|
|
64
|
-
noteWidth?: Function | number;
|
|
65
|
-
x: number | number[];
|
|
66
|
-
y: number | number[];
|
|
67
|
-
nx?: number;
|
|
68
|
-
ny?: number;
|
|
69
|
-
dx?: number;
|
|
70
|
-
dy?: number;
|
|
71
|
-
note: {
|
|
72
|
-
label?: string;
|
|
73
|
-
title?: string;
|
|
74
|
-
wrap?: number;
|
|
75
|
-
orientation?: string;
|
|
76
|
-
align?: string;
|
|
77
|
-
noWrap?: boolean;
|
|
78
|
-
};
|
|
79
|
-
i?: number;
|
|
80
|
-
fixedPosition?: boolean;
|
|
81
|
-
label?: string;
|
|
82
|
-
connector?: any;
|
|
83
|
-
subject?: any;
|
|
84
|
-
color?: string;
|
|
85
|
-
className?: string;
|
|
86
|
-
disable?: string[];
|
|
87
|
-
[key: string]: any;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
type GlyphProps = {
|
|
91
|
-
lineHeight: number;
|
|
92
|
-
lineWidth: number;
|
|
93
|
-
value: number;
|
|
94
|
-
};
|
|
95
|
-
type AxisPart = {
|
|
96
|
-
value: number;
|
|
97
|
-
};
|
|
98
|
-
export interface AxisProps {
|
|
99
|
-
orient: "left" | "right" | "top" | "bottom";
|
|
100
|
-
label?: {
|
|
101
|
-
position?: {
|
|
102
|
-
anchor?: string;
|
|
103
|
-
location?: string;
|
|
104
|
-
rotation?: string;
|
|
105
|
-
};
|
|
106
|
-
name: string;
|
|
107
|
-
locationDistance: number;
|
|
108
|
-
};
|
|
109
|
-
dynamicLabelPosition?: boolean;
|
|
110
|
-
position?: number[];
|
|
111
|
-
rotate?: number;
|
|
112
|
-
tickFormat?: Function;
|
|
113
|
-
size?: number[];
|
|
114
|
-
width?: number;
|
|
115
|
-
height?: number;
|
|
116
|
-
className?: string;
|
|
117
|
-
padding?: number;
|
|
118
|
-
tickValues?: number[] | Function;
|
|
119
|
-
scale?: ScaleLinear<number, number>;
|
|
120
|
-
ticks?: number;
|
|
121
|
-
footer?: boolean;
|
|
122
|
-
tickSize?: number;
|
|
123
|
-
tickLineGenerator?: ({ xy, orient, i, className }: {
|
|
124
|
-
xy?: object;
|
|
125
|
-
orient?: string;
|
|
126
|
-
i?: number;
|
|
127
|
-
className?: string;
|
|
128
|
-
}) => SVGElement;
|
|
129
|
-
baseline?: boolean | "under";
|
|
130
|
-
jaggedBase?: boolean;
|
|
131
|
-
margin?: MarginType;
|
|
132
|
-
center?: boolean;
|
|
133
|
-
axisParts?: AxisPart[];
|
|
134
|
-
annotationFunction?: (args: any) => void;
|
|
135
|
-
glyphFunction?: (args: GlyphProps) => SVGElement;
|
|
136
|
-
axis?: object;
|
|
137
|
-
extentOverride?: number[];
|
|
138
|
-
key?: string | number;
|
|
139
|
-
axisAnnotationFunction?: (args: object) => void;
|
|
140
|
-
xyPoints?: object[];
|
|
141
|
-
marginalSummaryType?: AxisSummaryTypeSettings | OrdinalSummaryTypes;
|
|
142
|
-
showOutboundTickLines?: boolean;
|
|
143
|
-
}
|
|
144
|
-
export type AxisGeneratingFunction = (args: object) => AxisProps;
|
|
145
|
-
export {};
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { CustomHoverType, AnnotationHandling } from "./annotationTypes";
|
|
2
|
-
import { Interactivity, AdvancedInteractionSettings } from "./interactionTypes";
|
|
3
|
-
export type TitleType = string | Element | {
|
|
4
|
-
title?: string | Element;
|
|
5
|
-
orient?: string;
|
|
6
|
-
};
|
|
7
|
-
import { LegendProps } from "./legendTypes";
|
|
8
|
-
import { AxisProps } from "./annotationTypes";
|
|
9
|
-
/** @deprecated Use Record<string, any> instead */
|
|
10
|
-
export type GenericObject = Record<string, any>;
|
|
11
|
-
export interface MarginType {
|
|
12
|
-
top: number;
|
|
13
|
-
bottom: number;
|
|
14
|
-
left: number;
|
|
15
|
-
right: number;
|
|
16
|
-
}
|
|
17
|
-
export type ProjectionTypes = "vertical" | "horizontal" | "radial";
|
|
18
|
-
export type ExtentType = number[] | {
|
|
19
|
-
extent?: number[];
|
|
20
|
-
onChange?: Function;
|
|
21
|
-
includeAnnotations?: boolean;
|
|
22
|
-
};
|
|
23
|
-
export interface ProjectedPoint {
|
|
24
|
-
x?: number;
|
|
25
|
-
y?: number;
|
|
26
|
-
xTop?: number;
|
|
27
|
-
xMiddle?: number;
|
|
28
|
-
xBottom?: number;
|
|
29
|
-
yTop?: number;
|
|
30
|
-
yMiddle?: number;
|
|
31
|
-
yBottom?: number;
|
|
32
|
-
parentSummary?: ProjectedSummary;
|
|
33
|
-
parentLine?: ProjectedLine;
|
|
34
|
-
percent?: number;
|
|
35
|
-
data?: object;
|
|
36
|
-
_XYFrameRank?: number;
|
|
37
|
-
style?: Function | object;
|
|
38
|
-
class?: Function | string;
|
|
39
|
-
coordinates?: object[];
|
|
40
|
-
}
|
|
41
|
-
export type PieceLayoutType = (args: {
|
|
42
|
-
type: string | {
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
data: Record<string, any>;
|
|
46
|
-
renderMode: (d?: Record<string, any>, i?: number) => string | Record<string, any>;
|
|
47
|
-
eventListenersGenerator: (d: object, i: number) => Record<string, Function>;
|
|
48
|
-
styleFn: (d: object) => object;
|
|
49
|
-
projection: string;
|
|
50
|
-
classFn: (d: object) => string;
|
|
51
|
-
adjustedSize: number[];
|
|
52
|
-
chartSize: number[];
|
|
53
|
-
margin: MarginType;
|
|
54
|
-
rScale?: Function;
|
|
55
|
-
}) => Record<string, any>[];
|
|
56
|
-
export interface ProjectedLine {
|
|
57
|
-
data: ProjectedPoint[];
|
|
58
|
-
key: string | number;
|
|
59
|
-
__lineIndex?: number;
|
|
60
|
-
coordinates: object[];
|
|
61
|
-
}
|
|
62
|
-
export interface ProjectedSummary {
|
|
63
|
-
_baseData: object[];
|
|
64
|
-
_xyfCoordinates: [number | Date, number | Date][];
|
|
65
|
-
coordinates: {
|
|
66
|
-
x: number;
|
|
67
|
-
y: number;
|
|
68
|
-
}[];
|
|
69
|
-
data: object[];
|
|
70
|
-
y: number;
|
|
71
|
-
x: number;
|
|
72
|
-
parentSummary?: Record<string, any>;
|
|
73
|
-
bounds: object[] | number[];
|
|
74
|
-
customMark?: Function;
|
|
75
|
-
type?: string;
|
|
76
|
-
curve?: Function;
|
|
77
|
-
processedData?: boolean;
|
|
78
|
-
binMax?: number;
|
|
79
|
-
}
|
|
80
|
-
export type RoughType = {
|
|
81
|
-
canvas: Function;
|
|
82
|
-
generator: Function;
|
|
83
|
-
};
|
|
84
|
-
export type CanvasPostProcessTypes = Function;
|
|
85
|
-
export type ExtentSettingsType = {
|
|
86
|
-
extent?: Array<number>;
|
|
87
|
-
onChange?: Function;
|
|
88
|
-
};
|
|
89
|
-
export type accessorType<ReturnValue> = string | ((args?: unknown, index?: number) => ReturnValue);
|
|
90
|
-
export type DataAccessor<TDatum, ReturnValue> = (keyof TDatum & string) | ((datum: TDatum, index?: number) => ReturnValue);
|
|
91
|
-
export interface AccessorFnType {
|
|
92
|
-
<T>(arg: Record<string, any>): T;
|
|
93
|
-
}
|
|
94
|
-
export type BasicLineTypes = "line" | "area" | "summary" | "cumulative" | "cumulative-reverse" | "linepercent" | "stackedarea" | "stackedarea-invert" | "stackedpercent" | "bumparea" | "bumparea-invert" | "bumpline" | "stackedpercent-invert" | "difference";
|
|
95
|
-
export interface LineTypeSettings {
|
|
96
|
-
type: BasicLineTypes | Function;
|
|
97
|
-
simpleLine?: boolean;
|
|
98
|
-
y1?: (d?: ProjectedPoint, index?: number) => number;
|
|
99
|
-
interpolator: string | Function;
|
|
100
|
-
}
|
|
101
|
-
export type BasicSummaryTypes = "basic" | "contour" | "hexbin" | "heatmap" | "trendline" | "linebounds";
|
|
102
|
-
export interface SummaryTypeSettings {
|
|
103
|
-
showSlope?: boolean;
|
|
104
|
-
type: BasicSummaryTypes | Function;
|
|
105
|
-
label?: string | Function;
|
|
106
|
-
cellPx?: number;
|
|
107
|
-
xCellPx?: number;
|
|
108
|
-
yCellPx?: number;
|
|
109
|
-
bins?: number;
|
|
110
|
-
xBins?: number;
|
|
111
|
-
yBins?: number;
|
|
112
|
-
binValue?: Function;
|
|
113
|
-
binMax?: number;
|
|
114
|
-
customMark?: Function;
|
|
115
|
-
}
|
|
116
|
-
export interface RawLine<TDatum = Record<string, any>> {
|
|
117
|
-
coordinates?: TDatum[];
|
|
118
|
-
}
|
|
119
|
-
export interface RawSummary<TDatum = Record<string, any>> {
|
|
120
|
-
processedData?: TDatum[];
|
|
121
|
-
coordinates?: TDatum[];
|
|
122
|
-
preprocess?: boolean;
|
|
123
|
-
}
|
|
124
|
-
export interface RawPoint<TDatum = Record<string, any>> {
|
|
125
|
-
}
|
|
126
|
-
export interface CustomAreaMarkProps {
|
|
127
|
-
d: object;
|
|
128
|
-
margin: object;
|
|
129
|
-
styleFn: Function;
|
|
130
|
-
classFn: Function;
|
|
131
|
-
renderFn: Function;
|
|
132
|
-
chartSize: Function;
|
|
133
|
-
adjustedSize: number[];
|
|
134
|
-
}
|
|
135
|
-
export interface ProjectedBin {
|
|
136
|
-
x: number;
|
|
137
|
-
y: number;
|
|
138
|
-
binItems: object[];
|
|
139
|
-
customMark?: (props: CustomAreaMarkProps) => JSX.Element;
|
|
140
|
-
_xyfCoordinates: Array<number[]>;
|
|
141
|
-
value: number;
|
|
142
|
-
percent: number;
|
|
143
|
-
data: object;
|
|
144
|
-
parentSummary: object;
|
|
145
|
-
centroid: boolean;
|
|
146
|
-
}
|
|
147
|
-
export type GenericAccessor<GenericValue> = (args?: Record<string, any>, index?: number) => GenericValue;
|
|
148
|
-
export type VizLayerTypes = "pieces" | "summaries" | "connectors" | "edges" | "nodes" | "lines" | "points";
|
|
149
|
-
export type RenderPipelineType = {
|
|
150
|
-
[key in VizLayerTypes]?: {
|
|
151
|
-
data?: object[];
|
|
152
|
-
ariaLabel?: {
|
|
153
|
-
chart?: string;
|
|
154
|
-
items?: string;
|
|
155
|
-
};
|
|
156
|
-
behavior?: Function;
|
|
157
|
-
styleFn?: Function;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
export type OrdinalSummaryTypes = "none" | "histogram" | "heatmap" | "violin" | "joy" | "ridgeline" | "boxplot" | "contour";
|
|
161
|
-
export type OrdinalSummaryTypeSettings = {
|
|
162
|
-
type: OrdinalSummaryTypes;
|
|
163
|
-
amplitude?: number;
|
|
164
|
-
eventListenersGenerator?: Function;
|
|
165
|
-
flip?: boolean;
|
|
166
|
-
bins?: number;
|
|
167
|
-
axis?: AxisProps;
|
|
168
|
-
};
|
|
169
|
-
export interface AxisSummaryTypeSettings extends OrdinalSummaryTypeSettings {
|
|
170
|
-
summaryStyle?: object;
|
|
171
|
-
pointStyle?: object;
|
|
172
|
-
renderMode?: object | string;
|
|
173
|
-
summaryClass?: string;
|
|
174
|
-
r?: number;
|
|
175
|
-
showPoints?: boolean;
|
|
176
|
-
filter?: Function;
|
|
177
|
-
}
|
|
178
|
-
export interface TransitionConfig {
|
|
179
|
-
/** Duration in milliseconds. @default 300 */
|
|
180
|
-
duration?: number;
|
|
181
|
-
/** CSS easing function. @default "ease" */
|
|
182
|
-
ease?: string;
|
|
183
|
-
}
|
|
184
|
-
export interface GeneralFrameProps {
|
|
185
|
-
title?: string | object;
|
|
186
|
-
margin?: number | {
|
|
187
|
-
top?: number;
|
|
188
|
-
bottom?: number;
|
|
189
|
-
left?: number;
|
|
190
|
-
right?: number;
|
|
191
|
-
} | ((args: object) => number | {
|
|
192
|
-
top?: number;
|
|
193
|
-
left?: number;
|
|
194
|
-
right?: number;
|
|
195
|
-
bottom?: number;
|
|
196
|
-
});
|
|
197
|
-
name?: string;
|
|
198
|
-
dataVersion?: string;
|
|
199
|
-
frameKey?: string;
|
|
200
|
-
size?: number[];
|
|
201
|
-
canvasPostProcess?: CanvasPostProcessTypes;
|
|
202
|
-
additionalDefs?: React.ReactNode;
|
|
203
|
-
className?: string;
|
|
204
|
-
customHoverBehavior?: Function;
|
|
205
|
-
customClickBehavior?: Function;
|
|
206
|
-
customDoubleClickBehavior?: Function;
|
|
207
|
-
hoverAnnotation?: CustomHoverType;
|
|
208
|
-
disableContext?: boolean;
|
|
209
|
-
interaction?: Interactivity;
|
|
210
|
-
svgAnnotationRules?: Function;
|
|
211
|
-
htmlAnnotationRules?: Function;
|
|
212
|
-
tooltipContent?: Function;
|
|
213
|
-
optimizeCustomTooltipPosition?: boolean;
|
|
214
|
-
annotations?: object[];
|
|
215
|
-
backgroundGraphics?: React.ReactNode | Function;
|
|
216
|
-
foregroundGraphics?: React.ReactNode | Function;
|
|
217
|
-
beforeElements?: React.ReactNode;
|
|
218
|
-
afterElements?: React.ReactNode;
|
|
219
|
-
annotationSettings?: AnnotationHandling;
|
|
220
|
-
renderKey?: string | GenericAccessor<string>;
|
|
221
|
-
legend?: object | boolean;
|
|
222
|
-
matte?: object;
|
|
223
|
-
onUnmount?: Function;
|
|
224
|
-
sketchyRenderingEngine?: RoughType;
|
|
225
|
-
frameRenderOrder?: Array<string>;
|
|
226
|
-
disableCanvasInteraction?: boolean;
|
|
227
|
-
interactionSettings?: AdvancedInteractionSettings;
|
|
228
|
-
disableProgressiveRendering?: boolean;
|
|
229
|
-
transition?: boolean | TransitionConfig;
|
|
230
|
-
}
|
|
231
|
-
export interface GeneralFrameState {
|
|
232
|
-
dataVersion?: string;
|
|
233
|
-
adjustedPosition: number[];
|
|
234
|
-
adjustedSize: number[];
|
|
235
|
-
backgroundGraphics?: React.ReactNode | Function;
|
|
236
|
-
foregroundGraphics?: React.ReactNode | Function;
|
|
237
|
-
title: TitleType;
|
|
238
|
-
margin: MarginType;
|
|
239
|
-
legendSettings?: LegendProps;
|
|
240
|
-
renderNumber: number;
|
|
241
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ScaleLinear } from "d3-scale";
|
|
3
|
-
import { CustomHoverType } from "./annotationTypes";
|
|
4
|
-
import { MarginType } from "./generalTypes";
|
|
5
|
-
export interface AdvancedInteractionSettings {
|
|
6
|
-
voronoiClipping?: boolean | number;
|
|
7
|
-
voronoiFilter?: Function;
|
|
8
|
-
}
|
|
9
|
-
export interface Interactivity {
|
|
10
|
-
start?: Function;
|
|
11
|
-
during?: Function;
|
|
12
|
-
end?: Function;
|
|
13
|
-
brush?: string;
|
|
14
|
-
extent?: Array<number[]> | number[];
|
|
15
|
-
columnsBrush?: boolean;
|
|
16
|
-
projection?: string;
|
|
17
|
-
projectedColumns?: object;
|
|
18
|
-
startEmpty?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export type InteractionLayerProps = {
|
|
21
|
-
name?: string;
|
|
22
|
-
interaction?: Interactivity;
|
|
23
|
-
overlay?: Array<object>;
|
|
24
|
-
oColumns?: object;
|
|
25
|
-
xScale: ScaleLinear<number, number>;
|
|
26
|
-
yScale: ScaleLinear<number, number>;
|
|
27
|
-
rScale?: ScaleLinear<number, number>;
|
|
28
|
-
svgSize: Array<number>;
|
|
29
|
-
hoverAnnotation?: CustomHoverType;
|
|
30
|
-
interactionOverflow?: {
|
|
31
|
-
top?: number;
|
|
32
|
-
bottom?: number;
|
|
33
|
-
left?: number;
|
|
34
|
-
right?: number;
|
|
35
|
-
};
|
|
36
|
-
size: Array<number>;
|
|
37
|
-
projectedYMiddle?: string;
|
|
38
|
-
projectedX: string;
|
|
39
|
-
projectedY: string;
|
|
40
|
-
points?: Array<{
|
|
41
|
-
data: Record<string, any>;
|
|
42
|
-
}>;
|
|
43
|
-
position?: number[];
|
|
44
|
-
enabled?: boolean;
|
|
45
|
-
margin: MarginType;
|
|
46
|
-
projection?: string;
|
|
47
|
-
customDoubleClickBehavior?: Function;
|
|
48
|
-
customClickBehavior?: Function;
|
|
49
|
-
customHoverBehavior?: Function;
|
|
50
|
-
canvasRendering?: boolean;
|
|
51
|
-
disableCanvasInteraction: boolean;
|
|
52
|
-
showLinePoints?: string;
|
|
53
|
-
renderPipeline: object;
|
|
54
|
-
advancedSettings?: AdvancedInteractionSettings;
|
|
55
|
-
};
|
|
56
|
-
export type VoronoiEntryType = {
|
|
57
|
-
voronoiX: number;
|
|
58
|
-
voronoiY: number;
|
|
59
|
-
coincidentPoints: object[];
|
|
60
|
-
type?: string;
|
|
61
|
-
data?: Record<string, any>;
|
|
62
|
-
};
|
|
63
|
-
export type BaseColumnType = {
|
|
64
|
-
x: number;
|
|
65
|
-
width: number;
|
|
66
|
-
};
|
|
67
|
-
export type InteractionLayerState = {
|
|
68
|
-
overlayRegions: Array<React.ReactElement>;
|
|
69
|
-
props: InteractionLayerProps;
|
|
70
|
-
canvasMap: Map<string, number>;
|
|
71
|
-
interactionCanvas: React.ReactNode;
|
|
72
|
-
};
|