2021-02-02 06:57:24 -08:00
|
|
|
import freesewing from '@freesewing/core'
|
|
|
|
import plugins from '@freesewing/plugin-bundle'
|
|
|
|
import config from '../config'
|
|
|
|
import draftFront from './front'
|
|
|
|
import draftBack from './back'
|
2021-02-09 07:20:18 -08:00
|
|
|
import draftLegband from './legband'
|
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
|
|
|
|
Pattern.prototype.draftFront = draftFront
|
|
|
|
Pattern.prototype.draftBack = draftBack
|
2021-02-09 07:20:18 -08:00
|
|
|
Pattern.prototype.draftLegband = draftLegband
|
2021-02-10 07:19:15 -08:00
|
|
|
// console.log( Pattern );
|
2021-02-02 06:57:24 -08:00
|
|
|
|
|
|
|
export default Pattern
|