1
0
Fork 0

refactor(tamiko): Removed deprecated measurements from Tamiko

This commit is contained in:
Joost De Cock 2020-02-01 16:29:33 +01:00
parent 5aee2528dd
commit 606937ce07
2 changed files with 2 additions and 9 deletions

View file

@ -13,12 +13,7 @@ export default {
fit: ['armholeDepthFactor', 'chestEase', 'shoulderSlope'], fit: ['armholeDepthFactor', 'chestEase', 'shoulderSlope'],
style: ['flare', 'lengthBonus', 'shoulderseamLength'] style: ['flare', 'lengthBonus', 'shoulderseamLength']
}, },
measurements: [ measurements: ['shoulderToShoulder', 'chestCircumference', 'hpsToHipsBack'],
'shoulderToShoulder',
'chestCircumference',
'centerBackNeckToWaist',
'naturalWaistToHip'
],
parts: ['top'], parts: ['top'],
options: { options: {
armholeDepthFactor: { armholeDepthFactor: {

View file

@ -21,9 +21,7 @@ export default function(part) {
let chest = (measurements.chestCircumference / 2) * (1 + options.chestEase) let chest = (measurements.chestCircumference / 2) * (1 + options.chestEase)
// Length // Length
let length = let length = (1 + options.lengthBonus) * measurements.hpsToHipsBack
(1 + options.lengthBonus) *
(measurements.centerBackNeckToWaist + measurements.naturalWaistToHip)
// Armhole depth // Armhole depth
let arm = shoulders * options.armholeDepthFactor let arm = shoulders * options.armholeDepthFactor