d3-geo-scale-bar
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,2 +0,2 @@ | ||
// https://github.com/HarryStevens/d3-geo-scale-bar Version 1.0.0. Copyright 2020 Harry Stevens. | ||
// https://github.com/HarryStevens/d3-geo-scale-bar Version 1.0.1. Copyright 2020 Harry Stevens. | ||
(function (global, factory) { | ||
@@ -263,3 +263,3 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
barWidth = barDistance / (geoDistance(start, projection.invert([x + 1, y])) * radius); | ||
} // Otherwise, make it an exponent of 10 with a minimum width of 40px | ||
} // Otherwise, make it an exponent of 10 or 10x4 with a minimum width of 60px | ||
else { | ||
@@ -266,0 +266,0 @@ var dist = .01, |
{ | ||
"name": "d3-geo-scale-bar", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Displays automatic scale bars for projected geospatial data.", | ||
@@ -45,5 +45,3 @@ "keywords": [ | ||
}, | ||
"dependencies": { | ||
"d3-format": "^1.4.2" | ||
} | ||
"dependencies": {} | ||
} |
@@ -10,3 +10,3 @@ # d3-geo-scale-bar | ||
```html | ||
<script src="https://unpkg.com/d3-geo-scale-bar@1.0.0/build/d3-geo-scale-bar.min.js"></script> | ||
<script src="https://unpkg.com/d3-geo-scale-bar@1.0.1/build/d3-geo-scale-bar.min.js"></script> | ||
<script> | ||
@@ -13,0 +13,0 @@ |
@@ -38,3 +38,3 @@ import { default as geoDistance } from "./geo/distance"; | ||
} | ||
// Otherwise, make it an exponent of 10 with a minimum width of 40px | ||
// Otherwise, make it an exponent of 10 or 10x4 with a minimum width of 60px | ||
else { | ||
@@ -41,0 +41,0 @@ let dist = .01, minWidth = 60, iters = 0, maxiters = 100; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
0
63798
- Removedd3-format@^1.4.2
- Removedd3-format@1.4.5(transitive)