Skip to content

Commit

Permalink
Add more d3 subpackages needed to get Beeswarm stories working.
Browse files Browse the repository at this point in the history
  • Loading branch information
patcon committed Oct 21, 2024
1 parent a0bd01c commit 8976195
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
10 changes: 8 additions & 2 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ import jquery from 'jquery';
global.$ = jquery;
global.jQuery = jquery;

import * as d3scale from 'd3-scale';
import * as d3array from 'd3-array';
import * as d3force from 'd3-force';
import * as d3geo from 'd3-geo';
import * as d3scale from 'd3-scale';
import * as d3voronoi from 'd3-voronoi';
global.d3 = {
...d3scale,
...d3array,
...d3force,
...d3geo,
...d3scale,
...d3voronoi,
};

// This is where we mock responses for PolisNet endpoints.
Expand Down
41 changes: 32 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@
"dependencies": {
"@react-spring/web": "^9.7.4",
"color": "~4.2.3",
"d3-array": "1.0.2",
"d3-contour": "~1.1.2",
"d3-force": "~1.2.1",
"d3-geo": "1.5.0",
"d3-scale": "1.0.4",
"d3-scale-chromatic": "~1.1.1",
"d3-voronoi": "1.1.1",
"hull.js": "^0.2.11",
"radium": "^0.26.2",
"react-chat-widget": "^3.0.5",
Expand Down

0 comments on commit 8976195

Please sign in to comment.