1
0
Fork 0
Commit graph

6 commits

Author SHA1 Message Date
Joost De Cock
2a220392d4 chore: Switched to default inport for version
The previous import of the version number from package.json
looked like a named import, but was actually object destructuring
that was supported by the rollup json plugin.

This causes issues when importing patterns with webpack (as we
do with our new NextJS based frontend) so this commit switches
to importing JSON as the default export, which is also ok with webpack
2022-01-23 13:22:13 +01:00
joostdecock
706e27945d fix: Force camelCase in option names 2021-10-16 12:08:02 +02:00
starfetch
f67b8d10e3 fix: proper designer name for Tiberius/Lunetius/Walburga 2021-10-14 14:37:57 +02:00
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
joostdecock
1d3a4acd60 chore: Linter run 2021-10-08 17:32:12 +02:00
starfetch
02d281eef0 initial commit 2021-10-08 17:23:21 +02:00