Skip to main content

percy

note

This design is part of the FreeSewing collection

Named exports

Constructor

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

import { Percy } from '@freesewing/percy'

Then you can instantiate it by passing a settings object:

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

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

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

Metadata

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

import { about } from '@freesewing/percy'

I18n

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

import { i18n } from '@freesewing/percy'

Parts

back

The part itself

You can access this part as the back named export:

import { back } from '@freesewing/percy'

cuff

The part itself

You can access this part as the cuff named export:

import { cuff } from '@freesewing/percy'

front

The part itself

You can access this part as the front named export:

import { front } from '@freesewing/percy'

pocket

The part itself

You can access this part as the pocket named export:

import { pocket } from '@freesewing/percy'

pocket_facing

The part itself

You can access this part as the pocket_facing named export:

import { pocket_facing } from '@freesewing/percy'

waist_back

The part itself

You can access this part as the waist_back named export:

import { waist_back } from '@freesewing/percy'

waist_front

The part itself

You can access this part as the waist_front named export:

import { waist_front } from '@freesewing/percy'

waist_side

The part itself

You can access this part as the waist_side named export:

import { waist_side } from '@freesewing/percy'