🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@allmaps/stdlib

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allmaps/stdlib - npm Package Compare versions

Comparing version
1.0.0-beta.39
to
1.0.0-beta.40
+2
-2
dist/bbox.js

@@ -117,7 +117,7 @@ import monotoneChainConvexHull from 'monotone-chain-convex-hull';

export function bufferBboxByRatio(bbox, ratio) {
if (!ratio || ratio === 0) {
if (!ratio || ratio === 1) {
return bbox;
}
const size = bboxToSize(bbox);
return bufferBbox(bbox, ...size.map((widthOrHeigth) => (widthOrHeigth * ratio) / 2));
return bufferBbox(bbox, ...size.map((widthOrHeigth) => (widthOrHeigth * (ratio - 1)) / 2));
}

@@ -124,0 +124,0 @@ // Transform

{
"name": "@allmaps/stdlib",
"version": "1.0.0-beta.39",
"version": "1.0.0-beta.40",
"contributors": [

@@ -70,3 +70,3 @@ {

},
"gitHead": "814686e9c8e78777708c22dcd1efc4c81d968539"
"gitHead": "5801dd5a129c88cb0aaea3f45e2e288f38565d46"
}

@@ -1280,3 +1280,3 @@ # @allmaps/stdlib

* `map` (`{ type: "GeoreferencedMap"; resource: { type: "ImageService1" | "ImageService2" | "ImageService3" | "Canvas"; id: string; height?: number | undefined; width?: number | undefined; partOf?: ({ type: string; id: string; label?: Record<string, (string | number | boolean)[]> | undefined; } & { partOf?: ({ type: string; i...`)
* `map` (`{ type: "GeoreferencedMap"; gcps: { resource: [number, number]; geo: [number, number]; }[]; resource: { type: "ImageService1" | "ImageService2" | "ImageService3" | "Canvas"; id: string; partOf?: ({ type: string; id: string; label?: Record<string, (string | number | boolean)[]> | undefined; } & { partOf?: ({ type: st...`)

@@ -1283,0 +1283,0 @@ ###### Returns