bbox-dateline
Advanced tools
Comparing version 1.2.0 to 1.2.1
# Changelog | ||
## 1.2.1 - 2017-06-2 | ||
- Change input BBox Typescript types to `number[]` | ||
## 1.2.0 - 2017-05-29 | ||
@@ -4,0 +8,0 @@ |
@@ -7,5 +7,5 @@ /// <reference types="geojson" /> | ||
export function bbox(bbox: BBox | Geoms): BBox; | ||
export function center(center: Center | BBox | Geoms): BBox; | ||
export function bbox(bbox: number[] | Geoms): BBox; | ||
export function center(center: Center | number[] | Geoms): BBox; | ||
export function latitude(lat: number): number; | ||
export function longitude(lng: number): number; |
{ | ||
"name": "bbox-dateline", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Modifies a BBox to fit within the bounds of the International Date Line", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,2 +6,3 @@ # BBox Date Line | ||
[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/DenisCarriere/bbox-dateline/master/LICENSE) | ||
[![Coverage Status](https://coveralls.io/repos/github/DenisCarriere/bbox-dateline/badge.svg?branch=master)](https://coveralls.io/github/DenisCarriere/bbox-dateline?branch=master) | ||
@@ -14,18 +15,10 @@ [![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) | ||
**npm** | ||
```bash | ||
$ npm install --save bbox-dateline | ||
$ yarn add bbox-dateline | ||
``` | ||
**web browser [ES5](https://kangax.github.io/compat-table/es5)** | ||
```html | ||
<script src="https://unpkg.com/bbox-dateline/docs/bbox-dateline.min.js"></script> | ||
``` | ||
## Usage | ||
```javascript | ||
var dateline = require('bbox-dateline') | ||
const dateline = require('bbox-dateline') | ||
dateline.bbox([190, 100, -200, -120]) | ||
@@ -69,3 +62,3 @@ //= [-170, -80, 160, 60] | ||
- `center` **(\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number), [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)] | BBox | FeatureCollection | Feature<any>)** Center [lng, lat], BBox [west, south, east, south] or GeoJSON Feature | ||
- `coord` **(\[[number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number), [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number)] | BBox | FeatureCollection | Feature<any>)** Center [lng, lat], BBox [west, south, east, south] or GeoJSON Feature | ||
@@ -72,0 +65,0 @@ **Examples** |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9616
0
104