New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bbox-fns

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bbox-fns - npm Package Compare versions

Comparing version 0.18.0 to 0.19.0

sort.js

2

index.js

@@ -24,2 +24,3 @@ "use_strict";

const shift = require("./shift.js");
const sort = require("./sort.js");
const split = require("./split.js");

@@ -56,2 +57,3 @@ const validate = require("./validate.js");

preciseValidate,
sort,
union,

@@ -58,0 +60,0 @@ unwrap

3

package.json
{
"name": "bbox-fns",
"version": "0.18.0",
"version": "0.19.0",
"description": "Light-weight JavaScript Bounding Box Utility Functions",

@@ -32,2 +32,3 @@ "main": "./index.js",

"shift.js",
"sort.js",
"split.js",

@@ -34,0 +35,0 @@ "union.js",

@@ -29,2 +29,3 @@ # bbox-fns: work in progress

- [shift](#shift)
- [sort](#sort)
- [split](#split)

@@ -331,2 +332,14 @@ - [union](#union)

### sort
```js
import sort from "bbox-fns/sort.js";
const bboxes = [
[175, -85, 180, 90],
[-180, -85, -175, 90]
];
sort(bboxes)
[[-180,-85,-175,90],[175,-85,180,90]]
```
### union

@@ -333,0 +346,0 @@ Combine all bounding boxes that intersect.

"use_strict";
const shift = require("./shift.js");
const sort = require("./sort.js");
const split = require("./split.js");

@@ -42,2 +43,4 @@ const union = require("./union.js");

bboxes = sort(bboxes);
return bboxes;

@@ -44,0 +47,0 @@ }

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