File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change
1
+ favicon.ico
2
+
1
3
data /
2
4
dist /
3
5
bundle /
Original file line number Diff line number Diff line change 41
41
let countries = d3 . geomap ( )
42
42
. geofile ( '../dist/topojson/world/countries.json' )
43
43
. postUpdate ( drawCountries ) ;
44
- let container = d3 . select ( '#main' ) ;
44
+ const container = d3 . select ( '#main' ) ;
45
45
46
46
countries . draw ( container ) ;
47
47
container . selectAll ( '*' ) . remove ( ) ;
48
48
49
49
function drawCountries ( ) {
50
50
for ( let geometry of countries . geo . objects . units . geometries ) {
51
- let map_container = container . append ( 'div' )
51
+ const map_container = container . append ( 'div' )
52
52
. attr ( 'id' , geometry . properties . iso3 )
53
53
. attr ( 'class' , 'country' ) ;
54
54
map_container . append ( 'h2' ) . text ( geometry . properties . name ) ;
55
55
56
- let country = d3 . geomap ( )
56
+ const country = d3 . geomap ( )
57
57
. geofile ( `../dist/topojson/countries/${ geometry . properties . iso3 } .json` )
58
58
. postUpdate ( _ => map_container . select ( 'path' ) . dispatch ( 'click' ) ) ;
59
59
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import postcss from 'rollup-plugin-postcss';
2
2
import babel from '@rollup/plugin-babel' ;
3
3
import terser from '@rollup/plugin-terser' ;
4
4
5
- import meta from './package.json' assert { type : " json " } ;
5
+ import meta from './package.json' assert { type : ' json ' } ;
6
6
7
7
8
8
function makeCssConfig ( { minimize = false } = { } ) {
You can’t perform that action at this time.
0 commit comments