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