1
0
Fork 0
freesewing/packages/penelope/src/index.js

17 lines
505 B
JavaScript
Raw Normal View History

2020-01-04 14:23:08 +01:00
import freesewing from '@freesewing/core'
import plugins from '@freesewing/plugin-bundle'
import config from '../config'
import draftFront from './front'
import draftBack from './back'
import draftWaistband from './waistband'
2019-08-21 11:11:05 -07:00
// Create new design
2020-01-04 14:23:08 +01:00
const Pattern = new freesewing.Design(config, plugins)
2019-08-21 11:11:05 -07:00
// Attach the draft methods to the prototype
2020-01-04 14:23:08 +01:00
Pattern.prototype.draftFront = draftFront
Pattern.prototype.draftBack = draftBack
Pattern.prototype.draftWaistband = draftWaistband
2019-08-21 11:11:05 -07:00
2020-01-04 14:23:08 +01:00
export default Pattern