1
0
Fork 0

breaking: neckstimate always returns 17 for shoulderSlope

We're making shoulderSlope a degree measurements, which defaults to 17.
See #358 for details
This commit is contained in:
Joost De Cock 2020-05-24 10:37:24 +02:00
parent 164e0175ba
commit b811a7179d
3 changed files with 5 additions and 2 deletions

View file

@ -6,6 +6,9 @@ import ratio from './ratio'
const neckstimate = (neckCircumference = false, measurement = false, breasts = false) => {
let data = breasts ? withBreasts : withoutBreasts
// Shoulder slope is in degrees now. Always defaults to 17.
if (measurement === 'shoulderSlope') return 17
if (!neckCircumference)
throw new Error('neckstimate() requires a neck circumference in mm as first parameter')
if (!measurement) {

View file

@ -31,7 +31,7 @@ export default {
neckCircumference: 340,
seatCircumference: 1010,
seatDepth: 165,
shoulderSlope: 520,
shoulderSlope: 17,
shoulderToElbow: 340,
shoulderToShoulder: 415,
shoulderToWrist: 590,

View file

@ -24,7 +24,7 @@ export default {
neckCircumference: 380,
seatCircumference: 1020,
seatDepth: 210,
shoulderSlope: 595,
shoulderSlope: 17,
shoulderToElbow: 360,
shoulderToShoulder: 450,
shoulderToWrist: 630,