970 B
970 B
title |
---|
@freesewing/plugin-gore |
The @freesewing/plugin-gore plugin provides the gore macro. This macro allows you to generate gore segments — 2D panels to create a sphehrical shape as used in hats for example — to your design.
You'll be happy to hear that this plugin handles all the mathematics for you to create a (part-)sphere in your patterns.
Installation
npm install @freesewing/plugin-gore
Usage
Like all build-time plugins, you load them by passing them to the freesewing.Design super-constructor:
import freesewing from "@freesewing/core";
import gore from "@freesewing/plugin-gore";
import config from "../config";
const Pattern = new freesewing.Design(config, gore);
Now you can use the gore macro in your parts.