2021-02-02 06:57:24 -08:00
|
|
|
import freesewing from '@freesewing/core'
|
|
|
|
import plugins from '@freesewing/plugin-bundle'
|
|
|
|
import config from '../config'
|
2021-02-18 07:47:53 -08:00
|
|
|
import draftFrontpoints from './frontpoints'
|
2021-02-02 06:57:24 -08:00
|
|
|
import draftFront from './front'
|
|
|
|
import draftBack from './back'
|
2021-02-09 07:20:18 -08:00
|
|
|
import draftLegband from './legband'
|
2021-02-18 07:47:53 -08:00
|
|
|
import draftWaistband from './waistband'
|
|
|
|
import draftPocketfacing from './pocketfacing'
|
|
|
|
import draftPocket from './pocket'
|
|
|
|
// import draftPlacket from './placket'
|
2021-02-02 06:57:24 -08:00
|
|
|
|
|
|
|
// Create new design
|
|
|
|
const Pattern = new freesewing.Design(config, plugins)
|
|
|
|
|
2021-02-10 07:19:15 -08:00
|
|
|
// console.log( Pattern );
|
2021-02-02 06:57:24 -08:00
|
|
|
// Attach the draft methods to the prototype
|
2021-02-18 07:47:53 -08:00
|
|
|
Pattern.prototype.draftFrontpoints = draftFrontpoints
|
2021-02-02 06:57:24 -08:00
|
|
|
Pattern.prototype.draftFront = draftFront
|
|
|
|
Pattern.prototype.draftBack = draftBack
|
2021-02-09 07:20:18 -08:00
|
|
|
Pattern.prototype.draftLegband = draftLegband
|
2021-02-18 07:47:53 -08:00
|
|
|
Pattern.prototype.draftWaistband = draftWaistband
|
|
|
|
Pattern.prototype.draftPocketfacing = draftPocketfacing
|
|
|
|
Pattern.prototype.draftPocket = draftPocket
|
|
|
|
// Pattern.prototype.draftPlacket = draftPlacket
|
2021-02-10 07:19:15 -08:00
|
|
|
// console.log( Pattern );
|
2021-02-02 06:57:24 -08:00
|
|
|
|
|
|
|
export default Pattern
|