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'],
style: ['flare', 'lengthBonus', 'shoulderseamLength']
},
measurements: [
'shoulderToShoulder',
'chestCircumference',
'centerBackNeckToWaist',
'naturalWaistToHip'
],
measurements: ['shoulderToShoulder', 'chestCircumference', 'hpsToHipsBack'],
parts: ['top'],
options: {
armholeDepthFactor: {

View file

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