1
0
Fork 0
freesewing/designs/shin/config/index.js
2022-07-12 20:09:17 +02:00

39 lines
1.1 KiB
JavaScript

import { version } from '../package.json'
import configHelpers from '@freesewing/config-helpers'
const { elastics, pctBasedOn } = configHelpers
export default {
version,
name: 'shin',
design: 'Joost De Cock',
code: 'Joost De Cock',
department: 'swimwear',
type: 'pattern',
difficulty: 2,
optionGroups: {
fit: ['bulge', 'backRise', 'legReduction', 'stretch'],
style: ['rise', 'elasticWidth'],
},
measurements: ['hips', 'upperLeg', 'waistToUpperLeg', 'waistToHips'],
dependencies: {
front: 'back',
},
parts: ['back', 'front', 'waistband'],
options: {
// Constants
frontFactor: 0.58,
legFrontFactor: 0.48,
gussetFactor: 0.0714,
angle: 10,
//elasticWidth: { mm: 35, min: 15, max: 60 },
// Percentages
elasticWidth: { pct: 10, min: 4, max: 20, snap: elastics, ...pctBasedOn('waistToUpperLeg') },
stretch: { pct: 20, min: 10, max: 30 },
bulge: { pct: 2.5, min: 0, max: 5 },
legReduction: { pct: 5, min: 0, max: 10 },
rise: { pct: 0, min: 0, max: 25 },
backRise: { pct: 5, min: 0, max: 10 },
},
}