Skip to main content

hugo

note

This design is part of the FreeSewing collection

Named exports

  • Hugo: The design constructor
  • about: Metadata about the design
  • back: The back part of the design
  • cuff: The cuff part of the design
  • front: The front part of the design
  • hoodCenter: The hoodCenter part of the design
  • hoodSide: The hoodSide part of the design
  • i18n: Internationalisation (i18n/translation) data for the design
  • neckBinding: The neckBinding part of the design
  • pocket: The pocket part of the design
  • pocketFacing: The pocketFacing part of the design
  • sleeve: The sleeve part of the design
  • waistband: The waistband part of the design

Constructor

To create a new hugo Design, import the constructur as such:

import { Hugo } from '@freesewing/hugo'

Then you can instantiate it by passing a settings object:

const pattern = new Hugo(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 { Hugo } from '@freesewing/hugo'

// Access the design config from the constructor
const dConf = Hugo.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 { Hugo } from '@freesewing/hugo'

// Access the pattern config from the constructor
const pConf = Hugo.patternConfig

Metadata

You can access the design's metadata through the about named export:

import { about } from '@freesewing/hugo'

I18n

You can access the design's internationalization data through the i18n named export:

import { i18n } from '@freesewing/hugo'

Parts

back

The part itself

You can access this part as the back named export:

import { back } from '@freesewing/hugo'

cuff

The part itself

You can access this part as the cuff named export:

import { cuff } from '@freesewing/hugo'

front

The part itself

You can access this part as the front named export:

import { front } from '@freesewing/hugo'

hoodCenter

The part itself

You can access this part as the hoodCenter named export:

import { hoodCenter } from '@freesewing/hugo'

hoodSide

The part itself

You can access this part as the hoodSide named export:

import { hoodSide } from '@freesewing/hugo'

neckBinding

The part itself

You can access this part as the neckBinding named export:

import { neckBinding } from '@freesewing/hugo'

pocket

The part itself

You can access this part as the pocket named export:

import { pocket } from '@freesewing/hugo'

pocketFacing

The part itself

You can access this part as the pocketFacing named export:

import { pocketFacing } from '@freesewing/hugo'

sleeve

The part itself

You can access this part as the sleeve named export:

import { sleeve } from '@freesewing/hugo'

waistband

The part itself

You can access this part as the waistband named export:

import { waistband } from '@freesewing/hugo'