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

113 lines
3.4 KiB
JavaScript
Raw Normal View History

2022-06-20 03:55:05 +00:00
// import { version } from '../package.json'
2022-06-19 23:23:10 +00:00
import Bella from '@freesewing/bella'
2022-06-20 03:55:05 +00:00
import { version } from '../package.json'
import configHelpers from '@freesewing/config-helpers'
const { pctBasedOn } = configHelpers
export default {
2022-06-19 23:23:10 +00:00
...Bella.config,
name: 'noble',
version,
design: 'Noble Incognito',
code: 'Wouter van Wageningen',
department: 'tops',
type: 'block',
difficulty: 3,
optionGroups: {
type: ['dartPosition'],
fit: ['chestEase', 'waistEase', 'bustSpanEase'],
darts: ['backDartHeight', 'waistDartLength', 'shoulderDartPosition','upperDartLength','dartOutsideCP','armholeDartPosition'],
armhole: [
'armholeDepth',
'backArmholeSlant',
'backArmholeCurvature',
'frontArmholePitchDepth',
'backArmholePitchDepth',
],
advanced: ['backNeckCutout', 'backHemSlope', 'frontShoulderWidth', 'highBustWidth', 'shoulderToShoulderEase'],
},
measurements: [
'chest',
'waist',
'waistBack',
'neck',
'hpsToWaistFront',
'hpsToWaistBack',
'shoulderToShoulder',
'shoulderSlope',
// ],
// optionalMeasurements: [
'highBust',
'underbust',
'bustSpan',
'hpsToBust',
],
hide: ['bellaFrontSideDart', 'bellaBack', 'backPoints', 'frontPoints',],
inject: {
...Bella.config.inject,
backPoints: 'bellaBack',
backInside: 'backPoints',
backOutside: 'backPoints',
frontPoints: 'bellaFrontSideDart',
frontInside: 'frontPoints',
frontOutside: 'frontPoints',
},
dependencies: {
// The inheritance makes this a bit messy
bellaFrontSideDart: 'bellaBack',
backPoints: 'bellaBack',
backInside: 'backPoints',
backOutside: 'backPoints',
frontPoints: 'bellaBack',
frontInside: 'frontPoints',
2022-06-20 19:40:41 +00:00
frontOutside: ['frontPoints','frontInside'],
2022-06-19 23:23:10 +00:00
},
parts: [
'backPoints',
'backInside',
'backOutside',
'frontPoints',
'frontInside',
'frontOutside',
],
options: {
// Constants
acrossBackFactor: 0.925,
shoulderSlopeBack: 1.23,
neckWidthBack: 0.197,
neckWidthFront: 0.17,
shoulderToShoulderCorrection: 0.995,
backDartLocation: 0.145,
backCenterWaistReduction: 0.35,
collarFactor: 0.19,
// Percentages
backNeckCutout: { pct: 6, min: 3, max: 9 },
waistEase: { pct: 5, min: 1, max: 20 },
chestEase: { pct: 11, min: 5, max: 20 },
bustSpanEase: { pct: 0, min: -5, max: 20 },
shoulderToShoulderEase: { pct: -0.5, min: -1, max: 5 },
backDartHeight: { pct: 46, min: 38, max: 54 },
armholeDepth: { pct: 44, min: 38, max: 46 },
backHemSlope: { deg: 2.5, min: 0, max: 5 },
backArmholeSlant: { deg: 5, min: 1, max: 9 },
backArmholeCurvature: { pct: 63, min: 50, max: 85 },
frontArmholeCurvature: { pct: 63, min: 50, max: 85 },
fullChestEaseReduction: { pct: 4, min: 0, max: 8 },
frontShoulderWidth: { pct: 95, max: 98, min: 92 },
frontArmholePitchDepth: { pct: 29, max: 31, min: 27 },
backArmholePitchDepth: { pct: 35, max: 40, min: 30 },
highBustWidth: { pct: 86, max: 92, min: 80 },
bustDartLength: { pct: 90, min: 75, max: 100 },
waistDartLength: { pct: 90, min: 75, max: 95 },
bustDartCurve: { pct: 100, min: 0, max: 100 },
shoulderDartPosition: { pct: 50, min: 10, max: 90 },
upperDartLength: { pct: 90, min: 80, max: 95 },
armholeDartPosition: { pct: 50, min: 10, max: 90 },
dartOutsideCP: { pct: 0, min: -200, max: 200 },
dartPosition: { dflt: 'shoulder', list: ['shoulder','armhole'] },
}
}