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