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

117 lines
3.4 KiB
JavaScript
Raw Normal View History

2021-10-13 01:13:34 +01:00
import { version } from '../package.json'
import freesewing from '@freesewing/core'
const { pctBasedOn } = freesewing
export default {
2022-01-19 15:17:23 +00:00
name: 'bee',
2021-10-13 01:13:34 +01:00
version,
design: 'PrudenceRabbit',
2022-01-19 15:05:32 +00:00
code: 'bobgeorgethe3rd',
2021-10-13 01:13:34 +01:00
department: 'tops',
type: 'pattern',
difficulty: 3,
optionGroups: {
2022-01-19 15:05:32 +00:00
fit: ['chestEase', 'waistEase', 'bustSpanEase','topDepth','bottomCupDepth','sideDepth','sideCurve','frontCurve','bellaGuide'],
style: ['ties','neckTieWidth','neckTieLength','neckTieEnds','neckTieColours','bandTieWidth','bandTieLength','bandTieEnds','bandTieColours','crossBackTies','bandLength'],
advanced: [
2022-01-19 15:05:32 +00:00
{bellaDarts:['backDartHeight']},
{bellaArmhole:['armholeDepth',
'frontArmholePitchDepth']},
{bellaAdvanced:['frontShoulderWidth', 'highBustWidth']}],
2021-10-13 01:13:34 +01:00
},
measurements: [
'highBust',
'chest',
'underbust',
'waist',
'waistBack',
'bustSpan',
'neck',
'hpsToBust',
'hpsToWaistFront',
'hpsToWaistBack',
'shoulderToShoulder',
'shoulderSlope',
2022-01-19 15:05:32 +00:00
"bustPointToUnderbust"
2021-10-13 01:13:34 +01:00
// FIXME: Measurement from waist up to armhole (for sleeveless)
],
dependencies: {
frontSideDart: 'back',
2022-01-19 15:05:32 +00:00
bandTie: 'cup',
cup:'neckTie',
2021-10-13 01:13:34 +01:00
},
2022-01-19 15:05:32 +00:00
inject: {cup: 'frontSideDart'},
hide: ['frontSideDart','back'],
parts: [
'back',
'frontSideDart',
2022-01-19 15:05:32 +00:00
'cup',
'neckTie',
'bandTie',
// 'frontShoulderDart'
],
2021-10-13 01:13:34 +01:00
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,
2022-01-19 15:05:32 +00:00
backNeckCutout: 0.06,
backHemSlope: 2.5,
backArmholeSlant:5,
backArmholeCurvature:0.63,
frontArmholeCurvature: 0.63,
fullChestEaseReduction: 0.04,
backArmholePitchDepth: 0.35,
bustDartLength: 1,
waistDartLength: 1,
bustDartCurve: 1,
2021-10-13 01:13:34 +01:00
// Percentages
2022-01-19 15:05:32 +00:00
//Bella Fit
2021-10-13 01:13:34 +01:00
waistEase: { pct: 5, min: 1, max: 20 },
chestEase: { pct: 11, min: 5, max: 20 },
bustSpanEase: { pct: 10, min: 0, max: 20 },
2022-01-19 15:05:32 +00:00
//Bella Advanced
2021-10-13 01:13:34 +01:00
backDartHeight: { pct: 46, min: 38, max: 54 },
armholeDepth: { pct: 44, min: 38, max: 46 },
frontShoulderWidth: { pct: 95, max: 98, min: 92 },
frontArmholePitchDepth: { pct: 29, max: 31, min: 27 },
highBustWidth: { pct: 86, max: 92, min: 80 },
2022-01-19 15:05:32 +00:00
// Bikini Top
topDepth: { pct: 54, min: 50, max: 80 },
//neckTieWidth: { mm: 13, min: 6, max: 30},
neckTieWidth: { pct: 6, min: 2, max: 18,
snap: {
metric: [ 6, 13, 19, 25, 32, 38 ],
imperial: [ 6.35, 12.7, 19.05, 25.4, 31.75, 38.1],
2021-10-13 01:13:34 +01:00
},
2022-01-19 15:05:32 +00:00
...pctBasedOn('bustSpan')},
neckTieLength: { pct: 80, min: 70, max: 100 },
neckTieEnds: {dflt:"straight", list:["straight","pointed"] },
neckTieColours: {dflt:"one", list:["one","two"] },
//bandTieWidth: { mm: 13, min: 6, max: 30 },
bandTieWidth: { pct: 3, min: 1, max: 9,
snap: {
metric: [ 6, 13, 19, 25, 32, 38 ],
imperial: [ 6.35, 12.7, 19.05, 25.4, 31.75, 38.1],
2021-10-13 01:13:34 +01:00
},
2022-01-19 15:05:32 +00:00
...pctBasedOn('hpsToWaistFront')},
bandTieLength: { pct: 35, min: 30, max: 50 },
bandTieEnds: {dflt:"straight", list:["straight","pointed"] },
bandTieColours: {dflt:"one", list:["one","two"] },
bottomCupDepth: { pct: 8, min: 0, max: 20 },
sideDepth: { pct: 20.6, min: 0, max: 30 },
sideCurve: { pct: 0, min: -50, max: 50 },
frontCurve: { pct: 0, min: -50, max: 50 },
bellaGuide: { bool : false },
ties: { bool : true },
crossBackTies: { bool : false },
bandLength: { pct: 85, min: 75, max: 90 },
2021-10-13 01:13:34 +01:00
},
}