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

15 lines
414 B
JavaScript
Raw Normal View History

2021-02-02 06:57:24 -08:00
import freesewing from '@freesewing/core'
import plugins from '@freesewing/plugin-bundle'
import config from '../config'
import draftFront from './front'
import draftBack from './back'
// 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
export default Pattern