From dd82f91f0b5c6c0a07b16a3ae456077a5dc57c66 Mon Sep 17 00:00:00 2001 From: Peter Pauly Date: Sun, 27 Jun 2021 17:53:48 +0200 Subject: [PATCH 1/2] fixes return type for dof_far() --- src/crop-factor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crop-factor.js b/src/crop-factor.js index f1bff17..1786656 100644 --- a/src/crop-factor.js +++ b/src/crop-factor.js @@ -44,7 +44,7 @@ dof_near = (distance, focal_length, f_stop, coc) => { dof_far = (distance, focal_length, f_stop, coc) => { hyperfocal_dist = hyperfocal(focal_length, f_stop, coc) - return ( + return Number( (hyperfocal_dist * distance / (hyperfocal_dist - distance + focal_length) / 1000 ).toFixed(2) From fcc22da510ed0e761f399faac46cddf3ba8f7adb Mon Sep 17 00:00:00 2001 From: Peter Pauly Date: Sun, 27 Jun 2021 17:54:17 +0200 Subject: [PATCH 2/2] v0.2.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a975dad..63d4db9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photography-toolbox", - "version": "0.2.6", + "version": "0.2.9", "description": "A toolbox for calculationg Depth of Field, Exposure and much more to come ", "main": "./src/index.js", "scripts": {