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

64 lines
1.4 KiB
JavaScript
Raw Normal View History

import pkg from '../package.json'
2022-05-21 18:18:49 +02:00
import Brian from '@freesewing/brian'
2019-01-03 15:19:50 +01:00
export default {
name: 'sven',
version: pkg.version,
design: 'Joost De Cock',
code: 'Joost De Cock',
department: 'tops',
type: 'pattern',
difficulty: 3,
optionGroups: {
fit: [
2022-05-21 18:18:49 +02:00
...Brian.config.optionGroups.fit,
2022-01-19 17:41:26 +01:00
'hipsEase',
],
2022-05-21 18:18:49 +02:00
style: [
...Brian.config.optionGroups.fit,
'ribbing',
'ribbingHeight',
],
advanced: [
2022-05-21 18:18:49 +02:00
...Brian.config.optionGroups.advanced,
'ribbingStretch',
2021-04-24 10:16:31 +02:00
],
},
2019-01-03 15:19:50 +01:00
measurements: [
2022-05-21 18:18:49 +02:00
...Brian.config.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: {
2022-05-21 18:18:49 +02:00
...Brian.config.options,
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
},
}