1
0
Fork 0
freesewing/packages/holmes/config/index.js
2021-10-15 16:13:21 +02:00

52 lines
1.3 KiB
JavaScript

import { version } from '../package.json'
import freesewing from '@freesewing/core'
const { pctBasedOn } = freesewing
// ?? 🤔 ?? --> https://en.freesewing.dev/packages/core/config
export default {
name: 'holmes',
version,
design: 'Erica Alcusa Sáez',
code: ['Erica Alcusa Sáez', 'bobgeorgethe3rd'],
department: 'accessories',
type: 'pattern',
difficulty: 3,
optionGroups: {
fit: ['headEase'],
style: [
'lengthRatio',
'goreNumber',
'visorAngle',
'visorWidth',
'earLength',
'earWidth',
'buttonhole',
],
advanced: ['visorLength'],
},
measurements: ['head'],
dependencies: {},
inject: {},
hide: [],
parts: ['gore', 'visor', 'ear'],
options: {
headEase: {
pct: 3,
min: 0,
max: 9,
snap: {
metric: [6, 13, 19, 25, 32, 38, 44, 50],
imperial: [6.35, 12.7, 19.05, 25.4, 31.75, 38.1, 44.45, 50.8],
},
...pctBasedOn('head'),
},
lengthRatio: { pct: 55, min: 40, max: 60 },
goreNumber: { count: 6, min: 4, max: 20 },
visorAngle: { deg: 45, min: 10, max: 90 },
visorWidth: { pct: 5, min: 1, max: 17, snap: 5, ...pctBasedOn('head') },
earLength: { pct: 100, min: 80, max: 150 },
earWidth: { pct: 100, min: 80, max: 150 },
visorLength: { pct: 100, min: 80, max: 150 },
buttonhole: { bool: false },
},
}