Skip to main content

opal

note

This design is part of the FreeSewing collection

Named exports

  • Opal: The design constructor
  • about: Metadata about the design
  • back: The back part of the design
  • bib: The bib part of the design
  • bibPlacket: The bibPlacket part of the design
  • front: The front part of the design
  • hammerLoop: The hammerLoop part of the design
  • i18n: Internationalisation (i18n/translation) data for the design
  • pocketBack: The pocketBack part of the design
  • pocketBib: The pocketBib part of the design
  • pocketCarpenter: The pocketCarpenter part of the design
  • pocketCarpenterExtra: The pocketCarpenterExtra part of the design
  • pocketSlash: The pocketSlash part of the design
  • pocketSlashShield: The pocketSlashShield part of the design
  • waistband: 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'