19 lines
576 B
JavaScript
19 lines
576 B
JavaScript
![]() |
import freesewing from '@freesewing/core'
|
||
|
import plugins from '@freesewing/plugin-bundle'
|
||
|
import config from '../config'
|
||
|
import draftFront from './front'
|
||
|
import draftBack from './back'
|
||
|
import draftGusset from './gusset'
|
||
|
import draftElastic from './elastic'
|
||
|
|
||
|
// Create new design
|
||
|
const Pattern = new freesewing.Design(config, plugins)
|
||
|
|
||
|
// Attach the draft methods to the prototype
|
||
|
Pattern.prototype.draftFront = draftFront
|
||
|
Pattern.prototype.draftBack = draftBack
|
||
|
Pattern.prototype.draftGusset = draftGusset
|
||
|
Pattern.prototype.draftElastic = draftElastic
|
||
|
|
||
|
export default Pattern
|