Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bbox-dateline

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbox-dateline - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

CHANGELOG.md
# Changelog
## 1.2.1 - 2017-06-2
- Change input BBox Typescript types to `number[]`
## 1.2.0 - 2017-05-29

@@ -4,0 +8,0 @@

4

index.d.ts

@@ -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&lt;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&lt;any>)** Center [lng, lat], BBox [west, south, east, south] or GeoJSON Feature

@@ -72,0 +65,0 @@ **Examples**

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc