tada: Initial commit
This commit is contained in:
parent
2d5396c343
commit
c0ace10e2d
27 changed files with 5474 additions and 2 deletions
15
packages/carlton/src/shared.js
Normal file
15
packages/carlton/src/shared.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* This calculates a bunch of helper variables and stores them
|
||||
*/
|
||||
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("hips", measurements.hipsCircumference * (1 + options.hipsEase));
|
||||
store.set("seat", measurements.seatCircumference * (1 + options.seatEase));
|
||||
|
||||
store.set("waistReduction", store.get("chest") - store.get("waist"));
|
||||
store.set("hipsReduction", store.get("chest") - store.get("hips"));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue