17 lines
497 B
JavaScript
17 lines
497 B
JavaScript
![]() |
import freesewing from '@freesewing/core'
|
||
|
import plugins from '@freesewing/plugin-bundle'
|
||
|
import config from '../config'
|
||
|
import draftFront from './front'
|
||
|
import draftStrap from './strap'
|
||
|
import draftPocket from './pocket'
|
||
|
|
||
|
// Create new design
|
||
|
const Pattern = new freesewing.Design(config, plugins)
|
||
|
|
||
|
// Attach the draft methods to the prototype
|
||
|
Pattern.prototype.draftFront = draftFront
|
||
|
Pattern.prototype.draftStrap = draftStrap
|
||
|
Pattern.prototype.draftPocket = draftPocket
|
||
|
|
||
|
export default Pattern
|