@allmaps/stdlib
Advanced tools
+2
-2
@@ -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 |
+2
-2
| { | ||
| "name": "@allmaps/stdlib", | ||
| "version": "1.0.0-beta.39", | ||
| "version": "1.0.0-beta.40", | ||
| "contributors": [ | ||
@@ -70,3 +70,3 @@ { | ||
| }, | ||
| "gitHead": "814686e9c8e78777708c22dcd1efc4c81d968539" | ||
| "gitHead": "5801dd5a129c88cb0aaea3f45e2e288f38565d46" | ||
| } |
+1
-1
@@ -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 |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
135188
03
200%