Skip to main content

magde

Named exports

  • Magde: The design constructor
  • about: Metadata about the design
  • backPanel: The backPanel part of the design
  • bodyLiner: The bodyLiner part of the design
  • frontOrganiserBase: The frontOrganiserBase part of the design
  • frontOrganiserFront: The frontOrganiserFront part of the design
  • frontPanel: The frontPanel part of the design
  • i18n: Internationalisation (i18n/translation) data for the design
  • internalOrganiser: The internalOrganiser part of the design
  • lidOnePiece: The lidOnePiece part of the design
  • sidePanel: The sidePanel part of the design
  • strapAttachments: The strapAttachments part of the design
  • twoPieceLidBottom: The twoPieceLidBottom part of the design
  • twoPieceLidTop: The twoPieceLidTop part of the design

Constructor

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

import { Magde } from '@freesewing/magde'

Then you can instantiate it by passing a settings object:

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

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

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

Metadata

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

import { about } from '@freesewing/magde'

I18n

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

import { i18n } from '@freesewing/magde'

Parts

backPanel

The part itself

You can access this part as the backPanel named export:

import { backPanel } from '@freesewing/magde'

bodyLiner

The part itself

You can access this part as the bodyLiner named export:

import { bodyLiner } from '@freesewing/magde'

frontOrganiserBase

The part itself

You can access this part as the frontOrganiserBase named export:

import { frontOrganiserBase } from '@freesewing/magde'

frontOrganiserFront

The part itself

You can access this part as the frontOrganiserFront named export:

import { frontOrganiserFront } from '@freesewing/magde'

frontPanel

The part itself

You can access this part as the frontPanel named export:

import { frontPanel } from '@freesewing/magde'

internalOrganiser

The part itself

You can access this part as the internalOrganiser named export:

import { internalOrganiser } from '@freesewing/magde'

lidOnePiece

The part itself

You can access this part as the lidOnePiece named export:

import { lidOnePiece } from '@freesewing/magde'

sidePanel

The part itself

You can access this part as the sidePanel named export:

import { sidePanel } from '@freesewing/magde'

strapAttachments

The part itself

You can access this part as the strapAttachments named export:

import { strapAttachments } from '@freesewing/magde'

twoPieceLidBottom

The part itself

You can access this part as the twoPieceLidBottom named export:

import { twoPieceLidBottom } from '@freesewing/magde'

twoPieceLidTop

The part itself

You can access this part as the twoPieceLidTop named export:

import { twoPieceLidTop } from '@freesewing/magde'