122 lines
3.4 KiB
JavaScript
122 lines
3.4 KiB
JavaScript
// import { version } from '../package.json'
|
|
import Bella from '@freesewing/bella'
|
|
|
|
import { version } from '../package.json'
|
|
|
|
export default {
|
|
...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',
|
|
'armholeDartPosition',
|
|
],
|
|
armhole: [
|
|
'armholeDepth',
|
|
'backArmholeSlant',
|
|
'backArmholeCurvature',
|
|
'frontArmholeCurvature',
|
|
'frontArmholePitchDepth',
|
|
'backArmholePitchDepth',
|
|
],
|
|
advanced: [
|
|
'backNeckCutout',
|
|
'backHemSlope',
|
|
'frontShoulderWidth',
|
|
'highBustWidth',
|
|
'shoulderToShoulderEase',
|
|
],
|
|
},
|
|
measurements: [
|
|
'chest',
|
|
'waist',
|
|
'waistBack',
|
|
'neck',
|
|
'hpsToWaistFront',
|
|
'hpsToWaistBack',
|
|
'shoulderToShoulder',
|
|
'shoulderSlope',
|
|
'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',
|
|
frontOutside: ['frontPoints', 'frontInside'],
|
|
},
|
|
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,
|
|
bustDartCurve: 1,
|
|
bustDartLength: 0.9,
|
|
|
|
// 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 },
|
|
waistDartLength: { pct: 90, min: 75, max: 95 },
|
|
upperDartLength: { pct: 90, min: 80, max: 95 },
|
|
dartPosition: { dflt: 'shoulder', list: ['shoulder', 'armhole'] },
|
|
shoulderDartPosition: {
|
|
pct: 50,
|
|
min: 10,
|
|
max: 90,
|
|
hide: ({ options }) => options.dartPosition != 'shoulder',
|
|
},
|
|
armholeDartPosition: {
|
|
pct: 50,
|
|
min: 10,
|
|
max: 90,
|
|
hide: ({ options }) => options.dartPosition == 'shoulder',
|
|
},
|
|
},
|
|
}
|