magde
Named exports
Magde: The design constructorabout: Metadata about the designbackPanel: The backPanel part of the designbodyLiner: The bodyLiner part of the designfrontOrganiserBase: The frontOrganiserBase part of the designfrontOrganiserFront: The frontOrganiserFront part of the designfrontPanel: The frontPanel part of the designi18n: Internationalisation (i18n/translation) data for the designinternalOrganiser: The internalOrganiser part of the designlidOnePiece: The lidOnePiece part of the designsidePanel: The sidePanel part of the designstrapAttachments: The strapAttachments part of the designtwoPieceLidBottom: The twoPieceLidBottom part of the designtwoPieceLidTop: 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'