1
0
Fork 0

chore(carlton): Ported carlton to new measurements. See #416

This commit is contained in:
Joost De Cock 2020-06-01 15:20:34 +02:00
parent a7f4522753
commit cb5b5da33b
5 changed files with 14 additions and 12 deletions

View file

@ -1,12 +1,12 @@
/**
* This calculates a bunch of helper variables and stores them
*/
export const calculateRatios = part => {
export const calculateRatios = (part) => {
let { store, measurements, options } = part.shorthand()
// Calculate different values for reducing from chest to hips via waist
store.set('chest', measurements.chestCircumference * (1 + options.chestEase))
store.set('waist', measurements.naturalWaist * (1 + options.waistEase))
store.set('waist', measurements.waistCircumference * (1 + options.waistEase))
store.set('hips', measurements.hipsCircumference * (1 + options.hipsEase))
store.set('seat', measurements.seatCircumference * (1 + options.seatEase))