1
0
Fork 0
freesewing/designs/simon/config/index.js

193 lines
5.2 KiB
JavaScript
Raw Normal View History

import { version } from '../package.json'
2022-05-21 14:05:22 +02:00
import Brian from '@freesewing/brian'
2018-12-21 18:19:21 +01:00
2022-05-21 14:05:22 +02:00
const config = {
version,
name: 'simon',
design: 'Joost De Cock',
code: 'Joost De Cock',
department: 'tops',
type: 'pattern',
difficulty: 4,
optionGroups: {
2022-05-31 16:01:26 +02:00
fit: [...Brian.config.optionGroups.fit, 'waistEase', 'hipsEase', 'roundBack'],
style: [
2022-05-21 14:05:22 +02:00
...Brian.config.optionGroups.style,
'hemStyle',
'hemCurve',
'boxPleat',
2019-09-25 18:01:17 +02:00
'backDarts',
'splitYoke',
'yokeHeight',
{
closure: [
'extraTopButton',
'buttons',
'seperateButtonPlacket',
'buttonPlacketStyle',
'seperateButtonholePlacket',
'buttonholePlacketStyle',
'buttonPlacketWidth',
'buttonholePlacketWidth',
'buttonholePlacketFoldWidth',
2021-04-24 10:16:31 +02:00
'buttonFreeLength',
],
},
{
cuffs: [
'cuffStyle',
'barrelCuffNarrowButton',
'cuffButtonRows',
'sleevePlacketWidth',
'sleevePlacketLength',
'cuffDrape',
2021-04-24 10:16:31 +02:00
'cuffLength',
],
},
{
collar: [
'collarAngle',
'collarStandBend',
'collarStandCurve',
'collarFlare',
'collarStandWidth',
'collarBend',
'collarGap',
2021-04-24 10:16:31 +02:00
'collarRoll',
],
},
],
advanced: [
2022-05-21 14:05:22 +02:00
...Brian.config.optionGroups.advanced,
'boxPleatWidth',
'boxPleatFold',
2019-09-25 18:01:17 +02:00
'backDartShaping',
'ffsa',
2021-04-24 10:16:31 +02:00
],
},
2022-05-31 16:01:26 +02:00
measurements: [...Brian.config.measurements, 'waist', 'hips'],
2018-12-21 18:19:21 +01:00
dependencies: {
sleeveBase: ['frontBase', 'backBase', 'back'],
2021-04-24 10:16:31 +02:00
sleeve: ['sleeveBase', 'front', 'back'],
frontRight: ['back'],
frontLeft: ['back'],
sleevePlacketUnderlap: ['back'],
sleevePlacketOverlap: ['back'],
collar: ['back'],
collarStand: ['back'],
buttonPlacket: ['back'],
buttonholePlacket: ['back'],
2018-12-21 18:19:21 +01:00
},
inject: {
frontBase: 'base',
backBase: 'base',
back: 'backBase',
front: 'frontBase',
frontRight: 'front',
frontLeft: 'front',
buttonPlacket: 'front',
buttonholePlacket: 'front',
yoke: 'back',
sleeveBase: 'front',
2021-04-24 10:16:31 +02:00
sleeve: 'sleeveBase',
2018-12-21 18:19:21 +01:00
},
parts: ['collarStand', 'collar', 'sleevePlacketUnderlap', 'sleevePlacketOverlap', 'cuff'],
hide: ['base', 'frontBase', 'front', 'backBase', 'sleeveBase'],
2018-12-21 18:19:21 +01:00
options: {
2022-05-21 14:05:22 +02:00
...Brian.config.options,
// Constants | Cannot be changed
2018-12-21 18:19:21 +01:00
collarFactor: 5,
2018-12-27 13:08:30 +01:00
cuffOverlap: 0.15,
2018-12-23 17:25:53 +01:00
frenchCuffRoundFactor: 0.05,
2018-12-21 18:19:21 +01:00
2022-05-21 14:05:22 +02:00
// Back
backDarts: {
list: ['auto', 'never', 'always'],
dflt: 'auto',
},
backDartShaping: { pct: 25, min: 5, max: 75 },
boxPleat: { bool: false },
boxPleatFold: { pct: 15, min: 10, max: 20 },
boxPleatWidth: { pct: 7, min: 4, max: 10 },
roundBack: { pct: 0, min: 0, max: 10 },
2022-05-21 14:05:22 +02:00
// Buttons
buttonFreeLength: { pct: 2, min: 0, max: 15 },
buttonholePlacketStyle: {
list: ['classic', 'seamless'],
dflt: 'seamless',
2022-06-22 16:40:25 +02:00
hide: ({ options }) => options.seperateButtonholePlacket,
2018-12-21 18:19:21 +01:00
},
2022-05-21 14:05:22 +02:00
buttonholePlacketWidth: { pct: 8, min: 4, max: 12 },
buttonholePlacketFoldWidth: { pct: 16, min: 8, max: 24 },
2018-12-21 18:19:21 +01:00
buttonPlacketStyle: {
list: ['classic', 'seamless'],
2021-04-24 10:16:31 +02:00
dflt: 'classic',
2022-06-22 16:40:25 +02:00
hide: ({ options }) => options.seperateButtonPlacket,
2018-12-21 18:19:21 +01:00
},
2022-05-21 14:05:22 +02:00
buttonPlacketWidth: { pct: 5, min: 2, max: 8 },
extraTopButton: { bool: true },
seperateButtonPlacket: { bool: false },
seperateButtonholePlacket: { bool: false },
// Collar
collarAngle: { deg: 85, min: 60, max: 130 },
collarBend: { pct: 3.5, min: 0, max: 10 },
collarFlare: { deg: 3.5, min: 0, max: 10 },
collarGap: { pct: 2.5, min: 0, max: 6 },
collarRoll: { pct: 3, min: 0, max: 6 },
// Collar stand
collarStandBend: { deg: 3, min: 0, max: 5 },
collarStandCurve: { deg: 2, min: 0, max: 5 },
collarStandWidth: { pct: 8, min: 3, max: 13 },
// Cuffs
barrelCuffNarrowButton: { bool: true },
cuffButtonRows: { count: 1, min: 1, max: 2 },
cuffDrape: { pct: 5, min: 0, max: 10 },
cuffEase: { pct: 20, min: 10, max: 40 },
cuffLength: { pct: 10, min: 3, max: 15 },
2018-12-21 18:19:21 +01:00
cuffStyle: {
list: [
'roundedBarrelCuff',
'angledBarrelCuff',
'straightBarrelCuff',
'roundedFrenchCuff',
'angledFrenchCuff',
2021-04-24 10:16:31 +02:00
'straightFrenchCuff',
2018-12-21 18:19:21 +01:00
],
2021-04-24 10:16:31 +02:00
dflt: 'angledBarrelCuff',
2018-12-21 18:19:21 +01:00
},
2022-05-21 14:05:22 +02:00
// Hem & hips
2019-01-13 15:11:15 +01:00
hemCurve: { pct: 50, min: 25, max: 100 },
2022-05-21 14:05:22 +02:00
hemStyle: {
list: ['straight', 'baseball', 'slashed'],
dflt: 'straight',
},
hipsEase: { pct: 15, min: 10, max: 35 },
2018-12-29 15:35:27 +01:00
lengthBonus: { pct: 25, min: -4, max: 60 },
2022-05-21 14:05:22 +02:00
// Shoulders
shoulderEase: { pct: 2, min: 0, max: 15 },
2022-05-21 14:05:22 +02:00
splitYoke: { bool: false },
yokeHeight: { pct: 55, min: 10, max: 90 },
2022-05-21 14:05:22 +02:00
// Sleeve
sleeveLengthBonus: { pct: 3.5, min: -40, max: 10 },
sleevePlacketLength: { pct: 25, min: 15, max: 35 },
2022-05-21 14:05:22 +02:00
sleevePlacketWidth: { pct: 13, min: 8, max: 18 },
// Waist
buttons: { count: 7, min: 4, max: 12 },
waistEase: { pct: 15, min: 10, max: 35 },
2022-05-21 14:05:22 +02:00
// Various
ffsa: { pct: 150, min: 100, max: 200 }, // Flat-felled seam allowance
2021-04-24 10:16:31 +02:00
},
}
2022-05-21 14:05:22 +02:00
export default config