1
0
Fork 0
freesewing/packages/sven/config/index.js

50 lines
1.3 KiB
JavaScript
Raw Normal View History

import { version } from '../package.json'
import { config as brianConfig } from '@freesewing/brian'
2019-01-03 15:19:50 +01:00
export default {
version,
name: 'sven',
design: 'Joost De Cock',
code: 'Joost De Cock',
department: 'tops',
type: 'pattern',
difficulty: 3,
optionGroups: {
fit: [...brianConfig.optionGroups.fit, 'hipsEase'],
style: [...brianConfig.optionGroups.fit, 'ribbing', 'ribbingHeight'],
advanced: [...brianConfig.optionGroups.advanced, 'ribbingStretch'],
},
measurements: [...brianConfig.measurements, 'hips', 'waist'],
2019-01-03 15:19:50 +01:00
dependencies: {
frontBase: 'base',
backBase: 'base',
front: 'frontBase',
back: 'backBase',
2021-04-24 10:16:31 +02:00
sleeve: ['sleeveBase', 'front', 'back'],
2019-01-03 15:19:50 +01:00
},
inject: {
frontBase: 'base',
backBase: 'base',
front: 'frontBase',
back: 'backBase',
2021-04-24 10:16:31 +02:00
sleeve: 'sleeveBase',
2019-01-03 15:19:50 +01:00
},
parts: ['cuff', 'waistband'],
hide: ['base', 'frontBase', 'backBase', 'sleeveBase'],
2019-01-03 15:19:50 +01:00
options: {
...brianConfig.options,
2022-05-21 18:18:49 +02:00
2019-01-03 15:19:50 +01:00
// Constants
2022-01-19 17:41:26 +01:00
waistEase: 0.08,
2019-01-03 15:19:50 +01:00
2022-05-21 18:18:49 +02:00
// Sven specific
2019-01-03 15:19:50 +01:00
ribbing: { bool: true },
collarEase: { pct: 10, min: 5, max: 30 },
lengthBonus: { pct: 15, min: 0, max: 30 },
sleeveLengthBonus: { pct: 3, min: 0, max: 10 },
2019-01-03 15:19:50 +01:00
ribbingHeight: { pct: 8, min: 3, max: 15 },
ribbingStretch: { pct: 15, min: 0, max: 30 },
hipsEase: { pct: 8, min: -4, max: 20 },
2021-04-24 10:16:31 +02:00
},
}