1.3 KiB
1.3 KiB
title |
---|
@freesewing/core API |
This is the documentation for FreeSewing's core library, published as @freesewing/core
on NPM.
It's a complete toolbox for parametric design with a primary focus on
sewing patterns, but can be utilized for a variety of similar 2D design tasks.
Getting started
To get started, import the library:
import freesewing from '@freesewing/core'
This is the reference documentation. For a more hands-on walkthrough, please refer to our pattern design tutorial
Properties
The @freesewing/core
default export is a single object with the following properties:
Design
: The Design constructor to create a new design
You will typically use the Design()
constructor.
The other constructors and utilities below are exported to facilitate unit testing.
Path
: The Path constructor to create a new pathPattern
: The Pattern constructor to create a new patternPoint
: The Point constructor to create a new pointSnippet
: The Snippet constructor to create a new snippetutils
: A collection of utilitiesversion
: A string containing the@freesewing/core
version number