1
0
Fork 0
freesewing/packages/create-freesewing-pattern/template/default/src/index.js

13 lines
335 B
JavaScript
Raw Normal View History

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-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-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-08-03 15:03:33 +02:00
export default Pattern