1
0
Fork 0
freesewing/packages/lunetius/example
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
..
public initial commit 2021-10-08 17:23:21 +02:00
src fix(lunetius): Removed unused code + some tweaks 2021-10-09 18:41:37 +02:00
.babelrc initial commit 2021-10-08 17:23:21 +02:00
netlify.toml chore: Updated descriptions 2021-10-08 17:36:55 +02:00
package-lock.json initial commit 2021-10-08 17:23:21 +02:00
package.json chore: Updated descriptions 2021-10-08 17:36:55 +02:00
README.md initial commit 2021-10-08 17:23:21 +02:00

Freesewing logo
FreeSewing v2

A JavaScript library for made-to-measure sewing patterns

Follow @freesewing_org on Twitter Chat with us on Gitter Become a FreeSewing Patron Follow @freesewing_org on Twitter

lunetius example

This project was bootstrapped with Create Freesewing Pattern:

npm init freesewing-pattern

This example folder is part of the local development environment. It is not part of the pattern's source code.

To run this example, follow these steps:

  • In the folder above this one, run: yarn start (or npm start)
  • Then, in new terminal, run the same command in this folder: yarn start (or npm start)

This will spin up the development environment, similar to our online demo.

About FreeSewing 🤔

Where the world of makers and developers collide, that's where you'll find FreeSewing.

Our core library is a batteries-included toolbox for parametric design of sewing patterns. It's a modular system (check our list of plugins and getting started is as simple as:

npm init freesewing-pattern

The [getting started] section on freesewing.dev is a good entrypoint to our documentation, but you'll find a lot more there, including our API documentation, as well as examples, and best practices.

If you're a maker, checkout freesewing.org where you can generate our sewing patterns adapted to your measurements.

Support FreeSewing: Become a patron 🥰

FreeSewing is an open source project run by a community, and financially supported by our patrons.

If you feel what we do is worthwhile, you too should become a patron.

License: MIT 🤓

© Joost De Cock. See the license file for details.

Where to get help 🤯

Our chatroom on Gitter is the best place to ask questions, share your feedback, or just hang out.

If you want to report a problem, please create an issue.