From 07458cdbe0c7ad54d8469925b2fdc20c577708af Mon Sep 17 00:00:00 2001 From: Vincent Hardouin Date: Fri, 12 Jul 2024 18:59:04 +0200 Subject: [PATCH] refactor: remove useless params --- src/map.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map.js b/src/map.js index 4594d00..82c44f6 100644 --- a/src/map.js +++ b/src/map.js @@ -34,7 +34,7 @@ class ParisMap { #draw() { this.#resize(); - this.#drawParis({ arrondissements: this.#arrondissements, projection: this.#projection, g: this.#g, svg: this.#svg }); + this.#drawParis(); } #remove() { @@ -81,7 +81,7 @@ class ParisMap { #resize() { const width = Number.parseInt(this.#svg.style('width')); const height = width * 0.625; - this.#projection + this.#projection = this.#projection .center(PARIS_COORDINATES) .scale(this.#scale(height)) .translate([width / 2, height / 2]);