1
0
Fork 0
freesewing/packages/lunetius/config/index.js
Joost De Cock 0353a936cd fix(lunetius): Removed unused code + some tweaks
This design was contributed by @starfetch (thanks for that) and while
integrating it into our monorepo, I noticed some small issues:

 - Both the `headRatio` and `headRatio` options serve no purpose
 - Under certain conditions (length set to upperleg and small
   lengthBonus) the side of the garment would become longer than the
   total length
 - The seam was not one continious path
 - Example files were left over from the tutorial

I've fixed those, and in addition made the following changes:

 - Renamed `lengthBonus` to `lengthRatio` because bonus implies
   adding, whereas this option actually allows more removing than
   adding. I think `length` would be better here, but that was already
   taken, so ratio it is
 - Renamed `widthBonus` to `widthRatio` because consistency
 - Removed unused keys in the config file
 - Store intermediate values in the store so they are available to
   developers looking to extend this design
 - Smoothed out the curved hem
 - Avoid a flurry of if statements when a single assignment will does
   the trick
2021-10-09 18:41:37 +02:00

46 lines
948 B
JavaScript

import { version } from '../package.json'
// ?? 🤔 ?? --> https://en.freesewing.dev/packages/core/config
export default {
name: 'lunetius',
version,
design: 'starf',
code: 'starf',
department: 'tops',
type: 'pattern',
difficulty: 1,
tags: [
'freesewing',
'design',
'diy',
'fashion',
'made to measure',
'parametric design',
'pattern',
'sewing',
'sewing pattern',
],
optionGroups: {
style: ['lengthRatio', 'widthRatio', 'length'],
},
measurements: [
'waistToKnee',
'waistToUpperLeg',
'waistToFloor',
'hpsToWaistBack',
'neck',
'shoulderToShoulder',
'shoulderToElbow',
'waistToHips',
],
parts: ['lacerna'],
options: {
lengthRatio: { pct: 105, min: 60, max: 130 },
widthRatio: { pct: 100, min: 50, max: 130 },
length: {
list: ['ToKnee', 'ToBelowKnee', 'ToHips', 'ToUpperLeg', 'ToFloor'],
dflt: 'ToBelowKnee',
},
},
}