eurostat-map 4.3.19 → 4.3.21

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/README.md CHANGED
@@ -1,8 +1,4 @@
1
- <div align="center">
2
-
3
- # [eurostat-map](https://github.com/eurostat/eurostat-map)
4
1
 
5
- </div>
6
2
 
7
3
  <div align="center">
8
4
  <img src="https://img.shields.io/bundlephobia/min/eurostat-map" alt="npm bundle size">
@@ -10,38 +6,39 @@
10
6
  <img src="https://img.shields.io/badge/license-EUPL-success" alt="license">
11
7
  <a href="http://www.awesomeofficialstatistics.org"><img src="https://awesome.re/mentioned-badge.svg" alt="Mentioned in Awesome Official Statistics"></a>
12
8
  </div>
13
-
9
+ <br>
10
+ <div align="center">
11
+ <img src="https://raw.githubusercontent.com/eurostat/eurostat-map/master/docs/img/eurostat-map-logo-cropped.png" alt="examples" width="400"/>
12
+ </div>
14
13
  <div align="center">
15
14
  <em>Customizable thematic maps. See <strong><a href="docs/reference.md">documentation</a></strong>.</em>
16
15
  </div>
17
16
 
18
- <br>
17
+ <hr>
19
18
 
20
19
  <div align="center">
21
- <a href="https://eurostat.github.io/eurostat-map/examples/population-density.html" target="_blank"> <img src="https://raw.githubusercontent.com/eurostat/eurostat-map/master/docs/img/examples.gif" alt="examples" width="600"/> </a>
20
+ Based on D3 and designed for Eurostat data but compatible with custom geometries and stats.
22
21
  </div>
23
-
24
22
  <div align="center">
25
- <em>Based on D3 and designed for Eurostat data but compatible with custom geometries and stats.</em>
23
+ Check out <a href="https://observablehq.com/collection/@eurostat-ws/eurostatmap-js" target="_blank">this observable notebook</a> for a quickstart guide.
26
24
  </div>
25
+ <br>
27
26
  <div align="center">
28
- Check out <a href="https://observablehq.com/collection/@eurostat-ws/eurostatmap-js" target="_blank">this observable notebook</a> for a quickstart guide.
27
+ <a href="https://eurostat.github.io/eurostat-map/examples/population-density.html" target="_blank"> <img src="https://raw.githubusercontent.com/eurostat/eurostat-map/master/docs/img/examples.gif" alt="examples" width="600"/> </a>
29
28
  </div>
30
-
29
+
31
30
  ---
32
31
 
33
32
  ## Table of Contents
34
33
 
35
- - [eurostat-map](#eurostat-map)
36
- - [Table of Contents](#table-of-contents)
37
- - [Examples](#examples)
38
- - [Installation](#installation)
39
- - [Documentation](#documentation)
40
- - [Technical details](#technical-details)
41
- - [About](#about)
42
- - [Contribute](#contribute)
43
- - [Copyright](#copyright)
44
- - [Disclaimer](#disclaimer)
34
+ - [Examples](#examples)
35
+ - [Installation](#installation)
36
+ - [Documentation](#documentation)
37
+ - [Technical details](#technical-details)
38
+ - [About](#about)
39
+ - [Contribute](#contribute)
40
+ - [Copyright](#copyright)
41
+ - [Disclaimer](#disclaimer)
45
42
 
46
43
  ---
47
44
 
@@ -63,7 +60,6 @@ https://observablehq.com/@joewdavies/eurostat-map-js
63
60
 
64
61
  - [Population density](https://eurostat.github.io/eurostat-map/examples/population-density.html) (see [the code](https://github.com/eurostat/eurostat-map/blob/master/examples/population-density.html))
65
62
  - [Population map with proportional circles](https://eurostat.github.io/eurostat-map/examples/prop-circles.html) (see [the code](https://github.com/eurostat/eurostat-map/blob/master/examples/prop-circles.html))
66
- - [GDP map with custom proportional symbols](https://eurostat.github.io/eurostat-map/examples/prop-symbols.html) (see [the code](https://github.com/eurostat/eurostat-map/blob/master/examples/prop-symbols.html))
67
63
  - [Causes of death with proportional pie charts](https://eurostat.github.io/eurostat-map/examples/prop-piecharts.html) (see [the code](https://github.com/eurostat/eurostat-map/blob/master/examples/prop-piecharts.html))
68
64
  - [Population change ](https://eurostat.github.io/eurostat-map/examples/population-change.html) (see [the code](https://github.com/eurostat/eurostat-map/blob/master/examples/population-change.html))
69
65
  - [NUTS typology as a categorical map](https://eurostat.github.io/eurostat-map/examples/categorical.html) (see [the code](https://github.com/eurostat/eurostat-map/blob/master/examples/categorical.html))
@@ -1,2 +1,2 @@
1
- /*! /*! eurostat-map v4.3.19 | 2025 Eurostat | EUPL License. See https://github.com/eurostat/eurostat-map/blob/master/LICENSE * / */
1
+ /*! /*! eurostat-map v4.3.21 | 2025 Eurostat | EUPL License. See https://github.com/eurostat/eurostat-map/blob/master/LICENSE * / */
2
2
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.eurostatmap=t():e.eurostatmap=t()}(self,()=>(onmessage=function(e){var t=e.data,o=t.nodes,r=t.radii,n=t.strengthX,s=t.strengthY,i=t.iterations,p=t.d3URL;importScripts(p||"https://unpkg.com/d3@7/dist/d3.min.js");for(var c=o.map(function(e,t){return e.x=e.properties.centroid[0],e.y=e.properties.centroid[1],e.r=r[t],e}),a=d3.forceSimulation(c).force("x",d3.forceX(function(e){return e.properties.centroid[0]}).strength(n)).force("y",d3.forceY(function(e){return e.properties.centroid[1]}).strength(s)).force("collide",d3.forceCollide(function(e){return e.r}).iterations(i)).stop(),d=Math.ceil(Math.log(a.alphaMin())/Math.log(1-a.alphaDecay())),f=0;f<d;f++)a.tick(),f%10==0&&postMessage({type:"progress",progress:f,total:d});postMessage({type:"end",nodes:c}),self.close()},{}));