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:
parent
164e0175ba
commit
b811a7179d
3 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -31,7 +31,7 @@ export default {
|
|||
neckCircumference: 340,
|
||||
seatCircumference: 1010,
|
||||
seatDepth: 165,
|
||||
shoulderSlope: 520,
|
||||
shoulderSlope: 17,
|
||||
shoulderToElbow: 340,
|
||||
shoulderToShoulder: 415,
|
||||
shoulderToWrist: 590,
|
||||
|
|
|
@ -24,7 +24,7 @@ export default {
|
|||
neckCircumference: 380,
|
||||
seatCircumference: 1020,
|
||||
seatDepth: 210,
|
||||
shoulderSlope: 595,
|
||||
shoulderSlope: 17,
|
||||
shoulderToElbow: 360,
|
||||
shoulderToShoulder: 450,
|
||||
shoulderToWrist: 630,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue