@undp/data-viz 0.0.2 → 0.0.5
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/index.cjs +148 -173
- package/dist/index.d.ts +310 -73
- package/dist/index.js +46182 -49926
- package/dist/index.umd.js +148 -173
- package/dist/style.css +1 -1
- package/package.json +7 -5
- package/readme.md +7 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@undp/data-viz",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
6
|
"browser": "./dist/index.umd.js",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"preview": "vite preview",
|
|
45
45
|
"storybook": "storybook dev -p 6006",
|
|
46
46
|
"build-storybook": "storybook build",
|
|
47
|
-
"clean": "rimraf node_modules && rimraf dist"
|
|
47
|
+
"clean": "rimraf node_modules && rimraf dist && rimraf package-lock.json"
|
|
48
48
|
},
|
|
49
49
|
"keywords": [
|
|
50
50
|
"UNDP",
|
|
@@ -60,7 +60,9 @@
|
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@dnd-kit/core": "^6.3.1",
|
|
62
62
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
63
|
-
"@
|
|
63
|
+
"@turf/bbox": "^7.2.0",
|
|
64
|
+
"@turf/centroid": "^7.2.0",
|
|
65
|
+
"@undp/design-system-react": "^0.0.3",
|
|
64
66
|
"ajv": "^8.17.1",
|
|
65
67
|
"d3-array": "^3.2.4",
|
|
66
68
|
"d3-delaunay": "^6.0.4",
|
|
@@ -78,7 +80,7 @@
|
|
|
78
80
|
"fast-deep-equal": "^3.1.3",
|
|
79
81
|
"file-saver": "^2.0.5",
|
|
80
82
|
"handlebars": "^4.7.8",
|
|
81
|
-
"
|
|
83
|
+
"html-to-image": "^1.11.13",
|
|
82
84
|
"lodash.flattendeep": "^4.4.0",
|
|
83
85
|
"lodash.groupby": "^4.6.0",
|
|
84
86
|
"lodash.intersection": "^4.4.0",
|
|
@@ -126,8 +128,8 @@
|
|
|
126
128
|
"@types/d3-selection": "^3.0.5",
|
|
127
129
|
"@types/d3-shape": "^3.1.1",
|
|
128
130
|
"@types/d3-zoom": "^3.0.3",
|
|
129
|
-
"@types/dom-to-image": "^2.6.4",
|
|
130
131
|
"@types/file-saver": "^2.0.5",
|
|
132
|
+
"@types/geojson": "^7946.0.16",
|
|
131
133
|
"@types/lodash.flattendeep": "^4.4.9",
|
|
132
134
|
"@types/lodash.groupby": "^4.6.9",
|
|
133
135
|
"@types/lodash.intersection": "^4.4.9",
|
package/readme.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# Getting Started
|
|
2
2
|
|
|
3
|
-
UNDP visualization library is dedicated to providing a good development experience for data visualization specialists. Before starting, it is recommended to learn React first, and correctly install and configure Node.js
|
|
3
|
+
UNDP visualization library is dedicated to providing a good development experience for data visualization specialists. Before starting, it is recommended to learn React first, and correctly install and configure Node.js v18 or above.
|
|
4
4
|
|
|
5
5
|
We also assumes that you have intermediate knowledge about HTML, CSS, and JavaScript/TypeScript, and React. Starting out is straightforward.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
__Note: The library uses react v19__
|
|
8
|
+
|
|
9
|
+
Detailed documentation can be found [here](https://jolly-field-038560703.6.azurestaticapps.net/).
|
|
8
10
|
|
|
9
11
|
### Installation
|
|
10
12
|
__Using npm__
|
|
@@ -58,7 +60,7 @@ The dependencies that are pre-installed wit the library:
|
|
|
58
60
|
* lodash.sum
|
|
59
61
|
* lodash.uniq
|
|
60
62
|
* lodash.uniqby
|
|
61
|
-
* maplibre-gl - For Maplibre maps
|
|
63
|
+
* maplibre-gl - For Maplibre maps (Peer dependency)
|
|
62
64
|
* pmtiles - For adding pmtiles to Maplibre maps
|
|
63
65
|
* papaparse - For loading and parsing csv from links
|
|
64
66
|
* motion - For creating animations in the animated graphs
|
|
@@ -71,5 +73,5 @@ The dependencies that are pre-installed wit the library:
|
|
|
71
73
|
* dom-to-svg - For downloading div as svg
|
|
72
74
|
* file-saver - For downloading files
|
|
73
75
|
* react-csv - For generating a csv file
|
|
74
|
-
* xlsx - For generating a xlsx file
|
|
75
|
-
* React (of course!)
|
|
76
|
+
* xlsx - For generating a xlsx file (Peer dependency)
|
|
77
|
+
* React (of course!) (Peer dependency)
|