Socket
Socket
Sign inDemoInstall

d3-geo-scale-bar

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

4

build/d3-geo-scale-bar.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc