diff --git a/.gitignore b/.gitignore index 7f9f6e9..694e84e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +favicon.ico + data/ dist/ bundle/ diff --git a/examples/country-index.html b/examples/country-index.html index aa6d0f0..f4891e1 100644 --- a/examples/country-index.html +++ b/examples/country-index.html @@ -41,19 +41,19 @@ let countries = d3.geomap() .geofile('../dist/topojson/world/countries.json') .postUpdate(drawCountries); -let container = d3.select('#main'); +const container = d3.select('#main'); countries.draw(container); container.selectAll('*').remove(); function drawCountries() { for (let geometry of countries.geo.objects.units.geometries) { - let map_container = container.append('div') + const map_container = container.append('div') .attr('id', geometry.properties.iso3) .attr('class', 'country'); map_container.append('h2').text(geometry.properties.name); - let country = d3.geomap() + const country = d3.geomap() .geofile(`../dist/topojson/countries/${geometry.properties.iso3}.json`) .postUpdate(_ => map_container.select('path').dispatch('click')); diff --git a/rollup.config.js b/rollup.config.js index b5e5e34..df11f7c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -2,7 +2,7 @@ import postcss from 'rollup-plugin-postcss'; import babel from '@rollup/plugin-babel'; import terser from '@rollup/plugin-terser'; -import meta from './package.json' assert { type: "json" }; +import meta from './package.json' assert { type: 'json' }; function makeCssConfig({ minimize = false } = {}) {