onyx
This design is part of the FreeSewing collection
Named exports
Onyx: The design constructorabout: Metadata about the designback: The back part of the designcrotchGusset: The crotchGusset part of the designfront: The front part of the designhood: The hood part of the designhoodFront: The hoodFront part of the designi18n: Internationalisation (i18n/translation) data for the designlegRibbing: The legRibbing part of the designneckband: The neckband part of the designraglanSleeve: The raglanSleeve part of the designskirt: The skirt part of the designsleeveRibbing: The sleeveRibbing part of the designzipperGuard: The zipperGuard part of the design
Constructor
To create a new onyx Design, import the constructur as such:
import { Onyx } from '@freesewing/onyx'
Then you can instantiate it by passing a settings object:
const pattern = new Onyx(settings)
Design config
You can access the design configuration without instantiating a design.
It is available as the designConfig property of the design constructor:
import { Onyx } from '@freesewing/onyx'
// Access the design config from the constructor
const dConf = Onyx.designConfig
Pattern config
You can access the pattern configuration without instantiating a design.
It is available as the patternConfig property of the design constructor:
import { Onyx } from '@freesewing/onyx'
// Access the pattern config from the constructor
const pConf = Onyx.patternConfig
Metadata
You can access the design's metadata through the about named export:
import { about } from '@freesewing/onyx'
I18n
You can access the design's internationalization data through the i18n named export:
import { i18n } from '@freesewing/onyx'
Parts
back
The part itself
You can access this part as the back named export:
import { back } from '@freesewing/onyx'
crotchGusset
The part itself
You can access this part as the crotchGusset named export:
import { crotchGusset } from '@freesewing/onyx'
front
The part itself
You can access this part as the front named export:
import { front } from '@freesewing/onyx'
hood
The part itself
You can access this part as the hood named export:
import { hood } from '@freesewing/onyx'
hoodFront
The part itself
You can access this part as the hoodFront named export:
import { hoodFront } from '@freesewing/onyx'
legRibbing
The part itself
You can access this part as the legRibbing named export:
import { legRibbing } from '@freesewing/onyx'
neckband
The part itself
You can access this part as the neckband named export:
import { neckband } from '@freesewing/onyx'
raglanSleeve
The part itself
You can access this part as the raglanSleeve named export:
import { raglanSleeve } from '@freesewing/onyx'
skirt
The part itself
You can access this part as the skirt named export:
import { skirt } from '@freesewing/onyx'
sleeveRibbing
The part itself
You can access this part as the sleeveRibbing named export:
import { sleeveRibbing } from '@freesewing/onyx'
zipperGuard
The part itself
You can access this part as the zipperGuard named export:
import { zipperGuard } from '@freesewing/onyx'