1
0
Fork 0

Minor updates to pattern design tutorial for clarity and consistency

This commit is contained in:
Natalia Sayang 2024-03-12 02:02:06 +00:00
parent d4919040c2
commit 6a000fd365
6 changed files with 34 additions and 33 deletions

View file

@ -32,7 +32,6 @@ export const bib = {
name: 'fromscratch.bib',
draft: draftBib,
measurements: [ 'head' ],
// highlight-start
options: {
neckRatio: {
pct: 80,
@ -41,7 +40,6 @@ export const bib = {
menu: 'fit'
},
},
// highlight-end
}
```
@ -50,7 +48,7 @@ Can you guess what it means?
- We've added the `options` property to our `bib` object
- On the `options` property, we have added `neckRatio` which holds the configuration for our option
- It is a `pct` option -- which means it's a percentage
- Its default value is 90%
- Its default value is 80%
- Its minimum value is 70%
- Its maximum value is 90%
@ -64,8 +62,7 @@ They are all documented [in the part reference docs](/reference/api/part/config/
The `menu` property on our option is *extra*.
It will be ignored by FreeSewing's core library and if we leave it out, our design will produce the same result.
Instead, this `menu` property is there for the benefit FreeSewing's development
environment which will use this to build a menu structure for the various
Instead, this `menu` property is there for the benefit of FreeSewing's development environment which will use this to build a menu structure for the various
options.
This is covered in more detail in [Part 3](/tutorials/pattern-design/part3) of this tutorial.
@ -92,7 +89,6 @@ export const bib = {
max: 90,
menu: 'fit'
},
// highlight-start
widthRatio: {
pct: 45,
min: 35,
@ -105,12 +101,11 @@ export const bib = {
max: 85,
menu: 'style'
},
// highlight-end
},
}
```
This pretty much the exact same thing, except that are placing this in the `style` menu.
This is pretty much the exact same thing, except that are placing these in the `style` menu.
Later, I will test-drive our pattern to see how it behaves when we adapt the options
between their minimum and maximum values. At that time, I may need to tweak these values.