mapwhizz 1.1.1 → 1.1.2
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/package.json +23 -12
- package/src/index.js +4 -9
- package/world-map.svg +0 -1035
package/package.json
CHANGED
|
@@ -1,19 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapwhizz",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "A reusable and customizable SVG map component for visualizing country-based data.",
|
|
5
|
+
"main": "src/index.js",
|
|
6
|
+
"module": "src/index.js",
|
|
7
|
+
"types": "src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
"import": "./src/index.js",
|
|
10
|
+
"require": "./src/index.cjs"
|
|
8
11
|
},
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"geo",
|
|
14
|
-
"geo map",
|
|
15
|
-
""
|
|
12
|
+
"files": [
|
|
13
|
+
"src/index.js",
|
|
14
|
+
"README.md",
|
|
15
|
+
"dist"
|
|
16
16
|
],
|
|
17
|
+
"dependencies": {},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"typescript": "^4.9.0",
|
|
20
|
+
"rollup": "^3.0.0",
|
|
21
|
+
"rollup-plugin-terser": "^7.0.2"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/samergoda/mapwhizz.git"
|
|
26
|
+
},
|
|
27
|
+
"keywords": ["map", "svg", "data-visualization", "interactive-map"],
|
|
17
28
|
"author": "samer-goda",
|
|
18
29
|
"license": "ISC"
|
|
19
30
|
}
|
package/src/index.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
1
|
// Start Class MapWhizz
|
|
3
|
-
class MapWhizz {
|
|
2
|
+
export default class MapWhizz {
|
|
4
3
|
constructor(container, data) {
|
|
5
|
-
if (!(container instanceof HTMLElement)) {
|
|
6
|
-
console.error('Invalid container element');
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
4
|
this.container = container;
|
|
11
5
|
this.data = data;
|
|
12
|
-
|
|
6
|
+
}
|
|
13
7
|
|
|
14
|
-
|
|
8
|
+
mount() {
|
|
9
|
+
console.log('MapWhizz mounted', this.container, this.data);
|
|
15
10
|
}
|
|
16
11
|
|
|
17
12
|
mount() {
|