From ce9f49d330d17a2cfdaa03be7f3b04286a285bfb Mon Sep 17 00:00:00 2001 From: HarryStevens Date: Sun, 27 Sep 2020 13:22:53 -0400 Subject: [PATCH] Improve heuristic for deciding how much distance the bar represents by allowing it to scale to 1x, 2x, 4x and 5x of an exponent. --- README.md | 28 ++++++++++++++-------------- build/d3-geo-scale-bar.js | 16 +++++++++------- build/d3-geo-scale-bar.min.js | 1 - build/d3-geo-scale-bar.zip | Bin 11339 -> 0 bytes src/geoScaleBar.js | 19 ++++++++++++------- 5 files changed, 35 insertions(+), 29 deletions(-) delete mode 100644 build/d3-geo-scale-bar.min.js delete mode 100644 build/d3-geo-scale-bar.zip diff --git a/README.md b/README.md index 099d111..34da5ea 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ d3-geo-scale-bar is a JavaScript library and [D3.js](https://d3js.org/) plugin t If you use NPM, `npm install d3-geo-scale-bar`. Otherwise, download the [latest release](https://github.com/HarryStevens/d3-geo-scale-bar/raw/master/build/d3-geo-scale-bar.zip). AMD, CommonJS, and vanilla environments are supported. In vanilla, a d3 global is exported: ```html - +