opal
This design is part of the FreeSewing collection
Named exports
Opal: The design constructorabout: Metadata about the designback: The back part of the designbib: The bib part of the designbibPlacket: The bibPlacket part of the designfront: The front part of the designhammerLoop: The hammerLoop part of the designi18n: Internationalisation (i18n/translation) data for the designpocketBack: The pocketBack part of the designpocketBib: The pocketBib part of the designpocketCarpenter: The pocketCarpenter part of the designpocketCarpenterExtra: The pocketCarpenterExtra part of the designpocketSlash: The pocketSlash part of the designpocketSlashShield: The pocketSlashShield part of the designwaistband: The waistband part of the design
Constructor
To create a new opal Design, import the constructur as such:
import { Opal } from '@freesewing/opal'
Then you can instantiate it by passing a settings object:
const pattern = new Opal(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 { Opal } from '@freesewing/opal'
// Access the design config from the constructor
const dConf = Opal.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 { Opal } from '@freesewing/opal'
// Access the pattern config from the constructor
const pConf = Opal.patternConfig
Metadata
You can access the design's metadata through the about named export:
import { about } from '@freesewing/opal'
I18n
You can access the design's internationalization data through the i18n named export:
import { i18n } from '@freesewing/opal'
Parts
back
The part itself
You can access this part as the back named export:
import { back } from '@freesewing/opal'
bib
The part itself
You can access this part as the bib named export:
import { bib } from '@freesewing/opal'
bibPlacket
The part itself
You can access this part as the bibPlacket named export:
import { bibPlacket } from '@freesewing/opal'
front
The part itself
You can access this part as the front named export:
import { front } from '@freesewing/opal'
hammerLoop
The part itself
You can access this part as the hammerLoop named export:
import { hammerLoop } from '@freesewing/opal'
pocketBack
The part itself
You can access this part as the pocketBack named export:
import { pocketBack } from '@freesewing/opal'
pocketBib
The part itself
You can access this part as the pocketBib named export:
import { pocketBib } from '@freesewing/opal'
pocketCarpenter
The part itself
You can access this part as the pocketCarpenter named export:
import { pocketCarpenter } from '@freesewing/opal'
pocketCarpenterExtra
The part itself
You can access this part as the pocketCarpenterExtra named export:
import { pocketCarpenterExtra } from '@freesewing/opal'
pocketSlash
The part itself
You can access this part as the pocketSlash named export:
import { pocketSlash } from '@freesewing/opal'
pocketSlashShield
The part itself
You can access this part as the pocketSlashShield named export:
import { pocketSlashShield } from '@freesewing/opal'
waistband
The part itself
You can access this part as the waistband named export:
import { waistband } from '@freesewing/opal'