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

146 lines
4.2 KiB
JavaScript
Raw Normal View History

2021-01-30 16:30:45 +01:00
import { version } from '../package.json'
export default {
name: 'charlie',
version,
design: 'Joost De Cock',
code: 'Joost De Cock',
department: 'bottoms',
2021-01-30 16:30:45 +01:00
type: 'block',
2021-04-18 12:49:39 +02:00
difficulty: 3,
2021-01-30 16:30:45 +01:00
optionGroups: {
2021-04-20 23:22:12 +02:00
fit: ['seatEase', 'kneeEase', 'waistEase', 'waistbandCurve'],
2021-04-11 17:15:58 +02:00
style: ['waistHeight', 'waistbandWidth', 'lengthBonus', 'crotchDrop'],
2021-01-30 18:16:16 +01:00
pockets: [
{
backPockets: [
'backPocketHorizontalPlacement',
'backPocketVerticalPlacement',
'backPocketWidth',
2021-04-24 10:16:31 +02:00
'backPocketDepth',
],
2021-03-13 09:58:17 +01:00
frontPockets: [
'frontPocketSlantDepth',
'frontPocketSlantWidth',
'frontPocketSlantRound',
'frontPocketSlantBend',
2021-03-13 09:58:17 +01:00
'frontPocketWidth',
'frontPocketDepth',
2021-04-24 10:16:31 +02:00
'frontPocketFacing',
],
},
2021-01-30 18:16:16 +01:00
],
2021-01-30 16:30:45 +01:00
advanced: [
'crossSeamCurveStart',
'crossSeamCurveBend',
'crossSeamCurveAngle',
2021-01-30 16:30:45 +01:00
'crotchSeamCurveStart',
'crotchSeamCurveBend',
'crotchSeamCurveAngle',
2021-01-30 16:30:45 +01:00
'grainlinePosition',
'legBalance',
'waistBalance',
2021-04-11 17:15:58 +02:00
'beltLoops',
{
2021-04-24 10:16:31 +02:00
fly: ['flyCurve', 'flyLength', 'flyWidth'],
},
],
2021-01-30 16:30:45 +01:00
},
measurements: [
'crossSeam',
'crossSeamFront',
'knee',
'seat',
'seatBack',
'waist',
'waistBack',
'waistToFloor',
'waistToKnee',
'waistToHips',
'waistToSeat',
2021-04-24 10:16:31 +02:00
'waistToUpperLeg',
2021-01-30 16:30:45 +01:00
],
hide: ['titanBack', 'titanFront'],
inject: {
back: 'titanBack',
2021-03-13 09:58:17 +01:00
front: 'titanFront',
frontPocket: 'front',
frontPocketFacing: 'frontPocket',
backPocketFacing: 'backPocket',
2021-04-11 17:15:58 +02:00
backPocketInterfacing: 'backPocket',
backPocketJet: 'backPocketFacing',
flyFacing: 'front',
2021-04-24 10:16:31 +02:00
flyExtension: 'flyFacing',
2021-03-13 09:58:17 +01:00
},
2021-04-11 17:15:58 +02:00
parts: ['beltLoops'],
2021-03-13 09:58:17 +01:00
dependencies: {
// The inheritance makes this a bit messy
2021-04-11 17:15:58 +02:00
titanFront: 'titanBack',
2021-03-13 09:58:17 +01:00
back: ['titanBack', 'titanFront', 'front'],
2021-04-20 23:22:12 +02:00
waistband: ['titanBack', 'titanFront', 'front', 'back'],
2021-04-24 10:16:31 +02:00
waistbandCurved: ['titanBack', 'titanFront', 'front', 'back'],
2021-01-30 16:30:45 +01:00
},
options: {
// Constants (from Titan)
titanPaperless: true,
fitCrossSeam: true,
fitCrossSeamFront: true,
fitCrossSeamBack: true,
// Lock titan options
2021-03-13 16:40:10 +01:00
fitKnee: true,
// Charlie constants
2021-04-11 17:15:58 +02:00
waistbandReduction: 0.25, // See src/index.js
2021-03-13 09:58:17 +01:00
waistbandFactor: 0.1,
2021-04-20 23:22:12 +02:00
// Fit (Charlie)
2021-04-22 19:20:50 +02:00
waistbandCurve: { pct: 0, min: 0, max: 35 },
2021-04-20 23:22:12 +02:00
2021-01-30 16:30:45 +01:00
// Fit (from Titan)
waistEase: { pct: 1, min: 0, max: 5 },
seatEase: { pct: 5, min: 0, max: 10 },
kneeEase: { pct: 15, min: 10, max: 30 },
2021-01-30 16:30:45 +01:00
// Style (from Titan)
2021-04-11 17:15:58 +02:00
waistHeight: { pct: -4, min: -50, max: 30 },
waistbandWidth: { mm: 40, min: 20, max: 60 },
2021-01-30 16:30:45 +01:00
lengthBonus: { pct: 2, min: -20, max: 10 },
crotchDrop: { pct: 2, min: 0, max: 15 },
// Advanced (from Titan)
legBalance: { pct: 57.5, min: 52.5, max: 62.5 },
crossSeamCurveStart: { pct: 85, min: 60, max: 100 },
crossSeamCurveBend: { pct: 65, min: 45, max: 85 },
crossSeamCurveAngle: { deg: 12, min: 0, max: 20 },
2021-01-30 16:30:45 +01:00
crotchSeamCurveStart: { pct: 80, min: 60, max: 95 },
crotchSeamCurveBend: { pct: 80, min: 45, max: 100 },
crotchSeamCurveAngle: { deg: 25, min: 0, max: 35 },
waistBalance: { pct: 55, min: 30, max: 90 },
grainlinePosition: { pct: 50, min: 30, max: 60 },
2021-01-30 18:16:16 +01:00
// Back pockets
2021-01-30 18:16:16 +01:00
backPocketVerticalPlacement: { pct: 24, min: 18, max: 30 },
backPocketHorizontalPlacement: { pct: 55, min: 48, max: 62 },
backPocketWidth: { pct: 55, min: 50, max: 60 },
2021-03-13 09:58:17 +01:00
backPocketDepth: { pct: 60, min: 40, max: 80 },
backPocketFacing: { bool: true },
2021-01-30 18:16:16 +01:00
2021-03-13 09:58:17 +01:00
// Front pockets
frontPocketSlantDepth: { pct: 85, min: 70, max: 100 },
frontPocketSlantWidth: { pct: 25, min: 15, max: 35 },
frontPocketSlantRound: { pct: 30, min: 5, max: 50 },
frontPocketSlantBend: { pct: 25, min: 5, max: 50 },
2021-03-13 09:58:17 +01:00
frontPocketWidth: { pct: 55, min: 45, max: 65 },
frontPocketDepth: { pct: 100, min: 85, max: 110 },
frontPocketFacing: { pct: 45, min: 25, max: 65 },
2021-03-13 09:58:17 +01:00
// Fly
flyCurve: { pct: 72, min: 50, max: 100 },
flyLength: { pct: 45, min: 30, max: 60 },
2021-03-13 09:58:17 +01:00
flyWidth: { pct: 15, min: 10, max: 20 },
2021-03-13 09:58:17 +01:00
// Waistband
2021-04-24 10:16:31 +02:00
beltLoops: { count: 8, min: 6, max: 12 },
},
2021-01-30 16:30:45 +01:00
}