@cdc/map 2.6.3 → 9.22.9
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/dist/cdcmap.js +32 -18
- package/examples/bubble-us.json +363 -0
- package/examples/bubble-world.json +427 -0
- package/examples/default-county.json +64 -12
- package/examples/default-hex.json +477 -0
- package/examples/default-usa-regions.json +118 -0
- package/examples/default-usa.json +1 -1
- package/examples/default-world-data.json +1450 -0
- package/examples/default-world.json +5 -3
- package/examples/example-city-state.json +46 -1
- package/examples/gallery/categorical-qualitative.json +797 -0
- package/examples/gallery/categorical-scale-based.json +739 -0
- package/examples/gallery/city-state.json +479 -0
- package/examples/gallery/county.json +22731 -0
- package/examples/gallery/equal-interval.json +1027 -0
- package/examples/gallery/equal-number.json +1027 -0
- package/examples/gallery/filterable.json +909 -0
- package/examples/gallery/hex-filtered.json +420 -0
- package/examples/gallery/hex.json +413 -0
- package/examples/gallery/single-state.json +21402 -0
- package/examples/gallery/world.json +1592 -0
- package/examples/private/atsdr.json +439 -0
- package/examples/private/atsdr_new.json +436 -0
- package/examples/private/bubble.json +285 -0
- package/examples/private/city-state.json +428 -0
- package/examples/private/cty-issue.json +42768 -0
- package/examples/private/default-usa.json +460 -0
- package/examples/private/default-world-data.json +1444 -0
- package/examples/private/default.json +968 -0
- package/examples/private/legend-issue.json +1 -0
- package/examples/private/map-rounding-error.json +42759 -0
- package/examples/private/map.csv +60 -0
- package/examples/private/mdx.json +210 -0
- package/examples/private/monkeypox.json +376 -0
- package/examples/private/regions.json +52 -0
- package/examples/private/valid-data-map.csv +59 -0
- package/examples/private/wcmsrd-13881-data.json +2858 -0
- package/examples/private/wcmsrd-13881.json +5823 -0
- package/examples/private/wcmsrd-14492-data.json +292 -0
- package/examples/private/wcmsrd-14492.json +114 -0
- package/examples/private/wcmsrd-test.json +268 -0
- package/examples/private/world.json +1580 -0
- package/examples/private/worldmap.json +1490 -0
- package/package.json +51 -50
- package/src/CdcMap.js +496 -158
- package/src/components/BubbleList.js +244 -0
- package/src/components/CityList.js +41 -5
- package/src/components/CountyMap.js +16 -6
- package/src/components/DataTable.js +25 -18
- package/src/components/EditorPanel.js +915 -404
- package/src/components/Geo.js +1 -1
- package/src/components/Modal.js +2 -1
- package/src/components/NavigationMenu.js +4 -3
- package/src/components/Sidebar.js +14 -19
- package/src/components/SingleStateMap.js +11 -5
- package/src/components/UsaMap.js +103 -36
- package/src/components/UsaRegionMap.js +320 -0
- package/src/components/WorldMap.js +116 -34
- package/src/data/country-coordinates.js +250 -0
- package/src/data/{dfc-map.json → county-map.json} +0 -0
- package/src/data/initial-state.js +20 -2
- package/src/data/state-coordinates.js +55 -0
- package/src/data/supported-geos.js +96 -15
- package/src/data/us-regions-topo-2.json +360525 -0
- package/src/data/us-regions-topo.json +37894 -0
- package/src/hooks/useColorPalette.ts +96 -0
- package/src/index.html +7 -4
- package/src/scss/editor-panel.scss +78 -57
- package/src/scss/main.scss +1 -1
- package/src/scss/map.scss +112 -2
- package/src/scss/sidebar.scss +2 -1
- package/src/data/color-palettes.js +0 -200
- package/src/images/map-folded.svg +0 -1
package/package.json
CHANGED
|
@@ -1,52 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
2
|
+
"name": "@cdc/map",
|
|
3
|
+
"version": "9.22.9",
|
|
4
|
+
"description": "React component for visualizing tabular data on a map of the United States or the world.",
|
|
5
|
+
"main": "dist/cdcmap",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "npx webpack serve --mode development -c ../../webpack.config.js",
|
|
8
|
+
"build": "npx webpack --mode production --env packageName=CdcMap --env folderName=map -c ../../webpack.config.js",
|
|
9
|
+
"prepublishOnly": "lerna run --scope @cdc/map build"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/CDCgov/cdc-open-viz",
|
|
14
|
+
"directory": "packages/map"
|
|
15
|
+
},
|
|
16
|
+
"author": "Daniel Immke <npm@daniel.do>",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/CDCgov/cdc-open-viz/issues"
|
|
19
|
+
},
|
|
20
|
+
"license": "Apache-2.0",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@babel/runtime": "^7.12.5",
|
|
23
|
+
"@cdc/core": "^9.22.9",
|
|
24
|
+
"@emotion/core": "^10.0.28",
|
|
25
|
+
"@emotion/react": "^11.1.5",
|
|
26
|
+
"@visx/geo": "^1.13.0",
|
|
27
|
+
"canvg": "^3.0.7",
|
|
28
|
+
"chroma": "0.0.1",
|
|
29
|
+
"chroma-js": "^2.1.0",
|
|
30
|
+
"d3": "^6.6.0",
|
|
31
|
+
"d3-composite-projections": "^1.4.0",
|
|
32
|
+
"html-react-parser": "1.4.9",
|
|
33
|
+
"html2canvas": "^1.0.0-rc.7",
|
|
34
|
+
"html2pdf.js": "^0.9.2",
|
|
35
|
+
"papaparse": "^5.3.0",
|
|
36
|
+
"react-accessible-accordion": "^3.0.1",
|
|
37
|
+
"react-beautiful-dnd": "^13.0.0",
|
|
38
|
+
"react-table": "^7.5.0",
|
|
39
|
+
"react-tag-autocomplete": "^6.0.0",
|
|
40
|
+
"react-tooltip": "4.2.8",
|
|
41
|
+
"topojson-client": "^3.1.0",
|
|
42
|
+
"use-debounce": "^5.2.0",
|
|
43
|
+
"whatwg-fetch": "^3.6.2"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react": ">=16.8",
|
|
47
|
+
"react-dom": ">=16"
|
|
48
|
+
},
|
|
49
|
+
"resolutions": {
|
|
50
|
+
"@types/react": "17.x"
|
|
51
|
+
},
|
|
52
|
+
"gitHead": "90faf22c91ca0062432607e4599598f9e67c848a"
|
|
52
53
|
}
|