Skip to main content

crux

note

This design is part of the FreeSewing collection

Named exports

  • Crux: The design constructor
  • about: Metadata about the design
  • back: The back part of the design
  • backPocket: The backPocket part of the design
  • backPocketCargo: The backPocketCargo part of the design
  • backPocketFacing: The backPocketFacing part of the design
  • backPocketPoints: The backPocketPoints part of the design
  • basepoints: The basepoints part of the design
  • flyShield: The flyShield part of the design
  • front: The front part of the design
  • frontPocket: The frontPocket part of the design
  • frontPocketCargo: The frontPocketCargo part of the design
  • frontPocketFacing: The frontPocketFacing part of the design
  • frontPocketPoints: The frontPocketPoints part of the design
  • gusset: The gusset part of the design
  • i18n: Internationalisation (i18n/translation) data for the design
  • waistband: The waistband part of the design
  • waistbanda: The waistbanda part of the design

Constructor

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

import { Crux } from '@freesewing/crux'

Then you can instantiate it by passing a settings object:

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

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

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

Metadata

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

import { about } from '@freesewing/crux'

I18n

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

import { i18n } from '@freesewing/crux'

Parts

back

The part itself

You can access this part as the back named export:

import { back } from '@freesewing/crux'

backPocket

The part itself

You can access this part as the backPocket named export:

import { backPocket } from '@freesewing/crux'

backPocketCargo

The part itself

You can access this part as the backPocketCargo named export:

import { backPocketCargo } from '@freesewing/crux'

backPocketFacing

The part itself

You can access this part as the backPocketFacing named export:

import { backPocketFacing } from '@freesewing/crux'

backPocketPoints

The part itself

You can access this part as the backPocketPoints named export:

import { backPocketPoints } from '@freesewing/crux'

basepoints

The part itself

You can access this part as the basepoints named export:

import { basepoints } from '@freesewing/crux'

flyShield

The part itself

You can access this part as the flyShield named export:

import { flyShield } from '@freesewing/crux'

front

The part itself

You can access this part as the front named export:

import { front } from '@freesewing/crux'

frontPocket

The part itself

You can access this part as the frontPocket named export:

import { frontPocket } from '@freesewing/crux'

frontPocketCargo

The part itself

You can access this part as the frontPocketCargo named export:

import { frontPocketCargo } from '@freesewing/crux'

frontPocketFacing

The part itself

You can access this part as the frontPocketFacing named export:

import { frontPocketFacing } from '@freesewing/crux'

frontPocketPoints

The part itself

You can access this part as the frontPocketPoints named export:

import { frontPocketPoints } from '@freesewing/crux'

gusset

The part itself

You can access this part as the gusset named export:

import { gusset } from '@freesewing/crux'

waistband

The part itself

You can access this part as the waistband named export:

import { waistband } from '@freesewing/crux'

waistbanda

The part itself

You can access this part as the waistbanda named export:

import { waistbanda } from '@freesewing/crux'