sunny
This design is part of the FreeSewing collection
Named exports
Sunny: The design constructorabout: Metadata about the designbinding: The binding part of the designi18n: Internationalisation (i18n/translation) data for the designpanel: The panel part of the designwaistband: The waistband part of the design
Constructor
To create a new sunny Design, import the constructur as such:
import { Sunny } from '@freesewing/sunny'
Then you can instantiate it by passing a settings object:
const pattern = new Sunny(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 { Sunny } from '@freesewing/sunny'
// Access the design config from the constructor
const dConf = Sunny.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 { Sunny } from '@freesewing/sunny'
// Access the pattern config from the constructor
const pConf = Sunny.patternConfig
Metadata
You can access the design's metadata through the about named export:
import { about } from '@freesewing/sunny'
I18n
You can access the design's internationalization data through the i18n named export:
import { i18n } from '@freesewing/sunny'
Parts
binding
The part itself
You can access this part as the binding named export:
import { binding } from '@freesewing/sunny'
panel
The part itself
You can access this part as the panel named export:
import { panel } from '@freesewing/sunny'
waistband
The part itself
You can access this part as the waistband named export:
import { waistband } from '@freesewing/sunny'