Merge branch 'develop' of github.com:freesewing/freesewing into develop
This commit is contained in:
commit
2e29a91c1c
2 changed files with 11 additions and 1 deletions
|
@ -1,11 +1,17 @@
|
|||
import neckstimate from '../neckstimate'
|
||||
|
||||
// This returns how many sizes a measurement differs from the neckstimate value
|
||||
// 0 and 2 is great
|
||||
// 2 to 5 is hmmm
|
||||
// and above 5 is probably wrong
|
||||
const measurementDiffers = (
|
||||
neckCircumference,
|
||||
measurementName,
|
||||
measurementValue,
|
||||
breasts = false
|
||||
) => Math.abs(Math.round((measurementValue - neckstimate(neckCircumference, measurementName)) / 20))
|
||||
) =>
|
||||
Math.abs(
|
||||
Math.round((measurementValue - neckstimate(neckCircumference, measurementName, breasts)) / 20)
|
||||
)
|
||||
|
||||
export default measurementDiffers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue