2019-08-03 15:03:33 +02:00
|
|
|
import freesewing from '@freesewing/core'
|
|
|
|
import plugins from '@freesewing/plugin-bundle'
|
|
|
|
import config from '../config'
|
|
|
|
import draftBox from './box'
|
2019-04-12 19:36:32 +02:00
|
|
|
|
2019-05-02 18:13:10 +02:00
|
|
|
// Create new design
|
2019-08-03 15:03:33 +02:00
|
|
|
const Pattern = new freesewing.Design(config, plugins)
|
2019-04-12 19:36:32 +02:00
|
|
|
|
2019-05-02 18:13:10 +02:00
|
|
|
// Attach the draft methods to the prototype
|
2019-08-03 15:03:33 +02:00
|
|
|
Pattern.prototype.draftBox = draftBox
|
2019-04-12 19:36:32 +02:00
|
|
|
|
2019-08-03 15:03:33 +02:00
|
|
|
export default Pattern
|